.source-page #stage {
  --ink: #25263e;
  --gold: #ffd43b;
  --sand: #fff1d0;
  --team-a: #ee7459;
  --team-b: #36a9ac;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(var(--scale, 1));
  width: 1080px; height: 1920px; padding: 38px 40px 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fffaf0; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 29px;
  font-weight: 900; line-height: 1.14; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
}
#stage *, #stage {box-sizing: border-box}
#stage [hidden] {display: none !important}
#stage :is(h1,h2,p) {margin: 0}
#stage b, #stage strong {font-weight: 900}
.mast, .section-title {display: flex; gap: 18px; align-items: center; font-size: 24px; text-transform: uppercase; letter-spacing: 3px}
.mast .rule, .section-title .rule {flex: 1; height: 3px; background: var(--gold); outline: 1px solid var(--ink)}
.peaks {width: 52px; height: 30px; background: var(--gold); clip-path: polygon(0 100%,40% 3%,59% 48%,72% 18%,100% 100%,85% 100%,71% 64%,57% 92%,40% 51%,19% 100%)}
.headline {display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0 16px}
#title {font-size: 95px; line-height: 1; letter-spacing: -6px; -webkit-text-stroke: 6px var(--ink)}
#title em {color: var(--gold)}
.clock-box {text-align: right; white-space: nowrap}
.clock-box small, .team-score, .readout > div > span {display: block; font-size: 22px; text-transform: uppercase; letter-spacing: 1.5px}
#clock {font-size: 53px; letter-spacing: -3px; font-variant-numeric: tabular-nums}
.match-line {display: flex; align-items: center; justify-content: space-between; border-top: 3px solid var(--ink); padding-top: 14px; font-size: 28px}
#lobby-state {display: inline-flex; align-items: center; gap: 12px}
#lobby-state::before {content: ''; display: inline-block; width: 19px; height: 19px; border: 3px solid var(--ink); border-radius: 50%; background: var(--gold)}
#lobby-state[data-live="true"]::before {background: #82dfa9}
.teams {display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 26px 0 16px}
.team {--team: var(--team-a); min-width: 0; display: flex; align-items: center; gap: 14px}
.team:last-child {--team: var(--team-b); flex-direction: row-reverse; text-align: right}
.team > i {width: 84px; height: 84px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; border: 5px solid var(--ink); background: var(--sand); box-shadow: inset 0 0 0 9px var(--team); color: var(--ink); font-size: 32px; font-style: normal; -webkit-text-stroke: 0}
.team > div {min-width: 0}
.team-name {display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 36px; letter-spacing: -1px}
.team-score {margin-top: 5px; font-size: 21px}
#arena {position: relative; flex: none; height: 716px; border-radius: 36px; overflow: hidden; outline: 5px solid var(--ink); outline-offset: -3px; isolation: isolate}
#arena canvas {display: block; width: 100%; height: 100%}
#gift-floater {position: absolute; transform: translate(-50%, -50%); width: max-content; max-width: 540px; text-align: center; pointer-events: none}
#gift-floater b, #gift-floater span {display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
#gift-floater b {font-size: 51px; line-height: 1.18; -webkit-text-stroke: 7px var(--ink); letter-spacing: -1.5px; color: white}
#gift-floater span {font-size: 32px; margin-top: 2px; -webkit-text-stroke: 5px var(--ink); color: var(--gold)}
.readout {display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 3px solid var(--ink); padding: 20px 4px}
.readout strong {display: block; font-size: 43px; letter-spacing: -1.7px; margin-top: 4px}
#readout-detail {text-align: right; font-size: 27px}
.instruction {min-height: 126px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 12px 0}
.instruction h2 {font-size: 42px; line-height: 1.08; letter-spacing: -1.6px; color: var(--gold); -webkit-text-stroke: 4px var(--ink)}
.instruction p, #round-result {font-size: 27px; line-height: 1.12}
#connection {flex: none; min-height: 0; display: flex; flex-direction: column}
#connection:has(.tt-core-notice[hidden]) {display: none}
#connection .tt-core-overlay-status {position: static; z-index: auto; transform: none; width: 100%; margin: 0; text-align: left; pointer-events: auto}
#connection .tt-core-pill {display: none !important}
#connection .tt-core-notice {background: transparent; padding: 12px 18px; margin: 0; border: 3px solid var(--ink); border-radius: 17px; box-shadow: none; color: white; font: 900 22px/1.16 Inter,"Segoe UI",Arial,sans-serif; -webkit-text-stroke: 2.7px var(--ink); paint-order: stroke fill}
#connection .tt-core-notice strong {font-size: inherit; color: var(--gold)}
#connection .tt-core-notice a {color: white; text-decoration: underline; text-underline-offset: 3px}
#connection .tt-allow-hint {margin-top: 3px !important}
#connection .tt-game-page-link {display: block; margin-top: 3px}
.gift-controls {margin-top: 23px; flex: none}
.section-title h2 {font-size: 24px; letter-spacing: 2px}
#legend {margin-top: 12px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 28px}
.gift {display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 10px; border-top: 2px solid #aa9c89; padding-top: 8px; min-height: 66px}
.gift img {width: 58px; height: 58px; object-fit: contain}
.gift:not(:has(img)) {grid-template-columns: minmax(0,1fr)}
.gift :is(strong,small) {display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis}
.gift strong {font-size: 30px}
.gift small {font-size: 22px; margin-top: 2px}
#stage footer {text-align: center; font-size: 21px; margin-top: 22px}
