/* Premium single-game layout */
.game-detail-page {
    --game-primary: #6d5dfc;
    --game-primary-dark: #5546e8;
    --game-accent: #20c997;
    --game-ink: #15182a;
    --game-muted: #667085;
    --game-line: #e7eaf1;
    --game-surface: #ffffff;
    --game-bg: #f5f7fb;
    --game-hero-a: #15172b;
    --game-hero-b: #28204d;
    --game-radius: 22px;
    --game-shadow: 0 18px 55px rgba(22, 28, 45, 0.09);
    background: var(--game-bg);
    color: var(--game-ink);
    padding-bottom: 72px;
}

.game-detail-page *,
.game-detail-page *::before,
.game-detail-page *::after { box-sizing: border-box; }

.game-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.game-hero {
    position: relative;
    overflow: hidden;
    padding: 30px 0 44px;
    color: #fff;
    background:
        radial-gradient(circle at 10% 10%, rgba(109, 93, 252, .42), transparent 34%),
        radial-gradient(circle at 85% 15%, rgba(32, 201, 151, .16), transparent 30%),
        linear-gradient(135deg, var(--game-hero-a), var(--game-hero-b));
}

.game-hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -150px -8%;
    height: 260px;
    background: var(--game-bg);
    border-radius: 50% 50% 0 0 / 18% 18% 0 0;
    opacity: .08;
    pointer-events: none;
}

.game-breadcrumbs {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    font-size: 13px;
    color: rgba(255,255,255,.68);
}

.game-breadcrumbs a { color: rgba(255,255,255,.78); text-decoration: none; }
.game-breadcrumbs a:hover { color: #fff; }
.game-breadcrumbs__sep { opacity: .4; }

.game-hero__panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 240px;
    gap: 30px;
    align-items: center;
}

.game-hero__visual {
    width: 180px;
    aspect-ratio: 1;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 24px 60px rgba(0,0,0,.28);
    background: rgba(255,255,255,.08);
}

.game-hero__image { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-hero__placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 64px; background: linear-gradient(135deg,#6d5dfc,#20c997); }

.game-hero__eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.game-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 11px; border-radius: 999px; background: rgba(109,93,252,.28); border: 1px solid rgba(167,158,255,.3); color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; }
.game-chip--soft { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.78); }

.game-hero__content h1 { margin: 0 0 12px; color: #fff; font-size: clamp(28px, 4vw, 46px); line-height: 1.35; letter-spacing: -.4px; }
.game-hero__summary { max-width: 680px; margin: 0; color: rgba(255,255,255,.76); line-height: 2; font-size: 15px; }
.game-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.game-play-button,
.game-secondary-button {
    min-height: 48px;
    padding: 11px 20px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.game-play-button { background: linear-gradient(135deg, var(--game-accent), #1aae83); color: #071d16; box-shadow: 0 14px 32px rgba(32,201,151,.22); }
.game-play-button:hover { color: #071d16; transform: translateY(-2px); box-shadow: 0 18px 38px rgba(32,201,151,.3); }
.game-play-button__icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: rgba(255,255,255,.55); font-size: 11px; padding-right: 1px; }
.game-secondary-button { color: #fff; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.game-secondary-button:hover { color: #fff; background: rgba(255,255,255,.12); transform: translateY(-2px); }

.game-score-card {
    padding: 20px;
    border-radius: 22px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
}
.game-score-card__rating { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; column-gap: 7px; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.game-score-card__rating strong { font-size: 32px; line-height: 1; }
.game-score-card__rating > span:not(.game-score-card__star) { font-size: 12px; color: rgba(255,255,255,.62); }
.game-score-card__rating small { grid-column: 2 / -1; margin-top: 5px; color: rgba(255,255,255,.55); }
.game-score-card__star { color: #ffd45a; font-size: 22px; }
.game-score-card__stats { margin: 0; display: grid; gap: 11px; }
.game-score-card__stats div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.game-score-card__stats dt { color: rgba(255,255,255,.58); font-size: 12px; }
.game-score-card__stats dd { margin: 0; color: #fff; font-weight: 800; font-size: 13px; }

.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; align-items: start; padding-top: 34px; }
.game-main-column { min-width: 0; }
.game-sidebar { position: sticky; top: 24px; display: grid; gap: 18px; }

.game-content-card,
.game-tags-card,
.game-toc,
.game-sidebar-cta,
.game-mobile-toc {
    background: var(--game-surface);
    border: 1px solid var(--game-line);
    box-shadow: 0 8px 30px rgba(19, 25, 45, .05);
}
.game-content-card { border-radius: var(--game-radius); overflow: hidden; }
.game-content-card__header { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 25px 28px; border-bottom: 1px solid var(--game-line); background: linear-gradient(180deg,#fff,#fbfcff); }
.game-section-kicker { display: block; color: var(--game-primary); font-weight: 900; font-size: 13px; margin-bottom: 5px; }
.game-content-card__header p { margin: 0; color: var(--game-muted); font-size: 13px; }
.game-content-card__header time { flex: 0 0 auto; color: var(--game-muted); font-size: 12px; }

.game-article-content { padding: 30px 32px 36px; font-size: 16px; line-height: 2.05; overflow-wrap: anywhere; }
.game-article-content > :first-child { margin-top: 0; }
.game-article-content > :last-child { margin-bottom: 0; }
.game-article-content p { margin: 0 0 18px; color: #34394c; }
.game-article-content h2,
.game-article-content h3,
.game-article-content h4 { scroll-margin-top: 30px; color: var(--game-ink); }
.game-article-content h2 { position: relative; margin: 38px 0 18px; padding: 14px 18px 14px 14px; font-size: 23px; line-height: 1.6; border-radius: 14px; background: #f7f7ff; border: 1px solid #eceafd; }
.game-article-content h2::before { content: ""; position: absolute; top: 16px; bottom: 16px; right: 0; width: 4px; border-radius: 5px; background: var(--game-primary); }
.game-article-content h3 { margin: 28px 0 14px; font-size: 19px; line-height: 1.7; }
.game-article-content h4 { margin: 22px 0 12px; font-size: 17px; }
.game-article-content ul,
.game-article-content ol { margin: 12px 0 22px; padding-right: 24px; }
.game-article-content li { margin: 8px 0; color: #34394c; }
.game-article-content li::marker { color: var(--game-primary); font-weight: 800; }
.game-article-content hr { border: 0; border-top: 1px solid var(--game-line); margin: 30px 0; }
.game-article-content a { color: var(--game-primary-dark); font-weight: 700; text-underline-offset: 3px; }
.game-article-content blockquote { margin: 24px 0; padding: 18px 20px; background: #f7f7ff; border-right: 4px solid var(--game-primary); border-radius: 14px; color: #43485c; }
.game-article-content img { max-width: 100%; height: auto; border-radius: 16px; }
.game-article-content table { width: 100%; border-collapse: collapse; margin: 22px 0; display: block; overflow-x: auto; }
.game-article-content th,
.game-article-content td { padding: 12px 14px; border: 1px solid var(--game-line); text-align: right; white-space: nowrap; }
.game-article-content th { background: #f8f9fc; }

.game-toc { border-radius: 18px; padding: 20px; }
.game-toc__title { display: block; margin-bottom: 13px; font-weight: 900; font-size: 14px; }
.game-toc ol,
.game-mobile-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.game-toc li a,
.game-mobile-toc li a { display: block; padding: 8px 10px; border-radius: 9px; color: #4c5267; text-decoration: none; font-size: 13px; line-height: 1.65; }
.game-toc li a:hover,
.game-mobile-toc li a:hover { color: var(--game-primary-dark); background: #f4f3ff; }
.game-toc li.is-sub a,
.game-mobile-toc li.is-sub a { padding-right: 22px; font-size: 12px; color: #73798c; }

.game-sidebar-cta { border-radius: 18px; padding: 21px; background: linear-gradient(150deg,#16192e,#292052); color: #fff; border-color: rgba(255,255,255,.05); }
.game-sidebar-cta > span { color: #9f95ff; font-size: 12px; font-weight: 800; }
.game-sidebar-cta strong { display: block; margin: 7px 0; line-height: 1.7; font-size: 16px; }
.game-sidebar-cta p { margin: 0 0 16px; color: rgba(255,255,255,.6); font-size: 12px; line-height: 1.8; }
.game-sidebar-cta a { display: flex; justify-content: space-between; align-items: center; padding: 11px 13px; border-radius: 11px; background: var(--game-accent); color: #071d16; text-decoration: none; font-weight: 900; font-size: 13px; }

.game-responsible-note { display: flex; gap: 16px; align-items: flex-start; margin-top: 18px; padding: 19px 21px; border: 1px solid #f1dfb8; background: #fffaf0; border-radius: 18px; }
.game-responsible-note__icon { flex: 0 0 45px; width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; background: #fff0cd; color: #8a5c00; font-weight: 900; }
.game-responsible-note strong { display: block; margin-bottom: 4px; color: #5f450f; }
.game-responsible-note p { margin: 0; color: #775f2c; font-size: 13px; line-height: 1.9; }

.game-tags-card { margin-top: 18px; padding: 22px; border-radius: 18px; }
.game-tags-card h2 { margin: 0 0 14px; font-size: 16px; }
.game-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.game-tags a { padding: 7px 12px; border-radius: 999px; background: #f5f4ff; color: var(--game-primary-dark); border: 1px solid #e7e4ff; text-decoration: none; font-size: 12px; font-weight: 800; }

.game-related { margin-top: 32px; }
.game-related__heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.game-related__heading h2 { margin: 0; font-size: 23px; }
.game-related__heading > a { color: var(--game-primary-dark); font-size: 13px; font-weight: 800; text-decoration: none; }
.game-related__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.game-related-card { min-width: 0; display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 17px; background: #fff; border: 1px solid var(--game-line); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.game-related-card:hover { transform: translateY(-2px); box-shadow: var(--game-shadow); border-color: #d9d5ff; }
.game-related-card__media { flex: 0 0 78px; width: 78px; height: 78px; border-radius: 13px; overflow: hidden; background: #f2f3f7; }
.game-related-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-related-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 28px; }
.game-related-card__body { min-width: 0; }
.game-related-card__body h3 { margin: 0 0 8px; color: var(--game-ink); font-size: 14px; line-height: 1.65; overflow: hidden; text-overflow: ellipsis; }
.game-related-card__body span { color: #7a5a00; background: #fff7d7; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }

.game-mobile-toc { display: none; margin-bottom: 16px; border-radius: 16px; padding: 15px 17px; }
.game-mobile-toc summary { cursor: pointer; font-weight: 900; }
.game-mobile-toc[open] summary { margin-bottom: 12px; }
.game-mobile-action { display: none; }

@media (max-width: 1020px) {
    .game-hero__panel { grid-template-columns: 150px minmax(0,1fr); }
    .game-hero__visual { width: 150px; }
    .game-score-card { grid-column: 1 / -1; display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; }
    .game-score-card__rating { margin: 0; padding: 0 0 0 18px; border-bottom: 0; border-left: 1px solid rgba(255,255,255,.12); }
    .game-score-card__stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .game-score-card__stats div { display: block; }
    .game-score-card__stats dd { margin-top: 4px; }
    .game-layout { grid-template-columns: minmax(0,1fr) 250px; gap: 20px; }
}

@media (max-width: 820px) {
    .game-shell { width: min(100% - 28px, 760px); }
    .game-hero { padding-top: 20px; padding-bottom: 32px; }
    .game-hero__panel { grid-template-columns: 100px minmax(0,1fr); gap: 18px; }
    .game-hero__visual { width: 100px; border-radius: 20px; }
    .game-hero__content h1 { font-size: 28px; }
    .game-hero__summary { font-size: 14px; line-height: 1.9; }
    .game-score-card { grid-template-columns: 1fr; }
    .game-score-card__rating { padding: 0 0 14px; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
    .game-layout { grid-template-columns: 1fr; padding-top: 22px; }
    .game-sidebar { display: none; }
    .game-mobile-toc { display: block; }
    .game-mobile-action { position: fixed; z-index: 999; right: 12px; left: 12px; bottom: 12px; display: block; padding: 6px; background: rgba(20,22,40,.9); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; box-shadow: 0 14px 36px rgba(12,14,30,.3); }
    .game-mobile-action a { display: flex; justify-content: center; align-items: center; min-height: 48px; border-radius: 11px; background: var(--game-accent); color: #071d16; text-decoration: none; font-weight: 900; }
}

@media (max-width: 560px) {
    .game-shell { width: calc(100% - 22px); }
    .game-breadcrumbs { margin-bottom: 18px; font-size: 11px; }
    .game-hero__panel { grid-template-columns: 78px minmax(0,1fr); gap: 13px; align-items: start; }
    .game-hero__visual { width: 78px; border-radius: 16px; }
    .game-hero__eyebrow { margin-bottom: 8px; }
    .game-chip { min-height: 26px; font-size: 10px; padding: 4px 8px; }
    .game-chip--soft { display: none; }
    .game-hero__content h1 { font-size: 22px; margin-bottom: 8px; }
    .game-hero__summary { display: none; }
    .game-hero__actions { grid-column: 1 / -1; width: calc(100vw - 22px); margin-right: calc(-78px - 13px); margin-top: 17px; }
    .game-play-button, .game-secondary-button { flex: 1 1 150px; min-height: 44px; padding: 9px 13px; font-size: 13px; }
    .game-score-card { grid-column: 1 / -1; padding: 15px; border-radius: 17px; }
    .game-score-card__stats { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
    .game-score-card__stats dt { font-size: 10px; }
    .game-score-card__stats dd { font-size: 11px; overflow-wrap: anywhere; }
    .game-content-card__header { align-items: start; padding: 20px; }
    .game-content-card__header time { display: none; }
    .game-article-content { padding: 22px 19px 27px; font-size: 15px; line-height: 2; }
    .game-article-content h2 { margin-top: 30px; font-size: 19px; padding: 12px 14px; }
    .game-article-content h3 { font-size: 17px; }
    .game-related__grid { grid-template-columns: 1fr; }
    .game-related__heading { align-items: center; }
    .game-related__heading h2 { font-size: 20px; }
    .game-responsible-note { padding: 16px; gap: 12px; }
    .game-responsible-note__icon { flex-basis: 40px; width: 40px; height: 40px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .game-detail-page * { scroll-behavior: auto !important; transition: none !important; }
}
