/* Countdown page: the Pit Window tabletop (oak table, blueprint sheet, cream paper notes) made warm and inviting. */
body.cd { background: radial-gradient(ellipse 70% 45% at 28% 0%, rgba(255, 220, 160, .34), transparent 62%), url(/assets/tv/oak.jpg) center top / cover fixed, #6b4524 }
body.cd:before { background: radial-gradient(120% 90% at 50% 25%, transparent 50%, rgba(20, 8, 0, .5)) }
body.cd .nav { background: rgba(35, 20, 8, .72); border-bottom-color: rgba(255, 255, 255, .12) }
.cd-table { position: absolute; inset: 0 0 auto 0; height: 0; pointer-events: none; z-index: 0 }
.cd-table i { position: absolute; background: no-repeat center / contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)) }
.cd-pencil { right: 4%; top: 120px; width: 230px; aspect-ratio: 1842 / 104; background-image: url(/assets/tv/pencil.png); transform: rotate(24deg) }
.cd-watch { left: 2%; top: 520px; width: 86px; aspect-ratio: 516 / 663; background-image: url(/assets/tv/watch.png); transform: rotate(-14deg) }
.cd-ruler { right: 1%; top: 720px; width: 280px; aspect-ratio: 1330 / 220; background-image: url(/assets/tv/ruler.png); transform: rotate(-8deg) }
.cd-mug { left: 1%; top: 880px; width: 130px; aspect-ratio: 814 / 926; background-image: url(/assets/tv/mug.png) }
@media (max-width: 1100px) { .cd-table { display: none } }
main#main { position: relative; z-index: 1; padding-bottom: 70px }
.cd-hero { padding-top: clamp(24px, 4vw, 52px) }
.cd-sheet { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 28px; padding: clamp(24px, 4vw, 52px); border-radius: 6px; color: #fff;
  background: linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px) 0 0 / 12px 12px, linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px) 0 0 / 12px 12px, radial-gradient(ellipse at 30% 20%, #2a6fd6, #14489f 72%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), inset 0 0 0 12px rgba(255, 255, 255, .07), inset 0 0 0 14px rgba(255, 255, 255, .34) }
.cd-tape { position: absolute; width: 130px; height: 36px; background: rgba(255, 226, 150, .86); box-shadow: 0 2px 6px rgba(0, 0, 0, .25) } .cd-tape.t1 { left: -26px; top: -10px; transform: rotate(-32deg) } .cd-tape.t2 { right: -26px; top: -10px; transform: rotate(32deg) }
.cd-eyebrow { font: 800 14px/1.3 var(--f-mono); letter-spacing: 2.4px; color: #ffd23f; text-transform: uppercase }
.cd-title { margin: 10px 0 6px; font: italic 900 clamp(54px, 9.5vw, 138px)/.88 var(--f-display); color: #ffd23f; text-transform: uppercase; letter-spacing: -1px; -webkit-text-stroke: 4px #fff; paint-order: stroke fill; text-shadow: 5px 6px 0 #0d3a85, 0 16px 34px rgba(0, 0, 0, .35) }
.cd-tag { margin: 6px 0 0; font: 600 clamp(18px, 2.2vw, 26px)/1.3 var(--f-body); color: rgba(255, 255, 255, .92) }
.cd-when { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 14px; font: 700 15px/1.3 var(--f-mono); letter-spacing: .4px } .cd-when span { background: rgba(0, 0, 0, .28); padding: 7px 12px 6px; border-radius: 4px } .cd-when b { color: #ffd23f }
.cd-clock { display: flex; gap: clamp(8px, 1.4vw, 16px); margin: 22px 0 6px; flex-wrap: wrap }
.cd-unit { background: #f0e7d1; color: #1b1710; border-radius: 3px; padding: 12px 16px 10px; min-width: clamp(78px, 11vw, 132px); text-align: center; box-shadow: 0 10px 20px rgba(0, 0, 0, .4); transform: rotate(var(--r, -1deg)) } .cd-unit:nth-child(even) { --r: 1.1deg } .cd-unit:nth-child(3n) { --r: -.5deg }
.cd-unit b { display: block; font: 900 clamp(46px, 8vw, 104px)/.95 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: 1px } .cd-unit small { font: 800 11px/1 var(--f-mono); letter-spacing: 2px; color: #6b604b }
.cd-unit.tick b { animation: cdTick .35s ease }
@keyframes cdTick { 0% { transform: translateY(-8%); opacity: .5 } 100% { transform: none; opacity: 1 } }
.cd-state { min-height: 26px; margin-top: 8px; font: 700 16px/1.3 var(--f-body); color: #fff } .cd-state.live { color: #fff }
.cd-live { display: inline-flex; align-items: center; gap: 12px; background: #e10600; color: #fff; font: italic 900 clamp(40px, 6vw, 76px)/1 var(--f-display); padding: 10px 28px 8px 24px; border: 4px solid #fff; border-radius: 3px; transform: rotate(-2deg); box-shadow: 0 14px 28px rgba(0, 0, 0, .45) } .cd-live i { width: 24px; height: 24px; border-radius: 50%; background: #fff; animation: cdPulse 1.2s infinite }
@keyframes cdPulse { 50% { opacity: .25 } }
.cd-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px }
.cd-btn { display: inline-flex; align-items: center; gap: 9px; font: 800 20px/1 var(--f-display); letter-spacing: 1px; text-transform: uppercase; padding: 14px 22px 12px; border-radius: 3px; border: 0; cursor: pointer; text-decoration: none; color: #1b1710; background: #f0e7d1; box-shadow: 0 8px 16px rgba(0, 0, 0, .4); transition: transform .15s }
.cd-btn:hover { transform: translateY(-2px) rotate(-.6deg) } .cd-btn.red { background: #e10600; color: #fff } .cd-btn.gold { background: #ffd23f }
.cd-btn.red.pulse { animation: cdGlow 1.6s infinite } @keyframes cdGlow { 50% { box-shadow: 0 8px 16px rgba(0, 0, 0, .4), 0 0 0 8px rgba(225, 6, 0, .35) } }
/* the circuit */
.cd-track { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px }
.cd-track svg { width: 100%; max-width: 420px; height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)) } .cd-track .ghost { stroke: rgba(13, 58, 133, .85) } .cd-track .line { stroke: #fff } .cd-track .dot { fill: #ffd23f; stroke: #fff; stroke-width: 3 }
.cd-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 22px; font: 700 13px/1.3 var(--f-mono); text-align: center } .cd-facts small { display: block; color: rgba(255, 255, 255, .65); font-size: 10.5px; letter-spacing: 1.6px; margin-bottom: 3px } .cd-facts b { font-size: 17px }
/* cards under the hero */
.cd-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 22px; margin-top: 34px }
.cd-card { position: relative; background: #f0e7d1; color: #1b1710; border-radius: 3px; padding: 22px 24px 20px; box-shadow: 0 14px 26px rgba(0, 0, 0, .42); transform: rotate(-.5deg) } .cd-card:nth-child(2) { transform: rotate(.6deg) } .cd-card:nth-child(3) { transform: rotate(-.3deg) }
.cd-h { font: 900 30px/1 var(--f-display); font-style: italic; letter-spacing: .5px; margin-bottom: 10px } .cd-h small { font: 700 11px/1 var(--f-mono); letter-spacing: 1px; color: #6b604b; font-style: normal; margin-left: 8px }
.cd-card p { margin: 0 0 10px; font: 500 16.5px/1.55 var(--f-body); color: #2c2618 } .cd-look { border-top: 1px dashed rgba(27, 23, 16, .3); padding-top: 10px; font-weight: 600 !important }
.cd-feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px } .cd-feat li { display: grid; gap: 2px } .cd-feat b { font: 800 19px/1.1 var(--f-display); letter-spacing: .5px; text-transform: uppercase } .cd-feat span { font: 500 15px/1.4 var(--f-body); color: #3a3426 }
.cd-wk ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px }
.cd-wk a { display: grid; grid-template-columns: 1fr auto; gap: 1px 12px; padding: 9px 12px; border-radius: 3px; background: rgba(27, 23, 16, .07); border-left: 5px solid rgba(27, 23, 16, .2); text-decoration: none; color: inherit }
.cd-wk a b { font: 800 17px/1.1 var(--f-display); letter-spacing: .6px; text-transform: uppercase } .cd-wk a span { font: 700 12.5px/1.2 var(--f-mono); color: #4a4332; text-align: right } .cd-wk a small { grid-column: 1 / -1; font: 700 10.5px/1 var(--f-mono); letter-spacing: 1.2px; color: #6b604b }
.cd-wk a:hover { background: rgba(27, 23, 16, .13) } .cd-wk a.cur { border-left-color: #e10600; background: rgba(225, 6, 0, .1) } .cd-wk a.done { opacity: .55 } .cd-wk a.live { border-left-color: #e10600; background: rgba(225, 6, 0, .16) } .cd-wk a.live small { color: #b3160d }
.cd-wait { margin-top: 34px } .cd-h2 { color: #fff; text-shadow: 0 3px 8px rgba(0, 0, 0, .55) }
.cd-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px }
.cd-pc { display: grid; gap: 6px; background: rgba(10, 26, 52, .88); color: #fff; border-radius: 4px; padding: 18px 20px; text-decoration: none; border: 1px solid rgba(190, 215, 255, .3); box-shadow: 0 12px 22px rgba(0, 0, 0, .4); transition: transform .15s, border-color .15s } .cd-pc:hover { transform: translateY(-3px); border-color: #ffd23f }
.cd-pc b { font: 900 24px/1 var(--f-display); font-style: italic; letter-spacing: .5px } .cd-pc span { font: 500 15px/1.4 var(--f-body); color: rgba(255, 255, 255, .8) } .cd-pc em { font: 800 15px/1 var(--f-display); font-style: normal; letter-spacing: 1.4px; color: #ffd23f; text-transform: uppercase }
@media (max-width: 980px) { .cd-sheet { grid-template-columns: 1fr } .cd-grid { grid-template-columns: 1fr } .cd-cards { grid-template-columns: repeat(2, 1fr) } .cd-card, .cd-card:nth-child(2), .cd-card:nth-child(3) { transform: none } }
@media (max-width: 560px) { .cd-cards { grid-template-columns: 1fr } .cd-unit { padding: 10px 10px 8px } .cd-btn { font-size: 18px; flex: 1 1 100%; justify-content: center } .cd-tape { display: none } }
@media (prefers-reduced-motion: reduce) { .cd-live i, .cd-btn.red.pulse, .cd-unit.tick b { animation: none } }
/* layout fixes: no side-scroll on phones, tighter gaps */
body.cd { overflow-x: hidden }
.cd-sheet > *, .cd-main { min-width: 0 }
.cd-hero.wrap, .cd-grid.wrap, .cd-wait.wrap { padding-top: 0; padding-bottom: 0 } .cd-hero.wrap { padding-top: clamp(20px, 3vw, 40px) } .cd-grid { margin-top: 36px } .cd-wait { margin-top: 36px }
@media (max-width: 980px) { .cd-sheet { grid-template-columns: minmax(0, 1fr) } .cd-hero.wrap { padding-left: 14px; padding-right: 14px } .cd-grid.wrap, .cd-wait.wrap { padding-left: 14px; padding-right: 14px } }
@media (max-width: 560px) { .cd-sheet { padding: 22px 18px } .cd-title { -webkit-text-stroke-width: 3px } .cd-clock { gap: 8px } .cd-unit { min-width: 0; flex: 1 1 0; padding: 10px 4px 8px } .cd-unit b { font-size: clamp(40px, 13vw, 64px) } .cd-btn { width: 100%; justify-content: center } .cd-facts { grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100% } .cd-when span { font-size: 13px } .cd-card p { font-size: 16px } }

/* ===== KIOSK (?tv=1): the full-screen version the stream shows before a session ===== */
.cd-lights, .cd-strip { display: none }
body.cd.tv { height: 100vh; overflow: hidden }
body.cd.tv .nav, body.cd.tv footer, body.cd.tv .skip, body.cd.tv .cd-grid, body.cd.tv .cd-wait, body.cd.tv .cd-table, body.cd.tv .cd-tape { display: none !important }
body.cd.tv main#main { padding: 0; height: 100vh }
body.cd.tv .cd-hero.wrap { max-width: none; height: 100%; padding: 3vh 2.6vw 3vh; display: flex; flex-direction: column; gap: 2.4vh }
body.cd.tv .cd-sheet { flex: 1; min-height: 0; padding: 3.4vh 3.4vw; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center }
body.cd.tv .cd-eyebrow { font-size: 2vh } body.cd.tv .cd-title { font-size: 15.5vh; margin: 1vh 0 .6vh; -webkit-text-stroke-width: 5px } body.cd.tv .cd-tag { font-size: 3.2vh }
body.cd.tv .cd-when { margin-top: 2vh } body.cd.tv .cd-when span { font-size: 2.1vh; padding: .9vh 1.4vh .7vh }
body.cd.tv .cd-clock { margin: 3vh 0 1vh; gap: 1.6vh } body.cd.tv .cd-unit { min-width: 21vh; padding: 1.8vh 2vh 1.4vh } body.cd.tv .cd-unit b { font-size: 18vh } body.cd.tv .cd-unit small { font-size: 1.7vh }
body.cd.tv .cd-state { font-size: 3vh; min-height: 3.6vh; margin-top: 1.4vh } body.cd.tv .cd-live { font-size: 15vh }
body.cd.tv .cd-cta { margin-top: 2.6vh; gap: 1.4vh } .cd-chip { font: 800 2.7vh/1 var(--f-display); letter-spacing: 1px; text-transform: uppercase; background: #f0e7d1; color: #1b1710; padding: 1.5vh 2vh 1.2vh; border-radius: 3px; box-shadow: 0 8px 16px rgba(0, 0, 0, .4) }
body.cd.tv .cd-track svg { max-height: 56vh } body.cd.tv .cd-facts { font-size: 1.9vh } body.cd.tv .cd-facts b { font-size: 2.6vh } body.cd.tv .cd-facts small { font-size: 1.5vh }
body.cd.tv .cd-lights { display: flex; gap: 1.6vh; position: absolute; right: 5vw; bottom: 5vh; padding: 1.4vh 2vh; background: #111; border-radius: 12px; box-shadow: inset 0 0 0 2px #333 } body.cd.tv .cd-lights[hidden] { display: none }
.cd-lights i { width: 7vh; height: 7vh; border-radius: 50%; background: #2a0b0b; box-shadow: inset 0 0 10px #000 } .cd-lights i.on { background: radial-gradient(circle at 40% 35%, #ff6a5e, #e10600 60%); box-shadow: 0 0 26px rgba(225, 6, 0, .9) }
body.cd.tv .cd-strip { display: flex; gap: 1.2vw; flex: none }
.cd-strip > div { flex: 1; min-width: 0; display: grid; gap: .4vh; background: #f0e7d1; color: #1b1710; padding: 1.4vh 1.4vw 1.2vh; border-radius: 3px; box-shadow: 0 10px 18px rgba(0, 0, 0, .45); border-bottom: .8vh solid transparent }
.cd-strip b { font: 900 3vh/1 var(--f-display); letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis } .cd-strip span { font: 700 1.9vh/1.2 var(--f-mono); color: #4a4332 }
.cd-strip .cur { background: #ffd23f; border-bottom-color: #e10600 } .cd-strip .done { opacity: .5 } .cd-strip .live { background: #e10600; color: #fff } .cd-strip .live span { color: #fff }

/* the rotating sticky note on the stream screen */
.cd-kn { display: none }
body.cd.tv .cd-kn { display: block; width: 100%; max-width: 38vw; margin-top: 2vh; padding: 2.2vh 1.8vw 2vh; transform: rotate(-1.2deg); transition: opacity .45s, transform .45s }
body.cd.tv .cd-kn.out { opacity: 0; transform: rotate(-1.2deg) translateY(1.4vh) }
body.cd.tv .cd-kn .cd-h { font-size: 4vh; margin-bottom: 1vh } body.cd.tv .cd-kn p { font-size: 2.35vh; line-height: 1.45; margin: 0 }
body.cd.tv .cd-track svg { max-height: 36vh } body.cd.tv .cd-facts { font-size: 1.7vh } body.cd.tv .cd-facts b { font-size: 2.2vh }
/* four tiles (days, hours, minutes, seconds) fit on one row on the stream screen */
body.cd.tv .cd-clock { flex-wrap: nowrap }
body.cd.tv .cd-clock:has(.cd-unit:nth-child(4)) .cd-unit { min-width: 0; flex: 0 0 auto; width: 16.4vh; padding: 1.6vh 1vh 1.3vh } body.cd.tv .cd-clock:has(.cd-unit:nth-child(4)) .cd-unit b { font-size: 14.2vh }
