/* ==========================================================================
   steam.css: homepage journey, training room -> door -> steam room
   (DESIGN-BRIEF.md, Phase 1). Loaded on the homepage only, after styles.css.
   Brand colors stay; only the light changes: cool steel in the training
   room, warm amber in the steam room. All atmosphere is CSS (no images,
   no video, no libraries). journey.js writes --hero, --door and --warm
   (0..1) on <html> as you scroll; html.journey-flat (reduced motion,
   Save-Data) and no-JS get a flat page with identical content.
   ========================================================================== */
:root {
  --hero: 0; --door: 0; --warm: 0;
  --steel: #9dbbd6;
  --steel-soft: #c9dbea;
  --steel-dim: rgba(157, 187, 214, .10);
  --steel-line: rgba(157, 187, 214, .20);
  --rm-amber: #ffa14a;
  --rm-ember: #ff6a2a;
  --steam: 255, 222, 196;
  --font-giant: var(--font-display); /* Anton, from styles.css */
}
/* Flat page (no JS, reduced motion, Save-Data): door shown ajar, steam room lit by its own warm wash. */
html:not(.journey-live) { --door: .9; --warm: 0; --hero: 0; }

/* Room light: a cool wash that hands over to a warm one as you walk in. */
.journey { position: relative; }
.journey::before, .journey::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
.journey::before {
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(157, 187, 214, .13), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 30%, rgba(157, 187, 214, .07), transparent 70%);
  opacity: calc(1 - var(--warm));
}
.journey::after {
  background:
    radial-gradient(ellipse 80% 60% at 15% 100%, rgba(255, 106, 42, .24), transparent 70%),
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(255, 161, 74, .15), transparent 70%),
    linear-gradient(#0d0703, #0d0703);
  opacity: calc(var(--warm) * .9);
}

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

/* ---------------- Shared room parts ---------------- */
.room { position: relative; padding-block: 24px 40px; }
.j-head {
  font-family: var(--font-giant); font-weight: 400; text-transform: uppercase; text-wrap: balance;
  font-size: clamp(36px, 8.4vw, 84px); line-height: .92; letter-spacing: -.015em; margin: 6px 0 18px;
}
.slot-empty { color: var(--faint); font-size: 14.5px; margin: 0; }
.journey .meta { margin-top: 14px; }

/* Signup as training equipment (shown only once signups work). */
.signup.equip { border-color: var(--steel-line); }

/* ---------------- Today's board ---------------- */
.board-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.board-stats span {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--steel-line); border-radius: 999px; padding: 5px 12px;
}
.board-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.board-stats .is-live { color: var(--red-soft); border-color: rgba(253, 126, 108, .45); }
.board-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.bd-game {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; align-items: center;
  background: linear-gradient(180deg, rgba(157, 187, 214, .07), rgba(157, 187, 214, .02));
  border: 1px solid var(--steel-line); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--text);
  transition: border-color .15s, transform .15s;
}
.bd-game:hover { border-color: var(--steel); transform: translateY(-2px); color: var(--text); }
.bd-league { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--steel); }
.bd-state { font-family: var(--font-mono); font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.bd-state.live { color: var(--red-soft); }
.bd-state.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: 1px; animation: j-pulse 1.4s ease-in-out infinite; }
@keyframes j-pulse { 50% { opacity: .3; } }
.bd-team { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.bd-team b { color: var(--text); font-weight: 700; letter-spacing: .5px; }
.bd-team.win b, .bd-team.win .bd-score { color: var(--gold-soft); }
.bd-score { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); }

/* ---------------- Verdicts ---------------- */
.verdict-list { display: grid; gap: 8px; }
.vd-row {
  display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--steel-line); border-radius: 10px; text-decoration: none; color: var(--text);
  background: rgba(157, 187, 214, .03);
}
.vd-row:hover { border-color: var(--steel); color: var(--text); }
.vd-tag { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; text-align: center; border-radius: 6px; padding: 5px 0; }
.vd-start { color: var(--green-soft); background: var(--green-dim); border: 1px solid rgba(45, 212, 96, .35); }
.vd-sit { color: var(--red-soft); background: var(--red-dim); border: 1px solid rgba(253, 126, 108, .35); }
.vd-sleeper { color: var(--steel-soft); background: var(--steel-dim); border: 1px solid var(--steel-line); }
.vd-bust { color: var(--gold-soft); background: var(--gold-dim); border: 1px solid rgba(230, 152, 44, .35); }
.vd-name { min-width: 0; color: var(--muted); font-size: 14.5px; }
.vd-name b { color: var(--text); font-size: 16px; margin-right: 4px; }
.vd-match { font-family: var(--font-mono); font-size: 12px; color: var(--faint); text-align: right; }
@media (max-width: 560px) {
  .vd-row { grid-template-columns: 72px minmax(0, 1fr); }
  .vd-match { grid-column: 2; text-align: left; }
}

/* ---------------- Money bench ---------------- */
.money-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .money-grid { grid-template-columns: minmax(0, 1fr); } }
.money-next {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  border: 1px solid rgba(230, 152, 44, .35); border-radius: var(--radius); padding: 20px;
  background: radial-gradient(ellipse at 0% 0%, rgba(230, 152, 44, .12), transparent 70%), var(--card);
}
.mn-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--faint); }
.mn-count { font-family: var(--font-mono); font-weight: 700; font-size: clamp(34px, 6vw, 48px); line-height: 1; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.mn-event { color: var(--muted); font-size: 14.5px; }

/* ---------------- The door ---------------- */

/* ---------------- The walk (walk.js): four stills, live screens ---------------- */
/* The video sits under still 1 and still 4, which crossfade over it. */
.tv-idle { height: 100%; display: grid; place-items: center; }
.tv-idle img { height: 70%; opacity: .55; }
.tv-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; border-bottom: 2px solid #f2691b; padding-bottom: 6px; }
.tv-head b { font-size: 19px; text-transform: uppercase; letter-spacing: 1px; color: #f2691b; }
.tv-head i { font-style: normal; font-size: 12px; color: rgba(244, 236, 220, .6); }
.tv-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; font-size: 17px; line-height: 1.75; white-space: nowrap; }
.tv-row.mk { grid-template-columns: 1fr auto auto; font-size: 16px; line-height: 1.6; }
.tv-lg { font-size: 11px; color: rgba(244, 236, 220, .55); text-transform: uppercase; }
.tv-teams { overflow: hidden; text-overflow: ellipsis; }
.tv-row em { font-style: normal; font-size: 13px; color: rgba(244, 236, 220, .7); }
.tv-row em.live { color: #ff5a3c; }
.tv-row em.up { color: #5fd28a; }
.tv-row em.down { color: #ff6a55; }

/* ---------------- Steam room ---------------- */

/* The Heat */
.heat-zone { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 680px) { .heat-zone { grid-template-columns: minmax(0, 1fr); } .heater { max-width: 170px; } }
.heater { position: relative; padding-top: 20px; }
.heater-rocks { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 0 8px; margin-bottom: -6px; position: relative; z-index: 1; }
.heater-rocks i {
  width: 30%; aspect-ratio: 1.3; border-radius: 48% 52% 44% 56%;
  background: radial-gradient(circle at 40% 35%, #ffb25e, #ff6a2a 40%, #5a1d08 80%);
  box-shadow: 0 0 18px rgba(255, 106, 42, .55);
  animation: j-ember 3.2s ease-in-out infinite;
}
.heater-rocks i:nth-child(2n) { animation-delay: -1.1s; }
.heater-rocks i:nth-child(3n) { animation-delay: -2.1s; }
@keyframes j-ember { 50% { filter: brightness(.72); box-shadow: 0 0 8px rgba(255, 106, 42, .3); } }
.heater-box {
  height: 110px; border-radius: 8px;
  background: repeating-linear-gradient(90deg, #1b1512 0 14px, #241c17 14px 16px);
  border: 1px solid #3a2a1e; box-shadow: 0 0 60px rgba(255, 106, 42, .25), inset 0 -20px 30px rgba(0, 0, 0, .5);
}
.heat-readout {
  display: inline-flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  border: 1px solid rgba(255, 161, 74, .4); border-radius: 10px; padding: 10px 16px; margin-bottom: 16px;
  background: rgba(20, 8, 2, .7);
}
.hr-num { font-family: var(--font-mono); font-weight: 700; font-size: 34px; line-height: 1; color: var(--rm-amber); text-shadow: 0 0 16px rgba(255, 140, 60, .6); font-variant-numeric: tabular-nums; }
.hr-sub { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--faint); }
.heat-list { display: grid; gap: 8px; }
.ht-row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--text);
  border: 1px solid rgba(255, 161, 74, calc(.12 + var(--near) * .35));
  background: linear-gradient(90deg, rgba(255, 106, 42, calc(var(--near) * .22)), rgba(255, 106, 42, .02) 70%);
}
a.ht-row:hover { border-color: var(--rm-amber); color: var(--text); }
.ht-rank { font-family: var(--font-mono); font-weight: 700; color: var(--rm-amber); text-align: center; }
.ht-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ht-text b { font-weight: 600; font-size: 15.5px; overflow-wrap: anywhere; }
.ht-text i { font-style: normal; font-size: 12.5px; color: var(--faint); }
.ht-heat { font-family: var(--font-mono); font-weight: 700; color: var(--rm-amber); font-size: 18px; }
.ht-heat small { font-size: 11px; color: var(--faint); }

/* Video wall */
.video-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 14px; }
@media (min-width: 760px) { .video-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.screen { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); }
.screen-glass {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px;
  border: 6px solid #1c130c; background: #120a05;
  box-shadow: 0 0 0 1px rgba(255, 161, 74, .25), 0 0 34px rgba(255, 140, 60, .18);
  transition: box-shadow .2s;
}
.screen:hover .screen-glass, .screen:focus-visible .screen-glass { box-shadow: 0 0 0 1px var(--rm-amber), 0 0 44px rgba(255, 140, 60, .4); }
.screen-glass img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: j-pan 22s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -4s); }
.screen-glass::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--steam), .10), transparent 40%, rgba(20, 8, 2, .45)); pointer-events: none; }
@keyframes j-pan { from { transform: scale(1.04) translate(-1.5%, 0); } to { transform: scale(1.12) translate(1.5%, -2%); } }
.screen-play { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .35); }
.screen-play::before { content: ""; position: absolute; left: 18px; top: 14px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.screen-brand { font-family: var(--font-giant); font-weight: 400; font-size: clamp(17px, 4vw, 28px); text-transform: uppercase; color: var(--rm-amber); text-shadow: 0 0 18px rgba(255, 140, 60, .6); }
.screen-cap { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.screen-cap b { font-weight: 600; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.screen-cap i { font-style: normal; font-size: 12px; color: var(--faint); }

/* Platform signs */
.neon-row { display: flex; flex-wrap: wrap; gap: 14px; }
.neon {
  --c: 255, 161, 74;
  font-family: var(--font-giant); font-weight: 400; text-transform: uppercase; letter-spacing: 1px; font-size: clamp(18px, 3.4vw, 26px);
  text-decoration: none; color: rgb(var(--c)); padding: 12px 20px; border-radius: 12px;
  border: 2px solid rgba(var(--c), .8);
  text-shadow: 0 0 10px rgba(var(--c), .75);
  box-shadow: 0 0 16px rgba(var(--c), .35), inset 0 0 14px rgba(var(--c), .18);
  animation: j-neon 6s ease-in-out infinite;
}
.neon:hover { color: #fff; background: rgba(var(--c), .12); }
.neon.yt { --c: 255, 92, 72; }
.neon.tt { --c: 120, 230, 230; animation-delay: -1.5s; }
.neon.ig { --c: 255, 120, 200; animation-delay: -3s; }
.neon.x { --c: 235, 230, 220; animation-delay: -4.2s; }
.neon.fb { --c: 120, 170, 255; animation-delay: -2.4s; }
@keyframes j-neon { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 48% { opacity: .55; } 50% { opacity: 1; } }

/* Exit */

/* ---------------- Flat fallback + reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  .journey *, .journey *::before, .journey *::after { animation: none !important; transition: none !important; }
}
/* Save-Data gets the flat page too: no ambient animation. */
.journey-flat .journey *, .journey-flat .journey *::before, .journey-flat .journey *::after { animation: none !important; }
/* Keeps the caption readable over the brightest still (the open doorway). */
