/* =====================================================================
   Word Cannon Battle: sunny islands look (host projector + phone)
   Host coordinates follow the 1920x1080 concept frame; the stage is
   scaled to fit by JS (WCB.fitStage), the backdrop is full-bleed.
   ===================================================================== */
:root {
    --wc-title: 'Luckiest Guy', 'Poppins', system-ui, sans-serif;
    --wc-ui: 'Poppins', system-ui, sans-serif;
    --wc-body: 'Nunito', system-ui, sans-serif;
    --wc-navy: #13204f;
    --wc-panel: #16163a;
    --wc-night: #24124f;
    --wc-yellow: #ffd23f;
    --wc-gold: #ffc531;
    --wc-red: #d62828;
    --wc-red-l: #ff6b6b;
    --wc-blue: #2f6bff;
    --wc-blue-l: #7fc8ff;
    --wc-green: #22b357;
    --wc-orange: #ff8c1a;
}

/* ---------- outlined gradient text ---------- */
.wc-pop {
    position: relative; display: inline-block; color: transparent; white-space: pre;
    --pop-fill: linear-gradient(#fff6b0, #ffd23f 45%, #ff9a1a); --pop-stroke: var(--wc-navy); --pop-sw: 16px; --pop-shadow: 0 8px 0 rgba(0,0,0,0.35);
}
.wc-pop::before, .wc-pop::after { content: attr(data-text); position: absolute; left: 0; top: 0; white-space: pre; }
.wc-pop::before { color: var(--pop-stroke); -webkit-text-stroke: var(--pop-sw) var(--pop-stroke); text-shadow: var(--pop-shadow); }
.wc-pop::after { background: var(--pop-fill); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

.wc-logo {
    position: absolute; left: 34px; top: 28px; height: 76px; padding: 0 48px 0 28px; box-sizing: border-box; z-index: 12;
    display: flex; align-items: center; background: #fff; border: 4px solid var(--wc-yellow); border-radius: 38px;
    box-shadow: 4px 9px 0 rgba(0,0,0,0.25); font: 800 48px/1 var(--wc-ui); color: #5b2bd6; letter-spacing: 0;
}
.wc-logo span { color: var(--wc-orange); }
.wc-logo svg { position: absolute; right: 10px; top: 4px; width: 28px; height: 28px; }

/* ---------- scene ---------- */
.wc-scene { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden; }
.wc-scene > svg.wc-bg, .wc-scene > svg.wc-fg { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
.wc-fort, .wc-cannon, .wc-flag { position: absolute; }
.wc-fort svg, .wc-cannon svg, .wc-flag svg { display: block; width: 100%; height: 100%; overflow: visible; }
.wc-flag { z-index: 2; }
.wc-fort { z-index: 3; }
/* Cannons sit above storm tint so they stay fully opaque; FX (balls) stay above cannons. */
.wc-cannon {
    z-index: 7; opacity: 1 !important; isolation: isolate;
    filter: none; mix-blend-mode: normal; pointer-events: none;
}
.wc-cannon svg { opacity: 1 !important; }
.wc-fort--red { left: 125px; top: 476px; width: 300px; height: 244px; }
.wc-fort--blue { left: 1490px; top: 505px; width: 310px; height: 237px; }
.wc-flag--red { left: 214px; top: 226px; width: 228px; height: 285px; transform-origin: 14px 285px; }
.wc-flag--blue { left: 1628px; top: 244px; width: 240px; height: 300px; transform-origin: 14px 300px; }
.wc-cannon--red { left: 307px; top: 544px; width: 300px; height: 220px; }
.wc-cannon--blue { left: 1343px; top: 572px; width: 300px; height: 220px; }
.wc-fort .wc-dmg { opacity: 0; transition: opacity 0.4s ease; }
.wc-fort[data-dmg="1"] .wc-dmg-1, .wc-fort[data-dmg="2"] .wc-dmg-1, .wc-fort[data-dmg="2"] .wc-dmg-2,
.wc-fort[data-dmg="3"] .wc-dmg-1, .wc-fort[data-dmg="3"] .wc-dmg-2, .wc-fort[data-dmg="3"] .wc-dmg-3 { opacity: 1; }
.wc-fort[data-dmg="2"] .wc-merlon--1, .wc-fort[data-dmg="2"] .wc-merlon--4,
.wc-fort[data-dmg="3"] .wc-merlon { transform: translateY(16px) rotate(18deg); opacity: 0.6; transform-box: fill-box; transform-origin: center; }
.wc-fort[data-dmg="3"] svg { filter: saturate(0.55) brightness(0.72); }
.wc-fort.is-hit { animation: wcFortHit 0.45s ease-out; }
@keyframes wcFortHit { 0% { transform: translate(0,0); } 20% { transform: translate(-10px, 4px); } 45% { transform: translate(8px, -3px); } 70% { transform: translate(-4px, 2px); } 100% { transform: none; } }
.wc-cannon.is-recoil svg { animation: wcRecoilR 0.55s cubic-bezier(.2,.9,.3,1); }
.wc-cannon--blue.is-recoil svg { animation-name: wcRecoilB; }
@keyframes wcRecoilR { 0% { transform: none; } 12% { transform: translateX(-34px) rotate(-2deg); } 100% { transform: none; } }
@keyframes wcRecoilB { 0% { transform: none; } 12% { transform: translateX(34px) rotate(2deg); } 100% { transform: none; } }
.wc-flag .wc-flag-cloth { transform-box: fill-box; transform-origin: 0% 50%; animation: wcWave 1.6s ease-in-out infinite alternate; }
@keyframes wcWave { from { transform: skewY(-3deg) scaleX(0.97); } to { transform: skewY(3deg) scaleX(1.02); } }
.wc-flag.is-falling { animation: wcFlagFall 1.5s cubic-bezier(.55,0,.8,.4) forwards; }
.wc-flag--blue.is-falling { animation-name: wcFlagFallB; }
.wc-flag.is-down { transform: rotate(93deg); }
.wc-flag--blue.is-down { transform: rotate(-93deg); }
@keyframes wcFlagFall { 0% { transform: rotate(0); } 15% { transform: rotate(-6deg); } 100% { transform: rotate(93deg); } }
@keyframes wcFlagFallB { 0% { transform: rotate(0); } 15% { transform: rotate(6deg); } 100% { transform: rotate(-93deg); } }
.wc-cloud { animation: wcDrift 26s ease-in-out infinite alternate; }
.wc-clouds-far .wc-cloud:nth-child(2n) { animation-duration: 34s; animation-delay: -9s; }
@keyframes wcDrift { from { transform: translateX(-30px); } to { transform: translateX(30px); } }
.wc-clouds-near .wc-cloud, .wc-clouds-far .wc-cloud { transform-box: fill-box; }
.wc-gull { animation: wcGull 1.1s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.wc-gull--b { animation-delay: -0.4s; } .wc-gull--c { animation-delay: -0.8s; }
@keyframes wcGull { from { transform: scaleY(1); } to { transform: scaleY(0.55) translateY(-4px); } }
.wc-glint { animation: wcGlint 3.6s ease-in-out infinite; }
@keyframes wcGlint { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.85; } }
.wc-palm-crown { animation: wcSway 4s ease-in-out infinite alternate; }
@keyframes wcSway { from { transform: rotate(-2deg); } to { transform: rotate(2.5deg); } }
.wc-foam { animation: wcFoam 3s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes wcFoam { from { transform: scaleX(0.97); opacity: 0.45; } to { transform: scaleX(1.03); opacity: 0.7; } }

/* storm — keep below cannons (z-index 8) so guns stay solid */
.wc-storm-tint { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity 2.2s ease;
    background: linear-gradient(rgba(38,40,78,0.55), rgba(60,66,110,0.4) 55%, rgba(20,40,80,0.4)); }
.wc-storm-top { position: absolute; left: -40px; top: -40px; width: 2000px; height: 360px; pointer-events: none; opacity: 0; transform: translateY(-120px); transition: opacity 2s ease, transform 2.4s cubic-bezier(.2,.8,.3,1); }
.wc-storm-top svg { width: 100%; height: 100%; display: block; }
.is-storm .wc-storm-tint { opacity: 1; }
.is-storm .wc-storm-top { opacity: 1; transform: none; animation: wcCloudRoll 9s ease-in-out infinite alternate; }
@keyframes wcCloudRoll { from { transform: translateX(-20px); } to { transform: translateX(20px); } }
.is-storm .wc-bg .wc-gulls, .is-storm .wc-bg .wc-glints { opacity: 0; transition: opacity 1s; }
.is-storm .wc-palm-crown { animation-duration: 1.1s; }
.is-storm .wc-flag .wc-flag-cloth { animation-duration: 0.45s; }
.is-storm .wc-waves path { stroke: #e6eeff; opacity: 0.5; animation: wcChop 1.2s ease-in-out infinite alternate; transform-box: fill-box; }
@keyframes wcChop { from { transform: translateY(0); } to { transform: translateY(-8px) scaleX(1.08); } }

/* ---------- host shell ---------- */
.wc-host {
    position: fixed; inset: 0; z-index: 500; overflow: hidden; color: #fff; font-family: var(--wc-body);
    background: linear-gradient(#2f8fe6 0%, #8fd3ff 56%, #47c3ee 59%, #0866b3 100%);
}
.wc-host[hidden] { display: none !important; }
.wc-host.is-storm { background: linear-gradient(#262a48 0%, #474d78 56%, #2e5c8a 59%, #0c2f5c 100%); }
.wc-stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; }
.wc-shake { position: absolute; inset: 0; }
.wc-fx { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; z-index: 9; }
.wc-hud, .wc-labels, .wc-banners { position: absolute; inset: 0; pointer-events: none; }
.wc-hud { z-index: 8; }
.wc-labels { z-index: 9; }
.wc-banners { z-index: 16; display: flex; align-items: center; justify-content: center; }
.wc-vignette { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 15; transition: opacity 0.6s ease;
    background: radial-gradient(ellipse at 50% 55%, rgba(0,0,0,0) 35%, rgba(5,8,25,0.72) 100%); }
.wc-vignette.is-on { opacity: 1; }
.wc-slowmo { position: absolute; left: 0; right: 0; top: 372px; text-align: center; font: 800 52px/1 var(--wc-ui); letter-spacing: 0.06em; color: rgba(255,255,255,0.85);
    text-shadow: 0 4px 0 rgba(0,0,0,0.35); z-index: 17; opacity: 0; transition: opacity 0.4s; pointer-events: none; }
/* Appears only after the question card has slid away (0.35 s), below the answer pill lane. */
.wc-slowmo.is-on { opacity: 1; transition-delay: 0.35s; animation: wcPulse 0.9s ease-in-out 0.35s infinite alternate backwards; }
@keyframes wcPulse { from { opacity: 0.55; } to { opacity: 1; } }

/* health bars */
.wc-bar { position: absolute; width: 360px; height: 58px; box-sizing: border-box; border-radius: 29px; background: #fff; border: 5px solid var(--wc-navy);
    box-shadow: 3px 7px 0 rgba(0,0,0,0.28); overflow: hidden; transition: transform 0.3s; }
.wc-bar--red { left: 180px; top: 403px; }
.wc-bar--blue { left: 1400px; top: 415px; }
.wc-score { position: absolute; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px;
    background: #16163a; border: 4px solid #fff; color: #fff; font: 800 28px/1 var(--wc-ui); box-shadow: 3px 6px 0 rgba(0,0,0,0.35);
    z-index: 4; }
.wc-score--red { left: 180px; top: 472px; border-color: #ff6b6b; }
.wc-score--blue { left: 1400px; top: 484px; border-color: #7fc8ff; }
.wc-wins { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 10px; border-radius: 999px;
    background: linear-gradient(#ffe066, #ffb020); border: 3px solid #fff6b0; color: #3b2300; box-shadow: 0 3px 0 rgba(0,0,0,0.25); }
.wc-wins-ic { font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 0 rgba(0,0,0,0.25)); }
.wc-wins-label { font-size: 18px; letter-spacing: 0.06em; opacity: 0.9; }
.wc-wins-num { font-size: 38px; min-width: 0.9em; text-align: center; color: #3b2300; }
.wc-score-label { font-size: 18px; opacity: 0.85; letter-spacing: 0.04em; margin-left: 2px; }
.wc-score-num { font-size: 34px; color: #ffd23f; min-width: 1.2em; text-align: center; }
.wc-score.is-pop { animation: wcPopIn 0.4s cubic-bezier(.3,1.7,.6,1); }
.wc-score.is-win-pop .wc-wins { animation: wcWinChip 0.55s cubic-bezier(.3,1.8,.6,1); }
@keyframes wcWinChip { 0% { transform: scale(0.7); } 55% { transform: scale(1.18); } 100% { transform: scale(1); } }
.wc-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transition: width 0.7s cubic-bezier(.2,.8,.3,1); }
.wc-bar--red .wc-bar-fill { background: linear-gradient(#ff7a7a, #d62828 60%, #a51d1d); }
.wc-bar--blue .wc-bar-fill { background: linear-gradient(#8fd0ff, #2f6bff 60%, #1f4fc9); }
.wc-bar-fill::after { content: ''; position: absolute; left: 8px; right: 8px; top: 6px; height: 9px; border-radius: 6px; background: rgba(255,255,255,0.35); }
.wc-bar-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; font: 800 30px/1 var(--wc-ui); color: #fff;
    -webkit-text-stroke: 7px var(--wc-navy); paint-order: stroke fill; letter-spacing: 0.01em; }
.wc-bar.is-hit { animation: wcBarHit 0.5s ease-out; }
@keyframes wcBarHit { 0% { transform: scale(1); } 25% { transform: scale(1.08) rotate(-1.5deg); } 60% { transform: scale(0.98) rotate(1deg); } 100% { transform: none; } }
.wc-bar.is-low .wc-bar-fill { animation: wcLow 0.6s ease-in-out infinite alternate; }
@keyframes wcLow { from { filter: brightness(1); } to { filter: brightness(1.45); } }

/* damage number */
.wc-dmgnum { position: absolute; transform: translate(-50%, 0); font: 76px/1 var(--wc-title); color: #ff4d4d; -webkit-text-stroke: 10px #fff; paint-order: stroke fill;
    text-shadow: 0 6px 0 rgba(0,0,0,0.25); animation: wcDmg 1.6s cubic-bezier(.2,.9,.3,1) forwards; letter-spacing: 0.02em; }
.wc-dmgnum.is-lucky { color: #ffb300; font-size: 92px; }
@keyframes wcDmg { 0% { transform: translate(-50%, 30px) scale(0.3); opacity: 0; } 18% { transform: translate(-50%, -10px) scale(1.15); opacity: 1; } 35% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { transform: translate(-50%, -50px); opacity: 0; } }

/* answered phones near the forts */
.wc-phones { position: absolute; display: flex; align-items: flex-end; gap: 6px; }
.wc-phones--red { left: 336px; top: 676px; }
.wc-phones--blue { left: 1660px; top: 700px; }
.wc-phone-ic { position: relative; width: 50px; height: 82px; border-radius: 10px; background: linear-gradient(135deg, #7b8cff, #4b2bd6); border: 4px solid #1b1b3a; box-shadow: 2px 5px 0 rgba(0,0,0,0.3); }
.wc-phone-ic::after { content: ''; position: absolute; left: 5px; right: 5px; top: 6px; bottom: 10px; border-radius: 4px; background: linear-gradient(160deg, #a7c4ff, #6a7dff); }
.wc-phone-check { position: absolute; right: -16px; top: -16px; width: 38px; height: 38px; border-radius: 50%; background: var(--wc-green); border: 4px solid #fff; display: none; z-index: 1;
    color: #fff; font: 800 24px/30px var(--wc-ui); text-align: center; }
.wc-phones.is-all .wc-phone-check { display: block; animation: wcPopIn 0.4s cubic-bezier(.3,1.8,.6,1); }
.wc-phone-count { font: 800 28px/1 var(--wc-ui); color: #fff; -webkit-text-stroke: 6px var(--wc-navy); paint-order: stroke fill; margin-left: 6px; margin-bottom: 4px; }
.wc-phones[hidden] { display: none; }

/* shot labels */
.wc-label { position: absolute; transform: translate(-50%, -50%); padding: 8px 24px 9px; border-radius: 26px; font: 800 32px/1 var(--wc-ui); color: #fff; white-space: nowrap;
    border: 5px solid #fff; box-shadow: 3px 7px 0 rgba(0,0,0,0.28); animation: wcLabel 1.9s cubic-bezier(.2,.9,.3,1) forwards; letter-spacing: 0.01em;
    display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.wc-label-main { display: block; }
.wc-label-detail { display: block; font: 700 22px/1 var(--wc-body); opacity: 0.95; letter-spacing: 0; }
.wc-label.is-compact { font-size: 24px; padding: 5px 16px 6px; border-width: 4px; gap: 2px; }
.wc-label.is-compact .wc-label-detail { font-size: 17px; }
.wc-label.is-fast { background: var(--wc-green); }
.wc-label.is-good { background: #1d9bd1; }
.wc-label.is-slow { background: var(--wc-orange); }
.wc-label.is-miss { background: #ff8c1a; }
.wc-label.is-blown { background: #3aa8e6; }
.wc-label.is-lucky { background: #f2a900; color: #3b2300; border-color: #fff6b0; }
.wc-label.is-last { background: var(--wc-red); }
.wc-label.is-long { animation-duration: 3.8s; }
@keyframes wcLabel { 0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; } 12% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; } 22% { transform: translate(-50%, -50%) scale(1); } 85% { opacity: 1; } 100% { transform: translate(-50%, -80%) scale(0.95); opacity: 0; } }

/* banners */
.wc-banner { position: absolute; left: 0; right: 0; text-align: center; font: 200px/1 var(--wc-title); letter-spacing: 0.02em; animation: wcBanner 2.4s cubic-bezier(.2,.9,.3,1) forwards; }
.wc-banner .wc-pop { --pop-sw: 26px; }
/* Banner lanes: storm in the open sky under the question area; blown / lucky in the open
   sea between the cannons; fort-down / time-up / winner only while the question card is away. */
.wc-banner--storm { top: 400px; }
.wc-banner--storm .wc-pop { --pop-fill: linear-gradient(#e9e4ff, #b39dff 50%, #6a4cff); --pop-stroke: #1b1240; font-size: 180px; }
.wc-banner--blown { top: 800px; font-size: 104px; }
.wc-banner--blown .wc-pop { --pop-fill: linear-gradient(#ffffff, #7fd1ff 55%, #2f8fe6); --pop-stroke: #0d2a5c; --pop-sw: 20px; }
.wc-banner--lucky { top: 800px; font-size: 108px; }
.wc-banner--lucky .wc-pop { --pop-fill: linear-gradient(#fff6b0, #ffd23f 55%, #ff9a1a); --pop-stroke: #3b2300; --pop-sw: 20px; }
.wc-banner--last { top: 110px; font-size: 160px; animation-duration: 3s; }
.wc-banner--last .wc-pop { --pop-fill: linear-gradient(#ffffff, #ffffff); --pop-stroke: #13204f; }
.wc-banner--win { top: 150px; font-size: 168px; animation: wcWin 5.4s cubic-bezier(.2,.9,.3,1) forwards; }
.wc-banner--win.is-blue .wc-pop { --pop-fill: linear-gradient(#e6f6ff, #7fd1ff 50%, #2f6bff); --pop-stroke: #0d1f5c; }
.wc-banner--win.is-red .wc-pop { --pop-fill: linear-gradient(#ffecec, #ff7a7a 50%, #d62828); --pop-stroke: #4a0b0b; }
.wc-banner--win.is-draw .wc-pop { --pop-fill: linear-gradient(#fff6b0, #ffd23f 50%, #ff9a1a); }
.wc-banner--timeup { top: 120px; font-size: 150px; }
.wc-banner-pill { position: absolute; left: 50%; top: 470px; transform: translateX(-50%); padding: 16px 44px; border-radius: 999px; background: var(--wc-red); border: 6px solid #fff;
    font: 800 64px/1 var(--wc-ui); color: #fff; box-shadow: 4px 9px 0 rgba(0,0,0,0.3); white-space: nowrap; animation: wcPill 3s cubic-bezier(.2,.9,.3,1) forwards; }
.wc-banner-pill { top: 300px; }
.wc-banner-pill.is-sub { top: 820px; background: var(--wc-night); border-color: var(--wc-yellow); font-size: 44px; }
@keyframes wcBanner { 0% { transform: scale(0.2) rotate(-6deg); opacity: 0; } 14% { transform: scale(1.12) rotate(2deg); opacity: 1; } 24% { transform: scale(1) rotate(0); } 82% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.08); } }
@keyframes wcWin { 0% { transform: scale(0.2); opacity: 0; } 10% { transform: scale(1.15); opacity: 1; } 18% { transform: scale(1); } 100% { transform: scale(1.04); opacity: 1; } }
@keyframes wcPill { 0% { transform: translateX(-50%) scale(0.3); opacity: 0; } 12% { transform: translateX(-50%) scale(1.1); opacity: 1; } 22% { transform: translateX(-50%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wcPopIn { from { transform: scale(0.2); } to { transform: scale(1); } }

/* storm chip */
.wc-storm-chip { position: absolute; left: 1487px; top: 32px; height: 84px; min-width: 425px; box-sizing: border-box; border-radius: 42px; background: var(--wc-night);
    border: 5px solid var(--wc-yellow); display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 30px 0 22px; z-index: 12;
    font: 800 44px/1 var(--wc-ui); color: #fff; box-shadow: 3px 8px 0 rgba(0,0,0,0.3); letter-spacing: 0.01em; white-space: nowrap; }
.wc-storm-chip svg { width: 62px; height: 54px; flex: 0 0 auto; }
.wc-storm-chip b { font-weight: normal; font-variant-numeric: tabular-nums; }
.wc-storm-chip.is-storm { color: var(--wc-yellow); animation: wcStormChip 0.8s ease-in-out infinite alternate; min-width: 0; }
.wc-storm-chip.is-storm small { color: #fff; font: 800 34px/1 var(--wc-ui); opacity: 0.85; margin-left: 6px; }
.wc-storm-chip.is-soon { animation: wcSoon 0.5s ease-in-out infinite alternate; }
@keyframes wcStormChip { from { background: #3a1f8f; } to { background: #7b3fe4; } }
@keyframes wcSoon { from { border-color: var(--wc-yellow); } to { border-color: #ff8c1a; } }

/* CSS rain (on top of canvas rain): slanted drop tiles that scroll down-left, so the
   storm visibly rains on projectors even when the canvas is throttled. Tiles move a whole
   number of tiles per loop -> seamless. */
.wc-rain-layer {
    position: absolute; inset: 0; pointer-events: none; z-index: 6; opacity: 0; transition: opacity 1.2s ease;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><g stroke='rgba(228,238,255,0.8)' stroke-width='2.6' stroke-linecap='round'><line x1='14' y1='4' x2='7.5' y2='30'/><line x1='58' y1='44' x2='52.0' y2='68'/><line x1='98' y1='16' x2='91.0' y2='44'/><line x1='36' y1='80' x2='29.5' y2='106'/><line x1='80' y1='86' x2='74.5' y2='108'/><line x1='112' y1='62' x2='106.0' y2='86'/></g></svg>"), url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><g stroke='rgba(210,225,255,0.55)' stroke-width='1.8' stroke-linecap='round'><line x1='20' y1='10' x2='15.5' y2='28'/><line x1='70' y1='60' x2='66.0' y2='76'/><line x1='130' y1='24' x2='125.5' y2='42'/><line x1='160' y1='110' x2='156.0' y2='126'/><line x1='48' y1='128' x2='43.5' y2='146'/><line x1='104' y1='150' x2='100.0' y2='166'/><line x1='10' y1='84' x2='6.5' y2='98'/></g></svg>");
    background-size: 120px 120px, 180px 180px;
}
.is-storm .wc-rain-layer { opacity: 0.75; animation: wcRainFall 0.75s linear infinite; }
@keyframes wcRainFall {
    from { background-position: 0 0, 0 0; }
    to { background-position: -120px 480px, -180px 360px; }
}

/* question card — kept in the clear center sky above forts / bars / caption */
.wc-question { position: absolute; inset: 0; pointer-events: none; z-index: 11; transition: opacity 0.35s ease, transform 0.35s ease; }
.wc-stage.is-cardless .wc-question { opacity: 0; transform: translateY(-40px); }
.wc-qcard { position: absolute; left: 520px; top: 96px; width: 880px; max-height: 176px; box-sizing: border-box; background: #fffaf0; border: 6px solid var(--wc-gold); border-radius: 32px;
    box-shadow: 4px 10px 0 rgba(0,0,0,0.28); display: flex; align-items: center; padding: 22px 140px 18px 36px; color: #2a1f4f;
    animation: wcCardIn 0.55s cubic-bezier(.3,1.5,.6,1) both; overflow: hidden; }
.wc-qcard.is-out { animation: wcCardOut 0.4s ease-in both; }
.wc-qcard-pill { position: absolute; left: 50%; top: -26px; transform: translateX(-50%); background: var(--wc-blue); color: #fff; font: 800 32px/1 var(--wc-ui); padding: 10px 34px; border-radius: 24px; border: 4px solid #fffaf0; letter-spacing: 0.04em; }
.wc-qcard-pill.is-sudden { background: var(--wc-red); }
.wc-qcard-text { font: 700 52px/1.08 var(--wc-body); flex: 1 1 auto; text-align: center; overflow-wrap: anywhere; max-height: 134px; overflow: hidden; }
.wc-qcard-text.is-md { font-size: 44px; }
.wc-qcard-text.is-sm { font-size: 36px; }
.wc-qcard-text.is-xs { font-size: 30px; }
.wc-ring { position: absolute; right: 28px; top: 50%; width: 92px; height: 92px; margin-top: -46px; }
.wc-ring svg { width: 100%; height: 100%; display: block; transform: rotate(-90deg); }
.wc-ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 40px/1 var(--wc-ui); color: #fff; }
.wc-ring.is-low .wc-ring-num { color: #ffd23f; }
.wc-ring.is-paused { opacity: 0.6; }
@keyframes wcCardIn { from { transform: translateY(-60px) scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wcCardOut { to { transform: translateY(-40px) scale(0.9); opacity: 0; } }
.wc-qmeta { position: absolute; left: 520px; top: 278px; width: 880px; max-height: 100px; display: flex; justify-content: center; align-content: flex-start; gap: 10px; flex-wrap: wrap; overflow: hidden; }
.wc-count { background: rgba(22,22,58,0.88); border: 4px solid rgba(255,255,255,0.7); border-radius: 999px; padding: 6px 20px; font: 800 28px/1 var(--wc-ui); color: #fff; }
.wc-count b { color: var(--wc-yellow); font-weight: normal; }
.wc-choice { background: #fff; color: #2a1f4f; border: 3px solid var(--wc-navy); border-radius: 16px; padding: 6px 16px; font: 700 24px/1.1 var(--wc-body); box-shadow: 2px 4px 0 rgba(0,0,0,0.25);
    max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-answer { position: absolute; left: 960px; top: 278px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 10px 36px 12px 28px; border-radius: 999px;
    background: var(--wc-green); border: 5px solid #fff; box-shadow: 3px 8px 0 rgba(0,0,0,0.28); font: 800 48px/1 var(--wc-ui); color: #fff; white-space: nowrap;
    max-width: min(720px, 90%); overflow: hidden; text-overflow: ellipsis;
    animation: wcAnswerIn 0.6s cubic-bezier(.3,1.7,.6,1) both; z-index: 12; }
.wc-answer svg { width: 42px; height: 42px; flex: 0 0 auto; }
@keyframes wcAnswerIn { from { transform: translateX(-50%) scale(0.2); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
.wc-review { position: absolute; left: 960px; top: 278px; transform: translateX(-50%); background: #fff; color: #a63247; border: 5px solid #ff4d6d; border-radius: 999px;
    padding: 8px 26px; font: 800 30px/1 var(--wc-ui); white-space: nowrap; box-shadow: 3px 7px 0 rgba(0,0,0,0.25); max-width: 860px; overflow: hidden; text-overflow: ellipsis; }

/* caption bar + host actions */
.wc-caption { position: absolute; left: 0; top: 948px; width: 1920px; height: 132px; box-sizing: border-box; z-index: 14;
    background: linear-gradient(rgba(27,15,74,0.95), rgba(13,6,40,0.97)); border-top: 6px solid var(--wc-gold);
    display: flex; align-items: center; padding: 0 28px; gap: 24px; }
.wc-caption-room { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; line-height: 1; padding: 10px 22px; border-radius: 22px; background: rgba(255,255,255,0.1); font: 700 22px var(--wc-body); color: #d9ccff; }
.wc-caption-room b { font: 800 46px/1 var(--wc-ui); color: #fff; letter-spacing: 0.08em; margin-top: 4px; }
.wc-caption-text { flex: 1 1 auto; margin: 0; text-align: center; font: 700 52px/1.1 var(--wc-body); color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-caption-text.is-swap { animation: wcCaptionIn 0.4s cubic-bezier(.2,.8,.3,1) both; }
.wc-caption-star { color: var(--wc-yellow); margin-right: 22px; font-size: 48px; }
@keyframes wcCaptionIn { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.wc-host-actions { flex: 0 0 auto; display: flex; gap: 10px; }
.wc-host-actions .btn { min-height: 0; height: 58px; padding: 0 22px; border-radius: 29px; border: 3px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.12);
    color: #fff; font: 800 26px/1 var(--wc-ui); letter-spacing: 0.01em; box-shadow: none; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.wc-host-actions .btn:hover { background: rgba(255,255,255,0.24); }
.wc-host-actions .btn.btn-blue { background: var(--wc-yellow); border-color: var(--wc-orange); color: #3b0f6b; }
.wc-host-actions .btn[hidden] { display: none; }

/* intro title card */
.wc-intro { position: absolute; inset: 0; z-index: 25; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    background: radial-gradient(ellipse at 50% 45%, rgba(10,40,90,0.15), rgba(6,16,48,0.6)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.wc-intro[hidden] { display: none; }
.wc-intro.is-out { animation: wcIntroOut 0.6s ease-in forwards; }
@keyframes wcIntroOut { to { opacity: 0; transform: scale(1.08); } }
.wc-intro .wc-logo { position: static; transform: scale(0.9); animation: wcFadeDown 0.6s both; }
.wc-title { display: flex; flex-direction: column; align-items: center; line-height: 0.95; }
.wc-title-line { position: relative; display: inline-block; color: transparent; font: 170px/1 var(--wc-title); letter-spacing: 0.02em; white-space: pre;
    animation: wcTitleIn 0.7s cubic-bezier(.3,1.6,.6,1) both; }
.wc-title-line::before, .wc-title-line::after { content: attr(data-text); position: absolute; left: 0; top: 0; white-space: pre; }
.wc-title-line::before { color: var(--wc-navy); -webkit-text-stroke: 26px var(--wc-navy); text-shadow: 0 12px 0 rgba(0,0,0,0.35); }
.wc-title-line::after { background: linear-gradient(#fff6b0, #ffd23f 48%, #ff9a1a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes wcTitleIn { from { transform: translateY(-120px) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wcFadeDown { from { transform: translateY(-80px) scale(0.9); opacity: 0; } to { transform: scale(0.9); opacity: 1; } }
.wc-vs { display: flex; align-items: stretch; gap: 40px; animation: wcFadeUp 0.6s 0.5s both; }
@keyframes wcFadeUp { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.wc-vs-team { min-width: 520px; max-width: 700px; border-radius: 30px; padding: 20px 30px; box-sizing: border-box; border: 6px solid #fff; box-shadow: 4px 10px 0 rgba(0,0,0,0.3); text-align: center; }
.wc-vs-team--red { background: linear-gradient(#ff6b6b, #d62828); }
.wc-vs-team--blue { background: linear-gradient(#7fc8ff, #2f6bff); }
.wc-vs-team h3 { margin: 0 0 8px; font: 800 52px/1 var(--wc-ui); color: #fff; -webkit-text-stroke: 8px rgba(0,0,0,0.35); paint-order: stroke fill; }
.wc-vs-team p { margin: 0; font: 700 32px/1.25 var(--wc-body); color: #fff; }
.wc-vs-mid { align-self: center; font: 90px/1 var(--wc-title); color: var(--wc-yellow); -webkit-text-stroke: 14px var(--wc-navy); paint-order: stroke fill; }
.wc-intro-sub { font: 700 44px/1.2 var(--wc-body); color: #fff; text-shadow: 0 4px 0 rgba(0,0,0,0.4); animation: wcFadeUp 0.6s 0.7s both; }
.wc-tutorial-card {
    max-width: min(980px, 92%); background: #fffaf0; color: #2a1f4f; border: 6px solid var(--wc-gold); border-radius: 28px;
    box-shadow: 4px 10px 0 rgba(0,0,0,0.35); padding: 22px 28px 20px; text-align: left; animation: wcFadeUp 0.6s 0.55s both;
}
.wc-tutorial-kicker { margin: 0 0 8px; font: 700 28px/1.1 var(--wc-body); color: #5a4a8a; text-transform: uppercase; letter-spacing: 0.06em; }
.wc-tutorial-list { margin: 0 0 16px; padding-left: 1.15em; font: 700 30px/1.35 var(--wc-body); }
.wc-tutorial-list li { margin: 0.3em 0; }
.wc-tutorial-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.wc-tutorial-actions .btn { border-radius: 999px !important; font: 700 34px/1 var(--wc-ui) !important; padding: 0.45em 1.3em !important; min-width: 160px; border: 0 !important; }
.wc-tutorial-actions .btn-grey { background: #e8ecf7 !important; box-shadow: 0 5px 0 #a8b0cc !important; color: #13204f !important; }
.wc-tutorial-actions .btn-blue { background: linear-gradient(#3bd16f, #22b357) !important; box-shadow: 0 5px 0 #157a3a !important; color: #fff !important; }
.wcp-tutorial-list { margin: 0.5rem 0 0.65rem; padding-left: 1.1em; text-align: left; font: 600 0.95rem/1.45 var(--wc-body); color: #4a3f72; }
.wcp-tutorial-list li { margin: 0.2em 0; }
.wcp-tutorial-note { margin: 0; font-size: 0.92rem !important; color: #5a4a8a !important; }

/* fade / visibility while the intro covers the stage */
.wc-stage.is-intro .wc-hud, .wc-stage.is-intro .wc-question, .wc-stage.is-intro .wc-storm-chip { opacity: 0; }
.wc-stage .wc-hud, .wc-stage .wc-question, .wc-stage .wc-storm-chip { transition: opacity 0.6s ease; }

/* challenge Accept/Reject — mounted inside .wc-host for fullscreen */
body.live-host-cannon .live-host-challenge-panel {
    position: absolute; left: 50%; bottom: calc(13vh + 1rem); transform: translateX(-50%);
    width: min(820px, 64vw); max-height: 52vh; gap: 0.9rem; z-index: 80; pointer-events: auto;
}
body.live-host-cannon .live-host-challenge-card {
    background: #fffaf0 !important; border: 5px solid var(--wc-gold) !important; border-radius: 24px !important; box-shadow: 4px 9px 0 rgba(0,0,0,0.35) !important;
    padding: clamp(0.8rem, 1.2vw, 1.4rem) !important; font-family: var(--wc-body); color: #2a1f4f; font-size: clamp(0.95rem, 1.15vw, 1.45rem);
    pointer-events: auto;
}
body.live-host-cannon .live-host-challenge-card-head strong { font: 800 clamp(1.2rem, 1.6vw, 2rem) var(--wc-ui); }
body.live-host-cannon .live-host-challenge-badge { background: var(--wc-blue) !important; color: #fff !important; font-family: var(--wc-ui); border-radius: 999px; padding: 0.15em 0.8em; }
body.live-host-cannon .live-host-challenge-term { font: 800 clamp(1.15rem, 1.5vw, 1.85rem) var(--wc-ui); color: var(--wc-blue); margin: 0 0 0.3rem; }
body.live-host-cannon .live-host-challenge-term strong { color: #2a1f4f; }
body.live-host-cannon .live-host-challenge-actions .btn { border-radius: 999px !important; font: 800 clamp(1rem, 1.3vw, 1.6rem) var(--wc-ui) !important; padding: 0.55em 1.6em !important; pointer-events: auto; }
body.live-host-cannon .live-challenge-accept { background: linear-gradient(#3bd16f, #22b357) !important; box-shadow: 0 5px 0 #157a3a !important; color: #fff !important; }
body.live-host-cannon .live-challenge-reject { background: linear-gradient(#ff6b6b, #d62828) !important; box-shadow: 0 5px 0 #7a0f0f !important; color: #fff !important; border: 0 !important; }
body.live-host-cannon .live-game-logo, body.wc-winner .live-game-logo, body.live-cannon-player .live-game-logo, body.wc-player-lobby .live-game-logo { display: none !important; }

/* ---------- host lobby (format = Word Cannon Battle) ---------- */
#wc-lobby-backdrop, #wc-lobby-title { display: none; }
body.wc-lobby #screen-live-host.active { position: relative; isolation: isolate; color: #fff; }
body.wc-lobby #screen-live-host.active #wc-lobby-backdrop { display: block; position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #2f8fe6; }
#wc-lobby-backdrop .wc-scene { left: 50%; top: 50%; transform-origin: 0 0; }
body.wc-lobby #screen-live-host.active > .top-bar { background: rgba(22,22,58,0.8); border-radius: 18px; border: 3px solid rgba(255,210,63,0.7); }
body.wc-lobby #screen-live-host.active > .top-bar h2 { color: #fff !important; font-family: var(--wc-ui) !important; letter-spacing: 0.01em; }
body.wc-lobby #screen-live-host.active .card { background: #fffaf0; border: 6px solid var(--wc-gold); border-radius: 28px; box-shadow: 4px 10px 0 rgba(0,0,0,0.3); color: #2a1f4f; }
body.wc-lobby #screen-live-host.active .card h2, body.wc-lobby #screen-live-host.active .card h3 { font-family: var(--wc-ui); color: var(--wc-navy) !important; letter-spacing: 0.01em; }
body.wc-lobby #screen-live-host.active .live-room-code { font-family: var(--wc-ui); color: var(--wc-navy); }
body.wc-lobby #screen-live-host.active .live-option input:checked + .live-option-title { color: var(--wc-blue); }
body.wc-lobby #screen-live-host.active #live-host-start:not(:disabled) {
    background: linear-gradient(#ffb347, #ff7a1a); border: 0; color: #fff; font-family: var(--wc-ui); font-size: 1.25rem; letter-spacing: 0.02em; box-shadow: 0 6px 0 #b8360a; text-shadow: 0 2px 0 rgba(0,0,0,0.25);
}
body.wc-lobby #screen-live-host.active #wc-lobby-title { display: block; text-align: center; margin: 0.2rem 0 1rem; position: relative; z-index: 1; }
#wc-lobby-title .wc-title-line { font-size: clamp(3rem, 7.4vw, 6.2rem); }
#wc-lobby-title .wc-title-line::before { -webkit-text-stroke: clamp(10px, 1.4vw, 20px) var(--wc-navy); text-shadow: 0 6px 0 rgba(0,0,0,0.35); }
#wc-lobby-title p { margin: 0.4rem auto 0; display: inline-block; padding: 0.35rem 1.1rem; border-radius: 999px; background: rgba(22,22,58,0.85); border: 3px solid var(--wc-yellow); font: 700 1.1rem var(--wc-body); color: #fff; }
.wc-lobby-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.wc-lobby-team { border-radius: 20px; padding: 0.7rem 0.9rem; color: #fff; border: 4px solid #fff; box-shadow: 0 5px 0 rgba(0,0,0,0.2); min-height: 6.5rem; }
.wc-lobby-team--red { background: linear-gradient(#ff6b6b, #d62828); }
.wc-lobby-team--blue { background: linear-gradient(#7fc8ff, #2f6bff); }
.wc-lobby-team h4 { margin: 0 0 0.4rem; font: 800 1.5rem var(--wc-ui); display: flex; justify-content: space-between; align-items: center; }
.wc-lobby-team h4 small { font: 700 0.95rem var(--wc-body); opacity: 0.9; }
.wc-lobby-team .live-team-member-row { background: rgba(255,255,255,0.18); border-radius: 12px; padding: 0.25rem 0.55rem; margin-top: 0.3rem; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.wc-lobby-team .live-remove-player-btn { color: #fff; }
.wc-lobby-team em { opacity: 0.85; }
.live-option--wide { grid-column: 1 / -1; }
.live-option--wide .live-option-title::after { content: 'NEW'; margin-left: 0.5rem; font: 800 0.72rem var(--wc-ui); background: var(--wc-orange); color: #fff; padding: 0.1rem 0.45rem; border-radius: 999px; vertical-align: 0.15em; letter-spacing: 0.04em; }
.wc-length-row { margin: 0.35rem 0 0.7rem; }
.wc-length-row label { font-weight: 700; color: var(--royal-blue); font-size: 0.92rem; display: block; }
.wc-length-row select { margin-top: 0.3rem; }

/* ---------- winner screen ---------- */
.live-winner-screen.live-winner-screen--cannon { background: #0b3a73 !important; overflow: hidden; }
.live-winner-screen--cannon .live-winner-cup { display: none !important; }
.wc-win-backdrop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.wc-win-backdrop .wc-scene { left: 50%; top: 50%; transform-origin: 0 0; filter: blur(9px) saturate(1.1); }
.wc-win-backdrop::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(6,20,60,0.15), rgba(6,16,48,0.65)); }
.live-winner-screen--cannon .live-winner-content { position: relative; z-index: 1; background: transparent !important; box-shadow: none !important; border: 0 !important; color: #fff; max-width: min(1640px, 96vw) !important; width: 100%; font-family: var(--wc-body); box-sizing: border-box; }
.wc-win-title { margin: 0; font: clamp(3rem, 8.5vw, 8rem)/1 var(--wc-title); letter-spacing: 0.02em; }
.wc-win-title .wc-pop { --pop-sw: clamp(10px, 1.6vw, 22px); }
.wc-win-title.is-blue .wc-pop { --pop-fill: linear-gradient(#e6f6ff, #7fd1ff 50%, #2f6bff); --pop-stroke: #0d1f5c; }
.wc-win-title.is-red .wc-pop { --pop-fill: linear-gradient(#ffecec, #ff7a7a 50%, #d62828); --pop-stroke: #4a0b0b; }
.wc-win-sub { margin: 0.6rem auto 1.2rem; display: inline-block; padding: 0.4rem 1.2rem; border-radius: 999px; background: rgba(22,22,58,0.85); border: 3px solid var(--wc-yellow); font: 700 clamp(1rem, 1.8vw, 1.6rem) var(--wc-body); }
.wc-win-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(0.6rem, 1.6vw, 2rem); align-items: stretch; text-align: left; }
.wc-win-grid > * { min-width: 0; }
.wc-win-team { border-radius: 28px; border: 6px solid #fff; padding: clamp(0.9rem, 1.4vw, 1.6rem) clamp(1rem, 1.5vw, 1.8rem); box-shadow: 0 8px 0 rgba(0,0,0,0.3); position: relative; box-sizing: border-box; }
.wc-win-team--red { background: linear-gradient(#ff6b6b, #c41f1f); }
.wc-win-team--blue { background: linear-gradient(#7fc8ff, #2456e0); }
.wc-win-team.is-winner { transform: translateY(-6px); box-shadow: 0 0 0 6px var(--wc-yellow), 0 12px 0 rgba(0,0,0,0.3); }
.wc-win-team h3 { margin: 0 0 0.25rem; font: 800 clamp(1.4rem, 2.6vw, 3.2rem) var(--wc-ui); color: #fff; display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.wc-win-team h3 small { font: 800 clamp(1rem, 1.8vw, 2.1rem) var(--wc-ui); background: rgba(0,0,0,0.25); padding: 0.1rem 0.6rem; border-radius: 999px; }
.wc-win-team .wc-crown { position: absolute; right: -14px; top: -30px; font-size: 2.6rem; transform: rotate(14deg); }
.wc-win-team ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.wc-win-team li { display: flex; justify-content: space-between; gap: 0.6rem; background: rgba(255,255,255,0.18); border-radius: 12px; padding: 0.35rem 0.75rem; font: 700 clamp(0.95rem, 1.5vw, 1.8rem) var(--wc-body); }
.wc-win-team li span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-win-team li span:last-child { white-space: nowrap; opacity: 0.95; }
.wc-win-team li.is-you { outline: 3px solid var(--wc-yellow); }
.wc-mvp { border-radius: 24px; background: #fffaf0; color: #2a1f4f; border: 5px solid var(--wc-gold); box-shadow: 0 8px 0 rgba(0,0,0,0.3); padding: 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; }
.wc-mvp-badge { font: 800 clamp(1.4rem, 2.4vw, 2.2rem) var(--wc-ui); background: var(--wc-yellow); color: #3b2300; padding: 0.2rem 1rem; border-radius: 999px; border: 3px solid #ff9a1a; }
.wc-mvp-name { font: 800 clamp(1.6rem, 3.4vw, 4rem)/1.05 var(--wc-ui); overflow-wrap: anywhere; }
.wc-mvp-team { font: 700 1rem var(--wc-body); padding: 0.1rem 0.7rem; border-radius: 999px; color: #fff; }
.wc-mvp-team.is-red { background: var(--wc-red); } .wc-mvp-team.is-blue { background: var(--wc-blue); }
.wc-mvp-stats { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; font: 700 clamp(0.9rem, 1.4vw, 1.6rem) var(--wc-body); }
.wc-mvp-stats span { background: #eef2ff; border-radius: 10px; padding: 0.2rem 0.55rem; }
.wc-mvp-ball { width: clamp(56px, 5vw, 96px); height: clamp(56px, 5vw, 96px); }
.wc-mvp-ball svg { width: 100%; height: 100%; }
/* Phones: stack the cards so the Blue card never runs off-screen. */
@media (max-width: 760px) {
    .live-winner-screen--cannon .live-winner-content { padding: 0 0.6rem !important; max-width: 100vw !important; }
    .wc-win-title { font-size: clamp(2.2rem, 11vw, 3.4rem); }
    .wc-win-sub { font-size: 0.95rem; }
    .wc-win-grid { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
    .wc-win-grid .wc-mvp { order: -1; padding: 0.7rem; }
    .wc-win-team { padding: 0.7rem 0.8rem; border-width: 4px; }
    .wc-win-team .wc-crown { right: -4px; top: -22px; font-size: 2rem; }
    .wc-win-team li { font-size: 0.95rem; }
    .wc-mvp-name { font-size: 1.7rem; }
}
.live-winner-screen--cannon #live-winner-dismiss { margin-top: 1.2rem; background: linear-gradient(#ffb347, #ff7a1a) !important; border: 0 !important; border-radius: 999px !important; font: 800 1.4rem var(--wc-ui) !important; box-shadow: 0 6px 0 #b8360a !important; color: #fff !important; }
.live-ranking-screen--cannon .live-ranking-card { border: 6px solid var(--wc-gold); border-radius: 28px; font-family: var(--wc-body); }
.live-ranking-screen--cannon h2 { font-family: var(--wc-ui) !important; color: var(--wc-navy) !important; }

/* ---------- phone ---------- */
#wc-phone-sky { display: none; }
body.live-cannon-player #wc-phone-sky, body.wc-player-lobby #wc-phone-sky { display: block; position: fixed; inset: 0; z-index: 0; overflow: hidden;
    background: linear-gradient(#2f8fe6 0%, #8fd3ff 50%, #47c3ee 52%, #0866b3 100%); }
#wc-phone-sky svg { position: absolute; left: 50%; bottom: 0; width: max(100%, 780px); transform: translateX(-50%); }
body.live-cannon-player.wc-phone-storm #wc-phone-sky { background: linear-gradient(#20233e 0%, #474d78 50%, #2e5c8a 52%, #0c2f5c 100%); }
body.live-cannon-player.wc-phone-storm #wc-phone-sky::before,
body.live-cannon-player.wc-phone-storm #wc-phone-sky::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
}
/* Phone storm: two layers of falling drops (near = faster, far = slower). */
body.live-cannon-player.wc-phone-storm #wc-phone-sky::before {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><g stroke='rgba(228,238,255,0.8)' stroke-width='2.6' stroke-linecap='round'><line x1='14' y1='4' x2='7.5' y2='30'/><line x1='58' y1='44' x2='52.0' y2='68'/><line x1='98' y1='16' x2='91.0' y2='44'/><line x1='36' y1='80' x2='29.5' y2='106'/><line x1='80' y1='86' x2='74.5' y2='108'/><line x1='112' y1='62' x2='106.0' y2='86'/></g></svg>"); background-size: 120px 120px;
    animation: wcPhoneRainNear 0.7s linear infinite;
}
body.live-cannon-player.wc-phone-storm #wc-phone-sky::after {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><g stroke='rgba(210,225,255,0.55)' stroke-width='1.8' stroke-linecap='round'><line x1='20' y1='10' x2='15.5' y2='28'/><line x1='70' y1='60' x2='66.0' y2='76'/><line x1='130' y1='24' x2='125.5' y2='42'/><line x1='160' y1='110' x2='156.0' y2='126'/><line x1='48' y1='128' x2='43.5' y2='146'/><line x1='104' y1='150' x2='100.0' y2='166'/><line x1='10' y1='84' x2='6.5' y2='98'/></g></svg>"); background-size: 180px 180px; opacity: 0.9;
    animation: wcPhoneRainFar 1.1s linear infinite;
}
@keyframes wcPhoneRainNear { from { background-position: 0 0; } to { background-position: -120px 480px; } }
@keyframes wcPhoneRainFar { from { background-position: 0 0; } to { background-position: -180px 360px; } }
body.live-cannon-player #screen-live-play, body.wc-player-lobby #screen-live-play { background: #0b5fa8 !important; color: #fff; font-family: var(--wc-body); }
body.live-cannon-player #screen-live-play .live-play-hero, body.live-cannon-player #live-play-roster, body.live-cannon-player #live-play-race-bg,
body.live-cannon-player #live-play-bubbles, body.live-cannon-player #live-play-timer, body.live-cannon-player #live-play-team-lobby,
body.live-cannon-player #screen-live-play .top-bar { display: none !important; }
body.live-cannon-player #screen-live-play .live-play-surface, body.wc-player-lobby #screen-live-play .live-play-surface {
    position: relative; z-index: 1; width: min(440px, 100%); margin: 0 auto; background: transparent !important; box-shadow: none !important; border: 0 !important; }
body.live-cannon-player #live-play-status { font: 700 1rem/1.2 var(--wc-body) !important; color: #fff !important; text-align: center; text-shadow: 0 2px 0 rgba(0,0,0,0.35); margin: 0.45rem 0 0.4rem !important; }
body.live-cannon-player #live-play-definition.word-prompt {
    position: relative; background: #fffaf0 !important; color: #2a1f4f !important; border: 4px solid var(--wc-gold) !important; border-radius: 22px !important;
    box-shadow: 3px 7px 0 rgba(0,0,0,0.3) !important; font: 700 1.35rem/1.2 var(--wc-body) !important; padding: 1.35rem 0.9rem 1rem !important; margin-top: 1.1rem !important;
    text-align: center; overflow: visible !important; max-height: none !important; }
body.live-cannon-player #live-play-definition[hidden] { display: none !important; }
body.live-cannon-player #live-play-definition.word-prompt::before { content: 'QUESTION'; position: absolute; left: 50%; transform: translateX(-50%); top: -16px; padding: 4px 16px; border-radius: 14px;
    background: var(--wc-blue); color: #fff; font: 800 0.95rem/1.2 var(--wc-ui); letter-spacing: 0.04em; border: 3px solid #fffaf0; }
body.live-cannon-player #live-play-choices:not([hidden]) { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-top: 0.9rem; }
body.live-cannon-player #live-play-choices .live-answer-btn { position: relative; min-height: 96px; margin: 0 !important; border: 4px solid #fff !important; border-radius: 20px !important;
    padding: 0.7rem 0.5rem !important; color: #fff !important; font: 800 1.3rem/1.1 var(--wc-ui) !important; overflow-wrap: anywhere; text-shadow: 0 2px 0 rgba(0,0,0,0.3); width: 100%; transition: transform 0.12s ease, filter 0.2s; }
body.live-cannon-player #live-play-choices .live-answer-btn:active { transform: translateY(4px); }
body.live-cannon-player #live-play-choices .live-answer-btn:disabled { filter: saturate(0.6) brightness(0.85); }
body.live-cannon-player #live-play-choices .live-answer-btn--0 { background: #22b357 !important; box-shadow: 0 6px 0 #157a3a !important; }
body.live-cannon-player #live-play-choices .live-answer-btn--1 { background: #d62828 !important; box-shadow: 0 6px 0 #7a0f0f !important; }
body.live-cannon-player #live-play-choices .live-answer-btn--2 { background: #2f6bff !important; box-shadow: 0 6px 0 #0f2a7a !important; }
body.live-cannon-player #live-play-choices .live-answer-btn--3 { background: #ff8c1a !important; box-shadow: 0 6px 0 #a65200 !important; }
body.live-cannon-player #live-play-type-section { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
body.live-cannon-player #live-play-type-section:not([hidden]) { margin-top: 0.9rem; }
body.live-cannon-player #live-play-type-hint { color: #fff !important; font: 700 1rem var(--wc-body) !important; text-align: center; text-shadow: 0 2px 0 rgba(0,0,0,0.35); }
body.live-cannon-player #live-play-answer { background: #fff !important; color: #2a1f4f !important; border: 4px solid var(--wc-navy) !important; border-radius: 18px !important;
    font: 700 1.35rem var(--wc-body) !important; text-align: center; padding: 0.85rem !important; box-shadow: 0 5px 0 rgba(0,0,0,0.3) !important; }
body.live-cannon-player #live-play-submit { background: linear-gradient(#ffb347, #ff7a1a) !important; border: 0 !important; border-radius: 999px !important; color: #fff !important;
    font: 800 1.35rem var(--wc-ui) !important; letter-spacing: 0.02em; box-shadow: 0 6px 0 #b8360a !important; margin-top: 0.8rem !important; text-shadow: 0 2px 0 rgba(0,0,0,0.25); }
body.live-cannon-player #live-play-result .live-choice { background: rgba(255,255,255,0.92) !important; border: 3px solid #ff8c1a !important; color: #2a1f4f !important; border-radius: 14px !important; font-weight: 700; }
body.live-cannon-player #live-play-challenge-actions.live-play-challenge-actions--visible { background: #fffaf0 !important; color: #2a1f4f !important; border: 4px solid var(--wc-orange) !important;
    border-radius: 20px !important; box-shadow: 3px 7px 0 rgba(0,0,0,0.3) !important; padding: 0.95rem !important; }
body.live-cannon-player #live-play-challenge-actions .live-challenge-prompt { font: 800 1.15rem var(--wc-ui) !important; color: #b8360a !important; }
body.live-cannon-player #live-play-challenge-actions .btn { border-radius: 999px !important; font: 800 1.1rem var(--wc-ui) !important; }
body.live-cannon-player #live-play-challenge-btn { background: var(--wc-blue) !important; color: #fff !important; box-shadow: 0 5px 0 #0f2a7a !important; border: 0 !important; }
body.live-cannon-player #live-play-skip-challenge-btn { background: #e8ecf7 !important; color: #13204f !important; box-shadow: 0 5px 0 #a8b0cc !important; border: 0 !important; }
body.live-cannon-player #live-play-error { position: relative; z-index: 2; }

.wc-phone { position: relative; color: #fff; }
.wc-phone[hidden] { display: none !important; }
.wcp-top { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; padding-top: 0.25rem; }
.wcp-logo { background: #fff; color: #5b2bd6; border: 3px solid var(--wc-yellow); border-radius: 999px; padding: 0.2rem 0.7rem; font: 800 1.1rem/1.2 var(--wc-ui); box-shadow: 2px 4px 0 rgba(0,0,0,0.25); white-space: nowrap; }
.wcp-logo span { color: var(--wc-orange); }
.wcp-storm { display: inline-flex; align-items: center; gap: 0.3rem; background: var(--wc-night); border: 3px solid var(--wc-yellow); border-radius: 999px; padding: 0.15rem 0.7rem 0.15rem 0.4rem;
    font: 800 1rem/1.2 var(--wc-ui); color: #fff; white-space: nowrap; box-shadow: 2px 4px 0 rgba(0,0,0,0.25); }
.wcp-storm svg { width: 30px; height: 26px; }
.wcp-storm.is-storm { color: var(--wc-yellow); animation: wcStormChip 0.8s ease-in-out infinite alternate; }
.wcp-team { margin: 0.6rem auto 0; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.35rem 1rem; border-radius: 999px; border: 3px solid #fff;
    font: 800 1.25rem/1.1 var(--wc-ui); width: fit-content; box-shadow: 2px 5px 0 rgba(0,0,0,0.25); }
.wcp-team.is-red { background: linear-gradient(#ff6b6b, #d62828); }
.wcp-team.is-blue { background: linear-gradient(#7fc8ff, #2f6bff); }
.wcp-team small { font: 700 0.9rem var(--wc-body); opacity: 0.95; }
.wc-win-team-stats { margin: 0.25rem 0 0.6rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: center; font: 700 clamp(0.95rem, 1.5vw, 1.7rem)/1.2 var(--wc-body); }
.wc-win-wins { background: linear-gradient(#ffe066, #ffb020); color: #3b2300; border: 3px solid #fff6b0; border-radius: 999px; padding: 0.1rem 0.7rem; }
.wcp-score { display: flex; justify-content: center; gap: 0.7rem; margin-top: 0.45rem; }
.wcp-score b { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.7rem; border-radius: 999px;
    background: rgba(22,22,58,0.75); border: 3px solid #fff; color: #ffd23f; font: 800 1.05rem/1.1 var(--wc-ui); }
.wcp-score b.is-red { border-color: #ff6b6b; }
.wcp-score b.is-blue { border-color: #7fc8ff; }
.wcp-wins { display: inline-flex; align-items: center; justify-content: center; gap: 0.15rem; min-width: 2.4em; padding: 0.1rem 0.45rem;
    border-radius: 999px; background: linear-gradient(#ffe066, #ffb020); color: #3b2300; border: 2px solid #fff6b0; font: 800 1.1rem/1.1 var(--wc-ui); }
.wcp-score b.is-pop { animation: wcPopIn 0.4s cubic-bezier(.3,1.7,.6,1); }
.wcp-hp { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.6rem; }
.wcp-bar { position: relative; height: 32px; border-radius: 16px; background: #fff; border: 3px solid var(--wc-navy); overflow: hidden; box-shadow: 2px 4px 0 rgba(0,0,0,0.25); }
.wcp-bar i { position: absolute; left: 0; top: 0; bottom: 0; transition: width 0.7s cubic-bezier(.2,.8,.3,1); }
.wcp-bar.is-red i { background: linear-gradient(#ff7a7a, #d62828); }
.wcp-bar.is-blue i { background: linear-gradient(#8fd0ff, #2f6bff); }
.wcp-bar span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 0.95rem/1 var(--wc-ui); color: #fff; -webkit-text-stroke: 4px var(--wc-navy); paint-order: stroke fill; white-space: nowrap; }
.wcp-bar.is-mine { outline: 3px solid var(--wc-yellow); outline-offset: 1px; }
.wcp-ringrow { display: flex; justify-content: center; margin-top: 0.4rem; }
.wcp-ring { position: relative; width: 58px; height: 58px; }
.wcp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.wcp-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 1.4rem/1 var(--wc-ui); color: #fff; }
.wcp-ring[hidden] { display: none; }
.wcp-body { margin-top: 0.6rem; }
.wcp-card { background: #fffaf0; color: #2a1f4f; border: 4px solid var(--wc-gold); border-radius: 22px; box-shadow: 3px 7px 0 rgba(0,0,0,0.3); padding: 1rem 0.9rem; text-align: center; animation: wcPopIn 0.35s cubic-bezier(.3,1.6,.6,1); }
.wcp-card b { display: block; font: 800 1.6rem/1.1 var(--wc-ui); }
.wcp-card p { margin: 0.35rem 0 0; font-weight: 600; }
.wcp-card.is-good { border-color: var(--wc-green); }
.wcp-card.is-bad { border-color: var(--wc-orange); }
.wcp-card .wcp-timeup { margin: 0 0 .6rem; padding: .45rem .6rem; border-radius: 10px; background: rgba(255, 138, 61, .16); border: 1px solid var(--wc-orange); }
.wcp-card .wcp-timeup b { display: inline; font-size: 1.05rem; color: var(--wc-orange); }
.wcp-card.is-hit { border-color: var(--wc-green); background: #effff4; }
.wcp-card.is-miss { border-color: #3aa8e6; background: #eef8ff; }
.wcp-ball { display: inline-block; width: 70px; height: 70px; margin: 0.2rem auto 0; animation: wcBallDrop 0.7s cubic-bezier(.3,1.7,.6,1); }
.wcp-ball svg { width: 100%; height: 100%; }
@keyframes wcBallDrop { from { transform: translateY(-60px) scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.wcp-plus { font: 2rem/1 var(--wc-title); color: var(--wc-green); letter-spacing: 0.02em; }
.wcp-tier { display: inline-block; margin-top: 0.45rem; padding: 0.25rem 0.9rem; border-radius: 999px; color: #fff; font: 800 1.1rem/1.2 var(--wc-ui); }
.wcp-tier.is-fast { background: var(--wc-green); } .wcp-tier.is-good { background: #1d9bd1; } .wcp-tier.is-slow { background: var(--wc-orange); }
.wcp-shots { display: grid; gap: 0.4rem; margin-top: 0.5rem; }
.wcp-shot { padding: 0.45rem 0.8rem; border-radius: 14px; color: #fff; font: 800 1.05rem/1.2 var(--wc-ui); }
.wcp-shot b, .wcp-shot small { display: block; }
.wcp-shot small { font: 700 0.85rem/1.2 var(--wc-body); opacity: 0.95; }
.wcp-shot.is-hit, .wcp-shot.is-lucky { background: var(--wc-green); } .wcp-shot.is-miss { background: var(--wc-orange); } .wcp-shot.is-blown { background: #3aa8e6; } .wcp-shot.is-wait { background: rgba(22,22,58,0.7); }

/* phone waiting screen */
#wc-player-lobby[hidden] { display: none !important; }
body.wc-player-lobby #live-play-hero, body.wc-player-lobby #live-play-status, body.wc-player-lobby #live-play-definition, body.wc-player-lobby #live-play-race-bg,
body.wc-player-lobby #live-play-bubbles, body.wc-player-lobby #live-play-roster, body.wc-player-lobby #live-play-team-lobby, body.wc-player-lobby #screen-live-play .top-bar,
body.wc-player-lobby #live-play-choices, body.wc-player-lobby #live-play-type-section, body.wc-player-lobby #live-play-timer { display: none !important; }
.wcpl { text-align: center; padding-bottom: 1rem; }
.wcpl-top { display: flex; justify-content: space-between; align-items: center; padding-top: 0.3rem; }
.wcpl-room { background: rgba(22,22,58,0.85); border: 3px solid var(--wc-yellow); border-radius: 999px; padding: 0.15rem 0.8rem; font: 700 0.95rem var(--wc-body); }
.wcpl-room b { font: 800 1.15rem var(--wc-ui); letter-spacing: 0.08em; margin-left: 0.25rem; }
.wcpl .wc-title { margin: 1rem 0 0.4rem; }
.wcpl .wc-title-line { font-size: 3.4rem; }
.wcpl .wc-title-line::before { -webkit-text-stroke: 12px var(--wc-navy); text-shadow: 0 5px 0 rgba(0,0,0,0.35); }
.wcpl-cannon { width: 190px; margin: 0.2rem auto 0; display: block; }
.wcpl-card { background: #fffaf0; color: #2a1f4f; border: 4px solid var(--wc-gold); border-radius: 24px; box-shadow: 3px 7px 0 rgba(0,0,0,0.3); padding: 1rem; margin-top: 0.6rem; }
.wcpl-label { font: 700 0.95rem var(--wc-body); color: #5a5f86; }
.wcpl-name { display: block; font: 800 2rem/1.1 var(--wc-ui); color: var(--wc-navy); overflow-wrap: anywhere; }
.wcpl-teamline { margin-top: 0.6rem; }
.wcpl-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.7rem; }
.wcpl-pick button { border: 4px solid #fff; border-radius: 20px; padding: 0.7rem 0.4rem; color: #fff; font: 800 1.3rem/1.1 var(--wc-ui); box-shadow: 0 5px 0 rgba(0,0,0,0.25); cursor: pointer; }
.wcpl-pick button small { display: block; font: 700 0.85rem var(--wc-body); margin-top: 0.2rem; opacity: 0.95; }
.wcpl-pick .is-red { background: linear-gradient(#ff6b6b, #d62828); }
.wcpl-pick .is-blue { background: linear-gradient(#7fc8ff, #2f6bff); }
.wcpl-pick button.is-on { outline: 4px solid var(--wc-yellow); outline-offset: 2px; }
.wcpl-pick button:disabled { opacity: 0.5; }
.wcpl-wait { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.7rem; font-weight: 700; color: #2a1f4f; }
.wcpl-dots i { display: inline-block; width: 8px; height: 8px; margin: 0 2px; border-radius: 50%; background: var(--wc-blue); animation: wcDot 1s ease-in-out infinite; }
.wcpl-dots i:nth-child(2) { animation-delay: 0.15s; } .wcpl-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes wcDot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-6px); opacity: 1; } }
.wcpl-count { margin: 0.7rem 0 0; font-weight: 700; text-shadow: 0 2px 0 rgba(0,0,0,0.35); }
.wcpl-rules { display: grid; gap: 0.35rem; margin-top: 0.7rem; text-align: left; font: 700 0.95rem/1.25 var(--wc-body); }
.wcpl-rules span { background: rgba(22,22,58,0.72); border-radius: 12px; padding: 0.35rem 0.7rem; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .wc-cloud, .wc-gull, .wc-glint, .wc-palm-crown, .wc-foam, .wc-flag .wc-flag-cloth, .is-storm .wc-storm-top, .is-storm .wc-waves path,
    .wc-storm-chip.is-storm, .wc-storm-chip.is-soon, .wcp-storm.is-storm, .wc-bar.is-low .wc-bar-fill, .wcpl-dots i, .wc-slowmo.is-on,
    .is-storm .wc-rain-layer, body.live-cannon-player.wc-phone-storm #wc-phone-sky::before,
    body.live-cannon-player.wc-phone-storm #wc-phone-sky::after { animation: none !important; }
    .wc-label, .wc-banner, .wc-banner-pill, .wc-dmgnum, .wc-qcard, .wc-answer, .wc-title-line, .wc-vs, .wc-intro-sub, .wcp-card, .wcp-ball, .wc-cannon.is-recoil svg, .wc-fort.is-hit, .wc-bar.is-hit, .wc-score.is-win-pop .wc-wins { animation-duration: 0.01s !important; animation-delay: 0s !important; }
    .wc-label { animation: wcFadeOnly 1.9s linear forwards !important; }
    .wc-banner, .wc-banner-pill { animation: wcFadeOnly 2.4s linear forwards !important; }
    .wc-banner--win { animation: none !important; }
    .wc-dmgnum { animation: wcFadeOnly 1.6s linear forwards !important; }
    .wc-flag.is-falling { animation: none !important; transform: rotate(93deg); }
    .wc-flag--blue.is-falling { transform: rotate(-93deg); }
}
@keyframes wcFadeOnly { 0% { opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }

/* Challenge review: Submitted vs Expected side by side, big enough to read from the back row. */
body.live-host-cannon .live-host-challenge-compare { gap: 0.8rem; margin: 0.5rem 0 0.9rem; }
body.live-host-cannon .live-host-challenge-box { border-width: 4px; border-radius: 18px; padding: 0.5em 0.8em; }
body.live-host-cannon .live-host-challenge-box span { font: 800 clamp(0.8rem, 0.95vw, 1.15rem) var(--wc-ui); letter-spacing: 0.08em; }
body.live-host-cannon .live-host-challenge-box strong { font: 800 clamp(1.4rem, 2.1vw, 2.6rem)/1.1 var(--wc-ui); }
body.live-host-cannon .live-host-challenge-def { font-size: clamp(1rem, 1.2vw, 1.5rem); margin-bottom: 0.2rem; }

/* ---------- continuous battle: live board, shot feed, phone feedback ---------- */
.wc-live { position: absolute; left: 520px; top: 70px; width: 880px; box-sizing: border-box; background: rgba(22,22,58,0.86); border: 5px solid var(--wc-gold); border-radius: 30px;
    box-shadow: 4px 10px 0 rgba(0,0,0,0.28); padding: 26px 22px 14px; color: #fff; animation: wcCardIn 0.55s cubic-bezier(.3,1.5,.6,1) both; }
.wc-live-head { position: absolute; left: 50%; top: -24px; transform: translateX(-50%); }
.wc-live-pill { display: inline-block; background: var(--wc-blue); color: #fff; font: 800 30px/1 var(--wc-ui); padding: 9px 30px; border-radius: 24px; border: 4px solid #fffaf0; letter-spacing: 0.04em; white-space: nowrap; }
.wc-live-pill.is-sudden { background: var(--wc-red); }
.wc-live-pill.is-storm { background: #6a4cff; }
.wc-live-row { display: grid; grid-template-columns: 1fr 170px 1fr; align-items: center; gap: 12px; }
.wc-live-clock { font: 800 64px/1 var(--wc-ui); text-align: center; color: var(--wc-yellow); font-variant-numeric: tabular-nums; }
.wc-live-clock.is-low { color: #ff6b6b; }
.wc-live-team h4 { margin: 0 0 6px; font: 800 26px/1 var(--wc-ui); letter-spacing: 0.06em; }
.wc-live-team--red h4 { color: #ff8a8a; } .wc-live-team--blue h4 { color: #8fd0ff; text-align: right; }
.wc-live-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wc-live-nums span { display: flex; flex-direction: column; align-items: center; font: 700 16px/1.1 var(--wc-body); opacity: 0.92; }
.wc-live-nums b { font: 800 34px/1 var(--wc-ui); color: #fff; font-weight: normal; font-variant-numeric: tabular-nums; }
.wc-live-crew { margin: 6px 0 0; font: 700 17px/1 var(--wc-body); opacity: 0.85; }
.wc-live-team--blue .wc-live-crew { text-align: right; }
@keyframes wcFeedIn { from { transform: translateY(-14px) scale(0.92); opacity: 0; } to { transform: none; opacity: 1; } }
.wc-banner-pill.is-red { background: var(--wc-red); } .wc-banner-pill.is-blue { background: var(--wc-blue); }

/* Challenges never block the battle: compact cards in the top-right corner, under the clock chip. */
body.live-host-cannon .live-host-challenge-panel {
    left: auto; right: 1.2vw; top: 11.5vh; bottom: auto; transform: none;
    width: min(440px, 24vw); max-height: 25vh; overflow-y: auto; gap: 0.5rem;
}
body.live-host-cannon .live-host-challenge-card { padding: 0.55rem 0.8rem !important; font-size: clamp(0.75rem, 0.8vw, 1rem); border-width: 4px !important; border-radius: 18px !important;
    animation: wcFeedIn 0.35s cubic-bezier(.3,1.5,.6,1) both; }
body.live-host-cannon .live-host-challenge-card-head strong { font-size: clamp(0.95rem, 1vw, 1.3rem); }
body.live-host-cannon .live-host-challenge-def { font-size: clamp(0.72rem, 0.75vw, 0.95rem); margin: 0.2rem 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.live-host-cannon .live-host-challenge-compare { gap: 0.4rem; margin: 0.35rem 0 0.45rem; }
body.live-host-cannon .live-host-challenge-box { border-width: 3px; border-radius: 12px; padding: 0.25em 0.5em; }
body.live-host-cannon .live-host-challenge-box span { font-size: clamp(0.6rem, 0.6vw, 0.8rem); }
body.live-host-cannon .live-host-challenge-box strong { font-size: clamp(0.95rem, 1.2vw, 1.5rem); }
body.live-host-cannon .live-host-challenge-actions .btn { font-size: clamp(0.8rem, 0.85vw, 1.05rem) !important; padding: 0.35em 1.1em !important; }

/* phone: own stats + toast + fired card */
.wcp-ringrow { align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 58px; }
.wcp-mine { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.wcp-mine span { background: rgba(22,22,58,0.78); color: #fff; border: 2px solid rgba(255,255,255,0.7); border-radius: 999px; padding: 0.15rem 0.55rem; font: 800 0.9rem/1.2 var(--wc-ui); }
.wcp-mine span.is-streak { border-color: var(--wc-yellow); color: var(--wc-yellow); }
.wcp-fired .wcp-plus { font-size: 1.7rem; }
.wcp-fired .wcp-shot { margin-top: 0.45rem; }
.wcp-card .wcp-next { opacity: 0.75; font-size: 0.9rem; }
.wcp-toast { position: fixed; left: 50%; bottom: 14px; transform: translate(-50%, 140%); width: min(92vw, 360px); box-sizing: border-box; z-index: 60; padding: 0.6rem 0.9rem;
    border-radius: 16px; background: #fffaf0; color: #2a1f4f; border: 3px solid var(--wc-gold); box-shadow: 2px 6px 0 rgba(0,0,0,0.3); font: 700 0.92rem/1.3 var(--wc-body);
    transition: transform 0.35s cubic-bezier(.3,1.4,.6,1); pointer-events: none; }
.wcp-toast.is-on { transform: translate(-50%, 0); }
.wcp-toast.is-good { border-color: var(--wc-green); } .wcp-toast.is-bad { border-color: var(--wc-orange); } .wcp-toast.is-info { border-color: #3aa8e6; }
@media (prefers-reduced-motion: reduce) { .wc-live { animation-duration: 0.01s !important; } .wcp-toast { transition: none; } }
/* Challenge deck: shared mechanics live in challenge-deck.css; Word Cannon only adds its colours. */
body.live-host-cannon .live-challenge-deck-more { background: var(--wc-blue); border-color: var(--wc-gold); font-family: var(--wc-ui); }
