:root{--bg:#102c2c;--panel:#193c36;--cream:#f7f2e6;--gold:#e9c780;--ink:#173b36}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:#eaf1e7;font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;line-height:1.55}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}[hidden]{display:none!important}:focus-visible{outline:3px solid #f4c978;outline-offset:4px}.site-top{max-width:1180px;margin:auto;padding:18px 26px;display:flex;align-items:center;gap:15px;border-bottom:1px solid #446157}.back-link{font-weight:750;font-size:14px}.top-mark{margin:auto;color:#d2d5b0;font-size:12px}.top-count{color:#bdd4ca;font-size:11px;letter-spacing:.1em}main{max-width:1180px;margin:auto;padding:0 26px 50px}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:50px 8px}.eyebrow,.section-index{color:var(--gold);font-size:12px;font-weight:750}.intro h1{font-size:clamp(46px,6vw,80px);line-height:1.1;letter-spacing:-.06em;margin:8px 0 0}.intro h1 span{color:var(--gold)}.intro-description{color:#c5dbd2;font-size:16px;line-height:1.85}.intro-description strong{color:#fff1ca}.rule-chips{display:flex;flex-wrap:wrap;gap:8px}.rule-chips span{border:1px solid #436259;border-radius:99px;padding:7px 12px;font-size:12px}.rule-chips b{color:var(--gold)}.intro-art{width:240px;height:230px;position:relative;display:grid;place-items:center;flex-shrink:0}.intro-watch{width:190px;height:190px;border:12px solid #e7bd75;background:#234942;border-radius:50%;display:grid;place-items:center;transform:rotate(10deg);box-shadow:inset 0 0 0 5px #365e55,0 18px 28px #071a1775;position:relative}.intro-watch:before{content:"";width:36px;height:18px;border-radius:5px;position:absolute;top:-30px;background:#e7bd75}.intro-watch>span{font-size:44px;font-weight:850;letter-spacing:-.06em}.watch-dot{color:#e7bd75}.art-spark{position:absolute;color:#e7bd75;font-size:30px}.art-spark.one{left:4px;top:15px}.art-spark.two{right:0;bottom:17px}.setup,.game,.final{border:1px solid #557267;border-radius:18px;padding:28px;background:var(--panel);margin-bottom:26px;scroll-margin-top:15px}.section-heading,.game-heading{display:flex;align-items:start;justify-content:space-between;gap:15px}.setup h2,.game h2,.final h2{font-size:clamp(23px,3vw,34px);letter-spacing:-.04em;margin:5px 0}.section-heading p,.game-heading p,.final-heading p{margin:5px 0;color:#bbd0c4;font-size:13px}.limit-note{font-size:11px;border:1px solid #607d6d;border-radius:30px;padding:7px 12px;white-space:nowrap}.player-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:24px}.player-field{display:flex;align-items:center;gap:10px;background:#e9eddf;border:1px solid #acc0ae;border-radius:12px;padding:8px 10px;min-width:0}.player-badge{width:30px;height:30px;border-radius:50%;background:#285b4a;color:#fff;display:grid;place-items:center;font-size:12px;font-weight:800;flex-shrink:0}.player-field input{width:100%;min-width:0;padding:6px;border:0;background:transparent;outline:0;color:#16372e;font-size:14px}.remove-player{border:0;background:transparent;color:#516d62;font-size:21px}.setup-controls{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:14px 0 20px}.player-count,.setup-foot,.keyboard-note,.result-foot{font-size:12px;color:#b5cdbb}.setup-foot{text-align:center}.error{color:#ffd5c9}.button{border-radius:11px;min-height:48px;padding:12px 20px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:800;border:1px solid transparent}.button:disabled{opacity:.5;cursor:not-allowed}.button.primary{background:var(--gold);color:#1b3a30;border-color:#f8d996;box-shadow:0 3px 0 #ab8552}.button.primary:hover{background:#f6d99d}.button.light{color:#eaf3e5;background:#2b5046;border-color:#668577}.button.light:hover{background:#365e51}.button.secondary{background:#dcebb5;color:#193e33}.full{width:100%}.text-button{background:none;border:0;color:#e4cc9a;font-size:12px;font-weight:700}.game-heading{margin-bottom:22px}.game-columns{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(270px,.8fr);gap:15px}.stopwatch-panel{background:var(--cream);color:var(--ink);border-radius:16px;padding:23px;text-align:center}.watch-top{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#667f71;font-weight:750}.live-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#9baa98}.is-running .live-dot{background:#e87758;box-shadow:0 0 0 5px #e8775830}.timer-dial{--dial-progress:0deg;width:min(100%,285px);aspect-ratio:1;margin:18px auto 10px;padding:12px;border-radius:50%;background:conic-gradient(#e8865d var(--dial-progress),#d6dbca var(--dial-progress))}/* Once hidden, even the circular progress indicator becomes a static neutral dial. */.timer-dial.is-blind{background:#d6dbca}.timer-face{width:100%;height:100%;border-radius:50%;background:#fffdf6;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:inset 0 0 0 1px #e8e7d8}.timer-overline{font-size:12px;font-weight:700;color:#7a8c7d}.time-number{font-size:clamp(49px,7vw,74px);font-weight:850;line-height:1.3;letter-spacing:-.06em;font-variant-numeric:tabular-nums}.time-number.is-hidden{color:#b66b4e}.timer-unit{letter-spacing:.16em;font-size:10px;color:#99a89c;font-weight:800}.timer-hint{color:#6f8479;font-size:13px;min-height:22px}.timer-action{width:100%;max-width:400px;min-height:58px;font-size:19px}.is-running .timer-action{background:#e87758;color:#fff;border-color:#e87758}.keyboard-note{color:#829486}.round-result{background:#e6eedc;border-radius:12px;border:1px solid #b6cbb2;padding:16px;margin:18px auto 0;max-width:440px}.result-message{font-size:13px;font-weight:750;color:#3b6b52}.round-result>div{display:flex;justify-content:center;align-items:baseline;gap:12px;margin:10px 0;flex-wrap:wrap}.round-result strong{font-size:30px}.round-result div span{font-size:13px;color:#587866}.leaderboard-panel{background:#fdfaf2;color:#1c4335;border-radius:16px;padding:22px}.side-title{display:flex;align-items:baseline;justify-content:space-between;border-bottom:1px solid #e0e6d8}.side-title h3{font-size:19px;margin:0 0 12px}.side-title span{font-size:11px;color:#7b8d7f}.progress-list{list-style:none;margin:12px 0 22px;padding:0;display:grid;gap:8px}.progress-item{display:flex;align-items:center;gap:10px;border:1px solid #e4eadf;border-radius:10px;padding:11px;background:#f8f9f1}.progress-item.is-current{border-color:#c2ac7b;background:#faf2e1}.progress-number{width:25px;height:25px;border-radius:50%;background:#e2e9db;display:grid;place-items:center;font-size:11px;font-weight:800}.progress-name{font-size:13px;font-weight:700;flex:1;overflow-wrap:anywhere}.progress-score{font-size:12px;color:#668174;white-space:nowrap;font-variant-numeric:tabular-nums}.progress-score.is-done{color:#287047}.leaderboard-note{border-top:1px solid #e1e5d7;padding-top:15px}.leaderboard-note b{font-size:11px;color:#a4743b}.leaderboard-note p{font-size:12px;color:#74887b;line-height:1.8}
.final{background:#f9f5e8;color:var(--ink);border-color:#d9c8a3}.final-heading p{color:#6d8176}.winner-banner,.loser-banner{display:flex;align-items:center;gap:17px;border-radius:13px;padding:19px 22px;margin-top:15px}.winner-banner{background:#e5ecda;border:1px solid #a9c4ad}.loser-banner{background:#f5e7d8;border:1px solid #e6c7b1}.winner-banner>span,.loser-banner>span{font-size:30px}.winner-banner small,.loser-banner small{display:block;font-size:11px;color:#728673}.winner-banner strong,.loser-banner strong{display:block;font-size:23px;overflow-wrap:anywhere}.winner-banner p{font-size:12px;margin:3px 0 0}.result-table-wrap{overflow-x:auto;margin-top:20px;border:1px solid #d8dccc;border-radius:12px}.result-table{border-collapse:collapse;width:100%;min-width:380px;text-align:left;font-size:13px}.result-table thead{background:#e5ebdf;color:#52685c}.result-table th,.result-table td{padding:12px 15px;border-bottom:1px solid #e2e4da}.result-table tbody tr:last-child td{border:0}.is-best{color:#207446}.is-last{color:#af6047}.final-actions{display:flex;gap:10px;margin-top:22px}.final-actions .button{flex:1}.final-actions .button.light{color:#2c5646;background:#e4eae1;border-color:#a5beac}.result-foot{color:#809081}.rules{padding:25px 0 35px}.rules-heading{display:flex;justify-content:space-between;align-items:baseline;border-bottom:1px solid #47665a;padding-bottom:16px;gap:12px}.rules h2{font-size:23px}.rules-heading p{font-size:12px;color:#b1c7b7}.rules-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin-top:25px}.rules-grid b{font-size:11px;color:var(--gold)}.rules-grid h3{font-size:15px;margin:8px 0}.rules-grid p{font-size:12px;color:#aec5b8;line-height:1.8}footer{max-width:1180px;margin:auto;border-top:1px solid #47655a;padding:25px;display:flex;justify-content:space-between;font-size:13px;color:#c5d8c8}footer small{color:#92b0a2}@media(max-width:900px){.intro-art{display:none}.game-columns{grid-template-columns:1fr}.rules-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){main{padding:0 15px 30px}.site-top{padding:15px}.top-mark{display:none}.top-count{margin-left:auto}.intro{padding:32px 0}.intro-description{font-size:14px}.intro-description br{display:none}.setup,.game,.final{padding:19px 15px}.player-list{grid-template-columns:1fr}.limit-note{display:none}.rules-heading{display:block}.rules-heading p{margin:5px 0}.rule-chips span{font-size:10px}.time-number{font-size:61px}.timer-dial{width:min(100%,270px)}.final-actions{flex-wrap:wrap}.final-actions .button{flex-basis:100%}footer{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* Timer audio controls: always reachable during setup, play, and results. */
.timer-audio-controls{display:flex;align-items:center;gap:7px;margin-left:3px}
.timer-audio-toggle{min-height:35px;white-space:nowrap;border-radius:999px;border:1px solid #75927d;background:#244a3f;color:#eaf2e2;padding:7px 11px;font-size:12px;font-weight:700;transition:background .15s,border-color .15s}
.timer-audio-toggle[aria-pressed="false"]{background:#132f2a;color:#a4b8aa;border-color:#49665a}
.timer-audio-toggle:hover{background:#345c4b}
.timer-audio-toggle:focus-visible{outline:3px solid #f4c978;outline-offset:3px}
@media(max-width:780px){.site-top{flex-wrap:wrap;row-gap:9px}.timer-audio-controls{width:100%;justify-content:flex-end;margin:0}.timer-audio-toggle{flex:1;max-width:170px}.top-mark{margin-left:auto;margin-right:0}}

/* Keep participant editing clear with a keyboard and easy to tap on phones. */
.game-heading > div { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.game-heading > .text-button { flex-shrink: 0; min-height: 44px; }
.player-field:focus-within {
  border-color: #285b4a;
  outline: 3px solid #f4c978;
  outline-offset: 2px;
}
.remove-player {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 8px;
}
.remove-player:hover:not(:disabled) { background: #d9e2d3; color: #244e3e; }
@media(max-width:600px) {
  .player-field input { font-size: 16px; }
}
/* All four result columns remain visible on phones, including long player names. */
@media(max-width:480px) {
  .result-table { min-width:0; table-layout:fixed; font-size:12px; font-variant-numeric:tabular-nums; }
  .result-table th,.result-table td { padding:11px 5px; }
  .result-table th:first-child { width:14%; }
  .result-table th:nth-child(2) { width:30%; }
  .result-table th:nth-child(3),.result-table th:nth-child(4) { width:28%; }
  .result-table th { font-size:11px; overflow-wrap:anywhere; }
  .result-table td:nth-child(2) { overflow-wrap:anywhere; }
  .result-table td:not(:nth-child(2)) { white-space:nowrap; }
}

/* Chronometer identity for the 10-second challenge. Scoped to this game alone.
 * Only presentation changes: timing, hidden-progress and game state stay in timer.js. */
html[data-theme] body.timer-page {
  --chrono-bg:#11262a;
  --chrono-panel:#1b3537;
  --chrono-text:#f7f0df;
  --chrono-muted:#c0d1c7;
  --chrono-border:#536e69;
  --chrono-accent:#e8c17c;
  --chrono-accent-ink:#203531;
  --chrono-control:#2a4a47;
  --chrono-control-border:#78948a;
  --chrono-paper:#193137;
  --chrono-paper-border:#607a72;
  --chrono-dial:#28464b;
  --chrono-dial-track:#435b56;
  --chrono-face:#12252b;
  --chrono-face-ink:#f6e3b2;
  --chrono-face-muted:#c2d0bd;
  --chrono-progress:#e6a76a;
  --chrono-signal:#e77d5d;
  --chrono-row:#243e40;
  --chrono-row-border:#55736c;
  --chrono-heading:#f7e6c3;
  --chrono-highlight:#315248;
  --chrono-result:#1e3738;
  background:radial-gradient(ellipse 65% 380px at 50% 0%,#39574a9c 0%,transparent 100%),var(--chrono-bg);
  color:var(--chrono-text);
}
html[data-theme="light"] body.timer-page {
  --chrono-bg:#efeee4;
  --chrono-panel:#fffdf7;
  --chrono-text:#263b36;
  --chrono-muted:#53685e;
  --chrono-border:#c7c2ac;
  --chrono-accent:#96632e;
  --chrono-accent-ink:#fffaf0;
  --chrono-control:#f2ede0;
  --chrono-control-border:#bdb39b;
  --chrono-paper:#f8f5e9;
  --chrono-paper-border:#c8c0a9;
  --chrono-dial:#e3ddc9;
  --chrono-dial-track:#d9d3bf;
  --chrono-face:#fffdf5;
  --chrono-face-ink:#233d36;
  --chrono-face-muted:#587064;
  --chrono-progress:#bd693f;
  --chrono-signal:#b84f37;
  --chrono-row:#faf7ef;
  --chrono-row-border:#d6cdb9;
  --chrono-heading:#29473d;
  --chrono-highlight:#e9eadb;
  --chrono-result:#f8f5ec;
  background:radial-gradient(ellipse 70% 450px at 50% 0%,#dad8c2 0%,transparent 100%),var(--chrono-bg);
}
html[data-theme] body.timer-page .intro {position:relative;}
html[data-theme] body.timer-page .intro .eyebrow,
html[data-theme] body.timer-page .section-index,
html[data-theme] body.timer-page .rules-grid b {color:var(--chrono-accent);}
html[data-theme] body.timer-page .intro h1 {color:var(--chrono-text);text-wrap:balance;}
html[data-theme] body.timer-page .intro h1 span {color:var(--chrono-accent);}
html[data-theme] body.timer-page .intro-description,
html[data-theme] body.timer-page .rules-grid p,
html[data-theme] body.timer-page .rules-heading p {color:var(--chrono-muted);}
html[data-theme] body.timer-page .intro-description strong {color:var(--chrono-text);}
html[data-theme] body.timer-page .rule-chips span {
  background:var(--chrono-control);
  border:1px solid var(--chrono-control-border);
  color:var(--chrono-text);
}
html[data-theme] body.timer-page .rule-chips b {color:var(--chrono-accent);}

/* A physical stopwatch: crown, brushed metal casing and neutral tick marks. */
html[data-theme] body.timer-page .intro-watch {
  width:192px;height:192px;border:12px solid var(--chrono-accent);
  background:radial-gradient(circle at 36% 26%,#ffffff1b,transparent 57%),var(--chrono-face);
  color:var(--chrono-face-ink);
  box-shadow:inset 0 0 0 5px var(--chrono-dial),0 4px 0 #00000020,0 20px 35px #00000031;
}
html[data-theme] body.timer-page .intro-watch:before {background:var(--chrono-accent);}
html[data-theme] body.timer-page .intro-watch:after {
  content:"";position:absolute;inset:9px;border-radius:50%;pointer-events:none;
  background:repeating-conic-gradient(from -90deg,var(--chrono-accent) 0deg 1deg,transparent 1deg 30deg);
  -webkit-mask:radial-gradient(farthest-side,transparent 77%,#000 79% 85%,transparent 87%);
  mask:radial-gradient(farthest-side,transparent 77%,#000 79% 85%,transparent 87%);
}
html[data-theme] body.timer-page .intro-watch > span {
  color:var(--chrono-face-ink);
  font-variant-numeric:tabular-nums;
  text-shadow:none;
}
html[data-theme] body.timer-page .intro-watch .watch-dot,
html[data-theme] body.timer-page .art-spark {color:var(--chrono-accent);}
html[data-theme] body.timer-page .intro-art:before {
  content:"";position:absolute;width:54px;height:12px;border-radius:5px;
  top:-4px;left:calc(50% + 36px);transform:rotate(43deg);
  background:linear-gradient(#f3dbac,var(--chrono-accent));
  box-shadow:0 2px 4px #0000002a;
}

/* One restrained instrument-panel language across setup, run and results. */
html[data-theme] body.timer-page :is(.setup,.game,.final) {
  background:var(--chrono-panel);
  border:1px solid var(--chrono-border);
  color:var(--chrono-text);
  box-shadow:0 12px 38px #091c1820;
}
html[data-theme] body.timer-page :is(.setup,.game,.final) h2,
html[data-theme] body.timer-page #turn-title {color:var(--chrono-heading);}
html[data-theme] body.timer-page :is(.setup,.game,.final) :is(.section-heading p,.game-heading p,.final-heading p) {
  color:var(--chrono-muted);
}
html[data-theme] body.timer-page .limit-note {
  border-color:var(--chrono-control-border);background:var(--chrono-control);color:var(--chrono-text);
}
html[data-theme] body.timer-page :is(.setup-foot,.player-count,.result-foot) {color:var(--chrono-muted);}
html[data-theme] body.timer-page .text-button {color:var(--chrono-accent);text-decoration:underline;text-underline-offset:3px;}
html[data-theme] body.timer-page .button.primary {
  background:var(--chrono-accent);border:1px solid var(--chrono-accent);
  box-shadow:0 3px 0 #00000035;color:var(--chrono-accent-ink);
}
html[data-theme] body.timer-page .button.primary:hover:not(:disabled) {filter:brightness(1.09);}
html[data-theme] body.timer-page .button.light {
  background:var(--chrono-control);color:var(--chrono-text);border-color:var(--chrono-control-border);
}
html[data-theme] body.timer-page .button.light:hover:not(:disabled) {filter:brightness(1.06);}
html[data-theme] body.timer-page :is(.button.secondary,.final-actions .button.light) {
  background:var(--chrono-control);color:var(--chrono-text);border:1px solid var(--chrono-control-border);
}
html[data-theme] body.timer-page .button.secondary:hover:not(:disabled) {filter:brightness(1.07);}

/* ParticipantEditor retains its shared layout and behavior, but the inputs
 * look like numbered instrument slots rather than generic green cards. */
html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row.ug-participant-row {
  background:var(--chrono-row)!important;
  border-color:var(--chrono-row-border)!important;
  color:var(--chrono-text)!important;
}
html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row.ug-participant-row:focus-within {
  border-color:var(--chrono-accent)!important;box-shadow:0 0 0 2px #c4924940;
}
html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row .ug-participant-number {
  color:var(--chrono-accent)!important;
}
html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row .ug-participant-avatar {
  background:var(--chrono-control)!important;
  border-color:var(--chrono-control-border)!important;
}
html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row input.ug-participant-name {
  background:transparent!important;
  color:var(--chrono-text)!important;
  -webkit-text-fill-color:var(--chrono-text);
  caret-color:var(--chrono-accent);
}
html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row input.ug-participant-name::placeholder {
  color:var(--chrono-muted)!important;
  -webkit-text-fill-color:var(--chrono-muted);
}
html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row .ug-participant-remove {
  background:var(--chrono-control)!important;
  border:1px solid var(--chrono-control-border)!important;
  color:var(--chrono-text)!important;
}
html[data-theme] body.timer-page .ug-dice-style-controls .ug-dice-style-add {
  color:var(--chrono-accent-ink);background:var(--chrono-accent);border-color:var(--chrono-accent);
}
html[data-theme] body.timer-page .ug-dice-style-controls .ug-dice-style-count {color:var(--chrono-muted);}

/* Stopwatch is the visual centerpiece in both modes. Neither the hidden
 * number nor the ring indicates elapsed time after the three-second cutoff. */
html[data-theme] body.timer-page .stopwatch-panel {
  color:var(--chrono-face-ink);
  background:var(--chrono-paper);
  border:1px solid var(--chrono-paper-border);
  box-shadow:inset 0 1px #ffffff16;
}
html[data-theme] body.timer-page .watch-top,
html[data-theme] body.timer-page .watch-top>span,
html[data-theme] body.timer-page #watch-label {
  color:var(--chrono-face-muted);font-variant-numeric:tabular-nums;
}
html[data-theme] body.timer-page .live-dot {background:#84998c;}
html[data-theme] body.timer-page .is-running .live-dot {background:var(--chrono-signal);box-shadow:0 0 0 5px #c9644838;}
html[data-theme] body.timer-page .timer-dial {
  position:relative;
  width:min(100%,310px);
  padding:15px;
  background:conic-gradient(var(--chrono-progress) var(--dial-progress),var(--chrono-dial-track) var(--dial-progress));
  border:7px solid var(--chrono-dial);
  box-shadow:0 10px 24px #00000022,inset 0 0 0 1px #ffffff27;
}
html[data-theme] body.timer-page .timer-dial.is-blind {background:var(--chrono-dial-track);}
html[data-theme] body.timer-page .timer-dial:after {
  content:"";position:absolute;inset:1px;pointer-events:none;border-radius:50%;
  background:repeating-conic-gradient(from -90deg,var(--chrono-accent) 0deg 1.1deg,transparent 1.1deg 30deg);
  -webkit-mask:radial-gradient(farthest-side,transparent 90%,#000 92% 97%,transparent 99%);
  mask:radial-gradient(farthest-side,transparent 90%,#000 92% 97%,transparent 99%);
}
html[data-theme] body.timer-page .timer-face {
  position:relative;
  background:radial-gradient(circle at 35% 23%,#ffffff0c,transparent 58%),var(--chrono-face);
  color:var(--chrono-face-ink);
  box-shadow:inset 0 0 0 2px var(--chrono-paper-border),inset 0 10px 18px #00000012;
}
html[data-theme] body.timer-page #timer-overline,
html[data-theme] body.timer-page .timer-unit {color:var(--chrono-face-muted);}
html[data-theme] body.timer-page .time-number {
  color:var(--chrono-face-ink);
  font-feature-settings:"tnum" 1;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
  font-weight:750;
  letter-spacing:-.07em;
  white-space:nowrap;
}
html[data-theme] body.timer-page .time-number.is-hidden {color:var(--chrono-signal);}
html[data-theme] body.timer-page #timer-hint,
html[data-theme] body.timer-page .keyboard-note {color:var(--chrono-face-muted);}
html[data-theme] body.timer-page .is-running .timer-action {
  color:#fff;background:var(--chrono-signal);border-color:var(--chrono-signal);
}
html[data-theme] body.timer-page .round-result {
  background:var(--chrono-result);border-color:var(--chrono-paper-border);
}
html[data-theme] body.timer-page .round-result :is(.result-message,#result-time,#result-difference) {
  color:var(--chrono-text);
}
html[data-theme="light"] body.timer-page .round-result :is(.result-message,#result-time,#result-difference) {
  color:var(--chrono-face-ink);
}
html[data-theme] body.timer-page .leaderboard-panel {
  background:var(--chrono-paper);border:1px solid var(--chrono-paper-border);color:var(--chrono-face-ink);
}
html[data-theme] body.timer-page .side-title {border-color:var(--chrono-paper-border);}
html[data-theme] body.timer-page .side-title :is(h3,span) {color:var(--chrono-face-ink);}
html[data-theme] body.timer-page .progress-item {
  background:var(--chrono-row);border-color:var(--chrono-row-border);color:var(--chrono-text);
}
html[data-theme] body.timer-page .progress-item.is-current {
  background:var(--chrono-highlight);border-color:var(--chrono-accent);
}
html[data-theme] body.timer-page .progress-number {
  background:var(--chrono-control);color:var(--chrono-text);
}
html[data-theme] body.timer-page .progress-score {color:var(--chrono-muted);}
html[data-theme] body.timer-page .progress-score.is-done {color:var(--chrono-accent);}
html[data-theme] body.timer-page .leaderboard-note {border-color:var(--chrono-paper-border);}
html[data-theme] body.timer-page .leaderboard-note b {color:var(--chrono-accent);}
html[data-theme] body.timer-page .leaderboard-note p {color:var(--chrono-face-muted);}
html[data-theme] body.timer-page .winner-banner {
  background:var(--chrono-highlight);border-color:var(--chrono-control-border);
}
html[data-theme] body.timer-page .loser-banner {
  background:var(--chrono-row);border-color:var(--chrono-row-border);
}
html[data-theme] body.timer-page :is(.winner-banner,.loser-banner) :is(small,strong,p) {color:var(--chrono-text);}
html[data-theme] body.timer-page .result-table-wrap {border-color:var(--chrono-border);}
html[data-theme] body.timer-page .result-table {color:var(--chrono-text);}
html[data-theme] body.timer-page .result-table thead {background:var(--chrono-highlight);color:var(--chrono-text);}
html[data-theme] body.timer-page .result-table :is(th,td) {border-color:var(--chrono-border);}
html[data-theme] body.timer-page .result-table .is-best {color:var(--chrono-accent);}
html[data-theme] body.timer-page .result-table .is-last {color:var(--chrono-signal);}
html[data-theme] body.timer-page .rules-heading,
html[data-theme] body.timer-page footer {border-color:var(--chrono-border);}
html[data-theme] body.timer-page .rules-heading h2,
html[data-theme] body.timer-page .rules-grid h3 {color:var(--chrono-text);}
html[data-theme] body.timer-page footer {color:var(--chrono-muted);}
html[data-theme] body.timer-page footer small {color:var(--chrono-muted);}

/* Keep common header structure, order and interactions untouched. */
html[data-theme] body.timer-page .timer-audio-toggle {
  background:var(--chrono-control);border-color:var(--chrono-control-border);
  color:var(--chrono-text);
}
html[data-theme] body.timer-page .timer-audio-toggle[aria-pressed="false"] {opacity:.73;}
html[data-theme] body.timer-page :is(button,a,input):focus-visible {
  outline:3px solid var(--chrono-accent);outline-offset:3px;
}
@media(max-width:600px){
  html[data-theme] body.timer-page .intro {padding:34px 0 29px;}
  html[data-theme] body.timer-page .timer-dial {width:min(100%,285px);padding:11px;}
  html[data-theme] body.timer-page .stopwatch-panel {padding:16px 12px;}
  html[data-theme] body.timer-page .time-number {font-size:clamp(45px,13.5vw,66px);}
  html[data-theme] body.timer-page .setup,
  html[data-theme] body.timer-page .game,
  html[data-theme] body.timer-page .final {border-radius:16px;}
}
@media(prefers-reduced-motion:reduce){
  html[data-theme] body.timer-page * {scroll-behavior:auto;}
}

/* Final cascade safeguards: the shared site-theme stylesheet is loaded after
 * timer.css; only these timer-local surfaces need to beat its generic colors. */
html[data-theme] body.timer-page {
  background:radial-gradient(ellipse 65% 380px at 50% 0%,#39574a9c 0%,transparent 100%),var(--chrono-bg)!important;
  color:var(--chrono-text)!important;
}
html[data-theme="light"] body.timer-page {
  background:radial-gradient(ellipse 70% 450px at 50% 0%,#dad8c2 0%,transparent 100%),var(--chrono-bg)!important;
}
html[data-theme] body.timer-page :is(.setup,.game,.final) {
  background:var(--chrono-panel)!important;
  color:var(--chrono-text)!important;
  border-color:var(--chrono-border)!important;
}
html[data-theme] body.timer-page :is(.setup,.game,.final) h2,
html[data-theme] body.timer-page #turn-title {color:var(--chrono-heading)!important;}
html[data-theme] body.timer-page .intro-watch > span {color:var(--chrono-face-ink)!important;}
html[data-theme] body.timer-page .intro-description,
html[data-theme] body.timer-page .intro-description strong,
html[data-theme] body.timer-page :is(.setup,.game,.final) :is(.section-heading p,.game-heading p,.final-heading p) {
  color:var(--chrono-muted)!important;
}
html[data-theme] body.timer-page .intro-description strong {color:var(--chrono-text)!important;}
html[data-theme] body.timer-page #watch-label,
html[data-theme] body.timer-page #timer-overline,
html[data-theme] body.timer-page .timer-unit,
html[data-theme] body.timer-page #timer-hint,
html[data-theme] body.timer-page .keyboard-note {
  color:var(--chrono-face-muted)!important;
}
html[data-theme] body.timer-page #progress-label {
  color:var(--chrono-face-muted)!important;
}
html[data-theme] body.timer-page .progress-score {color:var(--chrono-muted)!important;}
html[data-theme] body.timer-page .progress-score.is-done {color:var(--chrono-accent)!important;}
html[data-theme] body.timer-page .watch-top>span {color:var(--chrono-face-muted)!important;}

/* ===========================================================
   10-second SHOWTIME — small stage lights, prominent stopwatch
   and tournament-style player slots. Visuals only, no timer JS.
   =========================================================== */
html[data-theme] body.timer-page {
  --show-ink:#f8f4e7;
  --show-muted:#c5d8cf;
  --show-surface:#1b3439;
  --show-surface-2:#23434a;
  --show-line:#507977;
  --show-gold:#ffcd6c;
  --show-gold-deep:#d68a3a;
  --show-coral:#ff805f;
  --show-lime:#d4ed8e;
  --show-dial:#132830;
  --show-shadow:#061a2059;
  background:
    radial-gradient(ellipse 440px 260px at 84% 105px,#ee945631,transparent 78%),
    radial-gradient(ellipse 510px 315px at 10% 180px,#31a9a234,transparent 78%),
    linear-gradient(160deg,#173a3d 0%,#10272d 62%,#12262e 100%) !important;
  color:var(--show-ink) !important;
}
html[data-theme="light"] body.timer-page {
  --show-ink:#244039;
  --show-muted:#576d63;
  --show-surface:#fffdf6;
  --show-surface-2:#f4eacf;
  --show-line:#cebd98;
  --show-gold:#c58023;
  --show-gold-deep:#99581c;
  --show-coral:#ca5838;
  --show-lime:#5f8135;
  --show-dial:#fffaf0;
  --show-shadow:#78542f27;
  background:
    radial-gradient(ellipse 470px 280px at 86% 115px,#e8ac6752,transparent 77%),
    radial-gradient(ellipse 480px 300px at 8% 180px,#a3d4b548,transparent 74%),
    linear-gradient(160deg,#fffaf0 0%,#f7eeda 58%,#efe9db 100%) !important;
}

/* The characteristic instrument is the visual hero, rather than generic UI. */
html[data-theme] body.timer-page .intro {position:relative;isolation:isolate;padding-block:56px 48px;}
html[data-theme] body.timer-page .intro::before {
  content:"";position:absolute;inset:16px 3% 20px;border-radius:40px;
  background:
    radial-gradient(circle at 92% 18%,#ffdb8240 0 4px,transparent 5px),
    radial-gradient(circle at 85% 72%,#fc936b6e 0 3px,transparent 4px),
    radial-gradient(circle at 4% 20%,#dfc38a73 0 3px,transparent 4px),
    linear-gradient(100deg,transparent 0 52%,#f4c57f08 70%,transparent 95%);
  pointer-events:none;z-index:-1;
}
html[data-theme] body.timer-page .intro-copy{position:relative;z-index:1;}
html[data-theme] body.timer-page .intro .eyebrow {
  display:inline-flex;align-items:center;gap:9px;color:var(--show-gold) !important;
  font-size:12px;letter-spacing:.025em;
}
html[data-theme] body.timer-page .intro .eyebrow::before {
  content:"";width:8px;height:8px;border-radius:100%;background:var(--show-coral);
  box-shadow:0 0 0 4px #ff805f24;
}
html[data-theme] body.timer-page .intro h1{
  max-width:840px;color:var(--show-ink)!important;
  font-weight:950;letter-spacing:-.075em;line-height:1.06;
  text-shadow:0 6px 24px var(--show-shadow);
}
html[data-theme] body.timer-page .intro h1 span {
  color:var(--show-gold)!important;
  text-shadow:0 5px 24px #eaa44a40;
}
html[data-theme] body.timer-page .intro-description,
html[data-theme] body.timer-page .rules-grid p {color:var(--show-muted)!important;}
html[data-theme] body.timer-page .intro-description strong {color:var(--show-gold)!important;}
html[data-theme] body.timer-page .rule-chips span {
  border-color:var(--show-line)!important;
  background:linear-gradient(135deg,var(--show-surface),#f2bb6122)!important;
  color:var(--show-ink)!important;box-shadow:0 5px 14px var(--show-shadow);
  padding:8px 13px;font-weight:650;
}
html[data-theme] body.timer-page .rule-chips span b{color:var(--show-coral)!important;}
html[data-theme] body.timer-page .intro-art{width:270px;height:255px;filter:drop-shadow(0 18px 18px var(--show-shadow));}
html[data-theme] body.timer-page .intro-art::after {
  content:"";position:absolute;width:210px;height:210px;border-radius:50%;
  background:radial-gradient(circle,#f2bc6933 0%,transparent 72%);z-index:-1;
}
html[data-theme] body.timer-page .intro-watch {
  width:205px;height:205px;border:13px solid #efb75c;
  background:radial-gradient(circle at 28% 20%,#ffffff23,transparent 44%),var(--show-dial);
  color:var(--show-ink);
  box-shadow:inset 0 0 0 5px #d0a75758,inset 0 0 28px #00000020,
             0 0 0 5px #ffda8a34,0 18px 32px var(--show-shadow);
}
html[data-theme="light"] body.timer-page .intro-watch{
  border-color:#c88a35;box-shadow:inset 0 0 0 5px #e6c18eaa,
    inset 0 0 25px #c47e241c,0 0 0 5px #f8e1b8,0 18px 32px var(--show-shadow);
}
html[data-theme] body.timer-page .intro-watch::before{
  background:linear-gradient(180deg,#ffe6a0,#bf7727);
  box-shadow:0 2px 5px var(--show-shadow);
}
html[data-theme] body.timer-page .intro-watch>span{
  color:var(--show-ink)!important;font-variant-numeric:tabular-nums;
  font-weight:900;text-shadow:0 4px 13px var(--show-shadow);
}
html[data-theme] body.timer-page .watch-dot,
html[data-theme] body.timer-page .art-spark{color:var(--show-coral)!important;}
html[data-theme] body.timer-page .art-spark{
  text-shadow:0 0 18px #f4bc7e88;font-size:34px;
}

/* Sponsor-free game show panels, with a narrow stage-light strip. */
html[data-theme] body.timer-page :is(.setup,.game,.final){
  position:relative;overflow:hidden;
  background:linear-gradient(145deg,var(--show-surface),var(--show-surface-2))!important;
  color:var(--show-ink)!important;border-color:var(--show-line)!important;
  box-shadow:0 20px 45px var(--show-shadow);
}
html[data-theme] body.timer-page :is(.setup,.game,.final)::before{
  content:"";position:absolute;top:0;left:0;right:0;height:5px;pointer-events:none;
  background:linear-gradient(90deg,var(--show-coral),var(--show-gold) 49%,var(--show-lime));
}
html[data-theme] body.timer-page :is(.setup,.game,.final) h2,
html[data-theme] body.timer-page :is(#setup-title,#turn-title,#final-title){
  color:var(--show-ink)!important;
}
html[data-theme] body.timer-page :is(.section-heading,.game-heading,.final-heading) p,
html[data-theme] body.timer-page :is(.setup-foot,.result-foot,.player-count){
  color:var(--show-muted)!important;
}
html[data-theme] body.timer-page .section-index{color:var(--show-gold)!important;}
html[data-theme] body.timer-page .limit-note{
  background:linear-gradient(135deg,#f6d08230,transparent),var(--show-surface);
  border:1px solid var(--show-line);color:var(--show-ink)!important;
  box-shadow:0 4px 15px var(--show-shadow);
}

/* The roster is a grid of show-contestant entry tickets, not plain form rows. */
html[data-theme] body.timer-page .ug-dice-style-roster.ug-participant-roster{
  gap:13px;margin-top:24px;margin-bottom:19px;
}
html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row.ug-participant-row{
  --entry-accent:#ffc375;
  position:relative;overflow:hidden;isolation:isolate;
  padding:10px 10px 10px 9px;min-height:68px;gap:9px;border-radius:15px;
  border:1px solid var(--show-line)!important;
  border-left:5px solid var(--entry-accent)!important;
  background:linear-gradient(118deg,#ffffff0c 0 42%,#ffc37512 83%),
             var(--show-surface)!important;
  color:var(--show-ink)!important;
  box-shadow:0 7px 0 #00000012,0 13px 20px var(--show-shadow);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row:nth-child(3n+2){--entry-accent:#79d5c9;}
html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row:nth-child(3n){--entry-accent:#ff977c;}
html[data-theme="light"] body.timer-page .ug-dice-style-roster .ug-dice-style-row:nth-child(3n+2){--entry-accent:#268e83;}
html[data-theme="light"] body.timer-page .ug-dice-style-roster .ug-dice-style-row:nth-child(3n){--entry-accent:#c65b41;}
html[data-theme="light"] body.timer-page .ug-dice-style-roster .ug-dice-style-row:nth-child(3n+1){--entry-accent:#b97a25;}
html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row.ug-participant-row::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(120deg,transparent 55%,var(--entry-accent) 56%,transparent 57%),
             radial-gradient(circle at 94% 10%,var(--entry-accent),transparent 28%);
  opacity:.12;
}
html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row:hover,
html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row:focus-within{
  transform:translateY(-2px);border-color:var(--entry-accent)!important;
  box-shadow:0 6px 0 #00000014,0 17px 27px var(--show-shadow);
}
html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row .ug-participant-number{
  flex:0 0 26px;min-width:26px;width:26px;height:26px;
  display:grid;place-items:center;border-radius:8px;
  background:var(--entry-accent)!important;color:#172d30!important;
  font-size:12px;font-weight:900;box-shadow:0 3px 6px #00000020;
}
html[data-theme="light"] body.timer-page .ug-dice-style-roster .ug-dice-style-row .ug-participant-number{color:white!important;}
html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row .ug-participant-avatar{
  background:radial-gradient(circle at 26% 22%,#ffffff42,transparent 48%),
             linear-gradient(135deg,#5e7879,#2a5358)!important;
  border:1px solid var(--entry-accent)!important;
  border-radius:12px!important;box-shadow:0 4px 9px #00000026,inset 0 1px #ffffff40;
  transition:transform .14s ease;
}
html[data-theme="light"] body.timer-page .ug-dice-style-roster .ug-dice-style-row .ug-participant-avatar {
  background:radial-gradient(circle at 26% 22%,#fffefa,transparent 48%),
             linear-gradient(135deg,#fff0cd,#e5c58c)!important;
}
html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row .ug-participant-avatar:hover{transform:scale(1.05);}
html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row input.ug-participant-name{
  color:var(--show-ink)!important;-webkit-text-fill-color:var(--show-ink);
  font-weight:800;min-width:0;caret-color:var(--show-coral);
}
html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row input.ug-participant-name::placeholder{
  color:var(--show-muted)!important;-webkit-text-fill-color:var(--show-muted);
  opacity:1;
}
html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row .ug-participant-remove{
  color:var(--show-ink)!important;
  border:1px solid var(--show-line)!important;
  background:#ffffff10!important;border-radius:11px!important;
}
html[data-theme="light"] body.timer-page .ug-dice-style-roster .ug-dice-style-row .ug-participant-remove{background:#f3e7d2!important;}
html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row .ug-participant-remove:hover:not(:disabled){
  background:var(--show-coral)!important;color:white!important;border-color:var(--show-coral)!important;
}
html[data-theme] body.timer-page .ug-dice-style-controls .ug-dice-style-add{
  background:linear-gradient(180deg,#ffe29b,#eeb04d)!important;
  color:#263729!important;border:1px solid #c17f27!important;
  box-shadow:0 4px 0 #936425,0 9px 17px var(--show-shadow);
  font-weight:850;min-height:49px;border-radius:12px;
}
html[data-theme="light"] body.timer-page .ug-dice-style-controls .ug-dice-style-add{
  background:linear-gradient(180deg,#ffe3a6,#eeb763)!important;color:#503412!important;
}
html[data-theme] body.timer-page .ug-dice-style-controls .ug-dice-style-add:hover:not(:disabled){filter:brightness(1.07);transform:translateY(-1px);}
html[data-theme] body.timer-page .ug-dice-style-controls .ug-dice-style-count{color:var(--show-muted)!important;}

/* Physical arcade buttons (pressed depth is visible; reduced motion respected). */
html[data-theme] body.timer-page .button{
  border-radius:13px;min-height:49px;font-weight:900;
  transition:transform .14s ease,filter .14s ease,box-shadow .14s ease;
}
html[data-theme] body.timer-page .button.primary{
  background:linear-gradient(180deg,#ffe69f 0%,#e9a93b 100%)!important;
  color:#213528!important;border:1px solid #bb7928!important;
  box-shadow:inset 0 2px #fff8ce,0 5px 0 #966322,0 13px 20px var(--show-shadow)!important;
}
html[data-theme="light"] body.timer-page .button.primary{
  background:linear-gradient(180deg,#f8cc77,#cc8529)!important;
  color:#33250f!important;
}
html[data-theme] body.timer-page .button.primary:hover:not(:disabled){filter:brightness(1.06);}
html[data-theme] body.timer-page .button:not(:disabled):active {
  transform:translateY(3px);box-shadow:inset 0 1px #ffffff30,0 2px 0 #00000040!important;
}
html[data-theme] body.timer-page .button.light,
html[data-theme] body.timer-page .button.secondary,
html[data-theme] body.timer-page .final-actions .button.light{
  background:linear-gradient(180deg,#ffffff1c,#ffffff06),var(--show-surface)!important;
  color:var(--show-ink)!important;border:1px solid var(--show-line)!important;
  box-shadow:0 4px 0 #0000001c;
}
html[data-theme="light"] body.timer-page :is(.button.light,.button.secondary,.final-actions .button.light){
  background:linear-gradient(180deg,#fffcf5,#f2e5ca)!important;
}
html[data-theme] body.timer-page .game-heading .text-button{color:var(--show-gold)!important;}

/* The countdown stage retains neutral/hidden timing cues after 3 seconds. */
html[data-theme] body.timer-page .stopwatch-panel,
html[data-theme] body.timer-page .leaderboard-panel{
  background:linear-gradient(145deg,var(--show-surface),var(--show-dial))!important;
  border:1px solid var(--show-line)!important;
  box-shadow:inset 0 2px #ffffff12,0 14px 28px var(--show-shadow);
}
html[data-theme="light"] body.timer-page .stopwatch-panel,
html[data-theme="light"] body.timer-page .leaderboard-panel{
  background:linear-gradient(145deg,#fffefa,#fbf1dd)!important;
}
html[data-theme] body.timer-page .stopwatch-panel{position:relative;overflow:hidden;}
html[data-theme] body.timer-page .stopwatch-panel::before{
  content:"";position:absolute;top:0;left:20%;right:20%;height:3px;
  background:linear-gradient(90deg,transparent,var(--show-gold),transparent);
}
html[data-theme] body.timer-page .timer-dial{
  border:8px solid var(--show-gold-deep);padding:13px;
  box-shadow:inset 0 0 0 2px #fff7d455,0 13px 25px var(--show-shadow),
             0 0 0 5px #e5af4733;
}
html[data-theme] body.timer-page .timer-face{
  background:radial-gradient(circle at 36% 22%,#ffffff15,transparent 50%),var(--show-dial)!important;
  box-shadow:inset 0 0 0 2px var(--show-line),inset 0 9px 17px #00000016;
}
html[data-theme] body.timer-page .time-number{color:var(--show-ink)!important;text-shadow:0 4px 12px var(--show-shadow);}
html[data-theme] body.timer-page .time-number.is-hidden{color:var(--show-coral)!important;}
html[data-theme] body.timer-page :is(.watch-top>span,#watch-label,#timer-overline,.timer-unit,#timer-hint,.keyboard-note,#progress-label) {
  color:var(--show-muted)!important;
}
html[data-theme] body.timer-page .live-dot{background:var(--show-lime);}
html[data-theme] body.timer-page .is-running .live-dot{
  background:var(--show-coral);box-shadow:0 0 0 5px #ff805f33;
}
html[data-theme] body.timer-page .is-running .timer-action{
  background:linear-gradient(180deg,#ff9879,#e4563c)!important;
  border-color:#bb4536!important;color:white!important;
  box-shadow:inset 0 2px #ffd1b5,0 5px 0 #913b32,0 13px 20px var(--show-shadow)!important;
}
html[data-theme] body.timer-page .round-result{
  background:linear-gradient(135deg,#ffc06c18,#ffffff08),var(--show-surface)!important;
  border:1px solid var(--show-gold)!important;box-shadow:0 12px 24px var(--show-shadow);
}
html[data-theme="light"] body.timer-page .round-result{
  background:linear-gradient(135deg,#ffde9b87,#fff6e7)!important;
}
html[data-theme] body.timer-page :is(.round-result .result-message,#result-time){color:var(--show-ink)!important;}
html[data-theme] body.timer-page #result-difference{color:var(--show-muted)!important;}
html[data-theme] body.timer-page .round-result .result-message{font-weight:900;}
html[data-theme] body.timer-page .side-title{border-color:var(--show-line);}
html[data-theme] body.timer-page .side-title h3{color:var(--show-ink)!important;}
html[data-theme] body.timer-page .progress-item{
  background:linear-gradient(135deg,#ffffff0c,#e6b75a12),var(--show-surface)!important;
  border:1px solid var(--show-line)!important;box-shadow:0 4px 11px var(--show-shadow);
}
html[data-theme] body.timer-page .progress-item.is-current {
  border-color:var(--show-gold)!important;box-shadow:inset 4px 0 var(--show-gold),0 5px 16px var(--show-shadow);
}
html[data-theme] body.timer-page .progress-name{color:var(--show-ink)!important;}
html[data-theme] body.timer-page .progress-number{
  background:var(--show-gold)!important;color:#21332d!important;font-weight:900;
}
html[data-theme="light"] body.timer-page .progress-number{color:white!important;background:var(--show-gold-deep)!important;}
html[data-theme] body.timer-page .progress-score{color:var(--show-muted)!important;}
html[data-theme] body.timer-page .progress-score.is-done{color:var(--show-lime)!important;}
html[data-theme] body.timer-page .leaderboard-note b{color:var(--show-gold)!important;}
html[data-theme] body.timer-page .leaderboard-note p{color:var(--show-muted)!important;}

/* Awards rather than generic alert cards. */
html[data-theme] body.timer-page .winner-banner,
html[data-theme] body.timer-page .loser-banner{
  position:relative;overflow:hidden;
  box-shadow:0 11px 23px var(--show-shadow);
}
html[data-theme] body.timer-page .winner-banner{
  background:radial-gradient(circle at 95% 10%,#ffcf7650,transparent 35%),
             linear-gradient(130deg,#c5a35a35,transparent),var(--show-surface)!important;
  border:2px solid var(--show-gold)!important;
}
html[data-theme] body.timer-page .loser-banner{
  background:radial-gradient(circle at 95% 10%,#ff805f35,transparent 38%),
             linear-gradient(130deg,#ff805f21,transparent),var(--show-surface)!important;
  border:1px solid var(--show-coral)!important;
}
html[data-theme] body.timer-page :is(.winner-banner,.loser-banner)::after {
  content:"✦";position:absolute;right:16px;top:2px;
  font-size:62px;color:var(--show-gold);opacity:.17;pointer-events:none;
}
html[data-theme] body.timer-page .loser-banner::after{content:"☕";font-size:56px;}
html[data-theme] body.timer-page :is(.winner-banner,.loser-banner) :is(strong,p){
  color:var(--show-ink)!important;
}
html[data-theme] body.timer-page .winner-banner small{color:var(--show-gold)!important;font-weight:900;}
html[data-theme] body.timer-page .loser-banner small{color:var(--show-coral)!important;font-weight:900;}
html[data-theme] body.timer-page .result-table-wrap{border-color:var(--show-line)!important;box-shadow:0 8px 22px var(--show-shadow);}
html[data-theme] body.timer-page .result-table{color:var(--show-ink)!important;}
html[data-theme] body.timer-page .result-table thead {
  background:linear-gradient(95deg,#f7bf6038,#f1846330),var(--show-surface)!important;
  color:var(--show-ink)!important;
}
html[data-theme] body.timer-page .result-table :is(th,td){border-color:var(--show-line)!important;}
html[data-theme] body.timer-page .result-table .is-best{color:var(--show-gold)!important;font-weight:900;}
html[data-theme] body.timer-page .result-table .is-last{color:var(--show-coral)!important;font-weight:850;}
html[data-theme] body.timer-page .rules-heading{border-color:var(--show-line);}
html[data-theme] body.timer-page .rules-grid b{color:var(--show-gold)!important;}
html[data-theme] body.timer-page .rules :is(h2,h3){color:var(--show-ink)!important;}
html[data-theme] body.timer-page footer{border-color:var(--show-line);color:var(--show-muted)!important;}
html[data-theme] body.timer-page footer small{color:var(--show-muted)!important;}

/* Small screens keep the signature stopwatch visible, but prioritize form. */
@media(max-width:900px){
  html[data-theme] body.timer-page .intro{flex-direction:column;align-items:flex-start;gap:6px;}
  html[data-theme] body.timer-page .intro-art{
    display:grid;width:170px;height:165px;margin:-4px auto 0;align-self:center;
  }
  html[data-theme] body.timer-page .intro-watch{width:145px;height:145px;border-width:10px;}
  html[data-theme] body.timer-page .intro-watch>span{font-size:33px;}
  html[data-theme] body.timer-page .intro-watch::before{width:31px;height:15px;top:-25px;}
  html[data-theme] body.timer-page .intro-art::after{width:165px;height:165px;}
  html[data-theme] body.timer-page .intro-art::before{display:none;}
}
@media(max-width:600px){
  html[data-theme] body.timer-page .intro{padding-block:31px 25px;}
  html[data-theme] body.timer-page .intro h1{font-size:clamp(42px,12vw,60px);}
  html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row.ug-participant-row{
    gap:7px;padding:8px 7px;min-height:62px;
  }
  html[data-theme] body.timer-page :is(.setup,.game,.final){padding-inline:16px;}
  html[data-theme] body.timer-page .timer-dial{width:min(100%,280px);}
}
@media(max-width:350px){
  html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row .ug-participant-number {
    flex-basis:23px;width:23px;min-width:23px;
  }
}
@media(prefers-reduced-motion:reduce){
  html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row,
  html[data-theme] body.timer-page .ug-dice-style-roster .ug-dice-style-row .ug-participant-avatar,
  html[data-theme] body.timer-page .button{
    transition:none!important;transform:none!important;
  }
}

/* Final accents: make adding a contestant feel like entering the challenge. */
html[data-theme] body.timer-page #add-player.button {
  background:linear-gradient(180deg,#b8f0d5,#75cbb6)!important;
  color:#183d35!important;border:1px solid #3f9e89!important;
  box-shadow:inset 0 1px #e1fff0,0 4px 0 #2f7568,0 10px 18px var(--show-shadow)!important;
  padding-inline:19px;
}
html[data-theme="light"] body.timer-page #add-player.button {
  background:linear-gradient(180deg,#fff1cd,#f8cf84)!important;
  color:#59401b!important;border-color:#c28b39!important;
  box-shadow:inset 0 1px #fffdf1,0 4px 0 #b58b4a,0 10px 18px var(--show-shadow)!important;
}
html[data-theme] body.timer-page #add-player.button:hover:not(:disabled) {
  filter:brightness(1.04);transform:translateY(-1px);
}
html[lang="en"][data-theme] body.timer-page .intro h1 span {margin-inline-start:.1em;}
html[lang="en"][data-theme] body.timer-page .intro-description strong::after {
  content:" ";white-space:pre;
}
@media(prefers-reduced-motion:reduce){
  html[data-theme] body.timer-page #add-player.button:hover:not(:disabled){transform:none;}
}

/* Typography polish: prevent the show headline from crowding on narrow phones. */
html[data-theme] body.timer-page .intro h1{
  letter-spacing:-.045em;line-height:1.12;
}
@media(max-width:600px){
  html[data-theme] body.timer-page .intro h1{
    font-size:clamp(38px,11vw,54px);
    letter-spacing:-.035em;
    line-height:1.16;
  }
  html[data-theme] body.timer-page .intro-description br{
    display:inline!important;
  }
}
