/* racing/css/racing.css - THE WEASEL RACING CLUB's front page (racing/ARCHITECTURE.md). The door's own look (the hatch,
   the eyes, the knocker, the keyhole, the slip) is racing/js/racing-door.js's, which adds its own style; this is the page around it:
   the curtain, the stage cut to cover the screen, the name over the alley, the button, the corner and the toast. */
:root {
  --ink: #07050A;
  --parchment: #F3E6C8;
  --gold: #F5C242;
  --gold-hi: #FFE7A3;
  --gold-lo: #8A6414;
  --accent: #F5C242;
  --font: "Trebuchet MS", "Segoe UI", sans-serif;
  --title-font: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}
html[data-band="horde"] { --accent: #8CFF6B; --gold-hi: #D8FFC4; }
html, body { margin: 0; padding: 0; height: 100%; background: var(--ink); color: var(--parchment); font-family: var(--font); overflow: hidden; }
button { font-family: inherit; }
[hidden] { display: none !important; }

/* ---- the loading curtain ---- */
#load-curtain { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(60% 50% at 50% 42%, #24160C, #07050A 70%); transition: opacity .55s ease; }
#load-curtain.is-gone { opacity: 0; pointer-events: none; }
.lc-lamp { position: absolute; left: 50%; top: 42%; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 100, .28), rgba(255, 190, 100, 0) 65%); animation: lc-breathe 2.6s ease-in-out infinite; }
.lc-crest { position: relative; width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(245, 194, 66, .5); }
.lc-kicker { position: relative; margin: 8px 0 0; font: bold 11px/1 var(--font); letter-spacing: .32em; text-transform: uppercase; color: rgba(255, 231, 163, .7); }
.lc-title { position: relative; margin: 0; font: bold 22px/1.1 var(--title-font); letter-spacing: .12em; color: var(--gold-hi); text-align: center; padding: 0 16px; }
.lc-bar { position: relative; width: 180px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; margin-top: 6px; }
.lc-bar-fill { position: absolute; inset: 0; width: 40%; border-radius: 4px; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); animation: lc-run 1.3s ease-in-out infinite; }
.lc-note { position: relative; margin: 2px 0 0; font: italic 13px/1.3 Georgia, serif; color: rgba(243, 230, 200, .7); }
@keyframes lc-breathe { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes lc-run { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

/* ---- the alley: one stage the shape of the painting, cut to cover the screen ---- */
.club { position: fixed; inset: 0; overflow: hidden; background: var(--ink); }
.club-stage { position: absolute; left: 50%; top: 50%; width: max(100vw, 177.7778vh); height: max(100vh, 56.25vw); transform: translate(-50%, -50%); }
@supports (height: 100dvh) { .club-stage { width: max(100vw, 177.7778dvh); height: max(100dvh, 56.25vw); } }
/* a wash over the top and the foot, so the words read over the bricks */
.club::before, .club::after { content: ""; position: absolute; left: 0; right: 0; z-index: 5; pointer-events: none; }
.club::before { top: 0; height: 190px; background: linear-gradient(180deg, rgba(4, 3, 8, .82), rgba(4, 3, 8, .4) 55%, rgba(4, 3, 8, 0)); }
.club::after { bottom: 0; height: 170px; background: linear-gradient(0deg, rgba(4, 3, 8, .86), rgba(4, 3, 8, .45) 55%, rgba(4, 3, 8, 0)); }

/* ---- the name over the alley ---- */
.club-hero { position: absolute; z-index: 6; left: 0; right: 0; top: calc(56px + env(safe-area-inset-top, 0px)); text-align: center; pointer-events: none; padding: 0 16px; }
.club-kicker { margin: 0; font: bold 11px/1 var(--font); letter-spacing: .34em; text-transform: uppercase; color: rgba(255, 231, 163, .72); }
.club-title { margin: 6px 0 0; font-family: var(--title-font); font-weight: bold; line-height: .95; letter-spacing: .04em; }
.club-the { display: block; font-size: clamp(13px, 1.5vw, 18px); letter-spacing: .5em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.club-name { display: inline-block; font-size: clamp(28px, 5.2vw, 66px); text-transform: uppercase;
  background: linear-gradient(100deg, #B8862A 0%, #FFE7A3 22%, #FFF8DC 30%, #F5C242 40%, #A87A18 60%, #FFE08A 78%, #C8951E 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #3A2406) drop-shadow(0 0 18px rgba(245, 194, 66, .35)); animation: club-shine 7s ease-in-out infinite; }
html[data-band="horde"] .club-name { background-image: linear-gradient(100deg, #3E8A2E 0%, #C8FFB0 22%, #F2FFE8 30%, #8CFF6B 40%, #2E6A22 60%, #B9FFA8 78%, #4E9A3A 100%);
  filter: drop-shadow(0 3px 0 #0E2408) drop-shadow(0 0 18px rgba(120, 255, 100, .35)); }
.club-sub { margin: 8px auto 0; max-width: 560px; font: italic clamp(13px, 1.3vw, 16px)/1.35 Georgia, serif; color: rgba(243, 230, 200, .88); text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
@keyframes club-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }

/* ---- the button and the line under it ---- */
.club-foot { position: absolute; z-index: 8; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 0 96px calc(20px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.club-act { pointer-events: auto; min-width: 200px; padding: 15px 34px; border-radius: 999px; cursor: pointer; border: 2px solid #FFE08A; color: #2A1606;
  font: bold 17px/1 var(--title-font); letter-spacing: .2em; text-transform: uppercase;
  background: linear-gradient(180deg, #FFE7A3, #E0B850 55%, #B88A2A); box-shadow: 0 8px 22px rgba(0, 0, 0, .65), 0 0 26px rgba(245, 194, 66, .35);
  transition: transform .15s ease, filter .15s ease; }
html[data-band="horde"] .club-act { border-color: #C8FFB0; background: linear-gradient(180deg, #D8FFC4, #8CFF6B 55%, #3E8A2E); color: #0A1A06; box-shadow: 0 8px 22px rgba(0, 0, 0, .65), 0 0 26px rgba(120, 255, 100, .35); }
.club-act:hover, .club-act:focus-visible { transform: translateY(-1px); filter: brightness(1.08); outline: none; }
.club-act:focus-visible { box-shadow: 0 0 0 3px rgba(255, 231, 163, .9), 0 8px 22px rgba(0, 0, 0, .65); }
.club-act:disabled { filter: saturate(.5) brightness(.8); cursor: default; transform: none; }
.club-act[data-who="member"] { animation: club-pulse 2.4s ease-in-out infinite; }
@keyframes club-pulse { 0%, 100% { box-shadow: 0 8px 22px rgba(0, 0, 0, .65), 0 0 18px rgba(245, 194, 66, .3); } 50% { box-shadow: 0 8px 22px rgba(0, 0, 0, .65), 0 0 38px rgba(245, 194, 66, .75); } }
.club-line { margin: 0; max-width: 520px; text-align: center; font: 14px/1.35 var(--font); color: rgba(243, 230, 200, .92); text-shadow: 0 1px 3px rgba(0, 0, 0, .95); }
.club-copy { position: absolute; z-index: 8; left: 50%; bottom: calc(4px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); margin: 0; font: 10px/1 var(--font); letter-spacing: .1em; color: rgba(243, 230, 200, .4); pointer-events: none; }

/* ---- the corner: the way back, the account, the sound ---- */
.club-corner { position: absolute; z-index: 9; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 8px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) calc(12px + env(safe-area-inset-right, 0px)) 0 calc(12px + env(safe-area-inset-left, 0px)); }
.club-back, .club-chip, .club-sound, .club-film { display: inline-flex; align-items: center; gap: 7px; height: 36px; box-sizing: border-box; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(245, 194, 66, .5); background: rgba(16, 10, 6, .72); color: var(--parchment); text-decoration: none; font: bold 12px/1 var(--font);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.club-back { padding: 0 14px 0 9px; }
.club-back svg { width: 16px; height: 16px; }
.club-acct { margin-left: auto; display: flex; }
.club-chip { padding: 0 14px 0 10px; max-width: 46vw; }
.club-name { white-space: nowrap; }
.club-chip .club-name { overflow: hidden; text-overflow: ellipsis; font-size: 12px; background: none; color: inherit; filter: none; animation: none; text-transform: none; letter-spacing: 0; }
.club-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: none; }
.club-chip--guest .club-dot { background: #8FD6C8; box-shadow: 0 0 10px #8FD6C8; }
.club-sound { width: 36px; justify-content: center; padding: 0; }
.club-sound svg { width: 18px; height: 18px; }
.club-sound .club-x { display: none; }
/* WATCH HOW TO PLAY (2026-10-08, ../js/walkthroughs.js): the films' button, the sound button's size */
.club-film { width: 36px; justify-content: center; padding: 0; color: #F5C242; }
.club-film[hidden] { display: none; }
.club-film svg { width: 18px; height: 18px; }
.club-back:hover, .club-chip:hover, .club-sound:hover, .club-film:hover, .club-back:focus-visible, .club-chip:focus-visible, .club-sound:focus-visible, .club-film:focus-visible { border-color: var(--accent); background: rgba(40, 24, 10, .85); outline: none; }

/* ---- the toast ---- */
.club-toast { position: fixed; z-index: 60; left: 50%; top: calc(60px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -8px); opacity: 0; transition: opacity .25s ease, transform .25s ease;
  padding: 10px 18px; border-radius: 999px; background: rgba(16, 10, 6, .92); border: 1px solid rgba(245, 194, 66, .7); color: var(--gold-hi); font: bold 13px/1.2 var(--font); letter-spacing: .04em; }
.club-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---- a phone, upright: the name tighter over the arch, the button clear of the World door ---- */
@media (max-width: 600px) {
  .club::before { height: 160px; }
  .club-hero { top: calc(54px + env(safe-area-inset-top, 0px)); }
  .club-sub { font-size: 12.5px; max-width: 320px; }
  /* the World door is 92 px wide, 14 px in from the right (js/world-door.js): the foot keeps 8 px clear of it on both
     sides, so KNOCK stays centred and never meets it (the walkthrough of 2026-10-12 found 14 px of KNOCK under it), and
     the words sit closer so USE YOUR KEY still fits on one line */
  .club-foot { padding: 0 114px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .club-act { min-width: 0; width: 100%; max-width: 240px; padding: 14px 12px; font-size: 15px; letter-spacing: 1px; }
  .club-line { font-size: 12.5px; }
  .club-back span { display: none; }
  .club-back { padding: 0 10px; }
}
/* a phone on its side: little height, so the name goes small and the sub line goes */
@media (max-height: 480px) and (orientation: landscape) {
  .club::before { height: 120px; }
  .club-hero { top: calc(8px + env(safe-area-inset-top, 0px)); }
  .club-kicker, .club-sub { display: none; }
  .club-name { font-size: 26px; }
  .club-the { font-size: 11px; }
  .club-act { padding: 11px 26px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .club-name, .club-act[data-who="member"], .lc-lamp, .lc-bar-fill { animation: none; }
}

/* THROUGH THE HATCH (2026-10-13, js/racing-hatch.js): the button under the door's, and the sheet with the slot */
.club-watch { pointer-events: auto; padding: 9px 18px; min-height: 44px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(245, 194, 66, .7); background: rgba(12, 8, 18, .72); color: var(--gold-hi); font: 600 14px/1.2 var(--font); letter-spacing: .02em; box-shadow: 0 4px 14px rgba(0, 0, 0, .55); }
.club-watch:hover, .club-watch:focus-visible { border-color: var(--gold-hi); background: rgba(30, 20, 40, .85); outline: none; }
.hatch { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 3, 8, .82); }
.hatch-box { width: min(920px, 100%); max-height: 100%; overflow: auto; box-sizing: border-box; padding: 18px 20px 16px; border-radius: 16px; border: 2px solid #B8862E; background: linear-gradient(180deg, #1C1424, #0E0A14); box-shadow: 0 18px 50px rgba(0, 0, 0, .7); color: var(--parchment); text-align: center; }
.hatch-kicker { margin: 0; font: 12px/1.3 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.hatch-title { margin: 4px 0 6px; font: bold clamp(20px, 3vw, 28px)/1.1 var(--title-font); color: var(--gold-hi); }
.hatch-sub { margin: 0 auto 12px; max-width: 640px; font: 14px/1.4 var(--font); color: rgba(243, 230, 200, .88); }
.hatch-slot { position: relative; border-radius: 10px; padding: 8px; background: linear-gradient(180deg, #8A6414, #F5C242 50%, #8A6414); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5); }
.hatch-cv { display: block; width: 100%; aspect-ratio: 16 / 6; border-radius: 6px; background: #0B0A14; }
.hatch-call { min-height: 1.4em; margin: 12px 0 4px; font: 600 15px/1.4 var(--font); color: var(--gold-hi); }
.hatch-list { margin: 4px auto 0; padding: 0; list-style: none; font: 14px/1.5 var(--font); color: var(--parchment); }
.hatch-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.hatch-btn { min-height: 44px; padding: 10px 20px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(245, 194, 66, .6); background: transparent; color: var(--gold-hi); font: 600 15px/1.2 var(--font); }
.hatch-btn--gold { border-color: #FFE08A; background: linear-gradient(180deg, #FFE7A3, #F5C242 55%, #B8862E); color: #2A1606; }
.hatch-btn:focus-visible { outline: 3px solid rgba(255, 231, 163, .9); outline-offset: 2px; }
@media (max-width: 560px) { .hatch-box { padding: 14px 12px; } .hatch-cv { aspect-ratio: 16 / 8; } }
