/* Run The Roost: placeholder styling for the spike. The wood-plank world, art,
   parallax and motion arrive with the World stage; the tokens are already the game's. */
:root {
  --ink: #3a2415; --barn: #c4452c; --gold: #ffc93c; --gold2: #ffe27a;
  --cream: #f9edd2; --cream2: #f2e0bb; --wood: #b07a42; --wood2: #cf9a5c; --wood3: #8a5a2b; --wood4: #6b3f1c;
  --green: #6fb643; --green2: #4c8a28; --green3: #35641a; --sky: #bfe6ff; --red: #d93b2b;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--sky); color: var(--ink); font-family: Fredoka, system-ui, sans-serif; font-size: 18px; }
h1, h2, .prompt, .racebtn { font-family: 'Lilita One', Fredoka, sans-serif; font-weight: 400; letter-spacing: .5px; }
h1 { font-size: 2.2rem; margin: 0 0 .4em; color: var(--barn); text-shadow: 2px 2px 0 var(--gold2); }
h2 { font-size: 1.8rem; margin: 0 0 .3em; color: var(--barn); }
p { margin: .4em 0; }
#app { min-height: 100%; display: flex; flex-direction: column; }
.screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; position: relative; min-height: 100vh; }
.plank { background: var(--cream); border: 4px solid var(--wood3); border-radius: 18px; padding: 24px 28px; max-width: 640px; width: 100%; box-shadow: 0 6px 0 var(--wood4); text-align: center; }
.tagline { color: var(--wood4); font-size: 1.2rem; margin-top: -.4em; }
.row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.row.small { margin-top: 8px; }
.wbtn { font: inherit; font-weight: 600; background: var(--cream2); color: var(--ink); border: 3px solid var(--wood3); border-bottom-width: 6px; border-radius: 14px; padding: 10px 18px; cursor: pointer; min-height: 48px; }
.wbtn:active { transform: translateY(2px); border-bottom-width: 4px; }
.wbtn.big { font-size: 1.3rem; padding: 14px 26px; }
.wbtn.green { background: var(--green); color: #fff; border-color: var(--green3); text-shadow: 1px 1px 0 var(--green3); }
.wbtn.small { font-size: .9rem; min-height: 36px; padding: 6px 12px; }
.wbtn.door { font-size: 1.3rem; min-width: 160px; margin: 6px; }
.wbtn[disabled] { opacity: .5; }
.racebtn { font-size: 1.8rem; margin: 10px 0; width: 100%; }
input.nick, input.email, input.code { font: inherit; font-size: 1.4rem; padding: 10px 14px; border: 3px solid var(--wood3); border-radius: 12px; width: 100%; max-width: 360px; text-align: center; background: #fff; }
input.code { letter-spacing: .3em; }
.err { color: var(--red); min-height: 1.4em; margin-top: 6px; font-weight: 600; }
.fine { font-size: .85rem; color: var(--wood4); }
.chip { display: inline-block; background: var(--gold2); border-radius: 999px; padding: 2px 12px; font-size: .95rem; }
.nests { font-weight: 600; }
.switches { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 6px 0; }
.switch { display: inline-flex; align-items: center; gap: 6px; }
.switch input { width: 22px; height: 22px; }
.capmsg { background: var(--gold2); border-radius: 10px; padding: 8px 12px; font-size: .95rem; }
.saved { font-size: .95rem; color: var(--wood4); }
.saved a { color: var(--barn); font-weight: 600; }
.sub { display: block; margin: 10px 0; font-size: .95rem; }
.signin.busy { opacity: .6; pointer-events: none; }
.doors { margin: 10px 0; }
.verstamp { position: fixed; right: 10px; bottom: 6px; font-size: 12px; opacity: .6; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; max-width: 90vw; z-index: 50; }

/* the microphone explainer's picture of the prompt */
.promptmock { background: #f2f2f7; color: #111; border-radius: 14px; padding: 14px; margin: 14px auto; max-width: 320px; font-family: -apple-system, system-ui, sans-serif; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.pm-title { font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
.pm-row { display: flex; gap: 10px; justify-content: center; }
.pm-btn { color: #0a7aff; padding: 4px 10px; }
.pm-allow { font-weight: 700; border: 2px solid #0a7aff; border-radius: 8px; }
.chickwait { font-size: 4rem; animation: bob 1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* the race screen */
.screen.race { justify-content: flex-start; padding-top: 12px; }
.top { width: 100%; max-width: 900px; display: flex; align-items: center; gap: 12px; }
.striptext { font-size: .9rem; color: var(--wood4); white-space: nowrap; }
.strip { position: relative; flex: 1; height: 44px; background: var(--wood2); border: 3px solid var(--wood3); border-radius: 22px; }
.runner { position: absolute; top: 2px; font-size: 1.8rem; transition: left .45s ease-out; transform: translateX(-50%); }
.runner.kid { top: -4px; }
.runner.champ { top: 10px; font-size: 1.4rem; }
.roost { position: absolute; right: 2px; top: 4px; font-size: 1.6rem; }
.pausebtn { min-height: 40px; }
.qsign { margin-top: 24px; background: var(--cream); border: 4px solid var(--wood3); border-radius: 18px; padding: 18px 30px; min-width: 320px; max-width: 90vw; text-align: center; box-shadow: 0 6px 0 var(--wood4); }
.qsign.miss { background: var(--red); color: #fff; }
.qsign.miss .prompt { color: #fff; }
.prompt { font-size: 4rem; color: var(--ink); min-height: 1.2em; }
.sub { font-size: 1.1rem; min-height: 1.4em; }
.fuse { height: 12px; background: var(--cream2); border-radius: 6px; overflow: hidden; margin-top: 8px; }
.fusefill { height: 100%; width: 100%; background: var(--green); }
.fusefill.hot { background: var(--red); animation: pulse .5s linear infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.race.funrun .fuse { display: none; }
.micline { display: flex; gap: 14px; align-items: center; margin: 12px 0; min-height: 36px; }
.mic { padding: 4px 12px; border-radius: 999px; background: var(--cream2); font-size: .9rem; }
.mic.live { background: var(--gold); }
.mic.off { background: #ddd; }
.heard { font-size: 1.6rem; font-weight: 700; min-width: 2em; opacity: 0; }
.heard.show { opacity: 1; }
.heard.bad { color: var(--red); }
.typechip { font-size: 2rem; font-weight: 700; min-height: 1.2em; text-align: center; opacity: 0; }
.typechip.show { opacity: 1; }
.rowmount { width: 100%; max-width: 900px; }
.numrow { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; opacity: .5; }
.numrow.live { opacity: 1; }
.numkey, .numaux { min-width: 60px; font-size: 1.4rem; position: relative; }
.numaux.dontknow { font-size: 1rem; }
.keyhint { position: absolute; right: 4px; top: 2px; font-size: .6rem; opacity: .6; }
.cardhost { margin-top: 16px; width: 100%; max-width: 640px; }
.cardhost.blocking { position: fixed; inset: 0; margin: 0; max-width: none; background: rgba(58,36,21,.55); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 20; }
.card { background: var(--cream); border: 4px solid var(--wood3); border-radius: 18px; padding: 20px 24px; text-align: center; max-width: 640px; width: 100%; box-shadow: 0 6px 0 var(--wood4); }
.missed { margin: 8px 0; }
.highlight { color: var(--green3); font-weight: 700; }
.pop { position: fixed; left: 50%; top: 30%; transform: translateX(-50%); font-family: 'Lilita One', sans-serif; font-size: 3rem; color: var(--gold); text-shadow: 3px 3px 0 var(--ink); animation: floatup 1.6s ease-out forwards; z-index: 30; pointer-events: none; }
.pop.rescue { font-size: 1.6rem; color: var(--green2); }
@keyframes floatup { to { transform: translate(-50%, -80px); opacity: 0; } }
@media (max-width: 700px) { .prompt { font-size: 3rem; } .numkey, .numaux { min-width: 48px; font-size: 1.2rem; } }
