:root {
  color-scheme:dark;--bg:#0c1116;--panel:#141c23;--line:#ffffff18;--muted:#a5b2bb;
  --text:#f0eee4;--gold:#d5b77f;--red:#e0a387;--blue:#a0cbea;--green:#a8d1b3;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg);font-synthesis:none;
}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{cursor:not-allowed;opacity:.42}a{color:inherit;text-decoration:none}button,a,input,select{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold)}h2{margin:0}
.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 4%;border-bottom:1px solid var(--line);background:#10161b}
.brand{display:flex;gap:12px;align-items:center;font:23px Georgia,serif;letter-spacing:3px}.brand svg{width:36px;height:43px;fill:none;stroke:var(--gold);stroke-width:1.5}.brand small{display:block;font:10px sans-serif;letter-spacing:4px;margin-top:6px;color:var(--gold)}
nav{display:flex;align-self:stretch;gap:34px}.nav-button{position:relative;font-size:15px;color:#b2bdc5;padding:0 2px}.nav-button.active{color:var(--gold)}.nav-button.active:after{content:'';height:2px;background:var(--gold);position:absolute;bottom:0;left:0;right:0}.nav-button span{font-size:12px;padding:3px 5px;border:1px solid #ffffff22;border-radius:4px;margin-left:5px}
.header-actions{display:flex;align-items:center;gap:16px}.icon-button{display:grid;place-items:center;width:40px;height:40px;color:#b5bfc5;border-radius:5px}.icon-button:hover{background:#ffffff0d}.icon-button svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.5}.outline-button{border:1px solid #b69a6880;border-radius:5px;padding:11px 17px;font-size:14px;color:#e5d2b0}.outline-button span{margin-left:22px}.outline-button:hover{background:#c7a87815}
main{max-width:1560px;padding:0 4%;margin:auto}.game-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 0 19px}.eyebrow{font-size:11px;font-weight:600;letter-spacing:2px;color:var(--gold)}h1{font:34px Georgia,"Times New Roman",serif;margin:6px 0 0}.session-tag{font-size:14px;color:#b5bfc7;display:flex;align-items:center;gap:11px}.session-tag i,.save-dot{height:6px;width:6px;background:#9cc4aa;border-radius:50%;display:inline-block}.sep{color:#66757f}
.arena{height:470px;position:relative;border:1px solid #b2995a60;border-radius:9px;overflow:hidden;background:#15202b;isolation:isolate}.arena-art{position:absolute;inset:0;z-index:-3}.arena-art img{width:100%;height:100%;object-fit:cover;object-position:center 35%}.arena-shade{position:absolute;inset:0;background:linear-gradient(180deg,#080e18b3,transparent 35%,#0b121533 70%,#0b121df2),linear-gradient(90deg,#0d151c70,transparent 35%,transparent 65%,#0d151c70);z-index:-2}
.arena-top{position:relative;z-index:5;display:flex;justify-content:space-between;align-items:flex-start;padding:20px 26px}.player-title{display:flex;align-items:center;gap:12px}.player-title small{font-size:11px;letter-spacing:1.5px;color:#d3c19d}.player-title h2{font:22px Georgia,serif;margin-top:5px}.sigil{font-size:27px;width:43px;height:50px;display:grid;place-items:center;clip-path:polygon(0 0,100% 0,100% 75%,50% 100%,0 75%);background:#282721;color:#e7c995;border-top:1px solid #b4945c}.sigil.teal{color:#a6d6df;background:#1c3037;border-color:#8cc7ce}.enemy{text-align:right}.enemy small{color:#a7d2df}
.enemy-ledger{position:absolute;left:50%;top:18px;transform:translateX(-50%);display:flex;align-items:center;gap:12px;border:1px solid #c0d5dc30;border-radius:6px;background:#0d1822d9;padding:12px 15px}.ledger-label{font-size:11px;color:#b1c4cf;position:absolute;bottom:-20px;left:0;right:0;text-align:center}.enemy-resource{position:relative;display:flex;align-items:center;gap:5px;color:var(--resource)}.enemy-resource svg{width:17px;height:17px}.enemy-resource strong{font-size:18px;font-weight:600}.enemy-resource small{font-size:11px;color:#c3d2da}
/* Four persistent sprite layers. Only their vertical offset changes after a move. */
.battle-scene{--goal-level:100%;position:absolute;top:92px;bottom:89px;left:30px;right:30px;z-index:1;overflow:visible}.citadel{position:absolute;top:0;bottom:0;width:36%}.player-citadel{left:0}.enemy-citadel{right:0}.structure{position:absolute;top:0;bottom:0;--buried:100%;--side-color:var(--gold)}.structure.tower{width:145px;left:13%;z-index:1}.structure.wall{width:133px;left:43%;z-index:3}.enemy-citadel .structure{--side-color:#9bd7e1}.enemy-citadel .tower{left:auto;right:13%}.enemy-citadel .wall{left:auto;right:43%}
.building-clip{position:absolute;inset:0;overflow:hidden}.building-sprite{height:100%;width:100%;transform:translateY(var(--buried));transition:transform 750ms cubic-bezier(.2,.75,.2,1);will-change:transform}.building-motion{height:100%;width:100%;transform-origin:bottom center}.building-motion img{height:100%;width:100%;display:block;object-fit:fill;filter:drop-shadow(0 4px 9px #0008)}.structure.is-zero .building-sprite{opacity:0;transition:transform 750ms cubic-bezier(.2,.75,.2,1),opacity 180ms 650ms}.structure.is-victorious .building-motion{filter:drop-shadow(0 0 14px var(--side-color))}
.building-caption{position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%);min-width:104px;display:grid;grid-template-columns:auto auto;column-gap:8px;align-items:center;padding:7px 12px;background:#0a151edf;border:1px solid #c0b59540;border-radius:5px;white-space:nowrap;box-shadow:0 4px 15px #0004}.building-caption>span{grid-column:1/-1;font-size:12px;font-weight:600;color:#d7dce0;letter-spacing:.5px}.building-caption strong{font-size:28px;font-weight:500;line-height:1.1;color:var(--side-color);margin-top:3px}.building-caption small{font-size:11px;color:#aabcc8;align-self:end;padding-bottom:2px}.structure.is-zero .building-caption strong{color:#e6a08d}
.ground-line{position:absolute;left:-10px;right:-10px;bottom:0;height:2px;background:linear-gradient(90deg,transparent,#d3b880aa 15%,#b9c8cf20 48%,#8dc1cc99 85%,transparent);box-shadow:0 2px 14px #000b;z-index:4}.victory-line{position:absolute;left:1%;right:1%;bottom:var(--goal-level);height:0;border-top:1px dashed #e2c78c50;transition:bottom 750ms ease;z-index:0}.victory-line span{position:absolute;left:50%;top:-10px;transform:translateX(-50%);padding:2px 9px;font-size:11px;letter-spacing:1px;color:#e6d4a8;background:#15202cdb;white-space:nowrap;border-radius:3px}
.turn-center{position:absolute;top:157px;left:50%;transform:translateX(-50%);text-align:center;width:235px;z-index:4;pointer-events:none}.turn-rune{width:31px;height:31px;border:1px solid #d6b87c99;transform:rotate(45deg);margin:0 auto 19px;background:#121e27bd;box-shadow:0 0 30px #c6a46526}.turn-rune span{display:block;transform:rotate(-45deg);font-size:25px;color:#e6cd9d;line-height:29px}.turn-center .eyebrow{font-size:14px;letter-spacing:2px;text-shadow:0 2px 6px #000}.turn-center>p{font:italic 15px Georgia,serif;color:#e0e4e2;text-shadow:0 2px 6px #000;margin:11px 0 16px;line-height:1.5}.last-action{font-size:14px;line-height:1.5;color:#c7d1d8;display:block;padding:12px 15px;background:#0b141bf2;border:1px solid #dbc18e50;border-radius:6px;box-shadow:0 8px 26px #0005}.last-action small{display:block;font-size:11px;color:#a9b9c4;margin-bottom:4px}.last-action b{display:block;color:#f0d4a0;font:19px Georgia,serif}.last-action p{font-size:13px;line-height:1.55;margin:7px 0 0}.last-action em{display:block;margin-top:7px;font-size:12px;color:#a9d3bd}
.arena-bottom{position:absolute;bottom:14px;left:24px;right:24px;display:flex;align-items:center;justify-content:space-between;color:#b5c1c8;font-size:12px;z-index:6}.location span{color:var(--gold);margin-right:8px}.text-button{font-size:13px;color:#d0dbe2}.text-button span{margin-left:12px;color:var(--gold)}
.resource-section{display:flex;align-items:center;gap:25px;padding:18px 0;border-bottom:1px solid var(--line)}.resource-caption{min-width:126px}.resource-caption small{display:block;color:#a6b5bf;font-size:12px;margin-top:7px}.resources{display:flex;gap:20px;flex:1}.resource{position:relative;display:flex;align-items:center;gap:11px;min-width:164px;border-right:1px solid #ffffff18;padding-right:23px;border-radius:4px}.resource-symbol{width:40px;height:40px;background:color-mix(in srgb,var(--resource) 12%,transparent);border:1px solid color-mix(in srgb,var(--resource) 25%,transparent);border-radius:6px;display:grid;place-items:center;color:var(--resource)}.resource-symbol svg{width:23px;height:23px}.resource small{display:block;font-size:13px;color:#c2cbd2;margin-bottom:4px}.resource strong{font-size:28px;font-weight:600;line-height:1}.production{font-size:13px;color:var(--resource);margin-left:9px;white-space:nowrap}.win-hint{text-align:right;color:#a6b5bf}.win-hint>span{font-size:10px;letter-spacing:1.5px}.win-hint p{font-size:12px;margin:8px 0 0}.win-hint b{font-weight:500;color:#e0dccd}.win-hint i{margin:0 7px}
.hand-heading{display:flex;justify-content:space-between;align-items:center;padding:20px 0 17px}.hand-heading>div{display:flex;align-items:center;gap:20px}.hand-heading h2{font:24px Georgia,serif}.hand-heading h2 span{font:14px sans-serif;margin-left:7px;color:#9daeba}.hand-heading p{font-size:14px;color:#a8b9c5;margin:0}.key-hint{font-size:12px;color:#a4b5c1;display:flex;gap:6px;align-items:center}.key-hint>span{padding:0 7px}kbd{border:1px solid #ffffff30;border-radius:3px;min-width:22px;height:24px;padding:3px 5px;font-size:12px;text-align:center;font-family:inherit}
.hand{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px;align-items:stretch;padding-top:2px}.card{--resource:var(--red);position:relative;text-align:left;display:flex;flex-direction:column;min-width:0;border:1px solid #bdab794d;border-radius:7px;background:linear-gradient(145deg,#273136,#151e25);overflow:hidden;padding:0;transition:transform .2s,border-color .2s,box-shadow .2s;min-height:287px}.card.gems{--resource:var(--blue)}.card.beasts{--resource:var(--green)}.card:hover{transform:translateY(-5px);border-color:var(--resource);box-shadow:0 6px 18px #0006}.card.unaffordable .cost{background:#453035;color:#efa3a8}.card.unaffordable{opacity:.75}.card .card-top{display:flex;align-items:center;justify-content:space-between;padding:10px 11px;gap:4px;font-size:10px;letter-spacing:.8px;color:var(--resource)}.card-top .cost{width:31px;height:31px;border:1px solid color-mix(in srgb,var(--resource) 45%,transparent);background:color-mix(in srgb,var(--resource) 13%,transparent);font-size:19px;font-weight:500;letter-spacing:0;display:flex;align-items:center;justify-content:center;border-radius:50%;flex-shrink:0}.card-art{position:relative;height:86px;margin:0 9px;overflow:hidden;border:1px solid #d6c29840;border-radius:3px;background:#151b21}.card-art svg{display:block;width:100%;height:100%;filter:saturate(.72) contrast(.96)}.card-art:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#121c2444,transparent 60%)}.card-content{padding:13px 12px 10px;flex:1}.card h3{font:20px Georgia,serif;margin:0 0 9px;line-height:1.2;color:#f1e7d3}.card p{font-size:14px;line-height:1.5;color:#c0cbd2;margin:0}.card-bottom{display:flex;align-items:center;justify-content:space-between;padding:9px 11px 12px;font-size:10px;letter-spacing:.5px;color:#9badba}.card-bottom span{color:var(--resource);letter-spacing:.3px}
.action-bar{display:flex;align-items:center;justify-content:center;gap:18px;min-height:68px;padding:12px 0}.action-bar p{font-size:14px;color:#b5c3ce;margin:0}.primary-button{background:var(--gold);border:1px solid var(--gold);color:#171d21;padding:13px 24px;border-radius:5px;font-size:15px;font-weight:600}.primary-button:hover:not(:disabled){background:#edcfa0}.secondary-button{padding:12px 19px;border:1px solid #879caa80;border-radius:5px;font-size:14px;color:#d4dce2}.secondary-button:hover:not(:disabled){background:#ffffff0d}
footer{display:flex;justify-content:space-between;padding:16px 0 22px;border-top:1px solid var(--line);font-size:11px;color:#8da1af;letter-spacing:.4px}footer b{color:#b1bec7;font-weight:500}footer i{margin:0 8px}footer .save-dot{width:5px;height:5px;margin-right:0}.impact{position:absolute;inset:0;pointer-events:none;z-index:8}.arena.ai .turn-rune{animation:breathe 2s infinite}.arena.ai .turn-center .eyebrow{color:#b6e1ec}
.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);opacity:0;pointer-events:none;padding:14px 20px;max-width:90vw;z-index:70;background:#263440;border:1px solid #ddbb7b80;border-radius:6px;font-size:15px;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
dialog{background:#131c24;color:var(--text);border:1px solid #b39c6470;border-radius:10px;padding:28px;max-width:min(780px,94vw);width:100%;max-height:88dvh;box-shadow:0 30px 100px #000a}dialog::backdrop{background:#060d16bc;backdrop-filter:blur(7px)}dialog.atlas-dialog{max-width:min(1220px,94vw)}.dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.dialog-title{font:34px Georgia,serif;margin:0 0 15px}.dialog-lead{color:#bac8d2;font-size:16px;line-height:1.7;margin-bottom:24px}.rule-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.rule-item{padding:18px;background:#1d2933;border:1px solid #ffffff16;border-radius:6px}.rule-item strong{font:32px Georgia,serif;color:var(--gold)}.rule-item h3{font-size:15px;margin:10px 0}.rule-item p,.rule-text{font-size:15px;line-height:1.7;color:#c2cdd5}.rule-text{margin-top:20px}.rule-text b{color:#eee1c9}.modal-actions{display:flex;gap:12px;margin-top:25px;justify-content:flex-end}.setting-row{display:flex;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid #ffffff18;align-items:center}.setting-row label{font-size:16px}.setting-row small{display:block;color:#adbfcc;margin-top:7px;font-size:14px;line-height:1.6}.setting-row select,.atlas-search{background:#202c35;color:#e0e8ed;border:1px solid #ffffff30;border-radius:5px;padding:12px;font-size:15px;max-width:55%}.atlas-tools{display:flex;gap:10px;margin:18px 0;flex-wrap:wrap}.atlas-search{max-width:none;flex:1;min-width:160px}.filter{border:1px solid #ffffff30;border-radius:5px;font-size:14px;padding:11px 13px;color:#c3d0db}.filter.active{border-color:var(--gold);color:var(--gold)}.atlas-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.atlas-grid .card{min-height:320px}.atlas-count{font-size:14px;color:#b5c7d5;margin:9px 0 15px}.log-item{display:grid;grid-template-columns:40px 1fr auto;gap:12px;padding:15px 0;border-bottom:1px solid #ffffff18;font-size:15px}.log-item>span{color:#b1c2ce}.log-item b{font-weight:500;color:#e6cfa2}.log-item small{display:block;color:#bac8d2;margin-top:6px;font-size:14px;line-height:1.5}.result{text-align:center;padding:14px 0}.result-icon{font-size:60px;color:var(--gold);margin-bottom:16px}.result p{color:#c2d0db;font-size:16px;line-height:1.7}.result .modal-actions{justify-content:center}.empty{text-align:center;color:#bdcbd5;padding:30px}
.card-flight{position:fixed;left:0;top:0;z-index:60;pointer-events:none;transform-origin:top left;will-change:transform,opacity;filter:drop-shadow(0 15px 35px #000b)}.card-flight .card{height:100%;min-height:0;border-color:var(--gold);box-shadow:0 0 25px #c7a87866}.card-flight .card-art{height:84px;flex-shrink:0}.card-flight .card h3{font-size:20px}.card-flight .card p{font-size:14px}.card-leaving{visibility:hidden}.card.discard-target{border-color:#e0a387}.card.discard-target:hover{box-shadow:0 0 0 1px #d8a48f}.hand[aria-busy="true"] .card{cursor:wait}
.value-change{position:absolute;left:50%;top:35%;font-size:25px;font-weight:700;z-index:10;text-shadow:0 2px 3px #000,0 0 10px #000;pointer-events:none;white-space:nowrap}.value-change.loss{color:#ffaf91}.value-change.gain{color:#d8efb5}.structure>.value-change{top:60%}.battle-spark{position:fixed;width:5px;height:5px;background:var(--spark);border-radius:50%;box-shadow:0 0 8px var(--spark);z-index:55;pointer-events:none}.battle-bolt{position:fixed;left:0;top:0;width:14px;height:14px;margin:-7px;border-radius:50%;background:#fff0c6;box-shadow:0 0 12px 5px #f6b95da8,0 0 28px 12px #bd783866;z-index:55;pointer-events:none}
@keyframes breathe{50%{box-shadow:0 0 30px #81bbc759;opacity:.6}}
@media(max-width:1200px){.win-hint{display:none}.resources{justify-content:space-around}.resource{min-width:0;padding-right:16px}.resource-section{gap:18px}.resource-caption{min-width:118px}nav{gap:24px}.structure.tower{width:128px;left:8%}.structure.wall{width:114px;left:48%}.enemy-citadel .tower{right:8%}.enemy-citadel .wall{right:48%}.turn-center{width:205px}.hand{gap:10px}.card h3{font-size:18px}.card-content{padding:11px 10px}.key-hint{display:none}.hand-heading>div{gap:14px}.enemy-ledger{gap:8px;padding:10px 12px}}
@media(max-width:950px){.brand{font-size:19px;gap:9px}.brand svg{width:29px}.brand small{font-size:8px}.header-actions{gap:6px}.outline-button span{display:none}.outline-button{padding:10px 12px}nav{gap:18px}.nav-button{font-size:14px}main,.topbar{padding-left:3%;padding-right:3%}.player-title h2{font-size:19px}.player-title small{font-size:10px}.sigil{width:33px;height:43px}.arena-top{padding:19px 19px}.enemy-ledger{top:18px;gap:6px}.enemy-resource strong{font-size:16px}.enemy-resource small{font-size:10px}.enemy-resource svg{width:14px}.ledger-label{font-size:10px}.battle-scene{left:18px;right:18px}.structure.tower{width:115px;left:1%}.structure.wall{width:102px;left:52%}.enemy-citadel .tower{right:1%}.enemy-citadel .wall{right:52%}.citadel{width:35%}.turn-center{width:174px;top:166px}.turn-center>p{font-size:14px}.last-action{padding:10px}.last-action b{font-size:17px}.last-action p{font-size:12px}.building-caption{padding:7px 9px;min-width:91px}.building-caption strong{font-size:26px}.building-caption>span{font-size:11px}.resource-caption{display:none}.card .card-top{font-size:9px;padding:9px}.card h3{font-size:17px}.card p{font-size:14px}.card-bottom{font-size:9px}.card-art{height:73px}.card-content{padding:11px 9px}.hand-heading p{font-size:13px}.hand-heading h2{font-size:23px}.session-tag{font-size:13px}}
@media(max-width:760px){
 .topbar{height:65px;padding:0 4%}.brand{font-size:18px;letter-spacing:2px}.brand svg{width:27px;height:34px}.brand small{font-size:8px;letter-spacing:2.7px}.topbar nav{position:absolute;top:65px;height:43px;left:0;right:0;justify-content:center;gap:32px;border-bottom:1px solid var(--line);background:#10161b;z-index:10}.nav-button{font-size:14px}.nav-button span{font-size:10px}.header-actions{gap:5px}.outline-button{padding:10px 11px;font-size:12px}.icon-button{width:34px;height:36px}.game-heading{padding:63px 0 18px}h1{font-size:29px}.game-heading .eyebrow{font-size:9px}.session-tag{gap:6px;font-size:13px}.session-tag .sep,.session-tag #mode-label{display:none}main{padding:0 3.5%}
 .arena{height:440px}.arena-art img{object-position:center}.arena-top{padding:14px 11px}.player-title{gap:7px;max-width:47%}.sigil{width:27px;height:36px;font-size:21px;flex-shrink:0}.player-title h2{font-size:17px;line-height:1.2;max-width:135px}.player-title small{font-size:9px;letter-spacing:.5px}.enemy-ledger{top:71px;padding:7px 12px;gap:12px;border-color:#a4bccf44}.enemy-resource svg{width:15px}.enemy-resource strong{font-size:17px}.enemy-resource small{font-size:11px}.ledger-label{position:static;font-size:10px;line-height:1.3;max-width:43px;text-align:left}
 .battle-scene{top:126px;bottom:96px;left:10px;right:10px}.citadel{width:42%}.structure.tower{width:76px;left:0}.structure.wall{width:64px;left:53%}.enemy-citadel .tower{right:0}.enemy-citadel .wall{right:53%}.building-caption{min-width:70px;padding:7px 5px;column-gap:4px;top:calc(100% + 9px)}.building-caption>span{font-size:10px;letter-spacing:0}.building-caption strong{font-size:25px}.building-caption small{font-size:10px}.wall-purpose{display:none}.victory-line span{font-size:9px;letter-spacing:.3px;top:-14px;padding:3px 6px;white-space:nowrap}
 .turn-center{top:165px;width:125px}.turn-rune{width:25px;height:25px;margin-bottom:15px}.turn-rune span{font-size:21px;line-height:23px}.turn-center .eyebrow{font-size:12px;letter-spacing:1px}.turn-center>p{display:none}.last-action{font-size:12px;padding:9px 7px;margin-top:12px}.last-action small{font-size:10px}.last-action b{font-size:15px;line-height:1.25}.last-action p{font-size:11px;line-height:1.4}.last-action em{font-size:10px}.arena-bottom{left:11px;right:11px;bottom:13px;font-size:10px}.location{max-width:52%;line-height:1.4}.text-button{font-size:12px}.text-button span{margin-left:5px}
 .resource-section{padding:16px 0}.resources{gap:7px;justify-content:space-between}.resource{padding-right:7px;gap:7px;align-items:flex-start}.resource-symbol{width:29px;height:33px;margin-top:2px;flex-shrink:0}.resource-symbol svg{width:19px;height:19px}.resource small{font-size:12px;margin-bottom:5px}.resource strong{font-size:27px}.production{display:block;font-size:11px;margin:4px 0 0;line-height:1.2}
 .hand-heading{padding:19px 0 11px}.hand-heading>div{width:100%;justify-content:space-between;gap:10px}.hand-heading h2{font-size:22px;white-space:nowrap}.hand-heading h2 span{font-size:12px}.hand-heading p{font-size:12px;max-width:155px;text-align:right;line-height:1.5}.hand{display:flex;overflow-x:auto;gap:12px;margin:0 -3.8%;padding:10px 3.8% 14px;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#a58a5344 transparent}.hand .card{flex:0 0 186px;min-height:290px;scroll-snap-align:center}.card-art{height:84px}.card .card-top{font-size:10px;padding:10px}.card h3{font-size:20px}.card p{font-size:14px}.card-content{padding:12px 11px}.card-bottom{font-size:10px}.action-bar{flex-wrap:wrap;gap:10px;min-height:75px;padding:10px 0 18px}.action-bar p{font-size:13px;line-height:1.5;text-align:center}.action-bar .secondary-button{min-height:43px}.action-bar .primary-button{min-height:43px}.value-change{font-size:23px}
 footer{font-size:10px;gap:12px;line-height:1.6;letter-spacing:0}footer>span:last-child{max-width:140px;text-align:right}dialog{padding:20px;max-height:91dvh}.dialog-title{font-size:29px}.dialog-lead{font-size:15px}.rule-grid{grid-template-columns:1fr}.rule-item{padding:14px;display:grid;grid-template-columns:48px 1fr;column-gap:12px}.rule-item strong{grid-row:span 2}.rule-item h3{margin:1px 0 5px}.rule-item p{margin:0}.rule-text{font-size:15px}.atlas-grid{grid-template-columns:repeat(2,1fr);gap:11px}.atlas-grid .card{min-height:340px}.atlas-grid .card h3{font-size:18px}.atlas-grid .card p{font-size:14px}.atlas-grid .card-top{font-size:9px}.filter{padding:10px;font-size:13px}.atlas-search{flex-basis:100%;font-size:16px}.setting-row{gap:12px}.setting-row select{font-size:14px;max-width:51%}.setting-row small{font-size:13px}.log-item{grid-template-columns:28px 1fr;font-size:14px}.log-item>span:last-child{grid-column:2}.modal-actions .primary-button,.modal-actions .secondary-button{padding:12px 14px;font-size:14px}
}
@media(max-width:370px){.brand{font-size:16px}.outline-button{font-size:11px;padding:9px}.nav-button{font-size:13px}.topbar nav{gap:26px}.structure.tower{width:65px}.structure.wall{width:56px}.turn-center{width:111px}.last-action b{font-size:14px}.resource-symbol{display:none}.resource{padding-right:10px}.resource small{font-size:12px}.hand-heading p{max-width:132px}.player-title h2{font-size:15px}.player-title small{font-size:8px}}
/* Keep labels above the arena footer and mirror both offsets at every breakpoint. */
.battle-scene{bottom:110px}
.enemy-citadel .tower,.enemy-citadel .wall{left:auto}
.mobile-action{display:none}
@media(min-width:761px) and (max-width:1100px){.hand{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.card h3{font-size:20px}.card .card-top{font-size:10px;padding:10px 11px}.card-art{height:100px}.card-content{padding:13px 12px}.card-bottom{font-size:10px}.card{min-height:300px}}
@media(max-width:760px){.enemy-ledger{top:84px}.battle-scene{top:140px;bottom:104px}.player-title.enemy h2{font-size:16px}.turn-center{width:80px}.turn-center .last-action{display:none}.mobile-action:not(:empty){display:block;margin:12px 0 0;padding:12px 14px;text-align:left}.mobile-action b{font-size:19px}.mobile-action p{font-size:14px}.mobile-action small{font-size:12px}}
/* The battlefield keeps its height; both economies use the space beside it. */
.battle-layout{display:grid;grid-template-columns:176px minmax(0,1fr) 176px;gap:14px;align-items:stretch}
.battle-layout .arena{container-type:inline-size;container-name:battlefield;min-width:0}
.battle-layout .resource-section,.enemy-economy{min-width:0;margin:0;padding:16px;border:1px solid #b2995a40;border-radius:7px;background:linear-gradient(150deg,#24251c80,#141c23);height:470px}
.battle-layout .resource-section{display:flex;flex-direction:column;align-items:stretch;gap:12px}
.enemy-economy{border-color:#83afc43b;background:linear-gradient(150deg,#16232dbb,#101a22)}
.battle-layout .resource-caption,.enemy-caption{display:block;min-width:0;height:62px;min-height:62px}
.resource-caption .eyebrow,.enemy-caption .eyebrow{font-size:10px;letter-spacing:.7px;line-height:1.5}
.resource-caption small,.enemy-caption small{display:block;margin-top:6px;font-size:12px;line-height:1.5;color:#b2c6d1}
.enemy-caption .eyebrow{color:#a7d2df}
.battle-layout .resources{display:grid;grid-template-columns:minmax(0,1fr);gap:0;align-content:start;justify-content:stretch;flex:none}
.enemy-economy .enemy-ledger{position:static;transform:none;display:grid;grid-template-columns:minmax(0,1fr);gap:0;align-content:start;height:100%;padding:0;border:0;border-radius:0;background:none}
.enemy-caption{margin-bottom:12px}
.battle-layout .resource,.enemy-economy .enemy-resource{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);column-gap:9px;row-gap:6px;align-items:center;align-content:center;min-width:0;min-height:104px;padding:10px 0;border:0;border-bottom:1px solid #ffffff14;border-radius:0}
.battle-layout .resource:last-child,.enemy-economy .enemy-resource:last-child{border-bottom:0}
.battle-layout .resource-symbol,.enemy-resource-icon{display:grid;place-items:center;width:34px;height:38px;margin:0;background:color-mix(in srgb,var(--resource) 10%,transparent);border:1px solid color-mix(in srgb,var(--resource) 24%,transparent);border-radius:5px;color:var(--resource)}
.battle-layout .resource-symbol svg,.enemy-economy .enemy-resource-icon svg{width:21px;height:21px}
.resource-values>small,.enemy-economy .enemy-resource-values>small{display:block;font-size:13px;color:#cbd8de;margin-bottom:4px}
.resource-values>strong,.enemy-economy .enemy-resource-values>strong{font-size:28px;font-weight:600;line-height:1;color:#f0eee4}
.battle-layout .production,.enemy-production{grid-column:1/-1;display:block;position:relative;margin:0;line-height:1.35;white-space:normal}
.production>span,.enemy-production>span{display:block;font-size:12px;color:#b2c6d1;margin-bottom:2px}
.production>b,.enemy-production>b{font-size:17px;font-weight:500;white-space:nowrap;color:var(--resource)}
.resource .production strong,.enemy-economy .enemy-production strong{font:inherit}
.production>.value-change,.enemy-production>.value-change{top:0}
footer .win-hint{display:block;text-align:center}footer .win-hint>span{display:none}footer .win-hint p{font-size:12px;margin:0;line-height:1.4}
@container battlefield (max-width:1000px){
 .arena-top{padding:20px 18px}.player-title h2{font-size:20px}.player-title small{font-size:10px}.sigil{width:34px;height:43px}
 .battle-scene{left:20px;right:20px}.citadel{width:36%}.structure.tower{width:120px;left:4%}.structure.wall{width:108px;left:49%}.enemy-citadel .tower{left:auto;right:4%}.enemy-citadel .wall{left:auto;right:49%}
 .building-caption{min-width:94px;padding:7px 8px}.building-caption strong{font-size:28px}.building-caption>span{font-size:12px}.building-caption small{font-size:11px}
 .turn-center{width:190px}.last-action b{font-size:19px}.last-action p{font-size:13px}
}
@container battlefield (max-width:720px){
 .player-title h2{font-size:18px}.player-title small{font-size:9px}.player-title{gap:8px}.sigil{width:28px;height:36px;font-size:22px}
 .citadel{width:40%}.structure.tower{width:100px;left:0}.structure.wall{width:88px;left:51%}.enemy-citadel .tower{left:auto;right:0}.enemy-citadel .wall{left:auto;right:51%}
 .building-caption{min-width:80px;padding:7px 6px;column-gap:4px}.building-caption small{font-size:10px}.wall-purpose{display:none}
 .turn-center{width:150px}.turn-center>p{display:none}.last-action{margin-top:18px;padding:10px}.last-action b{font-size:18px}.last-action p{font-size:13px}
}
@media(min-width:761px) and (max-width:1100px){
 .battle-layout{grid-template-columns:154px minmax(0,1fr) 154px;gap:10px}
 .battle-layout .resource-section,.enemy-economy{padding:12px}
 .battle-layout .resource,.enemy-economy .enemy-resource{column-gap:7px}
}
@container battlefield (max-width:520px){
 .arena-top{padding:18px 12px}.player-title h2{font-size:16px}.player-title small{font-size:9px;letter-spacing:.5px}.player-title{gap:6px}.sigil{width:24px;height:32px;font-size:20px}
 .battle-scene{left:12px;right:12px}.citadel{width:42%}.structure.tower{width:82px}.structure.wall{width:70px;left:53%}.enemy-citadel .wall{left:auto;right:53%}
 .building-caption{min-width:70px;padding:7px 5px}.building-caption strong{font-size:26px}.building-caption>span{font-size:11px}
 .arena-bottom{left:12px;right:12px}.location{font-size:11px}.text-button{font-size:12px}
}
@media(min-width:761px) and (max-width:950px){
 .turn-center .last-action{display:none}.turn-center{width:100px}.turn-center>p{display:none}
 .mobile-action:not(:empty){display:block;margin:12px 0 0;padding:12px 14px;text-align:left}.mobile-action b{font-size:19px}.mobile-action p{font-size:14px}.mobile-action small{font-size:12px}
}
@media(max-width:1100px){footer .win-hint{display:none}}
@media(max-width:760px){
 .battle-layout{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .battle-layout .arena{grid-column:1/-1;grid-row:2;height:394px;container-type:normal}
 .battle-layout .resource-section,.enemy-economy{grid-row:1;height:auto;padding:8px;gap:0}
 .battle-layout .resource-caption,.enemy-caption{height:auto;min-height:0;margin:0;padding:2px 0 8px;border-bottom:1px solid #ffffff18}
 .resource-caption .eyebrow,.enemy-caption .eyebrow{font-size:10px;letter-spacing:.7px}.resource-caption small,.enemy-caption small{display:none}
 .battle-layout .resource,.enemy-economy .enemy-resource{grid-template-columns:minmax(0,1fr);min-height:0;padding:4px 0;gap:2px}
 .battle-layout .resource-symbol,.enemy-resource-icon{display:none}
 .resource-values,.enemy-resource-values{display:flex;align-items:center;justify-content:space-between;gap:4px}
 .resource-values>small,.enemy-economy .enemy-resource-values>small{font-size:13px;margin:0}
 .resource-values>strong,.enemy-economy .enemy-resource-values>strong{font-size:24px}
 .battle-layout .production,.enemy-production{display:flex;align-items:baseline;justify-content:space-between;gap:4px;flex-wrap:wrap}
 .production>span,.enemy-production>span{font-size:11px;margin:0}.production>b,.enemy-production>b{font-size:16px}
 footer .win-hint{display:none}.battle-scene{top:94px}.turn-center{top:119px}
 .structure.wall{left:57%}.enemy-citadel .wall{left:auto;right:57%}.building-caption small{display:none}
}
@media(max-width:370px){.structure.wall{left:60%}.enemy-citadel .wall{left:auto;right:60%}}
/* Effect ownership follows the gold/teal sides of the battlefield. */
.card-effects{display:grid;gap:7px;min-width:0}
.card-content{container-type:inline-size;container-name:card-text}
.effect-group{--recipient:var(--gold);display:grid;gap:5px;padding:7px 8px;border-left:2px solid var(--recipient);border-radius:3px;background:color-mix(in srgb,var(--recipient) 6%,transparent);text-align:left;min-width:0}
.effect-opponent{--recipient:#a7d2df}.effect-both{--recipient:#c4c6d4}
.effect-target{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:600;line-height:1.3;color:var(--recipient)}
.effect-target>span{font-size:14px}
.effect-item{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:5px;align-items:center;min-width:0}
.effect-icon{width:18px;height:18px;display:block;color:var(--effect-icon);flex-shrink:0}
.effect-label{font-size:14px;line-height:1.3;color:#d4dce1;overflow-wrap:normal}
.effect-item>strong{font-size:16px;font-weight:600;line-height:1.2;white-space:nowrap;color:#d0d7df}
.effect-item.gain>strong{color:#b9e3b8}.effect-item.loss>strong{color:#ffad99}
.effect-all-resources{grid-template-columns:minmax(0,1fr) auto}.effect-resource-icons{grid-column:1/-1;display:flex;gap:8px}
.card-effects .effect-condition{grid-column:1/-1;font:13px/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#b7c7d1;margin:0}
.effect-extra{font-size:12px;color:#b9e3b8;line-height:1.4}
.last-action .card-effects{margin-top:10px}.last-action .effect-resource-icons{display:none}.last-action .effect-group{padding:6px;gap:4px}.last-action .effect-label{font-size:13px}.last-action .effect-target{font-size:12px}.last-action .effect-item>strong{font-size:15px}
.turn-center.has-effects>p{display:none}.turn-center.has-effects .last-action{margin-top:18px}
@container card-text (max-width:155px){
 .effect-item:not(.effect-all-resources){grid-template-columns:18px minmax(0,1fr);gap:3px 5px}
 .effect-item:not(.effect-all-resources)>.effect-label{grid-column:1/-1;grid-row:1}
 .effect-item:not(.effect-all-resources)>.effect-icon{grid-column:1;grid-row:2}
 .effect-item:not(.effect-all-resources)>strong{grid-column:2;grid-row:2}
}
@media(min-width:761px) and (max-width:950px){.atlas-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:480px){.atlas-grid{grid-template-columns:minmax(0,1fr)}}
@media(min-width:951px){
 .turn-center.has-effects{top:72px}.turn-center.has-effects .turn-rune{display:none}
 .turn-center .effect-icon{display:none}.turn-center .effect-item{grid-template-columns:minmax(0,1fr) auto}
}
/* The whole duel shares the available window height; cards have priority. */
.compact-effects{display:none}.hand-slot{position:relative;display:flex;min-width:0}.hand-slot>.card{width:100%;flex:1}
.mobile-turn{display:none}
.effect-chips{display:flex;flex-wrap:wrap;gap:3px 8px}.effect-chip{display:flex;align-items:center;gap:3px;white-space:nowrap}.effect-chip .effect-icon{width:15px;height:15px}.effect-chip strong{font-size:15px;line-height:1.2}.effect-chip.loss strong{color:#ffad99}.effect-chip.gain strong{color:#b9e3b8}
.hand.seven-cards .card-full-effects{display:none}.hand.seven-cards .compact-effects{display:grid;gap:4px}.hand.seven-cards .compact-effects .effect-group{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:4px}.hand.seven-cards .compact-effects .effect-both{grid-template-columns:minmax(0,1fr)}
.card-inspect{position:absolute;bottom:5px;right:5px;width:30px;height:30px;border-radius:50%;font-size:21px;color:#c1d0d9;display:grid;place-items:center;background:#111b23}
.card-inspect:hover{color:var(--gold);background:#293540}.hand .card-bottom{padding-right:43px}
.card-inspect:after{content:'';position:absolute;inset:-4px}
.last-action{pointer-events:auto;width:100%;text-align:center}.last-action:disabled{opacity:1;cursor:default}.last-more{display:block;margin-top:7px;font-size:12px;color:#c8b486}
.card-dialog{max-width:420px}.card-dialog .dialog-title{font-size:26px}.card-review .card{min-height:0}.card-review .card-art{height:110px}.card-review .card-content{padding:16px}.card-review .effect-label{font-size:16px}.card-review .effect-item>strong{font-size:18px}.card-review .effect-target{font-size:14px}.card-review .effect-condition{font-size:14px}
body{min-height:100dvh}.topbar{height:56px}.brand{font-size:20px}.brand svg{width:30px;height:36px}.brand small{font-size:8px;margin-top:3px}
main{height:calc(100dvh - 56px);display:grid;grid-template-areas:"heading" "battle" "hand" "footer";grid-template-rows:46px minmax(240px,470px) auto 22px;row-gap:6px;align-content:start;padding-bottom:8px}
.game-heading{grid-area:heading;padding:6px 0}.game-heading .eyebrow{display:none}.game-heading h1{font-size:26px;margin:0}
.battle-layout{grid-area:battle;min-height:0;height:100%;grid-template-rows:minmax(0,1fr)}.battle-layout .arena{height:100%;container-type:size}.battle-layout .resource-section,.enemy-economy{height:100%;min-height:0;padding:10px;gap:6px}
.battle-layout .resource-caption,.enemy-caption{height:24px;min-height:24px;margin:0}.resource-caption small,.enemy-caption small{display:none}
.battle-layout .resources,.enemy-economy .enemy-ledger{grid-template-rows:repeat(3,minmax(0,1fr));height:auto;flex:1;min-height:0}
.enemy-economy .enemy-ledger{height:100%;grid-template-rows:24px repeat(3,minmax(0,1fr));gap:6px}
.battle-layout .resource,.enemy-economy .enemy-resource{grid-template-columns:minmax(0,1fr);min-height:0;padding:5px 0;row-gap:3px}
.resource-values,.enemy-resource-values{display:flex;align-items:center;justify-content:space-between;gap:4px}
.resource-values>small,.enemy-economy .enemy-resource-values>small{margin:0;font-size:13px}.resource-values>strong,.enemy-economy .enemy-resource-values>strong{font-size:25px;line-height:1.2}
.battle-layout .production,.enemy-production{display:flex;justify-content:space-between;align-items:baseline;gap:4px;flex-wrap:wrap}.production>span,.enemy-production>span{font-size:11px;margin:0}.production>b,.enemy-production>b{font-size:16px}
.battle-layout .resource-symbol,.enemy-resource-icon{display:none}
.arena-top{padding:12px 16px}.arena-top .sigil{width:26px;height:34px;font-size:22px}.arena-top .player-title h2{font-size:18px;margin-top:3px}.arena-top .player-title small{font-size:9px}
.battle-scene{top:64px;bottom:80px}.building-caption{top:calc(100% + 7px);padding:5px 8px}.building-caption strong{font-size:25px}.arena-bottom{bottom:7px;font-size:11px}
.victory-line span{left:0;top:2px;transform:none;font-size:10px;padding:2px 6px}
.turn-center,.turn-center.has-effects{top:44%;transform:translate(-50%,-50%);width:190px}.turn-center .turn-rune,.turn-center>p{display:none}.turn-center .last-action,.turn-center.has-effects .last-action{display:block;margin-top:10px;padding:9px 11px}.turn-center .eyebrow{font-size:12px;letter-spacing:1px}
.last-action .effect-label{font-size:13px}.last-action .card-effects{margin-top:7px}
.last-action.mobile-action:not(:empty){display:none}
.hand-section{grid-area:hand;min-width:0}.hand-heading{padding:5px 0 7px;min-height:30px}.hand-heading h2{font-size:20px}.hand-heading p{font-size:13px}.hand-heading .key-hint{font-size:11px}kbd{height:20px;font-size:11px;padding:2px 4px}
.hand{grid-template-columns:repeat(var(--hand-size,6),minmax(0,1fr));gap:10px;padding:0}.hand .card{min-height:0}.hand .card .card-top{padding:5px 9px;font-size:9px;min-height:34px}.hand .cost{width:26px;height:26px;font-size:17px}.hand .card-art{height:42px;flex-shrink:0;margin:0 7px}.hand .card-content{padding:7px 9px}.hand .card h3{font-size:18px;margin-bottom:6px;overflow-wrap:anywhere}.hand .card-bottom{padding-top:4px;padding-bottom:6px;font-size:9px;min-height:25px}
.hand .effect-group{padding:5px 6px;gap:4px}.hand .card-effects{gap:5px}.hand .effect-target{font-size:11px}.hand .effect-icon{width:16px;height:16px}.hand .effect-item{grid-template-columns:16px minmax(0,1fr) auto;gap:4px}.hand .effect-all-resources{grid-template-columns:minmax(0,1fr) auto}.hand .effect-label{font-size:14px}.hand .effect-item>strong{font-size:15px}.hand .effect-condition{font-size:13px;line-height:1.35}
.action-bar{min-height:34px;padding:4px 0;gap:12px}.action-bar p{font-size:12px}.action-bar .secondary-button,.action-bar .primary-button{padding:6px 12px;font-size:13px;min-height:30px}
footer{grid-area:footer;padding:4px 0;font-size:10px;align-items:center}footer .win-hint p{font-size:11px}
@container battlefield (max-height:380px){.last-action .card-effects,.last-action>p{display:none}.turn-center .last-action b{font-size:18px}.last-more{margin-top:5px}.turn-center,.turn-center.has-effects{top:43%}}
@container battlefield (max-width:720px){.turn-center,.turn-center.has-effects{width:160px}.arena-top .player-title h2{font-size:16px}.arena-top .sigil{display:none}.building-caption small{display:none}.building-caption{min-width:70px}.arena-bottom{left:12px;right:12px}}
@media(max-width:1100px),(max-height:760px){
 .hand .card-full-effects{display:none}.hand .compact-effects{display:grid;gap:4px}.hand .card-art{height:30px}.hand .card h3{font-size:17px;line-height:1.15;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.hand .card .card-top{min-height:28px;padding:3px 7px}.hand .cost{width:23px;height:23px;font-size:16px}.hand .card-content{padding:5px 7px}.hand .effect-group{padding:4px 5px;gap:3px}.hand .effect-target{font-size:11px;line-height:1.2}.hand .effect-target>span{font-size:11px}
 .effect-chips{display:flex;flex-wrap:wrap;gap:3px 8px}.effect-chip{display:flex;align-items:center;gap:3px;white-space:nowrap}.effect-chip .effect-icon{width:15px;height:15px}.effect-chip strong{font-size:15px;line-height:1.2}.effect-chip.loss strong{color:#ffad99}.effect-chip.gain strong{color:#b9e3b8}
 .hand .compact-effects .effect-group{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px}
 .hand .compact-effects .effect-both{grid-template-columns:minmax(0,1fr)}
}
@media(min-width:761px) and (max-width:1100px){.hand{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.hand .card-art{display:none}.turn-center .last-action{display:block}}
@media(min-width:761px) and (max-width:1100px){.hand.seven-cards{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){
 .topbar{height:48px;padding:0 3%}.topbar nav{top:48px;height:32px;gap:12px}.brand{font-size:16px}.brand svg{width:23px;height:29px}.brand small{font-size:7px}.header-actions .outline-button{padding:7px 9px}.header-actions .icon-button{height:30px}.mobile-turn{display:flex;align-items:center;color:#bac8d2;font-size:11px}.nav-button{font-size:13px}
 main{height:calc(100dvh - 80px);margin-top:32px;grid-template-areas:"battle" "hand";grid-template-rows:minmax(290px,1fr) auto;row-gap:6px;padding:5px 3%}.game-heading{display:none}
 .battle-layout{grid-template-rows:134px minmax(150px,1fr);gap:6px;grid-template-columns:repeat(2,minmax(0,1fr))}.battle-layout .arena{height:100%;container-type:size}.battle-layout .resource-section,.enemy-economy{padding:5px 7px;gap:2px}.battle-layout .resource-caption,.enemy-caption{height:17px;min-height:17px;padding:0;border:0}.battle-layout .resource-caption .eyebrow,.enemy-caption .eyebrow{font-size:9px;line-height:1.1}.enemy-economy .enemy-ledger{grid-template-rows:17px repeat(3,minmax(0,1fr));gap:2px}
 .battle-layout .resource,.enemy-economy .enemy-resource{padding:1px 0;gap:0}.resource-values>small,.enemy-economy .enemy-resource-values>small{font-size:12px}.resource-values>strong,.enemy-economy .enemy-resource-values>strong{font-size:20px}.production>span,.enemy-production>span{font-size:10px}.production>b,.enemy-production>b{font-size:14px}
 .battle-layout .resource,.enemy-economy .enemy-resource{grid-template-columns:minmax(0,1fr) auto;column-gap:4px}.resource-values,.enemy-resource-values{grid-column:1;grid-row:1;gap:2px}.resource-values>small,.enemy-economy .enemy-resource-values>small{font-size:11px}.resource-values>strong,.enemy-economy .enemy-resource-values>strong{font-size:18px;line-height:1.1}.battle-layout .production,.enemy-production{display:contents}.production>span,.enemy-production>span{grid-column:1/-1;grid-row:2;font-size:10px;line-height:1.1}.production>b,.enemy-production>b{grid-column:2;grid-row:1;font-size:13px;line-height:1.2}
 .arena-top{padding:7px 9px}.arena-top .player-title h2{font-size:14px}.arena-top .player-title small{font-size:8px;letter-spacing:.5px}.battle-scene{top:47px;bottom:57px;left:10px;right:10px}.building-caption{min-width:0;padding:3px 5px;top:calc(100% + 5px)}.building-caption>span{font-size:10px}.building-caption strong{font-size:21px}.arena-bottom{bottom:4px;left:9px;right:9px}.location{display:none}.arena-bottom .text-button{font-size:11px;margin-left:auto}.victory-line span{font-size:8px}.turn-center,.turn-center.has-effects{width:118px}.turn-center .eyebrow{font-size:10px}.turn-center .last-action{padding:5px 6px;margin-top:6px}.turn-center .last-action b{font-size:14px}.last-action small{font-size:10px}.last-more{font-size:11px}
 .hand{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;overflow:visible;margin:0;padding:0;scroll-snap-type:none}.hand-slot{min-width:0}.hand .card{flex:none;scroll-snap-align:none}.hand .card-art{display:none}.hand .card .card-top{font-size:8px;padding:3px 5px;min-height:26px;letter-spacing:0}.hand .cost{width:21px;height:21px;font-size:15px}.hand .card-content{padding:4px 5px}.hand .card h3{font-size:14px;line-height:1.15;margin-bottom:4px}.hand .effect-group{padding:3px 4px}.hand .compact-effects .effect-group{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:3px}.hand .compact-effects .effect-group:has(.effect-chip-resources),.hand .compact-effects .effect-group:has(.effect-chip-conditional),.hand .compact-effects .effect-both{grid-template-columns:minmax(0,1fr)}.hand .effect-target{font-size:10px}.hand .effect-chip .effect-icon{width:13px;height:13px}.hand .effect-chip strong{font-size:14px}.hand .effect-chips{gap:3px 6px}.hand .card-bottom{padding:3px 27px 3px 5px;font-size:8px;letter-spacing:0;min-height:23px}.hand .card-bottom>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hand .card-bottom>b{display:none}.card-inspect{width:24px;height:24px;font-size:18px;bottom:1px;right:1px;background:transparent}
 .hand-heading{min-height:26px;padding:3px 0 5px}.hand-heading h2{font-size:18px}.hand-heading h2 span{font-size:12px}.hand-heading p{display:none;font-size:11px;max-width:160px}.pending-discard .hand-heading p{display:block}.hand.seven-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.hand .effect-target{font-size:11px}.action-bar{min-height:34px;flex-wrap:nowrap;gap:6px;padding:3px 0}.action-bar p{font-size:11px;text-align:left;line-height:1.2}.action-bar .secondary-button,.action-bar .primary-button{font-size:12px;white-space:nowrap;padding:5px 9px;min-height:28px}footer{display:none}
}
@container battlefield (max-height:200px){.arena-top .player-title h2{display:none}.turn-center .last-action small,.turn-center .last-more{display:none}.turn-center .last-action b{font-size:12px}.turn-center .last-action{padding:5px}.turn-center,.turn-center.has-effects{top:42%}.last-action:disabled{font-size:11px}}
@media(max-width:760px){
 .battle-scene{bottom:74px}.hand .effect-chips{gap:3px}.hand.seven-cards .compact-effects .effect-group:has(.effect-chip-resources),.hand.seven-cards .compact-effects .effect-group:has(.effect-chip-conditional),.hand.seven-cards .compact-effects .effect-both{grid-template-columns:minmax(0,1fr)}
 .enemy-economy .enemy-ledger{align-items:stretch}
 .battle-layout .resource,.enemy-economy .enemy-resource{align-items:start;align-content:start}.resource-values,.enemy-resource-values{align-self:start}.battle-layout .production,.enemy-production{display:block;position:static;align-self:start;grid-column:2;grid-row:1;height:20px;line-height:1.2}.production>span,.enemy-production>span{position:absolute;left:0;bottom:0}.production>b,.enemy-production>b{display:block}
 .hand .compact-effects .effect-group:has(.effect-target>span){grid-template-columns:minmax(0,1fr)}
 .hand.seven-cards .compact-effects .effect-group{grid-template-columns:minmax(0,1fr)}.hand.seven-cards .effect-chip{gap:2px}.hand.seven-cards .effect-chip-resources .effect-icon{width:11px;height:11px}
 .hand.seven-cards .card .card-top{position:absolute;top:3px;right:3px;min-height:0;padding:0;z-index:1}.hand.seven-cards .card-top>span:first-child{display:none}.hand.seven-cards .card h3{padding-right:22px}.hand.seven-cards .card-content{padding-top:7px}
 body.discard-choice main{grid-template-rows:minmax(206px,1fr) auto}.discard-choice .battle-layout{grid-template-rows:134px 66px;align-content:start}
 .discard-choice .arena-top,.discard-choice .turn-center,.discard-choice .arena-bottom,.discard-choice .building-clip,.discard-choice .ground-line,.discard-choice .victory-line{display:none}
 .discard-choice .battle-scene{inset:5px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .discard-choice .citadel{position:static;width:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
 .discard-choice .citadel:before{content:'Ваша крепость';grid-column:1/-1;font-size:10px;line-height:1;color:var(--gold)}.discard-choice .enemy-citadel:before{content:'Соперник';color:#a7d2df}
 .discard-choice .structure{position:static;width:auto}.discard-choice .building-caption{position:static;transform:none;padding:2px 4px;min-width:0}.discard-choice .building-caption>span{font-size:10px}.discard-choice .building-caption strong{font-size:20px;margin-top:0}
}
@container battlefield (max-height:200px){.turn-center,.turn-center.has-effects{top:35%}}
@media(max-width:760px) and (max-height:680px){
 main{grid-template-rows:minmax(216px,1fr) auto;padding-top:1px;padding-bottom:3px}.battle-layout{grid-template-rows:100px minmax(110px,1fr)}.production>span,.enemy-production>span{display:none}
 .battle-scene{top:26px;bottom:68px}.hand .card .card-top{position:absolute;top:3px;right:3px;min-height:0;padding:0;z-index:1}.hand .card-top>span:first-child{display:none}.hand .card h3{padding-right:22px}.hand .card-content{padding-top:7px}
 body.discard-choice main{grid-template-rows:minmax(172px,1fr) auto}.discard-choice .battle-layout{grid-template-rows:100px 66px}.discard-choice .battle-scene{inset:5px}
}
@media(max-width:760px) and (min-height:681px) and (max-height:780px){
 main{grid-template-rows:minmax(270px,1fr) auto}.battle-layout{grid-template-rows:134px minmax(130px,1fr)}
 .hand .card .card-top{position:absolute;top:3px;right:3px;min-height:0;padding:0;z-index:1}.hand .card-top>span:first-child{display:none}.hand .card h3{padding-right:22px}.hand .card-content{padding-top:7px}
 body.discard-choice main{grid-template-rows:minmax(206px,1fr) auto}.discard-choice .battle-layout{grid-template-rows:134px 66px}
}
@container battlefield (max-height:145px){
 .turn-center .last-action b,.turn-center .last-action:disabled{display:none}.turn-center .last-more{display:block;margin:0;line-height:1.2}.turn-center .last-more:before{content:'Карта · '}.turn-center .last-action{padding:3px;margin-top:3px}.turn-center,.turn-center.has-effects{top:24%}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.building-sprite{will-change:auto}}
