:root {
  color-scheme: dark;
  --ink: #f7f4df;
  --muted: #b8b4d8;
  --panel: #17142d;
  --panel-2: #211746;
  --dark: #0d0b15;
  --cyan: #00e5ff;
  --pink: #ff3cac;
  --yellow: #ffe66d;
  --lime: #7cff6b;
  --red: #ff4d68;
  --blue: #246bfe;
  --orange: #ff9f1c;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.08), transparent 26%),
    linear-gradient(315deg, rgba(255, 60, 172, 0.12), transparent 28%),
    radial-gradient(circle at 50% 0%, rgba(255, 230, 109, 0.11), transparent 22rem),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 18px),
    var(--dark);
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.16;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 11, 21, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--cyan);
  border-radius: var(--radius);
  color: var(--yellow);
  background: linear-gradient(135deg, var(--panel), #111);
  box-shadow: 0 0 0 3px rgba(255, 60, 172, 0.24), 0 0 24px rgba(0, 229, 255, 0.34);
  font-family: "Pixelify Sans", monospace;
  font-weight: 700;
}

.brand strong,
h1,
h2,
h3,
.cabinet-top {
  font-family: "Pixelify Sans", Inter, sans-serif;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 1.15rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.73rem;
  margin-top: 1px;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.main-nav a,
.header-cta,
.button,
.icon-button,
.reaction-row button,
.rating button,
.search-panel button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

.main-nav a {
  display: inline-grid;
  place-items: center;
  padding: 9px 11px;
  font-weight: 700;
  font-size: 0.9rem;
}

.main-nav a:hover,
.header-cta:hover,
.button-secondary:hover,
.icon-button:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.24);
}

.header-cta {
  display: inline-grid;
  place-items: center;
  padding: 9px 15px;
  font-weight: 800;
  color: #0d0b15;
  background: var(--yellow);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.section-band,
.content-section,
.split-section,
.notice-strip,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.78fr);
  gap: 30px;
  align-items: center;
  min-height: calc(100vh - 84px);
  padding: 54px 0 36px;
}

.page-hero {
  padding: 72px 0 14px;
}

.page-hero h1,
.play-header h1,
.detail-copy h1 {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7.4vw, 6rem);
  line-height: 0.92;
  text-wrap: balance;
  text-shadow: 5px 5px 0 rgba(255, 60, 172, 0.68), 9px 9px 0 rgba(0, 229, 255, 0.36);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-lede {
  max-width: 680px;
  font-size: 1.08rem;
}

.search-panel {
  display: flex;
  max-width: 720px;
  padding: 7px;
  margin: 28px 0 18px;
  border: 2px solid rgba(0, 229, 255, 0.52);
  border-radius: var(--radius);
  background: rgba(13, 11, 21, 0.8);
  box-shadow: inset 0 0 28px rgba(0, 229, 255, 0.12), 0 0 28px rgba(255, 60, 172, 0.16);
}

.search-panel input {
  min-width: 0;
  flex: 1;
  border: 0;
  color: var(--ink);
  background: transparent;
  padding: 0 14px;
  outline: 0;
}

.search-panel button,
.button-primary {
  border: 0;
  color: #110b19;
  font-weight: 900;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.search-panel button {
  padding: 0 18px;
}

.hero-actions,
.play-actions,
.reaction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.icon-button,
.reaction-row button,
.rating button {
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-weight: 850;
}

.button {
  padding: 11px 18px;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.07);
}

.hero-cabinet {
  position: relative;
  padding: 18px;
  border: 3px solid #030304;
  border-radius: 8px 8px 28px 28px;
  background:
    linear-gradient(90deg, transparent 0 47%, rgba(255, 255, 255, 0.12) 47% 53%, transparent 53%),
    linear-gradient(135deg, #ff3cac, #6b38ff 48%, #00e5ff);
  box-shadow: var(--shadow), 0 0 50px rgba(0, 229, 255, 0.24);
  transform: rotate(1.2deg);
}

.cabinet-top {
  margin-bottom: 14px;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  color: var(--dark);
  text-align: center;
  font-size: 1.5rem;
  background: var(--yellow);
}

.cabinet-screen {
  position: relative;
  min-height: 430px;
  padding: 24px;
  overflow: hidden;
  border: 12px solid #111;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0.08) 50%),
    radial-gradient(circle at 50% 40%, rgba(0, 229, 255, 0.28), transparent 42%),
    #05070c;
  background-size: 100% 6px, auto, auto;
}

.cabinet-screen h2 {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 70px;
  color: var(--yellow);
}

.cabinet-screen p {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  margin: 0;
}

.screen-glow {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  box-shadow: inset 0 0 70px rgba(0, 229, 255, 0.18);
}

.pixel-scene {
  position: absolute;
  inset: 0;
}

.sprite {
  position: absolute;
  display: block;
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}

.ship {
  left: 18%;
  top: 36%;
  width: 54px;
  height: 38px;
  background: var(--cyan);
  clip-path: polygon(0 50%, 74% 0, 100% 50%, 74% 100%);
  animation: floatShip 2.3s ease-in-out infinite;
}

.coin {
  border: 5px solid var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--yellow);
  animation: blinkCoin 1.4s steps(2) infinite;
}

.coin-a {
  left: 56%;
  top: 22%;
}

.coin-b {
  left: 72%;
  top: 48%;
  animation-delay: 0.4s;
}

.block {
  background: var(--pink);
  box-shadow: 0 0 18px var(--pink);
}

.block-a {
  left: 40%;
  top: 55%;
}

.block-b {
  left: 78%;
  top: 25%;
}

.cabinet-controls {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 18px 0 4px;
}

.cabinet-controls span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid #111;
  box-shadow: inset -5px -6px 0 rgba(0, 0, 0, 0.25);
}

.cabinet-controls span:nth-child(2) {
  background: var(--cyan);
}

.cabinet-controls span:nth-child(3) {
  background: var(--pink);
}

.notice-strip {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid rgba(255, 230, 109, 0.38);
  border-radius: var(--radius);
  color: var(--dark);
  background: linear-gradient(135deg, var(--yellow), #fff1a3);
  box-shadow: var(--shadow);
}

.notice-strip span {
  color: #352409;
}

.content-section,
.split-section,
.play-section {
  padding: 72px 0 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading a {
  color: var(--cyan);
  font-weight: 800;
  text-decoration-thickness: 2px;
}

.compact {
  margin-bottom: 16px;
}

.game-grid,
.category-grid,
.page-grid,
.feature-grid,
.tech-grid {
  display: grid;
  gap: 16px;
}

.featured-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.game-card,
.content-panel,
.sidebar-card,
.info-block,
.page-grid article,
.feature-grid article,
.tech-grid article,
.roadmap article,
.category-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.game-card {
  overflow: hidden;
}

.game-thumb {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--card-a), var(--card-b));
}

.game-thumb::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.36);
}

.game-thumb::after {
  content: attr(data-icon);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(13, 11, 21, 0.84);
  font-family: "Pixelify Sans", monospace;
  font-size: 4rem;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.2);
}

.game-body {
  padding: 15px;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.tag {
  display: inline-grid;
  min-height: 25px;
  place-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  color: var(--dark);
  font-weight: 900;
  background: var(--cyan);
}

.game-body h3 {
  min-height: 3.2rem;
  margin: 12px 0 10px;
}

.play-link {
  display: grid;
  min-height: 40px;
  place-items: center;
  margin-top: 14px;
  border-radius: var(--radius);
  color: var(--dark);
  font-weight: 900;
  text-decoration: none;
  background: var(--yellow);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.detail-link {
  display: grid;
  min-height: 40px;
  place-items: center;
  margin-top: 14px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.detail-link:hover {
  border-color: var(--cyan);
}

.split-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.content-panel {
  padding: 20px;
}

.mini-list,
.score-list {
  display: grid;
  gap: 10px;
}

.mini-item,
.score-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}

.mini-item strong,
.score-list span {
  color: var(--ink);
}

.mini-item {
  color: inherit;
  text-decoration: none;
}

.mini-item p {
  margin: 2px 0 0;
}

.score-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: score;
}

.score-list li {
  counter-increment: score;
}

.score-list li::before {
  content: counter(score, decimal-leading-zero);
  color: var(--yellow);
  font-family: VT323, monospace;
  font-size: 1.6rem;
}

.score-list strong {
  color: var(--lime);
  font-family: VT323, monospace;
  font-size: 1.4rem;
}

.score-list a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.score-list a:hover {
  color: var(--cyan);
}

.category-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.category-card {
  display: grid;
  min-height: 128px;
  align-content: center;
  gap: 8px;
  padding: 18px;
  text-decoration: none;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
}

.category-card span {
  font-size: 2.1rem;
}

.category-card strong {
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.25rem;
}

.play-section {
  scroll-margin-top: 90px;
}

.play-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.icon-button,
.reaction-row button {
  padding: 10px 13px;
}

.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.game-shell {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(0, 229, 255, 0.42);
  border-radius: var(--radius);
  background: #05070c;
  box-shadow: 0 0 44px rgba(0, 229, 255, 0.15);
  touch-action: none;
}

.game-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
  font-family: VT323, monospace;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.06);
}

.game-toolbar strong {
  color: var(--yellow);
}

canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #070816;
  touch-action: none;
}

.game-prompt {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 32px));
  padding: 10px 14px;
  border: 1px solid rgba(255, 230, 109, 0.45);
  border-radius: var(--radius);
  color: var(--dark);
  text-align: center;
  font-weight: 900;
  background: var(--yellow);
}

.touch-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: none;
  grid-template-columns: repeat(3, 54px);
  grid-template-rows: repeat(3, 48px);
  gap: 7px;
  z-index: 3;
  touch-action: none;
}

.touch-button {
  border: 1px solid rgba(255, 230, 109, 0.75);
  border-radius: var(--radius);
  color: var(--dark);
  background: rgba(255, 230, 109, 0.9);
  box-shadow: inset -4px -5px 0 rgba(0, 0, 0, 0.16), 0 0 18px rgba(255, 230, 109, 0.22);
  cursor: pointer;
  font-family: VT323, monospace;
  font-size: 1.15rem;
  font-weight: 900;
  touch-action: none;
  user-select: none;
}

.touch-button.is-active {
  transform: translateY(2px);
  background: var(--lime);
}

.touch-up {
  grid-column: 2;
  grid-row: 1;
}

.touch-left {
  grid-column: 1;
  grid-row: 2;
}

.touch-down {
  grid-column: 2;
  grid-row: 2;
}

.touch-right {
  grid-column: 3;
  grid-row: 2;
}

.play-sidebar,
.below-play {
  display: grid;
  gap: 14px;
}

.sidebar-card,
.info-block {
  padding: 17px;
}

.control-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.control-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.control-list dt {
  color: var(--cyan);
  font-weight: 800;
}

.control-list dd {
  margin: 0;
  color: var(--muted);
}

.rating {
  display: flex;
  gap: 6px;
}

.rating button {
  width: 42px;
  color: var(--yellow);
  font-size: 1.4rem;
}

.rating button.active {
  color: var(--dark);
  background: var(--yellow);
}

.below-play {
  grid-template-columns: 1.2fr 0.8fr 1fr;
  margin-top: 18px;
}

.reaction-row button {
  color: var(--dark);
  background: var(--lime);
}

.page-grid,
.feature-grid,
.tech-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-grid article,
.feature-grid article,
.tech-grid article {
  padding: 20px;
}

.library-controls {
  padding-top: 34px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) minmax(160px, 210px);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(13, 11, 21, 0.82);
  padding: 0 12px;
}

.result-count {
  margin: 12px 0 0;
  color: var(--yellow);
  font-family: VT323, monospace;
  font-size: 1.35rem;
}

.library-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 64px 0 8px;
}

.detail-art {
  display: block;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-art::after {
  font-size: clamp(5rem, 14vw, 11rem);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.detail-grid {
  align-items: start;
}

.detail-controls {
  margin-top: 24px;
}

.feature-grid span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  color: var(--dark);
  font-family: VT323, monospace;
  font-size: 1.5rem;
  background: var(--cyan);
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.roadmap article {
  padding: 20px;
  border-top: 4px solid var(--pink);
}

.roadmap strong {
  display: block;
  margin-bottom: 8px;
  color: var(--yellow);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.25rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 58px 0 34px;
}

.site-footer strong {
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.4rem;
}

.site-footer p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--cyan);
  font-weight: 800;
}

@keyframes floatShip {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes blinkCoin {
  50% {
    opacity: 0.42;
    transform: scale(1.18);
  }
}

.splash-page::before,
.splash-page::after {
  position: fixed;
  inset: auto;
  z-index: 0;
  pointer-events: none;
  content: "";
}

.splash-page::before {
  top: 9vh;
  left: 8vw;
  width: 28vw;
  height: 28vw;
  max-width: 360px;
  max-height: 360px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  transform: rotate(12deg);
  box-shadow: 0 0 70px rgba(0, 229, 255, 0.14);
}

.splash-page::after {
  right: 7vw;
  bottom: 10vh;
  width: 22vw;
  height: 22vw;
  max-width: 280px;
  max-height: 280px;
  border: 1px solid rgba(255, 60, 172, 0.28);
  transform: rotate(-18deg);
  box-shadow: 0 0 80px rgba(255, 60, 172, 0.16);
}

.splash-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.splash-card {
  display: grid;
  width: min(620px, 100%);
  justify-items: center;
  gap: clamp(16px, 3vw, 24px);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(13, 11, 21, 0.82);
  box-shadow: var(--shadow), inset 0 0 60px rgba(0, 229, 255, 0.06);
  text-align: center;
}

.splash-logo-image {
  display: block;
  width: min(430px, 84vw);
  height: auto;
}

.loading-label {
  margin: 0;
  font-family: "Pixelify Sans", Inter, sans-serif;
  text-transform: uppercase;
}

.loading-panel {
  display: grid;
  width: min(420px, 100%);
  gap: 12px;
}

.loading-label {
  color: var(--ink);
  font-size: clamp(1.25rem, 4vw, 2rem);
}

.loading-track {
  height: 18px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.6);
}

.loading-track span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--yellow));
  box-shadow: 0 0 22px rgba(255, 60, 172, 0.5);
  animation: loadingPulse 1.8s ease-in-out infinite;
}

.splash-card h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.8rem, 6.4vw, 4.75rem);
  line-height: 0.92;
}

.splash-card h1 span {
  display: block;
}

@keyframes loadingPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scaleX(0.82);
    transform-origin: left center;
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .site-header.nav-open .main-nav,
  .site-header.nav-open .header-cta {
    display: flex;
    grid-column: 1 / -1;
  }

  .site-header.nav-open .main-nav {
    flex-wrap: wrap;
    justify-content: start;
  }

  .hero,
  .detail-hero,
  .split-section,
  .play-layout,
  .below-play {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .library-grid,
  .category-grid,
  .page-grid,
  .feature-grid,
  .tech-grid,
  .roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
  }

  .hero-cabinet {
    transform: none;
  }

  .touch-controls {
    display: grid;
  }

  .game-prompt {
    bottom: 178px;
  }
}

@media (max-width: 640px) {
  .section-band,
  .content-section,
  .split-section,
  .notice-strip,
  .site-footer {
    width: min(100% - 22px, 1180px);
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .search-panel,
  .notice-strip,
  .play-header,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .search-panel button {
    min-height: 46px;
  }

  .search-panel input {
    min-height: 46px;
    padding: 0 12px;
  }

  .featured-grid,
  .library-grid,
  .category-grid,
  .page-grid,
  .feature-grid,
  .tech-grid,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .detail-art {
    min-height: 300px;
  }

  .cabinet-screen {
    min-height: 360px;
  }

  .game-toolbar {
    flex-wrap: wrap;
    font-size: 1.15rem;
  }

  .touch-controls {
    right: 12px;
    bottom: 12px;
    grid-template-columns: repeat(3, 48px);
    grid-template-rows: repeat(3, 42px);
    gap: 6px;
  }

  .touch-button {
    font-size: 1rem;
  }

  .game-prompt {
    bottom: 150px;
    width: min(330px, calc(100% - 24px));
  }

  .splash-shell {
    padding: 16px;
  }

  .splash-card {
    min-height: min(720px, calc(100vh - 32px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
