
:root{color-scheme:dark;--bg:#090f1a;--surface:#131f30;--stroke:#2a3b51;--muted:#9dadc3;--light:#f4f8ff;--blue:#42c5ff;--pink:#ff6e92}
*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--light)}body{margin:0;background:var(--bg)}button,input{font:inherit}button{cursor:pointer}.shell{max-width:860px;margin:auto;padding:0 20px}.hidden{display:none!important}.offscreen{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.topbar{height:64px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--stroke)}.brand{display:flex;align-items:center;gap:9px;font-size:17px;letter-spacing:.06em;font-weight:850}.brand b{color:#71d5ff}.brandmark{display:flex;align-items:center;justify-content:center;color:#ff809c;border:2px solid #48c3ff;height:31px;width:31px;border-radius:9px;font-size:21px}.pill{color:#80e8c8;background:#112b2b;border:1px solid #245748;border-radius:30px;font-size:10px;font-weight:800;letter-spacing:.08em;padding:7px 10px}.pill i{display:inline-block;height:6px;width:6px;border-radius:50%;background:#7ae8ba;margin-right:7px}
.headline{text-align:center;font-size:clamp(26px,5.8vw,41px);font-weight:950;letter-spacing:-.04em;margin:25px 0 3px}.headline span{color:var(--pink)}.subhead{text-align:center;color:var(--muted);font-size:14px;margin:0 0 24px}
.battlebar{display:grid;grid-template-columns:1fr 1fr;column-gap:12px;row-gap:8px;margin-bottom:14px}.teamstat.right{text-align:right}.teamtitle{font-size:12px;letter-spacing:.02em;font-weight:850}.huge{font-size:32px;font-weight:900;line-height:1.2}.blue{color:var(--blue)}.pink{color:var(--pink)}.controltrack{grid-column:1/-1;height:13px;background:var(--pink);border-radius:999px;overflow:hidden}.controlfill{width:0;height:100%;background:var(--blue);transition:width .2s ease}.people{grid-column:1/-1;display:flex;justify-content:space-between;color:#8ea3b8;font-size:11px}
.join-panel,.board-panel,.rankings{border:1px solid var(--stroke);background:var(--surface);border-radius:14px}.join-panel{padding:18px;margin-bottom:14px}.join-title{margin:0 0 13px;font-size:19px;text-align:center}.teamchoices{display:grid;grid-template-columns:1fr 1fr;gap:11px}.teamchoice{display:flex;align-items:center;justify-content:center;gap:10px;min-height:79px;border-radius:12px;background:#10243b;color:#fff;border:2px solid #2788c0;box-shadow:none}.teamchoice.keep-choice{background:#30202e;border-color:#ad506e}.choice-icon{font-size:27px}.teamchoice span:last-child{display:flex;flex-direction:column;text-align:left}.teamchoice b{font-size:18px;font-weight:950}.teamchoice small{font-size:11px;color:#c8d4df;line-height:1.3}.teamchoice.reveal-choice .choice-icon{color:var(--blue)}.teamchoice.keep-choice .choice-icon{color:var(--pink)}.teamchoice:active{transform:scale(.98)}.teamchoice:disabled{opacity:.6;cursor:wait}.nickname-details{margin-top:13px;color:#b6c6d9;font-size:12px}.nickname-details summary{cursor:pointer}.nickname-details input{display:block;background:#0b1523;color:#fff;border:1px solid #47556c;width:100%;padding:11px;margin-top:10px;border-radius:8px}.join-note{text-align:center;color:#879cb0;font-size:11px;margin:12px 0 0}
.player-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.identity{display:flex;align-items:center;gap:9px;min-width:0}.identity-avatar{display:flex;align-items:center;justify-content:center;background:#192f46;border-radius:9px;width:37px;height:37px;font-size:22px;flex:none}.identity strong{display:block;font-size:14px;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.identity small{display:block;color:#8cb0ce;font-size:10px;letter-spacing:.02em;margin-top:1px}.move-indicator{text-align:right;flex-shrink:0}.move-indicator strong{font-size:28px;color:#8de1ff}.move-indicator span{font-size:11px;font-weight:750}.recharge{display:block!important;color:#8ddec5!important;font-size:15px!important;font-weight:800!important;font-family:Arial,Helvetica,sans-serif!important;letter-spacing:0!important;font-variant-numeric:tabular-nums}.play-hint{color:#b8cee0;font-size:12px;line-height:1.4;margin:13px 0 5px}.player-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#9fb3c5}.player-foot details{max-width:70%}.help summary{cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}.help p{font-size:11px;line-height:1.55;padding:8px 0;margin:0;color:#c2d2df}.todayscore b{color:#fff;font-size:14px}
.board-panel{padding:11px}.board-head{display:flex;align-items:center;justify-content:space-between;margin:2px 3px 10px}.board-head h2{font-size:13px;letter-spacing:.11em;margin:0}.mini-pill{background:#102b2a;border-radius:999px;color:#77debb;padding:5px 9px;font-size:10px;font-weight:850}.canvas-wrap{width:100%;border-radius:8px;overflow:hidden;border:1px solid #39516b;line-height:0;background:#091322}canvas{width:100%;height:auto;display:block;aspect-ratio:3/2;image-rendering:pixelated;cursor:crosshair;touch-action:manipulation}.board-help{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#b4c7d9;font-size:12px;margin:10px 3px 2px}.board-help span{color:#768da6;font-size:11px}
.rankings{margin-top:14px;overflow:hidden}.rankings>summary{display:flex;justify-content:space-between;align-items:center;gap:8px;list-style:none;padding:16px 18px;cursor:pointer}.rankings>summary::-webkit-details-marker{display:none}.expand-word{font-size:12px;color:#7fc7ef}.chevron{margin-left:5px;font-size:16px}.rankings[open] .chevron{display:inline-block;transform:rotate(180deg)}.rankings-content{padding:0 17px 17px}.tabs{display:grid;grid-template-columns:repeat(4,1fr);background:#0b1726;padding:3px;gap:3px;border-radius:8px}.tabs button{border:0;padding:10px 2px;background:transparent;color:#96aac1;border-radius:5px;font-size:10px;font-weight:800}.tabs button.active{background:#304d69;color:white}.scorerow{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.scorerow>div{display:flex;justify-content:space-between;background:#0d1929;border-radius:8px;align-items:center;padding:12px 13px}.scorerow span{color:var(--blue);font-size:11px;font-weight:800}.scorerow div:nth-child(2) span{color:var(--pink)}.scorerow strong{font-size:23px}.winner{font-size:12px;color:#bdcde0;text-align:center;margin:15px 0}.leadertitle{display:flex;justify-content:space-between;border-top:1px solid #2d3c53;padding-top:16px;color:#c2d3e6;font-size:11px;font-weight:850}.leadertitle span{color:#82bbec}.leaders{margin-top:8px}.leader{display:flex;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid #25374c;font-size:12px}.rank{display:inline-flex;justify-content:center;align-items:center;width:24px;height:24px;border-radius:7px;background:#263e54}.leader-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.leader-points{font-weight:850}.time-note{font-size:10px;color:#8494ad;margin-bottom:0}.empty{font-size:12px;color:#8ea3ba;padding:14px 0}
.bottom-note{text-align:center;color:#7287a0;font-size:12px;margin:24px 0}footer{text-align:center;color:#677b93;font-size:10px;letter-spacing:.06em;padding:12px 0 24px}.toast{position:fixed;left:50%;bottom:19px;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:100;background:#f2faff;color:#092030;border-radius:10px;padding:12px 17px;box-shadow:0 12px 30px #0009;font-size:12px;font-weight:850;max-width:calc(100vw - 20px);min-width:min(280px,calc(100vw - 24px));text-align:center;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:550px){.shell{padding:0 12px}.topbar{height:57px}.brand{font-size:14px}.headline{margin:18px 0 3px;font-size:27px}.subhead{font-size:12px;margin-bottom:18px}.huge{font-size:29px}.teamtitle{font-size:11px}.join-panel{padding:13px}.join-title{font-size:17px}.teamchoice{min-height:70px;gap:6px}.teamchoice b{font-size:16px}.teamchoice small{font-size:10px}.choice-icon{font-size:24px}.board-panel{padding:7px}.board-help{font-size:11px}.board-help span{font-size:10px}.identity strong{max-width:100px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* COVERUP — LIGHT EDITION */
:root{color-scheme:light;--bg:#f5f8fc;--surface:#ffffff;--stroke:#dbe4ee;--muted:#60758e;--light:#1c304a;--blue:#1676c9;--pink:#c53b71}
html,body{background:var(--bg);color:var(--light)}
.topbar{border-bottom-color:#d9e4ef}.brand b{color:#1471c2}.brandmark{border-color:#3a91d4;color:#ca3e71}
.pill{background:#eaf7f0;border-color:#b3dfca;color:#247650}.pill i{background:#28976f}
.people,.join-note,.bottom-note,footer,.time-note{color:#61758a}
.join-panel,.board-panel,.rankings{background:#fff;border-color:#d5e2ef;box-shadow:0 2px 8px #1e3b6010}
.teamchoice{background:#e9f5ff;color:#14548d;border-color:#73b5e7}.teamchoice.keep-choice{background:#fff0f5;color:#963252;border-color:#de97b2}
.teamchoice small{color:#597187}.teamchoice.keep-choice small{color:#85576a}
.nickname-details{color:#506782}.nickname-details input{background:white;color:#1a2f49;border-color:#bdcedf}
.identity-avatar{background:#e7f1fc}.identity small{color:#54708c}.move-indicator strong{color:#126fac}.recharge{color:#247c61!important}
.play-hint,.player-foot{color:#526b83}.help p{color:#536a82}.todayscore b{color:#1c304a}
.mini-pill{background:#e2f8ef;color:#167c53}.board-help,.board-help span{color:#627c94}.canvas-wrap{border-color:#bdcad9;background:#e1e9f1}
.expand-word{color:#156baa}.tabs{background:#edf2f8}.tabs button{color:#5b728a}.tabs button.active{background:#256aa0;color:white}
.scorerow>div{background:#f3f7fc}.winner{color:#556a7d}.leadertitle{border-top-color:#dce6ef;color:#36516d}.leadertitle span{color:#276eab}
.leader{border-bottom-color:#e1e9f1}.rank{background:#e9f0f7;color:#38516a}.empty{color:#647b91}
.toast{background:#173c64;color:white;box-shadow:0 12px 30px #15345233}
.rename-details{margin-top:12px;color:#29618d;font-size:12px;font-weight:650}
.rename-details summary{cursor:pointer;list-style:none;width:max-content}.rename-details summary::-webkit-details-marker{display:none}
.rename-form{display:flex;gap:8px;align-items:center;margin-top:10px;max-width:440px}
.rename-form input{min-width:0;flex:1;border:1px solid #bdccdc;background:white;color:#1c304a;border-radius:8px;padding:10px 11px}
.rename-form button,.alert-button{background:#176db5;color:white;border:0;border-radius:8px;padding:10px 14px;font-weight:800;font-size:12px;white-space:nowrap}
.rename-form button:disabled{opacity:.65}.tiny-note{font-size:11px;color:#75879b;font-weight:400;margin:6px 0 0}
.alert-row{margin-top:12px;padding:10px 11px;border:1px solid #dbe7f2;background:#f6faff;border-radius:10px;display:flex;gap:10px;align-items:center;justify-content:space-between}
.alert-row b{display:block;font-size:12px}.alert-row small{display:block;font-size:11px;color:#667d95;margin-top:3px;line-height:1.3}
.alert-button{background:#e2ecf7;color:#1d5f94;min-width:70px}.alert-button.active{background:#e0f6e8;color:#146443}
@media(max-width:550px){.rename-form input{font-size:16px}.alert-row{margin-top:10px}.rename-details{margin-top:9px}}

.coverup-alert-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0 3px}
.coverup-alert-choices label{display:flex;align-items:flex-start;gap:8px;border:1px solid #cfdfed;background:#f5faff;border-radius:10px;padding:10px;cursor:pointer;min-width:0}
.coverup-alert-choices input{width:17px;height:17px;margin:2px 0 0;flex-shrink:0;accent-color:#1388c4;cursor:pointer}
.coverup-alert-choices b{display:block;font-size:11px;color:#163855;line-height:1.4}
.coverup-alert-choices small{display:block;font-size:10px;color:#516b82;line-height:1.35;margin-top:3px}
@media(max-width:560px){.coverup-alert-choices{grid-template-columns:1fr}}
/* Web Push & one-time username selection */
.test-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:7px 0 2px}
.test-alert{background:#fff;color:#176db5;border:1px solid #9bbddb;border-radius:8px;padding:8px 12px;font-size:12px;font-weight:750}
.test-alert:disabled{opacity:.5}.push-guide{font-size:11px;color:#526b83;line-height:1.45}
.alert-button:disabled{opacity:.65}

/* Touch-friendly battlefield: zoom and pan without changing any multiplayer rules. */
.board-head{gap:8px;flex-wrap:wrap}
.zoom-tools{display:flex;align-items:center;justify-content:center;gap:5px;margin-left:auto}
.zoom-tools button{border:1px solid #b9ccde;border-radius:8px;min-width:36px;height:36px;padding:0 9px;background:#f1f7fe;color:#165b92;font-weight:850;font-size:18px;touch-action:manipulation}
.zoom-tools button:last-child{font-size:12px;min-width:44px}
.zoom-tools button:disabled{opacity:.42;cursor:default}
.zoom-tools button:focus-visible{outline:3px solid #4c94dc;outline-offset:1px}
.zoom-tools span{color:#42617e;font-size:11px;font-variant-numeric:tabular-nums;min-width:43px;text-align:center;font-weight:800}
.canvas-wrap{position:relative;aspect-ratio:3/2;touch-action:none;overscroll-behavior:contain;cursor:crosshair;user-select:none;-webkit-user-select:none}
.canvas-wrap canvas#board{position:absolute;inset:0;width:100%;height:100%;transform-origin:0 0;touch-action:none;user-select:none;-webkit-user-select:none;max-width:none;will-change:transform}
.canvas-wrap.panning{cursor:grabbing}
@media(max-width:550px){.board-head{margin-bottom:8px}.zoom-tools{gap:3px}.zoom-tools button{min-width:34px;height:34px;padding:0 7px}.mini-pill{padding:4px 7px}.board-help{line-height:1.5}}

/* Viral sharing / referral box: visible only after joining a side */
.invite-box{border:1px solid #cdddf0;border-radius:14px;background:#f2f8ff;padding:12px;margin:13px 0 9px;color:#213c5e}
.invite-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.invite-heading b{display:block;font-size:14px}
.invite-heading small{display:block;color:#546e87;font-size:12px;margin-top:3px;line-height:1.35}
.invite-badge{background:#e5f7ef;color:#1b7858;border-radius:9px;padding:5px 8px;font-size:10px;font-weight:900;letter-spacing:.04em}
.invite-actions{display:flex;gap:8px;margin-top:12px}
.invite-actions button{border-radius:10px;min-height:43px;padding:0 14px;font-size:13px;font-weight:800}
.share-primary{background:#165ee7;color:#fff;border:1px solid #165ee7;flex:1}
.share-copy{background:#fff;color:#194780;border:1px solid #a5bddc}
.share-more{margin-top:12px;font-size:12px}
.share-platform-label{font-size:12px;font-weight:800;color:#2b527e;margin:0 0 8px}
.share-platforms{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.share-platforms a{display:flex;align-items:center;justify-content:center;text-align:center;min-width:0;min-height:42px;background:#fff;border:1px solid #b7cce5;border-radius:9px;padding:8px 5px;font-size:12px;color:#1d537f;text-decoration:none;font-weight:800;overflow-wrap:anywhere}
.share-platforms a:hover,.share-platforms a:focus-visible{background:#e4f1ff;border-color:#407fc6}
@media(max-width:480px){.share-platforms{grid-template-columns:repeat(2,minmax(0,1fr))}.share-platforms a{min-height:44px}}
.invite-rule{font-size:11px;color:#687b91;line-height:1.4;margin:10px 0 0}
.referral-stats{font-size:11px;font-weight:750;color:#315c7a;margin:5px 0 0}
.invite-banner{background:#eaf3ff;border:1px solid #bad5f8;color:#204d80;border-radius:9px;padding:10px;margin-top:12px;font-size:13px;font-weight:700;text-align:center}
@media(max-width:370px){.invite-actions button{padding:0 8px;font-size:12px}.invite-box{padding:10px}}

/* Recruitment credits and daily redemption, fully optional */
.recruit-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0 10px}
.recruit-progress>div{min-width:0;padding:9px 6px;text-align:center;border-radius:10px;background:#fff;border:1px solid #d2e2f1;display:flex;flex-direction:column;gap:3px}
.recruit-progress b{font-size:20px;color:#193c69;line-height:1.1}
.recruit-progress .stat-label{font-size:10px;color:#56718a;line-height:1.2}
.redeem-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.redeem-button{font-size:12px;font-weight:800;color:#fff;background:#1262c4;border:1px solid #1262c4;border-radius:9px;padding:9px 12px;min-height:41px}
.redeem-button:disabled{opacity:.45;cursor:not-allowed}
.redeem-row>.tiny-note{flex:1;min-width:110px;font-size:11px;line-height:1.3;color:#536f88}
.milestone-note{font-size:11px;font-weight:750;color:#315d99;margin:10px 0 0}
@media(max-width:360px){.recruit-progress .stat-label{font-size:9px}.redeem-button{width:100%}}

/* Live invitation and downloadable animated score GIF: no changes to gameplay logic. */
.share-battle{background:#f8fbff;border:1px solid #b7cfe8;border-radius:12px;padding:13px;margin-top:12px;overflow:hidden}
.share-battle-top{font-size:10px;letter-spacing:.09em;font-weight:850;color:#4f6380;display:flex;gap:8px;align-items:center}
.share-live-pip{display:inline-block;width:9px;height:9px;background:#18b97f;border-radius:100%;box-shadow:0 0 0 0 rgba(24,185,127,.35);animation:invite-ping 2s ease-in-out infinite}
.share-headline{font-size:19px;line-height:1.25;display:block;color:#163a69;margin:9px 0 9px;animation:invite-pop 4s ease-in-out infinite}
.share-live-meter{border-radius:99px;overflow:hidden;height:13px;background:#f5a2bd;position:relative}
.share-live-meter i{display:block;height:100%;background:#3ba9ec;transition:width .6s ease;position:relative}
.share-live-meter i:after{content:"";position:absolute;right:0;top:0;bottom:0;width:6px;background:#eaf9ff;opacity:.6;animation:invite-glow 1.8s infinite}
.share-summary{font-size:12px;line-height:1.4;margin:9px 0;color:#445c7b}
.share-gif-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.share-gif-actions button,.share-gif-actions a{font-size:12px;font-weight:800;border-radius:8px;border:1px solid #1165be;background:#1165be;color:white;text-decoration:none;padding:10px 12px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.share-gif-actions a{background:white;color:#215b8f;border-color:#b7cfe8}
.share-gif-actions button:disabled{opacity:.5}
.share-tip{font-size:11px;line-height:1.45;color:#66788d;margin:9px 0 0}
@keyframes invite-ping{50%{box-shadow:0 0 0 7px rgba(24,185,127,0)}}
@keyframes invite-pop{50%{transform:translateY(-2px)}}
@keyframes invite-glow{50%{opacity:1}}
@media(prefers-reduced-motion:reduce){.share-live-pip,.share-headline,.share-live-meter i:after{animation:none}}

/* Short vertical video CTA for video-first social media. */
#shareVideo{background:#e92769;border-color:#e92769;color:white;flex:1 1 150px}
#shareVideo:disabled{opacity:.6;cursor:wait}
#shareGif{flex:1 1 120px}
@media(max-width:430px){.share-gif-actions button,.share-gif-actions a{font-size:11px;padding:10px 9px}}

/* PIXEL WAR v1 visual identity: inspired by retro arcades, not a Minecraft clone. */

:root{color-scheme:dark;--bg:#080f22;--surface:#0c1b35;--stroke:#22629c;--muted:#aec2df;--light:#f6f9ff;--blue:#2fd6ff;--pink:#ff53ab}
html,body{background:#080f22;color:#f6f9ff}
body{background-image:radial-gradient(ellipse at top,#112d55 0%,transparent 52%);min-height:100vh}
.shell{max-width:1040px}
.topbar{border-bottom:2px solid #245c8b}.brand,.headline,.board-head h2,.join-title,.huge,.teamtitle,.move-indicator,.player-top .identity strong,.rankings>summary b,.share-primary,.share-headline,.redeem-button,.teamchoice b{font-family:'Pixelify Sans',ui-monospace,monospace;letter-spacing:.045em}
.brand{font-size:clamp(22px,4.3vw,34px);text-shadow:2px 2px #0b5a9b}.brand b{color:#f7fbff}
.brandmark{border-radius:2px;color:#ff53ab;border-color:#19b7ef}
.headline{margin:20px 0 4px;color:#f2f8ff;text-shadow:2px 2px #17529b;font-size:clamp(24px,5.5vw,39px)}
.headline span{color:#ff62aa;text-shadow:2px 2px #742451}.subhead{color:#b8cfe9;margin-bottom:19px}
.pill,.mini-pill{border-radius:3px;background:#082b2d!important;border:1px solid #18a77f!important;color:#67f8c8!important}
.battlebar{padding:14px;border:1px solid #206aab;background:#0d1b34;box-shadow:inset 0 0 0 1px #062e5b,0 0 18px #0076d011}
.teamtitle{font-size:16px!important}.huge{font-size:clamp(33px,6vw,49px)!important}
.controltrack{border-radius:1px;height:16px;background:#f846a0;box-shadow:0 0 10px #ff56a54a}.controlfill{background:#27d4ff}
.people,.join-note,.bottom-note,footer,.time-note{color:#a9bed9}
.join-panel,.board-panel,.rankings{background:#0d1c35;border:1px solid #267eb8;border-radius:4px;box-shadow:0 0 0 1px #0b314d,0 8px 24px #0004}
.join-panel{padding:14px}.join-title{color:#fff;font-size:24px}
.teamchoice{border-radius:3px;background:#082d49;color:#d6f8ff;border:2px solid #19b3e9;box-shadow:0 0 11px #25afff17}
.teamchoice.keep-choice{background:#33132e;color:#ffd1e7;border-color:#d93d88}
.teamchoice small,.teamchoice.keep-choice small{color:#bfd5e7}
.identity-avatar{border-radius:2px;background:#0e3654}.identity small{color:#8cbee1}
.move-indicator strong{color:#32daff;font-size:36px}.recharge{color:#78f3c8!important}
.play-hint,.player-foot{color:#b5cde8}.player-foot .todayscore b{color:#fff}.help p{color:#c2d8eb}
.rename-details{color:#85d3f7}.rename-form input,.nickname-details input{background:#0c2540;color:#fff;border-color:#317eac;border-radius:2px}
.alert-row{background:#0b2844;border-color:#2b5989;border-radius:2px}.alert-row small,.tiny-note,.push-guide{color:#b5c9e3}
.alert-button{background:#0e4f85;color:#fff;border:1px solid #258fd0;border-radius:2px}.alert-button.active{background:#135e4b;color:#b2ffe3}
.test-alert{border-radius:2px;background:#0e2f4d;color:#7bdaff;border-color:#3e81ae}
.board-panel{padding:13px;border-color:#2ca8ed}
.board-head h2{color:#67dcff;font-size:24px;letter-spacing:.03em}.arcade-corner{font-size:12px;color:#829dbd;margin-left:7px}
.zoom-tools button{border-radius:2px;background:#132d4d;border-color:#3378aa;color:#edf9ff}.zoom-tools span{color:#9ac9f5}
.canvas-wrap{border-radius:1px;background:#081428;border:2px solid #2a81b5;box-shadow:inset 0 0 0 2px #071021}
.board-help,.board-help span{color:#a8c5e3}.power-hint{font-size:12px;color:#d6c7a0;line-height:1.45;margin:10px 3px 4px}.power-icon{background:#4b2c07;border:1px solid #ffd15b;color:#ffdb63;font-weight:900;padding:0 6px;margin-right:6px}
.rankings>summary{color:#d9eafd}.expand-word{color:#6cd8ff}.tabs{background:#07152d;border-radius:2px}.tabs button{color:#a1c0de;border-radius:2px}.tabs button.active{background:#116193}
.scorerow>div{background:#091a33;border-radius:2px}.winner,.leadertitle{color:#d4e5fa}.leader{border-bottom-color:#2a4568}.rank{border-radius:2px;background:#153d61;color:#fff}.empty{color:#90b1d2}
.invite-box{background:#0c2240;color:#f0f7ff;border:1px solid #2273af;border-radius:3px;margin:14px 0 8px;padding:16px}
.invite-heading b{font-family:'Pixelify Sans',monospace;font-size:23px}.invite-heading small,.invite-rule,.share-tip,.share-summary,.redeem-row>.tiny-note{color:#a9c2dd}
.invite-badge{background:#123a30;color:#77f3bd;border-radius:2px}
.invite-actions button{border-radius:2px}.share-primary{font-size:20px;background:#0576e2;border-color:#44c1ff}.share-copy{background:#102b4b;color:#e9faff;border-color:#3778ad}
.share-platform-label{color:#cae8ff}.share-platforms a{background:#112c50;color:#f0f7ff;border-color:#2b6ca9;border-radius:2px}.share-platforms a:hover{background:#214c78}
.recruit-progress>div{background:#0e2b4c;border:1px solid #2b618d;border-radius:2px}.recruit-progress b{color:#ffd166}.recruit-progress .stat-label{color:#b6d0eb}.redeem-button{border-radius:2px;background:#176dbb;border-color:#50acff}
.referral-stats,.milestone-note{color:#88d9ff}.share-battle{background:#091b34;border-color:#315b8b;border-radius:2px}
.share-battle-top{color:#80dfff}.share-headline{color:#ff71b8}.share-summary{color:#b7d4f0}.share-live-meter{border-radius:1px;background:#fa4795}.share-live-meter i{background:#29ccfa}
.share-gif-actions button,.share-gif-actions a{border-radius:2px}.share-gif-actions a{background:#122b4b;border-color:#3573a9;color:#d9efff}
.toast{border-radius:2px;background:#164370;color:#fff;box-shadow:0 10px 28px #0008}
@media(max-width:550px){.shell{padding:0 8px}.topbar{height:64px}.brand{font-size:25px}.board-head h2{font-size:19px}.battlebar{padding:10px}.teamtitle{font-size:13px!important}.huge{font-size:32px!important}.join-panel{padding:10px}.board-panel{padding:7px}.power-hint{font-size:11px}.invite-box{padding:10px}}

/* Progression edition: screenshot-inspired lower game HUD */
.special-rules{background:#0b1d37;border:2px solid #1678b1;border-radius:3px;margin-top:12px;padding:12px;color:#dbefff;box-shadow:0 0 16px #069bff17}
.special-rule-title{font-family:'Pixelify Sans',monospace;font-size:22px;font-weight:700;color:#65d7ff;margin-bottom:8px}
.special-rule-line{display:flex;align-items:center;gap:10px;margin:5px 0;font-size:13px;color:#c6d9ed;line-height:1.35}
.question-glyph,.mystery-glyph{display:inline-flex;align-items:center;justify-content:center;flex:none;width:29px;height:29px;font-family:'Pixelify Sans',monospace;font-size:23px;font-weight:700;color:#ffdd65;background:#533609;border:2px solid #ffd35d;box-shadow:0 0 10px #ffc83a44;border-radius:2px}
.mystery-glyph{color:#a9fbdc;background:#134a39;border-color:#3fe5bd;font-size:17px}
.mystery-progress{margin:9px 0 0;color:#f8d473;font-size:13px;font-weight:600}
.arcade-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px;align-items:start}
.arcade-bottom-grid .invite-box{grid-column:1/-1;margin:0}
.activity-card,.recruit-rankings-card{min-height:205px;background:#0c1e39;border:2px solid #2177b2;border-radius:3px;padding:12px;box-shadow:0 0 12px #099dfb11}
.activity-card h3,.recruit-rankings-card h3{font-family:'Pixelify Sans',monospace;color:#72dcff;font-size:20px;letter-spacing:.03em;margin:0 0 8px}
.live-dot{color:#46eaae;font-size:12px;float:right}
.activity-line{display:flex;justify-content:space-between;gap:6px;border-bottom:1px solid #1c385b;padding:8px 0;font-size:12px;color:#c9e0f4}
.activity-line b{font-weight:600;color:#fff}.activity-line small{white-space:nowrap;color:#8fb4d9}
.activity-line .team-mark{font-size:13px;font-weight:900;margin-right:4px}.activity-line .team-mark.rev{color:#25cbff}.activity-line .team-mark.kep{color:#ff64aa}
.recruit-tabs{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px}
.recruit-tabs button{background:#0c3559;border:1px solid #2b75a6;color:#afdaff;font-family:'Pixelify Sans',monospace;font-size:14px;padding:5px 8px;border-radius:2px;cursor:pointer}
.recruit-tabs button.active{background:#126c9e;color:white}
.arcade-bottom-grid .invite-box{border:2px solid #2d9ac8}.arcade-bottom-grid .share-platforms a{min-width:80px;text-align:center}
.arcade-bottom-grid .invite-heading b{color:#75dcff}
@media(min-width:960px){.arcade-bottom-grid{grid-template-columns:1fr 1fr 1.2fr}.arcade-bottom-grid .invite-box{grid-column:3;grid-row:1/3}.activity-card{grid-column:1}.recruit-rankings-card{grid-column:2}}
@media(max-width:620px){.arcade-bottom-grid{grid-template-columns:1fr}.arcade-bottom-grid .invite-box{grid-column:1}.activity-card,.recruit-rankings-card{min-height:unset}.special-rule-title{font-size:19px}.activity-card h3,.recruit-rankings-card h3{font-size:19px}}

/* V2: image-led sharing, visible platform logos and touch-friendly controls. */
.share-platforms{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;align-items:stretch}
.share-platforms .social-icon,.arcade-bottom-grid .share-platforms .social-icon{
 display:flex;align-items:center;justify-content:center;min-width:0!important;
 width:100%;min-height:52px;border:2px solid #3d75a0;border-radius:5px;
 padding:10px;color:#fff;text-decoration:none;box-shadow:inset 0 -3px 0 #0004,0 0 9px #0002;
 cursor:pointer;transition:transform .12s,border-color .12s,box-shadow .12s;
}
.share-platforms .social-icon svg{width:26px;height:26px;display:block;flex:none}
.share-platforms .social-icon:focus-visible{outline:3px solid #ffe170;outline-offset:2px}
.share-platforms .social-icon:hover{transform:translateY(-2px);border-color:#f3f8ff;box-shadow:0 0 14px #4acaff5c}
.share-platforms .social-icon:disabled{opacity:.45;cursor:wait}
.share-platforms .social-facebook{background:#116ad4}
.share-platforms .social-instagram{background:linear-gradient(35deg,#f9af42 0%,#ef355c 38%,#b92da9 70%,#554be6 100%)}
.share-platforms .social-x{background:#080e1c}
.share-platforms .social-whatsapp{background:#159d57}
.share-platforms .social-reddit{background:#e94616}
.share-platform-label{font-family:'Pixelify Sans',monospace;font-size:16px;letter-spacing:.03em;margin-bottom:8px}
.icon-credit{display:block;font-size:10px;margin-top:5px;color:#8aaac9}
.icon-credit a{color:#9bd7ff}
/* Surprise guide is intentionally hidden until an actual automatic reward occurs. */
.special-rules:not(.hidden){animation:mysteryFlash .45s ease-out}
@keyframes mysteryFlash{from{transform:scale(.99);box-shadow:0 0 25px #e8bf4480}to{transform:scale(1);box-shadow:0 0 16px #069bff17}}
@media(max-width:480px){.share-platforms{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.share-platforms .social-icon{min-height:50px;padding:7px}.share-platforms .social-icon svg{width:24px;height:24px}}
@media(prefers-reduced-motion:reduce){.special-rules:not(.hidden){animation:none}.share-platforms .social-icon{transition:none}}

/* PIXEL SHOP BETA. Isolated from gameplay and existing arcade dashboard. */
.pixel-shop{background:#0b1e37;border:2px solid #36aeeb;border-radius:3px;box-shadow:0 0 25px #159cf41d;margin:16px 0 14px;padding:15px;color:#eff9ff}
.pixel-shop details>summary{font:700 clamp(18px,4vw,27px) 'Pixelify Sans',monospace;color:#ffcf72;cursor:pointer;padding:2px 0;list-style:none;display:flex;justify-content:space-between;gap:8px;align-items:center}.pixel-shop details>summary:before{content:'▸';margin-right:5px}.pixel-shop details[open]>summary:before{content:'▾'}.pixel-shop details>summary span{font:700 12px system-ui,sans-serif;color:#92daf8;text-align:right}.pixel-shop details[open]>summary{border-bottom:1px solid #34618e;padding-bottom:11px;margin-bottom:12px}.pixel-shop button{cursor:pointer;border-radius:2px;font-weight:900;font-family:'Pixelify Sans',ui-monospace,monospace;font-size:17px;min-height:43px;letter-spacing:.03em}
.pixel-shop button:disabled{opacity:.56;cursor:default}
.shop-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.shop-top h2{font:700 clamp(23px,4vw,31px)/1.05 'Pixelify Sans',monospace;margin:3px 0 9px;color:#fff}
.shop-top p{color:#b2cae6;font-size:13px;margin:0}.shop-top .shop-kicker{color:#75deff;font-size:12px;font-weight:900;letter-spacing:.12em}
.shop-beta{color:#ffe3aa;border:1px solid #8d6b39;font-size:11px;padding:4px 6px;white-space:nowrap}
.founder-banner{background:linear-gradient(105deg,#302317,#161c39);border:1px solid #e1b24b;margin-top:13px;padding:13px;display:flex;align-items:center;gap:14px;justify-content:space-between}
.founder-banner strong{font:700 25px 'Pixelify Sans',monospace;color:#ffd46d}.founder-banner p{max-width:550px;margin:4px 0;color:#f7e2b1;font-size:13px;line-height:1.4}.founder-banner span{display:inline-block;margin-top:4px;color:#ffd77e;font-size:12px}
#claimFounder{background:#ffca54;color:#162030;border:1px solid #ffe3a0;white-space:nowrap;padding:10px 14px}
.shop-items{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:12px}
.shop-item{background:#101d37;border:1px solid #33618c;padding:12px 10px;display:flex;flex-direction:column;gap:6px;min-width:0}
.shop-item .item-icon{font-size:27px}.shop-item strong{font:700 21px/1.1 'Pixelify Sans',monospace;color:#82e4ff}.shop-item p{margin:0 0 auto;font-size:12px;color:#b4c8df;line-height:1.4}
.shop-item>div{margin-top:10px;display:flex;justify-content:space-between;align-items:center;gap:7px;flex-wrap:wrap}
.shop-item b{font:700 23px 'Pixelify Sans',monospace;color:#ffcf67}
.shop-item button{background:#1a67a2;border:1px solid #61c7fe;color:#f0faff;padding:6px 10px}
.video-maker{border-top:1px solid #345778;margin-top:15px;padding-top:12px}
.video-maker h3{font:700 25px 'Pixelify Sans',monospace;color:#9ce7ff;margin:0 0 4px}.video-maker p,.video-maker small{color:#acc8e3;font-size:12px;line-height:1.5;margin:4px 0}
.video-maker-inputs{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.video-maker-inputs label{flex:1 1 160px;border:1px solid #305b84;padding:9px;font-size:12px;color:#a4e9fb;min-width:0}.video-maker-inputs input{display:block;max-width:100%;font-size:11px;margin-top:7px;color:#e8f8ff}
.preview-area{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.preview-area canvas{height:210px;width:118px;background:#07172d;border:1px solid #227fc1;image-rendering:auto;max-width:100%}.preview-area p{max-width:380px;flex:1;min-width:130px}
#exportPersonal{background:#f34e99;border:1px solid #ff9ece;color:white;padding:10px 19px;margin:12px 0 5px;display:block}
.shop-message{font-size:12px;color:#c1d7ec;background:#102e47;padding:9px;border-left:3px solid #4acbff;margin:12px 0 0}
.identity-avatar.founder-avatar{outline:3px solid #ffd166;box-shadow:0 0 10px #ffd1669e}
.shop-spark{animation:shop-spark-pop .5s ease-out}@keyframes shop-spark-pop{0%{filter:drop-shadow(0 0 0 #29d7ff)}40%{filter:drop-shadow(0 0 12px #29d7ff)}100%{filter:drop-shadow(0 0 0 #29d7ff)}}
@media(max-width:790px){.shop-items{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.pixel-shop{padding:10px}.shop-items{gap:7px}.shop-item{padding:9px}.shop-item strong{font-size:18px}.founder-banner{flex-direction:column;align-items:stretch}.founder-banner button{width:100%}.shop-top .shop-kicker{font-size:10px}.shop-item>div{align-items:stretch}.shop-item button{flex:1}}
@media(prefers-reduced-motion:reduce){.shop-spark{animation:none}}

/* PIXEL SHOP RELEASE FIX: useful previews and reliably playable exported media */
.pixel-shop .shop-item button.owned-preview{background:#174f41;border-color:#64ffc6;color:#c9ffe8;opacity:1}
.identity.founder-identity{position:relative;padding:5px 9px;border:2px solid #ffd568!important;box-shadow:0 0 13px #ffc74e8c,inset 0 0 9px #d99b2d38;background:#212c3c;border-radius:2px}
.identity-avatar.founder-avatar{width:44px;height:44px;background:#3e3119!important;outline:3px solid #ffd166!important;outline-offset:2px;box-shadow:0 0 0 4px #7d561b,0 0 15px #ffc44d!important}
.identity.founder-identity .identity strong{color:#ffe387!important;text-shadow:0 0 7px #f7b93b}
.identity.founder-identity:after{content:'★';font-size:12px;color:#ffd166;position:absolute;top:-11px;right:-6px;background:#08192d;padding:1px 3px}
.founder-showcase{animation:founder-peek 1.1s ease-out 2}@keyframes founder-peek{50%{box-shadow:0 0 28px #ffd166!important;filter:brightness(1.3)}}
.shop-preview-anchor{position:relative!important;overflow:visible}.shop-spark-burst{position:absolute;z-index:20;pointer-events:none;width:0;height:0;overflow:visible;transform:translate(-50%,-50%)}
.shop-spark-bit{position:absolute;display:block;left:0;top:0;width:10px;height:10px;box-shadow:0 0 8px currentColor;animation:spark-burst .64s steps(4,end) forwards;animation-delay:var(--delay,0ms);background:currentColor}
@keyframes spark-burst{0%{opacity:1;transform:translate(0,0) scale(1.3)}60%{opacity:1}100%{opacity:0;transform:translate(var(--x),var(--y)) scale(.4)}}
.shop-video-result{padding:12px;margin:10px 0;border:2px solid #65c0ff;background:#0b2648}
.shop-video-result.hidden{display:none!important}
.shop-video-result h3{color:#75e9ff}
.shop-video-result video{display:block;max-width:100%;max-height:360px;border:1px solid #3ca0cf;background:#031020;margin:8px 0}
.shop-video-actions{display:flex;flex-wrap:wrap;gap:8px}
.shop-video-actions button{background:#1f8ae0;color:#fff;border:1px solid #84dfff;padding:9px 12px}
#shopShareVideo{background:#e34593;border-color:#ffa3c4}
@media(prefers-reduced-motion:reduce){.shop-spark-bit,.founder-showcase{animation:none!important}}

/* PHOTO TILES: public avatars are visible on claimed squares, with no game advantage. */
.photo-tile-product{grid-column:1/-1;border-color:#f4c151!important;background:linear-gradient(105deg,#243352,#151b32)!important}
.photo-tile-config{margin:12px 0 16px;padding:14px;border:2px solid #e5b74e;background:#0a243d;color:#def4ff}
.photo-tile-config h3{font-family:'Pixelify Sans',monospace;color:#ffe083;font-size:21px;margin:0 0 7px}
.photo-tile-config p,.photo-tile-config small{font:13px/1.5 system-ui,sans-serif;color:#bad2ed}
.photo-tile-config label{display:block;margin:12px 0 7px;color:#ffe28d;font:700 14px 'Pixelify Sans',monospace}
.photo-tile-config input{display:block;color:#f3f8ff;max-width:100%;font-size:13px}
.photo-tile-preview{display:flex;align-items:center;gap:15px;margin-top:13px}
.photo-tile-preview canvas{image-rendering:pixelated;width:84px;height:84px;border:3px solid #f4cc58;background:#13243e;flex-shrink:0}
.photo-tile-preview strong{color:#fff}
.photo-tile-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
.photo-tile-actions button{min-height:44px;border:2px solid #61edff;background:#134e76;color:white;padding:10px 14px;font:700 16px 'Pixelify Sans',monospace;cursor:pointer}
.photo-tile-actions .photo-remove{background:#31172b;border-color:#f184ab}
@media(max-width:560px){.photo-tile-product{grid-column:auto}}

/* PHOTO TILES HOVER PROFILES: game pixels outside, smooth actual player portraits inside. */
.photo-tile-preview canvas{image-rendering:auto!important}
.tile-profile-card{position:absolute;z-index:90;width:282px;max-width:calc(100% - 12px);background:#0b1c32;border:2px solid #ffe082;color:#eef8ff;box-shadow:0 9px 30px #000b,0 0 14px #ffd16655;padding:11px;line-height:1.35;pointer-events:none;text-align:left;box-sizing:border-box;transition:opacity .13s ease-out}
.tile-profile-card.hidden{display:none!important}
.tile-profile-head{display:flex;align-items:center;gap:11px;padding-bottom:10px;border-bottom:1px solid #425676}
.tile-profile-head img{width:88px;height:88px;flex:0 0 88px;object-fit:cover;image-rendering:auto!important;border:2px solid #ffe28b;border-radius:3px;background:#102b48}
.tile-profile-head strong{font:700 17px/1.14 'Pixelify Sans',monospace;display:block;overflow-wrap:anywhere;color:#fff}
.tile-profile-head>div{min-width:0;flex:1}
.tile-profile-head span{display:block;font:700 12px/1.4 system-ui,sans-serif;margin-top:6px;letter-spacing:.045em}
.tile-profile-head span.revealer{color:#50dbff}.tile-profile-head span.keeper{color:#ff74b2}
.tile-profile-stats{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}
.tile-profile-stats div{padding:6px;background:#132f4a;border:1px solid #30516f;min-width:0}
.tile-profile-stats b{display:block;font:700 22px 'Pixelify Sans',monospace;color:#ffe28b}
.tile-profile-stats small{display:block;font:11px/1.1 system-ui,sans-serif;color:#bdd3ec;margin-top:3px}
.tile-profile-caption{display:block;text-align:center;color:#98b4ce;font:11px system-ui,sans-serif;margin-top:10px}
@media(max-width:500px){.tile-profile-card{width:280px;padding:10px}.tile-profile-head img{width:92px;height:92px;flex-basis:92px}.tile-profile-head strong{font-size:18px}}
/* A mobile battlefield can be shorter than the player card: float above the board rather than clipping statistics. */
@media(pointer:coarse){.tile-profile-card{position:fixed!important;left:50%!important;top:21vh!important;transform:translateX(-50%);width:min(300px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:hidden;box-shadow:0 10px 45px #000e,0 0 15px #ffd16677}}
@media(prefers-reduced-motion:reduce){.tile-profile-card{transition:none}}

/* Make photo upload failure/success readable in the shop rather than fleeting toast. */
#tilePhotoStatus{display:block;overflow-wrap:anywhere;line-height:1.45;max-width:100%}

/* Community image safety controls */
.photo-safety-confirm{display:flex;gap:9px;align-items:flex-start;padding:10px 8px;margin:8px 0;color:#dfebff;font:12px/1.4 system-ui,sans-serif;background:#1c3148;border:1px solid #516c87}
.photo-safety-confirm input{margin-top:3px;accent-color:#4ad2ff}
.tile-profile-card{pointer-events:none}
.photo-report-row{pointer-events:auto;display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin:10px 0 0;border-top:1px solid #3f536e;padding-top:7px}
.photo-report-row label{width:100%;font:11px system-ui,sans-serif;color:#ffd87e}
.photo-report-row select{background:#092038;color:white;flex:1;min-width:130px;padding:7px;border:1px solid #476382;font-size:11px}
.photo-report-row button{background:#af304d;color:#fff;font-weight:700;border:0;padding:8px;cursor:pointer;font-size:11px}
.tile-profile-card{max-height:calc(100dvh - 22px);overflow:visible}

/* Territory War: three ownership states plus conquest tally. */
.conquest-strip{margin-top:10px;border:1px solid #9b7e2c;background:#292711;padding:10px 12px;color:#ffdb75;display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-family:'Pixelify Sans',system-ui,sans-serif;font-size:15px;}
.conquest-strip b{font-size:19px;color:#ffffff}.conquest-strip span{color:#e4dbb8}
.shop-item.photo-tile-product{border-color:#299aca}

/* CRISP PHOTO TILES: the pixel font stays arcade, but real photographs must never use nearest-neighbor canvas scaling. */
.canvas-wrap canvas#board{image-rendering:auto!important}

.collage-gallery{margin-top:18px;padding:14px;border:1px solid #2b7dab;background:#0c1e33;border-radius:10px;color:#d8f3ff}.collage-gallery h3{color:#71dafa;margin:0 0 8px}.collage-gallery p{font-size:13px;line-height:1.45}.collage-gallery-photos{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.collage-photo-option{display:flex;flex-direction:column;align-items:center;gap:6px;background:#112841;color:white;border:2px solid #466587;border-radius:5px;padding:7px;min-width:93px;cursor:pointer}.collage-photo-option.active{border-color:#ffd55f;box-shadow:0 0 0 2px #99770c}.collage-photo-option img{width:80px;height:80px;object-fit:cover;image-rendering:auto!important;border-radius:3px}.collage-photo-option span{font:11px system-ui,sans-serif}.collage-gallery small{display:block;font-size:11px;opacity:.8}

/* Video Territory beta: intentional second-tier feature under the shared battlefield. */
.video-territory{border:1px solid #1c74aa;background:#0d2038;border-radius:11px;margin:15px 0;color:#e5f4ff}
.video-territory summary{cursor:pointer;list-style:none;padding:14px 17px;font-weight:900;letter-spacing:1px;color:#7de6ff}
.video-territory summary span{font-size:11px;color:#9db8d4;font-weight:600;margin-left:10px}
.video-territory details[open] summary{border-bottom:1px solid #274968}
.video-head{padding:16px 17px 0}.video-head h2{color:#f8fcff;font-size:20px;margin:0 0 6px}.video-head p{color:#adcae2;font-size:13px}
.video-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:15px}.video-pane{border:1px solid #294c70;border-radius:8px;padding:15px;min-width:0;background:#112b49}
.video-pane h3{font-size:15px;color:#5ddfff}.video-pane label{display:block;font-size:12px;font-weight:700;color:#e3f5ff;margin:12px 0 5px}
.video-pane select,.video-pane input[type=file]{max-width:100%;width:100%;color:#eaf8ff;background:#08192c;border:1px solid #4586ab;padding:9px;border-radius:6px}
.video-pane button{cursor:pointer;background:#1b88c6;color:white;border:1px solid #5bd7fc;border-radius:6px;font-weight:800;padding:11px;margin-top:8px}
.video-pane button:disabled{opacity:.55;cursor:not-allowed}.video-controls{display:flex;flex-wrap:wrap;gap:7px}.video-pane .video-tiny{font-size:12px;line-height:1.5;color:#a8c0d6}
.video-upload-preview{display:none;margin-top:8px;max-height:220px;width:100%;background:#050e1c}.video-upload-preview[src]{display:block}.video-consent{display:flex!important;gap:7px;align-items:flex-start}
.video-status{margin:10px 17px;padding:10px 12px;border:1px solid #284e71;background:#071b30;color:#a9f3ff;font-size:13px}.credit-count{color:#ffd96c;font-weight:800}
@media(max-width:620px){.video-grid{grid-template-columns:1fr}.video-territory summary span{display:block;margin:4px 0 0}}

/* Video Territory belongs to Pixel Shop as the final purchasable item. */
.shop-video-divider{border-top:3px dashed #35546b;margin:26px 0 18px;}
.pixel-shop .video-territory{margin:0;width:100%;max-width:100%;border:0;box-shadow:none;}
.pixel-shop .video-territory details{border:2px solid #365471;border-radius:8px;background:#11233a;}
.pixel-shop .video-territory summary{font-size:clamp(13px,2vw,18px);}
@media(max-width:600px){.shop-video-divider{margin:18px 0 12px}.pixel-shop .video-territory{padding:0}}

/* Battle reel posting shortcuts: styled for mobile and desktop without third-party libraries. */
.battle-social-shortcuts{margin-top:12px;padding:13px 11px;background:#0b1c31;border:1px solid #2d87b2;border-radius:6px}
.battle-social-heading{color:#76e7ff;font:900 15px 'Pixelify Sans',monospace;letter-spacing:.08em;margin:0 0 9px}
.battle-social-platforms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.battle-social-platforms .reel-social{display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;min-width:0;min-height:43px;padding:8px 4px;font:bold 12px/1.2 system-ui,sans-serif;color:#fff;border:1px solid #a0b5c9;border-radius:7px;cursor:pointer;overflow-wrap:anywhere}
.battle-social-platforms button.reel-instagram{background:linear-gradient(45deg,#fd9743,#de307a,#6651d8)}
.battle-social-platforms button.reel-tiktok{background:#06131a;border-color:#5debe7;box-shadow:inset 3px 0 #ff3b6c}
.battle-social-platforms .reel-facebook{background:#1568c6}
.battle-social-platforms button.reel-youtube{background:#d91c25}
.battle-social-platforms .reel-x{background:#05080f}
.battle-social-platforms button.reel-whatsapp{background:#0d8b52}
.battle-social-platforms button.reel-sms{background:#135e9e;border-color:#80dff9;grid-column:1/-1}
.battle-social-platforms .reel-social:hover,.battle-social-platforms .reel-social:focus-visible{filter:brightness(1.2);outline:2px solid #a8eaff;outline-offset:1px}
.battle-social-shortcuts button.reel-copy-caption{display:block;margin:10px 0 7px;width:100%;background:#184468;border:1px solid #67d7f1;color:#e5faff;font-size:12px;padding:9px 6px}
.battle-social-help{color:#b5d1e5;font:12px/1.5 system-ui,sans-serif;margin:7px 2px 0}
@media(max-width:390px){.battle-social-platforms{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Share panel brand logos: visual-only changes; handlers and destinations unchanged. */
.battle-social-platforms .reel-social{gap:9px;min-height:52px;padding:8px 9px;justify-content:center;line-height:1.15}
.battle-social-platforms .reel-brand-logo{display:block;width:22px;height:22px;min-width:22px;flex:0 0 22px;object-fit:contain;filter:brightness(0) invert(1)}
.battle-social-platforms .reel-sms-icon{filter:none}
.battle-social-platforms .reel-brand-copy{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:3px;min-width:0}
.battle-social-platforms .reel-brand-copy strong{font:800 12px/1.15 system-ui,sans-serif;white-space:normal}
.battle-social-platforms .reel-brand-copy small{font:600 10px/1.15 system-ui,sans-serif;opacity:.88;letter-spacing:.01em;white-space:normal}
#reelPostToX{display:inline-flex;gap:6px;align-items:center;justify-content:center}
#reelPostToX .reel-brand-logo{width:16px;height:16px;filter:brightness(0) invert(1)}
@media(max-width:590px){
  .battle-social-platforms{grid-template-columns:repeat(2,minmax(0,1fr))}
  .battle-social-platforms .reel-social{min-height:53px;padding:9px 7px;gap:7px}
  .battle-social-platforms .reel-brand-copy strong{font-size:11.5px}
  .battle-social-platforms button.reel-sms{grid-column:1/-1}
}

/* PUBLIC FREE BATTLE REEL: immediately after game board, no personal uploads. */
.free-battle-reel{border:2px solid #58d3f1;border-radius:12px;background:linear-gradient(160deg,#0d3153 0%,#0b1b32 75%);padding:clamp(14px,2.5vw,22px);margin:16px 0 20px;box-shadow:0 4px 24px #0004;}
.free-battle-reel .free-reel-intro h3{font:800 clamp(25px,4vw,37px)/1.1 'Pixelify Sans',monospace;color:#9ce7ff;margin:9px 0 8px;}
.free-battle-reel .free-reel-intro p{font:500 clamp(13px,1.8vw,15px)/1.5 system-ui,sans-serif;color:#d4edff;max-width:750px;}
.free-reel-badge{display:inline-block;background:#0c9272;color:white;font:800 11px/1.3 system-ui,sans-serif;letter-spacing:.09em;padding:5px 10px;border:1px solid #6ff0cf;border-radius:20px;}
.free-battle-reel #exportPersonal{font:800 clamp(15px,2.4vw,20px) 'Pixelify Sans',monospace;min-height:49px;max-width:100%;width:min(100%,350px);background:#ec3f90;border-color:#ffc4e0;}
.free-battle-reel .free-reel-status{padding:9px 11px;border-left:3px solid #65e8d8;background:#113451;color:#dcf8ff;font-size:13px;line-height:1.45;margin:12px 0;}
.free-battle-reel .preview-area{margin-top:14px;}
.free-battle-reel .preview-area canvas{height:232px;width:131px;border:2px solid #5cceec;}
.free-battle-reel .preview-area p{color:#c8e5f9;font-size:13px;}
.free-battle-reel .shop-video-result{margin:15px 0;}
.free-battle-reel .shop-video-actions button,.free-battle-reel .shop-video-actions a{min-height:41px;}
@media(max-width:600px){.free-battle-reel{padding:14px;margin:12px 0 17px}.free-battle-reel .preview-area{align-items:flex-start}.free-battle-reel .preview-area canvas{width:104px;height:185px}.free-battle-reel #exportPersonal{width:100%}}


/* Reliable direct Facebook link and fallback. */
#reelPostToFacebook{display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;}
#reelPostToFacebook .reel-brand-logo{width:16px;height:16px;filter:brightness(0) invert(1)}

/* Simple photo permission pop-up before sharing a Battle Reel. */
.reel-share-consent-overlay[hidden]{display:none!important}
.reel-share-consent-overlay{position:fixed;inset:0;z-index:9999;background:rgba(1,6,17,.87);display:flex;align-items:center;justify-content:center;padding:18px;overflow-y:auto}
.reel-share-consent-dialog{width:min(100%,535px);max-height:calc(100dvh - 34px);overflow-y:auto;background:#102844;border:2px solid #75e0fa;border-radius:12px;box-shadow:0 20px 70px rgba(0,0,0,.7);padding:22px;color:#edf9ff;font:14px/1.5 system-ui,sans-serif}
.reel-consent-kicker{color:#ffda79;font:800 12px/1.4 'Pixelify Sans',monospace;letter-spacing:.06em}
.reel-share-consent-dialog h2{margin:8px 0 12px;color:#fff;font:800 24px/1.2 'Pixelify Sans',monospace}
.reel-share-consent-dialog p{margin:0 0 14px;color:#d5ebff;line-height:1.5}
.reel-modal-check{display:flex;gap:11px;align-items:flex-start;padding:14px;border:2px solid #5ac4df;border-radius:8px;background:#1a3c56;cursor:pointer;color:#fff;font-size:14px;line-height:1.45}
.reel-modal-check input{width:23px;height:23px;accent-color:#44c7ed;flex:0 0 23px;margin:1px 0 0}
.reel-consent-buttons{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.reel-consent-buttons button{border:1px solid #8ad6ed;padding:11px 16px;border-radius:6px;color:#fff;background:#27465f;font-weight:750;min-height:46px}
#reelShareConsentContinue{background:#0b83bd;border-color:#70e6ff}
#reelShareConsentContinue:disabled{opacity:.4;cursor:not-allowed}
.reel-share-consent-dialog :focus-visible{outline:3px solid #ffe189;outline-offset:2px}
@media(max-width:430px){.reel-share-consent-overlay{padding:9px}.reel-share-consent-dialog{padding:15px}.reel-share-consent-dialog h2{font-size:21px}.reel-consent-buttons button{flex:1 1 130px}}


/* Battle Reel + Bring Your Team Back Up: shared location directly below the board. */
.battle-recruit-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:14px;
  align-items:start;
  margin:14px 0 20px;
}
.battle-recruit-grid > * {min-width:0;box-sizing:border-box;}
.battle-recruit-grid:has(#recruitSection.hidden) {grid-template-columns:minmax(0,1fr);}
.battle-recruit-grid .free-battle-reel {
  margin:0;
  padding:14px;
}
.battle-recruit-grid .free-reel-intro h3 {font-size:clamp(23px,3vw,32px);overflow-wrap:anywhere;}
.battle-recruit-grid .free-reel-intro p {font-size:13px;}
.battle-recruit-grid .invite-box {
  margin:0;
  padding:14px;
  border:2px solid #36b9eb;
  background:linear-gradient(160deg,#0d3153,#0b1b32 80%);
  color:#f0f7ff;
  border-radius:12px;
  box-shadow:0 4px 24px #0004;
}
.battle-recruit-grid .invite-heading b {color:#9ce7ff;font:800 clamp(19px,2.5vw,27px)/1.1 'Pixelify Sans',monospace;}
.battle-recruit-grid .invite-heading {align-items:flex-start;}
.battle-recruit-grid .invite-heading small {margin-top:7px;line-height:1.4;}
.battle-recruit-grid .battle-social-platforms {grid-template-columns:repeat(2,minmax(0,1fr));}
.battle-recruit-grid .reel-social {min-height:52px;}
.battle-recruit-grid .reel-brand-copy {min-width:0;}
.battle-recruit-grid .share-platforms {grid-template-columns:repeat(3,minmax(0,1fr));}
.battle-recruit-grid .share-platforms .social-icon {min-width:0;}
.battle-recruit-grid .invite-actions {flex-wrap:wrap;}
.battle-recruit-grid .invite-actions button {min-width:105px;}
.battle-recruit-grid .recruit-progress {grid-template-columns:repeat(3,minmax(0,1fr));}
.battle-recruit-grid .recruit-progress > div {min-width:0;}
.battle-recruit-grid .recruit-progress .stat-label {font-size:10px;overflow-wrap:anywhere;}
.battle-recruit-grid .share-gif-actions {flex-wrap:wrap;}
.battle-recruit-grid .shop-video-actions {flex-wrap:wrap;}
.battle-recruit-grid .shop-video-actions > * {max-width:100%;overflow-wrap:anywhere;}
.battle-recruit-grid #reelPublishedUrl {box-sizing:border-box;max-width:100%;}
@media(max-width:760px) {
  .battle-recruit-grid {grid-template-columns:minmax(0,1fr);gap:12px;margin:12px 0 18px;}
  .battle-recruit-grid .free-battle-reel {margin:0;}
  .battle-recruit-grid .invite-box {margin:0;}
  .battle-recruit-grid .battle-social-platforms {grid-template-columns:repeat(2,minmax(0,1fr));}
}

/* Battle Reel rendering status: visible during capture AND final encoding. */
.reel-build-overlay[hidden]{display:none!important}
.reel-build-overlay{position:fixed;inset:0;z-index:10001;display:flex;justify-content:center;align-items:center;padding:18px;background:rgba(2,8,22,.88);backdrop-filter:blur(3px)}
.reel-build-dialog{width:min(100%,480px);padding:29px 24px;text-align:center;border:2px solid #65dfff;border-radius:13px;background:linear-gradient(155deg,#153b63,#0c1d37);color:#eefaff;box-shadow:0 20px 70px #000a;outline:0;font-family:system-ui,Arial,sans-serif}
.reel-build-kicker{color:#86ebff;letter-spacing:.1em;font:800 12px/1.4 'Pixelify Sans',monospace}
.reel-build-dialog h2{font:800 clamp(21px,5vw,29px)/1.18 'Pixelify Sans',monospace;color:#fff;margin:18px 0 12px}
.reel-build-dialog p{font-size:15px;color:#e0f5ff;margin:0 0 14px;min-height:2em}
.reel-build-dialog small{display:block;margin:15px 0 0;color:#b8d8ee;line-height:1.55}
.reel-build-mark{display:flex;justify-content:center;align-items:flex-end;gap:8px;height:42px;margin:20px 0 4px}
.reel-build-mark span{width:17px;height:17px;border-radius:3px;background:#3ad2ef;box-shadow:0 0 11px #32cdf47d;animation:reelBuildPixels 1.05s ease-in-out infinite alternate}
.reel-build-mark span:nth-child(2){animation-delay:.14s;background:#ff5fa6}
.reel-build-mark span:nth-child(3){animation-delay:.28s}
.reel-build-mark span:nth-child(4){animation-delay:.42s;background:#ff5fa6}
.reel-build-mark span:nth-child(5){animation-delay:.56s}
.reel-build-track{height:8px;overflow:hidden;border-radius:12px;border:1px solid #31678e;background:#071526;position:relative}
.reel-build-track span{display:block;width:34%;height:100%;background:linear-gradient(90deg,#25bae4,#ff64ab);animation:reelBuildSlide 1.7s ease-in-out infinite alternate;border-radius:9px}
@keyframes reelBuildPixels{to{height:35px;transform:translateY(-3px);filter:brightness(1.3)}}
@keyframes reelBuildSlide{0%{transform:translateX(-10%)}100%{transform:translateX(205%)}}
@media(prefers-reduced-motion:reduce){.reel-build-mark span,.reel-build-track span{animation:none!important}}
@media(max-width:450px){.reel-build-dialog{padding:23px 15px}}

/* ACCOUNT SIGN-IN (2026-10-28) */
.account-header{display:flex;align-items:center;gap:8px;min-width:0}
.account-open{border:1px solid #60caff;background:#123c65;color:#fff;padding:8px 12px;font-family:'Pixelify Sans',monospace;font-size:14px;letter-spacing:.03em;border-radius:4px;cursor:pointer}
.account-open{white-space:nowrap;max-width:170px;overflow:hidden;text-overflow:ellipsis}

.auth-dialog{position:fixed;inset:0;margin:auto;max-width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 30px);overflow:auto;border:2px solid #4bc5ff;border-radius:7px;background:#0c1a33;color:#f3f8ff;padding:22px;box-shadow:0 15px 55px #000b;font-family:system-ui,sans-serif}
.auth-dialog::backdrop{background:#010812dc;backdrop-filter:blur(3px)}
.auth-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.auth-mark{font-family:'Pixelify Sans',monospace;color:#8de4ff;font-weight:700;letter-spacing:.06em}.auth-close{background:#223853;color:#fff;border:1px solid #547ba1;border-radius:3px;width:32px;height:32px;cursor:pointer}
.auth-dialog h2{font-family:'Pixelify Sans',monospace;font-size:25px;color:#fff;margin:12px 0}.auth-intro,.auth-dialog p{font-size:13px;line-height:1.55;color:#bad2e9}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}.auth-tabs button{background:#172b45;border:1px solid #557ca2;color:#c7e2f5;border-radius:3px;padding:11px 7px;cursor:pointer;font-weight:750}.auth-tabs button.active{border-color:#5cdaff;background:#07558c;color:white}
.auth-dialog label{display:block;margin-top:11px;font-size:12px;font-weight:700;color:#d8eaff}.auth-dialog input{margin-top:5px;width:100%;min-width:0;box-sizing:border-box;padding:12px;border-radius:4px;border:1px solid #496d8f;background:#061322;color:#fff;font:inherit;font-size:16px}.auth-dialog input:focus{outline:2px solid #5dcaff;outline-offset:1px}.auth-submit,.auth-signout{width:100%;padding:13px;border:1px solid #7cdeff;border-radius:4px;background:#117db8;color:#fff;font-family:'Pixelify Sans',monospace;font-size:18px;cursor:pointer}.auth-submit:disabled{opacity:.5;cursor:wait}.auth-signout{margin-top:12px;background:#533044;border-color:#d38ca3}
.auth-info{padding:9px 11px;background:#172a40;border-radius:3px}.auth-error{min-height:18px;color:#ffc3c3!important;font-weight:700}.auth-warning{margin-bottom:0;font-size:11px!important;color:#9fbed8!important}
@media(max-width:550px){.topbar .brand{font-size:19px}.topbar .pill{display:none}.account-open{font-size:11px;padding:8px 7px;max-width:120px}.auth-dialog{padding:15px}}

/* Visible leaderboards and player-controlled photo presentation */
.leaderboard-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px;margin:14px 0 12px;align-items:start}
.leaderboard-grid>.rankings,.leaderboard-grid>.recruit-rankings-card{margin:0;min-width:0;height:100%}
.leaderboard-grid .rankings{padding-top:0;overflow:visible}
.fixed-board-title{font-family:'Pixelify Sans',ui-monospace,monospace;color:#72dcff;font-size:21px;margin:0;padding:13px 14px 9px}
.leaderboard-grid .rankings-content{padding:0 12px 14px}
.leaderboard-grid .recruit-rankings-card{min-height:0}
.team-leaders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.team-leader-column{min-width:0}
.team-leader-heading{font-family:'Pixelify Sans',monospace;font-weight:700;font-size:14px;padding:8px 3px 4px}
.team-leader-heading.cyan{color:#68dafa}.team-leader-heading.magenta{color:#ff77b2}
.team-leader-column .leader{gap:4px;padding:6px 2px;font-size:11px}
.team-leader-column .leader .rank{width:19px;height:19px;flex:none}
.team-leader-column .leader-name{font-size:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.recent-activity-after-leaders{margin-top:12px;min-height:0}
.photo-display-controls{margin:13px 0;padding:12px;border:1px solid #3d8cb6;background:#102c46;border-radius:5px}
.photo-display-controls h4{font-family:'Pixelify Sans',monospace;color:#82e0ff;font-size:18px;margin:0 0 10px}
.photo-display-controls .photo-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:10px 0;border-top:1px solid #305272;color:#f3f8ff;cursor:pointer}
.photo-display-controls .photo-switch span{display:flex;flex-direction:column;gap:4px;flex:1}
.photo-display-controls .photo-switch b{font-size:13px}
.photo-display-controls .photo-switch small{color:#b0cde2;font-size:11px;line-height:1.35}
.photo-display-controls .photo-switch input{display:block;flex:none;width:22px;height:22px;accent-color:#2ec7ef;cursor:pointer}
.photo-display-controls .photo-switch input:disabled{opacity:.5}
@media(max-width:760px){.leaderboard-grid{grid-template-columns:1fr}}
@media(max-width:420px){.team-leaders{gap:7px}.team-leader-column .leader-name{font-size:10px}.fixed-board-title{font-size:19px}}

/* End-of-moves popup. Complements the existing recharge display. */
.moves-out-dialog{position:fixed;inset:0;margin:auto;width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:auto;padding:25px 22px;border:2px solid #66dfff;border-radius:12px;background:linear-gradient(148deg,#17395c,#091c32);color:#f3fbff;box-shadow:0 20px 70px #000b;text-align:center;font-family:system-ui,Arial,sans-serif}
.moves-out-dialog::backdrop{background:rgba(2,8,22,.82);backdrop-filter:blur(3px)}
.moves-out-dialog .moves-out-kicker{font:800 12px/1.5 'Pixelify Sans',monospace;letter-spacing:.08em;color:#86e8ff}
.moves-out-dialog h2{font:800 clamp(27px,6vw,36px)/1.1 'Pixelify Sans',monospace;color:#fff;margin:12px 0 14px}
.moves-out-dialog p{color:#d9efff;font-size:14px;line-height:1.55;margin:0 0 16px}
.moves-out-timer{border:1px solid #6bcbeb;border-radius:8px;background:#0c2b47;padding:14px 12px;margin:16px 0;font:800 21px/1.3 Arial,Helvetica,sans-serif;letter-spacing:0;font-variant-numeric:tabular-nums;color:#ffde78}
.moves-out-dialog .moves-out-tip{font-size:13px;color:#b8d9ee}
.moves-out-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.moves-out-actions button{cursor:pointer;flex:1 1 160px;min-height:44px;border:1px solid #70d9f4;border-radius:5px;padding:10px;background:#12689e;color:white;font:800 15px 'Pixelify Sans',monospace}
.moves-out-actions #movesOutClose{background:#263f57;border-color:#91acc5}
.moves-out-actions button:focus-visible{outline:3px solid #ffe080;outline-offset:2px}
@media(max-width:430px){.moves-out-dialog{padding:21px 15px}.moves-out-actions button{flex-basis:100%}}

/* Optional battle credit purchases, kept visually secondary to free referrals. */
.battle-credit-shop{margin-top:15px;padding:15px;border:1px solid #47637e;border-radius:12px;background:rgba(26,55,84,.26)}
.battle-credit-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;color:inherit;font-size:15px}
.battle-credit-kicker{font-size:10px;color:#85b8d4;font-weight:800;letter-spacing:.06em}
.battle-credit-shop p{font-size:12px;line-height:1.45;margin:8px 0 11px}
.battle-credit-packs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.battle-credit-pack{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px 5px;min-width:0;min-height:85px;border-radius:9px;border:1px solid #72adce;background:#e9f5ff;color:#163d59;font-family:Arial,Helvetica,sans-serif}
.battle-credit-pack>b{font-size:11px;font-weight:850}.battle-credit-pack>strong{font-size:20px;font-weight:900}.battle-credit-pack>small{font-size:11px}
.battle-credit-pack:disabled,.battle-credit-redeem:disabled{opacity:.48;cursor:not-allowed}
.battle-credit-summary{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font:600 12px Arial,Helvetica,sans-serif;margin:14px 0}
.battle-credit-redeem{border:0;border-radius:8px;background:#166997;color:white;font-size:12px;font-weight:850;padding:13px 12px;width:100%}
.battle-credit-notice{font-size:11px!important;color:#54738b;min-height:1.2em}
.moves-out-dialog .moves-out-actions{display:flex;flex-wrap:wrap;gap:7px}
.moves-out-dialog #movesOutBuy{background:#254f73;color:#fff}
@media(max-width:440px){.battle-credit-shop{padding:10px}.battle-credit-packs{gap:6px}.battle-credit-pack{padding:11px 2px}.battle-credit-pack>strong{font-size:18px}.battle-credit-pack>b{font-size:10px}}


/* Game Alerts: matching dark arcade panel and uniformly dark reminder choices. */
.alert-row{background:#0c2945;border:1px solid #34749e;color:#edf7ff;border-radius:5px}
.alert-row b{color:#9bdefd}
.alert-row small,.alert-row #alertStatus{color:#bfd5e7}
.coverup-alert-choices label{background:#102d4b;border:1px solid #365e7c;border-radius:5px;color:#edf7ff}
.coverup-alert-choices label:hover{background:#163a5c;border-color:#4b9fcb}
.coverup-alert-choices b{color:#e8f8ff}
.coverup-alert-choices small{color:#b6cde2}
.coverup-alert-choices input{accent-color:#39bdea}
.alert-button{background:#15527e;border:1px solid #4aa6d6;color:#fff;border-radius:5px}
.alert-button.active{background:#175e51;border-color:#4dbaa1;color:#d5fff1}
.test-alert{background:#113c60;border:1px solid #4a9ac5;color:#dcf7ff;border-radius:5px}
.push-guide{color:#b6cde2}
/* Pixel Shop is an always-expanded section: no collapse arrow or interaction. */
.pixel-shop .shop-fixed-head{font:700 clamp(18px,4vw,27px) 'Pixelify Sans',monospace;color:#ffcf72;border-bottom:1px solid #34618e;padding:2px 0 11px;margin-bottom:12px;display:flex;justify-content:space-between;gap:8px;align-items:center}
.pixel-shop .shop-fixed-head strong{font:inherit;color:inherit}
.pixel-shop .shop-fixed-head span{font:700 12px system-ui,sans-serif;color:#92daf8;text-align:right}
@media(max-width:560px){.pixel-shop .shop-fixed-head{flex-wrap:wrap}}

/* Phone-camera recording: stays inside the dark Pixel Shop. */
.territory-camera-options{border:1px solid #367ca6;background:#09233e;border-radius:8px;padding:11px;margin:8px 0 12px;display:flex;flex-direction:column;gap:7px}
.territory-camera-options button{background:#146ca5;border-color:#66dfff;margin:0;min-height:43px}
.territory-camera-options small{font:12px/1.5 system-ui,sans-serif;color:#b8d8e9}
.territory-camera-options .territory-camera-live{display:block;width:100%;max-height:285px;object-fit:contain;border-radius:6px;background:#030c18}
.territory-camera-options [hidden]{display:none!important}
.territory-camera-controls{display:flex;flex-wrap:wrap;gap:8px}
.territory-camera-controls[hidden]{display:none!important}
.territory-camera-controls button{min-width:0;flex:1 1 120px;font:800 13px/1.25 Arial,Helvetica,sans-serif;letter-spacing:0;padding:11px 8px}
.territory-camera-controls #territoryStartRecording{background:#b32743;border-color:#fa8498}
.territory-camera-controls #territorySwitchCamera{background:#153f68;border-color:#4daed9}
.territory-camera-controls #territoryCloseCamera{background:#2a4057;border-color:#738ca5}
.territory-camera-controls button:disabled{opacity:.55;cursor:not-allowed}


/* All displayed shop dollar amounts use a clear, standard font; arcade labels stay pixel styled. */
.currency-amount,
.pixel-shop .shop-item b.currency-amount,
.pixel-shop button .currency-amount,
.battle-credit-pack strong.currency-amount {
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.pixel-shop .shop-item b.currency-amount {font-size:23px;line-height:1.1;}
.pixel-shop button .currency-amount {font-size:inherit;}

/* Credits belong beside Moves Ready, not in the purchase shop. Keep numbers and actions legible. */
.move-credit-panel{background:#0a2944;border:1px solid #28678f;border-radius:5px;margin:12px 0 8px;padding:11px 12px;color:#e7f5ff;font-family:Arial,Helvetica,sans-serif}
.move-credit-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font:800 12px Arial,Helvetica,sans-serif;letter-spacing:.05em;color:#b4d7ec}
.move-credit-heading strong{font:900 21px Arial,Helvetica,sans-serif;color:#71e7ff;font-variant-numeric:tabular-nums;letter-spacing:0}
.move-credit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.move-credit-type{min-width:0}
.move-credit-balance{display:flex;align-items:baseline;gap:7px;min-height:29px}
.move-credit-balance b{font:900 23px Arial,Helvetica,sans-serif;color:#80f1ce;font-variant-numeric:tabular-nums}
.move-credit-balance span{font:800 11px Arial,Helvetica,sans-serif;color:#bad9ec}
.move-credit-use{display:block;width:100%;min-height:42px;border:1px solid #3799c4;border-radius:5px;background:#126994;color:#fff;font:800 12px Arial,Helvetica,sans-serif;padding:9px 8px;letter-spacing:0;text-align:center;line-height:1.3}
.move-credit-use:disabled{opacity:.45;cursor:not-allowed}
.move-credit-use:focus-visible{outline:3px solid #ffe081;outline-offset:2px}
.move-credit-info{display:block;margin-top:9px;font:400 11px Arial,Helvetica,sans-serif;line-height:1.4;color:#abc9dd}
@media(max-width:450px){.move-credit-panel{padding:10px}.move-credit-grid{gap:7px}.move-credit-use{font-size:11px;padding:8px 5px}.move-credit-balance span{font-size:10px}}
@media(max-width:345px){.move-credit-grid{grid-template-columns:1fr}.move-credit-type{display:flex;align-items:center;gap:8px}.move-credit-use{flex:1}}

/* Readable numeric displays: never render score, stats, move counters, ranks or money in pixel font. */
.battlebar .huge,
#movesNumber,#recharge,#myScore,
#moveTotalCredits,#moveBoughtCredits,#moveReferralCredits,
#battleCreditsOwned,#battleCreditsDaily,
.tile-profile-stats b,.scorerow strong,.leader-points,.leader .rank,
#zoomValue,#worldConquestCount,
.referral-stats b,.recruit-stats b,.recruit-rankings-card .rank,
.battle-credit-pack b,.battle-credit-pack strong,.battle-credit-pack small,
.currency-amount,.pixel-shop .shop-item b.currency-amount,
.pixel-shop button .currency-amount,.battle-credit-summary b,
.battle-credit-pack .credit-limit-label {
  font-family:Arial,Helvetica,sans-serif !important;
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum" 1;
  letter-spacing:0;
}
/* Explain disabled packages without obscuring the prices or changing purchase caps. */
.battle-credit-pack .credit-limit-label{display:none;font-size:10px;font-weight:900;line-height:1.2;letter-spacing:.04em;color:#fff;background:#204a68;border-radius:4px;padding:4px 6px;margin-top:1px}
.battle-credit-pack.limit-hit{background:#deebf5;border-color:#8aa9bf;opacity:.75}
.battle-credit-pack.limit-hit .credit-limit-label{display:block}
.battle-credit-pack.limit-hit:disabled{opacity:.75;cursor:not-allowed}

/* Founder badges, standard-font founder count and player portrait picker. */
.founder-banner .founder-number{font:900 1.12em/1 Arial,Helvetica,sans-serif!important;letter-spacing:0!important;font-variant-numeric:tabular-nums}
.founder-banner #founderRemaining{font-family:Arial,Helvetica,sans-serif!important;font-size:12px!important;font-weight:900!important;letter-spacing:.04em}
.identity{position:relative;overflow:visible}
.identity-info{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.identity .player-founder-badge{display:inline-block;background:#3a3216;border:1px solid #be9f44;border-radius:4px;color:#ffe08c;font:800 10px Arial,Helvetica,sans-serif;padding:2px 5px;letter-spacing:.04em}
.identity .player-founder-badge.hidden{display:none!important}
.identity .choose-avatar{border:0;background:transparent;padding:2px 0;color:#7ccff3;cursor:pointer;font:700 10px Arial,Helvetica,sans-serif;text-decoration:underline;text-underline-offset:2px}
.identity-avatar{overflow:hidden;position:relative;cursor:pointer}
.identity-avatar img{width:100%;height:100%;display:block;object-fit:cover}
.identity-stats-popover{z-index:60;position:absolute;left:0;top:calc(100% + 9px);width:min(320px,calc(100vw - 45px));box-shadow:0 12px 32px #000c;background:#102943;border:1px solid #60c7eb;border-radius:8px;color:#edf8ff;padding:12px;font-family:Arial,Helvetica,sans-serif!important;font-size:12px!important}
.identity-stats-popover strong{display:block;max-width:none;font:900 16px Arial,Helvetica,sans-serif}
.identity-stats-popover>span{display:block;margin-top:4px;color:#bcd9eb}
.identity-stats-popover #identityStatsFounder{color:#ffd676;font-weight:900}
.identity-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:11px}
.identity-stats-grid span{background:#183a56;border-radius:5px;padding:6px;font:12px Arial,Helvetica,sans-serif}
.identity-stats-grid b{display:block;font:900 17px Arial,Helvetica,sans-serif;color:#8de2fa;margin-top:3px}
.tile-profile-card .profile-founder-badge{font:900 11px Arial,Helvetica,sans-serif;color:#f8cf76;margin-top:4px}
.tile-profile-card .profile-joined{font:700 10px Arial,Helvetica,sans-serif;color:#bdcbd7;margin-top:3px}
.avatar-dialog{background:#102942;color:#ecf7ff;border:1px solid #60c7eb;border-radius:11px;max-width:min(560px,calc(100vw - 26px));width:100%;padding:18px;font:13px Arial,Helvetica,sans-serif;box-shadow:0 18px 55px #000b}
.avatar-dialog::backdrop{background:#000b}
.avatar-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.avatar-dialog-head b{font-size:17px}.avatar-dialog-head button{border:1px solid #6284a1;border-radius:5px;background:#29435c;color:white;padding:6px 12px}
.avatar-dialog p{line-height:1.5;color:#c6dcea}
.avatar-dialog label{display:block;margin:11px 0 7px;font-weight:850;color:#9fddf7}
.avatar-dialog input[type=file]{width:100%;margin:0 0 11px;color:#edf7ff}
.avatar-dialog #avatarSubmit{background:#176b9d;border:1px solid #6bd4ff;border-radius:5px;color:white;padding:12px;font:800 13px Arial,Helvetica,sans-serif;width:100%;cursor:pointer}
.avatar-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.avatar-gallery button{background:#1b3b56;border:2px solid transparent;color:white;border-radius:6px;overflow:hidden;padding:4px;font:800 10px Arial,Helvetica,sans-serif}
.avatar-gallery button.selected{border-color:#7deccf}
.avatar-gallery img{width:100%;aspect-ratio:1;object-fit:cover;display:block;border-radius:4px}
@media(max-width:430px){.avatar-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.identity-stats-popover{width:280px}}

/* Simplified shop: one clear photo picker, no native no-file-selected text. */
.photo-tile-config .tile-photo-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important;clip-path:inset(50%)}
.photo-tile-config label.tile-photo-pick{display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin:10px 0 12px;padding:8px 16px;border:1px solid #79d9fa;border-radius:5px;background:#176c9b;color:#fff;cursor:pointer;font:800 14px Arial,Helvetica,sans-serif;letter-spacing:0}
.photo-tile-config .tile-photo-input:focus-visible + .tile-photo-pick{outline:3px solid #ffe682;outline-offset:2px}
.content-report-footer{display:flex;justify-content:center;margin-top:15px}
.content-report-footer .video-report{width:min(100%,410px);font:12px/1.45 Arial,Helvetica,sans-serif;color:#8aa7bf;background:transparent;border:0;padding:0}
.content-report-footer .video-report summary{cursor:pointer;text-align:center;text-decoration:underline;text-underline-offset:3px;font-size:12px;color:#93b4d1}
.content-report-footer .video-report[open]{border:1px solid #385474;background:#11263e;padding:12px;border-radius:8px}
.content-report-footer .video-report[open] summary{margin-bottom:10px}

/* Keep invite links clear without redundant native share button. */
.invite-actions{justify-content:flex-end}
.invite-actions .share-copy{min-width:155px;font:800 12px/1.2 Arial,Helvetica,sans-serif;letter-spacing:0}

/* Compact copy-link fallback for messages and Instagram captions. */
#recruitSection .share-mini-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:9px 0 8px}
#recruitSection .share-mini-header .share-platform-label{margin:0}
#recruitSection #copyInvite.small-copy-invite{font:700 12px/1.2 Arial,Helvetica,sans-serif;letter-spacing:0;color:#9fe7ff;background:transparent;border:0;border-bottom:1px solid #5799bb;border-radius:0;min-height:32px;min-width:0;width:auto;padding:4px 3px;white-space:nowrap;cursor:pointer}
#recruitSection #copyInvite.small-copy-invite:hover{color:#fff;border-bottom-color:#eaf8ff}
#recruitSection #copyInvite.small-copy-invite:focus-visible{outline:2px solid #ffe58c;outline-offset:3px}

/* Collapsible game alerts: closed until player opens this panel. */
.alerts-panel{margin:12px 0 8px;border:1px solid #34749e;border-radius:5px;background:#0c2945;color:#e8f8ff}
.alerts-panel>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;padding:11px 13px;font-family:'Pixelify Sans',system-ui,sans-serif;font-size:14px;font-weight:750;color:#9bdefd;user-select:none}
.alerts-panel>summary::-webkit-details-marker{display:none}
.alerts-panel>summary::after{content:'▾';color:#9bdefd;font:14px Arial,sans-serif}
.alerts-panel[open]>summary::after{content:'▴'}
.alerts-panel-body{padding:0 11px 11px;border-top:1px solid #285878}
.alerts-panel .alert-row{margin-top:9px;padding:8px 0;border:0;background:transparent}
.alerts-panel .alerts-state{font:700 12px Arial,Helvetica,sans-serif;color:#c1d3e2;margin-left:auto}
.alerts-panel .alerts-state.on{color:#4de4ad}

/* Account usernames can be up to 24 characters; show the full public player name. */
#playerName{max-width:min(240px,40vw);white-space:normal;overflow-wrap:anywhere;text-overflow:clip;line-height:1.22}

/* Authenticated-game gate: never expose the battlefield on a signed-out page. */
body:not(.coverup-auth-ready) main,
body:not(.coverup-auth-ready) footer { display:none !important; }
body.coverup-auth-ready #welcomeGate { display:none !important; }
.welcome-gate {
 max-width:780px; margin:clamp(22px,7vh,75px) auto 55px; padding:clamp(22px,5vw,48px);
 border:2px solid #38c9f3;border-radius:16px;background:#0c1d35;
 color:#e8f7ff;text-align:center;box-shadow:0 10px 45px rgba(0,0,0,.24);
}
.welcome-kicker {font:700 12px/1.3 Arial,Helvetica,sans-serif;letter-spacing:1.5px;color:#7bdaf8;}
.welcome-gate h1 {font-size:clamp(24px,4vw,38px);line-height:1.3;margin:19px 0 11px;color:#fff;}
.welcome-gate p {font:15px/1.55 Arial,Helvetica,sans-serif;color:#d1eaff;margin:0 auto 22px;max-width:520px;}
.welcome-teams {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0 14px;}
.welcome-team {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  min-height:120px;padding:15px 10px;background:#10263d;border:2px solid #446680;border-radius:12px;
  cursor:pointer;color:#fff;transition:border-color .12s,background .12s;}
.welcome-team strong {font:800 clamp(13px,2.2vw,18px)/1.35 Arial,Helvetica,sans-serif;letter-spacing:.4px;}
.welcome-team-icon {font:32px/1 Arial,Helvetica,sans-serif;}
.welcome-cyan .welcome-team-icon {color:#23cbf7;}.welcome-magenta .welcome-team-icon {color:#ff4fa0;}
.welcome-cyan[aria-pressed="true"]{border-color:#27d9ff;background:#103e54;box-shadow:inset 0 0 0 1px #27d9ff;}
.welcome-magenta[aria-pressed="true"]{border-color:#ff4f9a;background:#4a183f;box-shadow:inset 0 0 0 1px #ff4f9a;}
.welcome-gate p.welcome-team-message {font-size:13px;min-height:22px;margin:0 0 18px;color:#cdeafa;}
.welcome-create {display:block;width:100%;min-height:54px;background:#198bd0;border:1px solid #79e4ff;border-radius:7px;color:white;
 font:800 16px/1.25 Arial,Helvetica,sans-serif;letter-spacing:.8px;cursor:pointer;}
.welcome-create:hover,.welcome-create:focus-visible {background:#0875ba;}
.welcome-existing {margin-top:20px;font:14px/1.6 Arial,Helvetica,sans-serif;color:#d0e6f6;}
.welcome-existing button {background:none;border:0;padding:4px 6px;color:#6fdcff;text-decoration:underline;cursor:pointer;
 font:700 14px/1.5 Arial,Helvetica,sans-serif;}
@media(max-width:480px){.welcome-teams{gap:10px}.welcome-team{min-height:105px}.welcome-gate{margin:18px 10px 35px}}

/* Fast jump from available credits to the existing purchase packages. */
.move-credit-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:9px}
.move-credit-footer .move-credit-info{margin-top:0;flex:1 1 170px}
.move-buy-credits{flex:0 0 auto;border:1px solid #66dcff;border-radius:5px;background:#146c9e;color:#fff;font:800 12px/1.2 Arial,Helvetica,sans-serif;padding:10px 14px;min-height:38px;cursor:pointer;letter-spacing:.02em}
.move-buy-credits:hover{background:#1d85bb}
.move-buy-credits:focus-visible{outline:3px solid #ffe081;outline-offset:2px}
#buyCredits{scroll-margin-top:20px}


/* Purchased-credit limit: prominent without making the shop busy. */
.battle-daily-cap{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#0a2941;border:1px solid #36759b;border-radius:8px;padding:11px 12px;margin:10px 0 12px;font-family:Arial,Helvetica,sans-serif}
.battle-daily-cap div{display:flex;flex-direction:column;gap:3px}
.battle-daily-cap span{font:800 11px Arial,Helvetica,sans-serif;letter-spacing:.04em;color:#b3d7ea}
.battle-daily-cap b{font:800 16px Arial,Helvetica,sans-serif;color:#edf9ff}
.battle-daily-cap b small{font:600 11px Arial,Helvetica,sans-serif;color:#a6c8da}
.battle-daily-cap .battle-daily-remaining{text-align:right;align-items:flex-end}
.battle-daily-remaining strong{font:800 16px Arial,Helvetica,sans-serif!important;color:#73e8ff}
.battle-daily-remaining small{font:500 11px Arial,Helvetica,sans-serif;color:#a6c8da}
@media(max-width:420px){.battle-daily-cap{gap:7px}.battle-daily-cap b,.battle-daily-remaining strong{font-size:14px!important}}

/* Clear daily purchases and remaining allowance; redundant referral/shop statistics stay accessible to JS. */
#buyCredits .battle-daily-cap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border:1px solid #36759b;background:#092940;border-radius:9px;padding:0;margin:11px 0 12px;overflow:hidden}
#buyCredits .battle-daily-cap .battle-daily-stat{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:4px;min-width:0;padding:13px 6px}
#buyCredits .battle-daily-cap .battle-daily-stat:first-child{border-right:1px solid #36759b}
#buyCredits .battle-daily-cap .battle-daily-stat span{font:800 10px Arial,Helvetica,sans-serif;letter-spacing:.05em;color:#abd9f0}
#buyCredits .battle-daily-cap .battle-daily-stat strong{font:900 31px/1.15 Arial,Helvetica,sans-serif!important;color:#f5faff;letter-spacing:0;font-variant-numeric:tabular-nums}
#buyCredits .battle-daily-cap .battle-daily-remaining strong{color:#6ceeff!important}
#buyCredits .battle-daily-cap.is-limit-reached .battle-daily-remaining strong{color:#ffca72!important}
#buyCredits .battle-daily-cap .battle-daily-stat small{font:600 11px Arial,Helvetica,sans-serif;color:#b4d0e4}
#buyCredits .battle-daily-cap .battle-daily-footnote{grid-column:1/-1;display:block;text-align:center;border-top:1px solid #36759b;padding:9px 7px;font:600 11px/1.4 Arial,Helvetica,sans-serif;color:#b9d8e8}
#buyCredits .battle-daily-cap .battle-daily-footnote b{font:800 11px Arial,Helvetica,sans-serif;color:#f2faff}
#buyCredits .battle-daily-cap .battle-daily-footnote span{font:500 11px Arial,Helvetica,sans-serif;letter-spacing:0;color:#a8cbdf}
/* These details duplicate the existing credit balance near Moves Ready. */
.recruit-progress,#referralMilestone,#referralStats,#buyCredits .battle-credit-summary{display:none!important}
@media(max-width:360px){#buyCredits .battle-daily-cap .battle-daily-stat strong{font-size:27px!important}}

/* Compact Credits Available panel: two one-line credit controls, same redemption logic. */
.move-credit-panel{padding:8px 11px 7px;margin:9px 0 6px}
.move-credit-panel .move-credit-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:35px}
.move-credit-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;min-width:0}
.move-credit-title b{font:800 11px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.03em}
.move-credit-title strong{font:900 19px/1 Arial,Helvetica,sans-serif!important;color:#71e7ff;letter-spacing:0}
.move-credit-panel .move-buy-credits{min-height:34px;padding:8px 11px;font:800 11px/1.2 Arial,Helvetica,sans-serif;white-space:nowrap}
.move-credit-panel .move-credit-grid{gap:9px;margin-top:6px;grid-template-columns:repeat(2,minmax(0,1fr))}
.move-credit-panel .move-credit-type{display:grid;grid-template-columns:minmax(75px,auto) minmax(0,1fr);align-items:center;gap:7px;min-width:0}
.move-credit-panel .move-credit-balance{display:flex;align-items:baseline;gap:5px;min-height:0;min-width:0}
.move-credit-panel .move-credit-balance b{font:900 20px/1.1 Arial,Helvetica,sans-serif}
.move-credit-panel .move-credit-balance span{font:800 10px/1.2 Arial,Helvetica,sans-serif;letter-spacing:0}
.move-credit-panel .move-credit-use{width:100%;min-height:38px;padding:7px 5px;font:800 11px/1.1 Arial,Helvetica,sans-serif;letter-spacing:0}
.move-credit-panel .move-credit-info{display:block;margin-top:6px;font:400 10px/1.3 Arial,Helvetica,sans-serif}
@media (max-width:620px){
 .move-credit-panel .move-credit-grid{gap:7px}
 .move-credit-panel .move-credit-type{grid-template-columns:minmax(0,1fr);gap:3px}
 .move-credit-panel .move-credit-balance{justify-content:center;min-height:18px}
 .move-credit-panel .move-credit-balance b{font-size:18px}
 .move-credit-panel .move-credit-balance span{font-size:10px}
 .move-credit-panel .move-credit-use{min-height:38px}
}
@media (max-width:345px){
 .move-credit-panel .move-credit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .move-credit-panel .move-credit-type{display:grid;grid-template-columns:minmax(0,1fr);gap:3px}
 .move-credit-panel .move-credit-heading{gap:4px}
 .move-credit-title{gap:5px}
 .move-credit-title b{font-size:10px}
 .move-credit-panel .move-buy-credits{padding:7px 6px;font-size:10px}
}

/* COVERUP beta support: easy to find, touch-friendly, private player messaging */
.support-open{display:block;width:100%;margin:12px 0 8px;padding:12px 14px;border:1px solid #69cfff;border-radius:9px;background:#0c3654;color:#e7f8ff;font:800 13px system-ui;letter-spacing:.05em;cursor:pointer}
.support-open:focus-visible{outline:3px solid #ff63bb;outline-offset:3px}
.support-dialog{width:min(94vw,510px);max-height:86dvh;overflow-y:auto;border:1px solid #3eadd1;border-radius:16px;background:#091c32;color:#edf8ff;padding:20px;box-shadow:0 15px 60px #000a}
.support-dialog::backdrop{background:#000b}
.support-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.support-dialog-head h2{margin:0;color:#92edff;font-size:1.25rem}
.support-dialog-head button{border:0;color:white;background:#27445f;border-radius:7px;padding:8px 11px;font-size:1.1rem;cursor:pointer}
.support-dialog p{line-height:1.45}
.support-privacy{font-size:.83rem;color:#bdd6ea}
.support-dialog form{display:grid;gap:9px}
.support-dialog label{font-weight:800;font-size:.8rem;letter-spacing:.04em}
.support-dialog select,.support-dialog textarea{width:100%;box-sizing:border-box;background:#081326;border:1px solid #507997;color:#fff;border-radius:8px;padding:11px;font:15px system-ui}
.support-dialog textarea{resize:vertical;min-height:98px}
.support-dialog #supportSubmit{padding:12px;border-radius:8px;background:#28c1f3;border:0;color:#001527;font-weight:900;cursor:pointer}
.support-dialog #supportSubmit:disabled{opacity:.5;cursor:default}
.support-status{min-height:1.2em;color:#8fe7b6;font-size:.87rem}
.support-dialog h3{font-size:.84rem;color:#b6e8fb;margin:19px 0 8px}
.support-history{display:grid;gap:10px}
.support-history-item{padding:11px;background:#112d47;border:1px solid #31526c;border-radius:9px;overflow-wrap:anywhere}
.support-history-item strong{display:block;color:#9ceaff;font-size:.85rem}
.support-history-item small{color:#abc2d7}
.support-history-item p{margin:8px 0;white-space:pre-wrap}
.support-reply{background:#153950;padding:9px;border-left:3px solid #f75ab3;border-radius:5px}
