/* Game detail template: scoped so existing pages retain their layout. */
.game-detail-page { --detail-ink: #182330; --detail-muted: #526173; --detail-line: #dfe5eb; }
.game-detail-page .detail-page { max-width: 1580px; margin: 0 auto; padding: 28px 36px 70px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
.detail-main { min-width: 0; display: grid; gap: 22px; }
.detail-player { background: #121a24; color: white; border: 1px solid #36404c; border-radius: 20px; overflow: hidden; box-shadow: 0 12px 36px #0004; }
.detail-player-bar, .player-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; font-size: 15px; font-weight: 600; }
.detail-player-bar { color: #d5dde6; letter-spacing: .04em; }
.player-separator { color: #ffcf36; padding: 0 10px; }
.detail-player button { border: 1px solid #566170; background: #263241; color: white; border-radius: 8px; padding: 8px 14px; cursor: pointer; font: inherit; }
.detail-player button:hover { background: #3b4a5d; }
.detail-embed { aspect-ratio: 16 / 9; background: #1c2632; }
.detail-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-toolbar > span { font-size: 20px; font-weight: 700; }
.player-toolbar > div { display: flex; align-items: center; gap: 20px; }
.player-toolbar a { color: #d5dde6; font-size: 15px; }
.player-toolbar button { background: #ffce35; color: #17212d; border-color: #ffce35; font-weight: 700; }
.player-toolbar button:hover { background: #ffdf71; }
.quick-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quick-card { background: #f8fbff; color: var(--detail-ink); border: 1px solid #cfdbea; border-top: 4px solid #719ad0; border-radius: 16px; padding: 22px 24px; }
.quick-card.tips-card { background: #fffcf0; border-color: #eaddb2; border-top-color: #e5b521; }
.game-detail-page .eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #43546a; }
.quick-card ul { margin: 0; padding-left: 18px; font-size: 17px; line-height: 1.55; }
.quick-card li + li { margin-top: 7px; }
.game-summary { background: #17212ef5; color: #fff; border: 1px solid #465162; border-radius: 20px; padding: 28px; box-shadow: 0 10px 26px #0002; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; color: #c4cfdc; font-size: 15px; margin-bottom: 24px; }
.breadcrumbs a { color: #e4ebf4; }
.summary-heading { display: flex; align-items: center; gap: 20px; }
.summary-heading img { border-radius: 17px; object-fit: cover; flex: 0 0 88px; }
.game-summary .eyebrow { color: #ffda62; font-size: 12px; margin-bottom: 7px; }
.game-detail-page h1 { color: #fff; font-family: 'Orbitron', sans-serif; font-size: clamp(25px, 3vw, 39px); line-height: 1.25; margin: 0; letter-spacing: -.03em; }
.game-subtitle { color: #e1e8f0; font-size: 20px; margin: 20px 0 24px; line-height: 1.5; }
.game-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.stat { padding: 15px 17px; border: 1px solid #445163; border-radius: 11px; background: #ffffff08; }
.stat dt { color: #bccbda; font-size: 14px; margin-bottom: 6px; }
.stat dd { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.4; }
.stat:last-child { grid-column: span 2; }
.stat a { color: #ffe080; font-size: 17px; text-decoration: none; }
.stat a:hover { text-decoration: underline; }
.statistics-source { color: #bfcddd; font-size: 13px; margin: 18px 0 0; }
.statistics-source a { color: #dce7f3; text-underline-offset: 3px; }
.detail-recommendations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 18px; border-radius: 18px; background: #fff; }
.detail-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 12px; padding: 15px; background: #fffffff5; border-radius: 18px; }
.detail-game-card { min-width: 0; text-decoration: none; color: #172333; display: flex; flex-direction: column; gap: 8px; }
.detail-game-card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 11px; background: #e2e7eb; }
.detail-game-card span { font-weight: 700; font-size: 16px; line-height: 1.25; }
a.detail-game-card:hover span { text-decoration: none; }
.game-guide { display: grid; gap: 18px; color: var(--detail-ink); font-family: 'Rajdhani', sans-serif; font-size: 16px; line-height: 1.8; }
.guide-block { background: #fff; padding: 30px; border: 1px solid #e0e5ec; border-radius: 18px; scroll-margin-top: 130px; }
.game-guide h2, .game-guide h3 { font-family: 'Orbitron', sans-serif; color: var(--detail-ink); line-height: 1.4; margin: 0 0 20px; font-size: 24px; letter-spacing: -.025em; }
.game-guide h3 { font-size: 21px; }
.game-guide h4 { font-family: 'Rajdhani', sans-serif; font-size: 18px; line-height: 1.5; margin: 0 0 10px; }
.game-guide p { margin: 0 0 16px; color: #435062; }
.game-guide p:last-child { margin-bottom: 0; }
.game-guide ol { padding-left: 23px; }
.game-guide li { padding-left: 4px; margin-bottom: 12px; }
.guide-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 13px; background: #162330; border-radius: 14px; }
.guide-nav a { color: #fff; text-decoration: none; font: 600 15px 'Rajdhani', sans-serif; padding: 11px 14px; border: 1px solid #617082; border-radius: 8px; }
.guide-nav a:hover, .guide-nav a:focus-visible { background: #ffcf3b; color: #172333; border-color: #ffcf3b; }
.mechanic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mechanic-card { background: #f3f6fa; border: 1px solid #e1e7ef; border-radius: 12px; padding: 22px; }
.table-scroll { width: 100%; overflow-x: auto; }
.game-guide table { width: 100%; border-collapse: collapse; font-size: 15px; text-align: left; }
.game-guide th { background: #eef2f7; color: #243244; padding: 13px; }
.game-guide td { border-bottom: 1px solid #dfe5ed; padding: 15px 13px; color: #435062; }
.game-guide td:first-child { font-weight: 700; color: #25354a; }
.tip-list ol { list-style: none; padding: 0; counter-reset: tip; display: grid; gap: 12px; }
.tip-list li { counter-increment: tip; position: relative; background: #fffcf1; border: 1px solid #e9e0c2; border-radius: 12px; padding: 17px 20px 17px 60px; margin: 0; }
.tip-list li::before { content: counter(tip); position: absolute; left: 17px; top: 19px; width: 28px; height: 28px; border-radius: 8px; background: #f9d152; color: #243244; font-weight: 800; text-align: center; line-height: 28px; }
.feature-list ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature-list li { background: #f3f6fa; border-radius: 11px; padding: 18px; margin: 0; }
.feature-list strong { display: block; color: #223449; margin-bottom: 5px; }
.game-guide details { border: 1px solid #dce3ec; border-radius: 11px; margin-top: 12px; overflow: hidden; }
.game-guide summary { padding: 17px 20px; cursor: pointer; font-weight: 700; background: #f7f9fc; }
.game-guide details[open] summary { border-bottom: 1px solid #e2e7ed; }
.game-guide details p { padding: 18px 20px; }
.game-detail-page :focus-visible { outline: 3px solid #4d8dca; outline-offset: 4px; }
@media (max-width: 1120px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; } .game-detail-page .detail-page { padding: 20px; } .game-stats { grid-template-columns: 1fr 1fr; } .stat:last-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } .detail-side { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .game-detail-page .detail-page { padding: 14px 12px 40px; } .detail-main { gap: 14px; } .quick-cards, .mechanic-grid, .feature-list ul { grid-template-columns: 1fr; } .quick-card, .guide-block, .game-summary { padding: 20px; } .summary-heading { gap: 12px; } .summary-heading img { width: 64px; height: 64px; flex-basis: 64px; } .game-summary .eyebrow { font-size: 10px; } .game-subtitle { font-size: 18px; } .detail-side { grid-template-columns: repeat(2, 1fr); } .detail-recommendations { gap: 12px; padding: 14px; grid-template-columns: repeat(2, 1fr); } .detail-player-bar { font-size: 11px; padding: 10px; } .player-toolbar { padding: 10px; } .player-toolbar > span { font-size: 16px; } .player-toolbar > div { gap: 10px; } .player-toolbar a { font-size: 12px; } .player-toolbar button { padding: 8px; font-size: 13px; } .game-guide { font-size: 15px; } .game-guide h2 { font-size: 21px; } .guide-nav a { font-size: 13px; padding: 10px; } .guide-block { scroll-margin-top: 110px; } }

/* Refined sample: background surfaces, without decorative outlines or dividers. */
.game-detail-page * { border: 0 !important; }
.game-detail-page .detail-player, .game-detail-page .game-summary, .game-detail-page #comments { box-shadow: none; }
.game-detail-page .detail-side-column { min-width: 0; display: grid; gap: 22px; align-content: start; }
.game-detail-page #comments input:not([type="checkbox"]), .game-detail-page #comments textarea { background: #f0f3f7; }
.game-detail-page #comments { padding: 22px; }
.game-detail-page #comments .comments-title { font-size: 20px; }
.game-detail-page #comments .comments-subtitle { font-size: 16px; }
.game-detail-page .game-guide { font-size: 18px; line-height: 1.65; }
.game-detail-page .game-guide h4 { font-family: 'Rajdhani', sans-serif; font-size: 21px; }
.game-detail-page .game-guide table { font-size: 17px; }
.game-detail-page .guide-tabs { background: #fff; border-radius: 18px; padding: 12px; }
.game-detail-page .guide-tabs .guide-nav { background: #edf1f5; gap: 6px; padding: 8px; }
.game-detail-page .guide-nav a { font-family: 'Rajdhani', sans-serif; font-size: 17px; color: #314257; }
.game-detail-page .guide-nav a[aria-selected="true"] { background: #ffcf3b; color: #182330; }
.game-detail-page .guide-panel[hidden] { display: none; }
.game-detail-page .guide-panel .guide-block { background: transparent; padding: 24px 18px; }
.game-detail-page .guide-panel .guide-block + .guide-block { padding-top: 0; }
.game-detail-page .guide-panel { min-height: 330px; }
.game-detail-page .game-guide summary { font-size: 18px; }
.game-detail-page .game-guide td { background: #fafbfd; }
.game-detail-page .game-guide td:first-child { background: #f2f5f8; }
.game-detail-page .stat { background: #ffffff0d; }
.game-detail-page .detail-player button { background: #334254; }
.game-detail-page .player-toolbar button { background: #ffce35; }
.game-detail-page .site-header input, .game-detail-page #comments input, .game-detail-page #comments textarea { font-family: 'Rajdhani', sans-serif; }
@media (max-width: 600px) { .game-detail-page .guide-panel .guide-block { padding: 20px 10px; } .game-detail-page .guide-nav a { font-size: 15px; padding: 10px; } }

/* Arcade-style image cards: soft shadow, floating name, playful motion. */
.game-detail-page .detail-game-card { position: relative; display: block; overflow: hidden; border-radius: 14px; isolation: isolate; transform: translateY(0); transition: transform 260ms cubic-bezier(.2,.8,.2,1), box-shadow 260ms ease; }
.game-detail-page .detail-game-card img { border-radius: 0; transition: transform 480ms cubic-bezier(.2,.8,.2,1), filter 300ms ease; }
.game-detail-page .detail-side .detail-game-card img { aspect-ratio: 1 / 1; }
.game-detail-page .detail-game-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 18%, rgba(9,16,30,.12) 36%, rgba(9,16,30,.8) 70%, rgba(5,11,23,.98) 100%); opacity: 0; transition: opacity 280ms ease; pointer-events: none; }
.game-detail-page .detail-game-card > span { position: absolute; inset: auto 0 0; z-index: 2; margin: 0; padding: 34px 14px 15px; background: none; color: #fff; font-size: 20px; font-weight: 700; line-height: 1.12; text-shadow: 0 2px 5px #000, 0 0 14px #0009; opacity: 0; transform: translateY(14px) scale(.96); transform-origin: left bottom; transition: opacity 220ms ease, transform 340ms cubic-bezier(.16,1,.3,1); pointer-events: none; text-decoration: none; }
.game-detail-page .detail-game-card > span::before { content: ""; display: block; width: 7px; height: 7px; margin-bottom: 7px; border-radius: 5px; background: #ffcf3b; box-shadow: 0 0 12px #ffcf3b50; transform: scaleX(.3); transform-origin: left; transition: transform 380ms cubic-bezier(.16,1,.3,1); }
.game-detail-page .detail-game-card:hover, .game-detail-page .detail-game-card:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 22px #0a152733; }
.game-detail-page .detail-game-card:hover::after, .game-detail-page .detail-game-card:focus-visible::after { opacity: 1; }
.game-detail-page .detail-game-card:hover > span, .game-detail-page .detail-game-card:focus-visible > span { opacity: 1; transform: translateY(0) scale(1); }
.game-detail-page .detail-game-card:hover > span::before, .game-detail-page .detail-game-card:focus-visible > span::before { transform: scaleX(1); }
.game-detail-page .detail-game-card:hover img, .game-detail-page .detail-game-card:focus-visible img { transform: scale(1.085) rotate(-1deg); filter: saturate(1.12); }
@media (hover: none) { .game-detail-page .detail-game-card::after { opacity: 1; } .game-detail-page .detail-game-card > span { opacity: 1; transform: none; font-size: 18px; padding: 30px 12px 12px; } .game-detail-page .detail-game-card > span::before { transform: none; } }
@media (prefers-reduced-motion: reduce) { .game-detail-page .detail-game-card, .game-detail-page .detail-game-card img, .game-detail-page .detail-game-card::after, .game-detail-page .detail-game-card > span, .game-detail-page .detail-game-card > span::before { transition: none; } .game-detail-page .detail-game-card:hover, .game-detail-page .detail-game-card:focus-visible, .game-detail-page .detail-game-card:hover img, .game-detail-page .detail-game-card:focus-visible img { transform: none; } }

/* Unified content surfaces; the game player remains the dark focal point. */
.game-detail-page { --content-surface: #fffefa; --content-inset: #f3f3ee; }
.game-detail-page .game-summary,
.game-detail-page .quick-card,
.game-detail-page .quick-card.tips-card,
.game-detail-page .detail-recommendations,
.game-detail-page .detail-side,
.game-detail-page .guide-block,
.game-detail-page .guide-tabs,
.game-detail-page #comments { background: var(--content-surface); color: #182330; }
.game-detail-page .game-summary h1 { color: #182330; }
.game-detail-page .game-summary .eyebrow,
.game-detail-page .quick-card .eyebrow { color: #536170; }
.game-detail-page .breadcrumbs,
.game-detail-page .breadcrumbs a,
.game-detail-page .game-subtitle { color: #465568; }
.game-detail-page .stat { background: var(--content-inset); }
.game-detail-page .stat dt { color: #526173; }
.game-detail-page .stat dd { color: #182330; }
.game-detail-page .stat a { color: #2f4b66; }
.game-detail-page .guide-tabs .guide-nav,
.game-detail-page .mechanic-card,
.game-detail-page .feature-list li,
.game-detail-page .tip-list li,
.game-detail-page .game-guide summary,
.game-detail-page .game-guide th,
.game-detail-page .game-guide td:first-child,
.game-detail-page #comments input:not([type="checkbox"]),
.game-detail-page #comments textarea { background: var(--content-inset); }
.game-detail-page .game-guide td { background: var(--content-surface); }
.game-detail-page .guide-panel .guide-block { background: transparent; }
.game-detail-page .guide-nav a[aria-selected="true"] { background: #ffcf3b; color: #182330; }
.game-detail-page .tip-list li::before { background: #e2e6e6; color: #263848; }

/* A little background shows through while text stays on a quiet surface. */
.game-detail-page { --content-surface: rgba(255, 254, 250, .92); --content-inset: rgba(239, 241, 237, .78); }
.game-detail-page .game-summary,
.game-detail-page .quick-card,
.game-detail-page .detail-recommendations,
.game-detail-page .detail-side,
.game-detail-page .game-guide > .guide-block,
.game-detail-page .guide-tabs,
.game-detail-page #comments { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* Keep the game overview compact, with metadata as readable text rows. */
.game-detail-page .game-summary { padding: 20px 24px; }
.game-summary .breadcrumbs { margin-bottom: 12px; font-size: 13px; gap: 7px; }
.game-summary .summary-heading { gap: 14px; }
.game-summary .summary-heading img { width: 56px; height: 56px; flex-basis: 56px; border-radius: 12px; }
.game-summary .summary-heading > div { min-width: 0; }
.game-detail-page .game-summary h1 { font-size: clamp(23px, 2.4vw, 30px); }
.game-summary .eyebrow { margin-bottom: 4px; font-size: 10px; }
.game-summary .game-subtitle { margin: 12px 0; font-size: 17px; line-height: 1.45; }
.game-summary .game-stats { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.game-detail-page .game-summary .stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.game-summary .stat:last-child { flex-basis: 100%; }
.game-summary .stat dt { flex-shrink: 0; margin: 0; font-size: 14px; line-height: 1.5; }
.game-summary .stat dd { min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.game-summary .stat a { font-size: inherit; }
@media (max-width: 600px) {
  .game-detail-page .game-summary { padding: 16px; }
  .game-summary .summary-heading img { width: 48px; height: 48px; flex-basis: 48px; }
  .game-summary .game-subtitle { font-size: 16px; margin: 10px 0; }
  .game-summary .game-stats { flex-direction: column; gap: 5px; }
  .game-summary .stat dt { flex-basis: 78px; }
}
