/* Public and in-app Worldrush use this single component stylesheet. */
.wr-round.wr-round{box-sizing:border-box;min-width:0;width:100%;max-width:640px;margin-inline:auto;padding:26px;border:1px solid var(--brd,#30384f);border-radius:28px;background:linear-gradient(145deg,var(--card2,#1c263a),var(--card,#141c2c));box-shadow:0 18px 48px #0003;color:var(--text,#edf1f7);font:400 16px/1.5 'DM Sans',sans-serif;letter-spacing:normal;text-align:start}
.wr-round *{box-sizing:border-box}
.wr-round [hidden]{display:none!important}
.wr-round .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.wr-round .demo-choice{margin-bottom:12px}
.wr-round .demo-choice>summary{font-size:16px;font-weight:800;color:var(--accent2,#ffd255);cursor:pointer}
.wr-round .demo-modes{display:flex;gap:8px;flex-wrap:wrap;margin-block:12px 20px}
.wr-round .demo-modes button{flex:1;padding:10px;border:1px solid var(--brd,#30384f);border-radius:12px;background:var(--bg,#101622);color:var(--text,#edf1f7);font:800 12px 'DM Sans',sans-serif}
.wr-round .demo-heading{display:flex;justify-content:flex-end;margin-bottom:6px}
.wr-round .demo-count{font-size:18px;font-weight:700}
.wr-round .rush-instructions{font-size:14px;line-height:1.55;color:var(--text,#edf1f7);margin:6px 0 0}
.wr-round .rush-timer{margin-block:16px;padding:12px 18px;border:2px solid var(--accent2,#ffd255);border-radius:18px;background:#ffd25512;text-align:center;color:var(--accent2,#ffd255)}
.wr-round .rush-timer-label{display:block;font-size:14px;font-weight:700}
.wr-round .rush-timer-digits{display:flex;align-items:center;justify-content:center;gap:10px;line-height:1.15;font-variant-numeric:tabular-nums}
.wr-round .rush-timer-digits strong{display:block!important;margin:0;padding:0;color:inherit;background:none;border:0;border-radius:0;box-shadow:none;font:800 52px/1.2 'DM Sans',sans-serif;animation:none!important}
.wr-round .rush-timer-digits>span{font-size:24px}
.wr-round .rush-timer-track{height:6px;margin-top:8px;border-radius:8px;background:var(--bg,#101622);overflow:hidden}
.wr-round .rush-timer-track span{display:block;height:100%;width:100%;background:currentColor;transition:width .1s linear}
.wr-round .rush-timer[data-urgent=true]{border-color:var(--err,#ef476f);color:var(--err,#ef476f);background:#ef476f14}
.wr-round .rush-timer[data-paused=true]{border-color:var(--ok,#43ddb2);color:var(--ok,#43ddb2);background:#43ddb212}
.wr-round .demo-track{height:8px;background:var(--bg,#101622);border-radius:20px;overflow:hidden;margin-block:20px}
.wr-round .demo-track span{width:0;display:block;height:100%;background:linear-gradient(90deg,var(--accent2,#ffd255),var(--accent,#fc9d52));border-radius:20px;transition:width .25s}
.wr-round .demo-question{margin:1em 0;font-size:14px;text-align:center}
.wr-round .demo-word{display:flex;align-items:baseline;justify-content:center;gap:8px;flex-wrap:wrap;margin:1em 0;padding-block:20px;color:var(--learning-target,#ffa45c);font:700 clamp(30px,4vw,42px)/1.35 'DM Sans',sans-serif;overflow-wrap:anywhere;letter-spacing:normal;text-align:center;font-variant-ligatures:none}
.wr-round .demo-word>.native-spelling{margin:0;color:var(--native-spelling,#b7c9e2);font:500 clamp(11px,.6em,18px)/1.5 system-ui,sans-serif;max-width:100%;overflow-wrap:anywhere}
.wr-round .demo-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.wr-round .demo-options button{min-width:0;min-height:59px;margin:0;padding:12px;border:2px solid var(--brd,#30384f);border-radius:15px;background:var(--bg,#101622);box-shadow:none;color:var(--text,#edf1f7);font:700 16px/1.5 'DM Sans',sans-serif;text-align:center;overflow-wrap:anywhere;letter-spacing:normal;transition:border-color .15s,background .15s}
.wr-round .demo-options button:not(:disabled):hover{border-color:var(--accent2,#ffd255)}
.wr-round .demo-options button.correct{border-color:var(--ok,#43ddb2);background:#43ddb222;color:var(--ok,#43ddb2)}
.wr-round .demo-options button.incorrect{border-color:var(--err,#ef476f);background:#ef476f22;color:#ff9bb0}
.wr-round .demo-status{min-height:24px;margin:14px 0 8px;color:var(--ok,#43ddb2);font-size:14px;text-align:center}
.wr-round .demo-tools{display:flex;gap:8px;flex-wrap:wrap}
.wr-round .demo-tools button{padding:9px 14px;margin:0 0 12px;background:var(--card2,#1c263a);border:1px solid var(--brd,#30384f);border-radius:12px;color:var(--text,#edf1f7);font:400 16px/1.5 'DM Sans',sans-serif}
.wr-round .demo-note{font-size:12px;text-align:center;margin-top:12px}
.wr-round .wr-round-result{text-align:center}
.wr-round .demo-trophy{display:block;font-size:55px;color:var(--accent2,#ffd255)}
.wr-round .wr-round-result h3{margin:12px 0;font-size:22px}
.wr-round .rush-score{font:800 42px/1.2 'DM Sans',sans-serif;color:var(--accent2,#ffd255)}
.wr-round .wr-round-actions{display:grid;gap:10px}
.wr-round .wr-round-actions .button,.wr-round .wr-round-actions button{display:block;width:100%;border:0;border-radius:14px;padding:14px 18px;background:var(--accent2,#ffd255);color:#17202b;text-decoration:none;font:800 16px/1.5 'DM Sans',sans-serif}
#speakV145 #defiScreen[data-worldrush-screen]{max-width:none;padding:20px 16px 90px}
#survivalResultOverlay>.wr-round{max-height:90svh;overflow:auto;margin:16px}
@media(max-width:1100px){.wr-round.wr-round{padding:20px}}
@media(max-width:650px){.wr-round.wr-round{border-radius:22px;padding:18px}.wr-round .demo-track{margin-block:14px}.wr-round .demo-word{font-size:33px;padding-block:14px}.wr-round .demo-options button{min-height:50px;padding:10px}}
@media(max-width:360px){.wr-round.wr-round{padding:16px}}
@media(prefers-reduced-motion:reduce){.wr-round *{animation:none!important;transition:none!important}}

/* The playable public lesson and the authenticated six-stage lesson share
   these presentation rules. Native IDs and actions retain their real controllers. */
.learning-round.learning-round{box-sizing:border-box;min-width:0;width:100%;max-width:640px;margin:20px auto 90px;padding:26px;border:1px solid #30384f;border-radius:28px;background:linear-gradient(145deg,#1c263a,#141c2c);box-shadow:0 18px 48px #0003;color:#edf1f7;font:400 16px/1.5 'DM Sans',sans-serif;text-align:start}
.learning-round *{box-sizing:border-box}
.learning-round :is(.demo-track,.qpb){height:8px;background:#101622;border-radius:20px;overflow:hidden;margin-block:20px}
.learning-round :is(.demo-track span,.qpf){display:block;height:100%;background:linear-gradient(90deg,#ffd255,#fc9d52);border-radius:20px}
.learning-round :is(.demo-count,.qc){white-space:nowrap;color:#ffd255;font:800 16px/1.5 'DM Sans',sans-serif;background:#ffd25514;border:1px solid #ffd25535;border-radius:12px;padding:6px 10px}
.learning-round :is(.demo-word[data-learning-target=true],.w-pron,.speak-hint,#repAr){color:#ffa45c;font:700 clamp(30px,4vw,42px)/1.35 'DM Sans',sans-serif;letter-spacing:normal;overflow-wrap:anywhere}
.learning-round :is(.native-spelling,.w-ar){color:#b7c9e2;font:500 16px/1.5 system-ui,sans-serif}
.learning-round :is(.demo-options,#optGrid){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.learning-round :is(.demo-options button,#optGrid .opt){min-width:0;min-height:59px;margin:0;padding:12px;border:2px solid #30384f;border-radius:15px;background:#101622;color:#edf1f7;box-shadow:none;font:700 16px/1.5 'DM Sans',sans-serif;letter-spacing:normal;overflow-wrap:anywhere}
.learning-round :is(.demo-options button.correct,#optGrid .opt.ok){border-color:#43ddb2;background:#43ddb222;color:#43ddb2}
.learning-round :is(.demo-options button.incorrect,#optGrid .opt.err){border-color:#ef476f;background:#ef476f22;color:#ff9bb0}
.learning-round :is(.flash-meaning,#fTr){padding:18px;text-align:center;background:#101622;border:1px solid #30384f;border-radius:16px;font:500 22px/1.5 'DM Sans',sans-serif;color:#ffd255;overflow-wrap:anywhere}
.learning-round :is(.demo-input,#exerciseForm){display:grid;gap:10px;width:100%;min-width:0}
.learning-round :is(.demo-input input,#answerText){min-width:0;width:100%;margin:0;background:#101622;color:#edf1f7;border:2px solid #30384f;border-radius:14px;padding:14px;font:400 16px/1.5 'DM Sans',sans-serif}
.learning-round :is(.lesson-wide,#fBtns button,.vb,#nxtBtn){width:100%;border:0;border-radius:14px;padding:14px 18px;background:#ffd255;color:#17202b;font:800 16px/1.5 'DM Sans',sans-serif}
#speakV145 .learning-round :is(.score-bar,#levelDots,#comboBar){display:none!important}
#speakV145 .learning-round :is(#wCard,#fCard,#repCard){padding:20px 0;margin:12px 0;background:none;border:0;box-shadow:none;min-height:0;transform:none;text-align:center}
#speakV145 .learning-round #fBtns{grid-template-columns:1fr}
#speakV145 .learning-round .qh{display:flex;gap:12px;align-items:center;margin:12px 0}
#speakV145 .learning-round .qpb{flex:1}
#speakV145 .learning-round :is(#exoTypeLabel,.ref-learning-heading){color:#ffd255;font:800 14px/1.5 'DM Sans',sans-serif;letter-spacing:normal;margin:12px 0}
#speakV145 .learning-round #blocBanner{background:none;border:0;padding:0;justify-content:space-between;color:#b7c9e2;font-size:12px}
#speakV145 .learning-round #heartsBar{font-size:16px;text-align:end}
[data-pronunciation-result=correct]{color:#43ddb2!important;background:#43ddb218!important;border:2px solid #43ddb2!important;border-radius:14px;padding:12px}
[data-pronunciation-result=incorrect]{color:#ff9bb0!important;background:#ef476f18!important;border:2px solid #ef476f!important;border-radius:14px;padding:12px}
@media(max-width:1100px){.learning-round.learning-round{padding:20px}}
@media(max-width:650px){.learning-round.learning-round{border-radius:22px;padding:18px;width:calc(100% - 24px)}.learning-round :is(.demo-options button,#optGrid .opt){min-height:50px;padding:10px}.learning-round :is(.demo-word[data-learning-target=true],.w-pron,.speak-hint,#repAr){font-size:33px}}
@media(max-width:360px){.learning-round.learning-round{padding:16px}}
/* Original v145 mobile rules use !important for cards and screen dimensions. */
#speakV145 .learning-round.learning-round{max-width:640px!important;min-height:0!important;padding:26px!important;margin:58px auto 100px!important}
#speakV145 .learning-round :is(#wCard,#fCard,#repCard){background:transparent!important;border:0!important;box-shadow:none!important;min-height:0!important;padding:20px 0!important;transform:none!important}
#speakV145 .learning-round #fHint{font:400 14px/1.5 'DM Sans',sans-serif;color:#b7c9e2}
@media(max-width:650px){#speakV145 .learning-round.learning-round{padding:18px!important;width:calc(100% - 24px)!important}}
@media(max-width:360px){#speakV145 .learning-round.learning-round{padding:16px!important}}

.learning-round .demo-options button[data-learning-target=true]:not(.correct):not(.incorrect),#speakV145 .learning-round #optGrid .opt[data-learning-target=true]:not(.ok):not(.err){color:#ffa45c}
/* Semantic target colors must override the ID-weighted legacy/shared rules. */
.learning-round .demo-options button[data-learning-target=true]:not(.correct):not(.incorrect),.learning-round .demo-input input[data-learning-target=true]{color:#ffa45c!important}

/* The signed in view uses the very same 2-column grid as the public trial.
   Legacy #defiScreen styles may not resize/reflow the answer cards. */
#speakV145 #defiScreen[data-worldrush-screen] .wr-round.wr-round{box-sizing:border-box;width:100%;max-width:640px;margin-inline:auto}
#speakV145 #defiScreen[data-worldrush-screen] .wr-round.wr-round .demo-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#speakV145 #defiScreen[data-worldrush-screen] .wr-round.wr-round .demo-options button{box-sizing:border-box;min-width:0;width:100%;min-height:59px;max-width:100%;padding:12px;border-radius:15px;line-height:1.5}
@media(max-width:650px){
 #speakV145 #defiScreen[data-worldrush-screen] .wr-round.wr-round .demo-options button{min-height:50px;padding:10px}
}


/* WorldRush preflight: finite audio warmup, never spend a question's 5 seconds
   on loading. Same dark violet / warm yellow game design on all screen sizes. */
.worldrush-preparation-overlay{
 position:fixed;inset:0;z-index:99999;
 display:grid;place-items:center;
 padding:20px max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom));
 background:#0a0a17e8;
 backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);
}
.worldrush-preparation-card{
 box-sizing:border-box;width:min(100%,440px);
 padding:clamp(24px,6vw,36px);
 border:1px solid #54456a;border-radius:26px;
 background:radial-gradient(ellipse at 40% 0,#622e6980,transparent 70%),linear-gradient(145deg,#29203e,#17172c);
 box-shadow:0 22px 75px #0009;
 text-align:center;color:#fff;
 font:500 15px/1.5 'DM Sans',system-ui,sans-serif;
}
.worldrush-preparation-card .worldrush-preparation-mark{
 display:block;margin:0 auto 12px;font-size:44px;
 filter:drop-shadow(0 2px 13px #ffcf5888);
}
.worldrush-preparation-card h2{
 margin:0 0 9px;
 color:#ffe15f;font:900 clamp(25px,6vw,32px)/1.2 'DM Sans',system-ui,sans-serif;
}
.worldrush-preparation-card p{margin:0 0 18px;color:#eae3f0;font-size:14px}
.worldrush-preparation-track{
 display:block;width:100%;height:14px;margin:0 0 12px;
 overflow:hidden;border:1px solid #746887;border-radius:99px;
 background:#0e1020;
}
.worldrush-preparation-track>span{
 display:block;width:0;height:100%;
 background:linear-gradient(90deg,#ffb544,#ffed3c);
 border-radius:inherit;transition:width .15s ease-out;
}
.worldrush-preparation-card .worldrush-preparation-status{
 color:#ffe279;font-weight:800;font-size:14px;margin:0 0 10px;
 font-variant-numeric:tabular-nums;
}
.worldrush-preparation-card small{display:block;color:#bfb8d2;font-size:12px;line-height:1.5}
@media(prefers-reduced-motion:reduce){
 .worldrush-preparation-track>span{transition:none}
}
