/* Room board: one column per room. Drawn on a fixed 1920x1080 stage that board.js scales to the screen. */
@font-face { font-family: "Montserrat"; font-weight: 200; src: url(assets/fonts/Montserrat-ExtraLight.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 300; src: url(assets/fonts/Montserrat-Light.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; src: url(assets/fonts/Montserrat-Regular.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; src: url(assets/fonts/Montserrat-Medium.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; src: url(assets/fonts/Montserrat-SemiBold.woff2) format("woff2"); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #050607; color: #f4f6f8;
  font-family: "Montserrat", sans-serif; font-variant-numeric: tabular-nums; }
#stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0;
  background: radial-gradient(1500px 800px at 50% -15%, #161b24 0%, #08090c 55%, #050607 100%); overflow: hidden; }
#stage::after { content: ""; position: absolute; inset: 0; background: url(assets/grain.svg); opacity: .05; mix-blend-mode: overlay; pointer-events: none; }

/* ---- top bar ---- */
.top { height: 118px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 58px; position: relative;
  background: linear-gradient(#11141a, #0a0c10); border-bottom: 1px solid rgba(255,255,255,.07); box-shadow: 0 12px 40px rgba(0,0,0,.55); }
.top::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 760px; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); }
/* glow only outside the logo: its gaps closed into a solid silhouette, blurred, the silhouette cut back out */
.logo { height: 94px; display: block; filter: url(#rb-logo-glow); }
.top .date { justify-self: start; display: flex; align-items: center; gap: 16px; font-weight: 300; font-size: 18px; letter-spacing: .3em;
  text-transform: uppercase; color: rgba(255,255,255,.45); }
.live { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 12px #3ddc84; }
.live.stale { background: #6b7078; box-shadow: none; }
.top .clock { justify-self: end; display: flex; align-items: center; gap: 10px; font-weight: 200; font-size: 42px; letter-spacing: .04em; color: rgba(255,255,255,.75); }
.ap { display: flex; flex-direction: column; gap: 4px; }
.ap b { font-weight: 400; font-size: 14px; line-height: 1; letter-spacing: .05em; color: rgba(255,255,255,.55); }

/* ---- columns ---- */
main { padding: 26px 56px 34px; display: grid; gap: 20px; height: calc(1080px - 118px); }
.col { position: relative; display: grid; grid-template-rows: auto 30px 1fr auto; justify-items: center; gap: 16px; padding: 0 18px 22px;
  background: linear-gradient(rgba(255,255,255,.04), rgba(255,255,255,.012) 40%, rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.055); }
.col::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 40% at 50% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%); }
.col.idle::after { opacity: .3; }
.col.lost::after { background: radial-gradient(120% 40% at 50% 0%, rgba(224,72,62,.10), transparent 70%); }
.col.standby { border-color: rgba(255,255,255,.75); box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 0 40px rgba(255,255,255,.12), inset 0 0 40px rgba(255,255,255,.05); }

/* name bar: smoked glass tinted by the room colour; the colour shows in its edge line and glow */
.namerow { position: relative; align-self: start; justify-self: stretch; margin: -1px -19px 14px; height: 38px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cap) 30%, #1a1d23) 0%, color-mix(in srgb, var(--cap) 18%, #0f1115) 50%, color-mix(in srgb, var(--cap) 12%, #0b0c0f) 100%);
  border-top: 1px solid color-mix(in srgb, var(--cap) 45%, #fff); border-bottom: 2px solid var(--cap);
  box-shadow: 0 2px 16px color-mix(in srgb, var(--cap) 45%, transparent), inset 0 1px 0 rgba(255,255,255,.12); }
.namerow::after { content: ""; position: absolute; inset: 0 0 50% 0; background: linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.02)); pointer-events: none; }
.name { font-weight: 500; font-size: 14px; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: color-mix(in srgb, var(--cap) 30%, #fff); }
.col.idle .namerow { opacity: .55; box-shadow: none; }
/* standby: the flag blinks beside the name */
.flag { width: 20px; height: 20px; flex: none; animation: blink 1.1s steps(1, end) infinite; filter: drop-shadow(0 0 6px #fff); }
@keyframes blink { 50% { opacity: 0 } }

/* hints: whole diamonds left, slashed ones used; infinity when the limit is lifted */
.hints { display: flex; align-items: center; gap: 7px; height: 30px; }
.dia { width: 19px; height: 19px; }
.inf { width: 52px; height: 26px; animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: .4; filter: none } 50% { opacity: 1; filter: drop-shadow(0 0 7px #8fd3ff) } }
.col.lost .hints { opacity: .5; }

/* progress figure */
.figwrap { align-self: center; display: flex; }
.fig { overflow: visible; }
.col.paused .fig, .col.starting .fig { filter: grayscale(.75); opacity: .6; }
.col.idle .fig { opacity: .45; }
.col.lost .fig .cells { filter: grayscale(.85) brightness(.8); opacity: .55; }
.sheen { animation: sheen 4.5s ease-in-out infinite; }
@keyframes sheen { 0% { transform: translateY(600px) } 60%, 100% { transform: translateY(-140px) } }
.stallnum .seg7 { filter: drop-shadow(0 0 5px currentColor); }
/* stuck too long: the red breathes, it is never static */
.stallnum.hot { animation: hotglow 1.8s ease-in-out infinite; }
@keyframes hotglow { 0%,100% { filter: drop-shadow(0 0 2px rgba(255,90,78,.3)); opacity: .75 } 50% { filter: drop-shadow(0 0 12px rgba(255,90,78,.95)); opacity: 1 } }
.redpulse { animation: redpulse 1.8s ease-in-out infinite; }
@keyframes redpulse { 0%,100% { opacity: .45 } 50% { opacity: 1 } }
.bloompulse { animation: bloompulse 3.2s ease-in-out infinite; }
@keyframes bloompulse { 0%,100% { opacity: .18 } 50% { opacity: .5 } }

/* ---- timer row: 7-seg window + next-booking tag inset in the same window ---- */
.trow { width: 100%; display: flex; height: 96px; }
.T { flex: 1; height: 96px; position: relative; display: flex; justify-content: center; align-items: center; gap: 8px;
  background: linear-gradient(#07090b, #0b0e12); border: 1px solid rgba(255,255,255,.05);
  box-shadow: inset 0 0 30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.05); }
.T::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); pointer-events: none; }
.trow.has-next .T { border-right: none; }
/* time left drains along the window's top edge */
.T .drain { position: absolute; left: 0; top: -1px; height: 2px; background: var(--t); box-shadow: 0 0 10px var(--t), 0 0 3px var(--t); z-index: 1; }
.T .digits { display: flex; }
.T .digits .seg7 { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--t) 55%, transparent)) drop-shadow(0 0 18px color-mix(in srgb, var(--c) 45%, transparent)); }
.T.tone-dim .digits .seg7, .T.off .digits .seg7 { filter: none; }
.T.tone-red .digits { animation: heartbeat 1.6s ease-in-out infinite; }
@keyframes heartbeat { 0%,100% { opacity: 1 } 15% { opacity: .55 } 30% { opacity: 1 } }
.T.tone-lost .digits .seg7 { filter: drop-shadow(0 0 8px rgba(224,72,62,.55)); }
.T .ic { display: flex; } .T .ic svg { width: 18px; height: 18px; }
/* next booking: hour over minutes, thin type, split from the timer by a hairline */
.nx { width: 46px; height: 96px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: linear-gradient(#07090b, #0b0e12); border: 1px solid rgba(255,255,255,.05); border-left: none; box-shadow: inset 0 0 30px rgba(0,0,0,.9); }
.nx::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: linear-gradient(transparent, rgba(255,255,255,.22), transparent); }
.nx svg { width: 14px; height: 14px; margin-bottom: 2px; }
.nx span { font-weight: 300; font-size: 22px; line-height: 1; color: rgba(255,255,255,.7); }
.nx i { width: 16px; height: 1px; background: rgba(255,255,255,.14); }
/* late: the game's time left runs past the room's next booking */
.nx.late span { color: #ff7b70; animation: lateText 2.6s ease-in-out infinite; }
.nx.late::before { background: linear-gradient(transparent, rgba(255,90,78,.6), transparent); }
@keyframes lateText { 0%,100% { text-shadow: 0 0 2px rgba(255,90,78,.2) } 50% { text-shadow: 0 0 12px rgba(255,90,78,.9) } }

/* ---- a request waiting on a game master (hint request red, staff help orange): the name bar
   becomes the request and flashes, a badge under it says what and for how long ---- */
.col { --al: #ff4a3d; }
.col.al-staff { --al: #ff7a45; }
.col.al-won { --al: #3ddc84; }
.col.al-lost { --al: #4a9dff; }
.albadge { display: none; }
.col.alerted .albadge { position: absolute; left: 50%; top: 46px; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 11px; color: var(--al); border: 1px solid color-mix(in srgb, var(--al) 70%, transparent); border-top: none;
  animation: albadge 1.1s ease-in-out infinite; }
@keyframes albadge { 0%,100% { box-shadow: 0 0 8px color-mix(in srgb, var(--al) 25%, transparent); background: color-mix(in srgb, var(--al) 10%, #07090b); }
  45%,55% { box-shadow: 0 0 36px var(--al); background: color-mix(in srgb, var(--al) 38%, #07090b); } }
.albadge .alic { display: flex; } .albadge .alic svg { width: 26px; height: 26px; }
.albadge .alt { font: 400 22px Montserrat, sans-serif; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.col.alerted .hints { visibility: hidden; }
.col.alerted .namerow { --cap: var(--al); animation: albar 1.1s ease-in-out infinite; }
@keyframes albar { 0%,100% { filter: brightness(.6) saturate(.8); box-shadow: 0 2px 6px color-mix(in srgb, var(--al) 25%, transparent); }
  45%,55% { filter: brightness(2) saturate(1.3); box-shadow: 0 0 50px var(--al), 0 2px 16px var(--al); } }
.col.alerted .namerow .name { color: #fff; }
