:root {
  --palette-ink: var(--palette-navy);
  --palette-navy: #141a38;
  --palette-panel: #fffcf5;
  --palette-paper: #f4f1e8;
  --palette-line: #ded9ca;
  --palette-shadow: color-mix(in srgb, var(--palette-line) 86%, var(--palette-muted));
  --palette-white: #ffffff;
  --palette-black: var(--palette-navy);
  --palette-muted: #57586c;
  --palette-muted-light: color-mix(in srgb, var(--palette-white) 82%, var(--palette-glow-blue));
  --palette-surface-blue: color-mix(in srgb, var(--palette-navy) 84%, var(--palette-glow-blue));
  --palette-border-blue: color-mix(in srgb, var(--palette-muted) 65%, var(--palette-glow-blue));
  --palette-stage-blue: color-mix(in srgb, var(--palette-navy) 59%, var(--palette-glow-blue));
  --palette-glow-blue: #4656a8;
  --palette-outline-blue: color-mix(in srgb, var(--palette-glow-blue) 60%, var(--palette-white));
  --palette-accent: #4334a1;
  --palette-accent-strong: color-mix(in srgb, var(--palette-accent) 80%, var(--palette-white));
  --palette-accent-soft: color-mix(in srgb, var(--palette-accent) 14%, var(--palette-white));
  --palette-yellow: #ffe16b;
  --palette-yellow-soft: color-mix(in srgb, var(--palette-yellow) 65%, var(--palette-white));
  --palette-gold: color-mix(in srgb, var(--palette-yellow) 57%, var(--palette-navy));
}
:root {
  color-scheme: light;
  --ink: var(--palette-black);
  --muted: var(--palette-muted);
  --paper: var(--palette-panel);
  --line: var(--palette-accent-soft);
  --accent: var(--palette-accent-strong);
  font: 16px/1.55 system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--palette-outline-blue); outline-offset: 3px; }
.wrap, .bar-inner { width: min(100% - 56px, 1260px); margin-inline: auto; }
.bar, .navigation { background: var(--palette-white); border-bottom: 1px solid var(--line); }
.bar-inner { min-height: 70px; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; gap: 10px; align-items: center; margin-right: auto; font-weight: 800; white-space: nowrap; font-size: 1.1rem; letter-spacing: -.035em; }
.brand strong { color: var(--accent); }
.brand img { width: 35px; height: 35px; border-radius: 9px; }
.search { display: flex; width: min(30vw, 375px); min-width: 90px; border: 1px solid var(--line); background: var(--palette-panel); border-radius: 11px; }
.search input { min-width: 0; flex: 1; background: transparent; border: 0; padding: 9px 13px; border-radius: inherit; }
.search input::placeholder { color: var(--muted); }
.search button { flex: 0 0 38px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: inherit; }
.search-icon { position: relative; width: 13px; height: 13px; border: 2px solid currentColor; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 2px; right: -5px; bottom: -2px; transform: rotate(45deg); background: currentColor; }
.random, .lang { white-space: nowrap; font-size: .88rem; font-weight: 650; }
.random { border: 1px solid var(--palette-muted-light); border-radius: 9px; padding: 8px 12px; background: var(--palette-accent-soft); color: var(--palette-accent); }
.random:hover { background: var(--palette-accent-soft); }
.lang:hover, .navigation a:hover { color: var(--accent); }
.navigation nav { display: flex; align-items: center; gap: 28px; white-space: nowrap; overflow: auto; scrollbar-width: thin; }
.navigation a { font-size: .89rem; font-weight: 650; padding-block: 9px; color: var(--muted); }
main.wrap { padding-block: 27px 60px; min-height: 66vh; }
.page-title { margin: 0 0 20px; font-size: clamp(2rem,5vw,3.75rem); line-height: 1.1; letter-spacing: -.045em; overflow-wrap: anywhere; }
.play-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(246px, 292px); gap: 20px; align-items: start; }
.game-column { min-width: 0; }
.player-shell { border: 1px solid var(--palette-muted-light); border-radius: 16px; background: var(--palette-white); overflow: hidden; box-shadow: 0 6px 24px color-mix(in srgb, var(--palette-surface-blue) 4.3%, transparent); }
.stage { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 2.25 / 1; background: var(--palette-black); color: var(--palette-white); }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage[data-gf-fs="1"] { width: 100%; height: 100%; }
.cover {
  position: absolute; inset: 0; display: grid; align-items: center;
  grid-template-columns: 1.15fr .85fr; gap: 24px; padding: clamp(20px, 5vw, 59px);
  background: radial-gradient(ellipse at 84% 30%, var(--palette-accent), transparent 62%), linear-gradient(132deg,var(--palette-black),var(--palette-surface-blue));
}
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero-copy h1 {
  font-weight: 850; font-size: clamp(1.9rem, 4.6vw, 4rem); line-height: 1.01;
  letter-spacing: -.06em; text-wrap: balance; overflow-wrap: anywhere; margin: 0 0 20px;
}
.hero-art { display: grid; place-items: center; min-width: 0; }
.hero-art img { width: min(100%, 285px); height: auto; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--palette-white) 25.1%, transparent); box-shadow: 0 14px 35px color-mix(in srgb, var(--palette-black) 66.7%, transparent); }
.play {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; min-width: 112px; padding: 10px 23px; border: 0; border-radius: 9px;
  background: var(--palette-yellow); color: var(--palette-black); font-weight: 850; box-shadow: 0 6px 18px color-mix(in srgb, var(--palette-black) 33.3%, transparent);
}
.play:hover { background: var(--palette-yellow-soft); }
.play-arrow { width: 0; height: 0; border: 6px solid transparent; border-left: 9px solid currentColor; border-right: 0; }
body[data-game="index"] .cover {
  grid-template-columns: 1fr; place-items: center; padding: 15px;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 30%, color-mix(in srgb, var(--palette-black) 51.4%, transparent) 91%),
    radial-gradient(circle at 2px 2px,color-mix(in srgb, var(--palette-muted-light) 14.5%, transparent) 1px,transparent 1.4px) 0 0/9px 9px,
    radial-gradient(ellipse at 49% 43%, var(--palette-accent-strong), var(--palette-surface-blue) 53%, var(--palette-navy) 88%);
}
body[data-game="index"] .hero-art { display: none; }
body[data-game="index"] .hero-copy { width: min(88%, 555px); text-align: center; }
.hero-wordmark { display: none; }
body[data-game="index"] .hero-wordmark {
  display: block; height: auto; aspect-ratio: 702 / 300;
  width: min(100%, 540px); margin: 0 auto 15px;
  filter: drop-shadow(0 7px 0 color-mix(in srgb, var(--palette-black) 36.9%, transparent));
}
body[data-game="index"] .hero-copy h1 {
  clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; position: absolute; margin: 0; white-space: nowrap;
}
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 62px; background: var(--palette-white); padding: 9px 12px; }
.game-label { display: flex; min-width: 0; align-items: center; gap: 9px; font-size: .93rem; }
.game-label img { flex: 0 0 auto; border-radius: 5px; object-fit: cover; }
.game-label strong { overflow-wrap: anywhere; }
.player-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.player-actions button, .exit {
  white-space: nowrap; min-height: 36px; border: 1px solid var(--line); border-radius: 7px;
  padding: 6px 9px; background: var(--palette-panel); font-size: .81rem; font-weight: 650;
}
.player-actions button:hover, .player-actions button[aria-pressed=true] { border-color: var(--palette-muted-light); color: var(--accent); background: var(--palette-accent-soft); }
.player-actions button[data-gf-like] { min-width: 32px; font-size: 1.02rem; }
.loader { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; display: grid; justify-items: center; gap: 12px; }
.loader::before { content: ""; width: 33px; height: 33px; border: 3px solid var(--palette-muted); border-top-color: var(--palette-yellow); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.exit { position: absolute; z-index: 5; right: 11px; top: 11px; color: var(--ink); }
.source-note { font-size: .81rem; color: var(--muted); margin: 7px 2px 0; }
.source-note a { text-decoration: underline; text-underline-offset: 3px; }
.related { min-width: 0; background: var(--palette-white); border: 1px solid var(--line); border-radius: 15px; padding: 13px; }
.related-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin: 0 0 11px; }
.related-head h2 { margin: 0; line-height: 1.2; font-size: 1.05rem; }
.related-head a { color: var(--accent); font-size: .81rem; font-weight: 700; white-space: nowrap; }
.related-head a:hover { text-decoration: underline; }
.grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--palette-white); overflow: hidden; }
.card:hover { color: var(--accent); border-color: var(--palette-outline-blue); }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 20 / 13; object-fit: cover; background: var(--palette-accent-soft); }
.card span { padding: 8px 9px; font-size: .86rem; font-weight: 700; overflow-wrap: anywhere; }
.related .grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; max-height: clamp(270px,32vw,412px); overflow: auto; scrollbar-width: thin; padding: 2px; }
.related .card { border-radius: 8px; }
.related .card span { padding: 5px 6px; line-height: 1.3; font-size: .78rem; }
.copy:empty { display: none; }
.copy { max-width: 940px; margin: 24px 0; padding: clamp(17px,3vw,36px); background: var(--palette-white); border: 1px solid var(--line); border-radius: 14px; overflow-wrap: anywhere; }
.copy h2 { line-height: 1.2; letter-spacing: -.035em; }
.copy > :first-child { margin-top: 0; }
.copy > :last-child { margin-bottom: 0; }
.copy a { color: var(--accent); text-decoration: underline; }
.copy details { border-top: 1px solid var(--line); padding: 9px 0; }
.copy summary { cursor: pointer; font-weight: 700; }
.copy dl { display: grid; grid-template-columns: minmax(0,max-content) 1fr; gap: 4px 14px; }
.copy dd { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips a { padding: 4px 10px; border-radius: 99px; background: var(--palette-accent-soft); color: var(--palette-accent); text-decoration: none; font-size: .84rem; }
.chips a:hover { background: var(--palette-accent-soft); }
.site-footer { padding: 22px 0; background: var(--palette-white); border-top: 1px solid var(--line); }
.site-footer .wrap, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 11px 21px; }
.footer-brand { margin-right: auto; font-weight: 780; }
.site-footer nav { color: var(--muted); font-size: .86rem; }
.site-footer a:hover { color: var(--accent); }
@media (max-width: 900px) {
  .wrap, .bar-inner { width: calc(100% - 36px); }
  .play-layout { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .related .grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 123px; max-height: none; padding-bottom: 5px; }
}
@media (max-width: 520px) {
  .wrap, .bar-inner { width: calc(100% - 24px); }
  .bar-inner { min-height: auto; flex-wrap: wrap; column-gap: 9px; row-gap: 7px; padding-block: 9px; }
  .brand { font-size: .94rem; gap: 6px; }
  .brand img { width: 27px; height: 27px; }
  .random, .lang { font-size: .77rem; }
  .random { padding: 4px 6px; }
  .search { order: 4; width: 100%; }
  .navigation nav { gap: 16px; }
  main.wrap { padding-block: 13px 33px; }
  .stage { aspect-ratio: 1.55 / 1; }
  .cover { gap: 10px; padding: 15px; }
  .hero-copy h1 { font-size: clamp(1.3rem, 6vw, 2rem); margin-bottom: 12px; }
  body[data-game="index"] .hero-copy { width: 82%; }
  body[data-game="index"] .hero-wordmark { margin-bottom: 10px; max-width: 255px; }
  .play { min-width: 80px; min-height: 39px; padding: 6px 13px; font-size: .87rem; }
  .hero-art img { border-radius: 9px; }
  .player-bar { flex-wrap: wrap; padding: 7px 9px; }
  .game-label { flex-basis: 100%; font-size: .83rem; }
  .game-label img { width: 26px; height: 22px; }
  .player-actions button { min-height: 32px; padding: 4px 7px; }
  .grid { grid-template-columns: repeat(auto-fill,minmax(96px,1fr)); gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .loader::before { animation: none; } }

/* Feature the game artwork as part of the player, with a quieter reading surface. */
:root { --paper: var(--palette-paper); --line: var(--palette-muted-light); }
.bar-inner { min-height: 63px; }
.navigation a { padding-block: 9px 10px; }
main.wrap { padding-top: 21px; }
.play-layout, .reading-layout { grid-template-columns: minmax(0,1fr) minmax(238px, 286px); gap: 17px; }
.player-shell { border-radius: 19px; box-shadow: 0 12px 30px color-mix(in srgb, var(--palette-ink) 7.8%, transparent); }
.stage { aspect-ratio: 2.27 / 1; }
body[data-game="index"] .cover {
  isolation: isolate;
  background:
    radial-gradient(ellipse at 48% 38%, color-mix(in srgb, var(--palette-accent-strong) 69%, transparent), transparent 62%),
    radial-gradient(circle at 2px 2px,color-mix(in srgb, var(--palette-accent-soft) 16.1%, transparent) 1px,transparent 1.5px) 0 0/10px 10px,
    linear-gradient(132deg, var(--palette-black) 6%, var(--palette-surface-blue) 53%, var(--palette-black) 94%);
}
body[data-game="index"] .cover::before, body[data-game="index"] .cover::after {
  position: absolute; z-index: -1; pointer-events: none; content: "";
}
body[data-game="index"] .cover::before { inset: 12px; border: 1px solid color-mix(in srgb, var(--palette-muted-light) 20.8%, transparent); border-radius: 11px; }
body[data-game="index"] .cover::after {
  width: 84%; aspect-ratio: 2.6 / 1; transform: rotate(-13deg);
  background: linear-gradient(100deg,transparent,color-mix(in srgb, var(--palette-outline-blue) 13.7%, transparent) 48%,transparent 88%);
}
body[data-game="index"] .hero-wordmark { width: min(100%, 510px); margin-bottom: 14px; filter: drop-shadow(0 8px 1px color-mix(in srgb, var(--palette-black) 54.9%, transparent)); }
.play { min-width: 128px; transition: background-color .16s ease, transform .16s ease; box-shadow: 0 4px 0 var(--palette-gold), 0 10px 24px color-mix(in srgb, var(--palette-black) 40%, transparent); }
.play:hover { transform: translateY(-2px); }
.play:active { transform: translateY(2px); }
.player-bar { padding-inline: 13px; border-top: 1px solid var(--palette-accent-soft); }
.related, .guide { border-radius: 15px; box-shadow: 0 4px 14px color-mix(in srgb, var(--palette-navy) 2.7%, transparent); }
.related { padding: 12px; }
.related-head { display: flex; align-items: center; padding: 0 1px 8px; margin: 0 0 8px; border-bottom: 1px solid var(--palette-paper); }
.related-head h2 { font-size: 1.03rem; letter-spacing: -.025em; }
.related-head a { padding: 4px 8px; background: var(--palette-accent-soft); border-radius: 6px; }
.related .grid { max-height: 399px; padding: 1px 3px 3px 1px; gap: 8px; }
.related .card { position: relative; background: var(--palette-black); border: 0; aspect-ratio: 20 / 15; }
.related .card img { height: 100%; aspect-ratio: auto; }
.related .card span {
  position: absolute; inset: auto 0 0; padding: 16px 7px 6px;
  color: var(--palette-white); background: linear-gradient(transparent,color-mix(in srgb, var(--palette-black) 91%, transparent) 70%);
  font-size: .76rem; line-height: 1.12;
}
.related .card:hover img { opacity: .81; }
.related .card:hover { box-shadow: 0 0 0 2px var(--palette-outline-blue); }
.reading-layout { display: grid; align-items: start; margin-top: 20px; }
.reading-main { min-width: 0; }
.reading-main .copy { margin: 0 0 14px; padding: clamp(18px,3.1vw,39px); }
.copy h2 { margin: 28px 0 9px; }
.copy h2:first-child { margin-top: 0; }
.copy h2[id] { scroll-margin-top: 20px; }
.copy h2:target { color: var(--palette-accent); }
.copy p { max-width: 76ch; }
.guide { position: sticky; top: 14px; padding: 13px; border: 1px solid var(--line); background: var(--palette-white); }
.guide h2 { margin: 0 0 6px; font-size: .98rem; padding-left: 7px; }
.guide a { display: block; padding: 7px 8px; border-radius: 7px; color: var(--muted); font-size: .86rem; }
.guide a:hover, .guide a:focus-visible { color: var(--accent); background: var(--palette-accent-soft); }
.game-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 20px; }
.game-facts p { margin: 0; padding: 10px 11px; border: 1px solid var(--palette-accent-soft); border-radius: 8px; background: var(--palette-panel); font-size: .87rem; }
.game-facts strong { color: var(--palette-accent); }
.comparison-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.comparison-wrap table { width: 100%; min-width: 620px; border-collapse: collapse; text-align: left; font-size: .87rem; }
.comparison-wrap th, .comparison-wrap td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.comparison-wrap thead { background: var(--palette-accent-soft); color: var(--palette-surface-blue); }
.comparison-wrap tbody tr:nth-child(even) { background: var(--palette-panel); }
.comparison-wrap tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 900px) {
  .play-layout, .reading-layout { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .related .grid { max-height: none; grid-auto-columns: 120px; }
  .guide { position: static; grid-row: 1; display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
  .guide h2 { margin: 0 5px 0 0; }
}
@media (max-width: 520px) {
  main.wrap { padding-top: 12px; }
  .bar-inner { min-height: auto; }
  .stage { aspect-ratio: 1.58 / 1; }
  body[data-game="index"] .cover::before { inset: 7px; }
  body[data-game="index"] .hero-wordmark { max-width: 250px; margin-bottom: 10px; }
  .play { min-width: 82px; }
  .player-shell { border-radius: 13px; }
  .game-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .guide { padding: 8px; }
  .guide h2 { flex: 0 0 100%; }
}
@media (prefers-reduced-motion: reduce) { .play { transition: none; } }


@media (min-width: 901px) {
  .play-layout--with-player .stage { aspect-ratio: 16 / 9; }
  .play-layout--with-player > .game-column { display: contents; }
  .play-layout--with-player .player-shell { grid-area: 1 / 1; }
  .play-layout--with-player .source-note { grid-area: 2 / 1; margin-top: -10px; }
  .play-layout--with-player > .related {
    grid-area: 1 / 2;
    align-self: stretch;
    contain: size;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .play-layout--with-player .related-head { flex: 0 0 auto; }
  .play-layout--with-player .related .grid {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    align-content: start;
  }
}


.guide { align-self: start; z-index: 2; }
.guide a[aria-current="location"] { color: var(--palette-accent); background: var(--palette-accent-soft); font-weight: 750; }
@media (max-width: 900px) {
  .guide {
    position: sticky;
    top: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    padding: 6px;
    white-space: nowrap;
    scrollbar-width: thin;
  }
  .guide h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .guide a { flex: 0 0 auto; }
  .copy h2[id] { scroll-margin-top: 64px; }
}


/* Arcade palette and shared player surfaces. */
:root {
  --ink: var(--palette-ink);
  --paper: var(--palette-paper);
  --line: var(--palette-line);
  --muted: var(--palette-muted);
  --accent: var(--palette-accent);
  --navy: var(--palette-navy);
  --yellow: var(--palette-yellow);
  --panel: var(--palette-panel);
}
.bar { background: var(--navy); border-color: var(--palette-surface-blue); color: var(--palette-panel); }
.bar-inner { min-height: 70px; }
.brand { font-weight: 850; letter-spacing: -.04em; }
.brand strong { color: var(--yellow); }
.brand img { border-radius: 8px; }
.search { background: var(--palette-surface-blue); border-color: var(--palette-border-blue); }
.search input::placeholder, .search button { color: var(--palette-muted-light); }
.random { background: var(--palette-stage-blue); color: var(--palette-panel); border-color: var(--palette-border-blue); }
.random:hover, .random:focus-visible { background: var(--palette-border-blue); }
.random span { color: var(--yellow); }
.lang { color: var(--palette-accent-soft); }
.lang:hover { color: var(--yellow); }
.navigation { background: var(--palette-panel); border-bottom: 2px solid var(--palette-line); }
.navigation nav { gap: 10px; }
.navigation a { padding: 9px 11px; border-radius: 6px; }
.navigation a:first-child { margin-left: -6px; }
.navigation a:hover { background: var(--palette-accent-soft); }
main.wrap { padding-top: 24px; }
.player-shell { border: 2px solid var(--navy); border-radius: 14px; box-shadow: 0 5px 0 var(--palette-shadow), 0 12px 24px color-mix(in srgb, var(--palette-surface-blue) 7.5%, transparent); }
.stage { background: var(--palette-navy); }
.cover,
body[data-game="index"] .cover {
  background:
    linear-gradient(0deg, var(--palette-navy) 0%, transparent 58%),
    radial-gradient(ellipse at 50% 38%, var(--palette-glow-blue) 0%, var(--palette-stage-blue) 47%, var(--palette-navy) 83%);
}
.cover::before,
body[data-game="index"] .cover::before {
  content: ""; position: absolute; inset: 13px; border: 0; border-radius: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--palette-outline-blue),var(--palette-outline-blue)) top left / 22px 2px,
    linear-gradient(var(--palette-outline-blue),var(--palette-outline-blue)) top left / 2px 22px,
    linear-gradient(var(--palette-outline-blue),var(--palette-outline-blue)) top right / 22px 2px,
    linear-gradient(var(--palette-outline-blue),var(--palette-outline-blue)) top right / 2px 22px,
    linear-gradient(var(--palette-outline-blue),var(--palette-outline-blue)) bottom left / 22px 2px,
    linear-gradient(var(--palette-outline-blue),var(--palette-outline-blue)) bottom left / 2px 22px,
    linear-gradient(var(--palette-outline-blue),var(--palette-outline-blue)) bottom right / 22px 2px,
    linear-gradient(var(--palette-outline-blue),var(--palette-outline-blue)) bottom right / 2px 22px;
  background-repeat: no-repeat;
  opacity: .6;
}
body[data-game="index"] .cover::after {
  inset: 48% 0 0; width: auto; aspect-ratio: auto; transform: none;
  background:
    repeating-linear-gradient(0deg,transparent 0 23px,color-mix(in srgb, var(--palette-outline-blue) 13.3%, transparent) 24px 25px),
    repeating-linear-gradient(90deg,transparent 0 41px,color-mix(in srgb, var(--palette-outline-blue) 13.3%, transparent) 42px 43px);
  mask-image: linear-gradient(transparent,var(--palette-black));
}
.hero-art img { border-radius: 9px; border: 2px solid var(--palette-muted-light); }
.hero-copy h1 { color: var(--palette-panel); }
.play {
  min-height: 51px; min-width: 142px; border: 2px solid var(--palette-navy); border-radius: 7px;
  color: var(--navy); background: var(--yellow); box-shadow: 0 4px 0 var(--palette-gold), 0 10px 18px color-mix(in srgb, var(--palette-black) 37.6%, transparent);
  font-weight: 900;
}
.play:hover { background: var(--palette-yellow-soft); }
.player-bar { background: var(--panel); border-color: var(--palette-shadow); }
.player-actions button { background: var(--palette-panel); border-color: var(--palette-line); }
.related, .guide, .copy { background: var(--panel); border-color: var(--line); }
.related { border-radius: 13px; }
.related-head { border-color: var(--line); padding-bottom: 9px; }
.related-head h2 { font-size: 1.12rem; }
.related-head a { background: transparent; border: 1px solid var(--palette-muted-light); }
.related-head a:hover { background: var(--palette-accent-soft); text-decoration: none; }
.related .card { aspect-ratio: auto; background: var(--palette-white); border: 1px solid var(--palette-line); }
.related .card img { aspect-ratio: 20 / 13; height: auto; }
.related .card span {
  position: static; padding: 6px 7px; color: var(--ink); background: transparent;
  font-size: .78rem; font-weight: 750; line-height: 1.25;
}
.related .card:hover img { opacity: 1; }
.related .card:hover span { color: var(--accent); }
.reading-main .copy { border-radius: 13px; }
.guide h2 { color: var(--palette-surface-blue); }
.guide a[aria-current="location"] { color: var(--palette-stage-blue); background: var(--palette-accent-soft); box-shadow: inset 3px 0 var(--palette-accent-strong); }
.game-facts p { background: var(--palette-paper); }
.site-footer { background: var(--palette-panel); }
@media (max-width: 520px) {
  .bar-inner { min-height: auto; }
  .navigation nav { gap: 5px; }
  .navigation a { padding-inline: 8px; }
  main.wrap { padding-top: 13px; }
  .play { min-width: 86px; min-height: 40px; }
  .cover::before, body[data-game="index"] .cover::before { inset: 7px; }
}


@media (min-width: 901px) {
  .play-layout--with-player .related .grid { grid-auto-rows: max-content; }
}


body[data-game="index"] .play-layout--topic .hero-wordmark { width: min(100%, 290px); margin-bottom: 10px; }
body[data-game="index"] .play-layout--topic .hero-copy h1 {
  clip-path: none; position: static; width: auto; height: auto; overflow: visible;
  white-space: normal; margin: 0 0 14px; font-size: clamp(1.3rem, 3.4vw, 2.9rem);
  line-height: 1.08; letter-spacing: -.04em;
}
@media (max-width: 520px) {
  body[data-game="index"] .play-layout--topic .hero-wordmark { width: min(58%, 145px); margin-bottom: 4px; }
  body[data-game="index"] .play-layout--topic .hero-copy h1 { margin-bottom: 7px; font-size: clamp(1.16rem, 5vw, 1.7rem); }
}


.embed-paused { display: grid; place-items: center; padding: 16px; text-align: center; background: radial-gradient(ellipse at 50% 30%, var(--palette-glow-blue), var(--palette-navy) 80%); }
.embed-paused img { display: block; width: clamp(70px, 12vw, 150px); height: auto; margin: 0 auto 10px; border-radius: 8px; border: 1px solid var(--palette-outline-blue); }
.embed-paused h1 { margin: 0 0 3px; font-size: clamp(1.2rem, 3.2vw, 2.5rem); line-height: 1.1; }
.embed-paused p { margin: 0 0 9px; color: var(--palette-muted-light); }
.embed-paused a { color: var(--palette-yellow); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) { .embed-paused { min-height: 190px; } }
