/* Rink Tycoon landing page */

@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }

:root {
  --night: #0a0b2e;
  --night-deep: #07081f;
  --ink: #eef1ff;
  --muted: #aab1de;
  --magenta: #e24bff;
  --cyan: #3cc8ff;
  --gold: #ffb627;
  --gold-hi: #ffd15c;
  --gold-lo: #f38c00;
  --line: rgba(150, 160, 255, 0.2);

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); text-underline-offset: 3px; }

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

.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;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--gold); color: #1a1033; padding: 10px 16px; border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3 { margin: 0; }

h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0.005em;
  text-shadow: 0 0 24px rgba(60, 200, 255, 0.25);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: skewX(-10deg);
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  transition: transform 120ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.btn > span { display: block; transform: skewX(10deg); }

.btn--big { font-size: 1.5rem; padding: 18px 30px; min-height: 60px; }
.btn--small { font-size: 1.125rem; padding: 10px 18px; min-height: 44px; }

.btn--gold {
  color: #1d0f2e;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo));
  box-shadow: 0 0 0 1px rgba(255, 220, 140, 0.6) inset, 0 8px 28px rgba(255, 170, 30, 0.35);
}
.btn--gold:hover { box-shadow: 0 0 0 1px rgba(255, 230, 170, 0.8) inset, 0 10px 36px rgba(255, 170, 30, 0.55); }
.btn--gold:active { transform: skewX(-10deg) translateY(1px); }

.btn--ghost {
  color: var(--ink);
  border: 2px solid rgba(60, 200, 255, 0.75);
  background: rgba(10, 11, 46, 0.45);
  box-shadow: 0 0 18px rgba(60, 200, 255, 0.18);
}
.btn--ghost:hover { background: rgba(60, 200, 255, 0.14); box-shadow: 0 0 24px rgba(60, 200, 255, 0.35); }

/* ---------- Top bar ---------- */

.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter);
  padding-top: max(16px, env(safe-area-inset-top));
}
.topbar__home {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.375rem;
}
.topbar__home img { width: 44px; height: 44px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: min(100svh, 980px);
  isolation: isolate;
}

.hero__scene {
  grid-area: 1 / 1;
  display: block;
  position: relative;
  z-index: -1;
  overflow: hidden;
}
.hero__scene img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__scene::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 31, 0.7) 0%, rgba(7, 8, 31, 0) 22%),
    linear-gradient(0deg, var(--night) 0%, rgba(10, 11, 46, 0.92) 30%, rgba(10, 11, 46, 0.35) 62%, rgba(10, 11, 46, 0) 80%);
}

.hero__content {
  grid-area: 1 / 1;
  align-self: end;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 120px var(--gutter) clamp(48px, 7vh, 80px);
}

.hero__logo { width: min(620px, 92vw); margin-bottom: 12px; }
.hero__logo img {
  width: 100%;
  filter: drop-shadow(0 10px 40px rgba(226, 75, 255, 0.35));
  animation: power-on 1.2s linear both;
}

.hero__tagline {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  line-height: 1.05;
  text-wrap: balance;
}
.hero__tagline span { display: block; }

.hero__sub {
  margin: 14px 0 0;
  max-width: 54ch;
  color: #d5daf6;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  text-wrap: pretty;
}

.hero__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px;
  margin-top: 28px;
}

.hero__status {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 20px 0 0;
  font-family: var(--display); font-weight: 600; font-size: 1.125rem; color: var(--gold-hi);
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold), 0 0 2px #fff inset;
}

@keyframes power-on {
  0%   { opacity: 0; }
  8%   { opacity: 0.85; }
  12%  { opacity: 0.1; }
  20%  { opacity: 1; }
  26%  { opacity: 0.35; }
  32%  { opacity: 1; }
  100% { opacity: 1; }
}

/* In-app browser notice (shown by main.js inside TikTok, Instagram and Facebook) */
.inapp {
  margin-top: 26px;
  max-width: 520px;
  padding: 16px 18px;
  border: 1px solid rgba(60, 200, 255, 0.55);
  border-radius: 10px;
  background: rgba(7, 8, 31, 0.8);
  font-size: 1rem;
  text-align: left;
}
.inapp p { margin: 0 0 12px; }

/* Copy invite button */
.copy {
  display: inline-flex; align-items: stretch;
  padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: rgba(7, 8, 31, 0.6);
  color: var(--ink); font: inherit; cursor: pointer;
  min-height: 48px;
}
.copy__link { display: flex; align-items: center; padding: 0 14px; font-size: 1rem; color: #d5daf6; }
.copy__label {
  display: flex; align-items: center; padding: 0 14px;
  background: rgba(60, 200, 255, 0.16); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 1.0625rem;
  border-left: 1px solid var(--line);
  min-width: 7.5em; justify-content: center;
}
.copy:hover .copy__label { background: rgba(60, 200, 255, 0.28); }
.copy.is-copied .copy__label { background: rgba(255, 182, 39, 0.25); }

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 64px;
  padding-top: clamp(40px, 8vw, 104px);
  padding-bottom: clamp(32px, 5vw, 64px);
}
.about h2 { max-width: 12ch; }
.about__body p { margin: 0 0 1em; max-width: 62ch; color: #d5daf6; }
.about__body p:last-child { margin-bottom: 0; }

/* ---------- What's in it so far ---------- */
/* Lit tube = in the current build. Unlit tube = planned. */

.plan { padding-block: clamp(32px, 5vw, 64px); }
.plan__intro { margin: 14px 0 0; max-width: 62ch; color: var(--muted); }

.plan__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 36px;
  align-items: start;
}

.plan__col { border-radius: 14px; padding: 26px 26px 10px; }
.plan__col--now {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, rgba(255, 182, 39, 0.1), rgba(255, 182, 39, 0.02));
  box-shadow: 0 0 22px rgba(255, 182, 39, 0.28), 0 0 2px rgba(255, 230, 170, 0.9) inset;
}
.plan__col--next {
  border: 2px dashed rgba(60, 200, 255, 0.4);
  background: rgba(19, 20, 80, 0.25);
}

.tag {
  display: inline-block;
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: 1.25rem; line-height: 1;
  padding: 7px 12px 8px; border-radius: 6px;
}
.tag--now { background: var(--gold); color: #1d0f2e; }
.tag--next { color: var(--cyan); border: 1px solid rgba(60, 200, 255, 0.5); }

.plan ul { list-style: none; margin: 18px 0 0; padding: 0; }
.plan li { padding: 14px 0 16px; border-top: 1px solid var(--line); }
.plan li:first-child { border-top: 0; padding-top: 4px; }
.plan li strong {
  display: block;
  font-family: var(--display); font-style: italic; font-weight: 700;
  font-size: 1.5rem; line-height: 1.15;
}
.plan li span { display: block; margin-top: 4px; color: var(--muted); }
.plan__col--next li strong { color: #cfd5f5; }

/* ---------- Play it early ---------- */

.test { padding-block: clamp(40px, 6vw, 80px); }
.test__intro { margin: 14px 0 0; max-width: 62ch; color: #d5daf6; }

.periods {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
}
.periods li { position: relative; padding-top: 22px; border-top: 3px solid var(--line); }
.periods li::before {
  content: ""; position: absolute; top: -3px; left: 0; width: 64px; height: 3px;
  background: var(--magenta); box-shadow: 0 0 12px var(--magenta);
}
.periods__num {
  display: block;
  font-family: var(--display); font-style: italic; font-weight: 700; font-size: 1.25rem;
  color: var(--magenta);
}
.periods strong {
  display: block; margin-top: 4px;
  font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.875rem; line-height: 1.05;
}
.periods li > span:last-child { display: block; margin-top: 10px; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { padding-block: clamp(32px, 5vw, 64px); }
.faq__list { margin-top: 28px; max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 2px;
  font-family: var(--display); font-style: italic; font-weight: 700; font-size: 1.5rem; line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  border-right: 3px solid var(--cyan); border-bottom: 3px solid var(--cyan);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 160ms ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { margin: 0 0 20px; max-width: 62ch; color: #d5daf6; }

/* ---------- Closer ---------- */

.closer {
  margin-top: clamp(16px, 3vw, 40px);
  padding-block: clamp(48px, 7vw, 88px);
  background:
    radial-gradient(60% 120% at 15% 50%, rgba(226, 75, 255, 0.16), transparent 70%),
    radial-gradient(50% 120% at 90% 50%, rgba(60, 200, 255, 0.12), transparent 70%),
    var(--night-deep);
  border-top: 1px solid var(--line);
}
.closer__inner { display: flex; align-items: center; gap: clamp(28px, 5vw, 64px); }
.closer__badge { width: clamp(150px, 22vw, 240px); flex: none; }
.closer__text p { margin: 12px 0 0; color: #d5daf6; max-width: 46ch; }
.closer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 26px; }

/* ---------- Footer ---------- */

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 28px calc(28px + env(safe-area-inset-bottom));
  font-size: 0.9375rem; color: var(--muted);
}
.footer p { margin: 0; }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .plan__cols { grid-template-columns: 1fr; }
  .periods { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 700px) {
  .hero { min-height: 0; }
  .hero__scene { grid-area: 1 / 1; aspect-ratio: 4 / 3; }
  .hero__scene img { object-position: 50% 40%; }
  .hero__scene::after {
    background:
      linear-gradient(180deg, rgba(7, 8, 31, 0.75) 0%, rgba(7, 8, 31, 0) 30%),
      linear-gradient(0deg, var(--night) 0%, rgba(10, 11, 46, 0.6) 25%, rgba(10, 11, 46, 0) 55%);
  }
  .hero__content { grid-area: 2 / 1; padding-top: 0; margin-top: -26vw; }
  .topbar__home span { display: none; }
  .btn--big { font-size: 1.375rem; width: 100%; max-width: 360px; }
  .hero__actions { flex-direction: column; align-items: center; width: 100%; }
  .closer__inner { flex-direction: column; text-align: center; }
  .closer__text p { margin-inline: auto; }
  .closer__actions { justify-content: center; }
  .copy { max-width: 100%; }
  .copy__link { padding: 0 10px; font-size: 0.9375rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__logo img { animation: none; }
  .btn, .faq summary::after { transition: none; }
}
