/* ============================================================
   HOST N SHILL — design base
   A plain-CSS design system. No frameworks.
   Sections:  1. Tokens   2. Base   3. Effects   4. Components
              5. Landing   6. Home   7. Responsive
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Silkscreen:wght@400;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* ---- 1. TOKENS ------------------------------------------- */
:root {
  /* surfaces — cool near-black, warm white ink */
  --bg:    #0b0b12;
  --bg-2:  #13131f;
  --bg-3:  #1c1c2b;
  --line:  rgba(244, 241, 234, 0.12);
  --ink:   #f4f1ea;
  --dim:   #9a96a6;
  --faint: #5d5a6b;

  /* loud arcade accents — matched chroma, varied hue (oklch) */
  --mag:    oklch(0.72 0.21 352);
  --cyan:   oklch(0.82 0.14 205);
  --green:  oklch(0.86 0.22 142);
  --amber:  oklch(0.83 0.17 78);
  --violet: oklch(0.70 0.20 300);
  --mag-d:  oklch(0.55 0.20 352);
  --cyan-d: oklch(0.62 0.14 205);
  --green-d:oklch(0.66 0.20 142);

  /* type */
  --f-disp: 'Bungee', system-ui, sans-serif;
  --f-pix:  'Silkscreen', system-ui, monospace;
  --f-mono: 'Space Mono', ui-monospace, monospace;

  /* layout */
  --maxw: 1280px;
  --pad:  56px;
}

/* ---- 2. BASE --------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: #07060c;
  color: var(--ink);
  font-family: var(--f-mono);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.site {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  background: var(--bg);
  box-shadow: 0 0 120px rgba(0, 0, 0, 0.6);
  min-height: 100vh;
}

/* screen switching (landing vs home) */
.screen { display: none; }
.screen.is-active { display: block; }

/* type helpers */
.disp  { font-family: var(--f-disp); }
.pix   { font-family: var(--f-pix); text-transform: uppercase; }
.mono  { font-family: var(--f-mono); }
.h2    { font-family: var(--f-disp); font-size: 40px; line-height: 1.05; margin: 0; }
.kicker{ font-family: var(--f-pix); font-size: 12px; letter-spacing: 0.16em;
         text-transform: uppercase; color: var(--dim); }
.lede  { font-size: 17px; line-height: 1.55; color: var(--dim); }

/* ---- 3. EFFECTS (CRT) ------------------------------------ */
.scanlines, .vignette { position: absolute; inset: 0; pointer-events: none; }
.scanlines {
  z-index: 50; mix-blend-mode: multiply;
  background: repeating-linear-gradient(to bottom,
    rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.22) 3px 4px);
}
.vignette {
  z-index: 49;
  box-shadow: inset 0 0 180px 40px rgba(0,0,0,0.7);
  background: radial-gradient(120% 120% at 50% 45%, transparent 55%, rgba(0,0,0,0.5) 100%);
}
.flicker { animation: flicker 6s steps(1) infinite; }
@keyframes flicker { 0%,100%{opacity:1} 92%{opacity:1} 93%{opacity:.82} 94%{opacity:1} 97%{opacity:.9} }

.blink { animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }

.aberration { text-shadow: 2px 0 0 var(--mag), -2px 0 0 var(--cyan); }
.glow-green { text-shadow: 0 0 14px color-mix(in oklch, var(--green) 80%, transparent); }

/* ---- 4. COMPONENTS --------------------------------------- */

/* buttons — chunky pixel CTA with hard offset shadow */
.btn {
  font-family: var(--f-pix); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.02em; cursor: pointer; border: 0; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 20px 34px; font-size: 18px; line-height: 1; color: #0b0b12;
  background: var(--green); box-shadow: 6px 6px 0 0 var(--green-d);
  transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translate(3px,3px); box-shadow: 3px 3px 0 0 var(--green-d); }
.btn--mag  { background: var(--mag);  box-shadow: 6px 6px 0 0 var(--mag-d); }
.btn--cyan { background: var(--cyan); box-shadow: 6px 6px 0 0 var(--cyan-d); }
.btn--ghost{ background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }

/* framed panel */
.frame { background: var(--bg-2); box-shadow: inset 0 0 0 2px var(--line); position: relative; }

/* striped image placeholder — swap for real art */
.placeholder {
  position: relative; background-color: var(--bg-3);
  background-image: repeating-linear-gradient(45deg,
    rgba(244,241,234,0.05) 0 8px, transparent 8px 16px);
  display: flex; align-items: flex-end; overflow: hidden;
}
.placeholder__tag {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--dim); text-transform: uppercase; padding: 7px 9px; margin: 8px;
  background: rgba(0,0,0,0.45); border-radius: 2px;
}
.placeholder--center { align-items: center; justify-content: center; }
.placeholder--center .placeholder__tag { margin: 0; }

/* waveform — bars injected by app.js into [data-wave] */
.wave { display: flex; align-items: center; gap: 3px; height: 34px; }
.wave i { display: block; width: 4px; border-radius: 2px; background: var(--cyan);
  animation: eq .9s ease-in-out infinite; }
.wave--green i { background: var(--green); }
.wave--mini { height: 12px; }
.wave--mini i { width: 3px; }
@keyframes eq { 0%,100%{ height: 18%; } 50%{ height: 100%; } }

/* live dot */
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mag);
  box-shadow: 0 0 10px var(--mag); display: inline-block; animation: pulse 1.4s ease-in-out infinite; }
.live-dot--green { background: var(--green); box-shadow: 0 0 10px var(--green); }
@keyframes pulse { 0%,100%{opacity:1; transform:scale(1)} 50%{opacity:.5; transform:scale(.8)} }

/* marquee bulbs — injected by app.js into [data-bulbs] */
.bulbs { display: flex; gap: 10px; align-items: center; }
.bulbs i { width: 9px; height: 9px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 8px var(--amber); animation: blink 1.4s steps(1) infinite; }

/* voice-stage speaker */
.speaker { width: 64px; height: 64px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-family: var(--f-pix);
  font-size: 16px; color: var(--ink); background: var(--bg-3); }
.speaker--talking { box-shadow: 0 0 0 3px var(--green), 0 0 22px color-mix(in oklch, var(--green) 70%, transparent); }
.speaker--muted   { opacity: .5; box-shadow: 0 0 0 2px var(--line); }
.stage-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stage-item__label { font-family: var(--f-pix); font-size: 9px; text-transform: uppercase; color: var(--faint); }
.stage-item--talking .stage-item__label { color: var(--green); }
.voice__stage .speaker { width: 58px; height: 58px; }
.voice__stage[data-stage="small"] .speaker { width: 46px; height: 46px; font-size: 13px; }

/* ---- 5. LANDING ------------------------------------------ */
.topbar { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px; border-bottom: 2px solid var(--line);
  background: linear-gradient(180deg,#16121f,#0b0b12); }
.topbar__mid { font-family: var(--f-pix); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--dim); }
.status { font-family: var(--f-pix); font-size: 11px; text-transform: uppercase;
  color: var(--green); display: flex; align-items: center; gap: 8px; }

.section { padding: 46px var(--pad) 10px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.section__note { font-family: var(--f-pix); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--dim); }

/* hero */
.hero { padding: 54px var(--pad) 40px; }
.hero__screen { border-radius: 14px; padding: 46px 48px 52px; position: relative;
  background: radial-gradient(130% 100% at 50% 0%, #1a1430 0%, #0d0a16 70%);
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 120px rgba(0,0,0,.6); }
.hero__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px;
  font-family: var(--f-pix); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; }
.hero__title { font-family: var(--f-disp); font-size: 116px; line-height: 0.92; margin: 0; }
.hero__lede { font-size: 21px; line-height: 1.5; color: var(--ink); max-width: 620px; margin: 26px 0 0; }
.hero__insert { font-family: var(--f-pix); font-size: 16px; text-transform: uppercase;
  color: var(--green); margin: 34px 0 28px; }
.hero__cta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hero__fine { font-size: 13px; color: var(--dim); }
.ticker { margin-top: 40px; padding-top: 22px; border-top: 1px dashed var(--line);
  display: flex; gap: 40px; font-family: var(--f-pix); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--dim); }
.ticker__end { margin-left: auto; }

/* games grid */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.game-card { border-radius: 8px; overflow: hidden; border-top: 3px solid var(--hue, var(--green)); }
.game-card__art { height: 152px; }
.game-card__body { padding: 16px 18px 20px; }
.game-card__title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.game-card__code { font-family: var(--f-pix); font-size: 13px; color: var(--hue, var(--green)); }
.game-card__name { font-family: var(--f-disp); font-size: 19px; }
.game-card__tag { font-family: var(--f-pix); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--dim); margin-bottom: 10px; }
.game-card__blurb { font-size: 13px; line-height: 1.5; color: var(--dim); margin: 0; }

/* voice band */
.voice { border-radius: 12px; padding: 36px 40px; display: flex; gap: 44px; align-items: center;
  background: linear-gradient(120deg, #14101f, #0d0a16); }
.voice__col { flex: 1 1 0; min-width: 0; }
.voice__copy { font-size: 15px; line-height: 1.55; color: var(--dim); max-width: 440px; margin: 0; }
.voice__stage { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.voice__meter { border-radius: 6px; padding: 14px 18px; display: flex; align-items: center; gap: 16px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { border-radius: 8px; padding: 26px 24px; }
.step__num { font-family: var(--f-disp); font-size: 40px; line-height: 1; }
.step__title { font-family: var(--f-disp); font-size: 22px; margin: 14px 0 10px; }
.step__body { font-size: 13.5px; line-height: 1.55; color: var(--dim); margin: 0; }

/* footer cta band */
.cta-band { margin: 52px var(--pad) 40px; border-radius: 14px; padding: 48px 40px;
  text-align: center; background: var(--green); color: #0b0b12; }
.cta-band__kicker { font-family: var(--f-pix); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.22em; opacity: .75; margin-bottom: 14px; }
.cta-band__title { font-family: var(--f-disp); font-size: 56px; margin: 0 0 22px; line-height: 1; }
.cta-band .btn { background: #0b0b12; color: var(--green); box-shadow: 6px 6px 0 0 rgba(0,0,0,.35); }

.footer { padding: 0 var(--pad) 40px; display: flex; justify-content: space-between; align-items: center; }
.footer span { font-family: var(--f-pix); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--faint); }

/* ---- 6. HOME --------------------------------------------- */
.home-topbar { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px; border-bottom: 2px solid var(--line); background: #0d0a16; }
.brand { font-family: var(--f-disp); font-size: 18px; }
.brand em { color: var(--mag); font-style: normal; }
.wallet { display: flex; align-items: center; gap: 16px; }
.btn-mini { font-family: var(--f-pix); font-size: 10px; text-transform: uppercase; color: var(--dim);
  background: transparent; border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; cursor: pointer; }

.welcome { padding: 56px var(--pad) 30px; text-align: center; }
.welcome__eyebrow { font-family: var(--f-pix); font-size: 14px; text-transform: uppercase;
  letter-spacing: 0.22em; color: var(--green); }
.welcome__title { font-family: var(--f-disp); font-size: 92px; line-height: 0.95; margin: 20px 0 0; }
.welcome__sub { font-family: var(--f-disp); font-size: 30px; color: var(--dim); margin-top: 6px; }
.welcome__body { font-size: 18px; line-height: 1.55; color: var(--ink); max-width: 600px; margin: 24px auto 0; }

.progress { max-width: 560px; margin: 34px auto 0; }
.progress__head { display: flex; justify-content: space-between; margin-bottom: 10px;
  font-family: var(--f-pix); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; }
.progress__bar { height: 18px; border-radius: 3px; background: var(--bg-3);
  box-shadow: inset 0 0 0 2px var(--line); overflow: hidden; }
.progress__fill { height: 100%; width: 90%;
  background: repeating-linear-gradient(90deg, var(--green) 0 12px, var(--green-d) 12px 16px); }

.cards { padding: 24px var(--pad) 10px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 22px; }
.card { border-radius: 12px; padding: 30px 32px 32px; }
.card--telegram { border-top: 3px solid var(--cyan); }
.card--pitch { border-top: 3px solid var(--mag); background: linear-gradient(130deg,#1a0f1f,#0d0a16); }
.card__title { font-family: var(--f-disp); margin: 12px 0 14px; line-height: 1.04; }
.card__body { font-size: 14.5px; line-height: 1.55; color: var(--dim); margin: 0 0 22px; }
.card__row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hl-mag { color: var(--mag); }

.peek { padding: 40px var(--pad) 14px; }
.peek__grid { border-radius: 12px; padding: 16px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.peek__art { height: 230px; border-radius: 8px; position: relative;
  background: radial-gradient(120% 120% at 50% 30%, #1c1330, #0c0915); }
.peek__badge { position: absolute; top: 14px; left: 14px; display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,.5); padding: 6px 10px; border-radius: 4px;
  font-family: var(--f-pix); font-size: 9px; text-transform: uppercase; color: var(--ink); }
.peek__side { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 8px 12px; }

.home-footer { padding: 32px var(--pad) 40px; text-align: center; }
.home-footer p { font-size: 14px; color: var(--dim); margin: 0; }

/* small shared label */
.label { font-family: var(--f-pix); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--dim); }

/* ---- 7. RESPONSIVE --------------------------------------- */
@media (max-width: 980px) {
  :root { --pad: 28px; }
  .hero__title { font-size: 72px; }
  .welcome__title { font-size: 60px; }
  .games, .steps { grid-template-columns: 1fr 1fr; }
  .voice { flex-direction: column; align-items: stretch; }
  .cards, .peek__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .games, .steps { grid-template-columns: 1fr; }
  .hero__title { font-size: 52px; }
  .ticker { flex-wrap: wrap; gap: 16px; }
}
