/* Word Rush party identity: indigo stage, citrus actions, coral accents. */
/* Keep the live trail lightweight on mobile GPUs; retain its colored halo. */
#play-board-wrap .path-halo line,#play-board-wrap .path-rings circle{filter:none}
:root{--bg:#f4f2ff;--panel:#fff;--line:#d9d5f4;--cream:#25204c;--ink:#25204c;--muted:#635e7a;--teal:#5141d9;--purple:#5141d9;--mint:#176b58;--gold:#fbe45b;--tray:#6652e8;--tray-edge:#3f2aa8;--success-bg:#cff5e4;--success-ink:#145c46;--radius:24px}
body{background:radial-gradient(ellipse at 90% 5%,#ffe88b66,transparent 30%),radial-gradient(ellipse at 5% 45%,#b8acff55,transparent 38%),#f4f2ff;color:var(--ink)}
.topbar{border:0;padding:18px 0}.wordmark,.game-brand{color:#4030b6;font-weight:900}.wordmark span,.game-brand span{color:#e55232}.arcade-brand{color:#332960}.icon-button{background:white;color:#4938b8;border:2px solid #dfdaf5;box-shadow:0 3px 0 #d9d2f0}.icon-button:hover{background:#fbe45b}
.eyebrow{font-weight:900;color:#5141d9;letter-spacing:1.8px}.muted{color:#635e7a}.button{border-radius:16px;border-width:2px;font-weight:900;transition:transform .12s,box-shadow .12s}.button.gold,.button.mint{color:#25204c;background:#fbe45b;border-color:#fbe45b;box-shadow:0 5px 0 #c5a62b}.button.gold:hover:not(:disabled),.button.mint:hover:not(:disabled){background:#ffe97c;transform:translateY(-2px)}.button.secondary{color:#fff;background:#5845df;border-color:#5845df;box-shadow:0 5px 0 #382994}.button:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #382994}.text-button{color:#4633bc;font-weight:800}.panel{background:#fff;border:2px solid #e1dcf6;box-shadow:0 5px 0 #ded8f2}input,select{background:#f8f6ff;border:2px solid #d6cef0;color:#25204c}
.landing{position:relative;padding:32px 0 42px;gap:38px;align-items:center}.intro .eyebrow{display:inline-block;padding:8px 13px;background:#fff;border:2px solid #ddd4fa;border-radius:30px;transform:rotate(-3deg)}.home-game-title{font-weight:950;font-size:clamp(70px,9vw,118px);letter-spacing:-6px;line-height:.98;color:#4934cf;margin:22px 0}.home-game-title em{display:inline-block;color:#f05e3d;transform:rotate(-5deg);text-shadow:0 5px 0 #ffd5a8}.intro>.home-tagline{font-size:clamp(24px,3vw,32px);font-weight:900;line-height:1.15;color:#27204d;max-width:460px}.intro>p{font-size:16px;line-height:1.5}.intro .setup-note{font-size:12px;max-width:440px}.primary-actions{margin:25px 0 18px}.primary-actions .button{font-size:17px;min-height:60px}.hero-art{position:relative;background:#5141d9;border:3px solid #4431b3;box-shadow:0 10px 0 #342580,0 24px 50px #4934cf33;border-radius:32px;padding:22px;transform:rotate(3deg)}.hero-art:after{content:'YOUR NEXT GAME NIGHT';position:absolute;right:-9px;top:-14px;background:#fbe45b;color:#29204b;transform:rotate(8deg);font-size:10px;font-weight:950;letter-spacing:1px;border-radius:8px;padding:10px 12px;box-shadow:0 3px 0 #caa937}.demo-hud{color:white}.demo-hud span{background:#ffffff22;color:white}.demo-readout{background:#3826a1;border-color:#8a76fc;color:white}.demo-readout span{color:#fbe45b}.sample-board{background:#352394;border-color:#39268d;box-shadow:inset 0 2px 8px #24185c66}.sample-board b{color:#27204a;background:#fff;box-shadow:0 5px 0 #c2bae4}.sample-board b:nth-child(-n+3){background:#75e2bb;color:#174c3d;box-shadow:0 5px 0 #3b9b7e}.sample-board b.demo-bonus{background:#fbe45b;color:#584715;box-shadow:0 5px 0 #b99a27}.demo-receipt{color:#fff}.demo-receipt small{color:#d9d2ff}.demo-receipt>b{color:#fbe45b}.demo-check{background:#79e1bb;color:#174c3d}.how-strip{border:0;background:#fff;border-radius:20px;padding:16px 22px;gap:18px}.how-strip>div>span{background:#fbe45b!important;color:#352574!important;font-weight:900}.how-strip p{font-size:13px;line-height:1.4}.home-bottom{border:0;padding-top:20px}.home-bottom>span{font-size:12px}
.board-wrap{background:#6652e8;border-color:#5841c8;box-shadow:0 7px 0 #3d299e}.tile{background:#fff;color:#27204a;box-shadow:0 5px 0 #c2bae4}.tile.bonus{background:#fbe45b;color:#5d4512;box-shadow:0 5px 0 #bd9c24}.tile.selected{background:#81edc6;color:#154b3b;box-shadow:0 5px 0 #3fa584}.phone-play .tile{color:#27204a}.phone-play .tile.selected{color:#154b3b}.phone-play .game-icon{background:#fff;border:2px solid #ddd6f6;color:#4934bf}.score-hud{background:#fff;border:2px solid #ded6f8;box-shadow:0 4px 0 #e0daf3;border-radius:20px}.score-well strong{color:#4934cf}.phone-play .progress-track{background:#ddd5fc}.phone-play #time-progress{background:linear-gradient(90deg,#7161ed,#5141d9)}.phone-play .word-entry{background:#eeebff;border-color:#d5cbff}.phone-play .result-receipt[data-kind=scored]{background:#cdf7e5;border-color:#56b897}.phone-tools button{color:#4934b9;background:#fff;border-color:#dcd5f3}.phone-play .round-chip{background:#e4ddff;color:#4934b9}.phone-play .recent-words{max-height:95px}.phone-play .word-chip{background:white;border-color:#e0d9fa}.time-well .timer{color:#342585}
.countdown{position:relative;min-height:65dvh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;overflow:hidden;background:#5141d9;border-radius:30px;color:#fff;box-shadow:0 8px 0 #35248b;margin:20px 0}.countdown:before{content:'';position:absolute;width:420px;height:420px;border:40px solid #ffffff0b;border-radius:50%;pointer-events:none}.countdown .eyebrow{color:#fbe45b}.countdown h2{font-size:30px;margin:20px 0 0}.countdown p{color:#dcd5ff}.count-number{color:#fbe45b!important;font-size:clamp(125px,25vw,200px)!important;font-weight:950;line-height:1.05;text-shadow:0 8px 0 #33227d;position:relative}.count-number.count-pop{animation:count-pop .65s cubic-bezier(.15,.75,.3,1)}
body[data-phase=tally],body[data-phase=results]{background:#392ba0;color:#fff}body[data-phase=tally] .wordmark,body[data-phase=results] .wordmark,body[data-phase=tally] .arcade-brand,body[data-phase=results] .arcade-brand{color:#fff}body[data-phase=tally] .wordmark span,body[data-phase=results] .wordmark span{color:#fbe45b}body[data-phase=tally] .arcade-brand small,body[data-phase=results] .arcade-brand small{color:#cec5ff}body[data-phase=tally] footer,body[data-phase=results] footer{color:#c6bef0}body[data-phase=tally] footer a,body[data-phase=results] footer a{color:#eeeaff}
.showdown{max-width:940px;margin:0 auto}.reveal-header{text-align:center;margin:14px 0 18px}.reveal-header .eyebrow{color:#fbe45b}.reveal-header h2{font-size:clamp(29px,4vw,47px);font-weight:950;line-height:1.1;margin:8px 0}.reveal-header p{color:#d5ccff;margin:8px 0;font-size:15px}.tally-spotlight{position:relative;display:flex;flex-direction:column;gap:10px;justify-content:center;min-height:190px;padding:18px 20px;margin:0 0 17px;background:#fff;border:3px solid #ffcb52;border-radius:26px;box-shadow:0 7px 0 #21166e;color:#2c2356;overflow:hidden}.tally-player{font-size:20px}.tally-player .avatar{width:42px;height:42px;font-size:25px}.tally-word{gap:6px;max-width:100%;line-height:1.2}.tally-word-item{font-size:14px;background:#efebff;padding:6px 9px;border:0;border-radius:9px}.tally-word-item b{color:#4330b8}.tally-points{font-size:64px!important;line-height:1;color:#5141d9;letter-spacing:-3px}.tally-spotlight.tally-pop{animation:score-land .35s cubic-bezier(.15,.8,.3,1)}.tally-layout{display:block}.tally-layout .leaderboard{margin:0}.leader-row{border:2px solid #ffffff35;background:#ffffff10;color:white;border-radius:17px;padding:11px 15px;margin-bottom:9px;box-shadow:none}.leader-row:first-child{background:#fbe45b;border-color:#fbe45b;color:#332663;box-shadow:0 4px 0 #b69b2f}.leader-row:first-child .leader-detail{color:#67542e}.leader-row .leader-detail{color:#d7cffc}.leader-score{color:inherit;font-size:38px}.leader-row .rank{color:inherit}.leader-row:before{opacity:.12}.leader-row .avatar{width:43px;height:43px;font-size:27px}.showdown-words{background:#ffffff0c;border:1px solid #ffffff35;border-radius:16px;padding:0;margin:18px 0 0}.showdown-words summary{padding:14px 16px;color:#e9e4ff;font-size:13px;font-weight:800;cursor:pointer}.showdown-words .tally-words{padding:0 14px 14px;max-height:220px;overflow:auto}.showdown-words .word-chip{color:#28214e;background:#fff;border-color:#dbd4f6}.tally-controls{display:flex;gap:12px;position:sticky;bottom:0;padding:16px 0 calc(16px + env(safe-area-inset-bottom));margin:12px 0 0;background:#392ba0;z-index:5}.tally-controls .button{flex:1;font-size:13px;min-height:47px}.tally-controls .button.secondary{border-color:#8978f4;background:#4a39bd;box-shadow:0 4px 0 #261973}.tally-controls .muted{color:#dad2ff}.results-top .stat-card,.results-detail .panel,.match-rounds{color:#29204e;background:white;border-color:#dcd5f5}.results-top .stat-card>span{color:#685c86}.results-top .stat-card>strong{color:#4832b8}.results-top .result-actions .muted{color:#d7cffc}.results-detail .word-table{color:#2b234d}.results-detail .word-table th{color:#665c7d}.results-detail .word-table td.found{color:#176b58}.results-detail .panel .eyebrow{color:#5141d9}.results-detail .panel p{color:#685f7b}.results-detail .text-button{color:#4934bc}.puzzle-review details{color:#2b234d}.winner-medal{font-size:48px;display:block;line-height:1;margin-bottom:12px;filter:drop-shadow(0 4px 0 #24146d)}
/* Lobby remains light; only the public score stage uses dark leader rows. */
body:not([data-phase=tally]):not([data-phase=results]) .leader-row{color:#302357;background:#fff;border-color:#e0d7f5}body:not([data-phase=tally]):not([data-phase=results]) .leader-row:first-child{background:#fff2a0;border-color:#f1d747}body:not([data-phase=tally]):not([data-phase=results]) .leader-detail{color:#6c6187}.player-card{border:2px solid #ded7f6;background:#fff;box-shadow:0 3px 0 #e2dcf6}.join-code{color:#4934cf}.avatar-options button.selected,.score-sounds button.selected{background:#fbe45b;border-color:#7a641a;color:#30254f}
.round-fx{position:fixed;inset:0;pointer-events:none;z-index:1000;display:flex;align-items:center;justify-content:center;overflow:hidden}.round-fx-label{font-size:clamp(66px,18vw,140px);font-weight:950;letter-spacing:-4px;color:#fff;text-shadow:0 7px 0 #332174,0 0 40px #332174;transform:rotate(-7deg);animation:round-stamp .8s both}.round-fx-go .round-fx-label{color:#fbe45b}.round-fx-time .round-fx-label{color:#ff8b70}.party-confetti{position:absolute;left:var(--x);top:-20px;width:10px;height:18px;border-radius:3px;background:var(--c);animation:confetti-fall var(--duration) var(--delay) ease-in forwards}.round-fx-go:before{content:'';width:40px;height:40px;border:12px solid #fbe45baa;border-radius:50%;position:absolute;animation:go-ring .65s ease-out both}
@keyframes count-pop{0%{transform:scale(1.5) rotate(-8deg);opacity:.3}50%{transform:scale(.95) rotate(2deg)}100%{transform:scale(1)}}@keyframes score-land{0%{transform:scale(.96)}65%{transform:scale(1.025)}100%{transform:scale(1)}}@keyframes round-stamp{0%{transform:scale(.4) rotate(-12deg);opacity:0}20%,65%{transform:scale(1) rotate(-7deg);opacity:1}100%{transform:scale(1.3) rotate(-3deg);opacity:0}}@keyframes go-ring{to{transform:scale(35);opacity:0}}@keyframes confetti-fall{to{transform:translate(var(--drift),110dvh) rotate(650deg)}}
@media(max-width:650px){.landing{padding:24px 0 28px;gap:30px}.home-game-title{font-size:78px;letter-spacing:-5px}.intro>.home-tagline{font-size:26px}.intro>p{font-size:15px}.primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.primary-actions .button{font-size:14px;padding:14px 10px}.hero-art{width:min(82%,300px);margin:12px auto 10px;padding:16px;transform:rotate(3deg)}.hero-art .sample-board{gap:7px;padding:10px}.hero-art .sample-board b{font-size:27px;border-radius:12px}.hero-art .demo-hud strong{font-size:23px}.hero-art .demo-readout{font-size:19px;padding:10px}.hero-art .demo-receipt{padding-top:13px}.hero-art .demo-receipt strong{font-size:20px}.hero-art .demo-receipt>b{font-size:28px}.how-strip{display:flex;flex-wrap:wrap;padding:14px;gap:10px}.how-strip>div{flex:1 1 120px;gap:8px}.how-strip>div>span{width:28px;height:28px;min-width:28px;font-size:11px}.how-strip p{font-size:11px}.how-strip p strong{font-size:12px}.showdown .reveal-header{margin:7px 0 14px}.showdown .reveal-header h2{font-size:29px}.showdown .reveal-header p{font-size:13px}.tally-spotlight{min-height:160px;padding:14px;margin-bottom:16px}.tally-word-item{font-size:12px}.tally-points{font-size:52px!important}.tally-player{font-size:18px}.tally-player .avatar{width:35px;height:35px;font-size:23px}.leader-score{font-size:33px}.leader-row{padding:9px 12px}.leader-row .avatar{width:35px;height:35px;font-size:24px}.tally-controls{gap:10px}.topbar .arcade-brand>span{display:none}.top-actions{gap:4px}.topbar .wordmark{font-size:27px}.results-top .stat-grid{grid-template-columns:1fr 1fr}.countdown{min-height:62dvh}.phone-play .score-hud{margin-top:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important}.hero-art{transform:none}.count-number.count-pop,.tally-spotlight.tally-pop,.round-fx-label,.party-confetti,.round-fx-go:before{animation:none!important}.party-confetti,.round-fx-go:before{display:none}.round-fx-label{font-size:64px;transform:none}.button{transition:none}}
.phone-play .board{background:#6652e8;border-color:#4b36bd;box-shadow:inset 0 2px 0 #8e7bf2,0 6px 0 #39248e}
.phone-play .tile{background:#fff;border-color:#fff;box-shadow:inset 0 -2px 0 #f1edfc,0 4px 0 #b5a9d9;color:#27204a}
.phone-play .tile.bonus{background:#fbe45b;border-color:#fff0a0;box-shadow:0 4px 0 #b99a27}
.phone-play .tile.selected{background:#83ecc7;border-color:#247f66;box-shadow:0 6px 0 #399375,0 0 0 4px #71d6b455;color:#164d3e}
.phone-play .tile.selected.bonus{background:#ffe96e;border-color:#b59b27;color:#544311}
.phone-play .phone-tools button{background:#fff;border-color:#dcd4f4;color:#4934bf}
.phone-play .phone-tools .tap-submit{background:#5141d9;color:white}
.phone-play .score-hud{padding:9px 12px 11px}.phone-play .time-well{padding-right:3px}
.party-features{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;padding:20px 0}.party-features span{background:#fff;border:2px solid #ded5f7;border-radius:30px;padding:10px 15px;font-size:12px;font-weight:850;color:#4634a9}.party-features span:nth-child(2){background:#fbe45b;border-color:#fbe45b;color:#3b305a}

.round-fx-time{flex-direction:column;gap:16px;background:#30217deb;animation:finish-stage 1.4s both}.round-fx-time .round-fx-label{font-size:clamp(44px,11vw,110px);letter-spacing:-2px;animation:none;text-align:center}.round-fx-caption{color:#fff;font-size:clamp(17px,3vw,25px);font-weight:800;letter-spacing:.02em}@keyframes finish-stage{0%{opacity:0}12%,80%{opacity:1}100%{opacity:0}}@media(prefers-reduced-motion:reduce){.round-fx-time{animation:none}}
.mog-hero{margin:0;min-width:0;text-align:center;transform:rotate(2deg)}.mog-hero img{display:block;width:100%;height:auto;border-radius:30px;box-shadow:0 9px 0 #302176,0 20px 45px #4934cf30}.mog-hero figcaption{margin-top:18px;font-size:13px;font-weight:800;color:#4934bf}.mog-results{display:block;width:100px;height:100px;object-fit:cover;border-radius:22px;margin:12px auto;box-shadow:0 4px 0 #35248b}.home-game-title{letter-spacing:-4px;font-size:clamp(64px,8vw,108px)}@media(max-width:700px){.mog-hero{width:min(100%,360px);margin:12px auto 0;transform:none}.home-game-title{font-size:clamp(60px,16vw,88px)}.mog-results{width:82px;height:82px}}@media(prefers-reduced-motion:reduce){.mog-hero{transform:none}}
.avatar .avatar-portrait{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.avatar-options button>.avatar{width:100%;height:100%;border:0;background:transparent;box-shadow:none;border-radius:10px;font-size:30px}.avatar-options button{overflow:hidden}.avatar-options button:has(.avatar-portrait){padding:3px}
.photo-avatar-dialog{width:min(94vw,460px);max-height:90dvh;overflow:auto;border:2px solid #b7a5ef;border-radius:24px;padding:24px;background:#fff;color:#29234b}.photo-avatar-dialog::backdrop{background:#21134caa}.photo-modal h2{font-size:26px;margin:0 0 10px}.photo-source-actions{display:flex;gap:12px;margin:16px 0}.photo-source-actions .button{flex:1;min-width:0;font-size:14px;padding:12px 8px}.photo-modal canvas{display:block;width:min(100%,280px);height:auto;margin:22px auto 0;border-radius:20px;touch-action:none;cursor:grab;box-shadow:0 0 0 3px #7965e4}.photo-modal label{display:block;margin:12px 0;font-size:13px;font-weight:800}.photo-modal input[type=range]{display:block;width:100%;padding:0;accent-color:#5141d9;min-height:32px}.photo-modal [hidden]{display:none!important}.photo-modal #photo-error{color:#943c38;font-weight:700}.avatar-options #photo-avatar-button{padding:3px;overflow:hidden;font-size:27px}

/* The active round is a fixed game surface, not a scrolling page. Explicit
   rows avoid Safari's first-layout sizing of aspect-ratio grid children. */
html.board-playing,html.board-playing body{overflow:hidden;overscroll-behavior:none}
html.board-playing body{position:fixed;inset:0;width:100%;min-height:0}
html.board-playing .shell{height:var(--play-height,100svh);max-height:100%;overflow:hidden;touch-action:none;padding:6px max(16px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
.board-playing .shell>footer{display:none}
.board-playing #main{height:100%;min-height:0}
.board-playing .phone-play{height:100%;min-height:0;max-width:440px;padding:0;display:flex;flex-direction:column;gap:6px}
.board-playing .phone-play>*{flex-shrink:0}
.board-playing .game-chrome{height:34px;min-height:34px;margin:0}
.board-playing .game-icon{width:32px;height:32px;min-height:32px;padding:6px}
.board-playing .game-brand{font-size:23px}
.board-playing .phone-play .play-top{height:24px;margin:0}
.board-playing .phone-play .score-hud{height:66px;min-height:66px;padding:7px 12px;margin:0}
.board-playing .score-well strong,.board-playing .time-well .timer{font-size:35px;line-height:1}
.board-playing .phone-play .progress-track{height:3px;margin:0}
.board-playing .phone-play #word-entry{height:44px;min-height:44px;margin:0;padding:3px 6px}
.board-playing #play-board-wrap{width:min(100%,max(0px,calc(var(--play-height,100svh) - 360px - env(safe-area-inset-bottom,0px))));max-width:100%;aspect-ratio:1;margin:0 auto;border-radius:24px;flex-shrink:0}
.board-playing #play-board-wrap .board{width:100%;height:100%;aspect-ratio:1;grid-template-rows:repeat(var(--size,4),minmax(0,1fr));grid-template-columns:repeat(var(--size,4),minmax(0,1fr));gap:9px;padding:10px;align-items:stretch}
.board-playing #play-board-wrap .tile{width:100%;height:100%;min-height:0;aspect-ratio:auto;font-size:clamp(18px,6vw,32px)}
.board-playing .phone-play .result-receipt{height:42px;min-height:42px;margin:3px 0 0;padding:5px 10px}
.board-playing .phone-play .phone-tools{margin:0;gap:8px}
.board-playing .phone-tools button{height:36px;min-height:36px;padding:4px 10px}
.board-playing .phone-play .recent-heading{margin:0;height:16px}
.board-playing .phone-play .recent-words{min-height:0;max-height:34px;margin:0;padding:0;overflow-x:auto;overflow-y:hidden;touch-action:pan-x;flex-shrink:1}
.board-playing #connection.warning{position:fixed;top:4px;left:12px;right:12px;z-index:30}
.board-playing .keyboard-form{position:absolute;bottom:8px;left:16px;right:16px;z-index:20;background:#fff;padding:8px;margin:0}
@media(max-height:500px) and (orientation:landscape){
 .board-playing .phone-play{display:grid;max-width:850px;grid-template-columns:1fr 1fr;grid-template-rows:34px 24px 66px 3px 44px 42px 36px;gap:4px 18px;align-content:center}
 .board-playing #play-board-wrap{grid-column:2;grid-row:1 / 8;width:min(100%,calc(var(--play-height,100svh) - 34px));align-self:center}
 .board-playing .recent-heading,.board-playing .recent-words{display:none}
}

.home-secondary-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px;margin:12px 0}
.home-secondary-actions .text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:0;padding:8px 0;font:inherit;font-weight:800;text-decoration:none}
.home-secondary-actions .text-button:hover{text-decoration:underline}

/* Fit feedback to the locked play surface instead of clipping the old two-line readout. */
.board-playing .phone-play #word-entry{display:flex;flex-direction:row;gap:10px;justify-content:center;align-items:center;padding:5px 12px}
.board-playing .phone-play #selected-word{flex:0 1 auto;min-width:0;font-size:clamp(16px,5.5vw,26px);line-height:1.15;letter-spacing:.5px}
.board-playing .phone-play #word-feedback{flex:0 0 auto;max-width:45%;font-size:11px;line-height:1.2;letter-spacing:0}
.board-playing .phone-play .score-well{justify-self:start;max-width:100%}
.board-playing .phone-play .score-well #my-score{font-size:38px;line-height:1.1}
.board-playing .phone-play #score-gain{left:calc(100% + 10px);top:22px;font-size:20px;white-space:nowrap}

.daily-home{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:22px 0;padding:16px;border:2px solid #d6ccfb;border-radius:18px;background:#eee8ff}.daily-home>span{font-size:10px;font-weight:900;letter-spacing:1px;flex:1}.daily-home .button{font-size:14px;min-height:46px}.daily-result{color:#29204b}.daily-result .eyebrow{color:#5141d9}.daily-score{font-size:70px;font-weight:900;color:#5141d9;margin:20px 0}.daily-score small{display:block;font-size:16px}.daily-rank{display:flex;align-items:center;gap:14px;padding:14px 10px;border-bottom:1px solid #ded6ef}.daily-rank>span{flex:1}.daily-rank small{display:block;font-size:12px;opacity:.7}.daily-rank.is-you{background:#fff2a0;border-radius:12px}#daily-ranks{margin-top:26px}.rival-prompt{font-size:20px;font-weight:850;color:#fbe45b;margin:20px 0 0}

.auto-next{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;background:#ffffff16;border:2px solid #8d7be7;border-radius:18px;padding:16px;margin:20px 0 0}.auto-next>strong{font-size:23px;color:#fbe45b}.auto-next .button{font-size:13px;min-height:44px}

.award-stage{max-width:760px;margin:30px auto;text-align:center;padding:24px 18px}.award-stage>.eyebrow{color:#fbe45b}.award-icon{display:block;font-size:66px}.award-stage h2{font-size:clamp(32px,7vw,54px);margin:12px 0 22px}.award-winners{display:flex;flex-wrap:wrap;justify-content:center;gap:18px}.award-winners>div{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:120px}.award-winners .avatar{width:84px;height:84px;font-size:54px;border-radius:22px}.award-winners strong{font-size:21px}.award-winners b{background:#fbe45b;color:#302176;border-radius:10px;padding:8px 14px;letter-spacing:1px}.award-stage p{color:#e8e1ff}.award-pop{animation:score-land .4s ease-out}.personal-best{display:flex;gap:16px;align-items:center;background:#fff1a0;border:2px solid #fbe45b;border-radius:20px;color:#33216e;padding:18px;margin:18px auto;max-width:760px}.personal-best>span{font-size:40px}.personal-best strong{font-size:23px}.personal-best p{margin:4px 0 0;font-size:14px}@media(prefers-reduced-motion:reduce){.award-pop{animation:none}}

/* Solo counting has one word, one award, and an explicit running subtotal. */
.solo-showdown{max-width:660px}
.solo-showdown .tally-spotlight{min-height:210px;gap:14px}
.solo-tally-word{font-size:clamp(25px,7vw,44px);line-height:1.15;overflow-wrap:anywhere;max-width:100%;letter-spacing:1px;color:#33216e}
.solo-score-reason{font-size:15px;line-height:1.5;font-weight:700;color:#655581}
.solo-running{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:18px;border:2px solid #9b89f1;border-radius:18px;background:#ffffff10;color:#e8e1ff}
.solo-running>strong{font-size:36px;line-height:1;font-variant-numeric:tabular-nums;color:#fbe45b}
.solo-running small{font-size:20px;color:#e8e1ff}
#solo-word-progress{width:100%;font-size:13px}
.solo-breakdown .score-formula{padding:12px;background:#eee8ff;border-radius:12px;color:#4934b4}
.solo-score-table{width:100%;font-variant-numeric:tabular-nums}
.solo-score-table th,.solo-score-table td{padding:12px 7px;text-align:right;white-space:nowrap}
.solo-score-table th:first-child,.solo-score-table td:first-child{text-align:left;white-space:normal;overflow-wrap:anywhere}
.solo-score-table td:first-child button{overflow-wrap:anywhere;text-align:left}
.solo-score-table tfoot{border-top:2px solid #c8bbef}
.solo-score-table small{font-size:10px}
@media(max-width:420px){.solo-score-table{font-size:12px}.solo-score-table th,.solo-score-table td{padding:10px 4px}.solo-score-reason{font-size:13px}}


/* Versus uses the existing compact player row, preserving the swipe board. */
.versus-home{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#ede8ff;border:2px solid #d0c6fa;border-radius:20px;padding:18px;margin:18px 0}
.versus-home>div{display:grid;gap:4px}.versus-home strong{font-size:18px;color:#38287a}.versus-home small{font-size:13px;color:#625c78}.versus-home .button{white-space:nowrap}
.versus-opponent{display:flex;align-items:center;gap:6px;min-width:0;font-size:12px}.versus-opponent .avatar{width:23px;height:23px;font-size:17px;flex-shrink:0}.versus-opponent>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.versus-opponent>b{background:#5141d9;color:#fff;border-radius:8px;min-width:28px;text-align:center;padding:2px 6px;font-variant-numeric:tabular-nums}
.versus-lead{font-size:10px;flex-shrink:0}.versus-lead[data-ahead="true"]{background:#d0f5e5;color:#195c44}.versus-vs{color:#8a7ac8;font-size:.55em;white-space:nowrap}.versus-record{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 18px;font-size:12px;color:#625c78}.versus-record strong{font-size:16px;color:#4934bf}.versus-loading{text-align:center}
body.versus-mode [data-action="tv-setup"]{display:none}
@media(max-width:400px){.versus-home{padding:14px;gap:10px}.versus-home strong{font-size:15px}.versus-home .button{font-size:13px;padding:12px}}


/* Live input has no color/shadow easing to trail behind a fast finger. */
.board-playing #play-board-wrap .tile{transition:none;transform:none}
.board-playing #play-board-wrap{isolation:isolate}
.board-playing #play-board-wrap .path-lines{contain:layout style}
/* Pulse a separate opacity layer instead of repainting a large blurred shadow. */
body.final-seconds #play-board-wrap{animation:none;box-shadow:none;background:transparent}
body.final-seconds #play-board-wrap::before{content:'';position:absolute;inset:-8px;border-radius:30px;background:#ef7773;box-shadow:0 0 22px 6px #e94e4e55;z-index:-1;pointer-events:none;animation:moggle-time-glow 1s ease-in-out infinite}
@keyframes moggle-time-glow{0%,100%{opacity:.25}50%{opacity:.7}}
@media(prefers-reduced-motion:reduce){body.final-seconds #play-board-wrap::before{animation:none;opacity:.5}}
