:root {
  color-scheme: dark;
  --navy: #081426;
  --navy-soft: #0e1e33;
  --panel: #13253a;
  --cream: #f4ede0;
  --muted: #9daabd;
  --coral: #ff6b5b;
  --coral-light: #ff8b79;
  --line: rgba(244, 237, 224, 0.12);
  font-family: "DM Sans", sans-serif;
  background: var(--navy);
  color: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--navy); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--navy); background: var(--coral); }

.site-header {
  height: 82px;
  padding: 0 7.3%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(244, 237, 224, 0.06);
  position: relative;
  z-index: 3;
}
.brand { display: inline-flex; gap: 10px; align-items: center; font: 700 21px "Space Grotesk", sans-serif; letter-spacing: -1px; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; background: var(--coral); color: var(--navy); border-radius: 9px 9px 9px 3px; font-size: 19px; font-weight: 700; }
.brand-period { color: var(--coral); }
.header-link { color: var(--muted); font-size: 13px; font-weight: 600; transition: color .2s ease; }
.header-link:hover, .text-link:hover { color: var(--coral-light); }
.header-link span { color: var(--coral); margin-left: 7px; }

.hero { position: relative; min-height: 570px; padding: 88px 7.3% 96px; display: flex; align-items: center; overflow: hidden; background: radial-gradient(ellipse at 74% 48%, rgba(35, 75, 96, .31), transparent 38%), linear-gradient(120deg, #081426 0%, #0b1a2e 54%, #102138 100%); }
.hero-copy { position: relative; z-index: 2; width: 49%; max-width: 590px; }
.eyebrow { margin: 0 0 18px; color: var(--coral-light); font-size: 10px; font-weight: 800; letter-spacing: 1.8px; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; vertical-align: 1px; background: #79d6ac; border-radius: 50%; box-shadow: 0 0 12px rgba(121, 214, 172, .65); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 0; font: 700 clamp(46px, 6vw, 78px)/.99 "Space Grotesk", sans-serif; letter-spacing: -4px; }
.hero h1 span { color: var(--coral); }
.hero-description { max-width: 430px; margin: 24px 0 26px; color: #b6c0cd; font-size: 15px; line-height: 1.8; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 49px; padding: 0 21px; overflow: hidden; border: 0; border-radius: 8px; font-size: 13px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button-primary { background: var(--coral); color: #171b25; box-shadow: 0 7px 25px rgba(255, 107, 91, .18); }
.button-primary:not(:disabled):hover { transform: translateY(-2px); background: #ff8172; box-shadow: 0 11px 30px rgba(255, 107, 91, .28); }
.button-primary:not(:disabled)::after { position: absolute; inset: 0; content: ""; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.32) 48%, transparent 66%); transform: translateX(-130%); }
.button-primary:not(:disabled):hover::after { animation: button-shine .7s ease; }
@keyframes button-shine { to { transform: translateX(130%); } }
.button-primary:disabled { cursor: not-allowed; opacity: .76; box-shadow: none; }
.button span { font-size: 17px; }
.hero-footnote { margin: 14px 0 0; color: #7f8ea2; font-size: 11px; }
.hero-art { position: absolute; width: 51%; height: 430px; right: 3.2%; top: 50%; transform: translateY(-50%); }
.hero-orbit { position: absolute; border: 1px solid rgba(244,237,224,.08); border-radius: 50%; transform: rotate(-24deg); }
.orbit-one { width: 570px; height: 260px; right: 0; top: 90px; }
.orbit-two { width: 490px; height: 180px; right: 43px; top: 130px; border-color: rgba(255,107,91,.15); }
.hero-tile { position: absolute; width: 218px; height: 124px; overflow: hidden; border: 3px solid rgba(244,237,224,.18); border-radius: 13px; box-shadow: 0 22px 50px rgba(0,0,0,.4); }
.hero-tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-one { animation: tile-drift 5.2s ease-in-out infinite; }
.tile-two { animation: tile-drift 5.7s ease-in-out -1.3s infinite; }
.tile-three { animation: tile-drift 6s ease-in-out -2.4s infinite; }
.tile-four { animation: tile-drift 5.4s ease-in-out -3.1s infinite; }
@keyframes tile-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.tile-one { top: 48px; left: 18%; transform: rotate(-9deg); }
.tile-two { top: 55px; right: 7%; transform: rotate(8deg); }
.tile-three { bottom: 58px; left: 8%; transform: rotate(7deg); }
.tile-four { bottom: 39px; right: 15%; transform: rotate(-8deg); }
.hero-sticker { position: absolute; z-index: 1; display: grid; place-content: center; background: var(--coral); color: #182033; border-radius: 50%; text-align: center; font: 700 27px/.9 "Space Grotesk", sans-serif; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.sticker-top { width: 78px; height: 78px; top: 16px; left: 45%; transform: rotate(9deg); }
.sticker-top small { padding-top: 5px; font: 800 7px "DM Sans", sans-serif; letter-spacing: 1px; }
.sticker-bottom { display: flex; gap: 8px; align-items: center; width: auto; height: auto; padding: 12px 15px; bottom: 12px; left: 33%; border-radius: 7px; font: 700 10px "DM Sans", sans-serif; transform: rotate(-3deg); }
.sticker-bottom span, .hero-spark { color: var(--coral); }
.hero-spark { position: absolute; font-size: 30px; }
.spark-one { animation: sparkle 2.4s ease-in-out infinite; }
.spark-two { animation: sparkle 2.8s ease-in-out -1s infinite; }
@keyframes sparkle { 0%, 100% { opacity: .5; scale: .85; rotate: -10deg; } 50% { opacity: 1; scale: 1.15; rotate: 12deg; } }
.spark-one { top: 13px; right: 19%; }
.spark-two { bottom: 20px; left: 1%; color: #f2bf75; }
.hero-scroll { position: absolute; bottom: 22px; left: 7.3%; color: #74839a; font-size: 8px; letter-spacing: 1.5px; }
.hero-scroll span { display: inline-block; width: 17px; height: 1px; margin: 0 8px 3px 0; background: var(--coral); }

.section-wrap { width: 85.4%; max-width: 1320px; margin: 0 auto; }
.catalog { padding: 95px 0 88px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; }
.section-heading .eyebrow { margin-bottom: 9px; }
.section-heading h2 { margin: 0; font: 700 clamp(30px, 4vw, 42px)/1.1 "Space Grotesk", sans-serif; letter-spacing: -1.7px; }
.section-heading h2 span { color: var(--coral); }
.catalog-note { margin: 0 1px 5px 0; color: var(--muted); text-align: right; font-size: 11px; line-height: 1.8; }
.catalog-note span { color: var(--coral); margin-left: 4px; }
.catalog-controls { display: flex; gap: 20px; justify-content: space-between; align-items: center; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.filter-list { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { min-height: 34px; padding: 0 13px; color: #a9b5c5; background: transparent; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-size: 11px; font-weight: 600; transition: color .2s, background .2s, border-color .2s; }
.filter-chip:hover { color: var(--cream); border-color: var(--line); }
.filter-chip.is-active { color: var(--cream); background: #1a2c42; border-color: rgba(244,237,224,.1); }
.search-box { width: 205px; height: 38px; flex: 0 0 auto; display: flex; gap: 8px; align-items: center; padding: 0 10px; background: #0d1b2d; border: 1px solid rgba(244,237,224,.12); border-radius: 7px; }
.search-icon { color: var(--muted); font-size: 22px; transform: rotate(-20deg); }
.search-box input { width: 100%; min-width: 0; color: var(--cream); background: transparent; border: 0; outline: 0; font-size: 11px; }
.search-box input::placeholder { color: #77869a; }
.search-box kbd { display: grid; width: 18px; height: 19px; place-items: center; color: #8391a4; border: 1px solid #29384a; border-radius: 3px; font: 10px "DM Sans", sans-serif; }
.results-count { margin: 18px 0 14px; color: #78889c; font-size: 10px; }
.game-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 16px; }
.game-card { min-width: 0; animation: card-in .35s ease both; animation-delay: calc(var(--card-index) * 18ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.game-card-link { display: block; height: 100%; overflow: hidden; background: #102037; border: 1px solid rgba(244,237,224,.07); border-radius: 9px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.game-card-link:hover { transform: translateY(-4px); border-color: rgba(255,107,91,.55); box-shadow: 0 12px 28px rgba(0,0,0,.22); }
.game-cover { position: relative; display: grid; width: 100%; aspect-ratio: 460 / 215; place-items: center; overflow: hidden; background: #1a2d43; }
.game-cover img, .detail-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.game-card-link:hover .game-cover img { transform: scale(1.05); }
.cover-tag { position: absolute; bottom: 8px; left: 8px; max-width: calc(100% - 16px); overflow: hidden; padding: 5px 7px; color: var(--cream); background: rgba(7,18,32,.82); border: 1px solid rgba(244,237,224,.12); border-radius: 4px; font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(6px); }
.cover-fallback { background: radial-gradient(ellipse at 76% 10%, rgba(255,107,91,.42), transparent 35%), linear-gradient(135deg, #2c3042, #101c31 72%); }
.cover-gta { background: radial-gradient(ellipse at 70% 40%, rgba(243,151,108,.25), transparent 36%), linear-gradient(145deg, #36394b, #111b2d 72%); }
.cover-gta-mark { color: var(--cream); font: 700 clamp(34px, 5vw, 70px)/1 "Space Grotesk", sans-serif; letter-spacing: -5px; text-shadow: 0 5px 25px rgba(255,107,91,.35); }
.game-card-body { padding: 12px 12px 10px; }
.game-card h3 { min-height: 34px; margin: 0; overflow: hidden; font: 700 13px/1.35 "Space Grotesk", sans-serif; letter-spacing: -.2px; text-overflow: ellipsis; }
.game-genre { margin: 3px 0 13px; color: #8292a7; font-size: 9px; }
.card-action { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; color: #211b24; background: var(--coral); border-radius: 5px; font-size: 10px; font-weight: 800; transition: background .2s; }
.game-card-link:hover .card-action { background: var(--coral-light); }
.card-action span { font-size: 14px; }
.card-action-muted { color: var(--cream); background: #26374c; }
.game-card-link:hover .card-action-muted { background: #33475e; }
.empty-state { padding: 42px 10px; color: var(--muted); text-align: center; font-size: 13px; }
.discovery { padding: 0 0 88px; }
.discovery-heading { max-width: 590px; margin-bottom: 25px; }
.discovery-heading .eyebrow { margin-bottom: 9px; }
.discovery-heading h2 { margin: 0 0 10px; font: 700 clamp(28px, 3.5vw, 38px)/1.12 "Space Grotesk", sans-serif; letter-spacing: -1.3px; }
.discovery-heading h2 span { color: var(--coral); }
.discovery-heading > p:last-child { margin: 0; color: #9baabd; font-size: 12px; line-height: 1.75; }
.discovery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.discovery-card { position: relative; display: flex; min-height: 220px; flex-direction: column; align-items: flex-start; padding: 22px; overflow: hidden; background: #102037; border: 1px solid rgba(244,237,224,.09); border-radius: 10px; }
.discovery-card::after { position: absolute; top: -49px; right: -35px; width: 130px; height: 130px; content: ""; border: 1px solid rgba(255,107,91,.18); border-radius: 50%; box-shadow: 0 0 0 17px rgba(255,107,91,.025), 0 0 0 35px rgba(255,107,91,.02); pointer-events: none; }
.discovery-rpg::after { border-color: rgba(139,165,255,.22); box-shadow: 0 0 0 17px rgba(139,165,255,.03), 0 0 0 35px rgba(139,165,255,.02); }
.discovery-sim::after { border-color: rgba(121,214,172,.2); box-shadow: 0 0 0 17px rgba(121,214,172,.03), 0 0 0 35px rgba(121,214,172,.02); }
.discovery-number { margin-bottom: 16px; color: var(--coral-light); font-size: 8px; font-weight: 800; letter-spacing: 1.2px; }
.discovery-rpg .discovery-number { color: #aab9ff; }
.discovery-sim .discovery-number { color: #8addb3; }
.discovery-card h3 { margin: 0 0 8px; font: 700 17px/1.2 "Space Grotesk", sans-serif; }
.discovery-card p { max-width: 290px; margin: 0 0 18px; color: #9baabd; font-size: 10px; line-height: 1.7; }
.discovery-link { position: relative; z-index: 1; display: inline-flex; gap: 8px; align-items: center; margin-top: auto; padding: 0; color: var(--cream); background: transparent; border: 0; cursor: pointer; font-size: 10px; font-weight: 800; }
.discovery-link span { color: var(--coral); font-size: 14px; transition: transform .2s ease; }
.discovery-link:hover span { transform: translate(2px, -2px); }
.trust-banner { display: flex; align-items: center; gap: 22px; margin-bottom: 92px; padding: 25px 28px; background: linear-gradient(105deg, #112239, #10243a); border: 1px solid rgba(244,237,224,.08); border-radius: 10px; }
.trust-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: var(--navy); background: var(--coral); border-radius: 11px; font-size: 23px; font-weight: 800; }
.trust-banner h2 { margin: 0 0 5px; font: 700 15px "Space Grotesk", sans-serif; }
.trust-banner p { max-width: 690px; margin: 0; color: #9baabd; font-size: 11px; line-height: 1.7; }
.text-link { margin-left: auto; flex: 0 0 auto; color: var(--cream); font-size: 10px; font-weight: 700; transition: color .2s; }
.text-link span { margin-left: 5px; color: var(--coral); font-size: 14px; vertical-align: -1px; }
.site-footer { min-height: 90px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 7.3%; border-top: 1px solid var(--line); }
.footer-brand { font-size: 16px; }
.footer-brand .brand-mark { width: 25px; height: 25px; font-size: 16px; }
.site-footer p, .footer-year { margin: 0; color: #75849a; font-size: 10px; }

.detail-body { min-height: 100vh; display: flex; flex-direction: column; }
.detail-main { width: 85.4%; max-width: 1160px; flex: 1; margin: 0 auto; padding: 64px 0 90px; }
.detail-layout { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(35px, 7vw, 92px); animation: detail-arrive .55s cubic-bezier(.2,.7,.25,1) both; }
@keyframes detail-arrive { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
.detail-visual { position: relative; display: grid; min-width: 0; min-height: 0; aspect-ratio: 460/215; place-items: center; overflow: hidden; background: #14283e; border: 1px solid rgba(244,237,224,.1); border-radius: 14px; box-shadow: 0 25px 70px rgba(0,0,0,.28); }
.detail-content { min-width: 0; }
.detail-content .eyebrow { margin-bottom: 15px; }
.detail-content h1, .not-found h1 { margin: 0 0 17px; font: 700 clamp(35px, 5vw, 58px)/1.05 "Space Grotesk", sans-serif; letter-spacing: -2px; }
.platform-label { display: flex; gap: 8px; align-items: center; margin: 0 0 25px; color: var(--coral-light); font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.detail-description { max-width: 520px; margin-bottom: 20px; color: #bdc7d2; font-size: 14px; line-height: 1.85; }
.availability-note { margin: 0 0 23px; color: #8d9cb0; font-size: 11px; }
.detail-button { min-width: 190px; }
.detail-button.button-soon { color: var(--cream); background: #26374c; opacity: .9; }
.detail-disclaimer { max-width: 390px; margin: 15px 0 0; color: #77869a; font-size: 10px; line-height: 1.7; }
.not-found { padding: 85px 0; text-align: center; }
.not-found .eyebrow { margin-bottom: 12px; }
.not-found h1 { margin-bottom: 25px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--coral-light); outline-offset: 3px; }

@media (max-width: 1000px) {
  .hero { min-height: 520px; padding-left: 6%; }
  .hero-art { right: -9%; width: 54%; transform: translateY(-50%) scale(.87); transform-origin: center right; }
  .section-wrap, .detail-main { width: 88%; }
  .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px 13px; }
}
@media (max-width: 720px) {
  .site-header { height: 68px; padding: 0 5.5%; }
  .hero { min-height: auto; display: block; padding: 65px 6% 48px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(52px, 12vw, 76px); }
  .hero-description { max-width: 490px; margin-top: 19px; font-size: 13px; }
  .hero-art { position: relative; top: auto; right: auto; width: min(100%, 490px); height: 330px; margin: 30px auto 0; transform: none; }
  .hero-tile { width: 43%; height: 105px; }
  .tile-one { left: 10%; }
  .tile-two { right: 7%; }
  .tile-three { left: 4%; }
  .tile-four { right: 10%; }
  .orbit-one { width: 100%; height: 220px; top: 57px; }
  .orbit-two { width: 86%; height: 160px; top: 86px; right: 6%; }
  .sticker-top { left: 45%; top: 3px; }
  .sticker-bottom { left: 29%; bottom: 0; }
  .hero-scroll { display: none; }
  .section-wrap, .detail-main { width: 88%; }
  .catalog { padding: 66px 0 55px; }
  .discovery { padding-bottom: 55px; }
  .discovery-grid { grid-template-columns: 1fr; gap: 10px; }
  .discovery-card { min-height: 185px; }
  .section-heading { align-items: start; gap: 12px; }
  .catalog-note { font-size: 9px; }
  .catalog-controls { align-items: stretch; flex-direction: column-reverse; gap: 14px; }
  .search-box { width: 100%; }
  .filter-list { gap: 4px; }
  .filter-chip { padding: 0 10px; font-size: 10px; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 10px; }
  .game-card-body { padding: 9px 9px 8px; }
  .game-card h3 { min-height: 34px; font-size: 11px; }
  .game-genre { margin-bottom: 10px; font-size: 8px; }
  .card-action { padding: 7px 8px; font-size: 9px; }
  .trust-banner { flex-wrap: wrap; gap: 12px; margin-bottom: 58px; padding: 19px; }
  .trust-icon { width: 36px; height: 36px; }
  .trust-banner > div:nth-child(2) { flex: 1; }
  .trust-banner h2 { font-size: 13px; }
  .trust-banner p { font-size: 10px; }
  .text-link { margin-left: 48px; }
  .site-footer { min-height: auto; flex-wrap: wrap; padding: 19px 6%; }
  .site-footer p { order: 3; width: 100%; }
  .detail-main { padding: 35px 0 58px; }
  .detail-layout { grid-template-columns: 1fr; gap: 27px; }
  .detail-visual { min-height: 0; }
  .detail-content h1 { font-size: 43px; }
}
@media (max-width: 430px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .game-card h3 { font-size: 12px; }
  .section-heading h2 { font-size: 29px; }
  .catalog-note { max-width: 105px; }
  .hero-art { height: 285px; }
  .hero-tile { height: 90px; }
  .detail-visual { min-height: 190px; }
  .footer-year { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---- Static SEO pages (genre hubs, game pages) ---- */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; color: var(--muted); font-size: 12px; }
.breadcrumb a:hover { color: var(--coral-light); }
.breadcrumb [aria-current] { color: var(--cream); }
.detail-extra { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.detail-extra h2 { margin: 0 0 20px; font: 700 clamp(22px, 3vw, 30px)/1.15 "Space Grotesk", sans-serif; letter-spacing: -1px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 48px; }
.facts div { padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.facts dt { margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.facts dd { margin: 0; font-size: 15px; font-weight: 600; }
.facts a { color: var(--coral-light); }
.faq { max-width: 760px; margin-bottom: 56px; }
.faq h3 { margin: 26px 0 8px; font-size: 16px; }
.faq p { margin: 0; color: #bdc7d2; font-size: 14px; line-height: 1.8; }
.about-game { max-width: 760px; margin-bottom: 48px; color: #bdc7d2; font-size: 14px; line-height: 1.85; }
.hub-title { margin: 0 0 16px; font: 700 clamp(34px, 5vw, 56px)/1.05 "Space Grotesk", sans-serif; letter-spacing: -2px; }
.hub-intro { max-width: 640px; margin: 0 0 36px; color: #bdc7d2; font-size: 15px; line-height: 1.8; }
.hub-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 48px 0 0; }
.hub-links a { padding: 8px 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; }
.hub-links a:hover { color: var(--cream); border-color: rgba(244, 237, 224, .3); }
.footer-genres { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 11px; }
.footer-genres a:hover { color: var(--coral-light); }
@keyframes cta-glow { 0%, 100% { box-shadow: 0 7px 25px rgba(255, 107, 91, .18); } 50% { box-shadow: 0 7px 38px rgba(255, 107, 91, .5); } }
.button-cta { animation: cta-glow 2.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .button-cta { animation: none; } }
