/* ================================
   Game Page - 스도쿠 / 2048 레이아웃 + 전 게임 공통 콘텐츠 영역
   ================================ */

/* ---- 헤더 로고 (게임별 CSS에 흩어져 있던 리셋을 공통화) ---- */
header .logo { text-decoration: none; color: white; }

/* ---- 스도쿠 / 2048 게임 카드 ---- */
.gp-main {
    background: var(--light);
    display: flex;
    justify-content: center;
    padding: 3rem 1.5rem 2rem;
}

.gp-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 600px;
}

.gp-header {
    padding: 2rem;
    background: var(--gradient-1);
    color: #fff;
    text-align: center;
}

.gp-header .game-icon { font-size: 3rem; margin-bottom: .4rem; }
.gp-header .game-title { font-size: 1.9rem; font-weight: 900; margin-bottom: .4rem; }
.gp-header .game-subtitle { font-size: 1rem; opacity: .95; }

.gp-body { padding: 2rem; overflow-x: hidden; }

.gp-body .back-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
}
.gp-body .back-link:hover { text-decoration: underline; }

/* ---- 공통 콘텐츠 영역 ---- */
.gp-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
    color: var(--dark);
    line-height: 1.85;
}

.gp-breadcrumb {
    display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: .4rem;
    max-width: none; padding: 0;
    font-size: .85rem; color: #666; margin-bottom: 1.5rem;
}
.gp-breadcrumb a { color: var(--secondary); text-decoration: none; }
.gp-breadcrumb a:hover { text-decoration: underline; }

.gp-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2.2rem 0 .8rem;
    padding-bottom: .4rem;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}
.gp-content h3 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; }
.gp-content p { margin-bottom: 1rem; }
.gp-content ol, .gp-content ul { margin: 0 0 1rem 1.4rem; }
.gp-content li { margin-bottom: .45rem; }
.gp-content a { color: var(--secondary); }

.gp-content table {
    width: 100%;
    border-collapse: collapse;
    margin: .6rem 0 1.2rem;
    font-size: .95rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.gp-content th, .gp-content td {
    padding: .65rem .9rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.gp-content th { background: var(--secondary); color: #fff; font-weight: 500; }
.gp-content tr:last-child td { border-bottom: none; }

.gp-note {
    background: #fff8e1;
    border-left: 4px solid var(--accent);
    padding: .9rem 1.1rem;
    border-radius: 0 10px 10px 0;
    margin: 1rem 0 1.4rem;
    font-size: .95rem;
}

/* FAQ */
.gp-faq details {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: .7rem;
    padding: .85rem 1.1rem;
}
.gp-faq summary { cursor: pointer; font-weight: 700; }
.gp-faq details p { margin: .7rem 0 .2rem; }

/* 관련 링크 카드 */
.gp-related {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: .8rem;
    margin: .8rem 0 1.2rem;
}
.gp-related a {
    display: block;
    background: #fff;
    border-radius: 12px;
    padding: .9rem 1rem;
    text-decoration: none;
    color: var(--dark);
    box-shadow: var(--shadow-sm);
    font-size: .95rem;
    transition: transform .15s, box-shadow .15s;
}
.gp-related a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gp-related a span { display: block; font-size: .8rem; color: #777; margin-top: .25rem; }

@media (max-width: 600px) {
    .gp-main { padding: 1.5rem .8rem 1rem; }
    .gp-body { padding: 1.2rem; }
    .gp-header { padding: 1.5rem 1rem; }
    .gp-header .game-title { font-size: 1.5rem; }
    .gp-content { padding: 1rem 1rem 2.5rem; }
    .gp-content h2 { font-size: 1.2rem; }
    .gp-content table { font-size: .85rem; }
    .gp-content th, .gp-content td { padding: .5rem .55rem; }
}
