
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body-font); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--link); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img { display: block; max-width: 100%; object-fit: cover; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: inherit; line-height: 1.05; }
h1, h2 { font-family: var(--display-font); letter-spacing: -.045em; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.45rem, 3.2vw, 2.3rem); }
.shell { width: min(calc(100% - 3.5rem), 1250px); margin-inline: auto; }
.skip { position: absolute; z-index: 4; inset: .5rem auto auto 1rem; transform: translateY(-155%); padding: .65rem 1rem; background: var(--surface); }
.skip:focus { transform: none; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.85rem; width: fit-content; padding: .55rem 1.15rem; border: 1px solid transparent; border-radius: var(--button-radius); background: var(--button); color: var(--button-ink); font-weight: 750; text-decoration: none; cursor: pointer; }
.button:hover { filter: brightness(.94); }
.eyebrow { margin-bottom: .8rem; color: var(--accent-text); font-size: .875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.theme-arcade {
  --paper: #15171b; --ink: #f7f8ed; --muted: #b9bdc6; --surface: #202329; --raised: #292e35; --line: #3b414b;
  --hero: #20242a; --hero-line: #41464f; --link: #dafb69; --focus: #e8ff8b; --accent-text: #dafb69; --button: #d6fa56; --button-ink: #1b2111;
  --display-font: 'Arial Black', 'Segoe UI', sans-serif; --body-font: 'Segoe UI', system-ui, sans-serif;
  --radius: .35rem; --button-radius: .3rem; --card-radius: .35rem; color-scheme: dark;
}
.theme-puzzle {
  --paper: #f3f4ff; --ink: #242443; --muted: #525575; --surface: #fff; --raised: #e7e8fe; --line: #d9d9f1;
  --hero: #dedffe; --hero-line: #c6c8f7; --link: #3936a0; --focus: #4338ca; --accent-text: #3d3ba6; --button: #3d3aa4; --button-ink: #fff;
  --display-font: 'Trebuchet MS', 'Segoe UI', sans-serif; --body-font: 'Segoe UI', system-ui, sans-serif;
  --radius: 1.35rem; --button-radius: .7rem; --card-radius: .8rem;
}
.theme-guess {
  --paper: #fff4e3; --ink: #311f28; --muted: #674a52; --surface: #fffaf1; --raised: #f9dfbc; --line: #e9cbac;
  --hero: #fadaad; --hero-line: #e8bd91; --link: #85380f; --focus: #9c3d0b; --accent-text: #843409; --button: #812f0c; --button-ink: #fff7ec;
  --display-font: Georgia, 'Times New Roman', serif; --body-font: 'Segoe UI', system-ui, sans-serif;
  --radius: 1.75rem; --button-radius: 999px; --card-radius: .95rem;
}
.theme-lyrics {
  --paper: #fbf8f4; --ink: #291f22; --muted: #67575f; --surface: #fffdfa; --raised: #f2e3e6; --line: #dccdd2;
  --hero: #f1dce2; --hero-line: #dcbcc7; --link: #8c244d; --focus: #8c244d; --accent-text: #842544; --button: #8c244d; --button-ink: #fff7fa;
  --display-font: Georgia, 'Times New Roman', serif; --body-font: 'Segoe UI', system-ui, sans-serif;
  --radius: 0; --button-radius: .2rem; --card-radius: .15rem;
}
.theme-rhythm {
  --paper: #151329; --ink: #fbf5ff; --muted: #c9bfd9; --surface: #222039; --raised: #332950; --line: #4b3d6a;
  --hero: #2d1d49; --hero-line: #51366e; --link: #baf5e0; --focus: #a7f4df; --accent-text: #bbf5e3; --button: #b1f4dc; --button-ink: #172322;
  --display-font: 'Trebuchet MS', 'Segoe UI', sans-serif; --body-font: 'Segoe UI', system-ui, sans-serif;
  --radius: 1.05rem; --button-radius: 999px; --card-radius: .7rem; color-scheme: dark;
}

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 850; font-size: 1.25rem; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.brand img { flex: 0 0 38px; padding: 3px; border-radius: .55rem; background: #fff4df; object-fit: contain; }
.desktop-nav, .dialog-nav { display: flex; align-items: center; gap: clamp(.5rem, 1.25vw, 1.15rem); }
.desktop-nav a, .dialog-nav a { font-size: .9rem; font-weight: 700; color: var(--ink); text-decoration: none; padding: .45rem .12rem; }
.desktop-nav a[aria-current], .desktop-nav a:hover { color: var(--link); text-decoration: underline; }
.category-toggle { display: none; }
.category-toggle, .dialog-head button, .spotlight-controls button, .site-footer button {
  min-height: 2.55rem; padding: .35rem .65rem; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: .35rem; cursor: pointer;
}
#categories { width: min(calc(100% - 2rem), 29rem); max-height: calc(100% - 2rem); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: .85rem; padding: clamp(1rem, 5vw, 1.6rem); }
#categories::backdrop { background: rgb(10 8 24 / .66); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.dialog-head h2 { font-size: 1.45rem; }
.dialog-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dialog-nav a { display: block; background: var(--raised); border-radius: .4rem; padding: .65rem; }
.dialog-nav a[aria-current] { color: var(--link); text-decoration: underline; }

.hero { min-width: 0; margin-top: clamp(1rem, 3vw, 2.75rem); padding: clamp(1.25rem, 4vw, 3rem); background: var(--hero); border: 1px solid var(--hero-line); border-radius: var(--radius); display: grid; align-items: center; gap: clamp(1.5rem, 4vw, 3.25rem); }
.hero-intro { min-width: 0; }
.hero-intro h1 { max-width: 12ch; }
.hero-intro > p:last-child { max-width: 35ch; margin-top: 1.1rem; font-size: clamp(1rem, 2vw, 1.15rem); color: var(--muted); }
.theme-arcade .hero { grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr); border-top: .35rem solid var(--button); background: repeating-linear-gradient(150deg, transparent 0 25px, rgb(255 255 255 / .05) 25px 26px), var(--hero); }
.theme-arcade .hero-intro h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); text-transform: uppercase; letter-spacing: -.075em; }
.theme-puzzle .hero { grid-template-columns: minmax(0, .75fr) minmax(0, 1.2fr); background: radial-gradient(ellipse at 0 0, #f8d7e9, transparent 63%), var(--hero); }
.hero-puzzle .grid-mosaic .game-card img { aspect-ratio: 16/9; }
.hero-puzzle .grid-mosaic .game-card:first-child img { aspect-ratio: auto; }
.theme-guess .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); background: radial-gradient(circle at 12% 5%, #ffe9c2, transparent 62%), var(--hero); }
.theme-guess .hero-intro { grid-column: 2; grid-row: 1; }
.theme-guess .hero-intro h1 { max-width: 7ch; font-size: clamp(3rem, 8vw, 7rem); }
.theme-guess .spotlight { grid-column: 1; grid-row: 1; padding: .65rem; background: var(--surface); border: 1px solid var(--hero-line); border-radius: 1rem; transform: rotate(-1deg); }
.theme-guess .spotlight-slide { grid-template-columns: 1fr; }
.theme-guess .spotlight-slide img { height: clamp(8.5rem, 20vw, 13rem); object-position: center 43%; }
.theme-guess .spotlight-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .35rem .75rem; padding: .8rem; }
.theme-guess .spotlight-copy h2 { grid-column: 1; }
.theme-guess .spotlight-copy p { grid-column: 1; margin: 0; }
.theme-guess .spotlight-copy .button { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; }
.theme-lyrics .hero { grid-template-columns: minmax(0, .68fr) minmax(0, 1.35fr); border-top: .3rem solid var(--accent-text); border-bottom: 1px solid var(--accent-text); }
.theme-lyrics .hero h1 { font-style: italic; }
.hero-issue { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 1rem; }
.hero-issue .card-editorial { transform: rotate(-2deg); }
.hero-issue .grid-rows { grid-template-columns: 1fr; }
.theme-rhythm .hero { grid-template-columns: 1fr; text-align: center; padding-bottom: clamp(1.25rem, 4vw, 2rem); background: radial-gradient(ellipse at 50% -30%, #69417f, transparent 75%), var(--hero); }
.theme-rhythm .hero h1, .theme-rhythm .hero-intro > p { max-width: none; }
.theme-rhythm .hero-intro > p:last-child { max-width: 55ch; margin-inline: auto; }
.hero-tracks { max-width: 58rem; width: 100%; margin-inline: auto; }

.spotlight { min-width: 0; }
.spotlight-slide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--surface); animation: reveal .32s ease both; }
@keyframes reveal { from { opacity: .55; transform: translateY(.25rem); } to { opacity: 1; transform: none; } }
.spotlight-slide img { width: 100%; height: 100%; min-height: 11rem; max-height: 17rem; }
.spotlight-copy { padding: clamp(.8rem, 2vw, 1.35rem); align-self: center; }
.spotlight-copy h2 { font-size: clamp(1.25rem, 3vw, 2rem); }
.spotlight-copy p { margin: .55rem 0 .8rem; color: var(--muted); }
.spotlight-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem .5rem; margin-top: .6rem; font-size: .875rem; }
.spotlight-controls button:hover, .category-toggle:hover, .dialog-head button:hover { background: var(--raised); }

.home-content { display: grid; gap: clamp(2.25rem, 6vw, 4.75rem); margin-block: clamp(2.5rem, 6vw, 4.75rem); }
.section-head { margin-bottom: 1.1rem; }
.section-head p { color: var(--muted); max-width: 63ch; margin-top: .45rem; }
.shelf-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3.5vw, 2.5rem); align-items: start; }
.shelf-pair > * { min-width: 0; }
.category-shelf { container-type: inline-size; }
.shelf-pair .showcase { padding: clamp(.85rem, 2.2vw, 1.4rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.theme-guess .shelf-pair { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.theme-lyrics .shelf-pair .showcase { padding: 1rem 0 0; border-width: 2px 0 0; border-color: var(--accent-text); background: transparent; }
.theme-rhythm .shelf-pair .showcase:nth-child(even) { background: var(--raised); }
.showcase-billboard, .showcase-mosaic { border-radius: var(--radius); padding: clamp(.9rem, 3vw, 2rem); background: var(--raised); }





.game-grid { --gap: clamp(.6rem, 1.55vw, 1rem); min-width: 0; display: grid; gap: var(--gap); }
.grid-tiles, .grid-strip { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.grid-strip { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); }
.grid-rows { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.grid-tracks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.game-card { min-width: 0; display: flex; flex-direction: column; gap: 0; position: relative; overflow: hidden; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--surface); transition: border-color .18s, transform .18s; }
.game-card:hover { border-color: var(--link); transform: translateY(-3px); }
.game-card strong { font-size: .98rem; line-height: 1.28; overflow-wrap: anywhere; }
.game-card img { width: 100%; height: auto; aspect-ratio: 16/10; }
.card-content { display: grid; gap: .35rem; padding: .55rem .65rem; min-width: 0; }
.card-content small { font-size: .875rem; color: var(--muted); }
.card-strip img { aspect-ratio: 5/3; }
.card-strip { border-width: 0 0 2px; background: var(--raised); }
.card-rows { display: grid; grid-template-columns: 3.45rem minmax(0, 1fr); align-items: center; }
.card-rows img { aspect-ratio: 1; height: 100%; min-height: 3.45rem; }
.card-tracks { text-align: left; background: var(--raised); }
.card-tracks img { aspect-ratio: 2.3; }
.theme-rhythm .card-tracks { border-bottom: .25rem solid #a2efd6; }
.theme-rhythm .card-tracks:nth-child(2) { border-bottom-color: #dcb0ff; }
.theme-rhythm .card-tracks:nth-child(3) { border-bottom-color: #ffc5ea; }
.grid-billboard, .grid-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-billboard > :first-child, .grid-mosaic > :first-child { grid-column: 1 / -1; }
.grid-billboard .game-card { display: grid; grid-template-columns: minmax(3.5rem, 27%) minmax(0, 1fr); align-items: center; }
.grid-billboard .game-card img { height: 100%; aspect-ratio: 1; }
.grid-mosaic .game-card img { aspect-ratio: 16/9; }
.grid-billboard .game-card:first-child strong, .grid-mosaic .game-card:first-child strong { font-size: clamp(1.05rem, 2.7vw, 1.65rem); }
@media (min-width: 720px) {
  .grid-billboard, .grid-mosaic { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
  .grid-billboard > :first-child, .grid-mosaic > :first-child { grid-column: 1; grid-row: 1 / span 2; }
  .grid-billboard .game-card:first-child { display: flex; }
  .grid-billboard .game-card:first-child img, .grid-mosaic .game-card:first-child img { flex: 1; min-height: 0; aspect-ratio: 16/10; }
  .grid-billboard:has(> :nth-child(4):last-child) > :last-child, .grid-mosaic:has(> :nth-child(4):last-child) > :last-child { grid-column: 2 / -1; }
  .grid-mosaic:has(> :nth-child(4):last-child) > :last-child img { aspect-ratio: 3.1; }
}
@container (max-width: 560px) {
  .grid-rows { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
  .grid-tiles, .grid-strip { grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr)); }
}

.breadcrumbs { margin-bottom: 1.25rem; font-size: .9rem; color: var(--muted); }
.breadcrumbs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .45rem .65rem; }
.breadcrumbs li + li::before { content: '/'; margin-right: .65rem; }
.catalog, .detail, .player, .prose { padding-block: 1.6rem clamp(2.25rem, 7vw, 5.5rem); min-height: 56vh; }
.page-intro, .game-summary { padding: clamp(1rem, 4vw, 2.5rem); background: var(--hero); border: 1px solid var(--hero-line); border-radius: var(--radius); }
.page-intro p { margin-top: .85rem; max-width: 64ch; color: var(--muted); }
.catalog-filter { display: grid; grid-template-columns: auto minmax(0, 24rem) 1fr; align-items: center; gap: .65rem; margin: 1.4rem 0; }
.catalog-filter label { font-weight: 700; }
.catalog-filter input { width: 100%; padding: .55rem .6rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--surface); color: var(--ink); }
.catalog-filter p { color: var(--muted); }
.catalog #game-list { margin-top: 1.2rem; }
.catalog .grid-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); }
.game-summary { display: grid; grid-template-columns: clamp(8rem, 22vw, 14.5rem) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.game-summary > img { width: 100%; height: auto; max-width: 14.5rem; aspect-ratio: 1; border-radius: var(--card-radius); }
.game-summary h1 { font-size: clamp(2rem, 5.5vw, 4rem); overflow-wrap: anywhere; }
.summary-copy > p:not(.eyebrow) { margin: .65rem 0 .9rem; color: var(--muted); max-width: 56ch; }
.detail-content { margin-top: clamp(1.15rem, 4vw, 2.5rem); }
.game-guide { display: grid; gap: 1rem; }
.game-guide section { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.game-guide h2, .detail-related h2 { font-size: clamp(1.25rem, 2.7vw, 1.8rem); }
.game-guide p { margin-top: .5rem; color: var(--muted); }
.detail-related { margin-top: 1.75rem; }
.detail-related h2 { margin-bottom: .8rem; }
.detail-related .grid-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); }
.theme-arcade .game-summary { border-left: .35rem solid var(--button); }
.theme-puzzle .game-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.theme-guess .detail-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 1.25rem; align-items: start; }
.theme-guess .detail-related { margin: 0; }
.theme-lyrics .game-summary { grid-template-columns: minmax(0, 1fr) clamp(8rem, 22vw, 14.5rem); }
.theme-lyrics .game-summary > img { order: 1; }
.theme-lyrics .game-guide section { padding-inline: 0; border-width: 1px 0 0; background: transparent; }
.theme-lyrics .detail-related { border-top: 2px solid var(--accent-text); padding-top: 1rem; }
.theme-rhythm .game-summary { background: radial-gradient(ellipse at 20% -40%, #6a3f88, transparent 75%), var(--hero); }
.theme-rhythm .game-guide { display: flex; flex-wrap: wrap; }
.theme-rhythm .game-guide section { flex: 1 1 18rem; }

.player-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.player-head h1 { font-size: clamp(1.9rem, 5vw, 3.5rem); overflow-wrap: anywhere; }
.player-head a { flex: 0 0 auto; }
.player-stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.player-prompt { padding: clamp(1.25rem, 4vw, 3rem); max-width: 50rem; }
.player-prompt p { margin: .7rem 0 1rem; color: var(--muted); }
.player-stage iframe { display: block; width: 100%; height: clamp(23rem, 78vh, 54rem); border: 0; background: #121212; }
.prose { max-width: 53rem; overflow-wrap: anywhere; }
.prose h1 { font-size: clamp(2.35rem, 5.5vw, 4rem); margin-bottom: 1rem; }
.prose h2 { margin: 1.6rem 0 .5rem; font-size: clamp(1.3rem, 3.5vw, 2rem); }
.prose p { margin-bottom: .75rem; }
.prose .updated { color: var(--muted); font-size: .875rem; }
.prose li + li, .prose dd + dt { margin-top: .6rem; }
.prose dt { font-weight: 750; }
.prose dd { margin-left: 0; color: var(--muted); }
.site-footer { padding: 1.5rem 0 2rem; background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem 1rem; }
.site-footer nav > * { color: var(--ink); font-size: .9rem; }
.site-footer p { flex-basis: 100%; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }

@media (max-width: 850px) {
  .desktop-nav { display: none; }
  .category-toggle { display: block; }
}
@media (max-width: 719px) {
  .shell { width: calc(100% - 2rem); }
  .theme-arcade .hero, .theme-puzzle .hero, .theme-guess .hero, .theme-lyrics .hero { grid-template-columns: minmax(0, 1fr); }
  .theme-guess .hero-intro, .theme-guess .spotlight { grid-column: auto; grid-row: auto; }
  .theme-guess .spotlight { transform: none; }
  .theme-guess .hero-intro h1 { max-width: none; }
  .hero-intro h1 { max-width: none; }
  .hero-puzzle .grid-mosaic > :first-child { grid-column: auto; }
  .hero-puzzle .grid-mosaic .game-card:first-child img { aspect-ratio: 16/9; }
  .shelf-pair, .theme-guess .shelf-pair, .theme-guess .detail-content { grid-template-columns: minmax(0, 1fr); }
  .theme-guess .detail-related { margin-top: .5rem; }
  .catalog-filter { grid-template-columns: minmax(0, 1fr); }
  .catalog .grid-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 8rem), 1fr)); }
}
@media (max-width: 430px) {
  .shell { width: calc(100% - 1.5rem); }
  .header-inner { min-height: 4.25rem; gap: .5rem; }
  .brand { font-size: 1.1rem; gap: .35rem; }
  .brand img { width: 34px; height: 34px; flex-basis: 34px; }
  .hero-issue { grid-template-columns: minmax(0, 1fr); }
  .hero-issue .card-editorial { transform: none; }
  .hero-issue .card-editorial img { aspect-ratio: 2; }
  .grid-tracks { grid-template-columns: minmax(0, 1fr); }
  .card-tracks { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); align-items: center; }
  .card-tracks img { aspect-ratio: 2; }
  .theme-guess .spotlight-copy { grid-template-columns: minmax(0, 1fr); }
  .theme-guess .spotlight-copy .button { grid-column: 1; grid-row: auto; margin-top: .2rem; }
  .spotlight-slide { grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); }
  .spotlight-copy .button { padding-inline: .5rem; font-size: .9rem; }
  .grid-tiles, .grid-strip, .grid-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-rows { grid-template-columns: 2.55rem minmax(0, 1fr); }
  .card-rows img { min-height: 2.55rem; }
  .card-rows .card-content { padding: .3rem .35rem; }
  .card-rows strong { font-size: .86rem; }
  .grid-billboard .game-card { display: flex; }
  .grid-billboard .game-card img { height: auto; aspect-ratio: 1.65; }
  .grid-billboard .game-card:not(:first-child) small { color: var(--muted); }
  .game-summary, .theme-lyrics .game-summary { grid-template-columns: minmax(0, 1fr); }
  .game-summary > img { max-width: min(9.5rem, 55%); }
  .theme-lyrics .game-summary > img { order: 0; }
  .theme-puzzle .game-guide { grid-template-columns: minmax(0, 1fr); }
  .player-head { flex-direction: column; gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .game-card, .spotlight-slide { transition: none; animation: none; }
}


@media (min-width: 900px) {
  .home-content > .category-shelf { display: grid; grid-template-columns: minmax(11rem, .65fr) minmax(0, 2fr); gap: 1.5rem; align-items: start; }
  .home-content > .category-shelf .section-head { margin-bottom: 0; }
  .home-content > .category-shelf .grid-strip { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
  .home-content > .category-shelf .grid-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.75rem), 1fr)); }
}


/* Advertisement spacing belongs to the placement, not the surrounding panels. */
.ad-placement {
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 100%;
  margin-block: 50px;
  overflow: clip;
}
.ad-placement > div {
  display: grid;
  justify-items: center;
  width: min(100%, 336px);
  max-width: 100%;
}
.ad-placement + .catalog,
.ad-placement + .detail { padding-block-start: 0; }
.home-lead > .hero,
.home-tail { margin-block-start: 0; }
.home-lead > .home-content { margin-block-end: 0; }

/* Fill each row with its own card count while keeping every card visible. */
.game-grid[data-balanced] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.game-grid[data-balanced] > .game-card {
  flex: 0 0 calc((100% - var(--gap) * (var(--row-items, 2) - 1)) / var(--row-items, 2));
}
.game-grid[data-balanced] > .game-card:only-child {
  flex-basis: min(100%, 15rem);
}
.hero-issue .grid-rows[data-balanced] > .game-card { flex-basis: 100%; }
@media (max-width: 719px) {
  .showcase-billboard .grid-billboard:has(> :nth-child(4):last-child) > :last-child,
  .showcase-mosaic .grid-mosaic:has(> :nth-child(4):last-child) > :last-child { grid-column: 1 / -1; }
  .showcase-billboard .grid-billboard:has(> :nth-child(4):last-child) > :last-child img,
  .showcase-mosaic .grid-mosaic:has(> :nth-child(4):last-child) > :last-child img { aspect-ratio: 2.3; }
}
@media (max-width: 430px) {
  .showcase-billboard .grid-billboard:has(> :nth-child(4):last-child) > :last-child { display: grid; }
  .showcase-billboard .grid-billboard:has(> :nth-child(4):last-child) > :last-child img { aspect-ratio: 1; height: 100%; }
}

.game-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 1rem; }
.game-facts div { padding: .32rem .6rem; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--surface); }
.game-facts dt, .game-facts dd { display: inline; margin: 0; font-size: .875rem; }
.game-facts dt { margin-right: .3rem; font-weight: 700; }
.game-facts dd { color: var(--muted); }
.detail-content { display: grid; gap: clamp(1.6rem, 3.5vw, 3rem); }
.theme-guess .detail-content { grid-template-columns: minmax(0, 1fr); }
.detail-content .game-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 1rem;
}
.game-guide section { padding: clamp(.95rem, 2.2vw, 1.4rem); }
.game-guide ol { color: var(--muted); margin: .5rem 0 0; padding-inline-start: 1.25rem; }
.game-guide li + li { margin-top: .45rem; }
.game-guide .guide-start { grid-row: span 2; }
.game-guide .guide-start > p { margin-top: .8rem; }
.theme-arcade .guide-start { border-top: 3px solid var(--button); }
.theme-puzzle .guide-start, .theme-guess .guide-start { background: var(--raised); }
.theme-rhythm .guide-start { background: linear-gradient(135deg,var(--raised),var(--surface)); }
.detail-content .detail-related { margin: 0; }
.detail-related .section-head h2 { margin-bottom: 0; }
.detail-related .section-head p { margin-top: .4rem; }
.detail-related-alternate { border-top: 1px solid var(--line); padding-top: 1.1rem; }
@media (max-width: 680px) {
  .detail-content .game-guide { grid-template-columns: minmax(0, 1fr); }
  .game-guide .guide-start { grid-row: auto; }
}


@media (min-width: 720px) {
  .shelf-pair:has(.grid-rows):has(:is(.grid-tiles, .grid-strip)) {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (min-width: 900px) {
  .shelf-pair:has(.grid-rows):has(:is(.grid-tiles, .grid-strip)) > .showcase {
    display: grid;
    grid-template-columns: minmax(11rem, .65fr) minmax(0, 2fr);
    gap: 1.5rem;
    align-items: start;
  }
  .shelf-pair:has(.grid-rows):has(:is(.grid-tiles, .grid-strip)) > .showcase > .section-head {
    margin-bottom: 0;
  }
}
