:root {
  --ink: #11112b;
  --ink-2: #181641;
  --violet: #5d36a4;
  --paper: #f7f2dc;
  --paper-muted: #cbc5b8;
  --coral: #f26467;
  --coral-dark: #d94b55;
  --cyan: #3cd8d5;
  --yellow: #ffd15a;
  --line: rgba(247, 242, 220, .16);
  --shadow: 0 28px 80px rgba(6, 6, 28, .38);
  --radius: 1.35rem;
  --content: 76rem;
  --display: "Arial Narrow", "Roboto Condensed", "Aptos Narrow", Impact, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
html.age-pending { overflow: hidden; }
body { margin: 0; min-width: 20rem; color: var(--paper); background: var(--ink); font: 400 1rem/1.65 var(--body); text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: .2rem solid var(--yellow); outline-offset: .25rem; }

.skip-link { position: fixed; z-index: 200; top: .75rem; left: .75rem; padding: .7rem 1rem; color: var(--ink); background: var(--yellow); font-weight: 800; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.age-gate { position: fixed; z-index: 150; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 1rem; background: linear-gradient(rgba(10, 9, 34, .68), rgba(10, 9, 34, .78)), url("assets/age-gate-background.jpg") center no-repeat; background-size: cover; backdrop-filter: blur(10px); }
.age-gate[hidden] { display: none; }
.age-gate::before, .age-gate::after { content: ""; position: fixed; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.age-gate::before { width: 28rem; height: 28rem; top: -14rem; right: -8rem; background: rgba(60, 216, 213, .08); }
.age-gate::after { width: 22rem; height: 22rem; bottom: -10rem; left: -7rem; background: rgba(242, 100, 103, .1); }
.age-gate__panel { position: relative; width: min(100%, 32rem); padding: clamp(1.5rem, 5vw, 3.25rem); border: 1px solid rgba(247, 242, 220, .22); border-radius: 1.5rem; background: linear-gradient(145deg, rgba(33, 29, 78, .97), rgba(16, 15, 44, .98)); box-shadow: var(--shadow); text-align: center; }
.age-gate__panel::after { content: ""; position: absolute; inset: .5rem; border: 1px solid rgba(247, 242, 220, .07); border-radius: 1.15rem; pointer-events: none; }
.age-gate__mark { display: grid; place-items: center; width: 5.4rem; height: 5.4rem; margin: 0 auto 1.5rem; border-radius: 50%; color: var(--ink); background: var(--coral); font: 900 2.3rem/1 var(--display); letter-spacing: -.06em; transform: rotate(-5deg); box-shadow: .55rem .55rem 0 var(--cyan); }
.age-gate__mark span { font-size: .65em; }
.age-gate h1 { margin: .2rem 0 .75rem; font: 900 clamp(2.6rem, 9vw, 4.1rem)/.9 var(--display); letter-spacing: -.035em; text-transform: uppercase; }
.age-gate__panel > p:not(.eyebrow):not(.age-gate__note) { max-width: 26rem; margin: 0 auto 1.6rem; color: var(--paper-muted); }
.age-gate__note { margin: 1.25rem auto 0; color: #918da5; font-size: .74rem; }
.age-gate .text-link { display: inline-block; margin-top: 1rem; font-size: .85rem; }

.noscript-message { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; padding: 2rem; color: var(--paper); background: var(--ink); text-align: center; font-weight: 800; }
.age-pending #site-shell { user-select: none; filter: saturate(.55); }

.eyebrow { margin: 0 0 .9rem; color: var(--cyan); font-size: .72rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.status-dot { display: inline-block; width: .5rem; height: .5rem; margin-right: .5rem; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 .28rem rgba(242, 100, 103, .15); }
.button { display: inline-flex; min-height: 3.25rem; align-items: center; justify-content: center; gap: .7rem; padding: .75rem 1.15rem; border: 1px solid transparent; border-radius: 999px; font-size: .82rem; font-weight: 900; letter-spacing: .025em; text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { color: var(--ink); background: var(--coral); box-shadow: 0 .45rem 0 var(--coral-dark); }
.button--primary:hover { background: #ff7778; box-shadow: 0 .3rem 0 var(--coral-dark); }
.button--wide { width: 100%; }
.text-link { color: var(--paper-muted); font-weight: 750; }
.text-link:hover { color: var(--cyan); }

.site-header { display: flex; width: min(calc(100% - 2rem), var(--content)); min-height: 5.5rem; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 0 auto; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .75rem; font: 900 1.35rem/1 var(--display); letter-spacing: -.02em; text-decoration: none; text-transform: uppercase; }
.brand__signal { display: flex; height: 1.25rem; align-items: end; gap: .16rem; }
.brand__signal i { display: block; width: .23rem; border-radius: 999px; background: var(--coral); }
.brand__signal i:nth-child(1) { height: 45%; }.brand__signal i:nth-child(2) { height: 100%; background: var(--cyan); }.brand__signal i:nth-child(3) { height: 68%; }
.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a { color: var(--paper-muted); font-size: .78rem; font-weight: 850; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
.site-header nav a:hover { color: var(--paper); }

.hero { position: relative; display: grid; width: min(calc(100% - 2rem), var(--content)); min-height: 41rem; align-items: center; gap: 3rem; margin: 0 auto; padding: clamp(4.5rem, 10vw, 8.5rem) 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: 0; width: 34rem; height: 34rem; top: 12%; right: -10rem; border: 1px solid rgba(60, 216, 213, .15); border-radius: 50%; box-shadow: 0 0 0 5rem rgba(93, 54, 164, .05), 0 0 0 10rem rgba(242, 100, 103, .025); }
.hero__copy { position: relative; z-index: 2; max-width: 48rem; }
.hero h1 { max-width: 13ch; margin: 0 0 1.5rem; font: 900 clamp(4rem, 11vw, 8.6rem)/.76 var(--display); letter-spacing: -.055em; text-transform: uppercase; }
#hero-title:focus { outline: none; }
.hero h1 span { color: transparent; -webkit-text-stroke: .025em var(--paper); }
.hero__lede { max-width: 37rem; margin: 0 0 2rem; color: var(--paper-muted); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero__signal { position: relative; display: none; min-height: 28rem; align-items: center; justify-content: center; }
.signal-label { position: absolute; top: 2rem; right: 0; color: var(--paper-muted); font: 800 .63rem/1 var(--body); letter-spacing: .2em; writing-mode: vertical-rl; }
.signal-track { display: flex; align-items: center; gap: .5rem; transform: rotate(-12deg); }
.signal-track i { display: block; width: .55rem; border-radius: 999px; background: var(--cyan); box-shadow: 0 0 2rem rgba(60,216,213,.4); }
.signal-track i:nth-child(1), .signal-track i:nth-child(7) { height: 4rem; }.signal-track i:nth-child(2), .signal-track i:nth-child(6) { height: 9rem; background: var(--violet); }.signal-track i:nth-child(3), .signal-track i:nth-child(5) { height: 16rem; background: var(--coral); }.signal-track i:nth-child(4) { height: 23rem; background: var(--paper); }
.signal-orbit { position: absolute; display: grid; width: 9rem; height: 9rem; place-items: center; align-content: center; border: 1px solid rgba(247, 242, 220, .35); border-radius: 50%; background: rgba(17, 17, 43, .8); transform: translate(2rem, 1rem) rotate(7deg); }
.signal-orbit span { font: 900 4rem/.8 var(--display); }.signal-orbit small { color: var(--cyan); font-size: .62rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

.games-section { padding: clamp(4.5rem, 8vw, 7.5rem) max(1rem, calc((100% - var(--content)) / 2)); color: var(--ink); background: var(--paper); }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.6rem; }
.section-heading .eyebrow { color: var(--violet); }
.section-heading h2, .about-section h2, .faq-section h2 { margin: 0; font: 900 clamp(2.8rem, 6vw, 5.2rem)/.86 var(--display); letter-spacing: -.035em; text-transform: uppercase; }
.section-heading > p { max-width: 25rem; margin: 0; color: #5f5a58; }
.game-grid { display: grid; gap: 1.2rem; }
.game-card { position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid rgba(17,17,43,.12); border-radius: var(--radius); background: #fffdf3; box-shadow: 0 .8rem 0 rgba(17,17,43,.08); transition: transform .25s ease, box-shadow .25s ease; }
.game-card:hover { transform: translateY(-.4rem); box-shadow: 0 1.2rem 0 rgba(17,17,43,.11); }
.game-card__visual { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--ink-2); }
.game-card__visual::after { content: ""; position: absolute; z-index: 2; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(10,8,30,.42)); }
.game-card__visual img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.game-card--tower .game-card__visual { background: #11112b; }
.game-card--tower .game-card__visual::before { content: ""; position: absolute; inset: -1rem; background: url("assets/mega-tower-play.jpg") center / cover no-repeat; filter: blur(18px) saturate(1.15); opacity: .75; transform: scale(1.08); }
.game-card--tower .game-card__visual img { width: auto; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 1.2rem 2rem rgba(0,0,0,.35)); }
.game-card:hover img { transform: scale(1.035); }
.game-card__mood { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; padding: .42rem .7rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: white; background: rgba(17,17,43,.55); backdrop-filter: blur(8px); font-size: .62rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.game-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.35rem; }
.game-card__meta { display: flex; gap: .5rem; color: var(--violet); font-size: .63rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.game-card__meta span + span::before { content: "/"; margin-right: .5rem; color: var(--coral); }
.game-card h3 { margin: .55rem 0 .75rem; font: 900 clamp(2rem, 4vw, 2.8rem)/.9 var(--display); letter-spacing: -.03em; text-transform: uppercase; }
.game-card p { flex: 1; margin: 0 0 1.4rem; color: #625c59; font-size: .92rem; }
.button--card { justify-content: space-between; color: var(--paper); background: var(--ink); }
.button--card:hover { color: var(--ink); background: var(--cyan); }

.about-section { display: grid; gap: 2.5rem; width: min(calc(100% - 2rem), var(--content)); margin: 0 auto; padding: clamp(5rem, 10vw, 9rem) 0; }
.about-section__index { color: rgba(247,242,220,.12); font: 900 clamp(5rem, 18vw, 13rem)/.7 var(--display); letter-spacing: -.08em; }
.about-section__copy p:last-child { max-width: 32rem; color: var(--paper-muted); font-size: 1.08rem; }
.trust-list { border-top: 1px solid var(--line); }
.trust-list div { display: grid; gap: .35rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.trust-list strong { color: var(--cyan); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.trust-list span { color: var(--paper-muted); font-size: .9rem; }

.faq-section { display: grid; gap: 2rem; padding: clamp(4.5rem, 8vw, 7rem) max(1rem, calc((100% - var(--content)) / 2)); color: var(--ink); background: var(--cyan); }
.faq-section .eyebrow { color: #49327c; }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 2px solid var(--ink); }
.faq-list summary { position: relative; padding: 1.25rem 2.5rem 1.25rem 0; font-weight: 900; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: .25rem; font: 900 1.6rem/1 var(--display); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { max-width: 44rem; margin: -.3rem 2rem 1.3rem 0; color: #39354a; }

.site-footer { display: grid; width: min(calc(100% - 2rem), var(--content)); gap: 1.2rem; margin: 0 auto; padding: 3rem 0; }
.site-footer > p { margin: 0; color: var(--paper-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer nav a { font-size: .8rem; font-weight: 800; }
.site-footer__fine { padding-top: 1.3rem; border-top: 1px solid var(--line); font-size: .7rem; }

.legal-page { min-height: 100vh; background: linear-gradient(145deg, var(--ink), #21184d); }
.legal-page .site-header > .text-link { font-size: .8rem; }
.legal-content { width: min(calc(100% - 2rem), 48rem); margin: 0 auto; padding: clamp(4rem, 10vw, 8rem) 0; }
.legal-content h1 { max-width: 10ch; margin: 0 0 1.5rem; font: 900 clamp(3.7rem, 10vw, 7rem)/.78 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
.legal-content .legal-intro { margin: 0 0 3.5rem; color: var(--paper-muted); font-size: 1.2rem; }
.legal-content h2 { margin: 2.4rem 0 .5rem; color: var(--cyan); font: 900 1.05rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.legal-content p { color: var(--paper-muted); }
.legal-content a { color: var(--paper); }
.legal-footer { display: flex; width: min(calc(100% - 2rem), 48rem); flex-wrap: wrap; gap: 1.5rem; margin: 0 auto; padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--paper-muted); font-size: .78rem; }
.legal-footer span { margin-left: auto; }

@media (min-width: 42rem) {
  .site-header { width: min(calc(100% - 4rem), var(--content)); }
  .hero { width: min(calc(100% - 4rem), var(--content)); }
  .games-section, .faq-section { padding-inline: max(2rem, calc((100% - var(--content)) / 2)); }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .game-card:last-child .game-card__visual { aspect-ratio: auto; min-height: 22rem; }
  .about-section { width: min(calc(100% - 4rem), var(--content)); grid-template-columns: .6fr 1fr; }
  .about-section__index { grid-row: span 2; }
  .site-footer { width: min(calc(100% - 4rem), var(--content)); grid-template-columns: 1fr auto; align-items: center; }
  .site-footer nav { justify-content: end; }
  .site-footer__fine { grid-column: 1 / -1; }
}

@media (min-width: 68rem) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(20rem, .75fr); }
  .hero__signal { display: flex; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-card:last-child { display: flex; grid-column: auto; }
  .game-card:last-child .game-card__visual { min-height: 0; aspect-ratio: 4/3; }
  .about-section { grid-template-columns: .7fr 1fr 1.1fr; align-items: start; }
  .about-section__index { grid-row: auto; }
  .faq-section { grid-template-columns: .75fr 1.25fr; gap: 5rem; }
}

@media (max-width: 31rem) {
  .site-header nav { gap: .85rem; }
  .site-header nav a { font-size: .68rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero__lede { max-width: calc(100% - .5rem); }
  .legal-footer span { width: 100%; margin-left: 0; }
}

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