@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans',system-ui,sans-serif;color:#e9ede7;background:#10191d;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% -10%,#233938 0,#10191d 53%);min-height:100vh}button,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}.shell{max-width:1400px;margin:auto;min-height:100vh;padding:0 28px}header{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff14}.brand{display:flex;gap:12px;align-items:center}.brand-icon{height:48px;width:48px;display:grid;place-items:center;font-size:32px;color:#151e20;background:#dbb76c;border-radius:12px}.brand strong{letter-spacing:2px;font:700 22px 'Space Grotesk',sans-serif}.brand small{display:block;color:#91a7a1;font-size:9px;font-weight:700;letter-spacing:3.3px;margin-top:4px}.version,.eyebrow{letter-spacing:2px;font-size:11px;font-weight:800;color:#d4b472}.version{border:1px solid #d4b47266;border-radius:20px;padding:8px 12px}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:'Space Grotesk',sans-serif}.home{display:grid;grid-template-columns:minmax(270px,.8fr) minmax(430px,1.2fr);gap:7%;padding:75px 0 92px}.hero{padding-top:70px}.hero h1{font-size:clamp(44px,5.5vw,76px);line-height:1.06;letter-spacing:-3.5px;margin:21px 0}.hero h1 em{font-style:normal;color:#dbb76c}.hero p{color:#9baca8;font-size:17px;line-height:1.8;max-width:420px}.setup{background:#19272a;border:1px solid #36504b;border-radius:22px;padding:26px;box-shadow:0 22px 50px #0003}.section-title{font-size:12px;font-weight:800;letter-spacing:2px;margin-bottom:18px}.section-title span{color:#dbb76c;margin-right:12px}.modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mode{border:1px solid #34504b;background:#142024;color:#dbe5df;text-align:left;padding:17px 14px;border-radius:13px;min-height:100px;transition:transform .12s,border-color .12s,background .12s}.mode:hover{transform:translateY(-2px);border-color:#a48b55}.mode.active{border:1.5px solid #ddb96e;background:#26352e;box-shadow:inset 0 0 0 1px #e3c77e33}.mode .icon{font-size:22px;display:inline-block;margin-bottom:9px}.mode b{display:block;font-size:14px}.mode small{display:block;font-size:11px;color:#9caaa5;margin-top:4px;line-height:1.3}.settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:25px}.settings label{display:grid;gap:7px;color:#becdc6;font-size:12px;font-weight:700}.settings select{background:#102023;color:#f0eee4;border:1px solid #3a514b;border-radius:8px;padding:12px;width:100%}.actions{display:grid;gap:10px;margin-top:23px}.primary{border:0;background:#d9b36b;color:#192120;border-radius:10px;font-weight:800;padding:17px 20px;letter-spacing:1px;display:flex;justify-content:space-between;align-items:center}.primary:hover{background:#edcd89}.secondary{background:transparent;border:1px solid #48605b;color:#c7d5cf;padding:14px;border-radius:10px;display:flex;align-items:center;justify-content:space-between}.soon{font-size:9px;letter-spacing:1.3px;color:#b7a579}.note{font-size:11px;color:#899d96;line-height:1.65;margin-top:15px}.hidden{display:none!important}.game{padding:28px 0 70px}.game-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:23px}.game-top h2{font-size:26px;margin-top:7px}.back,.small,.board-bar button{background:#253531;border:1px solid #466057;color:#dce5df;border-radius:8px;padding:9px 12px}.back{font-size:11px;font-weight:800;letter-spacing:1px}.game-top-actions{display:flex;gap:7px}.players-hud{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 24px}.player-chip{border:1px solid #3b4e49;background:#182629;border-radius:11px;display:flex;align-items:center;gap:9px;padding:9px 12px;opacity:.58;min-width:135px}.player-chip.active{border-color:#d4b472;background:#26312a;opacity:1;box-shadow:0 0 0 1px #d4b47233}.player-chip.dead{opacity:.22;text-decoration:line-through}.player-chip .pip{height:13px;width:13px;border-radius:50%;flex:none;border:2px solid #fff8}.player-chip b{font-size:12px}.player-chip small{display:block;color:#a6b5af;font-size:11px;margin-top:2px}.battle{display:grid;grid-template-columns:minmax(0,1fr) 268px;gap:20px;align-items:start}.board-column{min-width:0}.board-bar{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#b5c4bb;font-size:12px;padding:0 0 11px}.board-bar div{display:flex;gap:9px;align-items:center}.board-bar button{font-size:17px;padding:1px 11px}.board-bar button.fit-button{font-size:11px;font-weight:800;white-space:nowrap;padding:6px 9px;color:#f4d18d;border-color:#ad9058}.board-viewport{overscroll-behavior:contain;background:#0b1215;border:7px solid #293e38;border-radius:12px;overflow:auto;max-height:68vh;box-shadow:0 20px 50px #0006;scrollbar-color:#517366 transparent}.board{--s:56px;position:relative;flex:none;touch-action:pan-x pan-y;user-select:none}.tile{position:absolute;width:var(--s);height:var(--s);display:grid;place-items:center;cursor:pointer}.tile.light{background:#e9ddbe}.tile.dark{background:#819b86}.tile.selected{background:#dbba64!important}.tile.legal::before{content:'';width:27%;height:27%;background:#29463866;border-radius:50%}.tile.capture::before{content:'';position:absolute;inset:3px;border:4px solid #bf5346b5;border-radius:50%}.tile.premove{box-shadow:inset 0 0 0 4px #7883d0;z-index:1}.tile.hot{background:#d6a451!important}.tile.dom{box-shadow:inset 0 0 0 4px #4baf8c}.tile.flag::after{content:'⚑';position:absolute;font-size:16px;color:#a16e1c;right:1px;top:-1px;pointer-events:none}.tile.mark-check{box-shadow:inset 0 0 0 4px #cd4747}.piece{position:absolute;width:var(--s);height:var(--s);display:grid;place-items:center;font-size:calc(var(--s) * .77);font-family:Georgia,'DejaVu Sans',serif;font-weight:bold;line-height:1;pointer-events:none;transition:transform .18s cubic-bezier(.17,.67,.23,1.14),opacity .15s ease;text-shadow:0 2px 2px #0006;-webkit-text-stroke:.8px #121b20;z-index:2}.piece.selected-piece{filter:drop-shadow(0 0 8px #e9c660);z-index:5}.tile .coord{position:absolute;left:3px;bottom:2px;font-size:9px;color:#385849;opacity:.6}.legend{display:flex;gap:15px;flex-wrap:wrap;margin-top:13px;color:#91a9a0;font-size:11px}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:4px}.selected-dot{background:#dbba64}.move-dot{background:#577f69}.danger-dot{background:#be6059}.sidebar{display:grid;gap:14px}.side-card{background:#1a282a;border:1px solid #324a44;border-radius:14px;padding:18px}.side-card h3{font-size:12px;letter-spacing:1.5px;color:#d9b66f;margin-bottom:12px}.side-card p{font-size:12px;line-height:1.65;color:#b2c3bb}.log{max-height:220px;overflow-y:auto;font-size:11px;color:#b5c5bd;display:grid;gap:9px}.log div{border-bottom:1px solid #ffffff10;padding-bottom:8px}.score{display:flex;justify-content:space-between;color:#d2e0d7;font-size:12px;padding:7px 0;border-bottom:1px solid #ffffff13}.finish{position:fixed;inset:0;z-index:30;display:grid;place-items:center;background:#070d0ee3;padding:18px}.finish-inner{width:min(420px,100%);background:#1c2d2d;border:1px solid #cfb16d;padding:34px;border-radius:20px;text-align:center}.finish-inner h2{font-size:35px;margin:13px 0}.finish-inner p{color:#a2bcb1;line-height:1.6;margin-bottom:24px}.finish-inner .primary{width:100%}footer{border-top:1px solid #ffffff18;padding:22px 0;color:#698077;font-size:10px;font-weight:700;letter-spacing:2px;text-align:center}footer span{color:#d0ad69;margin:0 12px}@media(max-width:900px){.home{grid-template-columns:1fr;gap:25px;padding:35px 0}.hero{padding:0}.hero h1{font-size:clamp(37px,8vw,61px);letter-spacing:-2px}.hero p{font-size:14px}.battle{grid-template-columns:1fr}.sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.shell{padding:0 15px}}@media(max-width:590px){header{height:76px}.brand strong{font-size:16px}.brand small{font-size:7px}.brand-icon{width:40px;height:40px;font-size:27px}.version{font-size:8px}.home{padding-top:29px}.setup{padding:15px}.modes{gap:7px}.mode{padding:12px 10px;min-height:90px}.mode b{font-size:12px}.mode small{font-size:10px}.settings{gap:10px}.game-top{flex-wrap:wrap}.game-top h2{font-size:20px}.player-chip{min-width:118px;padding:7px 9px}.sidebar{grid-template-columns:1fr}.board-viewport{max-height:62vh}.legend{font-size:9px}.primary{font-size:12px}}

/* CALL OF CHESS / visual redesign v0.3 — scoped to front menu */
html{scroll-behavior:smooth}
.top-nav{gap:18px}.top-nav .brand{text-decoration:none;color:inherit}.top-nav .brand-icon{background:linear-gradient(145deg,#f7d78e,#b97b37);box-shadow:0 7px 28px #e8b86130;color:#222c29}.top-links{display:flex;gap:27px;margin-left:auto}.top-links a{color:#9bafa9;text-decoration:none;font-size:11px;font-weight:800;letter-spacing:1.4px;transition:color .18s}.top-links a:hover{color:#e7c57c}
.home-v2{display:block;padding:0 0 82px}.hero-v2{display:grid;grid-template-columns:1fr .89fr;align-items:center;gap:18px;min-height:540px;padding:52px 0 44px;border-bottom:1px solid #ffffff16}.hero-copy{position:relative;z-index:2}.hero-copy h1{font-family:'Space Grotesk',sans-serif;font-size:clamp(41px,5.2vw,74px);line-height:1.01;letter-spacing:-3.3px;margin:20px 0 18px;font-weight:700}.hero-copy h1 em{color:#e1b76c}.hero-copy p{color:#abb9b1;font-size:16px;line-height:1.6;max-width:410px}.hero-pretitle{display:inline-flex;align-items:center;gap:10px;font-size:10px;letter-spacing:2.3px;color:#e3c68d;font-weight:800}.live-light{display:inline-block;background:#72c7a0;width:7px;height:7px;border-radius:50%;box-shadow:0 0 10px #72c7a0b0;flex:none}.launch-cards{display:flex;gap:11px;margin-top:31px;max-width:530px}.launch-card{flex:1;min-height:73px;display:flex;align-items:center;gap:11px;padding:12px 14px;border-radius:13px;text-align:left;transition:transform .18s,box-shadow .18s;border:1px solid #4b665c}.launch-card:hover{transform:translateY(-3px)}.launch-local{background:#e0ba73;border-color:#f6d08b;color:#172421;box-shadow:0 12px 25px #c49f5530}.launch-local:hover{box-shadow:0 14px 33px #d4af5940}.launch-online{background:#1c302f;color:#c8d7cf}.launch-icon{font-family:Georgia,serif;font-size:30px;line-height:1}.launch-card b{display:block;font-size:12px;letter-spacing:1px}.launch-card small{display:block;font-size:10px;margin-top:4px;opacity:.75}.launch-arrow{font-weight:800;font-size:19px;margin-left:auto}.hero-chips{display:flex;gap:20px;flex-wrap:wrap;font-size:10px;letter-spacing:1.4px;color:#81988e;font-weight:800;margin-top:22px}.hero-art{position:relative;min-height:455px;display:grid;place-items:center;overflow:hidden;isolation:isolate}.hero-light{position:absolute;width:90%;aspect-ratio:1;background:radial-gradient(circle,#997c402b 0,#537d6940 34%,transparent 68%);filter:blur(13px)}.hero-orbit{position:absolute;border:1px solid #ccba7c26;border-radius:50%;width:94%;aspect-ratio:1;transform:rotate(-14deg) scaleY(.63)}.orbit-two{width:118%;border-color:#6cb49524;transform:rotate(27deg) scaleY(.63)}.hero-board{position:relative;width:min(82%,355px);aspect-ratio:1;background-color:#96ad94;background-image:conic-gradient(#476658 25%,#dfd7b8 0 50%,#476658 0 75%,#dfd7b8 0);background-size:25% 25%;transform:perspective(700px) rotateX(12deg) rotateZ(-11deg);box-shadow:0 34px 5px -15px #01090980,0 44px 55px #000b,0 0 0 9px #354b3e,0 0 0 12px #b3945a;border-radius:3px}.art-piece{position:absolute;left:calc(var(--x) * 12.5%);top:calc(var(--y) * 12.5%);height:12.5%;width:12.5%;display:grid;place-items:center;color:var(--pc);font:normal clamp(24px,4.4vw,52px) Georgia,serif;filter:drop-shadow(2px 5px 1px #0b1b17a0);text-shadow:0 1px #1d302e;-webkit-text-stroke:1px #223b36}.art-piece.main-knight{font-size:clamp(38px,5.6vw,76px);filter:drop-shadow(0 7px 4px #081f1799) drop-shadow(0 0 14px #e9b862aa);z-index:2}.hero-target{position:absolute;left:48%;top:48%;height:25%;width:25%;border:3px solid #f0d77aa0;transform:translate(-50%,-50%);box-shadow:0 0 30px #f4c75755,inset 0 0 25px #edc46740;pointer-events:none}.hero-art-label{position:absolute;bottom:3%;right:2%;font-size:12px;font-weight:700;letter-spacing:1px;color:#dfc487;display:flex;gap:13px;align-items:center}.hero-art-label span{color:#9eafa4;font-size:10px;letter-spacing:1.7px}
.mode-select-block{padding:54px 0 18px;scroll-margin-top:16px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px}.mini-kicker{color:#d7b66d;font-size:10px;letter-spacing:2.1px;font-weight:800}.section-heading h2,.config-head h2{font:700 clamp(26px,3.3vw,39px) 'Space Grotesk',sans-serif;margin-top:8px;letter-spacing:-1.2px}.section-heading h2 span{color:#e5be78}.mode-total{font-size:10px;letter-spacing:1.7px;color:#c4b179;border:1px solid #5c5440;border-radius:100px;padding:9px 13px;white-space:nowrap}.sparkle{font-size:17px}
.mode-select-block .modes{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.mode-select-block .mode{position:relative;min-height:220px;overflow:hidden;background:#1c2b2c;border:1px solid #364c46;padding:0;display:flex;flex-direction:column;border-radius:16px;text-align:left;isolation:isolate;transform:none}.mode-select-block .mode:hover{transform:translateY(-4px);border-color:var(--accent)}.mode-select-block .mode.active{background:#223330;border:2px solid var(--accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--accent),transparent 55%),0 8px 25px #0005}.mode-classic{--accent:#e1bf7c;--artbg:#63563c}.mode-flag{--accent:#f19476;--artbg:#67413c}.mode-hot{--accent:#f4b34f;--artbg:#765334}.mode-dom{--accent:#9cb0f3;--artbg:#424f73}.mode-coop2{--accent:#79d6bd;--artbg:#316b61}.mode-coop3{--accent:#86b6f1;--artbg:#305574}.mode-ffa{--accent:#df9eec;--artbg:#5d3d63}.mode-art{height:125px;display:block;position:relative;background:radial-gradient(circle at 50% 42%,color-mix(in srgb,var(--accent),transparent 67%),transparent 65%),linear-gradient(128deg,var(--artbg),#19272a);overflow:hidden}.mode-art:after{content:'';position:absolute;inset:auto 0 0;height:24px;background:linear-gradient(transparent,#1c2b2c)}.art-grid{position:absolute;display:block;width:128px;height:128px;left:50%;top:50%;opacity:.48;transform:translate(-50%,-41%) rotate(-18deg) skew(7deg,7deg);background:conic-gradient(#d2d9b65a 25%,#0a1c1777 0 50%,#d2d9b65a 0 75%,#0a1c1777 0);background-size:32px 32px;border:2px solid #f0e1b357;box-shadow:0 11px 25px #0008}.mode-figure,.mode-figure-b{font-family:Georgia,serif;position:absolute;color:var(--accent);font-size:74px;line-height:1;text-shadow:0 7px 4px #06110dad,-1px 0 #eee4bc44;left:calc(50% - 35px);top:26px;transform:rotate(-9deg);filter:drop-shadow(0 0 10px color-mix(in srgb,var(--accent),transparent 63%));z-index:1}.mode-figure-b{font-size:48px;left:61%;top:62px;color:#e8dfc5;opacity:.88;transform:rotate(12deg)}.mode-detail{padding:13px 16px 16px;display:flex;flex-direction:column;flex:1;justify-content:center;gap:4px}.mode-detail .mode-label{font-size:9px;font-weight:800;letter-spacing:1.3px;color:var(--accent)}.mode-detail strong{color:#e8f1e9;font-size:15px;letter-spacing:.4px}.mode-detail small{color:#8da9a0;font-size:10px;line-height:1.35}.mode-tick{position:absolute;right:11px;top:11px;border-radius:50%;width:24px;height:24px;background:#e7c783;color:#19302b;font-size:15px;font-weight:900;display:grid;place-items:center;opacity:0;transform:scale(.7);transition:opacity .15s,transform .15s;z-index:3}.mode.active .mode-tick{opacity:1;transform:scale(1)}
.setup-v2{margin-top:30px;background:linear-gradient(120deg,#1b302e,#1b292b);border:1px solid #48685c;border-radius:20px;scroll-margin-top:25px;padding:24px 28px 23px}.config-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.config-head h2{font-size:28px}.local-tag{white-space:nowrap;display:flex;gap:8px;align-items:center;border:1px solid #447d64;border-radius:99px;padding:8px 12px;font-size:10px;color:#9fd0b6;letter-spacing:1.3px;font-weight:800}.selected-banner{display:flex;align-items:center;gap:11px;padding:13px;border-radius:12px;background:#233b35;border:1px solid #52735e}.selected-symbol{font-family:Georgia,serif;font-size:25px;color:#dfbd75}.selected-banner small{display:block;color:#92b09e;font-size:9px;letter-spacing:1.4px;font-weight:800}.selected-banner strong{display:block;margin-top:4px;color:#eaf1e9;font:700 15px 'Space Grotesk',sans-serif}.selected-check{margin-left:auto;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e8c781;color:#18312c;font-weight:900}.setup-v2 .settings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.setup-v2 .settings label{min-width:0}.field-label{font-size:10px;letter-spacing:1px;color:#a9c0b4}.setup-v2 .settings select{border-radius:9px;background:#102321;border-color:#35594d;padding:12px 27px 12px 9px;font-size:12px}.setup-v2 .settings select:disabled{opacity:.8;color:#bdd1c7}.play-bottom{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-top:22px}.roster-display{display:flex;gap:11px;align-items:center}.roster-icons{display:flex;align-items:center}.roster-icons span{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#2f514b;border:2px solid #1b302e;margin-right:-7px;font-size:19px;color:#e7c77f}.roster-icons span:nth-child(2){color:#86c6dc}.roster-icons span:nth-child(3){color:#e88d80}.roster-display b{display:block;font-size:12px}.roster-display small{font-size:11px;color:#8aa79a}.setup-v2 .start-v2{min-width:min(290px,50%);min-height:54px;font-size:12px;box-shadow:0 11px 26px #d4b46c28}.config-footnote{font-size:11px;color:#79998c;margin-top:16px}
:focus-visible{outline:3px solid #e6c276!important;outline-offset:3px}
@media(max-width:1100px){.mode-select-block .modes{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-v2{min-height:450px}.hero-copy h1{font-size:clamp(40px,5.8vw,65px)}.setup-v2 .settings{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.top-links{display:none}.home-v2{padding-bottom:40px}.hero-v2{grid-template-columns:1fr;padding:35px 0 24px;gap:15px}.hero-copy h1{font-size:clamp(42px,8.2vw,68px)}.hero-copy p{font-size:14px}.hero-art{min-height:270px}.hero-board{width:min(65%,240px)}.art-piece{font-size:clamp(23px,7vw,36px)}.art-piece.main-knight{font-size:clamp(32px,9vw,52px)}.hero-art-label{bottom:0}.hero-chips{font-size:9px;gap:15px}.mode-select-block{padding:34px 0 0}.mode-select-block .modes{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mode-select-block .mode{min-height:183px}.mode-art{height:103px}.art-grid{width:105px;height:105px;background-size:26px 26px}.mode-figure{font-size:61px;top:19px}.mode-figure-b{font-size:40px;top:49px}.mode-detail{padding:12px}.mode-detail strong{font-size:13px}.mode-detail small{font-size:9px}.setup-v2{padding:19px 15px}.config-head h2{font-size:23px}.play-bottom{flex-direction:column;align-items:stretch}.setup-v2 .start-v2{width:100%;min-width:0}.roster-display{padding:4px 0}}
@media(max-width:420px){.top-nav .brand strong{font-size:15px}.hero-copy h1{letter-spacing:-2px}.launch-cards{gap:7px}.launch-card{min-height:70px;padding:10px;gap:6px}.launch-card b{font-size:10px}.launch-card small{font-size:9px}.launch-icon{font-size:24px}.launch-arrow{font-size:14px}.mode-detail small{line-height:1.15}.mode-select-block .mode{min-height:175px}.mode-total{font-size:9px;padding:7px 9px}.section-heading h2{font-size:26px}.setup-v2 .settings{gap:8px}.field-label{font-size:9px}}
@media(prefers-reduced-motion:reduce){.launch-card,.mode,.mode-tick{transition:none!important}}


/* Call of Chess 0.4 — guided three-step navigation */
.flow-home{min-height:min(780px,calc(100dvh - 160px));padding:0 0 55px}
.flow-steps{display:flex;align-items:center;justify-content:center;gap:14px;padding:24px 0 8px;color:#71867e}
.flow-step{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:800;letter-spacing:1.1px;transition:color .2s}
.flow-step b{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;border:1px solid #486057;color:#829c92;font-size:11px}
.flow-step.active,.flow-step.complete{color:#e9ca83}.flow-step.active b{color:#15231f;background:#e3c27c;border-color:#e3c27c}.flow-step.complete b{color:#d9c18c;border-color:#ac9160}
.flow-steps>i{width:30px;height:1px;background:#40574d}
.flow-stage{max-width:1060px;margin:0 auto;animation:stage-rise .27s ease-out both}
@keyframes stage-rise{from{transform:translateY(8px);opacity:.48}to{transform:translateY(0);opacity:1}}
.welcome-stage{padding-top:44px}
.flow-heading{text-align:center}.flow-heading .mini-kicker{display:flex;gap:10px;align-items:center;justify-content:center}
.flow-heading h1{font:700 clamp(34px,6vw,63px)/1.05 'Space Grotesk',sans-serif;letter-spacing:-2.5px;margin:15px 0 9px}
.flow-heading h1 em,.stage-headline h2 em{font-style:normal;color:#e8bc70}
.flow-heading p{font-size:14px;color:#97afa3;line-height:1.6}
.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px;margin:34px auto 0;max-width:950px}
.choice-card{--accent:#ebc77f;position:relative;display:flex;flex-direction:column;overflow:hidden;min-height:352px;text-align:left;border:1px solid #597464;border-radius:22px;background:#22312e;padding:0;color:#e9eee5;box-shadow:0 16px 44px #0003;transition:transform .18s,border-color .18s,box-shadow .18s}
.choice-card:hover{transform:translateY(-5px);border-color:var(--accent);box-shadow:0 23px 42px #0005}
.choice-minis{--accent:#9fe4c8;background:#243633}
.choice-art{height:226px;position:relative;display:block;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 50% 60%,#9674425a,transparent 65%),linear-gradient(145deg,#495444,#213329)}
.minis-art{background:radial-gradient(ellipse at 50% 55%,#3cbe9c4f,transparent 65%),linear-gradient(145deg,#30524c,#1a302c)}
.choice-art:after{content:'';position:absolute;bottom:-1px;width:100%;height:44px;background:linear-gradient(transparent,#22312e)}
.minis-art:after{background:linear-gradient(transparent,#243633)}
.choice-art .checker{position:absolute;width:285px;height:270px;left:50%;top:60%;transform:translate(-50%,-51%) rotate(-23deg) skew(7deg,7deg);opacity:.62;background:conic-gradient(#bcc9ac 25%,#42644c 0 50%,#bcc9ac 0 75%,#42644c 0);background-size:64px 64px;border:6px solid #c5a76d80;box-shadow:0 22px 45px #0008}
.minis-art .checker{transform:translate(-50%,-51%) rotate(17deg) skew(7deg,7deg);border-color:#6fc1a878}
.choice-mainpiece{position:absolute;top:40px;left:calc(50% - 46px);font:normal 147px Georgia,serif;color:#e9cd94;z-index:2;text-shadow:1px 4px 0 #3d503d,4px 15px 15px #0d241dc7;filter:drop-shadow(0 0 20px #e0bd7a55)}
.minis-art .choice-mainpiece{font-size:137px;color:#e0b56b;top:43px;left:calc(50% - 39px)}
.choice-smallpiece{position:absolute;top:116px;left:67%;font:normal 68px Georgia,serif;color:#e9f1d4;z-index:1;text-shadow:4px 9px 11px #05140cb8}
.minis-art .choice-smallpiece{color:#b4efda;left:20%;top:114px}
.choice-flare{position:absolute;color:#fbeab7;z-index:3;font-size:31px;top:30px;right:20%}
.choice-meta{padding:18px 24px 24px;position:relative;z-index:4;display:flex;flex-direction:column;gap:3px}
.choice-eyebrow{font-size:10px;letter-spacing:1.5px;color:var(--accent);font-weight:800}
.choice-meta strong{font:700 28px 'Space Grotesk',sans-serif;letter-spacing:1px}
.choice-meta small{font-size:13px;color:#b0c3b7}
.choice-next{position:absolute;bottom:27px;right:23px;font-size:27px;color:var(--accent)}
.welcome-footer{display:flex;justify-content:center;flex-wrap:wrap;gap:22px;color:#819a8e;font-size:11px;font-weight:700;margin:23px 0}
.future-online{display:flex;align-items:center;gap:13px;margin:25px auto 0;max-width:530px;width:100%;padding:14px 17px;text-align:left;border:1px solid #344f46;border-radius:13px;background:#192a28;color:#b3c9bb}
.future-online:hover{border-color:#547967}.future-online strong{display:block;font-size:12px}.future-online small{display:block;margin-top:3px;font-size:10px;color:#799b8e}.future-symbol{font-size:30px;color:#8bb6a5}
.soon-pill{margin-left:auto;white-space:nowrap;border:1px solid #8c8159;color:#d9c28f;font-size:9px;letter-spacing:.6px;border-radius:30px;padding:7px}
.stage-headline{text-align:center;padding:21px 0 25px;position:relative}.stage-headline .mini-kicker{padding-top:21px}
.stage-headline h2{font:700 clamp(30px,4.6vw,47px) 'Space Grotesk',sans-serif;letter-spacing:-1.8px;margin:9px 0}
.stage-headline p{font-size:13px;color:#97ada1}
.stage-back{position:absolute;left:0;top:16px;border:1px solid #577165;color:#d1ded2;border-radius:10px;padding:10px 17px;background:#22332d;font-size:12px;font-weight:700}
.stage-back:hover{background:#34483b}
.stage-modes .mode-select-block{padding:0}
.stage-modes .modes{grid-template-columns:repeat(3,minmax(0,1fr));max-width:980px;margin:0 auto;gap:18px}
.stage-modes .mode{min-height:229px}
.stage-modes .mode-art{height:142px}
.stage-modes .mode-detail{padding:14px 18px}
.stage-setup{max-width:730px}
.setup-panel{background:linear-gradient(145deg,#213632,#192a29);border:1px solid #4b695c;border-radius:21px;padding:23px;box-shadow:0 17px 45px #0004}
.setup-selected{display:flex;gap:15px;align-items:center;background:#2d473d;border-radius:13px;padding:14px;border:1px solid #618169}
.setup-mode-icon{font:normal 37px Georgia,serif;color:#e1bd78;width:47px;text-align:center}
.setup-selected small{font-size:10px;letter-spacing:1.3px;color:#a0bfab;font-weight:800}
.setup-selected strong{display:block;font:700 20px 'Space Grotesk',sans-serif;color:#f4e6c3;margin:3px 0}
.setup-selected p{font-size:11px;color:#a0b7ab}
.help-bubble{margin-left:auto;border:1px solid #89a98e;background:#254238;color:#e4c579;border-radius:50%;height:32px;width:32px;font-weight:800;font-size:19px}
.help-panel{background:#122421;color:#c4d9c8;padding:13px 16px;border-radius:10px;margin-top:11px;font-size:12px;line-height:1.6}
.config-matrix{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 12px}
.control-card{background:#182c28;border:1px solid #37554a;padding:16px;border-radius:13px}
.control-title{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:15px}
.control-title span,.choice-heading span{font-size:11px;font-weight:800;letter-spacing:1.1px;color:#b9d3c2}
.control-title small,.choice-heading small{font-size:10px;color:#6c9480}
.step-control{display:flex;align-items:center;justify-content:space-between;gap:12px}
.step-control button{height:43px;width:49px;border-radius:9px;background:#2d463b;color:#e4cca0;border:1px solid #5b7865;font-size:22px;font-weight:700}
.step-control button:disabled{opacity:.28}
.step-control strong{font:700 32px 'Space Grotesk',sans-serif;color:#f6eccf}
.auto-bots{display:flex;align-items:center;gap:10px;padding:12px 15px;background:#253c35;border-radius:12px}
.auto-bots .robot-symbol{display:grid;place-items:center;width:33px;height:33px;background:#3f5d4e;border-radius:8px;font-size:19px}
.auto-bots strong{display:block;font-size:12px;color:#deeadc}.auto-bots small{display:block;color:#93b2a0;font-size:10px;margin-top:2px}
.bot-counter{margin-left:auto;color:#ead098;font:800 19px 'Space Grotesk',sans-serif}
.choice-setting{margin-top:24px}.choice-heading{display:flex;justify-content:space-between;gap:13px;align-items:center;margin-bottom:12px}
.chip-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.chip-options button{background:#172c28;color:#adbfaf;border:1px solid #486254;border-radius:10px;min-height:46px;font-size:12px;font-weight:800;white-space:nowrap}
.chip-options button:hover{border-color:#c2a365}
.chip-options button.chosen{background:#e5bf77;border-color:#efdaab;color:#172721;box-shadow:0 4px 18px #e0bd7130}
#zoneChips{grid-template-columns:repeat(4,minmax(0,1fr))}
.native-game-settings{display:none}
.ready-strip{display:flex;align-items:center;justify-content:center;gap:9px;font-size:11px;color:#9dc7ab;margin:25px 0 10px;font-weight:700;flex-wrap:wrap}
.ready-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#8fd0aa;box-shadow:0 0 12px #8fd0aa}
.ready-sep{color:#557e62}
.launch-game{width:100%;justify-content:center;gap:12px;font-size:15px;min-height:63px}
.launch-game .cta-arrow{margin-left:auto}
.setup-note{text-align:center;color:#719788;font-size:11px;margin-top:12px}
@media(max-width:760px){.welcome-stage{padding-top:23px}.flow-heading h1{font-size:clamp(32px,6vw,54px)}.choice-grid{gap:11px}.choice-card{min-height:288px}.choice-art{height:170px}.choice-art .checker{width:224px;height:224px;background-size:56px 56px}.choice-mainpiece{font-size:110px;top:29px;left:calc(50% - 35px)}.minis-art .choice-mainpiece{font-size:112px;top:29px}.choice-smallpiece{font-size:49px;top:84px}.choice-meta{padding:15px 16px}.choice-meta strong{font-size:21px}.choice-meta small{font-size:11px}.choice-next{font-size:20px;right:14px;bottom:22px}.stage-modes .modes{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stage-modes .mode{min-height:186px}.stage-modes .mode-art{height:112px}.stage-modes .mode-detail{padding:12px}.stage-headline{padding:45px 0 20px}.stage-headline .mini-kicker{padding-top:0}.stage-back{top:10px}}
@media(max-width:480px){.flow-steps{padding-top:17px;gap:6px}.flow-step{font-size:8px;gap:5px}.flow-step b{width:20px;height:20px;font-size:10px}.flow-steps>i{width:15px}.flow-heading p{font-size:12px}.choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:25px;gap:9px}.choice-card{min-height:242px;border-radius:16px}.choice-art{height:134px}.choice-art .checker{width:166px;height:166px;background-size:42px 42px}.choice-mainpiece{font-size:77px;left:calc(50% - 25px);top:26px}.minis-art .choice-mainpiece{font-size:79px;left:calc(50% - 20px);top:29px}.choice-smallpiece{font-size:34px;top:66px}.choice-meta{padding:12px 10px;gap:6px}.choice-meta strong{font-size:17px}.choice-eyebrow{font-size:8px}.choice-meta small{font-size:10px;min-height:29px}.choice-next{font-size:15px;bottom:22px;right:10px}.welcome-footer{gap:11px;font-size:9px}.future-online{padding:10px}.soon-pill{font-size:7px;padding:6px}.stage-modes .mode{min-height:175px}.stage-modes .mode-art{height:100px}.stage-headline h2{font-size:32px}.setup-panel{padding:12px}.setup-selected strong{font-size:16px}.config-matrix{gap:8px}.control-card{padding:11px}.control-title{display:block}.control-title span{display:block}.control-title small{display:block;margin-top:4px}.step-control button{height:39px;width:38px}.chip-options{gap:5px}.chip-options button{min-height:43px;font-size:10px}.choice-heading span{font-size:10px}.choice-heading small{font-size:9px}}

/* Guided configuration 0.5 */
.victory-panel{margin-top:19px;background:#19302b;border:1px solid #496956;border-radius:13px;padding:14px}
.victory-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.victory-choice{background:#102922;border:1px solid #3f6952;color:#e2ebdc;display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:13px;border-radius:11px;text-align:left;min-height:106px}
.victory-choice.active{border:2px solid #ddbd79;background:#35473b;padding:12px}.victory-emoji{font-size:22px}.victory-choice strong{font-size:13px}.victory-choice small{font-size:10px;color:#abc2af;line-height:1.3}
.win-adjust{background:#142820;border-radius:10px;padding:14px;margin-top:12px;display:flex;align-items:center;gap:14px;justify-content:space-between;flex-wrap:wrap}
.win-adjust strong{color:#e0e9d9;display:block;font-size:13px}.win-adjust small{font-size:10px;color:#9cbaaa;display:block;margin-top:4px}
.goal-counter{gap:7px}.goal-counter button{width:39px;height:39px}.goal-counter input{width:62px;height:40px;text-align:center;border:1px solid #54735c;background:#284134;color:#ffe5ae;border-radius:8px;font-size:19px;font-weight:800}
#matchTimeBlock{display:block}#durationChips{margin-top:12px}.victory-note{font-size:10px;color:#94b4a2;margin-top:12px;line-height:1.6}
.advanced-settings{margin-top:16px;background:#162a25;border:1px solid #3f5d4b;border-radius:12px;overflow:hidden}
.advanced-settings summary{padding:16px;list-style:none;cursor:pointer;color:#d0dfcc;font-size:12px;font-weight:800;display:flex;justify-content:space-between}
.advanced-settings summary::-webkit-details-marker{display:none}
.advanced-content{border-top:1px solid #365747;padding:3px 14px 18px}
.advanced-content .choice-setting{margin-top:16px}
.advanced-content #clockChips{grid-template-columns:repeat(6,minmax(0,1fr))}
.field-explain{color:#819e8a;font-size:10px;line-height:1.5;margin-top:9px}
.time-entry{display:flex;gap:12px;margin-top:11px}
.time-entry label{display:flex;flex:1;flex-direction:column;gap:5px;color:#aac2b0;font-size:11px}
.time-entry input{width:100%;min-height:43px;max-width:150px;border:1px solid #58785f;background:#294238;border-radius:8px;color:#eed59c;font-size:16px;font-weight:700;padding:10px}
.match-clock{white-space:nowrap;border:1px solid #649779;background:#254337;border-radius:9px;color:#f0d08f;padding:8px 10px;font-weight:800;font-size:12px}
@media(max-width:510px){.victory-panel{padding:11px}.victory-choice{padding:10px}.victory-choice.active{padding:9px}.victory-choice strong{font-size:12px}.advanced-content #clockChips{grid-template-columns:repeat(3,minmax(0,1fr))}.time-entry{gap:8px}.match-clock{padding:6px;font-size:10px}#durationChips{gap:5px}#durationChips button{font-size:10px}}

/* Call of Chess 0.6: mobile-first game viewport / safe browser chrome */
.board-viewport{width:100%;overflow:auto;overscroll-behavior:contain;background:#0d1919;scrollbar-color:#557568 #142323}
.board-stage{min-width:100%;width:max-content;display:flex;align-items:flex-start;justify-content:center}
.board-stage>.board{flex:none}
.sidebar .side-card{padding:0;overflow:hidden}
.side-card summary{list-style:none;display:flex;align-items:center;gap:10px;padding:14px 15px;cursor:pointer;font:700 12px 'Space Grotesk',sans-serif;letter-spacing:.8px;color:#d5c18d}
.side-card summary::-webkit-details-marker{display:none}
.side-card summary .panel-symbol{font-size:19px}
.side-card summary .panel-chevron{margin-left:auto;font-size:19px;transition:transform .2s}
.side-card[open] summary .panel-chevron{transform:rotate(180deg)}
.side-card .side-content{padding:0 17px 16px}
.side-card .side-content p{font-size:12px;line-height:1.65;color:#b2c3bb}
.side-card .compact-legend{margin-top:15px}
.game-heading{min-width:0}
.game-top-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.game-top-actions button{white-space:nowrap}
body.playing #game{scroll-margin-top:0}
@media(max-width:760px){
 body.playing .top-nav{display:none}
 body.playing .shell{padding-left:10px;padding-right:10px}
 body.playing .game{padding-top:max(10px,env(safe-area-inset-top,0px));padding-bottom:calc(20px + env(safe-area-inset-bottom,0px));min-height:100dvh}
 body.playing .game-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;margin-bottom:8px}
 body.playing .game-top .back{padding:9px 10px;min-height:41px;border-radius:10px;font-size:12px}
 body.playing .game-heading{text-align:center}
 body.playing #modeLabel{font-size:9px;letter-spacing:1px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.playing #status{font-size:15px;margin-top:3px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.playing .game-top-actions{gap:5px}
 body.playing .game-top-actions .small{font-size:18px;min-width:41px;min-height:41px;padding:6px;border-radius:10px}
 body.playing .game-top-actions .control-word{display:none}
 body.playing .game-top-actions .match-clock{font-size:10px;min-height:28px;padding:4px 6px}
 body.playing .players-hud{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;gap:6px;margin:0 0 9px;padding:0 0 2px}
 body.playing .players-hud::-webkit-scrollbar{display:none}
 body.playing .player-chip{flex:1 0 auto;min-width:106px;max-width:178px;min-height:51px;padding:6px 9px;border-radius:10px;gap:7px;scroll-snap-align:start}
 body.playing .player-chip .pip{width:12px;height:12px}
 body.playing .player-chip b{font-size:11px}
 body.playing .player-chip small{font-size:10px;margin-top:2px}
 body.playing .battle{display:flex;flex-direction:column;gap:0;min-width:0}
 body.playing .board-column{display:flex;flex-direction:column;min-width:0;width:100%}
 body.playing .board-viewport{order:1;border:4px solid #314c3f;border-radius:13px;max-height:calc(100dvh - 175px);background:#14201e;scrollbar-width:none;box-shadow:0 9px 23px #0005}
 body.playing .board-viewport::-webkit-scrollbar{display:none}
 body.playing .board-bar{order:2;display:flex;justify-content:space-between;align-items:center;background:#1b2b29;border:1px solid #3c5a4d;border-radius:10px;padding:6px 8px;margin-top:8px;gap:7px;min-height:47px}
 body.playing #boardHint{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px;color:#a9c2b1}
 body.playing .board-bar>div{display:flex;align-items:center;gap:6px;flex:none}
 body.playing .board-bar button{font-size:16px;min-height:33px;min-width:33px;border-radius:7px;padding:3px 6px}
 body.playing .board-bar button.fit-button{font-size:11px;min-width:51px;padding:5px 6px}
 body.playing #zoomLabel{font-size:10px;min-width:32px;text-align:center}
 body.playing .board-column>.legend{display:none}
 body.playing .sidebar{display:grid;grid-template-columns:1fr;gap:7px;width:100%;margin-top:11px}
 body.playing .side-card{background:#172925;border:1px solid #3d5b4c;border-radius:10px}
 body.playing .side-card summary{padding:11px 12px;min-height:43px}
 body.playing .side-card .side-content{padding:0 14px 12px}
 body.playing .side-card .side-content p{font-size:11px}
 body.playing .game-top h2{letter-spacing:-.4px}
 body.playing footer{margin-top:0}
}
@media(max-width:380px){
 body.playing .game-top{gap:5px}
 body.playing .game-top .back{font-size:11px;min-width:37px}
 body.playing .game-top .back-word{display:none}
 body.playing #status{font-size:13px}
 body.playing .game-top-actions{gap:3px}
 body.playing .game-top-actions .small{min-width:36px;min-height:38px}
 body.playing .board-bar{gap:4px;padding:5px}
 body.playing .board-bar>div{gap:3px}
 body.playing .board-bar button{min-width:30px}
}
@media(prefers-reduced-motion:reduce){.side-card summary .panel-chevron{transition:none}}

/* Call of Chess 0.7 - touch chess, smart feedback, accessible effects */
.tile.has-piece{touch-action:none}
.tile.last-from{box-shadow:inset 0 0 0 9999px #f4ca6340}
.tile.last-to{box-shadow:inset 0 0 0 9999px #eec65d60}
.tile.last-from.hot,.tile.last-to.hot{box-shadow:inset 0 0 0 3px #eecb7b}
.tile.last-from.dom,.tile.last-to.dom{box-shadow:inset 0 0 0 3px #ebd278}
.tile.selected{box-shadow:inset 0 0 0 3px #f6d26b,0 0 11px #e8c3676b}
.tile.legal::before{width:25%;height:25%;background:#224e3877;box-shadow:0 0 0 2px #f6f1d948}
.tile.capture::before{border-color:#ce544f;box-shadow:0 0 8px #d4596090}
.tile.mark-check{box-shadow:inset 0 0 0 4px #df4b48,0 0 0 2px #e15a5980}
.piece{transition:transform .20s cubic-bezier(.2,.75,.28,1),opacity .14s ease;will-change:transform;user-select:none}
.piece.flag-carrier::after{content:'⚑';position:absolute;top:0;right:0;font-size:calc(var(--s) * .32);color:#fce08a;text-shadow:0 0 5px #1a271d,0 2px 2px #000;transform:rotate(15deg)}
.drag-ghost{position:fixed;left:0;top:0;z-index:999;display:grid;place-items:center;font-family:Georgia,'DejaVu Sans',serif;line-height:1;-webkit-text-stroke:1px #12221d;filter:drop-shadow(0 9px 5px #0009) drop-shadow(0 0 6px #e6c17d99);pointer-events:none;touch-action:none;user-select:none;opacity:.94}
.tile.drag-over{outline:3px solid #f8e8a2;outline-offset:-3px;z-index:1}
.tile.drag-invalid{outline:2px solid #bd565688;outline-offset:-2px}
.board-impact{position:absolute;width:calc(var(--s) * .8);height:calc(var(--s) * .8);border:3px solid #e5816f;border-radius:50%;pointer-events:none;z-index:7;transform:translate(-50%,-50%) scale(.42);animation:chess-impact .34s ease-out forwards;box-shadow:0 0 18px #e97f5877}
.board-impact.score{border-color:#f4d17a;box-shadow:0 0 21px #ffd97f99}
@keyframes chess-impact{0%{opacity:.9;transform:translate(-50%,-50%) scale(.35)}90%{opacity:.48}100%{opacity:0;transform:translate(-50%,-50%) scale(1.7)}}
.player-chip.active{box-shadow:inset 0 0 0 1px #d0b27466,0 0 14px #e0bb6330;transition:box-shadow .2s,border-color .2s}
.feedback-preferences{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0 3px}
.feedback-preferences button{display:flex;justify-content:center;align-items:center;gap:8px;background:#1a322c;color:#b2c7b8;padding:11px 8px;border-radius:9px;border:1px solid #4d6859;font:700 11px 'DM Sans',sans-serif}
.feedback-preferences button strong{color:#8da99b;font-size:10px}
.feedback-preferences button.enabled{background:#354833;border-color:#d7b875;color:#fae6b2}
.feedback-preferences button.enabled strong{color:#f9d58c}
@media(prefers-reduced-motion:reduce){.piece{transition:none}.board-impact{display:none}.player-chip.active{transition:none}}

/* Spawn pockets for Bestia */
.tile.wall,.tile.wall.light,.tile.wall.dark{background:repeating-linear-gradient(135deg,#31473b 0 5px,#22372f 5px 10px)!important;box-shadow:inset 0 0 0 1px #91ab8580;cursor:default}
.tile.wall::after{content:'▤';position:absolute;inset:0;display:grid;place-items:center;color:#c4b48688;font-size:calc(var(--s) * .45);pointer-events:none}
.piece.black-army{-webkit-text-stroke:1.1px #e9e7d6;text-shadow:0 2px 2px #fff9,0 2px 4px #0007}

/* Survival mode 0.8 */
.mode-survival{--accent:#85dc9d;--artbg:#275e40}.mode-survival .mode-figure{color:#b2f0ae}
.piece.zombie-army{filter:drop-shadow(0 0 4px #4cd26566)}
.wave-overlay{position:fixed;inset:0;background:#050d0cdb;z-index:31;display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto}
.wave-dialog{background:linear-gradient(145deg,#243e32,#11271f);border:1px solid #81ad87;border-radius:22px;max-width:520px;width:100%;max-height:calc(100dvh - 30px);overflow-y:auto;padding:25px;box-shadow:0 20px 55px #0009;text-align:center}
.wave-skull{font-family:Georgia,serif;font-size:48px;color:#89db90;text-shadow:0 0 18px #77e19276}
.wave-dialog h2{font-size:26px;margin:12px 0}.wave-dialog>p{font-size:12px;line-height:1.6;color:#bdd0bd;margin-bottom:18px}.wave-next{width:100%;margin-top:14px}
.recovery-choices{text-align:left;display:grid;gap:12px;margin:16px 0}.recover-player{border:1px solid #4c775a;border-radius:12px;padding:13px;background:#19352a}
.recover-player h3{color:#e4dab0;font-size:13px;margin-bottom:9px}.recover-player p,.recover-player small{font-size:11px;color:#a7c3ac}
.recovery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:8px}.recovery-item{padding:9px;background:#2c4937;color:#dff1de;border:1px solid #5e8667;border-radius:9px;font-size:12px}
.recovery-item.chosen{background:#ddc181;color:#1b2b20;border-color:#f7e1ab;font-weight:800}
@media(max-width:550px){.wave-dialog{padding:17px}.wave-dialog h2{font-size:22px}.recovery-grid{gap:5px}.recovery-item{font-size:11px}}

/* 0.8.1: No se anticipan capturas. Los 4 bloques de cada base son obstáculos discretos. */
.tile.capture::before{content:none!important;display:none!important}


/* 0.9.2: Staunton refinado, volumen mate y bordes finos del color de la pieza */
.piece,.piece.black-army,.piece.zombie-army{
 -webkit-text-stroke:0!important;
 text-shadow:none!important;
 filter:none;
}
.piece-svg{
 display:block;width:85%;height:85%;overflow:visible;
 shape-rendering:geometricPrecision;
 filter:drop-shadow(0 1px .7px rgba(12,23,20,.16));
}
.piece-svg .piece-form{
 fill:var(--piece-grad);
 stroke:var(--piece-stroke);
 stroke-width:.85;
 stroke-linejoin:round;
 stroke-linecap:round;
}
.piece-svg .piece-band{
 fill:var(--piece-fill);
 stroke:var(--piece-stroke);
 stroke-width:.72;
 stroke-linejoin:round;
}
.piece-svg .piece-detail{
 fill:none;stroke:var(--piece-line);stroke-width:.85;
 stroke-linecap:round;stroke-linejoin:round;opacity:.70;
}
.piece-svg .piece-glint{
 fill:none;stroke:var(--piece-fill);stroke-width:1.35;
 stroke-linecap:round;opacity:.50;
}
.piece-svg .piece-eye,.piece-svg .piece-nostril{
 fill:var(--piece-eye);stroke:none;
}
.piece-svg .piece-nostril{opacity:.8}
.piece.selected-piece .piece-svg{filter:drop-shadow(0 1px 1px rgba(0,0,0,.19))}
.drag-ghost{
 -webkit-text-stroke:0!important;text-shadow:none!important;
 filter:drop-shadow(0 4px 4px rgba(0,0,0,.20))!important;
}
.drag-ghost .piece-svg{width:85%;height:85%}

/* Modo Experimental: diálogos anclados a cada pieza, sin obstruir el tablero. */
.experimental-tools{margin:0 2.5% 10px;padding:8px 12px;background:#172a28;border:1px solid #587069;border-radius:13px;color:#d9e5df}
.experimental-header{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:11px;font-weight:800;letter-spacing:.03em}
.experimental-header span:nth-child(2){font-weight:600;color:#a9beb1;margin-left:auto}
.experimental-header button{border:1px solid #667e70;background:#2a4037;color:#e6eadf;border-radius:9px;padding:6px 9px;font-size:11px;cursor:pointer}
.experimental-journal{margin-top:5px;font-size:11px;color:#bcd3c1}
.experimental-journal summary{cursor:pointer;list-style:none;width:fit-content}
.experimental-journal summary::-webkit-details-marker{display:none}
#storyHistory{max-height:160px;overflow:auto;margin-top:7px;display:grid;gap:5px}
.story-entry{border-left:2px solid #819b88;padding:5px 7px;background:#243630;border-radius:3px;display:grid;gap:3px}
.story-entry strong{font-size:10px;color:#eddcaa}
.story-entry span{font-size:11px;line-height:1.45;color:#e6e9dc}
.story-bubble{position:absolute;z-index:12;width:max-content;max-width:min(210px,calc(100% - 10px));padding:7px 9px;
 background:#f4ead8;color:#24312c;border:1px solid #d0bea0;border-radius:11px 11px 11px 2px;
 box-shadow:0 3px 7px #10221a33;font-family:'DM Sans',sans-serif;font-size:11px;line-height:1.4;
 font-weight:600;text-align:center;pointer-events:none;transform:translate(-50%,-100%);white-space:normal}
.story-bubble::after{content:'';position:absolute;bottom:-6px;left:calc(50% - 6px);width:10px;height:10px;
 background:#f4ead8;border-right:1px solid #d0bea0;border-bottom:1px solid #d0bea0;transform:rotate(45deg)}
.story-bubble.below{transform:translate(-50%,calc(var(--s)*.93))}
.story-bubble.below::after{top:-6px;bottom:auto;transform:rotate(225deg)}
.story-epilogue{margin:13px 0 0;padding:12px 14px;border:1px solid #c6ac79;border-radius:12px;
 background:#2b3b35;color:#f4e6cb;font-style:italic;line-height:1.5;font-size:13px}
@media(max-width:600px){.experimental-tools{margin:0 9px 9px;padding:7px 8px}.story-bubble{max-width:172px;font-size:10px;padding:6px 7px}}

/* Sandbox 1.1.1: editor lateral derecho y tablero 8x8 */
.sandbox-board-area{position:relative;min-width:0}
.sandbox-tools{position:absolute;top:7px;bottom:7px;right:6px;width:61px;z-index:16;pointer-events:none}
.sandbox-tools .sandbox-drawer-toggle{position:absolute;top:7px;right:0;width:35px;height:61px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1px solid #d7bf81;border-radius:8px 0 0 8px;background:#1b3830f4;color:#f4e6cb;box-shadow:-2px 3px 9px #0006;pointer-events:auto;cursor:pointer;transition:right .18s ease;padding:4px;z-index:2}
.sandbox-tools.opened .sandbox-drawer-toggle{right:61px}
.sandbox-current-tool{font:26px/1 Georgia,serif}
.sandbox-drawer-arrow{font-size:19px;font-weight:800;line-height:1;color:#e7ca88}
.sandbox-edit-panel{position:absolute;top:0;right:0;width:61px;max-height:100%;overflow-y:auto;overflow-x:hidden;padding:5px 4px;display:flex;flex-direction:column;gap:5px;border-radius:9px;border:1px solid #c5ab75;background:#18312bf7;box-shadow:-5px 7px 17px #0008;scrollbar-width:thin;transform:translateX(calc(100% + 16px));opacity:0;visibility:hidden;pointer-events:none;transition:transform .18s ease,opacity .18s ease,visibility .18s}
.sandbox-tools.opened .sandbox-edit-panel{transform:translateX(0);opacity:1;visibility:visible;pointer-events:auto}
.sandbox-chooser{display:flex;justify-content:center;gap:3px;flex-wrap:nowrap}
.sandbox-pieces{display:flex;flex-direction:column;align-items:center;gap:3px}
.sandbox-tools .sb-choice{display:grid;place-items:center;border:1px solid #5a756b;background:#29433a;color:#eee4d2;border-radius:7px;width:49px;height:35px;min-height:35px;padding:0;font:25px Georgia,serif;cursor:pointer;touch-action:manipulation}
.sandbox-tools .sandbox-chooser .sb-choice{width:24px;height:28px;min-height:28px}
.sb-circle{width:14px;height:14px;display:block;border-radius:100%;border:1.5px solid #637269}
.sb-white{background:#f2e8d4}.sb-black{background:#252d32;border-color:#96a29b}
.sandbox-tools .sb-choice.chosen{background:#d5bd83;border-color:#f9e4af;color:#1f302b;box-shadow:0 0 0 1px #d5bd8360}
.sandbox-tools .sb-erase.chosen{background:#a7584d;color:white;border-color:#f0aa98}
.sandbox-divider{border-top:1px solid #556b60;margin:1px 2px}
.sandbox-below{display:grid;gap:9px;margin:10px 0 0}
.sandbox-actions{display:flex;gap:8px}
.sandbox-actions button,.sandbox-quick button{border:1px solid #59776a;background:#203931;color:#f4e6cf;border-radius:9px;padding:10px 12px;font-size:12px;font-weight:700;cursor:pointer}
.sandbox-actions .sandbox-go{width:100%;background:#d5bd83;border-color:#ebd19a;color:#1b2822;font-weight:800}
.sandbox-actions button:not(.sandbox-go){flex:1}
.sandbox-quick{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.sandbox-quick .sandbox-help{color:#adc3b5;font-size:11px;margin-right:auto}
.sandbox-quick button{padding:7px 9px;font-size:11px;background:#1a2d29}
@media(max-width:540px){.sandbox-below{margin-top:8px}.sandbox-actions .sandbox-go{padding:11px 8px}.sandbox-quick .sandbox-help{flex-basis:100%;margin:0}}
@media(prefers-reduced-motion:reduce){.sandbox-tools .sandbox-drawer-toggle,.sandbox-edit-panel{transition:none}}

/* Chess960: número de posición y regenerar antes de mover */
.chess960-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0;background:#20352f;border:1px solid #567266;border-radius:11px;padding:9px 12px;color:#e8d9ae;font-weight:800;font-size:12px}
.chess960-tools button{border:1px solid #b99d67;background:#d3bb7e;border-radius:8px;color:#26312a;font-weight:800;padding:8px 12px;cursor:pointer}
.story-bubble[data-side="1"]{border-color:#84989b;background:#e2e7e2;color:#203035}
.story-bubble[data-side="1"]::after{border-color:#84989b;background:#e2e7e2}

/* Experimental 1.2.1: bocadillos fáciles de leer, cerrar y apartar */
.story-bubble{
 pointer-events:auto;touch-action:none;cursor:grab;
 box-sizing:border-box;width:max-content;max-width:min(225px,calc(100% - 12px));
 min-width:120px;white-space:normal;
 padding:10px 27px 10px 10px;
 font-size:11px;line-height:1.45;text-align:left;
 transform:translate(calc(-50% + var(--drag-x,0px)),var(--drag-y,0px));
 transition:box-shadow .15s ease;
}
.story-bubble.below{transform:translate(calc(-50% + var(--drag-x,0px)),var(--drag-y,0px))}
.story-bubble.dragging{cursor:grabbing;z-index:24;box-shadow:0 7px 20px #0007}
.story-bubble-text{overflow-wrap:break-word;hyphens:auto}
.story-bubble-close{
 position:absolute;right:3px;top:3px;display:grid;place-items:center;
 width:23px;height:23px;border:0;border-radius:50%;
 background:transparent;color:#4c5e59;font-size:19px;font-weight:700;line-height:1;
 cursor:pointer;touch-action:manipulation
}
.story-bubble-close:active,.story-bubble-close:focus-visible{background:#c8d1ca;outline:none}
.story-bubble[data-side="1"] .story-bubble-close{color:#435451}
@media(max-width:600px){.story-bubble{max-width:min(192px,calc(100% - 10px));font-size:10.5px;padding:8px 24px 8px 9px}}

/* Modo La Noche: niebla sin bloquear las casillas, privacidad local */
.night-info{display:flex;align-items:center;justify-content:center;min-height:31px;margin:-12px 0 11px;padding:7px 10px;border:1px solid #49616b;border-radius:10px;background:#14202d;color:#c1d6dc;font-size:11px;font-weight:700;text-align:center}
body.night-mode #historyCard{display:none!important}
body.night-mode .tile.night-dark{filter:brightness(.38) saturate(.4)}
body.night-mode .tile.night-dark::after{content:'';position:absolute;inset:0;z-index:1;background:rgba(11,22,35,.81);pointer-events:none}
body.night-mode .tile.night-edge::after{content:'';position:absolute;inset:0;z-index:1;background:rgba(11,22,35,.4);pointer-events:none}
body.night-mode .tile.night-threat{box-shadow:inset 0 0 0 4px #f75d5d,0 0 13px #f76565;z-index:2}
.night-curtain{position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;padding:20px;background:#07111c;color:#e8ecf2;text-align:center}
.night-curtain-inner{display:flex;flex-direction:column;gap:15px;align-items:center;max-width:370px;width:100%;padding:32px 22px;border:1px solid #496878;border-radius:24px;background:#10202d;box-shadow:0 25px 85px #0007}
.night-moon{font-size:82px;line-height:1;color:#e9d39c;text-shadow:0 0 28px #ffd6833b}
.night-eyebrow{font-size:10px;color:#9fb9c6;letter-spacing:2px;font-weight:900}
.night-curtain-inner h2{margin:0;color:#f2e5c6;font-size:27px}
.night-curtain-inner p{font-size:14px;color:#bad0d8;line-height:1.6;max-width:280px}
.night-reveal{width:100%;padding:15px;border:0;border-radius:11px;background:#e5c988;color:#122331;font-weight:900;font-size:13px;cursor:pointer}
.night-curtain.hidden,.night-info.hidden{display:none!important}
@media(max-width:600px){.night-info{font-size:10px;margin:-8px 0 8px}.night-curtain-inner{padding:25px 15px}}


/* Fiestas integrales 1.5.0. Tablero y fichas excluidos */
html[data-season=halloween]{--f-a:#ffae66;--f-alt:#ab62e8;--f-panel:#362242;--f-panel2:#513465;--f-base:#190e29;--f-bright:#ffeacd;--f-muted:#d7c5e8;--f-emoji:"🎃";--f-small:"🦇";}
html[data-season=halloween] body{background:radial-gradient(ellipse at 3% 8%,#ab62e877,transparent 65%),radial-gradient(ellipse at 94% 30%,#ffae6644,transparent 61%),repeating-linear-gradient(120deg,#ffffff08 0 2px,transparent 2px 32px),linear-gradient(150deg,#190e29,#513465 51%,#190e29)!important;color:#f2ece5}
html[data-season=christmas]{--f-a:#f7d389;--f-alt:#d4525e;--f-panel:#1c3c32;--f-panel2:#355640;--f-base:#10251e;--f-bright:#fff2d3;--f-muted:#cae1c8;--f-emoji:"🎄";--f-small:"❄";}
html[data-season=christmas] body{background:radial-gradient(ellipse at 3% 8%,#d4525e77,transparent 65%),radial-gradient(ellipse at 94% 30%,#f7d38944,transparent 61%),repeating-linear-gradient(120deg,#ffffff08 0 2px,transparent 2px 32px),linear-gradient(150deg,#10251e,#355640 51%,#10251e)!important;color:#f2ece5}
html[data-season=valentine]{--f-a:#ffc6d8;--f-alt:#e9759d;--f-panel:#542640;--f-panel2:#793d58;--f-base:#2f1527;--f-bright:#ffe7f0;--f-muted:#ecc2d4;--f-emoji:"💘";--f-small:"🌹";}
html[data-season=valentine] body{background:radial-gradient(ellipse at 3% 8%,#e9759d77,transparent 65%),radial-gradient(ellipse at 94% 30%,#ffc6d844,transparent 61%),repeating-linear-gradient(120deg,#ffffff08 0 2px,transparent 2px 32px),linear-gradient(150deg,#2f1527,#793d58 51%,#2f1527)!important;color:#f2ece5}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .top-nav{background:linear-gradient(103deg,var(--f-panel),var(--f-panel2),var(--f-panel))!important;border:1px solid var(--f-a)!important;border-radius:0 0 16px 16px;padding:0 15px;box-shadow:0 9px 30px #0009,0 0 23px var(--f-alt)!important}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .brand-icon{background:linear-gradient(120deg,var(--f-a),var(--f-alt))!important;color:var(--f-base)!important;box-shadow:0 0 20px var(--f-alt)!important;transform:rotate(-5deg)}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .brand strong{color:var(--f-bright)!important;text-shadow:0 0 13px var(--f-alt)}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) :is(.brand small,.version,.flow-step,.welcome-footer){color:var(--f-muted)!important}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) :is(.mini-kicker,.choice-eyebrow,.mode-label,.game-heading .eyebrow){color:var(--f-a)!important;text-shadow:0 0 11px var(--f-alt)}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) :is(.flow-heading h1 em,.stage-headline h2 em){color:var(--f-a)!important;text-shadow:0 0 22px var(--f-alt)}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .flow-steps{background:linear-gradient(100deg,var(--f-panel),var(--f-panel2))!important;padding:9px 14px;border-radius:13px;border:1px solid var(--f-a)!important;box-shadow:0 5px 25px #0007}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .flow-step.active{color:var(--f-a)!important}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) :is(.choice-card,.mode,.setup-panel,.control-card,.setup-selected,.auto-bots,.advanced-settings,.victory-panel,.ready-strip,.side-card,.experimental-tools,.player-chip,.night-info,.season-panel,.finish-inner,.wave-dialog,.night-curtain-inner){background:radial-gradient(circle at 94% 6%,color-mix(in srgb,var(--f-alt) 29%,transparent),transparent 56%),linear-gradient(126deg,var(--f-panel),var(--f-panel2))!important;border:1px solid var(--f-a)!important;box-shadow:0 9px 36px #0007,0 0 23px color-mix(in srgb,var(--f-alt) 40%,transparent)!important}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .choice-card{position:relative;overflow:hidden;border-width:2px!important}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .choice-card::after{content:var(--f-emoji);position:absolute;top:10px;right:10px;font-size:36px;pointer-events:none;filter:drop-shadow(0 0 12px var(--f-alt))}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .choice-art{background:radial-gradient(circle at center,color-mix(in srgb,var(--f-alt) 38%,transparent),transparent 70%)!important}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .choice-meta{background:linear-gradient(105deg,var(--f-panel2),var(--f-panel))!important;border-top:1px solid var(--f-a)!important}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) :is(.choice-meta strong,.choice-next,.mode strong,.side-card summary,.game-heading h2){color:var(--f-bright)!important}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .mode{position:relative;overflow:hidden;border-left:4px solid var(--f-a)!important}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .mode::before{content:var(--f-small);position:absolute;top:5px;right:9px;font-size:24px;opacity:.58;pointer-events:none}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .mode.active{box-shadow:0 0 35px var(--f-alt)!important}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .setup-panel{position:relative}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .setup-panel::before{content:var(--f-emoji);position:absolute;right:13px;top:7px;font-size:23px;opacity:.65;pointer-events:none}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) :is(.future-online,.choice-setting,.side-card summary,.board-bar){background:linear-gradient(100deg,var(--f-panel2),var(--f-panel))!important;border:1px solid var(--f-a)!important;color:var(--f-bright)!important}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) :is(.primary,.launch-game,.night-reveal,#seasonDone){background:linear-gradient(115deg,var(--f-a),var(--f-alt),var(--f-a))!important;border:1px solid var(--f-bright)!important;color:#251726!important;box-shadow:0 9px 30px color-mix(in srgb,var(--f-alt) 70%,transparent)!important}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) :is(.stage-back,.back,.small,.board-bar button,.step-control button,.chip-options button,.victory-choice,.feedback-preferences button,.season-trigger){background:linear-gradient(140deg,var(--f-panel2),var(--f-panel))!important;border:1px solid var(--f-a)!important;color:var(--f-bright)!important;box-shadow:0 0 14px color-mix(in srgb,var(--f-alt) 42%,transparent)!important}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .game-top{background:linear-gradient(100deg,var(--f-panel),var(--f-panel2))!important;border:1px solid var(--f-a)!important;border-radius:15px;padding:10px;box-shadow:0 0 24px var(--f-alt)!important}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .board-viewport{border-color:var(--f-a)!important;box-shadow:0 18px 44px #000a,0 0 32px color-mix(in srgb,var(--f-alt) 56%,transparent)!important}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .board-bar{border-left:4px solid var(--f-a)!important;border-radius:9px;padding:6px 8px!important;margin-bottom:7px}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .night-curtain{background:var(--f-base)!important}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .finish{background:color-mix(in srgb,var(--f-base) 94%,transparent)!important}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-date{color:var(--f-bright)!important;background:var(--f-panel)!important;border-color:var(--f-a)!important}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-option.chosen{outline:2px solid var(--f-a)}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-banner{display:flex;position:relative;align-items:center;justify-content:center;gap:14px;min-height:72px;margin:0 0 15px;padding:11px 18px;text-align:center;border:2px solid var(--f-a);border-top:0;border-radius:0 0 19px 19px;background:repeating-linear-gradient(120deg,#ffffff0c 0 3px,transparent 3px 27px),linear-gradient(100deg,var(--f-panel),var(--f-panel2),var(--f-panel));box-shadow:0 10px 36px #0008,0 0 27px var(--f-alt)}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-banner-copy{display:flex;flex-direction:column;gap:4px}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-banner-copy strong{font-size:clamp(12px,1.7vw,19px);letter-spacing:1.6px;color:var(--f-bright);text-shadow:0 0 15px var(--f-alt)}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-banner-copy small{font-size:11px;color:var(--f-muted)}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-banner-emoji{font-size:39px;filter:drop-shadow(0 0 12px var(--f-alt))}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-banner::before{content:'✦ ✧ ✦ ✧ ✦ ✧ ✦';position:absolute;top:0;left:0;right:0;color:var(--f-a);font-size:10px;letter-spacing:11px;pointer-events:none}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-ornaments{z-index:0;opacity:1;pointer-events:none;background:radial-gradient(circle at 10% 20%,var(--f-a) 0 1px,transparent 2px),radial-gradient(circle at 90% 11%,var(--f-alt) 0 2px,transparent 3px);background-size:170px 195px,210px 210px}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-motif{opacity:.83!important;font-size:29px;animation:festive-float 9s ease-in-out infinite;animation-delay:var(--floating-delay)!important;filter:drop-shadow(0 2px 13px var(--f-alt))}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-motif-0{top:7%;left:2%}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-motif-1{top:19%;right:2%}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-motif-2{top:33%;left:3%}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-motif-3{top:45%;right:3%}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-motif-4{top:56%;left:1%}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-motif-5{top:67%;right:2%}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-motif-6{bottom:15%;left:3%}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-motif-7{bottom:10%;right:3%}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-motif-8{bottom:3%;left:22%}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-motif-9{bottom:4%;right:23%}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-motif-10{top:5%;left:41%}
:is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .season-motif-11{top:8%;right:26%}
html[data-season=halloween] .season-option-halloween{background:linear-gradient(105deg,#6e3579,#b65b2e)!important;border-color:var(--f-a)!important;color:#fff5e8!important}
html[data-season=christmas] .season-option-christmas{background:linear-gradient(105deg,#275941,#a54954)!important;border-color:var(--f-a)!important;color:#fff5e8!important}
html[data-season=valentine] .season-option-valentine{background:linear-gradient(105deg,#853459,#bd527d)!important;border-color:var(--f-a)!important;color:#fff5e8!important}

.season-banner[hidden]{display:none!important}
@keyframes festive-float{0%,100%{transform:translateY(0) rotate(-7deg)}50%{transform:translateY(-11px) rotate(8deg)}}
body.playing .season-banner{min-height:33px;padding:4px 10px;margin:0;gap:10px;border-radius:0 0 10px 10px}
body.playing .season-banner-emoji{font-size:20px}
body.playing .season-banner-copy strong{font-size:10px;letter-spacing:.8px}
body.playing .season-banner-copy small{display:none}
@media(max-width:760px){
 .season-banner{min-height:52px;padding:6px 10px;gap:9px;margin-bottom:10px}
 .season-banner-emoji{font-size:26px}
 .season-banner-copy strong{font-size:10px;letter-spacing:.7px}
 .season-banner-copy small{font-size:9px}
 body.playing .season-banner{min-height:25px;padding:3px 8px}
 body.playing .season-banner-emoji{font-size:15px}
 .season-motif{font-size:23px!important;opacity:.42!important}
 .season-motif-8,.season-motif-9,.season-motif-10,.season-motif-11{display:none}
 :is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .game-top{padding:6px}
 :is(html[data-season=halloween],html[data-season=christmas],html[data-season=valentine]) .choice-card::after{font-size:25px;top:5px;right:5px}
}
@media(prefers-reduced-motion:reduce){.season-motif{animation:none!important}}


/* 1.5.1: Aspecto festivo despejado. Conserva la paleta y las decoraciones de botones y paneles */
:root[data-season=halloween] .season-banner,
:root[data-season=christmas] .season-banner,
:root[data-season=valentine] .season-banner,
:root[data-season=halloween] .season-ornaments,
:root[data-season=christmas] .season-ornaments,
:root[data-season=valentine] .season-ornaments{display:none!important}
:root[data-season=halloween] .choice-card::after,
:root[data-season=christmas] .choice-card::after,
:root[data-season=valentine] .choice-card::after,
:root[data-season=halloween] .mode::before,
:root[data-season=christmas] .mode::before,
:root[data-season=valentine] .mode::before,
:root[data-season=halloween] .setup-panel::before,
:root[data-season=christmas] .setup-panel::before,
:root[data-season=valentine] .setup-panel::before{display:none!important;content:none!important}
:root[data-season=halloween] .top-nav,
:root[data-season=christmas] .top-nav,
:root[data-season=valentine] .top-nav{min-height:70px;height:70px!important;border-radius:0 0 12px 12px!important;box-shadow:0 5px 24px #0006!important}
:root[data-season=halloween] .brand-icon,
:root[data-season=christmas] .brand-icon,
:root[data-season=valentine] .brand-icon{padding:0;overflow:visible;background:transparent!important;box-shadow:0 0 13px var(--f-alt)!important;transform:none!important;border:0;border-radius:12px;flex-shrink:0}
.season-brand-image{display:block;width:100%;height:100%;object-fit:contain;border-radius:12px;filter:drop-shadow(0 0 6px #fff1)}
:root[data-season=halloween] .brand small,
:root[data-season=christmas] .brand small,
:root[data-season=valentine] .brand small{display:none!important}
:root[data-season=halloween] .brand strong,
:root[data-season=christmas] .brand strong,
:root[data-season=valentine] .brand strong{font-size:clamp(14px,2.2vw,19px)!important;letter-spacing:1px!important;line-height:1.15}
:root[data-season=halloween] .flow-heading p,
:root[data-season=christmas] .flow-heading p,
:root[data-season=valentine] .flow-heading p,
:root[data-season=halloween] .stage-headline p,
:root[data-season=christmas] .stage-headline p,
:root[data-season=valentine] .stage-headline p,
:root[data-season=halloween] .setup-note,
:root[data-season=christmas] .setup-note,
:root[data-season=valentine] .setup-note{display:none!important}
:root[data-season=halloween] .flow-steps,
:root[data-season=christmas] .flow-steps,
:root[data-season=valentine] .flow-steps{box-shadow:none!important}
:root[data-season=halloween] .choice-card,
:root[data-season=christmas] .choice-card,
:root[data-season=valentine] .choice-card{overflow:visible!important;position:relative;isolation:isolate}
:root[data-season=halloween] .choice-art,
:root[data-season=christmas] .choice-art,
:root[data-season=valentine] .choice-art{overflow:hidden}
:root[data-season=halloween] .setup-panel,
:root[data-season=christmas] .setup-panel,
:root[data-season=valentine] .setup-panel,
:root[data-season=halloween] .game-top,
:root[data-season=christmas] .game-top,
:root[data-season=valentine] .game-top{overflow:visible!important}
.season-sidekick{position:absolute;z-index:5;pointer-events:none;user-select:none;line-height:1;font-size:clamp(26px,3.7vw,45px);top:-20px;right:18px;transform:rotate(8deg);filter:drop-shadow(0 4px 8px #0007);animation:season-peek 5s ease-in-out infinite}
#chooseMinis .season-sidekick{right:auto;left:12px;transform:rotate(-7deg);animation-delay:-1.4s}
#setupPanelSeasonTarget .season-sidekick{right:16px;top:-23px;font-size:33px;animation-delay:-2.1s}
#gameTopSeasonTarget .season-sidekick{left:51%;right:auto;top:-16px;font-size:29px;animation-delay:-.5s}
@keyframes season-peek{0%,100%{translate:0 0}50%{translate:0 -6px}}
/* Solo cinco botones compactos en el selector, sin descripciones largas */
.season-panel{width:min(490px,calc(100vw - 22px));gap:12px!important}
.season-panel-header h2{font-size:20px!important}
.season-panel-header{min-height:42px!important}
.season-list{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important;overflow-x:auto!important;overflow-y:visible!important}
.season-option{min-width:0;min-height:78px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:6px!important;text-align:center!important;padding:8px 3px!important}
.season-option-icon{font-size:26px!important;min-width:0!important}
.season-option-short{font-size:10px;font-weight:750;line-height:1.17;color:#f1e9d7;overflow-wrap:anywhere}
.season-panel-footer{margin-top:3px!important}
.season-panel-footer span{font-size:11px!important}
@media(max-width:760px){
 :root[data-season=halloween] .top-nav,
 :root[data-season=christmas] .top-nav,
 :root[data-season=valentine] .top-nav{min-height:59px;height:59px!important;padding:0 7px!important}
 :root[data-season=halloween] .brand strong,
 :root[data-season=christmas] .brand strong,
 :root[data-season=valentine] .brand strong{font-size:13px!important;letter-spacing:.4px!important}
 :root[data-season=halloween] .brand-icon,
 :root[data-season=christmas] .brand-icon,
 :root[data-season=valentine] .brand-icon{width:39px;height:39px}
 :root[data-season=halloween] .season-header-actions .version,
 :root[data-season=christmas] .season-header-actions .version,
 :root[data-season=valentine] .season-header-actions .version{display:none}
 .season-sidekick{font-size:30px;top:-13px;right:10px}
 #chooseMinis .season-sidekick{left:7px}
 #setupPanelSeasonTarget .season-sidekick{font-size:24px;top:-14px;right:15px}
 #gameTopSeasonTarget .season-sidekick{font-size:21px;top:-10px;left:46%}
 .season-panel{padding:11px!important}
 .season-list{gap:4px!important}
 .season-option{min-height:69px!important;padding:6px 2px!important}
 .season-option-icon{font-size:22px!important}
 .season-option-short{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.season-sidekick{animation:none}}


/* 1.6.0 — Ajustes y navegación sin pasos; icono permanente en la cabecera */
.flow-steps{display:none!important}
.settings-header-actions{display:flex;align-items:center;gap:12px}
.settings-trigger{
 height:42px;width:42px;display:grid;place-items:center;flex:none;border-radius:12px;
 border:1px solid #6b8879;background:linear-gradient(145deg,#2d413c,#1c2f2e);color:#f1e7cf;
 box-shadow:0 2px 15px #0005;transition:transform .16s,border-color .16s
}
.settings-trigger:hover,.settings-trigger:focus-visible{border-color:#ebce94;transform:rotate(18deg)}
html[data-season=halloween] .settings-trigger,html[data-season=christmas] .settings-trigger,html[data-season=valentine] .settings-trigger{
 border-color:var(--f-a);background:linear-gradient(135deg,var(--f-panel2),var(--f-panel));
 color:var(--f-bright);box-shadow:0 0 14px color-mix(in srgb,var(--f-alt) 34%,transparent)
}
.settings-backdrop{position:fixed;z-index:150;inset:0;background:#050a10bf;backdrop-filter:blur(5px)}
.settings-backdrop[hidden],.settings-panel[hidden]{display:none!important}
.settings-panel{
 position:fixed;z-index:151;top:50%;left:50%;transform:translate(-50%,-50%);
 width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 36px);overflow-y:auto;
 display:flex;flex-direction:column;gap:20px;padding:23px;color:#f0f0eb;
 background:linear-gradient(145deg,#233632,#142326);border:1px solid #70867c;
 box-shadow:0 28px 85px #000c;border-radius:20px
}
.settings-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.settings-eyebrow{display:block;font-size:9px;color:#a7c0b7;font-weight:800;letter-spacing:1.5px}
.settings-head h2{font-size:23px;letter-spacing:-.4px;margin:4px 0 0;color:#f5e1b9}
.settings-close{font-size:24px;line-height:1;width:38px;height:38px;flex:none;border:1px solid #58726a;background:#344b44;color:#faf4e7;border-radius:10px}
.settings-section{display:flex;flex-direction:column;gap:11px}
.settings-section h3{margin:0;font-size:15px;color:#f4ebd9}
.settings-section>p{margin:-4px 0 2px;font-size:12px;color:#a9c0b8}
.settings-appearance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.settings-choice{
 position:relative;min-height:122px;padding:13px 9px 10px;
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;
 color:#e4eae3;border:1px solid #506b61;border-radius:13px;
 background:linear-gradient(140deg,#213b36,#1b302f);
}
.settings-choice:hover{border-color:#ddc58f}
.settings-choice.selected{background:linear-gradient(140deg,#405444,#2c4439);border:2px solid #f1d28b;box-shadow:inset 0 0 0 1px #ffdf9560,0 0 13px #e4c47920}
.settings-choice-icon{font-size:29px;line-height:1}
.settings-choice strong{display:block;font-size:13px}
.settings-choice small{display:block;margin-top:4px;color:#b6c9c1;font-size:10px}
.settings-indicator{position:absolute;top:7px;right:9px;font-size:12px;color:#f4d78a;opacity:0}
.settings-choice.selected .settings-indicator{opacity:1}
.settings-current{text-align:center;color:#d9c799;background:#293d36;padding:7px 10px;border-radius:9px;font-size:11px}
.settings-done{width:100%;background:#dbbc7b;border:0;color:#1a3028;border-radius:10px;font-size:13px;font-weight:900;padding:13px 16px}
body.settings-open{overflow:hidden}
html[data-season=halloween] .settings-panel,html[data-season=christmas] .settings-panel,html[data-season=valentine] .settings-panel{
 border-color:var(--f-a);background:linear-gradient(135deg,var(--f-panel2),var(--f-base));box-shadow:0 25px 75px #000c,0 0 23px var(--f-alt)
}
html[data-season=halloween] .settings-head h2,html[data-season=christmas] .settings-head h2,html[data-season=valentine] .settings-head h2{color:var(--f-bright)}
html[data-season=halloween] .settings-choice.selected,html[data-season=christmas] .settings-choice.selected,html[data-season=valentine] .settings-choice.selected{border-color:var(--f-a);background:var(--f-panel2)}
html[data-season=halloween] .settings-indicator,html[data-season=christmas] .settings-indicator,html[data-season=valentine] .settings-indicator{color:var(--f-a)}
html[data-season=halloween] .settings-done,html[data-season=christmas] .settings-done,html[data-season=valentine] .settings-done{background:var(--f-a)}
@media(max-width:760px){
 .settings-header-actions{gap:7px}
 .settings-trigger{width:36px;height:36px;border-radius:10px}
 .settings-trigger svg{width:21px;height:21px}
 .settings-panel{padding:17px;gap:16px}
 .settings-choice{min-height:110px}
}
@media(prefers-reduced-motion:reduce){.settings-trigger{transition:none}}


/* 1.7.0 — Ajustes de sonido, compactos y usables en móvil */
.settings-sound-section{border-top:1px solid #546a60;padding-top:17px}
.settings-audio-switch{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:linear-gradient(125deg,#233c35,#1b302c);border:1px solid #62746c;border-radius:13px;padding:13px;color:#f2ece0}
.settings-audio-symbol{font-size:23px}
.settings-audio-copy{display:flex;flex-direction:column;gap:3px;flex:1}
.settings-audio-copy strong{font-size:14px}
.settings-audio-copy small{font-size:11px;color:#b4c9c0}
.settings-switch-track{display:block;position:relative;width:43px;height:25px;border-radius:30px;background:#5f7270;box-shadow:inset 0 1px 4px #0008;transition:background .18s}
.settings-switch-track i{display:block;position:absolute;left:3px;top:3px;width:19px;height:19px;border-radius:50%;background:#e4eee8;transition:transform .18s}
.settings-audio-switch.enabled .settings-switch-track{background:#c5a66c}
.settings-audio-switch.enabled .settings-switch-track i{transform:translateX(18px);background:#24382f}
.settings-volume{display:flex;flex-direction:column;gap:9px;padding:4px 2px 0}
.settings-volume label{display:flex;align-items:center;justify-content:space-between;gap:15px;color:#e6ecdf;font-size:12px;font-weight:700}
.settings-volume output{color:#e5cb90;font-variant-numeric:tabular-nums}
.settings-volume input{width:100%;accent-color:#dbba77;min-height:28px;cursor:pointer}
.settings-volume input:disabled{opacity:.4;cursor:default}
.settings-ui-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;background:transparent;color:#e5eadf;border:1px solid #546d61;border-radius:9px;padding:10px 12px;font-size:12px;text-align:left}
.settings-ui-toggle span:last-child{color:#a5bdb2;font-weight:800}
.settings-ui-toggle.enabled span:last-child{color:#e9d096}
.settings-ui-toggle:disabled{opacity:.42}
.settings-audio-demo{width:100%;padding:10px 12px;border-radius:9px;border:1px solid #9a9274;background:#34443c;color:#f1ddae;font-weight:800;font-size:12px}
.settings-audio-demo:disabled{opacity:.4}
html[data-season=halloween] .settings-audio-switch,html[data-season=christmas] .settings-audio-switch,html[data-season=valentine] .settings-audio-switch{
 background:linear-gradient(115deg,var(--f-panel2),var(--f-panel));border-color:var(--f-a)
}
html[data-season=halloween] .settings-volume input,html[data-season=christmas] .settings-volume input,html[data-season=valentine] .settings-volume input{accent-color:var(--f-a)}
html[data-season=halloween] .settings-audio-demo,html[data-season=christmas] .settings-audio-demo,html[data-season=valentine] .settings-audio-demo{border-color:var(--f-a);background:var(--f-panel2);color:var(--f-bright)}


/* ===== Call of Chess · Ejércitos dibujados ===== */
.army-loadout{display:flex;flex-direction:column;gap:10px;border:1px solid #4f7667;border-radius:14px;background:#182e2a;padding:14px 13px;margin:15px 0 6px}
.army-loadout-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.army-loadout-head strong{color:#f0dbac;font-size:13px}
.army-loadout-head button,.settings-army-open{border:1px solid #ab976c;border-radius:9px;background:#33453b;color:#f2d79e;padding:9px 12px;font-size:12px;font-weight:800}
.army-match-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.army-match-row{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:11px;color:#b8d4c5}
.army-match-row select{width:100%;min-width:0;border:1px solid #749381;background:#243c33;color:#f7e7c8;padding:9px 7px;border-radius:9px;font-size:12px}
.settings-army-section{border-top:1px solid #52695e;padding-top:15px}
.settings-army-section h3{font-size:14px;margin:0 0 5px}
.settings-army-section p{font-size:12px;color:#acc4b7;margin:0 0 11px}
.settings-army-open{display:block;width:100%;text-align:center;min-height:43px}
.army-hub[hidden],.army-library-view[hidden],.army-paint-view[hidden],.army-loupe[hidden],.army-toast[hidden]{display:none!important}
.army-hub{position:fixed;inset:0;z-index:320;background:#091315eb;overflow-y:auto;overscroll-behavior:contain;padding:clamp(6px,2.5vw,22px);color:#ecf3eb}
body.army-editor-open{overflow:hidden}
.army-shell{max-width:1050px;min-height:min(680px,calc(100dvh - 20px));margin:0 auto;background:linear-gradient(160deg,#1c3430,#111f25);border:1px solid #567565;border-radius:18px;box-shadow:0 18px 70px #000a;padding:clamp(12px,2.7vw,24px)}
.army-head,.army-paint-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.army-head small{font-size:10px;letter-spacing:1px;color:#9fb7aa}
.army-head h2{color:#f6ddb0;font-size:23px;margin-top:4px}
#armyClose{border:1px solid #749185;border-radius:10px;background:#2b463e;color:#fff5e1;padding:10px 14px}
.army-subtitle{font-size:13px;color:#a8c2b6;margin:13px 0 23px;line-height:1.5}
.army-library{display:flex;flex-direction:column;gap:10px}
.army-library-card{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#253d37;border:1px solid #537769;border-radius:12px;padding:14px}
.army-library-card strong{display:block;color:#f8e6bf;font-size:15px}
.army-library-card small{display:block;color:#abc6b6;font-size:11px;margin:3px 0}
.army-library-info{min-width:0;flex:1}
.army-library-pieces{display:flex;gap:5px;align-items:center;margin-top:9px}
.army-library-pieces span{display:grid;place-items:center;width:33px;height:33px;background:#dfd9c7;border-radius:5px;font-size:24px;color:#283831}
.army-library-pieces img{width:31px;height:31px;object-fit:contain}
.army-library-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.army-library-actions button{background:#314c42;border:1px solid #709382;color:#e6f0db;border-radius:8px;padding:9px;font-size:11px}
.army-library-actions .army-mini-primary{background:#ad9258;border-color:#e3c37a;color:#1e2d23;font-weight:800}
.army-library-actions .army-delete{color:#ffa8a8;border-color:#845b62}
.army-new,.army-save{border:1px solid #e2bd77;border-radius:10px;background:#dec080;color:#1e2d25;font-weight:800;padding:13px;font-size:13px}
.army-new{width:100%;margin:17px 0}
.army-empty,.army-toast{font-size:12px;color:#e1c78c;margin-top:8px}
.army-paint-view{display:flex;flex-direction:column;gap:11px}
.army-paint-head button{background:#314b42;border:1px solid #779383;color:#f4e5c9;border-radius:9px;padding:9px 11px;font-size:12px}
#armySaveState{font-size:11px;color:#b4cea7}
.army-name-label{display:flex;flex-direction:column;gap:5px;color:#a9c6b4;font-size:11px;font-weight:700}
.army-name-label input{background:#1a2c2a;color:#faf0df;border:1px solid #638874;border-radius:8px;padding:10px;font-size:15px;outline-offset:1px}
.army-pieces,.army-tool-row,.army-color-row{display:flex;gap:6px;overflow-x:auto;padding:2px 0;scrollbar-width:thin}
.army-piece-chip,.army-tool{flex:none;border:1px solid #5f8071;border-radius:9px;background:#28453b;color:#e4eadc;font-size:12px;padding:9px 10px;white-space:nowrap}
.army-piece-chip.selected,.army-tool.selected{border-color:#f6d288;background:#604e37;color:#fff0c5}
.army-paint-caption{display:flex;align-items:center;justify-content:space-between;color:#f4d58e;font-size:13px}
.army-paint-caption small{font-size:10px;color:#abc1b6}
.army-canvas-layout{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:9px;min-height:250px}
.army-viewport{position:relative;min-width:0;height:min(49dvh,480px);min-height:235px;background:#4e5b54;border:1px solid #b4a47d;border-radius:12px;overflow:hidden;touch-action:none;user-select:none;cursor:crosshair}
.army-viewport[data-tool=hand]{cursor:grab}
.army-sheet{position:absolute;left:50%;top:50%;width:512px;height:512px;transform-origin:center center;background-color:#fafafa;background-image:linear-gradient(45deg,#d6d9d6 25%,transparent 25%),linear-gradient(-45deg,#d6d9d6 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d6d9d6 75%),linear-gradient(-45deg,transparent 75%,#d6d9d6 75%);background-size:44px 44px;background-position:0 0,0 22px,22px -22px,-22px 0;box-shadow:0 0 0 2px #f7d18a}
.army-sheet canvas{position:absolute;inset:0;width:512px;height:512px;pointer-events:none}
.army-loupe{position:absolute;right:10px;top:10px;width:110px;height:110px;background:#f5f0e7;border:2px solid #ffe8a4;border-radius:10px;box-shadow:0 5px 20px #0008;pointer-events:none}
.army-canvas-side{display:flex;flex-direction:column;gap:10px}
.army-preview{background:#1b302d;border:1px solid #607b68;border-radius:11px;padding:9px;text-align:center}
.army-preview>span{font-size:9px;color:#c0d0be;font-weight:800}
.army-preview-cell{width:80px;height:80px;max-width:100%;margin:9px auto 0;border-radius:4px;background:repeating-conic-gradient(#7f9982 0 25%,#e5ddc5 0 50%) 50%/40px 40px;display:grid;place-items:center}
.army-preview-cell img{width:100%;height:100%;object-fit:contain}
.army-zoom-buttons{display:flex;flex-direction:column;align-items:stretch;gap:7px;text-align:center;font-size:12px}
.army-zoom-buttons button{border:1px solid #b4a27b;background:#33483d;color:#f7e3a6;border-radius:7px;padding:9px 2px;font-weight:800}
#armyZoomLabel{font-variant-numeric:tabular-nums;color:#f9d696;font-weight:800}
.army-canvas-hint{font-size:11px;color:#b6c9b5;text-align:center}
.army-tool-row{margin-top:1px}
.army-setting-row{display:flex;align-items:center;justify-content:space-between;gap:14px}
.army-setting-row>label{display:flex;flex:1;gap:9px;align-items:center;font-size:11px;color:#c2d8c6}
.army-setting-row output{color:#f8d894;white-space:nowrap}
.army-setting-row input[type=range]{width:100%;accent-color:#dbbc7b}
.army-setting-row .army-precision{flex:1;justify-content:flex-end}
.army-setting-row .army-precision input{accent-color:#dfc489}
.army-swatch{flex:none;width:32px;height:32px;border-radius:9px;border:2px solid #fff3;box-shadow:inset 0 0 0 1px #0003}
.army-swatch.selected{border:3px solid #fff8ce}
.army-color-custom{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11px;color:#c2d0c0}
.army-color-custom label{display:flex;align-items:center;gap:5px}
#armyColor{width:35px;height:32px;padding:0;border:0;background:transparent}
#armyColorDot{display:inline-block;width:23px;height:23px;border-radius:50%;border:1px solid #fff9}
.army-color-custom button{border:1px solid #8d9b83;background:#304c40;border-radius:8px;color:#e4e7db;padding:8px}
.army-color-custom button.selected{border-color:#efd18d;color:#ffe0a0;background:#5c533a}
.army-bottom{display:flex;gap:7px;flex-wrap:wrap}
.army-bottom button{flex:1 1 85px;border:1px solid #658072;border-radius:9px;background:#294038;color:#e0e8d9;padding:11px;font-size:12px}
.army-bottom button:disabled{opacity:.45}
.army-bottom .army-save{background:#dec080;color:#1e2d25;border-color:#e2bd77}
html[data-season=halloween] .army-shell,html[data-season=christmas] .army-shell,html[data-season=valentine] .army-shell{border-color:var(--f-a)}
html[data-season=halloween] .army-new,html[data-season=christmas] .army-new,html[data-season=valentine] .army-new{background:var(--f-a)}
@media(max-width:650px){
 .army-shell{padding:11px;border-radius:11px}
 .army-paint-view{gap:8px}
 .army-canvas-layout{grid-template-columns:minmax(0,1fr) 80px;gap:6px}
 .army-viewport{height:39dvh;min-height:216px}
 .army-loupe{width:83px;height:83px}
 .army-preview{padding:5px}
 .army-preview>span{font-size:8px}
 .army-preview-cell{height:62px;width:62px;margin-top:5px}
 .army-zoom-buttons button{padding:6px 1px;font-size:11px}
 .army-setting-row{flex-direction:column;align-items:stretch;gap:8px}
 .army-setting-row .army-precision{justify-content:flex-start}
 .army-tool,.army-piece-chip{padding:8px;font-size:11px}
 .army-match-rows{grid-template-columns:1fr}
 .army-library-card{align-items:stretch}
 .army-library-actions{flex-direction:column}
}

.piece.army-custom-piece{ -webkit-text-stroke:0!important;text-shadow:none!important }.piece .army-piece-image{width:100%;height:100%;object-fit:contain;display:block;pointer-events:none;user-select:none}

/* 1.8.1: previsualización de ejército y copiar/pegar */
.army-view-board{width:100%;border:1px solid #bb9a62;background:#30483d;color:#f4dca6;border-radius:9px;padding:11px;font-size:12px;font-weight:800}
.army-board-preview[hidden]{display:none!important}
.army-board-preview{position:fixed;inset:0;z-index:350;display:grid;place-items:center;background:#07110fdf;padding:14px}
.army-board-dialog{width:min(570px,100%);background:#1d322e;border:1px solid #b8a06a;border-radius:16px;padding:15px;box-shadow:0 30px 85px #000c;display:flex;flex-direction:column;align-items:center;gap:14px}
.army-board-head{width:100%;display:flex;justify-content:space-between;align-items:center;color:#f6ddaa;font-size:14px}
.army-board-head button{padding:7px 11px;background:#324d42;border:1px solid #758d77;color:#fff;border-radius:8px}
.army-preview-board{width:min(100%,440px);aspect-ratio:1;display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(8,1fr);overflow:hidden;border:4px solid #e2c78f;border-radius:6px}
.army-preview-square{display:grid;place-items:center;min-width:0;min-height:0;font:700 clamp(14px,3.1vw,33px) Georgia,serif;color:#2d3232}
.army-preview-square.light{background:#e8ddc3}.army-preview-square.dark{background:#86a08b}
.army-preview-square img{width:100%;height:100%;object-fit:contain}
.army-board-dialog small{text-align:center;font-size:11px;color:#c0d5c5}


/* ALFA 1.8.2 · solo una selección rápida de ejército al preparar una partida */
.army-loadout-compact{
 display:flex;align-items:center;justify-content:space-between;gap:10px;
 margin:12px 0 6px;padding:11px 13px;border:1px solid #4f7667;border-radius:12px;
 background:#1c342e;
}
.army-quick-label{flex:1;min-width:0;font-size:12px;font-weight:800;color:#eed9a3;white-space:nowrap;cursor:pointer}
.army-quick-choice{display:flex;align-items:center;position:relative;gap:8px;flex:0 1 235px;min-width:0;max-width:57%;
 border:1px solid #829c80;border-radius:10px;background:linear-gradient(125deg,#304940,#20382f);
}
.army-quick-preview{width:33px;height:33px;display:grid;place-items:center;flex:none;color:#ecd497;font:700 25px Georgia,serif;margin-left:6px;overflow:hidden;border-radius:6px;background:#3c5a4d}
.army-quick-preview img{width:100%;height:100%;object-fit:contain}
.army-quick-choice select{
 display:block;flex:1;min-width:0;width:100%;height:44px;
 padding:0 20px 0 0;border:0;outline:none;appearance:none;
 background:transparent;color:#f9efdd;font-size:13px;font-weight:750;cursor:pointer;
 text-overflow:ellipsis;white-space:nowrap;
}
.army-quick-choice select option{color:#182b24;background:#f4f0df}
.army-quick-chevron{position:absolute;right:10px;top:50%;transform:translateY(-57%);color:#ecd195;font-size:19px;pointer-events:none}
.army-quick-choice:focus-within{border-color:#f3d18b;box-shadow:0 0 0 2px #ecca844a}
html[data-season=halloween] .army-loadout-compact,
html[data-season=christmas] .army-loadout-compact,
html[data-season=valentine] .army-loadout-compact{background:linear-gradient(125deg,var(--f-panel),var(--f-panel2));border-color:var(--f-a)}
html[data-season=halloween] .army-quick-choice,
html[data-season=christmas] .army-quick-choice,
html[data-season=valentine] .army-quick-choice{border-color:var(--f-a)}
@media(max-width:760px){
 .army-loadout-compact{padding:9px 10px;gap:7px}
 .army-quick-label{font-size:11px}
 .army-quick-choice{max-width:59%;flex-basis:215px}
 .army-quick-choice select{height:40px;font-size:12px}
 .army-quick-preview{width:28px;height:28px;font-size:21px}
}


/* 1.8.3: ficha compacta sin cajas anidadas; un único botón de aplicación visible */
.army-loadout.army-loadout-compact{
 box-sizing:border-box!important;
 display:flex!important;flex-direction:row!important;align-items:center!important;
 justify-content:space-between!important;
 gap:12px!important;
 height:54px!important;min-height:54px!important;max-height:54px!important;
 margin:9px 0 4px!important;padding:5px 12px!important;
 border:1px solid #547567!important;border-radius:12px!important;
 background:linear-gradient(110deg,#243c33,#213730)!important;
 overflow:hidden!important;
}
.army-loadout-compact .army-quick-label{
 display:block;flex:0 0 auto!important;width:auto!important;
 margin:0!important;padding:0!important;
 font-size:12px!important;line-height:1.1!important;
 font-weight:800!important;color:#f0d89d!important;white-space:nowrap!important;
}
.army-loadout-compact .army-quick-choice{
 display:flex!important;flex:1 1 auto!important;align-items:center!important;
 justify-content:flex-end!important;
 position:relative!important;gap:7px!important;
 max-width:none!important;min-width:0!important;
 width:auto!important;height:42px!important;min-height:42px!important;max-height:42px!important;
 margin:0!important;padding:0 6px!important;
 border:0!important;border-radius:8px!important;
 background:transparent!important;box-shadow:none!important;
}
.army-loadout-compact .army-quick-preview{
 display:grid!important;place-items:center!important;flex:0 0 28px!important;
 width:28px!important;height:28px!important;
 padding:0!important;margin:0!important;border-radius:7px!important;
 background:#3b564a!important;font-size:20px!important;
}
.army-loadout-compact .army-quick-choice select{
 appearance:none!important;-webkit-appearance:none!important;
 box-sizing:border-box!important;
 display:block!important;flex:0 1 auto!important;
 width:min(185px,100%)!important;min-width:0!important;
 height:40px!important;min-height:40px!important;max-height:40px!important;
 margin:0!important;padding:0 23px 0 0!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
 color:#faf0dd!important;font-size:13px!important;font-weight:750!important;
 text-align:left!important;line-height:40px!important;white-space:nowrap!important;
 overflow:hidden!important;text-overflow:ellipsis!important;
}
.army-loadout-compact .army-quick-chevron{
 right:6px!important;top:50%!important;font-size:16px!important;
}
html[data-season=halloween] .army-loadout.army-loadout-compact,
html[data-season=christmas] .army-loadout.army-loadout-compact,
html[data-season=valentine] .army-loadout.army-loadout-compact{
 background:linear-gradient(115deg,var(--f-panel),var(--f-panel2))!important;
 border-color:color-mix(in srgb,var(--f-a) 65%,transparent)!important;
}
.army-paint-head{
 position:sticky;top:-12px;z-index:16;
 background:#172b29f5;backdrop-filter:blur(12px);
 border-bottom:1px solid #536e5f;
 margin:-9px -7px 4px;padding:9px 7px;
}
.army-paint-head #armyBack{font-size:11px;padding:9px 10px;white-space:nowrap}
.army-paint-head #armySaveState{flex:1;text-align:center;min-width:0;font-size:10px;white-space:nowrap}
.army-paint-head .army-apply{
 flex:none;min-width:97px;padding:10px 13px;
 background:linear-gradient(115deg,#f7dba5,#ddbc77)!important;
 color:#24342b!important;border:1px solid #fff0bc!important;
 font-size:12px;font-weight:900;border-radius:10px;
 box-shadow:0 3px 13px #0003;
}
.army-paint-head .army-apply:disabled{opacity:.75}
@media(max-width:760px){
 .army-loadout.army-loadout-compact{height:49px!important;min-height:49px!important;max-height:49px!important;padding:4px 9px!important;gap:5px!important}
 .army-loadout-compact .army-quick-label{font-size:11px!important}
 .army-loadout-compact .army-quick-choice{height:40px!important;min-height:40px!important;max-height:40px!important;gap:5px!important;padding:0 4px!important}
 .army-loadout-compact .army-quick-preview{width:24px!important;height:24px!important;flex-basis:24px!important}
 .army-loadout-compact .army-quick-choice select{height:38px!important;min-height:38px!important;max-height:38px!important;width:min(145px,100%)!important;font-size:12px!important;line-height:38px!important}
 .army-paint-head{top:-11px}
 .army-paint-head #armyBack{font-size:10px;padding:8px 7px}
 .army-paint-head .army-apply{min-width:88px;font-size:11px;padding:9px 10px}
}


/* 1.9.0 — Música original de fondo, siempre bajo los efectos del juego */
.music-control{border-top:1px solid #4d6b5c;padding-top:13px;margin-top:4px;display:flex;flex-direction:column;gap:9px}
.music-control .music-switch{padding:11px 13px;min-height:52px}
.music-control .music-switch:disabled{opacity:.55}
.music-volume{padding:2px 5px 0}
.music-control .music-volume label{font-weight:700}

/* ALFA 2.0 · Portada sencilla, logo estacional y revisión final */
.entry-cover[hidden]{display:none!important}
.entry-cover{position:fixed;inset:0;z-index:460;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 50% 20%,#315746,#152927 62%,#0a161b 100%);overflow-y:auto}
.entry-locked{overflow:hidden}
.entry-card{display:flex;flex-direction:column;align-items:center;gap:15px;text-align:center;width:min(440px,100%);padding:30px 8px}
.entry-horse{width:clamp(140px,35vw,210px);height:auto;aspect-ratio:1;object-fit:contain;border-radius:35px;filter:drop-shadow(0 10px 24px #0009);animation:entryHorseFloat 6s ease-in-out infinite}
.entry-overline{font-size:10px;letter-spacing:3px;color:#c1d4c5;font-weight:800}
.entry-card h1{font:800 clamp(33px,7vw,48px) 'Space Grotesk',sans-serif;color:#f8efd9;letter-spacing:1px;line-height:1.1}
.entry-card h1 em{font-style:normal;color:#ebc67d}
.entry-card p{font-size:13px;color:#b6d0c0}
#entryGo{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:59px;width:min(300px,100%);margin-top:16px;padding:13px 23px;border:1px solid #f6d89b;border-radius:15px;background:linear-gradient(115deg,#ebca84,#cda562);color:#192f26;font-size:14px;font-weight:900;box-shadow:0 10px 27px #0007}
#entryGo span{font-size:21px}
#entryMusicStatus{font-size:10px;color:#b3c9b8}
html[data-season=halloween] .entry-cover{background:radial-gradient(circle at 50% 23%,#64375a,#28182f 58%,#0e111d)}
html[data-season=christmas] .entry-cover{background:radial-gradient(circle at 50% 23%,#266547,#173b32 58%,#0d2022)}
html[data-season=valentine] .entry-cover{background:radial-gradient(circle at 50% 23%,#864969,#45243b 60%,#1a1425)}
html[data-season=halloween] #entryGo,html[data-season=christmas] #entryGo,html[data-season=valentine] #entryGo{background:var(--f-a);border-color:var(--f-bright)}
@keyframes entryHorseFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
.review-board{display:block;width:100%;margin:16px 0 10px;padding:13px 20px;border-radius:11px;background:#29463c;border:1px solid #e4c27e;color:#fff0c8;font-size:13px;font-weight:800}
.review-board:hover{background:#416553}
.review-result{color:#f3d99a!important;border-color:#bfa06b!important}
@media(max-width:760px){.entry-horse{width:150px}.entry-card h1{font-size:36px}.entry-card{gap:11px}.review-board{padding:11px}}
@media(prefers-reduced-motion:reduce){.entry-horse{animation:none}}

/* Call of Chess 2.1.0 */
.entry-cover.entry-cover-art{display:flex!important;align-items:stretch!important;justify-content:stretch!important;min-height:100dvh!important;background:#071820!important;padding:0!important;margin:0!important;cursor:pointer;touch-action:manipulation}
.entry-cover.entry-cover-art[hidden]{display:none!important}
.entry-cover-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 48%;pointer-events:none}
.entry-atmosphere{position:absolute;inset:0;background:linear-gradient(180deg,#07182014 0%,#06172108 42%,#07141abf 73%,#071217e8 100%);pointer-events:none}
.entry-content{position:relative;z-index:2;align-self:flex-end;display:flex;flex-direction:column;align-items:center;gap:9px;width:100%;padding:0 14px max(13dvh,72px)!important;text-align:center;pointer-events:none}
.entry-brand-line{display:flex;align-items:center;gap:9px}
.entry-season-icon{width:43px;height:43px;border:1px solid #dfca8c99;border-radius:11px;box-shadow:0 3px 12px #0009}
#entrySeasonSymbol{font-size:26px;filter:drop-shadow(0 2px 9px #000)}
.entry-content h1{margin:0!important;font:900 clamp(35px,9.1vw,86px)/1.07 Georgia,'Times New Roman',serif!important;letter-spacing:.01em;color:#f9daa1;text-shadow:0 2px 3px #291908,0 2px 21px #000}
.entry-content h1 em{font-style:normal;color:#ffe4ae}
.entry-content #entryGo{margin:18px 0 0!important;font-size:clamp(13px,2.8vw,20px);font-weight:900;letter-spacing:.20em;color:#ffe1a0;text-shadow:0 2px 10px #000;animation:entryLight 2.2s ease-in-out infinite}
.entry-content #entryMusicStatus{font-size:11px;color:#f3daba}
@keyframes entryLight{0%,100%{opacity:.66}50%{opacity:1}}
html[data-season=halloween] .entry-cover-background{filter:hue-rotate(-30deg) saturate(1.2)}
html[data-season=christmas] .entry-cover-background{filter:hue-rotate(12deg) saturate(.86)}
html[data-season=valentine] .entry-cover-background{filter:hue-rotate(-40deg) saturate(1.14)}
.army-player-loadouts{height:auto!important;max-height:none!important;min-height:49px!important;padding:5px 9px!important;overflow:visible!important}
.army-player-list{display:flex;flex-direction:column;width:100%;gap:0;min-width:0}
.army-player-row{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:42px;min-width:0}
.army-player-row+.army-player-row{border-top:1px solid #d8c18c21}
.army-player-title{font-size:12px;font-weight:800;color:#f5e1b9;white-space:nowrap}
.army-player-choice{display:flex;align-items:center;justify-content:flex-end;gap:8px;position:relative;max-width:65%;min-width:0;flex:1}
.army-player-choice .army-quick-preview{width:27px!important;height:27px!important;flex:none!important;margin:0!important;display:grid;place-items:center}
.army-player-choice select{flex:0 1 170px!important;min-width:0!important;max-width:170px!important;width:100%!important;height:38px!important;appearance:none;-webkit-appearance:none;border:none!important;background:transparent!important;box-shadow:none!important;padding:0 20px 0 0!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#f7e9cc!important;font-size:12px!important;font-weight:750!important}
.army-player-chevron{position:absolute;right:0;color:#f5d497;pointer-events:none;font-size:16px}
.piece .army-type-mark{position:absolute;right:0;bottom:0;display:grid;place-items:center;width:clamp(10px,23%,15px);height:clamp(10px,23%,15px);background:#17272be9;color:#fff1d0;font:900 clamp(9px,22%,13px) Georgia,serif;line-height:1!important;border:1px solid #ffe5b0bd;border-radius:3px;pointer-events:none;z-index:6}
.army-undo-top{display:flex;gap:4px}
.army-paint-head .army-undo-top button{width:36px;height:36px;padding:0!important;font-size:23px!important;background:#314a40!important;border:1px solid #c8b07c!important;color:#fff0bb!important;border-radius:9px}
.army-paint-head .army-undo-top button:disabled{opacity:.35}
.army-aim-controls{display:flex;flex-direction:column;gap:6px}
.army-aim-controls #armyAimToggle{border:1px solid #8f9e78;border-radius:10px;background:#2b483c;color:#f9e0ae;font-size:12px;font-weight:800;padding:10px}
.army-aim-controls #armyAimToggle.selected{background:#68563d;border-color:#e2ca8d}
.army-aim-controls label{display:flex;align-items:center;gap:8px;color:#d6dfd4;font-size:11px}
.army-aim-controls input{flex:1;accent-color:#e4bd79}
.army-aim-controls output{white-space:nowrap}
.army-aim-cursor{position:absolute;z-index:8;pointer-events:none;transform:translate(-50%,-50%);font-size:30px;color:#ff7448;text-shadow:0 0 3px #fff,0 2px 4px #000}
.army-aim-cursor[hidden],.army-hold-paint[hidden],#armyAimOffsetWrap[hidden]{display:none!important}
.army-hold-paint{position:sticky;bottom:7px;z-index:20;touch-action:none;display:block;width:100%;min-height:54px;border:2px solid #fff0c4;border-radius:14px;background:linear-gradient(120deg,#e7be76,#f9d995);color:#242d25;font-size:14px;font-weight:900;box-shadow:0 3px 16px #0006}
.army-hold-paint.painting{background:#b9e6bb}
@media(max-width:760px){.army-player-title{font-size:11px}.army-player-choice select{font-size:11px!important}.army-paint-head .army-undo-top button{width:29px;height:33px}.army-hold-paint{min-height:52px}}
@media(prefers-reduced-motion:reduce){.entry-content #entryGo{animation:none}}

/* ALFA 2.2.0 — Identidad única del caballo de ajedrez. Portada limpia. */
.entry-cover.entry-cover-art{
 background:radial-gradient(ellipse at 50% 35%,#355146 0%,#172e30 38%,#0b1b25 75%,#071117 100%)!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 padding:0!important;min-height:100dvh!important;
}
.entry-cover-art::before{
 content:"";position:absolute;inset:49% -50% -45%;pointer-events:none;
 background:repeating-conic-gradient(#ddc59918 0 25%,#061d1b00 0 50%) 50%/96px 96px;
 transform:perspective(480px) rotateX(66deg);mask-image:linear-gradient(transparent,#0006 40%,#000c);
}
.entry-cover.entry-cover-art .entry-atmosphere{
 background:radial-gradient(ellipse at 50% 48%,#f0c88020 0,transparent 49%),linear-gradient(180deg,transparent 68%,#0612169c)!important;
}
.entry-cover.entry-cover-art .entry-content{
 align-self:center!important;justify-content:center!important;gap:23px!important;
 padding:0 20px 7vh!important;max-width:680px;min-height:85dvh!important;
}
.entry-cover.entry-cover-art .entry-brand-line{width:100%;justify-content:center;min-height:0}
.entry-cover.entry-cover-art .entry-season-icon{
 width:min(56vw,270px)!important;height:min(56vw,270px)!important;
 max-width:70dvh!important;max-height:70dvh!important;object-fit:contain;
 border:0!important;border-radius:24%!important;
 filter:drop-shadow(0 13px 25px #000a) drop-shadow(0 0 25px #c6aa663b);
}
.entry-cover.entry-cover-art .entry-content h1{
 font-size:clamp(37px,8.5vw,80px)!important;white-space:nowrap!important;
 letter-spacing:-.018em!important;text-shadow:0 3px 4px #000,0 0 20px #0c161c;
}
.entry-cover.entry-cover-art .entry-content #entryGo{
 font-size:clamp(13px,3vw,20px)!important;
 font-weight:800!important;letter-spacing:.15em!important;margin:7px 0 0!important;
}
.entry-cover.entry-cover-art #entrySeasonSymbol{display:none!important}
.brand-icon.brand-icon-image{display:flex;align-items:center;justify-content:center;overflow:hidden}
.brand-icon.brand-icon-image img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
html[data-season=halloween] .entry-cover.entry-cover-art{background:radial-gradient(ellipse at 50% 35%,#604134 0%,#292b30 52%,#120f20 100%)!important}
html[data-season=christmas] .entry-cover.entry-cover-art{background:radial-gradient(ellipse at 50% 35%,#41614b 0%,#203839 52%,#0e202e 100%)!important}
html[data-season=valentine] .entry-cover.entry-cover-art{background:radial-gradient(ellipse at 50% 35%,#5a3653 0%,#29213a 52%,#130e20 100%)!important}
@media(max-width:550px){.entry-cover.entry-cover-art .entry-content{gap:21px!important;padding:0 12px 4vh!important}.entry-cover.entry-cover-art .entry-season-icon{width:59vw!important;height:59vw!important}}
@media(prefers-reduced-motion:reduce){.entry-content #entryGo{animation:none}}

/* ALFA 2.3.0 · Dos vistas Bestia; galería temporal y lápiz de orientación automática */
body.playing #bestiaFocus.hidden{display:none!important}
body.playing .bestia-focus{white-space:nowrap;min-height:32px;border:1px solid #cdb482;background:#2b473b;color:#f5e2b6;font-size:11px;padding:5px 8px;border-radius:8px;font-weight:800}
body.playing .bestia-focus:hover,body.playing .bestia-focus:focus-visible{background:#45634c}
@media(max-width:760px){
 body.playing .board-bar{gap:5px}
 body.playing .bestia-focus{font-size:10px;min-height:29px;padding:4px 5px}
}
.army-sheet .army-reference-image{position:absolute;inset:0;z-index:0;width:512px;height:512px;max-width:none;max-height:none;object-fit:contain;opacity:.38;pointer-events:none;user-select:none}
.army-sheet .army-reference-image[hidden]{display:none!important}
.army-sheet canvas{z-index:1}
.army-reference-controls{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:7px 1px}
.army-reference-add,.army-reference-controls button{border:1px solid #b29a73;border-radius:9px;background:#2b443e;color:#ffe8b4;font-weight:800;font-size:11px;padding:9px 10px;cursor:pointer}
.army-reference-controls button{background:#492f33;border-color:#b48784}
.army-reference-controls small{color:#b8c8ba;font-size:10px;flex:1;min-width:105px}
.army-reference-controls button[hidden]{display:none!important}
.army-aim-controls #armyAimHint{display:block;font-size:10px;color:#d8decf;line-height:1.3}
.army-aim-controls #armyAimHint[hidden]{display:none!important}
.army-aim-cursor{font-size:24px!important;filter:drop-shadow(0 0 2px #fff8);transform:translate(-32%,-75%)!important;line-height:1!important}
.army-aim-cursor::after{content:"";position:absolute;left:30%;top:73%;width:5px;height:5px;border:1px solid #fffbe6;background:#c33;border-radius:100%;box-shadow:0 0 3px #111}

/* ALFA 2.4.0 · Control estilo trackpad sin saltos: solo cruz roja. */
.army-aim-controls{padding:4px 2px;gap:0}
.army-aim-controls #armyAimHint{display:block!important;color:#e9ddb9;font-size:11px;line-height:1.45}
.army-hold-paint{display:block!important;touch-action:none;user-select:none}
.army-aim-cursor{width:23px!important;height:23px!important;box-sizing:border-box;border:2px solid #ff4545!important;border-radius:50%!important;background:#fa23231a!important;font-size:0!important;line-height:0!important;transform:translate(-50%,-50%)!important;color:transparent!important;filter:drop-shadow(0 1px 2px #000)!important;box-shadow:0 0 0 1px #fff7,0 0 7px #ff3e4180;pointer-events:none}
.army-aim-cursor::before{content:""!important;position:absolute;left:50%;top:50%;height:29px;width:2px;background:#ff4545;transform:translate(-50%,-50%);box-shadow:0 0 2px #fff}
.army-aim-cursor::after{content:""!important;position:absolute;left:50%!important;top:50%!important;width:29px!important;height:2px!important;background:#ff4545!important;border:0!important;border-radius:0!important;transform:translate(-50%,-50%);box-shadow:0 0 2px #fff}
/* Trackpad from any non-interactive free area, without blocking taps on inputs. */
.army-hub .army-viewport,.army-hub .army-canvas-layout,.army-hub .army-canvas-side,.army-hub .army-paint-caption,.army-hub .army-canvas-hint,.army-hub .army-aim-controls,.army-hub .army-reference-controls,.army-hub .army-setting-row,.army-hub .army-color-row{touch-action:none}

/* ALFA 2.5.0 · Dos zooms claros en Bestia y lienzo móvil minimalista */
body.playing #fit.beast-zoom-selected,
body.playing #bestiaFocus.beast-zoom-selected {
 background:linear-gradient(110deg,#dabe80,#f6e4ac)!important;
 border:1px solid #ffebb9!important;color:#1c302b!important;
 box-shadow:inset 0 0 0 1px #fff8,0 2px 9px #0005!important;
}
body.playing #fit[aria-pressed="true"],
body.playing #bestiaFocus[aria-pressed="true"] {font-weight:900!important}
.army-hub .army-tool-compact{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.1fr)!important;
 align-items:center;gap:5px!important;position:relative;overflow:visible!important;
}
.army-hub .army-tool-compact>.army-tool{
 box-sizing:border-box;min-width:0!important;min-height:39px!important;
 border:1px solid #657d6b!important;border-radius:9px!important;
 padding:7px 4px!important;font-size:11px!important;white-space:nowrap;
}
.army-hub .army-tools-more{position:relative;min-width:0;z-index:30}
.army-hub .army-tools-more summary{
 display:flex;align-items:center;justify-content:center;
 list-style:none;border:1px solid #819b80;border-radius:9px;
 background:#29483b;color:#f9e7bd;font-size:11px;font-weight:800;
 padding:8px 4px;min-height:39px;box-sizing:border-box;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;
}
.army-hub .army-tools-more summary::-webkit-details-marker{display:none}
.army-hub .army-tools-more[open] summary,.army-hub .army-tools-more.has-active-tool summary{
 border-color:#e4c885;background:#534b34;color:#ffe5a1;
}
.army-hub .army-tools-extra{
 position:absolute;right:0;top:calc(100% + 5px);
 z-index:40;min-width:min(225px,73vw);width:max-content;max-width:75vw;
 padding:7px;border:1px solid #d3b979;border-radius:11px;
 display:grid;grid-template-columns:1fr 1fr;gap:6px;
 background:#142a26;box-shadow:0 9px 26px #061a1ad9;
}
.army-hub .army-tools-more:not([open]) .army-tools-extra{display:none}
.army-hub .army-tools-extra .army-tool{
 font-size:11px;min-height:40px!important;white-space:nowrap;border-radius:8px;
 padding:9px 6px!important;background:#2b433a!important;color:#f3dec2!important;
}
.army-hub .army-tools-extra .army-tool.selected{background:#715d39!important;border-color:#edce8e!important}
.army-hub .army-reference-controls{padding:4px 0!important;gap:7px}
.army-hub .army-reference-controls .army-reference-add{
 padding:8px 10px!important;font-size:11px!important;
}
.army-hub #armyReferenceStatus{font-size:9px!important}
.army-hub .army-aim-cursor{
 width:10px!important;height:10px!important;box-sizing:border-box!important;
 background:#eb5b43!important;border:1.5px solid #fffdf0!important;
 border-radius:50%!important;box-shadow:0 0 0 1px #252b2dba,0 1px 3px #0008!important;
 transform:translate(-50%,-50%)!important;
 filter:none!important;color:transparent!important;font-size:0!important;line-height:0!important;
 z-index:12!important;
}
.army-hub .army-aim-cursor::before,.army-hub .army-aim-cursor::after{
 display:none!important;content:none!important;background:none!important;
 width:0!important;height:0!important;border:0!important;
}
.army-hub .army-aim-controls{padding:3px 0!important;min-height:0!important}
.army-hub .army-aim-controls #armyAimHint{font-size:10px!important;line-height:1.3!important}
@media(max-width:760px){
 .army-hub .army-tool-compact>.army-tool{font-size:10px!important;padding:7px 1px!important}
 .army-hub .army-tools-more summary{font-size:10px!important}
}

/* ALFA 2.5.1 · Editor: precisión realmente reversible + plantilla temporal ajustable */
.army-hub #armyAimToggle{display:block;width:100%;min-height:38px;padding:8px 12px!important;border:1px solid #a69c75!important;border-radius:9px!important;background:#263e39!important;color:#fff1cb!important;font-size:12px!important;font-weight:800!important;cursor:pointer}
.army-hub #armyAimToggle.selected{background:#6d5731!important;border-color:#f7d68f!important;box-shadow:inset 0 0 0 1px #f7d68f66}
.army-hub #armyHoldPaint[hidden]{display:none!important}
.army-hub #armyAimCursor[hidden]{display:none!important}
.army-hub .army-reference-mover{position:absolute;inset:0;z-index:7;touch-action:none!important;cursor:grab;background:transparent}
.army-hub .army-reference-mover:active{cursor:grabbing}
.army-hub .army-reference-mover[hidden],.army-hub .army-reference-tools[hidden],.army-hub #armyReferencePosition[hidden]{display:none!important}
.army-hub .army-reference-tools{border:1px solid #c9a87488;background:#203632;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:10px;margin:5px 0 10px}
.army-hub .army-reference-range{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.army-hub .army-reference-range label{display:flex;flex-direction:column;gap:4px;color:#f7e0ac;font-size:11px;font-weight:800}
.army-hub .army-reference-range output{font-weight:500}
.army-hub .army-reference-range input{accent-color:#f4c980;width:100%}
.army-hub .army-reference-actions{display:flex;flex-wrap:wrap;gap:5px}
.army-hub .army-reference-actions button{flex:1 1 auto;padding:8px 10px;font-size:11px;border-radius:8px;background:#3b5145;border:1px solid #9cae8c;color:#f5e3be;font-weight:800}
.army-hub .army-reference-actions .army-reference-done{flex:1 0 100%;background:#e1bc79!important;color:#23322c!important;border-color:#ffefbc!important;font-size:13px}
.army-hub #armyReferencePosition{background:#3f5542!important;border-color:#e9c87c!important}
@media(max-width:440px){.army-hub .army-reference-range{grid-template-columns:1fr 1fr}.army-hub .army-reference-actions button{font-size:10px;padding:8px 5px}}

/* ALFA 2.6 · Gestos naturales en la foto y paleta flotante vertical */
.army-hub .army-reference-mover{touch-action:none!important;overscroll-behavior:contain;user-select:none}
.army-hub .army-reference-gesture-hint{color:#f3dfa9;font-weight:750;font-size:11px;text-align:center;margin:0}
.army-hub .army-palette-dock{position:absolute;top:50%;left:0;z-index:25;transform:translateY(-50%);display:flex;align-items:center;max-height:94%;pointer-events:none;touch-action:manipulation}
.army-hub .army-palette-dock>*{pointer-events:auto}
.army-hub #armyPaletteToggle{order:1;flex:none;width:34px;height:60px;background:#223a34f4!important;color:#f9dda6!important;border:1px solid #e4c988!important;border-left:0!important;border-radius:0 12px 12px 0!important;font-size:20px!important;padding:0!important;box-shadow:0 4px 14px #0009;cursor:pointer}
.army-hub .army-palette-dock.open #armyPaletteToggle{background:#695337!important}
.army-hub .army-palette-panel{order:0;width:53px;max-height:340px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:7px;padding:9px 6px;background:#182e29f5;border:1px solid #d1b77c;border-left:0;border-radius:0 10px 10px 0;box-shadow:3px 4px 15px #000a}
.army-hub .army-palette-panel[hidden]{display:none!important}
.army-hub .army-palette-panel strong{font-size:9px;color:#ffe5b6}
.army-hub .army-palette-panel .army-color-row{display:flex!important;flex-direction:column!important;align-items:center!important;gap:6px!important;width:100%;max-height:255px;min-height:0;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;touch-action:pan-y!important;padding:2px!important;scrollbar-width:thin}
.army-hub .army-palette-panel .army-swatch{width:31px!important;height:31px!important;min-width:31px!important;min-height:31px!important;flex:none;padding:0!important;border-radius:8px!important}
.army-hub .army-palette-panel .army-palette-custom{display:flex;align-items:center;justify-content:center;width:34px;height:36px;font-size:0}
.army-hub .army-palette-panel .army-palette-custom #armyColor{width:32px;height:32px;padding:0;border:1px solid #dac68b;border-radius:8px;cursor:pointer}
@media(max-width:550px){.army-hub #armyPaletteToggle{width:30px;height:56px!important;font-size:18px!important}.army-hub .army-palette-panel{width:46px;padding:8px 4px}.army-hub .army-palette-panel .army-swatch{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important}}

/* V1.2 picker bridge – preserve original army selector values. */
.army-player-choice .coc-picker-wrap{min-width:0;flex:1;max-width:100%}
.army-player-choice .coc-picker-trigger{background:linear-gradient(125deg,#3a4a42,#26332d);color:#fae8c9;border:1px solid #c0a26e;border-radius:10px;width:100%;min-height:44px}
.army-player-choice .coc-picker-wrap select.coc-native-select{width:1px!important;opacity:0!important;pointer-events:none!important}

/* Call of Chess 1.3 — quick, graphical, nonintrusive help */
.coc-mode-with-help{position:relative;min-width:0;min-height:0}
.coc-mode-with-help>.mode{display:flex;width:100%;height:100%;min-width:0;box-sizing:border-box}
.coc-mode-help-button,.coc-mode-help-inline{width:34px;height:34px;border-radius:50%;border:1px solid #f0cb8c;background:linear-gradient(135deg,#294635,#1b3029);box-shadow:0 3px 9px #0007;color:#f7d491;font:800 19px system-ui;display:grid;place-items:center;cursor:pointer}
.coc-mode-with-help>.coc-mode-help-button{position:absolute;right:12px;top:10px;z-index:3}
.coc-mode-with-help>.mode .mode-art{pointer-events:none}
.coc-mode-with-help>.mode .mode-detail{pointer-events:none}
.coc-mode-help-button:focus-visible,.coc-mode-help-inline:focus-visible{outline:3px solid #f0dbac;outline-offset:2px}
.coc-room-mode .mode-detail strong{padding-right:13px}
.coc-mode-with-help>.coc-room-mode{height:100%;padding:0}
.online-lobby-mode .coc-mode-help-inline{margin-left:auto;flex-shrink:0}
.coc-guide-overlay{position:fixed;inset:0;z-index:2147482700;background:#130a24;overflow:auto;padding:15px 12px env(safe-area-inset-bottom,14px);display:flex;align-items:center;justify-content:center}
.coc-guide-page{width:min(520px,100%);min-height:70vh;max-height:100%;overflow:auto;display:flex;flex-direction:column;align-items:center;gap:14px;padding:19px 21px 25px;text-align:center;background:radial-gradient(ellipse at 48% 3%,#725079,#432850 52%,#231d36);border:1px solid #d7a46c;border-radius:19px;color:#f8e6cb;box-shadow:0 14px 60px #0009}
.coc-guide-top{display:flex;justify-content:space-between;align-items:center;width:100%;gap:10px}.coc-guide-top small{font-size:10px;letter-spacing:2px;color:#efc18c;font-weight:800}
.coc-guide-x{width:44px;height:44px;border-radius:12px;background:#432d48;border:1px solid #bc986b;color:#fff1d5}
.coc-guide-icon{font-size:43px;color:#ffd58b}.coc-guide-page h2{font-size:clamp(24px,5vw,36px);margin:0}
.coc-guide-board{position:relative;display:grid;grid-template-columns:repeat(6,1fr);width:min(310px,88vw);aspect-ratio:1.5;border:5px solid #ba905f;overflow:hidden;border-radius:7px;transform:perspective(600px) rotateX(8deg);box-shadow:0 15px 25px #17102188}
.coc-guide-board>span{min-width:0;min-height:0}.coc-guide-board>span.light{background:#d6d0be}.coc-guide-board>span.dark{background:#5f786d}
.coc-guide-illustration{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:clamp(27px,7vw,41px);letter-spacing:.15em;text-shadow:0 3px 2px #182922b0;color:#fff3c5;white-space:nowrap}
.coc-guide-goal{font-size:18px;line-height:1.5;font-weight:800;max-width:400px;margin:2px 0}
.coc-guide-note{font-size:13px;line-height:1.5;max-width:390px;color:#dccada;margin:0}
.coc-guide-done{margin-top:auto;width:100%;max-width:400px;min-height:55px;border:1px solid #f2c27c;background:#2b4637;color:#ffebc6;border-radius:12px;font-weight:900;font-size:16px}
.coc-guide-game-button{font-weight:900;min-width:38px;border:1px solid #f1cc90;color:#f7dfb0}
@media(max-width:600px){.coc-guide-page{min-height:calc(100dvh - 38px);padding:20px 15px 28px;border-radius:16px}.coc-guide-illustration{letter-spacing:0}.coc-mode-with-help>.coc-mode-help-button{top:7px;right:7px;width:32px;height:32px}}
@media(prefers-reduced-motion:reduce){.coc-guide-board{transform:none}}

/* 1.8 - local bot difficulty, no additional in-game controls */
.coc-bot-difficulty-row:not(.hidden){display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 12px;margin-top:7px;border:1px solid #72896777;border-radius:11px;background:#20382c66;color:#ecd9b3}
.coc-bot-difficulty-row label{font-size:12px;font-weight:800}
.coc-bot-difficulty-row select{min-width:106px;min-height:40px;padding:7px 9px;border:1px solid #c6a577;border-radius:9px;background:#283d32;color:#f7e5cc;font-weight:800}
@media(max-width:480px){.coc-bot-difficulty-row label{font-size:11px}}


/* Selector local: la antigua regla 1.8.3 fija la sección a 49px con
   !important; esta regla más específica libera el alto de todas las filas. */
section.army-loadout.army-loadout-compact.army-player-loadouts{
 display:block!important;box-sizing:border-box!important;
 height:auto!important;min-height:0!important;max-height:none!important;
 overflow:visible!important;margin:10px 0 12px!important;padding:11px 12px!important
}
#armyPlayerLoadouts.army-player-list{display:flex;flex-direction:column;gap:7px;min-width:0;width:100%}
.army-new-heading{font-size:13px;font-weight:800;color:#f5dbab;margin-bottom:3px}
.army-new-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;width:100%;min-height:54px;padding:9px 11px;border:1px solid #78907e;border-radius:11px;background:#293f35;color:#f9eaca;text-align:left;font-family:inherit;cursor:pointer}
.army-new-player{flex:none;font-size:12px;font-weight:800}
.army-new-choice{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;max-width:61%;margin-left:auto}
.army-new-piece{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:6px;overflow:hidden;background:#375449;color:#f5d08a;font:700 23px Georgia,serif}
.army-new-piece img{display:block;width:100%;height:100%;object-fit:contain}
.army-new-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:800}
.army-new-arrow{flex:none;color:#e9c583;font-size:23px}
.army-new-modal-open{overflow:hidden}
.army-new-modal{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:12px}
.army-new-dim{position:absolute;inset:0;background:#06120ee6}
.army-new-panel{position:relative;display:flex;flex-direction:column;gap:12px;width:min(450px,100%);max-height:88dvh;min-height:0;padding:15px;border:1px solid #ccac73;border-radius:17px;background:#1e352e;color:#ffe8bf;box-shadow:0 24px 70px #000b}
.army-new-head{display:flex;justify-content:space-between;align-items:center;gap:9px;flex:none}
.army-new-head strong{font-size:16px}
.army-new-exit{min-width:40px;min-height:40px;border:1px solid #819987;border-radius:10px;background:#304b40;color:#fff1d3}
.army-new-cards{display:flex;flex-direction:column;gap:9px;overflow-y:auto;min-height:0;padding:3px 2px 8px;overscroll-behavior:contain}
.army-new-card{display:flex;align-items:center;flex-wrap:wrap;gap:9px;width:100%;min-height:73px;padding:11px;border:1px solid #758d7d;border-radius:11px;background:#2a4338;color:#ffebc6;cursor:pointer;text-align:left}
.army-new-card.chosen{border-color:#f5d18c;background:#465641}
.army-new-six{display:flex;gap:4px;min-width:0;flex:1 1 100%}
.army-new-six .army-new-piece{width:clamp(28px,8vw,38px);height:clamp(28px,8vw,38px)}
.army-new-card strong{flex:1 1 auto;min-width:0;overflow-wrap:anywhere;font-size:13px}
.army-new-tick{flex:none;color:#f2cf87;font-size:21px}
.army-new-row:focus-visible,.army-new-exit:focus-visible,.army-new-card:focus-visible{outline:3px solid #f1d28c;outline-offset:2px}
@media(max-width:600px){.army-new-modal{align-items:flex-end;padding:0}.army-new-panel{width:100%;max-height:88dvh;border-radius:18px 18px 0 0;padding:15px 13px max(14px,env(safe-area-inset-bottom))}}
@media(max-width:380px){section.army-loadout.army-loadout-compact.army-player-loadouts{padding:8px!important}.army-new-row{gap:5px;padding:8px}.army-new-player,.army-new-name{font-size:11px}.army-new-choice{gap:5px}.army-new-six .army-new-piece{width:28px;height:28px}}


/* 1.8.1: confirmations inside Call of Chess rather than Chrome's native dialogs */
body.coc-confirm-visible{overflow:hidden}
.coc-confirm-overlay{position:fixed;inset:0;z-index:2147483600;display:flex;align-items:center;justify-content:center;padding:18px;isolation:isolate}
.coc-confirm-backdrop{position:absolute;inset:0;background:#07140edc;backdrop-filter:blur(4px)}
.coc-confirm-panel{position:relative;width:min(410px,100%);display:flex;flex-direction:column;gap:12px;padding:22px 18px 17px;background:linear-gradient(145deg,#334b3c,#1b302c);border:1px solid #e4be7a;border-radius:18px;box-shadow:0 24px 80px #000b;color:#fff0ce}
.coc-confirm-panel h3{font-size:18px;font-weight:900;color:#f7d893;margin:0}
.coc-confirm-panel p{font-size:14px;line-height:1.5;color:#f7ecda;margin:0;overflow-wrap:anywhere}
.coc-confirm-actions{display:flex;gap:9px;margin-top:10px}
.coc-confirm-actions button{flex:1;min-height:46px;padding:9px 12px;border-radius:11px;font:800 13px inherit;cursor:pointer}
.coc-confirm-actions .coc-confirm-cancel{border:1px solid #859a89;background:#28433a;color:#fff0d3}
.coc-confirm-actions .coc-confirm-accept{border:1px solid #ffe9b0;background:#e7c586;color:#193128}
.coc-confirm-actions button:focus-visible{outline:3px solid #fbe7b2;outline-offset:2px}
@media(max-width:420px){.coc-confirm-panel{padding:19px 15px}.coc-confirm-panel h3{font-size:16px}}

/* 1.8.2 — game-native bot difficulty picker (native select stays the value source) */
.coc-bot-difficulty-row:not(.hidden){min-width:0;gap:12px}
.coc-bot-difficulty-row>label{flex:1;min-width:0}
.coc-bot-difficulty-row>.coc-picker-wrap{flex:0 1 175px;max-width:50%;min-width:118px}
.coc-bot-difficulty-row>.coc-picker-wrap .coc-picker-trigger{min-height:43px;background:linear-gradient(135deg,#455345,#272f39);border:1px solid #e0b376;border-radius:10px;color:#fbe8cd;box-shadow:inset 0 1px 0 #ffffff14}

/* 1.8.4 — standalone setup army selector, independent of obsolete 49px rules */
.setup-panel .army-selection-section{
 box-sizing:border-box;display:block;position:relative;
 width:100%;height:auto;min-height:0;max-height:none;overflow:visible;
 margin:13px 0 16px;padding:13px;border:1px solid #c69c68;
 border-radius:15px;background:linear-gradient(130deg,#2b4039,#2c3542);
 box-shadow:inset 0 1px 0 #ffffff16;
}
.setup-panel .army-selection-section #armyPlayerLoadouts{
 display:flex;flex-direction:column;gap:9px;width:100%;min-width:0;
 max-height:none;overflow:visible;
}
.setup-panel .army-selection-section .army-new-heading{
 font-size:13px;font-weight:850;line-height:1.4;margin:0 0 2px;
}
.setup-panel .army-selection-section .army-new-row{
 box-sizing:border-box;display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);
 align-items:center;gap:10px;width:100%;max-width:100%;min-width:0;
 min-height:58px;height:auto;margin:0;padding:9px 11px;overflow:visible;
 border:1px solid #829587;border-radius:11px;
}
.setup-panel .army-selection-section .army-new-player{white-space:normal;min-width:0;line-height:1.25}
.setup-panel .army-selection-section .army-new-choice{width:100%;max-width:none;min-width:0;overflow:hidden;margin:0;gap:7px;justify-content:flex-end}
.setup-panel .army-selection-section .army-new-name{flex:1;min-width:0;line-height:1.3}
.setup-panel .army-selection-section .army-new-piece{width:30px;height:30px;flex:0 0 30px}
@media(max-width:440px){
 .setup-panel .army-selection-section{padding:10px;margin:11px 0 15px}
 .setup-panel .army-selection-section .army-new-row{grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);padding:9px 8px;gap:6px}
 .setup-panel .army-selection-section .army-new-piece{width:27px;height:27px;flex-basis:27px}
 .setup-panel .army-selection-section .army-new-player,.setup-panel .army-selection-section .army-new-name{font-size:11px}
}
footer .coc-online-presence:not([hidden]){display:inline-flex;align-items:center;gap:6px;white-space:nowrap;vertical-align:middle;margin-left:8px;padding:5px 9px;border:1px solid #5e907263;border-radius:999px;background:#152a2599;color:#c0dac7;font-size:10px;letter-spacing:0;text-transform:none}
footer .coc-online-presence strong{font-size:11px;font-variant-numeric:tabular-nums;color:#e2f5e6}
footer .coc-online-dot{width:6px;height:6px;border-radius:50%;background:#87dba2;box-shadow:0 0 6px #82d2a24d}

/* 1.8.5: remove 54px legacy compact army picker crop, show both clickable rows */
.army-loadout.army-loadout-compact.army-player-loadouts{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:12px!important;margin:12px 0!important}
.army-loadout.army-loadout-compact.army-player-loadouts .army-player-list{display:flex!important;flex-direction:column!important;gap:7px!important;overflow:visible!important}
.army-loadout.army-loadout-compact.army-player-loadouts .army-new-row{display:flex!important;justify-content:space-between!important;width:100%!important;height:auto!important;min-height:56px!important;overflow:visible!important}
.army-loadout.army-loadout-compact.army-player-loadouts .army-new-heading{display:block!important;margin-bottom:5px!important}
#board .tile.coc-premove-target{outline:3px solid #f0bd62;outline-offset:-4px;box-shadow:inset 0 0 0 3px #fff3cb70,0 0 16px #e8b76599}
.coc-hud-portrait{width:27px;height:27px;flex:none;object-fit:contain;border-radius:6px;background:#36534555;border:1px solid #aa9876}
@media(max-width:580px){.army-loadout.army-loadout-compact.army-player-loadouts{padding:11px 8px!important}.army-loadout.army-loadout-compact.army-player-loadouts .army-new-row{min-height:59px!important}}

/* 1.8.6: The army chooser is a full-width standalone mobile section.
   Older fixed 49px compact rules must never clip the player rows. */
#setupPanelSeasonTarget section.army-selection-section{
 box-sizing:border-box!important;display:block!important;position:relative!important;
 height:auto!important;min-height:max-content!important;max-height:none!important;
 overflow:visible!important;flex:none!important;margin:14px 0 17px!important;
}
#setupPanelSeasonTarget section.army-selection-section #armyPlayerLoadouts{
 display:flex!important;flex-direction:column!important;gap:9px!important;
 height:auto!important;max-height:none!important;overflow:visible!important;
}
#setupPanelSeasonTarget section.army-selection-section .army-new-row{
 box-sizing:border-box!important;display:grid!important;
 grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;
 width:100%!important;min-height:58px!important;height:auto!important;max-height:none!important;
 overflow:visible!important;
}
@media(max-width:410px){#setupPanelSeasonTarget section.army-selection-section .army-new-row{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)!important}}

/* 1.8.7 — isolated local army chooser: no legacy fixed 49px loadout classes.
   Player selections are UI only; the artwork stays untouched in IndexedDB/Neon. */
#cocSetupArmyPicker.coc-setup-armies{
 box-sizing:border-box!important;display:block!important;position:relative!important;
 width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;
 max-height:none!important;overflow:visible!important;flex:none!important;clear:both!important;
 margin:14px 0 18px!important;padding:14px!important;
 border:1px solid #cda66d!important;border-radius:16px!important;
 background:linear-gradient(135deg,#46334f,#2a3548 52%,#253b38)!important;
 box-shadow:inset 0 1px 0 #ffffff17,0 5px 18px #170d241c!important;
}
#cocSetupArmyPicker #armyPlayerLoadouts.coc-setup-army-rows{
 box-sizing:border-box;display:flex!important;flex-direction:column!important;align-items:stretch!important;
 width:100%!important;min-width:0!important;height:auto!important;max-height:none!important;
 overflow:visible!important;gap:9px!important;
}
#cocSetupArmyPicker .coc-setup-army-intro{display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0;padding:0 3px 3px}
#cocSetupArmyPicker .coc-setup-army-heading{font-size:13px;font-weight:900;color:#ffe6bc;line-height:1.35}
#cocSetupArmyPicker .coc-setup-army-intro small{font-size:10px;color:#cebcaa;white-space:nowrap}
#cocSetupArmyPicker .coc-setup-army-row{
 box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(66px,.72fr) minmax(0,1.8fr)!important;
 align-items:center!important;gap:11px!important;width:100%!important;min-width:0!important;
 min-height:64px!important;height:auto!important;max-height:none!important;
 padding:9px 12px!important;margin:0!important;overflow:visible!important;
 border:1px solid #957c92!important;border-radius:12px!important;
 background:linear-gradient(115deg,#3b2e47,#30453f)!important;color:#fff0d4!important;
 cursor:pointer;text-align:left;font-family:inherit;touch-action:manipulation;
}
#cocSetupArmyPicker .coc-setup-army-row:active{background:#4c4355!important}
#cocSetupArmyPicker .coc-setup-army-row:focus-visible{outline:3px solid #ffdf9d;outline-offset:2px}
#cocSetupArmyPicker .coc-setup-army-player{display:grid;gap:2px;min-width:0}
#cocSetupArmyPicker .coc-setup-army-player small{font-size:9px;letter-spacing:1px;font-weight:800;color:#d6b9a9}
#cocSetupArmyPicker .coc-setup-army-player strong{font-size:17px;font-weight:900;color:#fff0d4;line-height:1.25}
#cocSetupArmyPicker .coc-setup-army-choice{display:flex;align-items:center;gap:9px;min-width:0;width:100%;overflow:hidden}
#cocSetupArmyPicker .coc-setup-army-choice .coc-setup-army-thumb{
 display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;max-width:35px;
 margin:0;border-radius:8px;background:#3d564d;color:#ffe0a2;overflow:hidden;
 font:700 26px Georgia,serif;
}
#cocSetupArmyPicker .coc-setup-army-thumb img{display:block;width:100%;height:100%;object-fit:contain}
#cocSetupArmyPicker .coc-setup-army-name{
 display:block;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
 white-space:nowrap;font-size:13px;font-weight:800;color:#f9e8ca;
}
#cocSetupArmyPicker .coc-setup-army-chevron{font-size:26px;line-height:1;flex:none;color:#f2cd93}
@media(max-width:450px){
 #cocSetupArmyPicker.coc-setup-armies{padding:10px!important;margin:12px 0 15px!important}
 #cocSetupArmyPicker .coc-setup-army-row{grid-template-columns:minmax(62px,.65fr) minmax(0,1.6fr)!important;padding:8px 9px!important;gap:6px!important;min-height:62px!important}
 #cocSetupArmyPicker .coc-setup-army-choice{gap:7px}
 #cocSetupArmyPicker .coc-setup-army-name{font-size:12px}
}
@media(max-width:350px){
 #cocSetupArmyPicker .coc-setup-army-intro small{font-size:9px}
 #cocSetupArmyPicker .coc-setup-army-row{grid-template-columns:66px minmax(0,1fr)!important}
 #cocSetupArmyPicker .coc-setup-army-choice .coc-setup-army-thumb{flex-basis:28px;width:28px;height:28px}
}

/* COC 189: increase touch targets without changing the visual hierarchy */
@media (pointer:coarse){
#playerMinus,#playerPlus,#humanMinus,#humanPlus,#minus,#plus,#fit,#setupHelp{min-width:42px!important;min-height:42px!important}
#back,#pause,#reset{min-width:42px!important;min-height:42px!important}
}
