/* LEVI STUDIOS — 4-page draft shell (v214-draft)
   90s soul, professional discipline. Phone-first. Read the KB before editing. */

:root {
  --bg: #0a0a18;
  --bg2: #101024;
  --ink: #e8e8f0;
  --dim: #9a9ab0;
  --cyan: #00f0ff;
  --magenta: #ff2fd6;
  --gold: #ffd700;
  --lime: #7dff5e;
  --card: #141428;
  --line: #2a2a4a;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}

/* Starfield: layered radial dots + slow twinkle. Respects reduced motion. */
.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 8%,  #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 84% 34%, var(--cyan) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 66%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 52% 88%, var(--magenta) 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 78%,  #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 62%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 44% 12%, var(--gold) 50%, transparent 51%);
  animation: twinkle 4s ease-in-out infinite alternate;
  opacity: .8;
}
@keyframes twinkle { from { opacity: .55; } to { opacity: .95; } }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { max-width: 920px; } }

/* Skip link (KB: accessibility) */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #000; padding: 12px 16px; z-index: 99;
  font-weight: bold;
}
.skip:focus { left: 8px; top: 8px; }

/* ---- Nav: the 4 doors. Byte-identical on all pages. ---- */
.doors {
  display: flex; gap: 8px; padding: 12px 0;
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 24, .94);
  border-bottom: 2px solid var(--line);
}
.doors a {
  flex: 1; text-align: center;
  min-height: 56px; display: flex; align-items: center; justify-content: center;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 11px; letter-spacing: 1px;
  color: var(--ink); text-decoration: none;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 6px;
  box-shadow: inset -2px -2px 0 rgba(0,0,0,.55), inset 2px 2px 0 rgba(255,255,255,.08);
}
.doors a:hover { border-color: var(--cyan); color: var(--cyan); }
.doors a[aria-current="page"] {
  border-color: var(--gold); color: var(--gold);
  box-shadow: inset -2px -2px 0 rgba(0,0,0,.55), 0 0 12px rgba(255, 215, 0, .35);
}
/* v285 phone doors: all five tabs fully visible at phone width —
   equal flexible tabs, type scales down, no clipped labels. */
@media (max-width: 560px) {
  .doors { gap: 4px; width: 100%; align-self: stretch; }
  .doors a { flex: 1 1 0; min-width: 0; font-size: clamp(6px, 1.75vw, 11px);
    letter-spacing: 0; padding: 0 1px; border-width: 1px; }
}

/* ---- Hero ---- */
.hero { text-align: center; padding: 36px 0 20px; }
.hero .logo {
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: clamp(22px, 7vw, 44px);
  color: var(--cyan);
  text-shadow: 3px 3px 0 var(--magenta), 6px 6px 0 rgba(0,0,0,.6);
  margin: 0 0 12px; letter-spacing: 2px;
}
.hero .tagline { color: var(--dim); font-size: 17px; margin: 0 0 8px; }
.hero .potato-line { color: var(--gold); font-size: 14px; margin: 0 0 16px; }

/* Gold seal stamp */
.seal {
  display: inline-block;
  border: 3px double var(--gold);
  color: var(--gold);
  border-radius: 50%;
  width: 92px; height: 92px;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 9px; line-height: 1.5;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 0 18px rgba(255, 215, 0, .35);
  transform: rotate(-8deg);
  margin: 8px 0 4px;
}
.seal.spin { animation: sealspin 1.2s ease; }
@keyframes sealspin { to { transform: rotate(352deg); } }

/* ---- Pixel divider (GeoCities rainbow HR, house-trained) ---- */
hr.pixel {
  border: 0; height: 8px; margin: 28px 0;
  background: repeating-linear-gradient(90deg,
    var(--cyan) 0 8px, var(--magenta) 8px 16px,
    var(--gold) 16px 24px, var(--lime) 24px 32px);
  image-rendering: pixelated;
  box-shadow: 0 2px 0 rgba(0,0,0,.6);
}

/* ---- Sections & cards ---- */
section.block { margin: 0 0 8px; }
h2.sec {
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 15px; color: var(--lime); letter-spacing: 1px;
  margin: 0 0 12px;
}
h2.sec::before { content: "▸ "; color: var(--magenta); }

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin: 0 0 12px;
  box-shadow: inset -3px -3px 0 rgba(0,0,0,.4), inset 3px 3px 0 rgba(255,255,255,.05);
}
.card h3 { margin: 0 0 6px; font-size: 17px; color: var(--cyan); }
.card p { margin: 0 0 10px; color: var(--dim); font-size: 15px; }
.card p:last-child { margin-bottom: 0; }

/* Chunky 90s button */
.btn {
  display: inline-block;
  min-height: 56px; line-height: 52px; padding: 0 22px;
  font-family: "Press Start 2P", "Courier New", monospace; font-size: 12px;
  color: #001318; background: var(--cyan); text-decoration: none;
  border: 0; border-radius: 6px; cursor: pointer;
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.28), inset 4px 4px 0 rgba(255,255,255,.45), 0 4px 0 rgba(0,0,0,.5);
}
.btn:active { transform: translateY(3px); box-shadow: inset -2px -2px 0 rgba(0,0,0,.28); }
.btn.pink { background: var(--magenta); color: #1c0016; }
.btn.gold { background: var(--gold); color: #241a00; }

.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid.two { grid-template-columns: 1fr 1fr; } }

/* Mount placeholders (radio player / chat go here in the real build) */
.mount {
  border: 2px dashed var(--magenta); border-radius: 8px;
  padding: 28px 16px; text-align: center; color: var(--dim);
  background: rgba(255, 47, 214, .05); margin: 0 0 12px;
}
.mount b { color: var(--magenta); font-family: "Press Start 2P", "Courier New", monospace; font-size: 12px; }

/* Marquee ticker */
.ticker {
  overflow: hidden; white-space: nowrap;
  border-top: 2px solid var(--line); border-bottom: 2px solid var(--line);
  background: #0d0d20; padding: 10px 0; margin: 20px 0;
}
.ticker span {
  display: inline-block; padding-left: 100%;
  animation: tick 22s linear infinite;
  color: var(--gold); font-size: 15px;
}
@keyframes tick { to { transform: translateX(-100%); } }

/* Greeting */
.greet {
  text-align: center; color: var(--lime);
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 11px; margin: 6px 0 0; letter-spacing: 1px;
}

/* Odometer */
.odo {
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 13px; color: var(--gold); letter-spacing: 3px;
}

/* ---- Footer: byte-identical everywhere ---- */
footer {
  border-top: 2px solid var(--line);
  margin-top: 32px; padding: 20px 0 40px;
  text-align: center; color: var(--dim); font-size: 13px;
}
footer nav { margin-bottom: 12px; }
footer nav a { color: var(--cyan); margin: 0 8px; text-decoration: none; font-size: 14px; }
footer .fine { font-size: 12px; margin-top: 10px; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .stars, .ticker span { animation: none; }
  .ticker span { padding-left: 0; }
}

/* ---- v214 shell compat: vars the chat client expects ---- */
:root{--blue:#4da6ff;--red:#ff5a4d;--tap:56px;--panel2:#0d0d20;}

/* ---- Chat buttons: w95-btn maps to the chunky 90s button in this shell ---- */
.w95-btn {
  display: inline-block; min-height: 56px; line-height: 52px; padding: 0 22px;
  font-family: "Press Start 2P", "Courier New", monospace; font-size: 12px;
  color: #001318; background: var(--cyan); text-decoration: none;
  border: 0; border-radius: 6px; cursor: pointer;
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.28), inset 4px 4px 0 rgba(255,255,255,.45), 0 4px 0 rgba(0,0,0,.5);
}
.w95-btn:active { transform: translateY(3px); box-shadow: inset -2px -2px 0 rgba(0,0,0,.28); }
.w95-btn.ghost { background: var(--card); color: var(--ink); border: 2px solid var(--line); }
.ln-panelbar { color: var(--gold); font-weight: 800; letter-spacing: .08em; margin-bottom: 8px; }
.ln-dim { color: var(--dim); font-weight: 400; }

/* ---- Radio kicker line ---- */
.kicker { color: var(--gold); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; margin: 0 0 10px; text-align: center; }
