﻿/* ─── camsino splash pages (join · host · pres) ─────────────────────────
   Stripped layout: just logo + scenery + a single centered form / code / QR.
   Shares the camsino palette + scale-to-fit stage with lobby.css.
*/

:root {
  --cs-bg:           #04030c;
  --cs-cyan:         #44e7ff;
  --cs-cyan-soft:    rgba(68, 231, 255, 0.55);
  --cs-cyan-glow:    rgba(68, 231, 255, 0.45);
  --cs-pink:         #ff3aa3;
  --cs-pink-soft:    rgba(255, 58, 163, 0.55);
  --cs-pink-glow:    rgba(255, 58, 163, 0.5);
  --cs-gold:         #ffc23a;
  --cs-gold-glow:    rgba(255, 194, 58, 0.45);
  --cs-text:         #f0f5ff;
  --cs-text-mid:     #b6c1d6;
  --cs-text-dim:     #7d8aa3;

  --cs-f-display:    'Orbitron', 'Rajdhani', 'Helvetica Neue', sans-serif;
  --cs-f-cond:       'Rajdhani', 'Inter', sans-serif;
  --cs-f-mono:       ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

.cs-body {
  margin: 0;
  background: var(--cs-bg);
  color: var(--cs-text);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  display: grid;
  place-items: center;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 350, 'GRAD' 0, 'opsz' 24;
  font-size: 22px; line-height: 1;
  vertical-align: middle; user-select: none;
}

/* ─── shell + stage ───────────────────────────────────────────── */
.cs-shell {
  position: relative;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 80px rgba(68, 231, 255, 0.08);
}
.cs-stage {
  position: absolute;
  top: 0; left: 0;
  width: 1672px; height: 941px;
  transform-origin: top left;
}

/* ─── BACKGROUND ──────────────────────────────────────────────── */
.cs-bg-wall {
  position: absolute; inset: 0;
  background: url('/assets/img/bg-camera-wall2.png') center top / cover no-repeat;
  filter: saturate(1.1) brightness(0.78);
}
.cs-road {
  position: absolute;
  bottom: -60px; left: 50%;
  width: 78%; height: auto;
  transform: translateX(-50%);
  z-index: 1;
  filter: saturate(1.15);
  pointer-events: none;
}
.cs-vignette { position: absolute; pointer-events: none; z-index: 2; }
.cs-vignette--top {
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -8%, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.78) 28%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0) 65%),
    linear-gradient(180deg, rgba(4,3,12,0.8) 0%, rgba(4,3,12,0) 80%);
}
.cs-vignette--bottom {
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.7) 86%, rgba(0,0,0,0.96) 100%);
}
.cs-vignette--center {
  inset: 0;
  background: radial-gradient(ellipse 50% 30% at 50% 60%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 70%);
  z-index: 5;
}

.cs-coin-rain, .cs-coin-pile { position: absolute; pointer-events: none; }
.cs-coin-rain--left  { top: 0; left: 0;  width: 26%; z-index: 3; }
.cs-coin-rain--right { top: 0; right: 0; width: 26%; z-index: 3; }
.cs-coin-pile--left  { bottom: 0; left: 0;  width: 24%; z-index: 4; }
.cs-coin-pile--right { bottom: 0; right: 0; width: 24%; z-index: 4; }

/* ─── LOGO ────────────────────────────────────────────────────── */
.cs-logo-wrap {
  position: absolute;
  top: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  width: 620px;
  text-align: center;
  pointer-events: none;
}
.cs-logo {
  width: 100%; height: auto;
  display: block;
  filter: drop-shadow(0 0 24px rgba(68, 231, 255, 0.32))
          drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

/* ─── CENTERED FORM ───────────────────────────────────────────── */
.cs-splash-form {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  width: min(540px, 80%);
}
.cs-splash-tag {
  font-family: var(--cs-f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cs-text-dim);
  margin: 0;
}

/* big text input (join code) */
.cs-splash-input {
  width: 100%;
  font-family: var(--cs-f-display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-align: center;
  text-transform: uppercase;
  color: var(--cs-cyan);
  background:
    linear-gradient(180deg, rgba(20, 12, 40, 0.85), rgba(8, 4, 20, 0.95));
  border: 0;
  border-radius: 6px;
  padding: 18px 22px;
  caret-color: var(--cs-cyan);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px var(--cs-cyan-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 0 14px var(--cs-cyan-glow),
    0 10px 32px rgba(0, 0, 0, 0.55);
  text-shadow: 0 0 8px var(--cs-cyan-glow);
}
.cs-splash-input:focus {
  outline: none;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.7),
    inset 0 0 0 2px var(--cs-cyan),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 24px var(--cs-cyan-glow),
    0 10px 32px rgba(0, 0, 0, 0.55);
}
.cs-splash-input::placeholder { color: var(--cs-text-dim); letter-spacing: 0.24em; }

/* primary button (host / submit join) */
.cs-splash-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 18px 36px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--cs-f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: #ffe8f3;
  background:
    linear-gradient(180deg,
      rgba(110, 20, 70, 0.95) 0%,
      rgba(50, 8, 30, 0.95) 50%,
      rgba(20, 0, 12, 0.95) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px var(--cs-pink-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 0 22px var(--cs-pink-glow),
    0 0 60px rgba(255, 58, 163, 0.3),
    0 12px 40px rgba(0, 0, 0, 0.6);
  text-shadow: 0 0 10px rgba(255, 200, 225, 0.5);
  transition: filter .15s ease, transform .15s ease;
}
.cs-splash-btn:hover { filter: brightness(1.18); transform: translateY(-1px); }
.cs-splash-btn:active { transform: translateY(1px); }
.cs-splash-btn .material-symbols-outlined {
  color: var(--cs-cyan);
  filter: drop-shadow(0 0 8px var(--cs-cyan-glow));
  font-size: 30px !important;
}

.cs-splash-fineprint {
  margin: 0;
  font-family: var(--cs-f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cs-text-dim);
}
.cs-splash-fineprint a { color: var(--cs-cyan); text-decoration: none; }

/* ─── PRESENTATION SPLASH (code + QR) ─────────────────────────── */
.cs-pres-stack {
  display: flex; flex-direction: column;
  align-items: center; gap: 28px;
}
.cs-pres-code {
  font-family: var(--cs-f-mono);
  font-size: 80px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cs-cyan);
  text-shadow: 0 0 10px var(--cs-cyan-glow);
  margin: 0;
}
.cs-pres-code b {
  display: block;
  font-family: var(--cs-f-display);
  font-size: 96px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cs-gold);
  text-shadow: 0 0 18px var(--cs-gold-glow), 0 4px 12px rgba(0,0,0,.7);
  margin-top: 8px;
}
.cs-pres-qr {
  background: #fff;
  padding: 18px;
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.7),
    inset 0 0 0 2px rgba(255, 255, 255, 0.4),
    0 0 18px var(--cs-cyan-glow),
    0 12px 40px rgba(0, 0, 0, 0.6);
}
.cs-pres-qr > div { display: block; line-height: 0; }
.cs-pres-qr canvas, .cs-pres-qr img { display: block; }
.cs-pres-join {
  font-family: var(--cs-f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cs-text-dim);
  margin: 0;
}
.cs-pres-join code { color: var(--cs-cyan); }

/* ─── ROTATE HINT ─────────────────────────────────────────────── */
.cs-rotate-hint {
  display: none;
  position: fixed; inset: 0;
  background: var(--cs-bg);
  color: var(--cs-cyan);
  text-align: center;
  z-index: 1000;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  font-family: var(--cs-f-display);
  font-weight: 500; letter-spacing: 0.16em;
}
.cs-rotate-hint .material-symbols-outlined {
  font-size: 64px;
  filter: drop-shadow(0 0 18px var(--cs-cyan-glow));
}
.cs-rotate-hint p { margin: 0; text-transform: uppercase; }

@media (orientation: portrait) and (max-width: 720px) {
  .cs-shell { display: none; }
  .cs-rotate-hint { display: flex; }
}

/* ─── PRES SPECTATOR LANDING (no gameid) ────────────────────────
   LEGACY · pres surface moved to ../camsino_legacy/legacy/pres/ in Phase 2.
   Rules below are dormant — kept for reference until a CSS cull pass.
   Originally: dropped in when someone loaded /pres/ without a gameid,
   listing every active lobby so a public spectator could pick one. */
.cs-pres-landing {
  position: absolute;
  /* Logo wrap sits at top: 32px and is 620px wide; with the camsino
     logo's typical ~3.5:1 aspect that puts its bottom edge near 210px,
     plus the cyan drop-shadow glow extends another ~20px below. Start
     the landing at 250px so the SPECTATOR MODE eyebrow doesn't collide
     with the logo or its halo. */
  top: 250px; bottom: 40px; left: 60px; right: 60px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.cs-pres-landing-head {
  text-align: center;
  margin-bottom: 22px;
  flex-shrink: 0;
  /* Panel backdrop so the title block reads cleanly over the busy
     camera-wall + road + coin-rain background. Dark gradient pill
     with cyan inset, matches the lobby panel aesthetic. */
  padding: 18px 28px 20px;
  background:
    linear-gradient(180deg, rgba(20, 12, 40, 0.9), rgba(6, 3, 14, 0.95));
  border: 1px solid var(--cs-cyan-soft);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 24px rgba(68, 231, 255, 0.18),
    0 8px 28px rgba(0, 0, 0, 0.55);
  max-width: 720px;
}
.cs-pres-landing-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--cs-cyan-soft);
  border-radius: 999px;
  font-family: var(--cs-f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--cs-cyan);
  background: rgba(4, 2, 10, 0.6);
  margin-bottom: 12px;
}
.cs-pres-landing-head h1 {
  margin: 0 0 10px;
  font-family: var(--cs-f-display);
  font-weight: 600;
  font-size: 38px;
  letter-spacing: 0.18em;
  color: var(--cs-cyan);
  text-shadow: 0 0 16px var(--cs-cyan-glow);
}
.cs-pres-landing-sub {
  margin: 0;
  font-family: var(--cs-f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cs-text-dim);
  max-width: 640px;
  line-height: 1.5;
}
.cs-pres-landing-empty {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  padding: 40px 30px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(4, 2, 10, 0.45);
  color: var(--cs-text-dim);
  font-family: var(--cs-f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.cs-pres-landing-empty .material-symbols-outlined {
  font-size: 40px;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 6px;
}
.cs-pres-landing-empty p { margin: 0; }
.cs-pres-landing-empty-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3) !important;
}
.cs-pres-landing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 1280px;
  overflow-y: auto;
  align-content: start;
}
.cs-pres-landing-card {
  background: linear-gradient(180deg, rgba(20, 12, 40, 0.85), rgba(8, 4, 20, 0.95));
  border: 1px solid var(--cs-line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.cs-pres-landing-card--live {
  border-color: rgba(244, 163, 163, 0.45);
  box-shadow: 0 0 14px rgba(244, 163, 163, 0.18);
}
.cs-pres-landing-card:hover {
  border-color: var(--cs-cyan);
  box-shadow: 0 0 18px var(--cs-cyan-glow);
  transform: translateY(-2px);
}
.cs-pres-landing-link {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 10px;
  padding: 16px 18px;
  color: var(--cs-text);
  text-decoration: none;
}
.cs-pres-landing-pill {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--cs-f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--cs-cyan);
  border: 1px solid var(--cs-cyan-soft);
  background: rgba(8, 4, 20, 0.6);
}
.cs-pres-landing-pill--live {
  color: #f4a3a3;
  border-color: rgba(244, 163, 163, 0.55);
  background: rgba(38, 8, 8, 0.7);
}
@keyframes cs-pres-live-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(244, 163, 163, 0); }
  50%      { box-shadow: 0 0 10px rgba(244, 163, 163, 0.6); }
}
.cs-pres-landing-pill--live { animation: cs-pres-live-pulse 1.8s ease-in-out infinite; }
.cs-pres-landing-code {
  font-family: var(--cs-f-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 0.18em;
  color: var(--cs-cyan);
  text-shadow: 0 0 10px var(--cs-cyan-glow);
}
.cs-pres-landing-card--live .cs-pres-landing-code {
  color: #ffd6d6;
  text-shadow: 0 0 12px rgba(244, 163, 163, 0.55);
}
.cs-pres-landing-meta {
  display: flex; flex-direction: column;
  gap: 4px;
  font-family: var(--cs-f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cs-text-dim);
}
.cs-pres-landing-meta-row {
  display: inline-flex; align-items: center; gap: 6px;
}
.cs-pres-landing-meta-row .material-symbols-outlined {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
}
.cs-pres-landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--cs-cyan-soft);
  background: rgba(8, 4, 20, 0.7);
  font-family: var(--cs-f-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cs-cyan);
}
.cs-pres-landing-cta .material-symbols-outlined {
  font-size: 18px;
  color: var(--cs-cyan);
  filter: drop-shadow(0 0 6px var(--cs-cyan-glow));
}
.cs-pres-landing-foot {
  margin-top: 16px;
  font-family: var(--cs-f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cs-text-dim);
}
