@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #080808;
  --ink: #f1f0ec;
  --ink-hover: #fff;
  --ink-press: #d8d7d3;
  --mute: #8f8e8a;
  --label: #8a8985;
  --faint: #5f5f65;
  --green: #1ee83c;
  --phosphor: #0c6e22;
  --text-hi: var(--ink);
  --text-mid: var(--mute);
  --text-lo: var(--label);
  --accent: var(--green);
  --line: #f1f0ec14;
  --line-strong: #f1f0ec1a;
  --fill-quiet: #f1f0ec0a;
  --fill-hover: #f1f0ec0f;
  --scrollbar: #f1f0ec47;
  --line-accent: #1ee83c47;
  --button-fill: linear-gradient(0deg, var(--ink) 0%, var(--ink-press) 100%);
  --button-fill-hover: linear-gradient(0deg, var(--ink-hover) 0%, var(--ink) 100%);
  --button-fill-press: var(--ink-press);
  --button-ink: var(--bg);
  --button-edge: #ffffff80;
  --button-shadow: 0 2px 2px #0006;
  --sans: "Geist Variable", "Geist", ui-sans-serif, sans-serif;
  --ease-settle: cubic-bezier(.16, 1, .3, 1);
  --dock: 56px;
  --pad: 16px;
}

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

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text-mid);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

img { max-width: 100%; display: block; }
p, h1, h2, ul, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.page-play,
.page-share { height: 100%; }

/* Desktop share stage: the exact 480 card, plus a way out to the full site */
.stage {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(ellipse at 50% 30%, #0c6e2240 0%, transparent 55%),
    var(--bg);
}

.stage-head {
  text-align: center;
  max-width: 480px;
}

.stage-head .hub-mark { font-size: 1.5rem; }
.stage-note {
  margin-top: 8px;
  color: var(--text-lo);
  font-size: 0.8125rem;
}
.stage-note a { color: var(--text-hi); text-decoration: underline; text-underline-offset: 2px; }

.card-frame {
  width: min(480px, 100%);
  height: min(480px, 100%);
  aspect-ratio: 1 / 1;
  max-height: min(480px, calc(100% - 120px));
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px #0000007a;
  background: var(--bg);
  position: relative;
}

@media (max-width: 700px), (max-height: 700px) {
  .stage { padding: 0; gap: 0; background: var(--bg); }
  .stage-head { display: none; }
  .card-frame {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

.page-play .app {
  width: 100%;
  height: 100%;
}

.app {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  color: var(--text-mid);
}

.bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(1.1) contrast(1.05);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, #1ee83c1f, transparent 50%),
    linear-gradient(180deg, #080808cc 0%, #080808f2 48%, #080808 100%);
}

.crt,
.crt-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}
.crt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0 2px,
    rgba(0, 0, 0, 0.18) 2px 3px
  );
  opacity: 0.35;
  mix-blend-mode: multiply;
}
.crt-vignette {
  box-shadow: inset 0 0 72px 18px #000c;
}

.hub-mark {
  color: var(--text-hi);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.hub-mark.is-display {
  font-size: clamp(1.6rem, 8vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.g { color: var(--accent); font-style: italic; }

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--pad) 0;
  flex: none;
}
.price-pill {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-accent);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}

.panels {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.panel {
  display: none;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px var(--pad) 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar) transparent;
  -webkit-overflow-scrolling: touch;
}
.panel.is-on { display: block; }
.panel::-webkit-scrollbar { width: 6px; }
.panel::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 99px; }

.ident {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.pfp-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-accent), 0 0 24px #1ee83c33;
}
.pfp-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.radar {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 42% 44%, transparent 0 10px, #1ee83c22 10px 11px);
  animation: sweep 6s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes sweep {
  from { transform: rotate(0deg); opacity: 0.55; }
  to { transform: rotate(360deg); opacity: 0.55; }
}
.who { min-width: 0; }
.who .name {
  color: var(--text-hi);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.who a {
  color: var(--text-lo);
  font-size: 0.8125rem;
}
.who a:hover { color: var(--accent); }

.hero-title {
  color: var(--text-hi);
  font-size: clamp(1.25rem, 5.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
  margin-bottom: 8px;
}
.lead {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 14px;
}
.chapter {
  color: var(--text-mid);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--button-edge);
  border-radius: 999px;
  background: var(--button-fill);
  background-origin: border-box;
  box-shadow: var(--button-shadow);
  color: var(--button-ink);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  user-select: none;
  transition: scale 0.12s var(--ease-settle);
}
.btn:hover { background: var(--button-fill-hover); background-origin: border-box; }
.btn:active { background: var(--button-fill-press); scale: 0.97; }
.btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

.fine {
  color: var(--text-lo);
  font-size: 0.75rem;
  line-height: 1.4;
  margin-top: 8px;
  text-align: center;
}

.beats { list-style: none; padding: 0; display: grid; gap: 6px; margin: 8px 0 10px; }
.beats li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--fill-quiet);
  color: var(--text-hi);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.beats b { font-weight: 500; }
.beats span { color: var(--text-lo); font-weight: 400; }

.ledger { list-style: none; padding: 0; }
.ledger li {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-hi);
  font-size: 0.9rem;
  line-height: 1.35;
}
.ledger li:last-child { border-bottom: 0; }
.ledger b { font-weight: 500; }
.ledger-note { color: var(--text-lo); font-size: 0.75rem; line-height: 1.35; }

.room {
  margin: 0 0 8px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  aspect-ratio: 16 / 6;
  background: #000;
}
.room img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.room figcaption {
  position: absolute;
  left: 10px;
  bottom: 8px;
  color: var(--text-hi);
  font-size: 0.75rem;
  font-weight: 500;
  text-shadow: 0 1px 8px #000;
}

.amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0 6px;
}
.amount .num {
  color: var(--accent);
  font-size: clamp(2rem, 10vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.amount .per { color: var(--text-lo); font-size: 1rem; }

.quote {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--text-mid);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.quote cite {
  display: block;
  margin-top: 4px;
  color: var(--text-lo);
  font-style: normal;
  font-size: 0.75rem;
}

.dock {
  position: relative;
  z-index: 3;
  flex: none;
  height: calc(var(--dock) + env(safe-area-inset-bottom, 0px));
  padding: 0 8px env(safe-area-inset-bottom, 0px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  background: linear-gradient(180deg, transparent, #080808e6 28%, #080808);
  border-top: 1px solid var(--line);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-lo);
  font-size: 0.6875rem;
  font-weight: 500;
  min-height: 44px;
  border-radius: 10px;
}
.dock-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.dock-item[aria-current="page"],
.dock-item.is-on {
  color: var(--text-hi);
}
.dock-item:hover { color: var(--text-hi); background: var(--fill-hover); }

/* Extra room on tall mobile browsers (X opens / in the system browser) */
@media (min-height: 700px) and (max-width: 480px) {
  .pfp-wrap { width: 96px; height: 96px; }
  .hero-title { font-size: 2rem; }
  .lead { font-size: 1rem; }
  .panel { padding-top: 20px; padding-bottom: 20px; }
  .topbar { padding-top: 18px; }
  .panel.is-on[data-panel="home"] {
    display: flex;
    flex-direction: column;
  }
  .cta-block { margin-top: auto; padding-top: 16px; }
}

@media (max-height: 400px), (max-width: 360px) {
  .pfp-wrap { width: 56px; height: 56px; }
  .hero-title { font-size: 1.15rem; }
  .lead { font-size: 0.8rem; margin-bottom: 10px; }
  .hub-mark { font-size: 0.95rem; }
  .btn { min-height: 40px; padding: 8px 14px; font-size: 0.8125rem; }
  .room { aspect-ratio: 16 / 5; }
  .beats { gap: 5px; margin: 6px 0 8px; }
  .beats li { padding: 5px 8px; font-size: 0.75rem; }
  .panel[data-panel="week"] .lead { display: none; }
  .quote { display: none; }
}
