/* Tournament display only: keep the member/admin pages on their existing theme. */
.timer-digits .clock-numerals{font-family:Arial,"Malgun Gothic",sans-serif;font-weight:700;font-variant-numeric:tabular-nums}
.timer-colon{display:inline-block}
.is-running .timer-colon{animation:timer-colon-pulse 1s ease-in-out infinite}
@keyframes timer-colon-pulse{50%{opacity:.4}}
.timer-center .clock-card{transition:background-color 1.5s,border-color 1.5s}
.timer-center .clock-card.urgent{background:#3c2421;border-color:#c76b53}
.timer-center .clock-card.urgent .timer-digits{color:#ffcab0}
.timer-gauge{height:5px;width:100%;background:#46503e;margin-top:12px;border-radius:3px;overflow:hidden;flex-shrink:0}
.timer-gauge>div{height:100%;background:#d1b985}
.clock-card.urgent .timer-gauge>div{background:#ffac8f}
.registration-countdown{font-variant-numeric:tabular-nums}
.tournament-dashboard .registration-soon .registration-countdown{color:#f0bc7b}
.tournament-dashboard .registration-ended .registration-countdown{color:#efb6a0}
.registration-deadline .hint{margin:8px 0 0;font-size:clamp(12px,calc(10px + 1cqi),16px)}
.clock-card>.timer-gauge+.blinds,.clock-card>.timer-gauge+.break-label{margin-top:clamp(28px,5cqi,48px)}
.timer-transition{position:absolute;top:18px;left:50%;transform:translateX(-50%);z-index:2;max-width:80%;padding:12px 20px;background:#eeeee6;color:#25321f;border:1px solid #d1b985;border-radius:6px;font-size:clamp(16px,3cqi,26px);font-weight:700;animation:timer-transition-in .2s ease-out;pointer-events:none}
@keyframes timer-transition-in{from{opacity:0;translate:0 -6px}to{opacity:1;translate:0 0}}
.tournament-stats dt,.tournament-chip-summary h3{font-size:clamp(.875rem,calc(.625rem + 3cqi),1.5rem);color:#626a5a;font-weight:600}
.tournament-stats dd{font-size:clamp(1.25rem,calc(.75rem + 10cqi),2.5rem);font-weight:700;line-height:1.2}
.tournament-stats dl>div:first-child dd{font-size:clamp(1.5rem,calc(.875rem + 11cqi),2.75rem)}
.metric-number{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.metric-unit{display:inline-block;margin-left:.35em;font-size:.48em;font-weight:500;color:#65705d;white-space:nowrap}
.metric-divider{font-size:.65em;color:#7b8374}
.metric-changed{animation:metric-highlight .4s ease-out}
@keyframes metric-highlight{from{background:#dce6cc}to{background:transparent}}
.tournament-status{display:inline-flex;align-items:center;gap:8px;max-width:100%;font-size:clamp(13px,calc(11px + .25vw),18px);font-weight:650;padding:7px 10px;border:1px solid #cfd6c8;border-radius:5px;background:#e9ede3;color:#4d5943;line-height:1.3;overflow-wrap:anywhere}
.tournament-status i{flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:currentColor}
.status-open,.status-running{color:#386030;background:#e4eddc;border-color:#c6d7b9}
.status-open i,.status-running i{animation:status-pulse 2s ease-in-out infinite}
.status-closed{color:#8c4738;background:#f4e6df;border-color:#e2c5ba}
.status-paused{color:#805e24;background:#f1e9d7;border-color:#dfd0ad}
@keyframes status-pulse{50%{opacity:.4}}
.tournament-chip-summary{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}
.stats-left dl>div:last-child{border-bottom:0}
.tournament-chip-summary h3{margin:0 0 12px}
.tournament-chip-summary p{display:flex;align-items:baseline;justify-content:flex-start;gap:4px;margin:10px 0;white-space:nowrap;font-size:clamp(22px,calc(.825rem + 4.4cqi),44px);font-weight:700;line-height:1.2}
.tournament-chip-summary .chip-value{min-width:0}
.tournament-chip-summary strong{font-size:inherit;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.tournament-chip-summary .metric-unit{margin-left:0}
.timer-display-options{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;width:100%;margin-bottom:8px}
.timer-display-options label{display:flex;align-items:center;gap:8px;font-size:14px;margin:0}
.timer-display-options .timer-gauge-toggle input{width:18px;height:18px;margin:0}
.timer-center .utility .timer-display-options button{color:var(--text);font-size:14px;padding:10px 14px;border:1px solid var(--line);background:var(--surface)}
.entry-fee-preview{border:1px solid var(--line);border-radius:6px;padding:12px 16px;margin:16px 0;background:#f2f3ec}
.entry-fee-preview p{margin:6px 0}
.timer-dark{background:#141b18}
.timer-dark .app-shell>.header{color:#e5e9de}
.tournament-dashboard[data-theme="dark"]{--text:#e7ebdf;--muted:#a5afa0;--line:#36443a;--surface:#1d2922;color:var(--text)}
.tournament-dashboard[data-theme="dark"] .tournament-stats{background:var(--surface);border-color:var(--line)}
.tournament-dashboard[data-theme="dark"] .tournament-stats dt,
.tournament-dashboard[data-theme="dark"] .metric-unit,
.tournament-dashboard[data-theme="dark"] .tournament-chip-summary h3{color:#a9b79f}
.tournament-dashboard[data-theme="dark"] .tournament-stats dd,
.tournament-dashboard[data-theme="dark"] .tournament-chip-summary strong{color:#eef1e6}
.tournament-dashboard[data-theme="dark"] .tournament-stats dl>div:first-child dd{color:#c9dfaf}
.tournament-dashboard[data-theme="dark"] .metric-changed{animation-name:metric-highlight-dark}
@keyframes metric-highlight-dark{from{background:#3c5032}to{background:transparent}}
.tournament-dashboard[data-theme="dark"] .controls .outline{color:var(--text);background:var(--surface);border-color:var(--line)}
.timer-broadcast .portal-header,.timer-broadcast .app-shell>.header{display:none}
.timer-broadcast .timer-host{margin-top:0}
.is-broadcast .controls,.is-broadcast .utility{display:none}
.is-broadcast{width:100%;margin-block:16px;min-height:calc(100dvh - 32px);align-content:safe center;position:relative}
.is-broadcast:fullscreen{max-width:none;min-height:100dvh;margin:0;overflow:auto;padding:28px;background:#f5f4ed;align-content:safe center}
.is-broadcast[data-theme="dark"]:fullscreen{background:#141b18}
/* Fit desktop broadcast content by height as well as width. Keep stacked screens scrollable. */
@media(min-width:1200px) and (max-height:1000px){
  .is-broadcast{margin-top:16px}
  .is-broadcast:fullscreen{margin-top:0;padding:16px}
  .is-broadcast .event-heading{margin-bottom:16px}
  .is-broadcast .event-heading h1{font-size:clamp(24px,4dvh,36px)}
  .is-broadcast .event-heading .eyebrow{font-size:12px;margin-bottom:8px}
  .is-broadcast .tournament-stats{padding:16px}
  .is-broadcast .tournament-stats h2{padding-bottom:12px}
  .is-broadcast .tournament-stats dl>div{padding:clamp(8px,1.2dvh,12px) 0}
  .is-broadcast .tournament-stats dt,.is-broadcast .tournament-chip-summary h3{font-size:clamp(12px,min(calc(.625rem + 3cqi),2dvh),24px)}
  .is-broadcast .tournament-stats dd{font-size:clamp(20px,min(calc(.75rem + 10cqi),4dvh),40px)}
  .is-broadcast .tournament-stats dl>div:first-child dd{font-size:clamp(24px,min(calc(.875rem + 11cqi),4.5dvh),44px)}
  .is-broadcast .tournament-chip-summary{margin-top:12px;padding-top:12px}
  .is-broadcast .tournament-chip-summary h3{margin-bottom:8px}
  .is-broadcast .tournament-chip-summary p{margin:6px 0;font-size:clamp(22px,min(calc(.825rem + 4.4cqi),4.4dvh),44px)}
  .is-broadcast .tournament-stats .hint{margin-top:8px}
  .is-broadcast .clock-card{padding-block:clamp(16px,2dvh,24px)}
  .is-broadcast .clock-caption{margin-top:12px}
  .is-broadcast .clock-card>.blinds{padding-block:16px}
  .is-broadcast .clock-card>.next-blind-banner{padding-block:12px}
  .is-broadcast .timer-digits{font-size:clamp(80px,min(24cqi,20dvh),200px)}
  .is-broadcast .clock-card>.blinds,.is-broadcast .clock-card>.break-label,.is-broadcast .clock-card>.next-blind-banner{margin-top:16px}
  .is-broadcast .clock-card>.timer-digits+.blinds,.is-broadcast .clock-card>.timer-digits+.break-label,
  .is-broadcast .clock-card>.timer-gauge+.blinds,.is-broadcast .clock-card>.timer-gauge+.break-label{margin-top:28px}
  .is-broadcast .blinds strong{font-size:clamp(28px,min(7.5cqi,7dvh),72px)}
  .is-broadcast .next-blind-values strong{font-size:clamp(18px,min(4.455cqi,4.05dvh),38.88px)}
}
.broadcast-exit{position:fixed;right:12px;top:12px;z-index:5;padding:8px 12px;font-size:12px;color:#e7ebdf;background:#25332b;border:1px solid #5c6a58;border-radius:4px}
@media(max-width:599px){.is-broadcast{justify-content:safe center}.is-broadcast:fullscreen{padding:16px 12px}.timer-transition{padding:10px 14px;top:12px}}
@media(prefers-reduced-motion:reduce){.is-running .timer-colon,.status-open i,.status-running i,.metric-changed,.timer-transition{animation:none}.timer-center .clock-card{transition:none}}
