:root {
  --felt: #e7eeed;
  --felt-deep: #edf2f1;
  --felt-mid: #dce8e7;
  --felt-light: #d1e1df;
  --gold: #e86140;
  --gold-bright: #c94d30;
  --gold-deep: #b8442b;
  --ivory: #17323d;
  --muted: #596f77;
  --soft: #425d66;
  --line: #ccdad9;
  --warn: #ad6530;
}

.brand-symbol {
  border: 0;
  border-radius: 11px;
  color: #17323d;
  background: #f36d4c;
  box-shadow: none;
  font-weight: 800;
}
.eyebrow, .field-kicker { color: #bd4d31; }
.connection-chip { color: #526b74; background: #fff; border-color: #d4dfdc; }
.connection-chip.online i { background: #26a57d; box-shadow: 0 0 0 4px rgba(38,165,125,.13); }
.icon-button { width: 44px; height: 44px; color: #17323d; background: #fff; }
.icon-button:hover { background: #e0eae8; }
.icon-button.active { background: #f36d4c; color: #17323d; }

/* A light tournament broadcast board: clock, blinds, then the queue. */
.screen-page {
  overflow-x: hidden;
  color: #17323d;
  background: radial-gradient(circle at 95% 5%, #fff 0, transparent 33%), #edf2f1;
}
.screen-page::before { display: none; }
.screen-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 620px;
  padding: clamp(18px, 2.15vw, 42px) clamp(22px, 2.5vw, 50px) 16px;
  gap: 0;
}
.screen-header { min-height: 50px; }
.screen-brand strong { font-size: 18px; letter-spacing: .02em; }
.screen-brand small { color: #617982; letter-spacing: .1em; }
.screen-tools { gap: 9px; }
.screen-footer {
  padding-top: 10px;
  color: #647d82;
  font-size: 10px;
  letter-spacing: .1em;
}
.screen-live {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(12px, 1.4vw, 25px);
  animation: board-enter .55s var(--ease) both;
}
.screen-event-row { padding-top: clamp(14px, 1.8vw, 34px); align-items: end; }
.screen-event-row .eyebrow { margin-bottom: 5px; font-size: 10px; letter-spacing: .18em; }
.screen-event-row h1 { font-size: clamp(24px, 2.2vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.screen-state {
  padding: 10px 16px;
  border-radius: 999px;
  color: #215245;
  background: #dcefe6;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}
.state-beacon { background: #f36d4c; box-shadow: 0 0 0 5px rgba(243,109,76,.14); }
.screen-live[data-status="running"] .state-beacon {
  background: #26a57d;
  box-shadow: 0 0 0 5px rgba(38,165,125,.14);
  animation: beacon-breathe 2.4s ease-in-out infinite;
}
.screen-main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(0, .83fr);
  gap: clamp(12px, 1.25vw, 24px);
  align-items: stretch;
}
.timer-display {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  padding: clamp(23px, 2.75vw, 52px);
  border-radius: clamp(16px, 1.4vw, 26px);
  color: #17323d;
  background: #fff;
  box-shadow: 0 18px 48px rgba(37,74,78,.09);
}
.timer-display::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 42px solid rgba(255,117,84,.075);
  pointer-events: none;
}
.timer-card-top, .timer-card-bottom { display: flex; justify-content: space-between; align-items: start; gap: 12px; position: relative; }
.timer-card-top > span:first-child { font-size: clamp(17px, 1.45vw, 27px); font-weight: 800; white-space: nowrap; }
.timer-card-top small { display: block; margin-top: 5px; color: #71828a; font: 700 10px Arial,sans-serif; letter-spacing: .16em; }
.timer-card-top .level-index-row {
  display: inline-flex;
  width: auto;
  padding: 9px 13px;
  border-radius: 7px;
  color: #17323d;
  background: #e1e7e2;
  font: 800 clamp(13px, 1.1vw, 20px) Arial,sans-serif;
  letter-spacing: .08em;
  white-space: nowrap;
}
.timer-numerals {
  z-index: 1;
  width: 100%;
  color: #17323d;
  text-align: center;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(128px, 18vw, 355px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.075em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.timer-card-bottom { align-items: end; font-size: clamp(18px, 1.5vw, 29px); font-weight: 750; }
.timer-card-bottom span:last-child { color: #71828a; font: 700 10px Arial,sans-serif; letter-spacing: .13em; white-space: nowrap; }
.timer-progress {
  height: clamp(8px, .75vw, 13px);
  margin-top: 16px;
  overflow: hidden;
  border-radius: 100px;
  background: #d9dfd9;
}
.timer-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #ff7554;
  transition: width .8s linear;
}
.screen-live.urgent .timer-display { background: #ffdfd2; }
.screen-live.urgent .timer-numerals { color: #9f341f; }
.screen-live.urgent .timer-progress span { background: #d7442a; }
.blind-display {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1vw, 18px);
  padding: clamp(17px, 1.55vw, 30px);
  border-radius: clamp(16px, 1.4vw, 26px);
  background: #dce9e7;
}
.blind-display::before { display: none; }
.blind-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #17323d; font-size: clamp(17px, 1.25vw, 24px); font-weight: 800; }
.blind-card-top span:last-child { color: #5d777e; font: 700 11px Arial,sans-serif; letter-spacing: .14em; }
.blind-numbers, .blind-numbers.break-text {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, .8vw, 16px);
  color: #17323d;
  font-size: initial;
  letter-spacing: normal;
  white-space: normal;
}
.blind-slot {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(15px, 1.4vw, 28px);
  border-radius: 13px;
  background: #fff;
}
.blind-slot span { max-width: 145px; color: #526b74; font: 700 clamp(11px, .82vw, 16px) Arial,sans-serif; letter-spacing: .08em; line-height: 1.5; white-space: nowrap; }
.blind-slot strong {
  display: block;
  flex: 1;
  min-width: 0;
  color: #17323d;
  text-align: right;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(69px, 7.1vw, 148px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.blind-slot.big { background: #f36d4c; }
.blind-slot.big span, .blind-slot.big strong { color: #17323d; }
.blind-slot.big strong { font-size: clamp(79px, 8vw, 165px); }
.blind-numbers.break-text { display: flex; align-items: center; justify-content: center; border-radius: 13px; background: #f36d4c; }
.blind-break { width: 100%; color: #17323d; text-align: center; font-size: clamp(60px, 5.9vw, 125px); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.ante-line {
  flex: none;
  max-width: none;
  margin: 0;
  padding: 2px 4px 0;
  border: 0;
  justify-content: space-between;
}
.ante-line span { color: #526b74; font: 700 11px Arial,sans-serif; letter-spacing: .14em; }
.ante-line strong { color: #17323d; font-size: clamp(23px, 2vw, 38px); font-weight: 750; }
.screen-bottom { padding: 0; border: 0; }
.next-heading { color: #405b64; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.small-diamond { width: 7px; height: 7px; background: #ff7554; }
.bottom-rule { border-color: #c6d5d4; }
.level-track { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 10px; }
.track-item {
  min-width: 0;
  padding: clamp(10px, .9vw, 17px) clamp(13px, 1.1vw, 22px);
  border: 1px solid #d5e0df;
  border-radius: 12px;
  background: #fff;
}
.track-item:first-child { border-color: rgba(255,117,84,.75); }
.track-item .track-index { color: #b8492e; font-size: 10px; }
.track-item strong { color: #17323d; font-size: clamp(22px, 2vw, 38px); font-weight: 750; margin-top: 4px; }
.track-item small { color: #526b74; font-size: 11px; }
.track-item.empty { opacity: .4; }
.track-final { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 77px; padding: 17px 22px; border: 1px solid #d5e0df; border-radius: 12px; background: #fff; }
.track-final strong { color: #b8492e; font-size: clamp(20px, 1.6vw, 30px); }
.track-final span { color: #526b74; font-size: clamp(13px, 1vw, 18px); }
.screen-main.level-shift .timer-display { animation: score-reveal .55s var(--ease) both; }
.screen-main.level-shift .blind-slot.big { animation: chip-reveal .55s var(--ease) both; }
@keyframes board-enter { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes score-reveal { from { opacity:.72; transform:translateX(-16px); } to { opacity:1; transform:translateX(0); } }
@keyframes chip-reveal { from { opacity:.65; transform:translateY(13px); } to { opacity:1; transform:translateY(0); } }
@keyframes beacon-breathe { 50% { box-shadow:0 0 0 8px rgba(125,216,186,.07); } }

.pair-stage { padding: 3vh 0; }
.pair-ornament span { border-color: #ff7554; }
.pair-ornament span:nth-child(2) { background: #ff7554; box-shadow: 0 0 28px rgba(255,117,84,.3); }
.pair-stage h1 { font-size: clamp(37px, 4.4vw, 80px); font-weight: 800; }
.pair-description { color: #526b74; margin-bottom: 28px; }
.pair-code {
  max-width: 100%;
  padding: clamp(20px, 2.2vw, 42px) clamp(22px, 4vw, 80px);
  border-radius: 18px;
  color: #17323d;
  background: #fff;
  border: 1px solid #d5e0df;
  box-shadow: 0 18px 48px rgba(37,74,78,.08);
  font-size: clamp(66px, 8vw, 155px);
  font-weight: 800;
  letter-spacing: .06em;
  text-shadow: none;
}
.pair-hint { color: #526b74; }
.text-button { color: #b8492e; min-height: 44px; }
.pair-url { color: #526b74; }

/* The phone controller stays light from header through level editor. */
.control-page {
  color: #17323d;
  background: radial-gradient(circle at 90% -10%, #fff 0, transparent 38%), #edf2f1;
}
.control-page::before { display: none; }
.control-brand small { color: #b8492e; }
.control-intro h1 { font-weight: 820; }
.screen-link { color: #b8492e; }
.session-bar { background: #fff; border-color: #d5e0df; }
.session-bar select { background-color: #f2f6f4; color: #17323d; }
.live-card {
  color: #17323d;
  border: 1px solid #d5e0df;
  background: #fff;
  box-shadow: 0 18px 48px rgba(37,74,78,.08);
}
.live-card::before, .live-card::after { display: none; }
.live-card .field-kicker { color: #c75036; }
.live-card .live-status { color: #274255; background: #dae2de; }
.live-card .live-status.running { color: #186c52; background: #d1eadf; }
.live-card .live-status.paused { color: #95583e; background: #f4decf; }
.live-card .live-level-line { border-color: #cfd8d3; color: #c75036; }
.live-card .live-level-line span:last-child, .live-card .live-time { color: #17323d; }
.live-card .time-bar { height: 8px; background: #d6ded8; }
.live-card .time-bar span { background: #ff7554; }
.live-card .live-next { color: #647a83; }
.live-card.urgent .live-time { color: #d74c32; }
.primary-button { border-color: #f36d4c; background: #f36d4c; color: #17323d; }
.primary-button:hover { background: #ff9779; }
.control-play.pause { color: #c75036; border-color: #d87960; }
.live-card .control-button { color: #142634; border-color: #cbd4d0; background: #eef0e9; }
.live-card .control-button.quiet { color: #526771; }
.live-card .control-button:hover { background: #e2e8e2; border-color: #ff7554; }
.live-card .reset-button { color: #61737a; }
.empty-card, .utility-card { border-color: #d5e0df; background: #fff; box-shadow: 0 14px 36px rgba(37,74,78,.05); }
.empty-glyph { color: #e86140; }
.utility-icon { color: #b8492e; background: #fff2ec; border-color: #f4d0c3; }
.pair-input-row input, .editor-card input, .login-card input { background: #f5f8f7; color: #17323d; }
.pair-input-row input::placeholder, .editor-card input::placeholder, .login-card input::placeholder { color: #7b9095; }
.accent-button { color: #a63b25; background: #fff1eb; }
.accent-button:hover { background: rgba(255,117,84,.22); }
.level-row { background: #f4f8f7; border-color: #dce7e4; }
.level-row-head strong { color: #b8492e; }
.save-button { color: #fff; background: #17323d; }
.save-button:hover { background: #2a4b53; }
.toast { color: #fff; background: #17323d; }
.login-art { width: min(35vw,500px); aspect-ratio: 1.2; border-radius: 24px; background: #fff; border: 0; box-shadow: 0 26px 60px rgba(37,74,78,.1); }
.login-art::before { inset: auto 0 0; height: 12px; border: 0; border-radius: 0 0 24px 24px; background: #ff7554; }
.login-art::after { display: none; }
.art-time { color: #17323d; font-weight: 800; }

@media (max-width: 900px) {
  .screen-shell { min-height: 0; height: auto; min-height: 100dvh; }
  .screen-live { display: flex; }
  .screen-main { grid-template-columns: 1fr; }
  .timer-display { min-height: 320px; }
  .timer-numerals { font-size: clamp(115px, 21vw, 240px); }
  .blind-display { min-height: 400px; }
  .blind-slot strong { font-size: clamp(72px, 10vw, 120px); }
  .blind-slot.big strong { font-size: clamp(82px, 11vw, 130px); }
}
@media (max-width: 700px) {
  .login-card h1 { font-size: clamp(36px, 10vw, 43px); }
  .control-intro { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 15px; }
  .control-intro .eyebrow, .control-intro p:last-child { display: none; }
  .control-intro h1 { font-size: 28px; white-space: nowrap; }
  .screen-link { align-self: center; gap: 2px; margin: 0; padding-bottom: 5px; font-size: 12px; }
  .session-bar { padding: 12px; margin-bottom: 12px; }
  .session-bar .field-kicker { display: none; }
  .session-bar label { font-size: 14px; margin: 0; }
  .live-card .live-level-line { margin-top: 19px; }
  .live-card .live-time { padding: 12px 0 3px; }
  .live-card .live-next { margin-bottom: 17px; }
  .screen-shell { padding: 18px 16px 16px; }
  .screen-brand strong { font-size: 14px; }
  .screen-brand small { font-size: 8px; }
  .screen-tools { gap: 5px; }
  .screen-tools .connection-chip { font-size: 0; padding: 8px; }
  .screen-event-row { padding-top: 23px; }
  .screen-event-row h1 { font-size: 26px; }
  .screen-state { padding: 8px 10px; font-size: 11px; }
  .timer-display { min-height: 290px; padding: 22px; }
  .timer-numerals { font-size: clamp(88px, 22vw, 145px); }
  .timer-card-bottom span:last-child { display: none; }
  .blind-display { min-height: 360px; }
  .blind-slot span { max-width: 95px; font-size: 10px; }
  .blind-slot strong, .blind-slot.big strong { font-size: clamp(66px, 14vw, 110px); }
  .level-track { gap: 6px; }
  .track-item { padding: 9px; }
  .track-item strong { font-size: 17px; }
  .track-final { display: block; }
  .track-final span { display: block; margin-top: 7px; }
  .pair-code { font-size: clamp(52px, 11vw, 100px); padding: 20px; }
  .pair-url strong { display: block; margin: 8px 0 0; overflow-wrap: anywhere; }
}
@media (max-width: 390px) {
  .control-intro { display: flex; }
  .control-intro .screen-link { margin: 0; }
}
@media (max-height: 780px) and (min-width: 901px) {
  .screen-shell { padding-top: 17px; padding-bottom: 9px; }
  .screen-live { gap: 10px; }
  .screen-event-row { padding-top: 8px; }
  .timer-display { padding: 23px; }
  .timer-numerals { font-size: clamp(120px, 17vw, 260px); }
  .blind-display { padding: 18px; gap: 8px; }
  .blind-slot { padding: 8px 15px; }
  .blind-slot strong { font-size: clamp(65px, 6.5vw, 110px); }
  .blind-slot.big strong { font-size: clamp(73px, 7.3vw, 130px); }
  .track-item { padding: 8px 14px; }
  .track-item strong { font-size: clamp(21px, 1.8vw, 32px); margin-top: 2px; }
  .track-item small { font-size: 10px; }
  .screen-footer { padding-top: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .screen-live[data-status="running"] .state-beacon { animation: none; }
}

/* v4: the display is one joined timing instrument, with a cobalt blind field. */
:root {
  --felt:#e8edec; --felt-deep:#f1f3f2; --felt-mid:#e7edf7;
  --gold:#214ba3; --gold-bright:#214ba3; --gold-deep:#173e92;
  --ivory:#182a34; --muted:#5c7078; --soft:#435a64; --line:#cbd6d5;
  --warn:#ac621c; --danger:#bf3e33;
}
body { font-family:"Avenir Next","PingFang SC","Microsoft YaHei",sans-serif; }
.control-brand-logo { display:block;width:auto;height:68px;object-fit:contain; }
@media (max-width:700px) { .control-brand-logo { height:54px; } }
.eyebrow,.field-kicker { color:#214ba3;letter-spacing:.03em; }
.brand-symbol { background:#214ba3;color:#fff;border-radius:4px;font-family:"Avenir Next Condensed","Arial Narrow",sans-serif; }
.screen-brand small,.control-brand small { color:#667982;letter-spacing:.04em; }
.connection-chip { border:1px solid #cbd6d5;border-radius:4px;background:#fff;color:#435a64; }
.connection-chip.online i { background:#19836c;box-shadow:0 0 0 4px #e2f2e9; }
.icon-button { border-radius:4px;border-color:#cbd6d5;background:#fff;color:#182a34; }
.icon-button:hover { background:#e7edf7; }
.icon-button.active { background:#214ba3;color:#fff; }

.screen-page,.control-page { color:#182a34;background:#f1f3f2; }
.screen-shell { padding:clamp(18px,2vw,38px) clamp(22px,2.3vw,46px) 12px; }
.screen-header { min-height:54px;padding-bottom:13px;border-bottom:1px solid #cbd6d5; }
.screen-brand strong { font-size:18px; }
.screen-footer { padding-top:7px;color:#74868a;letter-spacing:.04em; }
.screen-live { gap:clamp(12px,1.15vw,21px); }
.screen-event-row { padding-top:clamp(14px,1.45vw,28px); }
.screen-event-row .eyebrow { font-size:12px; }
.screen-event-row h1 { font-size:clamp(28px,2.35vw,46px);letter-spacing:-.035em; }
.screen-state { padding:10px 13px;border:1px solid #cbd6d5;border-radius:4px;background:#fff;color:#214ba3;font-size:13px;letter-spacing:0; }
.state-beacon { background:#6a8992;box-shadow:none; }
.screen-live[data-status="running"] .state-beacon { background:#19836c;box-shadow:0 0 0 4px #e2f2e9; }
.screen-live[data-status="paused"] .state-beacon { background:#ac621c; }
.screen-main { grid-template-columns:minmax(0,1.19fr) minmax(0,.81fr);gap:0;border:1px solid #cbd6d5;background:#fff; }
.timer-display { padding:clamp(24px,2.65vw,52px);border-radius:0;background:#fff;color:#182a34;box-shadow:none; }
.timer-display::before { display:none; }
.timer-card-top>span:first-child { font-size:clamp(16px,1.25vw,24px); }
.timer-card-top small { color:#6a7d83;letter-spacing:.06em; }
.timer-card-top .level-index-row { padding:4px 0 4px 12px;border-left:3px solid #214ba3;border-radius:0;color:#214ba3;background:none;font-family:"Avenir Next Condensed","Arial Narrow",sans-serif; }
.timer-numerals { color:#182a34;font-family:"Avenir Next Condensed","Arial Narrow","Helvetica Neue",sans-serif;font-size:clamp(130px,18vw,355px);letter-spacing:-.06em; }
.timer-card-bottom span:last-child { color:#6a7d83;letter-spacing:0; }
.timer-progress { height:9px;border-radius:0;background:#e5ebf3; }
.timer-progress span { border-radius:0;background:#214ba3; }
.screen-live.urgent .timer-display { background:#fff8ef; }
.screen-live.urgent .timer-numerals { color:#a24723; }
.screen-live.urgent .timer-progress span { background:#c65b31; }
.blind-display { gap:0;padding:clamp(24px,2.15vw,42px);border-radius:0;background:#214ba3;color:#fff; }
.blind-card-top { color:#fff; }
.blind-card-top span:last-child { color:#c2d2f5; }
.blind-numbers,.blind-numbers.break-text { grid-template-rows:minmax(0,.43fr) minmax(0,.57fr);gap:0;color:#fff; }
.blind-slot { padding:12px 0;border:0;border-bottom:1px solid rgba(255,255,255,.32);border-radius:0;background:transparent; }
.blind-slot span { color:#c2d2f5; }
.blind-slot strong { color:#fff;font-family:"Avenir Next Condensed","Arial Narrow",sans-serif; }
.blind-slot.big { background:transparent; }
.blind-slot.big span,.blind-slot.big strong { color:#fff; }
.blind-slot.big strong { font-size:clamp(108px,10.6vw,195px); }
.blind-numbers.break-text { background:transparent; }
.blind-break { color:#fff; }
.ante-line { padding:13px 0 0; }
.ante-line span { color:#c2d2f5; }
.ante-line strong { color:#fff;font-family:"Avenir Next Condensed","Arial Narrow",sans-serif; }
.next-heading { color:#435a64;font-size:12px;letter-spacing:0; }
.small-diamond { background:#214ba3; }
.bottom-rule { border-color:#cbd6d5; }
.level-track { gap:0;margin-top:10px;border-top:1px solid #cbd6d5; }
.track-item { padding:clamp(10px,1vw,19px) clamp(12px,1.3vw,24px);border:0;border-right:1px solid #cbd6d5;border-radius:0;background:transparent; }
.track-item:first-child { border-color:#cbd6d5; }
.track-item:last-child { border-right:0; }
.track-item .track-index { color:#214ba3; }
.track-item strong { color:#182a34;font-size:clamp(24px,2.25vw,43px); }
.track-item small { color:#5c7078; }
.track-final { border:0;border-radius:0;background:transparent; }
.track-final strong { color:#214ba3; }
.track-final span { color:#5c7078; }

.pair-stage { display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);align-items:center;gap:clamp(40px,6vw,120px);padding:3vh 3vw;text-align:left; }
.pair-copy .eyebrow { font-size:12px; }
.pair-stage h1 { font-size:clamp(56px,5.3vw,102px);line-height:1.12;letter-spacing:-.06em;margin:19px 0 24px; }
.pair-stage h1 span { color:#214ba3; }
.pair-description { color:#435a64;font-size:clamp(18px,1.3vw,24px);line-height:1.6;margin:0 0 45px;max-width:550px; }
.pair-steps { border-top:1px solid #cbd6d5;max-width:550px; }
.pair-steps div { display:flex;gap:22px;align-items:center;padding:16px 0;border-bottom:1px solid #cbd6d5;font-size:17px;font-weight:700; }
.pair-steps b { color:#214ba3;font:800 17px "Avenir Next Condensed",sans-serif; }
.pair-access { padding:clamp(26px,3vw,58px);border:1px solid #cbd6d5;background:#fff; }
.pair-access-top { display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #cbd6d5;padding-bottom:14px;font-weight:800; }
.pair-access-top span:last-child { color:#214ba3;font-size:12px; }
.pair-code { max-width:none;padding:clamp(26px,3vw,58px) 0 13px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#182a34;text-align:left;font-family:"Avenir Next Condensed","Arial Narrow",sans-serif;font-size:clamp(70px,7vw,142px);letter-spacing:.055em; }
.pair-hint { color:#5c7078;margin:12px 0 4px; }
.text-button { color:#214ba3;padding-left:0;font-weight:800; }
.pair-url { color:#5c7078;margin-top:7vh;border-top:1px solid #cbd6d5; }
.pair-url strong { color:#182a34;font-weight:700; }

.control-shell { max-width:1420px;padding-top:22px; }
.control-header { border-color:#cbd6d5; }
.control-intro { margin:35px 0 23px; }
.control-intro h1 { font-size:clamp(38px,4vw,61px); }
.screen-link { color:#214ba3;border-color:#214ba3;font-weight:700; }
.session-bar { background:#fff;border:1px solid #cbd6d5;border-radius:4px; }
.session-bar select { color:#182a34;border-radius:3px;background-color:#f4f6f6; }
.outline-button { border-color:#cbd6d5;color:#182a34;background:#fff; }
.outline-button:hover { border-color:#214ba3; }
.live-card,.utility-card,.empty-card { border:1px solid #cbd6d5;border-radius:4px;background:#fff;box-shadow:none; }
.live-card { border-top:5px solid #214ba3;color:#182a34; }
.live-card .field-kicker { color:#214ba3; }
.live-card .live-status { color:#435a64;background:#e9eeee;border-radius:3px; }
.live-card .live-status.running { color:#176d59;background:#e2f2e9; }
.live-card .live-status.paused { color:#9b541b;background:#fff0df; }
.live-card .live-level-line { margin-top:29px;color:#214ba3;border-color:#cbd6d5; }
.live-card .live-level-line span:last-child,.live-card .live-time { color:#182a34; }
.live-card .live-time { font-family:"Avenir Next Condensed","Arial Narrow",sans-serif;font-weight:800; }
.live-card .time-bar { height:7px;border-radius:0;background:#e5ebf3; }
.live-card .time-bar span { background:#214ba3; }
.live-card .live-next { color:#5c7078; }
.live-card.urgent .live-time { color:#a24723; }
.primary-button { color:#fff;border-color:#214ba3;background:#214ba3; }
.primary-button:hover { background:#173e92; }
.control-play.pause { color:#214ba3;border-color:#214ba3;background:#fff; }
.live-card .control-button { color:#182a34;border-color:#cbd6d5;background:#f4f6f6; }
.live-card .control-button.quiet { color:#435a64; }
.live-card .control-button:hover { background:#e7edf7;border-color:#214ba3; }
.live-card .reset-button { color:#5c7078; }
.empty-glyph { color:#214ba3; }
.utility-card { padding:27px; }
.utility-head { border-bottom:1px solid #cbd6d5;padding-bottom:16px; }
.utility-icon { display:none; }
.utility-head h2 { margin-top:0; }
.utility-card p { color:#5c7078; }
.pair-input-row input,.editor-card input,.login-card input { color:#182a34;border-color:#cbd6d5;border-radius:3px;background:#f6f8f8; }
.pair-input-row input::placeholder,.editor-card input::placeholder,.login-card input::placeholder { color:#809097; }
.accent-button { color:#214ba3;border-color:#214ba3;background:#fff; }
.accent-button:hover { background:#e7edf7; }
.utility-link { border-color:#cbd6d5; }
.utility-link span { color:#214ba3; }
.editor-title-label { color:#435a64; }
.editor-hint { color:#5c7078; }
.level-editor-list { gap:0;padding:0;border-top:1px solid #cbd6d5; }
.level-row { padding:17px 0;border:0;border-bottom:1px solid #cbd6d5;border-radius:0;background:#fff; }
.level-row-head strong { color:#214ba3; }
.row-actions button { color:#5c7078; }
.row-actions button:hover { color:#214ba3;background:#e7edf7; }
.level-fields label { color:#5c7078; }
.editor-add button { color:#214ba3;border-color:#8fa9de;border-radius:3px; }
.editor-add button:hover { background:#e7edf7; }
.save-button { color:#fff;background:#182a34;border-radius:3px; }
.save-button:hover { background:#344c5a; }
.toast { color:#fff;background:#182a34;border-color:#214ba3; }
.login-art { border:0;border-radius:0;background:#214ba3;box-shadow:none; }
.login-art::before,.login-art::after,.art-ring { display:none; }
.art-time { color:#fff;font-family:"Avenir Next Condensed","Arial Narrow",sans-serif; }
.login-card label { color:#435a64; }

@media (max-width:900px) {
  .screen-main { grid-template-columns:1fr; }
  .pair-stage { grid-template-columns:1fr;gap:28px;padding:45px 3vw; }
  .pair-stage h1 { font-size:clamp(43px,8vw,70px); }
  .pair-access { width:100%; }
}
@media (max-width:700px) {
  .screen-shell { padding:16px; }
  .screen-header { min-height:45px; }
  .screen-brand strong { font-size:14px; }
  .screen-event-row { padding-top:17px; }
  .screen-event-row h1 { font-size:25px; }
  .screen-state { padding:8px;font-size:11px; }
  .timer-display { min-height:290px;padding:21px; }
  .timer-numerals { font-size:clamp(88px,22vw,145px); }
  .blind-display { min-height:350px;padding:19px; }
  .blind-slot span { font-size:10px; }
  .blind-slot strong { font-size:clamp(65px,14vw,105px); }
  .blind-slot.big strong { font-size:clamp(83px,18vw,130px); }
  .track-item { padding:9px; }
  .track-item strong { font-size:17px; }
  .pair-stage { padding:28px 0; }
  .pair-stage h1 { margin:12px 0; }
  .pair-description { margin-bottom:25px; }
  .pair-steps div { font-size:13px;padding:10px 0; }
  .pair-access { padding:20px; }
  .pair-code { font-size:clamp(52px,12vw,85px); }
  .pair-url strong { display:block;margin:8px 0 0;overflow-wrap:anywhere; }
  .control-shell { padding:16px 16px 65px; }
  .control-intro { margin:18px 0 15px; }
  .control-intro h1 { font-size:27px; }
  .session-bar { padding:12px;margin-bottom:12px; }
  .live-card { padding:20px; }
  .live-card .live-level-line { margin-top:18px; }
  .live-card .live-time { padding:12px 0 3px; }
  .live-card .live-next { margin-bottom:17px; }
}
@media (max-height:780px) and (min-width:901px) {
  .screen-shell { padding-top:16px;padding-bottom:8px; }
  .screen-live { gap:9px; }
  .screen-event-row { padding-top:8px; }
  .timer-display { padding:22px; }
  .timer-numerals { font-size:clamp(118px,17vw,260px); }
  .blind-display { padding:20px; }
  .blind-slot { padding:6px 0; }
  .blind-slot strong { font-size:clamp(68px,6.5vw,110px); }
  .blind-slot.big strong { font-size:clamp(89px,8.7vw,145px); }
  .track-item { padding:8px 14px; }
  .track-item strong { font-size:clamp(22px,1.9vw,32px); }
  .screen-footer { padding-top:4px; }
}

/* Only the digits that change make a brief, physical page turn. */
.timer-numerals.flip-clock {
  display:flex;align-items:center;justify-content:center;gap:.012em;
  font-size:clamp(130px,18vw,350px);line-height:1;
}
.timer-numerals.flip-clock.long { font-size:clamp(110px,15vw,285px); }
.flip-digit {
  position:relative;display:block;flex:none;width:.62em;height:.9em;
  perspective:1000px;background:#dce5e9;
}
.flip-current,.flip-next {
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  color:#182a34;background:#eef2f4;letter-spacing:-.055em;
  box-shadow:inset 0 0 0 1px #d3dde1;
  backface-visibility:hidden;transform-origin:center;
}
.flip-digit::after {
  content:"";position:absolute;z-index:4;left:0;right:0;top:50%;
  border-top:1px solid rgba(37,60,74,.23);pointer-events:none;
}
.flip-next { visibility:hidden;transform:rotateX(90deg); }
.flip-digit.flipping .flip-current {
  z-index:2;will-change:transform;
  animation:flip-leave .16s cubic-bezier(.55,.08,.75,.36) both;
}
.flip-digit.flipping .flip-next {
  z-index:3;visibility:visible;will-change:transform;
  animation:flip-arrive .18s cubic-bezier(.2,.62,.35,1) .16s both;
}
.flip-colon { display:flex;align-items:center;justify-content:center;flex:none;width:.23em;height:.9em;color:#214ba3; }
.screen-live.urgent .flip-current,.screen-live.urgent .flip-next { color:#182a34;background:#eef2f4; }
@keyframes flip-leave { from { transform:rotateX(0); } to { transform:rotateX(-90deg); } }
@keyframes flip-arrive { from { transform:rotateX(90deg); } to { transform:rotateX(0); } }
@media (max-width:700px) {
  .timer-numerals.flip-clock { font-size:clamp(84px,22vw,116px); }
  .timer-numerals.flip-clock.long { font-size:clamp(73px,18vw,95px); }
}
