/* Tycoon Games by BizSim. "Tycoon night": the palette of the three live
   games' icons (docs/design-spec.md). No third party; the font is local. */
@font-face {
  font-family: "Nunito"; src: url("/assets/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000; font-display: swap;
}

:root {
  --night: #0f1529;
  --night-2: #1b1f3b;
  --cream: #f2dfb6;
  --cream-soft: rgba(242, 223, 182, .78);
  --gold: #f5b82e;
  --red: #c8202e;
  --blueprint: #2a4a7f;
  --blueprint-bg: #132548;
  --radius: 22px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--cream);
  font: 400 1.0625rem/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-weight: 900; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: .6em 1em;
  background: var(--gold); color: var(--night); font-weight: 800; border-radius: 999px;
}
.skip:focus { top: 1rem; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem;
  padding: .7rem max(1.25rem, calc((100% - var(--wrap)) / 2));
  background: rgba(15, 21, 41, .96);
  border-bottom: 1px solid rgba(242, 223, 182, .08);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 900; font-size: 1.15rem; }
.brand-by { color: var(--gold); font-weight: 800; }
.brand-slogan { font-size: .8rem; color: var(--cream-soft); }
.nav-links { display: flex; align-items: center; gap: .3rem 1.2rem; flex-wrap: wrap; font-weight: 700; }
.nav-links > a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; border-bottom: 2px solid transparent; }
.nav-links > a:hover, .nav-links > a[aria-current="page"] { border-color: var(--gold); }
.nav-lang { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav-lang a {
  display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .55em;
  font-size: .85rem; text-decoration: none;
  border-radius: 999px; color: var(--cream-soft);
}
.nav-lang a[aria-current="true"] { background: rgba(242, 223, 182, .14); color: var(--cream); }

/* Hero: text on the left over the art (desktop), at the bottom (phone). The
   art leaves those areas quiet; the gradient makes sure of it. */
.hero {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: clamp(520px, 78vh, 820px);
  background:
    radial-gradient(60% 50% at 78% 30%, rgba(245, 184, 46, .16), transparent 70%),
    radial-gradient(50% 60% at 95% 90%, rgba(200, 32, 46, .18), transparent 70%),
    linear-gradient(180deg, #0b1022, var(--night-2));
}
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: 85% 50%; }
/* As tall as the 21:9 art at this width, so nothing is cropped sideways
   unless the text needs more room (then the left, quiet side goes first). */
.hero.has-art { min-height: max(520px, min(42.86vw, 820px)); }
.hero.has-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15, 21, 41, .92) 0%, rgba(15, 21, 41, .7) 38%, rgba(15, 21, 41, 0) 62%);
}
.hero-inner {
  position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: 3.5rem 1.25rem;
}
.hero-inner > * { max-width: 34rem; }
/* Over the art, the text stays inside the art's quiet left side. */
@media (min-width: 1200px) { .hero.has-art .hero-inner > * { max-width: min(34rem, 36vw); } }
.kicker {
  color: var(--gold); font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; font-size: .85rem; margin-bottom: .8em;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--cream-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: .7em 1.5em;
  background: var(--gold); color: var(--night); font-weight: 900; text-decoration: none;
  border: 2px solid var(--gold); border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245, 184, 46, .3); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(242, 223, 182, .5); }
.btn-ghost:hover { border-color: var(--cream); box-shadow: none; }

/* Tablets: a box this tall crops the 21:9 art past its heroes, so the art
   stands in full above the text instead. */
@media (min-width: 600px) and (max-width: 1199px) {
  .hero.has-art { display: block; min-height: 0; background: var(--night); }
  .hero.has-art .hero-art { position: relative; display: block; height: auto; aspect-ratio: 2520 / 1080; }
  .hero.has-art::after {
    inset: 0 0 auto; aspect-ratio: 2520 / 1080;
    background: linear-gradient(0deg, var(--night) 0%, rgba(15, 21, 41, 0) 28%);
  }
  .hero.has-art .hero-inner { padding-top: 1rem; }
  .hero.has-art .hero-inner > * { max-width: 40rem; }
}

@media (max-width: 599px) {
  /* Two or three rows of nav would hold a third of a small phone's screen. */
  .nav { position: static; }
  .hero { align-items: flex-end; min-height: min(88svh, 760px); }
  .hero-inner { padding-bottom: 2.5rem; }
  /* With art, the 9:16 image stands in full above the text, and the text
     overlaps only the art's quiet bottom (the heroes end at ~62% of it). */
  .hero.has-art { display: block; min-height: 0; }
  .hero.has-art .hero-art { position: relative; display: block; height: auto; aspect-ratio: 9 / 16; }
  .hero.has-art .hero-inner { margin-top: -60vw; padding-top: 0; }
  .hero.has-art::after {
    background: linear-gradient(0deg, var(--night) 0%, var(--night) 30%, rgba(15, 21, 41, .85) 40%, rgba(15, 21, 41, 0) 50%);
  }
}

/* Sections */
.section { max-width: var(--wrap); margin: 0 auto; padding: 4.5rem 1.25rem; }
.section-lead { color: var(--cream-soft); font-size: 1.15rem; margin-bottom: 2rem; }

/* Live games */
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.game-card {
  display: flex; flex-direction: column; gap: 1.2rem; padding: 1.6rem;
  background: linear-gradient(180deg, var(--night-2), #161a33);
  border: 1px solid rgba(242, 223, 182, .1); border-radius: var(--radius);
  transition: border-color .25s ease, transform .25s ease;
}
.game-card:hover { border-color: rgba(245, 184, 46, .55); transform: translateY(-4px); }
.game-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.game-body { display: flex; flex-direction: column; flex: 1; }
.game-genre {
  color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  font-size: .78rem; margin-bottom: .3em;
}
.game-name { font-size: 1.55rem; margin-bottom: .4em; }
.game-pitch { color: var(--cream-soft); }
.game-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: auto; padding-top: .4rem; }
.play-badge { height: 56px; width: auto; }
.store { display: block; border-radius: 10px; }
.soon {
  display: inline-block; padding: .55em 1em; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 800; font-size: .9rem;
}
.site-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-underline-offset: .2em; }
.site-link:hover { color: var(--gold); }

/* Blueprint: the look of everything still on the drafting table */
.blueprint, .dev-card {
  background-color: var(--blueprint-bg);
  background-image:
    linear-gradient(rgba(122, 162, 230, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 162, 230, .12) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid rgba(122, 162, 230, .35); border-radius: var(--radius);
}
.blueprint { padding: clamp(1.6rem, 4vw, 3rem); }
.teaser-names { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.teaser-names li {
  padding: .35em 1em; border: 1px dashed rgba(242, 223, 182, .45); border-radius: 999px; font-weight: 700;
}

/* In development */
.page-head { max-width: var(--wrap); margin: 0 auto; padding: 4rem 1.25rem 0; }
.page-head .lead { max-width: 44rem; }
.dev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.dev-card { overflow: hidden; display: flex; flex-direction: column; }
.dev-art { aspect-ratio: 4 / 3; border-bottom: 1px solid rgba(122, 162, 230, .35); display: grid; place-items: center; }
.dev-art img { width: 100%; height: 100%; object-fit: cover; }
.glyph { width: 58%; height: auto; color: var(--cream); opacity: .85; }
.dev-body { padding: 1.4rem 1.5rem 1.6rem; }
.age {
  display: inline-block; vertical-align: middle; margin-left: .3em; padding: .15em .55em;
  font-size: .8rem; border-radius: 999px; background: var(--red); color: #fff; font-weight: 900;
}
.dev-note { margin-top: 2rem; color: var(--cream-soft); }

/* Footer */
.footer {
  border-top: 1px solid rgba(242, 223, 182, .1); text-align: center;
  padding: 3rem 1.25rem 2.5rem; color: var(--cream-soft); font-size: .92rem;
}
.footer-studio { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; margin-bottom: 1.8rem; }
.studio-link { display: flex; align-items: center; gap: .8rem; text-align: left; text-decoration: none; max-width: 22rem; }
.studio-link img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.studio-link strong { display: block; color: var(--cream); }
.studio-link:hover strong { color: var(--gold); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; margin-bottom: 1rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .2em; }
.footer-legal { font-size: .8rem; opacity: .75; }

/* Cookie consent (the pattern of crowstastic.com). Both surfaces render on
   every page, hidden; consent.js decides which to show. The id+attribute
   selectors outrank the display rules, so `hidden` keeps working. */
#consent-banner[hidden], #consent-panel[hidden] { display: none; }
.consent-banner .btn, .consent-panel .btn { cursor: pointer; font-family: inherit; font-size: .95rem; }
.consent-banner {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 14px 24px; flex-wrap: wrap;
  padding: 16px clamp(16px, 4vw, 40px);
  background: rgba(27, 31, 59, .98);
  border-top: 1px solid rgba(245, 184, 46, .35); box-shadow: 0 -12px 32px rgba(0, 0, 0, .35);
  animation: consent-rise .28s ease-out;
}
@keyframes consent-rise { from { transform: translateY(100%); } to { transform: none; } }
.consent-text { flex: 1 1 380px; max-width: 620px; margin: 0; font-size: .93rem; line-height: 1.55; }
.consent-text a { color: var(--gold); }
.consent-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.consent-link, .footer-consent {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  background: none; border: 0; cursor: pointer; font: inherit; color: var(--cream-soft);
  text-decoration: underline; text-underline-offset: .2em;
}
.consent-link:hover, .footer-consent:hover { color: var(--gold); }
.consent-panel { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; }
.consent-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); }
.consent-sheet {
  position: relative; width: min(460px, 100%); max-height: 85vh; overflow-y: auto;
  padding: 24px; border-radius: 18px; background: var(--night-2); border: 1px solid rgba(242, 223, 182, .14);
}
.consent-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.consent-head h2 { font-size: 1.3rem; margin: 0; }
.consent-x {
  width: 48px; height: 48px; border-radius: 10px; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 1.9rem; line-height: 1; color: var(--cream-soft);
}
.consent-x:hover { color: var(--gold); }
.consent-row { padding: 16px 0; border-top: 1px solid rgba(242, 223, 182, .1); }
.consent-row:first-of-type { margin-top: 6px; }
.consent-row label { display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; }
.consent-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--gold); cursor: pointer; }
.consent-row input[disabled] { cursor: default; }
.consent-row p { margin: 4px 0 0 30px; color: var(--cream-soft); font-size: .88rem; line-height: 1.5; }
.consent-foot { margin-top: 20px; display: flex; justify-content: flex-end; }
@media (max-width: 620px) {
  .consent-banner { flex-direction: column; align-items: stretch; text-align: center; }
  /* In a column the text's 380px flex-basis would become its height. */
  .consent-text { flex: none; max-width: none; }
  .consent-actions { justify-content: center; }
  .consent-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Motion, only when the visitor allows it (site.js sets html.motion). */
.motion .reveal { opacity: 0; translate: 0 32px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .2, 1); }
.motion .reveal.is-in { opacity: 1; translate: 0 0; }
.motion .live-grid .reveal:nth-child(2), .motion .dev-grid .reveal:nth-child(3n+2) { transition-delay: .1s; }
.motion .live-grid .reveal:nth-child(3), .motion .dev-grid .reveal:nth-child(3n) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .game-card:hover { transform: none; }
}
