.numbers-room{--number-ink:#173f53;--number-muted:#527386;--number-line:#b2d1dc;--number-wash:#eef7fa;width:min(100%,1120px);margin-inline:auto;color:var(--number-ink);text-align:left}
.numbers-room .session-banner{text-align:left;margin:0 0 16px}
.numbers-scores{display:flex;flex-wrap:wrap;list-style:none;gap:8px;padding:0;margin:0 0 22px}
.numbers-scores li{display:flex;gap:16px;justify-content:space-between;align-items:center;border:1px solid var(--number-line);background:#fff;padding:7px 11px;border-radius:5px;font-size:.82rem;min-width:100px}
.numbers-scores .is-current{border:2px solid #317f9d;padding:6px 10px;background:#e3f2f7}
.numbers-scores strong{font-variant-numeric:tabular-nums}
.number-stage{
  padding:clamp(1rem,3.2vw,2.2rem);margin:18px 0;border-radius:14px;
  background:radial-gradient(ellipse at 23% 0%,#354d58,transparent 75%),#172c36;
  box-shadow:inset 0 1px 0 #ffffff26,0 12px 30px #19313d1c;
  color:#f3fbfc;
}
.number-stage-head{display:flex;justify-content:space-between;align-items:center;gap:24px}
.number-stage-head>div:first-child{display:grid;gap:8px;min-width:0}
.number-stage-head>div:first-child>span{font-size:.92rem;color:#c2dce2}
.number-stage-head>div:first-child>strong{display:flex;align-items:center;gap:12px;font-size:clamp(2.2rem,7vw,4.8rem);font-weight:800;line-height:1.12;font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.number-range-dash{font-size:.7em;color:#a9cdd7}
.number-count{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right;max-width:150px}
.number-count strong{font-size:clamp(2.1rem,4vw,3.5rem);line-height:1.1;font-weight:750;font-variant-numeric:tabular-nums}
.number-count>span{font-size:.85rem;line-height:1.4;color:#c2dce2}
.number-line{padding:28px 7px 0}
.number-line-rail{height:14px;background:#43606b;border-radius:8px;position:relative;box-shadow:inset 0 2px 5px #091f28a8}
.number-survivor{position:absolute;top:0;bottom:0;background:linear-gradient(#d5f8e6,#81cbb5);border-radius:6px;min-width:3px}
.number-endpoint{position:absolute;top:50%;transform:translate(-50%,-50%);width:10px;height:22px;border-radius:3px;background:#ffe2a8;border:2px solid #864b1b;box-shadow:0 0 9px #fbd7975e}
.number-ticks{position:relative;height:20px;font-size:.8rem;color:#c2dce2;margin-top:12px;font-variant-numeric:tabular-nums}
.number-ticks>span{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap}
.number-ticks>span:first-child{transform:none}
.number-ticks>span:last-child{transform:translateX(-100%)}
@media(prefers-reduced-motion:no-preference){
  [data-number-moving] .number-survivor{animation:numbers-range-narrow .3s ease-out}
  [data-number-moving] .number-endpoint{animation:numbers-marker-travel .3s ease-out}
}
@keyframes numbers-range-narrow{from{left:var(--from-left);width:var(--from-width)}}
@keyframes numbers-marker-travel{from{left:var(--from-left)}}
.numbers-turn{display:flex;gap:16px;align-items:baseline;margin:20px 0 14px;font-size:1rem}
.numbers-turn strong{font-size:1.4rem}
.numbers-latest{display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:6px 16px;background:var(--number-wash);border-left:4px solid #65a2b8;padding:12px 16px;margin-bottom:18px}
.numbers-latest>span{font-size:.84rem;color:var(--number-muted)}
.numbers-latest>strong{font-size:1rem}
.numbers-latest p{grid-column:2;margin:0;font-size:.92rem;line-height:1.5}
.numbers-first-clue{font-size:.94rem;color:var(--number-muted);line-height:1.65;margin:14px 0 20px}
.numbers-room [data-table-form="guess"]{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;margin:18px 0}
.numbers-room [data-table-form="guess"] label{display:grid;gap:8px;min-width:0;font-weight:650;font-size:.95rem}
.numbers-room [name="guess"]{width:100%;min-width:0;min-height:52px;padding:10px 14px;font:inherit;font-size:1.4rem;font-variant-numeric:tabular-nums;border:1px solid #7aa9bc;border-radius:6px;color:var(--number-ink);background:#fff}
.numbers-room [data-table-form="guess"]>.button{grid-column:2;grid-row:1;min-height:52px;padding-inline:28px}
.numbers-room [data-numbers-error]{grid-column:1/-1;color:#9c3944;font-size:.9rem;line-height:1.5;margin:0}
.numbers-room [data-numbers-error]:empty{display:none}
.numbers-room input:focus-visible{outline:3px solid #307e9c;outline-offset:3px}
.numbers-next{padding:14px 18px;background:var(--number-wash);font-size:1rem;line-height:1.6;margin:20px 0}
.numbers-next strong{margin-left:10px}
.numbers-current-history,.numbers-archive{border-top:1px solid var(--number-line);padding-top:20px;margin:28px 0}
.numbers-current-history h3,.numbers-archive h3{font-size:1.05rem;margin:0 0 16px}
.numbers-attempts{list-style:none;margin:12px 0 0;padding:0}
.numbers-attempt{display:grid;grid-template-columns:26px 110px 60px minmax(0,1fr) 200px;align-items:baseline;gap:12px;padding:12px 0;border-top:1px solid #d2e2e8;font-size:.9rem;line-height:1.5;font-variant-numeric:tabular-nums}
.numbers-attempt-index{color:var(--number-muted);font-size:.8rem}
.numbers-attempt-range{color:var(--number-muted);font-size:.82rem;overflow-wrap:anywhere}
.numbers-attempt-clue{overflow-wrap:anywhere}
.numbers-round-record{border:1px solid var(--number-line);border-radius:6px;padding:16px 20px;margin:14px 0;background:#fff}
.numbers-round-record>summary{cursor:pointer;font-weight:750;line-height:1.6;overflow-wrap:anywhere}
.numbers-round-facts{display:flex;gap:20px 40px;flex-wrap:wrap;margin:18px 0}
.numbers-round-facts>div{display:grid;gap:5px}
.numbers-round-facts dt{font-size:.8rem;color:var(--number-muted)}
.numbers-round-facts dd{margin:0;font-size:1rem;font-weight:650;font-variant-numeric:tabular-nums}
.numbers-attempt-count{font-size:.85rem;color:var(--number-muted);margin:12px 0}
.numbers-scoreboard{max-width:38rem;margin:24px 0}
.game-shell .numbers-scoreboard .scores{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem 1rem;columns:auto;
}
.game-shell .numbers-room .numbers-latest p{text-align:left;margin:0}
.game-shell .numbers-room .numbers-first-clue{text-align:left}
@media(max-width:699px){
  .numbers-scores{gap:6px;margin-bottom:18px}
  .numbers-scores li{min-width:88px;font-size:.75rem;padding:6px 9px;gap:10px}
  .numbers-scores .is-current{padding:5px 8px}
  .number-stage{margin:14px 0}
  .number-stage-head{gap:14px}
  .number-stage-head>div:first-child>strong{gap:6px}
  .number-stage-head>div:first-child>span{font-size:.8rem}
  .number-count{max-width:82px}
  .number-count>span{font-size:.74rem}
  .number-line{padding-top:24px}
  .numbers-turn{margin:16px 0 12px}
  .numbers-turn strong{font-size:1.2rem}
  .numbers-latest{gap:4px 10px;padding:10px 12px}
  .numbers-latest p{font-size:.86rem}
  .numbers-room [data-table-form="guess"]{grid-template-columns:minmax(0,1fr)}
  .numbers-room [data-table-form="guess"]>.button{grid-column:1;grid-row:auto;width:100%}
  .numbers-attempt{grid-template-columns:20px minmax(0,1fr) 50px;gap:6px 12px;padding:12px 0}
  .numbers-attempt-clue,.numbers-attempt-range{grid-column:2/-1}
  .numbers-round-record{padding:14px}
  .numbers-round-facts{gap:16px 24px}
  .numbers-next strong{margin-left:5px}
}
@media(min-width:1000px){
  .game-shell.theme-numbers .numbers-room[data-numbers-phase="guess"]{
    width:min(100%,1280px);display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr);gap:0 36px;
  }
  .game-shell.theme-numbers .numbers-room[data-numbers-phase="guess"]>.session-banner{grid-area:1/1/2/-1}
  .game-shell.theme-numbers .numbers-room[data-numbers-phase="guess"]>.number-stage{
    grid-area:2/1/6/2;align-self:stretch;display:flex;flex-direction:column;
    justify-content:center;margin:8px 0 18px;
  }
  .game-shell.theme-numbers .numbers-room[data-numbers-phase="guess"]>.numbers-turn{grid-area:2/2;margin:8px 0 12px}
  .game-shell.theme-numbers .numbers-room[data-numbers-phase="guess"]>:is(.numbers-latest,.numbers-first-clue){grid-area:3/2;margin:0 0 14px}
  .game-shell.theme-numbers .numbers-room[data-numbers-phase="guess"]>[data-table-form="guess"]{grid-area:4/2;margin:0 0 14px;grid-template-columns:minmax(0,1fr)}
  .game-shell.theme-numbers .numbers-room[data-numbers-phase="guess"]>[data-table-form="guess"]>.button{grid-column:1;grid-row:auto;width:100%}
  .game-shell.theme-numbers .numbers-room[data-numbers-phase="guess"]>.actions{grid-area:5/2;align-self:start}
  .game-shell.theme-numbers .numbers-room[data-numbers-phase="guess"]>.numbers-scores{grid-area:6/1/7/-1;margin-top:12px;margin-bottom:0}
  .game-shell.theme-numbers .numbers-room[data-numbers-phase="guess"]>.numbers-current-history{grid-area:7/1/8/-1}
  .game-shell.theme-numbers .numbers-room[data-numbers-phase="guess"]>.numbers-archive{grid-area:8/1/9/-1}
}

.page-game .game-shell.theme-numbers:has(.numbers-room) {
  --number-stage:#f5efe8;
  background:radial-gradient(ellipse at 29% 0,#fdfaf6,var(--number-stage) 70%);color:#193b45;
}
.page-game .game-shell.theme-numbers:has(.numbers-room) .game-toolbar {
  color:#193b45;background:var(--number-stage);border-color:#c9bbae;
}
.page-game .game-shell.theme-numbers:has(.numbers-room) .game-toolbar .button,
.page-game .game-shell.theme-numbers .numbers-room .button.secondary {
  background:#fff9ef;color:#224b55;border-color:#829da1;
}
.page-game .game-shell.theme-numbers .numbers-room .button.cta {
  background:linear-gradient(#ffcc74,#f5aa42);color:#252f35;border:1px solid #a06225;
  box-shadow:inset 0 1px 0 #fff0bd,0 2px 0 #a9682f;font-weight:750;
}
.game-shell.theme-numbers .numbers-room {--number-ink:#193b45;--number-muted:#465f67;--number-line:#bac9c5;--number-wash:#e5eeeb}
.game-shell.theme-numbers .play .numbers-room .session-banner {
  margin:0 0 1rem;max-width:none;text-align:left;
}
.game-shell.theme-numbers .play .numbers-room .session-banner>:is(h2,.meta) {
  margin-inline:0;text-align:left;max-width:none;
}
.game-shell.theme-numbers .play .numbers-room .session-banner h2 {
  color:var(--number-ink);font-size:clamp(1.7rem,4.25vw,3.45rem);line-height:1.1;letter-spacing:-.03em;
}
.number-stage {
  border:2px solid #b3905e;
  background:repeating-linear-gradient(132deg,#ffffff06 0 1px,transparent 1px 4px),radial-gradient(ellipse at 20% 0,#33585e,#142d36 78%);
  box-shadow:inset 0 0 0 3px #112933,0 4px 0 #62503e,0 11px 24px #243d3b32;
  color:#fff4df;
}
.number-stage-head>div:first-child>span,.number-count>span,.number-ticks,.number-range-dash {color:#f2dec1}
.number-line-rail {background:#4a666a;box-shadow:inset 0 2px 5px #061b24ad}
.number-survivor {background:linear-gradient(#ffc7ab,#ef8f63)}
.number-endpoint {
  background:#ffcfaf;border-color:#a74d2e;box-shadow:0 0 9px #ffc19374;
}
.number-ticks {margin-top:8px;height:28px}
.number-ticks>span {
  padding-top:8px;
}
.number-ticks>span::before {
  content:'';position:absolute;top:0;left:50%;width:1px;height:5px;background:#cfb894;
}
.number-ticks>span:first-child::before {left:0}
.number-ticks>span:last-child::before {left:auto;right:0}
.numbers-turn strong {color:var(--number-ink)}
.numbers-latest {border-left-color:#48767a;border-radius:0 6px 6px 0}
.numbers-scores li {background:#fff9ef;min-width:0;border-color:#cbbbaa}
.numbers-scores .is-current {color:#123c42;background:#e1eeeb;border-color:#477b7d}
.numbers-round-record {background:#fffbf3}
.game-shell .play .numbers-room .actions {justify-content:flex-start}
@media(min-width:1000px) {
  .game-shell.theme-numbers .numbers-scores {display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}
  .game-shell.theme-numbers:not(.wide) .numbers-room[data-numbers-phase=guess] {width:100%}
}
@media(max-width:699px) {
  .number-stage-head>div:first-child>strong {font-size:clamp(1.75rem,8.5vw,3.2rem)}
  .numbers-scores {display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .numbers-scores li {gap:.28rem;overflow-wrap:anywhere}
  .number-ticks {font-size:.73rem}
  .numbers-turn {margin-top:1.25rem}
}
