:root {
  --ink: #04121A;
  --panel: #082530;
  --panel-2: #0F2E33;
  --line: #12343A;
  --shadow-text: #0A3A40;
  --teal: #19D3C5;
  --yellow: #FFD447;
  --pink: #FF5FA2;
  --white: #F4FBFA;
  --muted: #BFD9D6;
  --dim: #8FB3B0;

  --display: "Lilita One", "Arial Black", sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1; }
p { margin: 0; }
a { color: var(--teal); }
a:hover { color: var(--yellow); }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 20;
  background: var(--yellow); color: var(--ink); font-weight: 800;
  padding: 0.6rem 1rem; border-radius: 10px;
}
.skip:focus { top: 1rem; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.teal { color: var(--teal); }
.dots {
  background-image: radial-gradient(rgba(25, 211, 197, 0.16) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}

.title-xl { font-size: clamp(44px, 6vw, 80px); text-shadow: 4px 4px 0 var(--shadow-text); }
.title-xxl { font-size: clamp(48px, 7vw, 96px); line-height: 0.95; text-shadow: 5px 5px 0 var(--shadow-text); }
.section-sub { color: var(--muted); font-weight: 700; font-size: 19px; max-width: 44ch; margin-inline: auto; }

/* Buttons and stickers */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 20px;
  text-decoration: none;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 12px 24px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { color: var(--ink); transform: translate(-2px, -2px); }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn-sm { font-size: 18px; padding: 8px 18px; border-radius: 14px; box-shadow: 4px 4px 0 var(--teal); }
.btn-lg { font-size: 24px; padding: 14px 30px; border-radius: 18px; }
.btn-teal { background: var(--teal); box-shadow: 6px 6px 0 var(--yellow); }
.btn-yellow { background: var(--yellow); box-shadow: 6px 6px 0 var(--pink); }
.btn-yellow.btn-sm { box-shadow: 4px 4px 0 var(--teal); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { color: var(--yellow); border-color: var(--yellow); }

.sticker {
  display: inline-block;
  font-family: var(--display);
  font-size: 18px;
  color: var(--ink);
  padding: 6px 16px;
  border-radius: 999px;
  border: 3px solid var(--ink);
}
.sticker-pink { background: var(--pink); }
.sticker-yellow { background: var(--yellow); }
.sticker-teal { background: var(--teal); }
.tilt-left { transform: rotate(-3deg); }
.tilt-right { transform: rotate(2deg); }

/* Intro splash */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: grid;
  place-items: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.intro-video { width: min(100%, 1280px); aspect-ratio: 16 / 9; object-fit: contain; }
.intro-skip {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(20px, 4vh, 40px);
  font: inherit;
  font-weight: 800;
  color: var(--muted);
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
}
.intro-skip:hover { color: var(--white); border-color: var(--teal); }
.intro.done { opacity: 0; visibility: hidden; pointer-events: none; }
.no-intro .intro { display: none; }
html:not(.no-intro) body.intro-on { overflow: hidden; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(4, 18, 26, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--shadow-text); }
.brand img { width: 120px; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.nav-link { color: var(--white); text-decoration: none; font-weight: 800; }

/* Hero */
.hero { padding-block: clamp(32px, 5vw, 64px) clamp(64px, 8vw, 104px); }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 72px); }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero h1 { font-size: clamp(56px, 8.4vw, 124px); line-height: 0.92; text-shadow: 5px 5px 0 var(--shadow-text); }
.hero-sub { font-size: clamp(19px, 1.7vw, 22px); font-weight: 700; color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art { flex: 1 1 380px; min-width: 0; position: relative; display: flex; justify-content: center; padding: 24px 0; }
.hero-poster {
  width: min(100%, 400px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top;
  border-radius: 26px;
  border: 5px solid var(--ink);
  box-shadow: 12px 12px 0 var(--teal), 0 30px 80px rgba(25, 211, 197, 0.35);
  transform: rotate(3deg);
}
.float-sticker { position: absolute; animation: bob 3.4s ease-in-out infinite; }
.fs-1 { --r: -8deg; top: 4%; left: 2%; font-size: 22px; padding: 10px 18px; border-radius: 16px; }
.fs-2 { --r: 6deg; bottom: 10%; right: 0; font-size: 20px; padding: 10px 18px; border-radius: 16px; color: var(--white); animation-delay: 0.6s; }
.fs-3 { --r: -12deg; top: 46%; left: -2%; animation-duration: 4s; animation-delay: 1s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-10px) rotate(var(--r, 0deg)); }
}

/* Ticker */
.ticker { background: var(--teal); border-block: 3px solid var(--ink); padding: 14px 0; overflow: hidden; }
.ticker-track {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 14px; width: max-content;
  animation: slide 45s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.bubble {
  white-space: nowrap;
  background: var(--ink);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 18px 18px 18px 4px;
  font-weight: 800;
}
.bubble b { color: var(--yellow); }
.bubble-light { background: var(--white); color: var(--ink); }
.bubble-light b { color: #C42A6C; }
@keyframes slide { to { transform: translateX(calc(-50% - 7px)); } }

/* Choose your career */
.careers { padding-block: clamp(64px, 9vw, 112px); }
.careers .section-sub { margin-top: 14px; }

.select-panel {
  --accent: var(--teal);
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 4vw, 48px);
  margin-top: 48px;
  background: var(--panel);
  border: 4px solid var(--ink);
  border-radius: 32px;
  padding: clamp(20px, 3vw, 36px);
  box-shadow: 10px 10px 0 var(--accent);
  transition: box-shadow 0.25s ease;
}
.select-art { flex: 0 1 320px; width: 320px; max-width: 100%; margin: 0 auto; }
.select-art img,
.locked-art {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
}
.select-art img { object-fit: cover; object-position: top; border: 4px solid var(--ink); }
.locked-art {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  border: 4px dashed var(--accent);
  color: var(--accent);
  font-family: var(--display); font-size: 26px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
}
.locked-art[hidden],
.select-art img[hidden] { display: none; }

.select-info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.chip {
  font-family: var(--display); font-size: 17px; color: var(--ink);
  background: var(--accent); padding: 5px 14px; border-radius: 999px; border: 3px solid var(--ink);
}
.select-info h3 { font-size: clamp(36px, 4vw, 54px); }
.sel-line { font-size: 20px; font-weight: 700; color: #DCEDEB; max-width: 40ch; }
.meters { display: grid; gap: 10px; margin: 8px 0; width: min(100%, 420px); }
.meters div { display: flex; align-items: center; gap: 14px; }
.meters dt { flex: 0 0 96px; font-weight: 800; font-size: 15px; color: var(--muted); }
.meters dd { flex: 1 1 auto; margin: 0; display: flex; gap: 6px; }
.pip { flex: 1 1 0; height: 14px; border-radius: 4px; border: 2px solid var(--ink); background: var(--line); }
.pip.on { background: var(--accent); }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 14px;
  margin-top: 28px;
}
.game-tile {
  --accent: var(--teal);
  font: inherit;
  color: var(--white);
  text-align: left;
  background: var(--panel);
  border: 4px solid var(--ink);
  border-radius: 20px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.game-tile:hover { transform: translateY(-4px); border-color: var(--accent); }
.game-tile[aria-pressed="true"] { transform: translateY(-6px); border-color: var(--accent); box-shadow: 6px 6px 0 var(--accent); }
.game-tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; border-radius: 12px; }
.game-tile > span:last-child { font-weight: 900; font-size: 14px; line-height: 1.25; }
.tile-lock {
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: 12px; border: 3px dashed var(--accent); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}

/* Phone demo */
.demo { background: var(--yellow); color: var(--ink); border-block: 4px solid var(--ink); }
.demo-inner { padding-block: clamp(64px, 9vw, 112px); display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 6vw, 80px); }
.demo-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; font-weight: 700; }
.demo .title-xl { line-height: 0.95; text-shadow: none; }
.demo-lead { font-size: 21px; font-weight: 800; max-width: 34ch; }
.demo-text p:last-child { max-width: 44ch; }

.phone-wrap { flex: 0 1 380px; margin: 0 auto; width: 100%; max-width: 380px; display: grid; gap: 18px; justify-items: center; }
.phone-wrap figcaption { font-weight: 800; }
.phone {
  width: 100%;
  background: var(--ink);
  color: var(--white);
  border-radius: 40px;
  border: 4px solid var(--ink);
  padding: 20px 16px 22px;
  box-shadow: 12px 12px 0 var(--pink);
  transform: rotate(-2deg);
}
.phone-top { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 8px 14px; border-bottom: 2px solid var(--line); margin-bottom: 14px; }
.phone-time { font-weight: 900; }
.phone-count { color: var(--dim); font-size: 14px; font-weight: 800; }

.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.msg { background: var(--panel-2); border-radius: 18px 18px 18px 4px; padding: 11px 13px; font-size: 15px; line-height: 1.4; }
.msg b { display: block; font-size: 13px; color: var(--yellow); }
.msg-ask { border: 2px solid var(--teal); }
.msg-ask b { color: var(--teal); }
.msg-me { justify-self: end; max-width: 85%; background: var(--teal); color: var(--ink); border-radius: 18px 18px 4px 18px; font-weight: 800; }
.msg-result { background: transparent; border: 2px dashed var(--line); color: var(--muted); font-size: 14px; }
.msg-result strong { color: var(--white); }
.msg.new { animation: arrive 0.35s ease both; }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.choices { display: grid; gap: 8px; margin-top: 16px; }
.choices[hidden] { display: none; }
.choice, .again {
  font: inherit; font-weight: 900; font-size: 15px;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 11px 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.choice:hover, .again:hover { transform: translateX(4px); }
.choice-teal { background: var(--teal); }
.choice-yellow { background: var(--yellow); }
.choice-pink { background: var(--pink); }
.again { width: 100%; text-align: center; background: var(--white); }

/* Sign-up */
.crew-inner {
  max-width: 900px; margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) var(--gutter);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.signup { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; width: 100%; max-width: 560px; }
.signup input[type="email"] {
  flex: 1 1 260px; min-width: 0;
  font: inherit; font-weight: 700;
  color: var(--ink); background: var(--white);
  border: 3px solid var(--ink); border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 5px 5px 0 var(--teal);
}
.signup input[type="email"]::placeholder { color: #6E8583; }
.signup input[type="email"]:focus { outline: 3px solid var(--yellow); outline-offset: 2px; }
.signup input[aria-invalid="true"] { box-shadow: 5px 5px 0 #FF6B6B; }
.signup-btn { padding-block: 12px; }
.signup-btn:disabled { opacity: 0.6; cursor: wait; }
.signup-note { min-height: 1.5em; font-weight: 800; color: var(--muted); }
.signup-note.ok { color: var(--teal); }
.signup-note.error { color: #FF8A8A; }

/* Footer */
.site-footer { border-top: 3px solid var(--shadow-text); }
.footer-inner { padding-block: 48px 36px; display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; align-items: flex-start; }
.footer-about { flex: 1 1 380px; min-width: 0; display: grid; gap: 14px; }
.footer-about img { width: 140px; }
.footer-about p { color: var(--muted); max-width: 56ch; }
.footer-contact { flex: 0 1 260px; display: grid; gap: 8px; }
.footer-contact b { font-weight: 900; }
.footer-contact a { font-weight: 800; }
.copyright { color: var(--dim); margin-top: 14px; font-size: 15px; }

/* Small screens */
@media (max-width: 560px) {
  .brand img { width: 92px; }
  .nav-link[href="#demo"] { display: none; }
  .fs-3 { display: none; }
  .fs-1 { left: 0; font-size: 18px; }
  .fs-2 { font-size: 16px; }
  .select-art { width: 240px; }
  .meters dt { flex-basis: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker-track { flex-wrap: wrap; width: auto; padding-inline: var(--gutter); }
  .ticker-track [aria-hidden="true"] { display: none; }
}
