@font-face{font-family:Cinzel;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/cinzel-latin-ext-600-normal-BEFdM_VE.woff2)format("woff2"),url(/assets/cinzel-latin-ext-600-normal-BY9Mq9iK.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Cinzel;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/cinzel-latin-600-normal-Dd5YO2UX.woff2)format("woff2"),url(/assets/cinzel-latin-600-normal-CH_LB4su.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Cinzel;font-style:normal;font-display:swap;font-weight:800;src:url(/assets/cinzel-latin-ext-800-normal-BVA5zD9y.woff2)format("woff2"),url(/assets/cinzel-latin-ext-800-normal-gMcvnDsD.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Cinzel;font-style:normal;font-display:swap;font-weight:800;src:url(/assets/cinzel-latin-800-normal-CwkMVn6z.woff2)format("woff2"),url(/assets/cinzel-latin-800-normal-69OYDlL6.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--ink:#120e0b;--wood:#231a13;--wood-2:#2f241a;--wood-3:#3d2f22;--brass:#c9a24a;--brass-dim:#7d632c;--parchment:#ecdfc0;--text:#efe4cc;--muted:#a8977a;--good:#8fd46f;--bad:#e8705e;--heading:"Cinzel", "Palatino Linotype", Palatino, Georgia, serif;--body:"Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif}*{box-sizing:border-box}[hidden]{display:none!important}html,body{height:100%;margin:0}body{background:var(--ink);color:var(--text);font-family:var(--body);-webkit-user-select:none;user-select:none;font-size:15px;line-height:1.4;overflow:hidden}#app{height:100%}h1,h2,h3,h4{font-family:var(--heading);letter-spacing:.06em;color:var(--brass);margin:0;font-weight:600}h2{font-size:20px}h3{text-transform:uppercase;margin:14px 0 8px;font-size:14px}h4{text-transform:uppercase;color:var(--muted);margin:12px 0 6px;font-size:12px}p{margin:0 0 8px}small{color:var(--muted);font-size:12px}.muted{color:var(--muted)}.sprite{object-fit:contain;flex:none}canvas{image-rendering:pixelated}.btn{font:inherit;font-family:var(--heading);letter-spacing:.04em;color:var(--text);border:1px solid var(--brass-dim);cursor:pointer;background:linear-gradient(#4a3a2a,#33271c);border-radius:3px;justify-content:center;align-items:center;gap:6px;padding:7px 12px;font-size:13px;display:inline-flex;box-shadow:inset 0 1px #ffffff14,0 1px #000}.btn:hover:not(:disabled){border-color:var(--brass);background:linear-gradient(#584533,#3d2f22)}.btn:active:not(:disabled){transform:translateY(1px)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.primary{color:#1c1408;background:linear-gradient(#e2bd62,#b8902f);border-color:#f0d68c;font-weight:800}.btn.active{border-color:var(--brass);color:var(--brass)}.btn.icon-btn{padding:7px 9px;font-size:16px}.ui-icon{object-fit:contain;vertical-align:-.15em;flex:none;width:1em;height:1em}.btn .ui-icon{font-size:16px}.res{white-space:nowrap;font-variant-numeric:tabular-nums;align-items:center;gap:4px;display:inline-flex}.res .res-icon{object-fit:contain;filter:drop-shadow(0 1px 1px #0009);pointer-events:none;width:1.45em;height:1.45em;margin:-.2em 0}.res.lacking{color:var(--bad)}.cost{flex-wrap:wrap;gap:4px 10px;display:inline-flex}.menu{background:radial-gradient(at 50% 0,#c9a24a29,#0000 60%),linear-gradient(#1b1510,#0d0a08);height:100%;overflow:auto}.menu-inner{text-align:center;max-width:1040px;margin:0 auto;padding:48px 24px 64px}.menu h1{letter-spacing:.16em;color:#e6c36a;text-shadow:0 2px #5a4416,0 6px 24px #000c;font-size:68px;font-weight:800}.menu .subtitle{color:var(--muted);margin-bottom:36px;font-size:18px;font-style:italic}.menu h2{margin-bottom:14px}.faction-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.faction{text-align:left;font:inherit;color:var(--text);background:var(--wood);border:2px solid var(--wood-3);cursor:pointer;border-radius:4px;padding:18px}.faction:hover{border-color:var(--brass-dim)}.faction.active{border-color:var(--brass);background:var(--wood-2);box-shadow:0 0 0 1px var(--brass), 0 8px 30px #00000080}.faction h3{text-transform:none;margin:0;font-size:20px}.faction .tagline{color:var(--muted);font-style:italic}.lineup{background:#0000004d;border-radius:3px;justify-content:space-between;margin:10px 0;padding:8px;display:flex}.lineup span{min-width:0}.lineup img{max-width:100%;height:auto}.menu-options{justify-content:center;gap:32px;margin:28px 0;display:flex}.menu-options label{font-family:var(--heading);text-transform:uppercase;letter-spacing:.08em;color:var(--muted);flex-direction:column;align-items:center;gap:6px;font-size:12px;display:flex}.segmented{display:flex}.segmented button{font:inherit;color:var(--text);background:var(--wood);border:1px solid var(--brass-dim);cursor:pointer;padding:7px 16px}.segmented button+button{border-left:0}.segmented button.active{background:var(--brass);color:#1c1408;font-weight:700}.seed{width:120px;font:inherit;text-align:center;color:var(--text);background:var(--wood);border:1px solid var(--brass-dim);border-radius:3px;padding:7px 10px}.menu-actions{justify-content:center;gap:14px;display:flex}.menu-actions .btn{padding:12px 22px;font-size:15px}.game{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr) 268px;height:100%;display:grid}.stage{background:#0c0a08;position:relative;overflow:hidden}.map{cursor:pointer;touch-action:none;width:100%;height:100%;display:block}.hud{top:calc(8px + env(safe-area-inset-top));left:calc(10px + env(safe-area-inset-left));pointer-events:none;flex-wrap:wrap;gap:6px 8px;display:flex;position:absolute;right:10px}.hud>*{pointer-events:auto}.meta{flex:auto;align-items:center;gap:6px;min-width:0;display:flex}.chip{border:1px solid var(--brass-dim);height:30px;font-family:var(--heading);letter-spacing:.03em;color:var(--parchment);white-space:nowrap;background:#231a13eb;border-radius:15px;align-items:center;gap:5px;padding:0 10px;font-size:12px;display:inline-flex}.chip .ui-icon{font-size:15px}.meta>.chip{flex-shrink:0}.meta>.chip-place{flex-shrink:1;min-width:0}.chip-label{text-overflow:ellipsis;overflow:hidden}.chip-gap{flex:1 1 0;min-width:0}.chip-btn{cursor:pointer;justify-content:center;width:30px;padding:0}.resources{border:1px solid var(--brass-dim);background:#231a13eb;border-radius:15px;flex:320px;justify-content:space-between;align-items:center;gap:4px 12px;min-height:30px;padding:4px 12px;font-size:13px;display:flex}.resources .res small{color:var(--good);font-size:10px}.rail{top:calc(86px + env(safe-area-inset-top));left:calc(10px + env(safe-area-inset-left));scrollbar-width:none;pointer-events:none;flex-direction:column;gap:10px;padding:5px;display:flex;position:absolute;bottom:12px;overflow-y:auto}.rail-group{flex-direction:column;gap:10px;display:flex}.rail button{pointer-events:auto}.avatar{border:2px solid var(--brass-dim);cursor:pointer;background:radial-gradient(#4a3a2a,#1c150f);border-radius:50%;flex:none;width:50px;height:50px;padding:0;position:relative;box-shadow:0 3px 8px #0009}.avatar:before{content:"";background:conic-gradient(var(--good) 0 var(--move,0%), #0000008c var(--move,0%) 100%);border-radius:50%;position:absolute;inset:-6px;-webkit-mask:radial-gradient(circle,#0000 27px,#000 28px);mask:radial-gradient(circle,#0000 27px,#000 28px)}.avatar img{object-fit:cover;border-radius:50%;width:100%;height:100%;transform:scale(1.25)}.avatar.active{box-shadow:0 0 0 2px var(--brass), 0 3px 8px #0009;border-color:#ffe9a0}.avatar.elsewhere,.fab.elsewhere{opacity:.7}.avatar .badge{background:var(--wood);border:1px solid var(--brass);width:21px;height:21px;color:var(--brass);border-radius:50%;place-items:center;font-size:12px;display:grid;position:absolute;bottom:-4px;right:-4px}.fab{border:1px solid var(--brass-dim);width:46px;height:46px;color:var(--brass);cursor:pointer;background:#231a13eb;border-radius:13px;flex:none;place-items:center;margin-left:2px;padding:0;font-size:23px;display:grid;position:relative;box-shadow:0 3px 8px #0009}.fab .dot{background:var(--good);border:2px solid var(--wood);border-radius:50%;width:13px;height:13px;position:absolute;top:-4px;right:-4px}.corner{top:calc(86px + env(safe-area-inset-top));flex-direction:column;align-items:flex-end;gap:8px;display:flex;position:absolute;right:10px}.zoom{border:1px solid var(--brass-dim);background:#231a13eb;border-radius:12px;flex-direction:column;display:flex;overflow:hidden;box-shadow:0 3px 8px #0009}.zoom button{width:40px;height:38px;color:var(--brass);cursor:pointer;background:0 0;border:0;place-items:center;padding:0;font-size:18px;display:grid}.zoom button+button{border-top:1px solid var(--brass-dim)}.minimap-frame{border:1px solid var(--brass-dim);background:#231a13eb;border-radius:10px;padding:2px;line-height:0;box-shadow:0 3px 8px #0009}.minimap{cursor:crosshair;border-radius:7px;width:132px;height:132px}.statusline{border:1px solid var(--brass-dim);text-align:center;pointer-events:none;background:#120e0be0;border-radius:14px;max-width:calc(100% - 24px);padding:5px 14px;font-size:13px;position:absolute;bottom:10px;left:50%;transform:translate(-50%)}.statusline:empty{display:none}.turn-banner{font-family:var(--heading);letter-spacing:.08em;color:var(--parchment);pointer-events:none;background:#781e18e6;border:1px solid #e0685a;border-radius:3px;padding:8px 22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.panel{padding:calc(12px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) 14px;border-left:2px solid var(--brass);background:linear-gradient(90deg,#2f241a,#1c150f);flex-direction:column;gap:10px;display:flex;overflow-y:auto}.selection{flex-direction:column;gap:8px;display:flex}.hero-head{align-items:center;gap:10px;display:flex}.hero-head img{width:50px;height:50px}.hero-head strong{font-family:var(--heading);letter-spacing:.04em;color:var(--brass);font-size:15px;display:block}.meters{flex-direction:column;gap:4px;display:flex}.meter{color:var(--muted);align-items:center;gap:6px;display:flex}.meter .ui-icon{font-size:13px}.meter .track{background:#0d0a08;border-radius:3px;flex:1;height:6px;overflow:hidden}.meter .track span{height:100%;display:block}.meter.move .track span{background:var(--good)}.meter.mana .track span{background:#5a9be8}.meter small{text-align:right;font-variant-numeric:tabular-nums;min-width:74px;font-size:11px}.army{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;display:grid}.stack{border:1px solid var(--brass-dim);background:#17110d;border-radius:8px;place-items:center;height:52px;display:grid;position:relative}.stack.vacant{border-style:dashed;border-color:var(--wood-3)}.stack b{font-variant-numeric:tabular-nums;background:#000000c7;border-radius:3px;padding:0 4px;font-size:11px;position:absolute;bottom:1px;right:2px}.controls{grid-template-columns:repeat(4,1fr);gap:6px;margin-top:auto;display:grid}.tool{height:52px;font:inherit;font-family:var(--heading);letter-spacing:.03em;color:var(--text);border:1px solid var(--brass-dim);cursor:pointer;background:linear-gradient(#4a3a2a,#33271c);border-radius:11px;flex-direction:column;justify-content:center;align-items:center;gap:1px;padding:0;font-size:10px;display:flex}.tool .ui-icon{font-size:20px}.tool.on{border-color:var(--brass);color:var(--brass);box-shadow:inset 0 0 0 1px var(--brass)}.tool:disabled{opacity:.4;cursor:not-allowed}.controls .end-turn{white-space:nowrap;border-radius:12px;grid-column:1/-1;height:52px;padding:0 8px;font-size:14px}@media (orientation:portrait){.game{grid-template-rows:minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr)}.panel{padding:12px 14px calc(12px + env(safe-area-inset-bottom));border-left:0;border-top:2px solid var(--brass);z-index:2;background:linear-gradient(#2f241a,#1c150f);border-radius:22px 22px 0 0;margin-top:-18px;position:relative;overflow:visible;box-shadow:0 -8px 30px #0009}.selection{grid-template-columns:auto 1fr;align-items:center;gap:8px 12px;display:grid}.selection .army{grid-column:1/-1;grid-template-columns:repeat(6,minmax(0,1fr))}.controls{grid-template-columns:repeat(4,50px) minmax(0,1fr)}.controls .end-turn{grid-column:auto}.minimap{width:92px;height:92px}.statusline{bottom:28px}}@media (orientation:landscape) and (height<=520px){.game{grid-template-columns:minmax(0,1fr) 244px}.panel{padding-top:10px;padding-bottom:calc(10px + env(safe-area-inset-bottom));gap:7px}.hero-head img{width:40px;height:40px}.stack{height:42px}.stack img{width:36px;height:36px}.tool,.controls .end-turn{height:44px}.avatar{width:44px;height:44px}.avatar:before{-webkit-mask:radial-gradient(circle,#0000 24px,#000 25px);mask:radial-gradient(circle,#0000 24px,#000 25px)}.fab{width:40px;height:40px;font-size:20px}.minimap{width:84px;height:84px}}.modal-layer{z-index:10;background:#060403b8;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.modal{border:2px solid var(--brass);background:linear-gradient(#2f241a,#231a13);border-radius:4px;width:100%;max-width:520px;max-height:100%;overflow:auto;box-shadow:0 0 0 4px #120e0b,0 20px 60px #000c}.modal.wide{max-width:1020px}.dialog{text-align:center;padding:22px 24px}.dialog-heading{text-align:left;justify-content:center;align-items:center;gap:12px;margin:0 0 14px;display:flex}.dialog-heading h2{overflow-wrap:anywhere;min-width:0;margin:0}.dialog-emblem{border:1px solid var(--brass-dim);width:64px;height:64px;color:var(--brass);background:radial-gradient(circle at 45% 38%,#59412d,#20160f 72%);border-radius:50%;flex:none;place-items:center;font-size:27px;display:grid;box-shadow:inset 0 0 0 3px #1a110c,0 3px 6px #120a08b3}.dialog-art{object-fit:contain;filter:drop-shadow(0 2px 2px #100a08bf);width:54px;height:54px}.dialog-art.map-sprite{transform:translateY(-4px)}.dialog h3{margin-top:12px}.dialog-body .losses{justify-content:center}.dialog-actions{margin-top:16px}.choices{flex-direction:column;gap:8px;margin-top:14px;display:flex}.choice{font:inherit;text-align:left;color:var(--text);background:var(--wood);border:1px solid var(--brass-dim);cursor:pointer;border-radius:3px;align-items:center;gap:14px;padding:12px 14px;display:flex}.choice:hover{border-color:var(--brass);background:var(--wood-3)}.choice-icon{border:1px solid var(--brass-dim);background:radial-gradient(circle at 50% 45%,#4a3a2a,#1c150f 72%);border-radius:3px;flex:none;place-items:center;width:56px;height:56px;transition:border-color .15s,box-shadow .15s;display:grid;box-shadow:inset 0 2px 6px #000000b3}.choice:hover .choice-icon,.choice:focus-visible .choice-icon{border-color:var(--brass);box-shadow:inset 0 2px 6px #000000b3,0 0 10px #c9a24a59}.choice-icon img{object-fit:contain;filter:drop-shadow(0 2px 2px #000000b3);width:46px;height:46px;transition:transform .15s}.choice-icon [data-icon=x]{width:30px;height:30px}.choice:hover .choice-icon img{transform:scale(1.08)}.choice-text strong{font-size:16px}.choice-text small{color:var(--muted)}.choice-trade{grid-template-columns:44px minmax(0,1fr) minmax(100px,max-content);gap:10px;padding:14px 12px;display:grid}.choice-trade .choice-icon{width:44px;height:48px}.choice-trade .choice-icon img{width:40px;height:40px}.choice-trade .choice-text strong{overflow-wrap:anywhere;line-height:1.35}.choice-price{border-left:1px solid var(--brass-dim);white-space:nowrap;flex-direction:column;align-items:flex-end;gap:3px;padding-left:10px;display:flex}.choice-price small{color:var(--muted);font-size:11px}.choice-price-amount{color:var(--brass);font-variant-numeric:tabular-nums;align-items:center;gap:4px;font-size:17px;font-weight:700;display:flex}.choice-price-amount .res-icon{width:26px;height:26px}.choice-price-receive .choice-price-amount{color:#b8d69b}.choice-trade:focus-visible{outline:2px solid var(--brass);outline-offset:3px}@media (prefers-reduced-motion:reduce){.choice-trade .choice-icon,.choice-trade .choice-icon img{transition:none}.choice-trade:hover .choice-icon img{transform:none}}.art-icon{object-fit:contain;filter:drop-shadow(0 1px 2px #000000b3);pointer-events:none;flex:none}.list-item .art-icon{width:36px;height:36px}.xp-row{align-items:center;gap:6px;display:flex}.xp-row .art-icon{width:24px;height:24px}.xp-row .bar{border-style:solid;border-width:3px 8px;border-image:var(--skin-bar) 22 30 fill / 7px 10px / 0 stretch;flex:1;max-width:220px;height:12px;padding:2px 4px}.xp-row .bar span{background:linear-gradient(#bdf0ff,#4fb0e6 55%,#2a78b4);border-radius:2px;min-width:3px;height:100%;display:block;box-shadow:0 0 6px #78c8ff80}.xp-earned{justify-content:center;align-items:center;gap:6px;display:flex}.xp-earned .art-icon{width:28px;height:28px}.choice-text{flex-direction:column;display:flex}.toasts{z-index:30;pointer-events:none;flex-direction:column;gap:6px;display:flex;position:fixed;bottom:44px;left:16px}.toast{border:1px solid var(--brass-dim);border-left:4px solid var(--brass);background:#231a13f5;border-radius:3px;max-width:420px;padding:8px 14px;transition:opacity .5s,transform .5s;box-shadow:0 4px 14px #0009}.toast.good{border-left-color:var(--good)}.toast.bad{border-left-color:var(--bad)}.toast.leaving{opacity:0;transform:translate(-12px)}.store{border:1px solid var(--brass-dim);text-align:left;background:#00000047;border-radius:12px;margin:8px 0 4px;padding:10px 12px}.store-head{font-family:var(--heading);letter-spacing:.04em;justify-content:space-between;align-items:center;font-size:12px;display:flex}.store-head .ui-icon{vertical-align:-3px;margin-right:5px;font-size:17px}.store-meter{border:1px solid var(--wood-3);background:#0d0a08;border-radius:6px;height:12px;margin:8px 0 6px;overflow:hidden}.store-meter span{background:linear-gradient(90deg,#b8902f,#f0d68c);height:100%;display:block}.store p{color:var(--muted);margin:0;font-size:12px}.store.full{border-color:var(--bad)}.store.full p{color:var(--bad)}.store.full .store-meter span{background:linear-gradient(90deg,#a8483c,#e8705e)}.gains{grid-template-columns:1fr 1fr;gap:7px;display:grid}.gain{background:var(--wood);border:1px solid var(--wood-3);text-align:left;border-radius:10px;padding:8px 10px;font-size:17px}.gain .res .res-icon{width:30px;height:30px}.gain .res span{color:var(--good)}.away-events{background:var(--wood);border:1px solid var(--wood-3);max-height:132px;color:var(--muted);text-align:left;border-radius:10px;padding:8px 12px;font-size:13px;overflow-y:auto}.away-events p{margin:0 0 3px}.recruit-note{margin:10px 0 0}.recruit-note .ui-icon{vertical-align:-2px}.screen{flex-direction:column;display:flex}.screen-header{border-bottom:1px solid var(--brass-dim);background:#00000040;align-items:center;gap:16px;padding:14px 18px;display:flex}.screen-title{flex:1}.screen-title p{margin:2px 0 0}.town-art{flex:none;width:144px;height:102px}.purse{grid-template-columns:repeat(3,auto);gap:4px 16px;display:grid}.tabs{border-bottom:1px solid var(--brass-dim);gap:2px;padding:10px 18px 0;display:flex}.tab{font:inherit;font-family:var(--heading);color:var(--muted);cursor:pointer;background:0 0;border:1px solid #0000;border-bottom:0;border-radius:4px 4px 0 0;align-items:center;gap:6px;padding:8px 16px;font-size:13px;display:inline-flex}.tab.active{color:var(--brass);background:var(--wood-3);border-color:var(--brass-dim)}.screen-body{min-height:300px;max-height:46vh;padding:16px 18px;overflow-y:auto}.screen-body.columns{grid-template-columns:1fr 1fr;gap:28px;display:grid}.screen-body.columns h3:first-child{margin-top:0}.screen-footer{border-top:1px solid var(--brass-dim);background:#00000040;padding:12px 18px 16px}.hint{margin:8px 0 0;font-size:12px}.card-grid{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.card-grid.two{grid-template-columns:repeat(2,1fr)}.card{background:var(--wood);border:1px solid var(--wood-3);border-radius:3px;flex-direction:column;gap:6px;padding:10px 12px;display:flex}.card p{margin:0;font-size:13px}.card.built{background:#232a1c;border-color:#4c6b3c}.card.locked{opacity:.72}.card-head{align-items:center;gap:8px;display:flex}.card-head>.ui-icon:first-child{font-size:22px}.card-head strong{flex:1;display:block}.card-head small{display:block}.card.built .ui-icon[data-icon=check-circle]{font-size:18px}.card-foot{justify-content:space-between;align-items:center;gap:8px;margin-top:auto;display:flex}.card-foot.column{flex-direction:column;align-items:stretch}.row{justify-content:space-between;align-items:center;gap:10px;display:flex}.reason{color:var(--bad);font-size:12px!important}.toolbar{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.empty{text-align:center;color:var(--muted);padding:40px;font-style:italic}.slider{width:100%;accent-color:var(--brass)}.total{align-items:center;gap:6px;font-size:13px;display:inline-flex}.market{flex-direction:column;gap:14px;max-width:560px;margin:0 auto;display:flex}.picker{align-items:center;gap:6px;display:flex}.picker>span{width:90px}.pick{width:62px;font:inherit;color:var(--text);background:var(--wood);border:1px solid var(--wood-3);cursor:pointer;border-radius:3px;flex-direction:column;align-items:center;padding:6px 0;display:flex}.pick .ui-icon{font-size:22px}.pick.active{border-color:var(--brass);background:var(--wood-3)}.trade-summary{align-items:center;gap:8px;margin:0;display:flex}.stat-grid{grid-template-columns:1fr 1fr;gap:6px;display:grid}.stat{background:var(--wood);border:1px solid var(--wood-3);border-radius:3px;align-items:center;gap:8px;padding:7px 10px;display:flex}.stat .ui-icon{font-size:18px}.stat span{flex:1}.stat strong{white-space:nowrap}.list{flex-direction:column;gap:6px;display:flex}.list-item{background:var(--wood);border:1px solid var(--wood-3);border-radius:3px;align-items:center;gap:10px;padding:6px 10px;display:flex}.list-item .ui-icon{font-size:20px}.list-item strong,.list-item small{display:block}.army-panel{flex-direction:column;gap:8px;display:flex}.army-row{align-items:center;gap:12px;display:flex}.army-label{width:130px;font-family:var(--heading);color:var(--parchment);font-size:13px}.army-slots{gap:6px;display:flex}.army-slot{width:62px;height:66px;font:inherit;color:var(--text);border:1px solid var(--brass-dim);cursor:pointer;background:#17110d;border-radius:3px;padding:2px;position:relative}.army-slot.empty{border-style:dashed;border-color:var(--wood-3)}.army-slot.selected{box-shadow:0 0 0 2px var(--brass);border-color:#fff0b0}.army-slot .count{font-variant-numeric:tabular-nums;background:#000000bf;border-radius:2px;padding:0 4px;font-size:12px;font-weight:700;position:absolute;bottom:1px;right:2px}.shake{animation:.3s shake}@keyframes shake{25%{transform:translate(-5px)}75%{transform:translate(5px)}}.combat-screen{background:#17110d}.combat-head{border-bottom:1px solid var(--brass-dim);grid-template-columns:1fr auto 1fr;align-items:center;padding:8px 14px;display:grid}.combat-party{align-items:center;gap:8px;display:flex}.combat-party.right{justify-content:flex-end}.swatch{border:1px solid #000;width:12px;height:12px}.combat-round{font-family:var(--heading);color:var(--brass)}.combat-canvas{width:min(100%, calc((100dvh - var(--battle-chrome,220px)) * var(--battle-ratio,1.548)));height:auto;aspect-ratio:var(--battle-aspect,960 / 620);image-rendering:auto;touch-action:manipulation;margin:0 auto;display:block}.combat-foot{border-top:1px solid var(--brass-dim);grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:10px 14px;display:grid}.combat-log{height:86px;color:var(--muted);flex-direction:column;justify-content:flex-end;font-size:12.5px;display:flex;overflow:hidden}.combat-log p{margin:0}.combat-log p:last-child{color:var(--text)}.combat-side{flex-direction:column;justify-content:space-between;align-items:flex-end;gap:8px;display:flex}.combat-hint{min-height:20px;color:var(--parchment);text-align:right;font-size:13px}.combat-actions{gap:6px;display:flex}@media (width<=1000px){.combat-foot{grid-template-columns:minmax(0,1fr)}.combat-log{height:54px}.card-grid{grid-template-columns:repeat(2,1fr)}.faction-grid{grid-template-columns:1fr}}html{-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%}body{overscroll-behavior:none;touch-action:manipulation}@media (width<=640px),(height<=520px){.modal-layer{align-items:flex-end;padding:0}.modal{border-width:2px 0 0;border-radius:22px 22px 0 0;max-width:none;max-height:94%;box-shadow:0 -10px 40px #000000b3}.modal.wide{border:0;border-radius:0;height:100%;max-height:100%}.modal.wide>.screen{min-height:100%}.dialog{padding:18px 18px calc(18px + env(safe-area-inset-bottom))}.dialog-emblem{width:56px;height:56px}.dialog-art{width:48px;height:48px}.dialog-actions .btn{border-radius:12px;width:100%;height:52px;font-size:15px}.screen-header{padding:calc(10px + env(safe-area-inset-top)) 14px 10px;flex-wrap:wrap;gap:10px}.town-art{width:96px;height:68px}.purse{order:3;grid-template-columns:repeat(6,auto);justify-content:space-between;width:100%;font-size:13px}.tabs{padding:8px 10px 0}.tab{flex:1;justify-content:center;padding:9px 4px;font-size:12px}.screen-body{flex:1;min-height:0;max-height:none;padding:12px 14px}.screen-body.columns,.card-grid,.card-grid.two{grid-template-columns:1fr}.screen-footer{padding:10px 14px calc(12px + env(safe-area-inset-bottom))}.army-row{gap:8px}.army-label{width:64px;font-size:11px}.army-slots{flex:1;gap:4px}.army-slot{flex:1;width:auto;height:52px}.army-slot img{object-fit:contain;width:100%;height:100%}.toasts{left:10px;right:10px;bottom:calc(238px + env(safe-area-inset-bottom))}.menu-inner{padding:calc(28px + env(safe-area-inset-top)) 16px 40px}.menu h1{font-size:40px}.menu-options{flex-direction:column;gap:16px}.menu-actions{flex-direction:column}.combat-screen{min-height:100%;padding-top:env(safe-area-inset-top)}.combat-foot{padding:8px 12px calc(10px + env(safe-area-inset-bottom));margin-top:auto}.combat-side{align-items:stretch}.combat-hint{text-align:left}.combat-actions{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;display:grid}.combat-actions .btn{border-radius:11px;flex-direction:column;gap:1px;height:50px;padding:0;font-size:10px}.combat-actions .btn .ui-icon{font-size:20px}}@media (orientation:portrait) and (width<=640px){.combat-canvas{--battle-chrome:214px}.combat-log{height:34px}}@media (orientation:landscape) and (height<=520px){.combat-screen{height:100%;padding-left:env(safe-area-inset-left);grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr) 220px;display:grid}.combat-head{grid-column:1/-1;padding:4px 14px}.combat-canvas{--battle-chrome:44px;align-self:center}.combat-foot{padding:8px calc(10px + env(safe-area-inset-right)) 10px 8px;border-top:0;border-left:1px solid var(--brass-dim);grid-template-columns:minmax(0,1fr);align-content:space-between;margin-top:0}.combat-log{height:auto;max-height:96px}.combat-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.combat-actions .btn{height:44px}.toasts{left:calc(70px + env(safe-area-inset-left));bottom:12px;right:260px}}@media (width<=640px){.combat-head{gap:8px;padding:6px 12px;font-size:13px}.combat-party{white-space:nowrap;gap:5px;min-width:0}.combat-party strong{text-overflow:ellipsis;overflow:hidden}}.tally-screen{width:min(740px,100%);max-height:calc(100dvh - 48px);color:var(--text);flex-direction:column;display:flex}.tally-heading{background:radial-gradient(at 0 0,#9c73352b,#0000 75%);border-bottom:1px solid #8e713e66;flex-shrink:0;align-items:center;gap:18px;padding:24px 26px 18px;display:flex}.eyebrow{letter-spacing:.14em;color:#c8ab73;font-size:10px}.tally-heading h2{margin:3px 0;font-size:clamp(26px,5vw,38px)}.tally-heading p{color:#bdb09a;margin:0;font-size:12px}.tally-seal{color:#e6c781;border:1px solid #c5a15f;border-radius:50%;flex-shrink:0;place-items:center;width:62px;height:62px;font-size:32px;display:grid;box-shadow:inset 0 0 0 5px #211b14,inset 0 0 0 6px #806536}.tally-art{object-fit:contain;width:80%;height:80%}.tally-body{overscroll-behavior:contain;min-height:0;padding:20px 26px;overflow:auto}.tally-totals{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding-bottom:22px;display:grid}.tally-resource{font-variant-numeric:tabular-nums;align-items:center;gap:8px;display:inline-flex}.tally-totals .tally-resource{grid-template-columns:24px 1fr;gap:2px 8px;display:grid}.tally-resource img{width:24px;height:24px}.tally-totals .tally-resource>:first-child{grid-row:span 2;align-self:center}.tally-totals strong{color:#f1dfb7;font-size:24px}.tally-totals small{color:#bdb09a}.tally-body .store{margin:0 0 18px;padding:14px}.tally-body .store p{margin:10px 0 6px}.tally-body .store small{color:#cdbc9c}.tally-recruits{align-items:center;gap:8px;display:flex}.tally-breakdown{border-top:1px solid #8e713e44;margin-top:18px;padding-top:12px}.tally-breakdown h3{color:#d5bb83;margin:0 0 12px;font-size:14px}.tally-breakdown p,.tally-hero{flex-wrap:wrap;align-items:center;gap:10px;margin:10px 0;display:flex}.tally-hero>div{flex-wrap:wrap;gap:12px;display:flex}.tally-hero small{display:none}.tally-footer{background:#18130f;border-top:1px solid #8e713e66;flex-shrink:0;padding:14px 26px 20px}.tally-footer .btn{width:100%;min-height:48px}.tally-footer p:empty{display:none}.steward-welcome{align-items:center;gap:18px;padding:12px 0 18px;display:flex}.steward-welcome>.ui-icon{font-size:42px}.steward-welcome h3{margin:4px 0 8px}.steward-welcome p{color:#bdb09a;max-width:65ch;margin:0}.steward-metrics{border-block:1px solid #8e713e66;grid-template-columns:1fr 1fr;margin-bottom:18px;display:grid}.steward-metrics>div{grid-template-columns:26px 1fr;gap:5px 10px;padding:16px 8px;display:grid}.steward-metrics strong{color:#e7c782;font-size:27px}.steward-metrics .ui-icon{align-self:center;font-size:23px}.steward-metrics span,.steward-metrics small{grid-column:2}.steward-metrics small{color:#bdb09a}.steward-upgrade,.caravan-heading{justify-content:space-between;align-items:center;gap:16px;margin:18px 0;display:flex}.steward-upgrade h3,.caravan-heading h3{margin:0}.caravan-heading h3{align-items:center;gap:8px;display:flex}.caravan-contracts{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.caravan-contract{border:1px solid #80663e;background:linear-gradient(145deg,#392b1b,#1b1712);border-top:3px solid #be9b58;flex-direction:column;gap:8px;padding:16px;display:flex}.caravan-contract h4,.caravan-contract p{margin:0}.caravan-contract .btn{min-height:44px;margin-top:auto}.caravan-return{color:#dec38f}.caravan-running{border-bottom:1px solid #8e713e44;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 0;display:flex}.tab-steward{padding-bottom:24px}.return-options{margin-top:24px}@keyframes tally-arrive{0%{opacity:0;transform:translateY(18px)scale(.97)}65%{opacity:1;transform:translateY(-2px)scale(1.005)}to{transform:none}}@keyframes tally-seal{0%,25%{transform:scale(.82)rotate(-12deg)}65%{transform:scale(1.06)rotate(2deg)}to{transform:none}}.tally-screen{animation:.5s cubic-bezier(.2,.8,.2,1) both tally-arrive}.tally-seal{animation:.65s cubic-bezier(.2,.8,.2,1) both tally-seal}@media (width<=540px){.tally-heading{gap:12px;padding:18px 16px 14px}.tally-body{padding:16px}.tally-footer{padding:12px 16px}.tally-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.caravan-contracts{grid-template-columns:1fr}.caravan-heading,.steward-upgrade{flex-direction:column;align-items:stretch}.steward-metrics small{font-size:11px}}@media (orientation:landscape) and (height<=500px){.tally-screen{max-height:calc(100dvh - 24px)}.tally-heading{padding:10px 22px}.tally-seal{width:42px;height:42px;font-size:24px}.tally-heading h2{font-size:24px}.tally-body{padding:14px 22px}.tally-footer{padding:8px 22px}}@media (prefers-reduced-motion:reduce){.tally-screen,.tally-seal{animation:none}}.modal:has(>.tally-screen){max-width:768px;height:auto;overflow:hidden}.modal-layer:has(.tally-screen){padding:max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left))}.tally-screen{width:100%;max-height:calc(100dvh - 56px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.town-screen .tabs{flex-shrink:0;overflow-x:auto}.town-screen .tab{flex-shrink:0;min-height:44px}.modal:has(>.town-screen>.tab-steward){height:min(850px,100%);overflow:hidden}.town-screen:has(>.tab-steward){height:100%;padding-inline:env(safe-area-inset-left) env(safe-area-inset-right);min-height:0!important}.town-screen:has(>.tab-steward)>.screen-header{flex-shrink:0}.town-screen:has(>.tab-steward)>.screen-footer{display:none}.screen-body.tab-steward{overscroll-behavior:contain;min-height:0;max-height:none;padding-bottom:max(24px, env(safe-area-inset-bottom));flex:1}.steward-preparation{background:radial-gradient(at 0 0,#97713a28,#0000 70%),#201a13;border:1px solid #927341;border-top:3px solid #d0ae6b;margin-bottom:24px;padding:22px}.charter-heading{align-items:center;gap:16px;display:flex}.charter-heading h3{margin:4px 0 8px;font-size:clamp(21px,3vw,28px)}.charter-heading p,.charter-step p,.charter-gathering p,.charter-readiness p{color:#cec0a7;margin:6px 0;line-height:1.5}.charter-seal{border:1px solid #bf995b;border-radius:50%;flex-shrink:0;place-items:center;width:56px;height:56px;display:grid;box-shadow:inset 0 0 0 4px #211b14,inset 0 0 0 5px #806536}.charter-seal .ui-icon{width:32px;height:32px}.charter-progress{align-items:center;gap:12px;margin:20px 0 8px;display:flex}.charter-progress>span{background:#100e0a;flex:1;height:4px;overflow:hidden}.charter-progress>span:after{content:"";height:100%;transform:scaleX(var(--charter-progress));transform-origin:0;background:#cfac69;display:block}.charter-progress small{white-space:nowrap;color:#d2b982}.charter-steps{margin:0;padding:0;list-style:none}.charter-step{border-bottom:1px solid #80653670;grid-template-columns:26px minmax(0,1fr);gap:12px;padding:18px 0;display:grid}.charter-step strong{font-family:var(--font-heading,"Cinzel", serif);color:#f0dab0;font-size:16px}.charter-check{border:1px solid #806536;border-radius:50%;place-items:center;width:24px;height:24px;margin-top:1px;display:grid}.charter-check .ui-icon{width:16px;height:16px}.charter-step.done .charter-check{background:#79613955;border-color:#c7aa72}.charter-action{justify-items:start;gap:8px;margin-top:12px;display:grid}.charter-action small{color:#d8bd88}.steward-preparation .btn{white-space:normal;min-height:44px}.charter-gathering{padding:18px 0}.charter-gathering h4,.charter-readiness h4{align-items:center;gap:8px;margin:0 0 8px;font-size:16px;display:flex}.charter-activity{margin:12px 0;padding:0;list-style:none}.charter-activity li{flex-wrap:wrap;gap:4px 12px;padding:6px 0;display:flex}.charter-activity span{color:#d0c1a5}.charter-readiness{background:#100d0a66;border-left:2px solid #bd995c;padding:16px}.charter-readiness .primary{margin-top:12px}.charter-status{font-size:13px}.charter-status:empty{display:none}.charter-funded{color:#dec38f;align-items:center;gap:8px;font-size:13px;line-height:1.5;display:flex}.expedition-finale>.charter-funded{margin:0 24px}@keyframes charter-stamp{0%{transform:scale(.88)rotate(-8deg)}36%{transform:scale(1.13)rotate(3deg)}62%{transform:scale(.97)}to{transform:none}}@keyframes charter-settle{0%{transform:translateY(4px)}36%{background-color:#9c7e3333;transform:translateY(-1px)}to{background-color:#0000;transform:none}}.charter-complete{animation:.5s cubic-bezier(.2,.8,.2,1) charter-settle}.charter-complete .charter-check,.charter-complete .charter-seal{animation:.5s cubic-bezier(.2,.8,.2,1) charter-stamp}@media (width<=540px){.steward-preparation{padding:16px 12px}.charter-heading{align-items:flex-start;gap:10px}.charter-seal{width:42px;height:42px}.charter-seal .ui-icon{width:26px;height:26px}.charter-step{gap:8px}.charter-action{justify-items:stretch}.charter-readiness{padding:12px}.charter-readiness>.btn{width:100%}}@media (prefers-reduced-motion:reduce){.charter-complete,.charter-complete .charter-check,.charter-complete .charter-seal{animation:none}}.sound-settings{width:min(380px,100%);margin-inline:auto}.sound-settings .dialog-body{flex-direction:column;gap:18px;display:flex}.sound-mute{justify-content:center;width:100%;min-height:48px;font-size:15px}.sound-sliders{flex-direction:column;gap:14px;transition:opacity .2s;display:flex}.sound-sliders.muted{opacity:.45}.sound-row{grid-template-columns:96px 1fr 44px;align-items:center;gap:10px;min-height:44px;display:grid}.sound-label{font-family:var(--heading);letter-spacing:.04em;color:var(--parchment);align-items:center;gap:8px;font-size:13px;display:inline-flex}.sound-label .ui-icon{font-size:18px}.sound-row .slider{height:32px;margin:0}.sound-value{text-align:right;font-variant-numeric:tabular-nums;color:var(--muted);font-size:13px}:root{--skin-wood:url(/assets/wood-CZqMxLmh.webp);--skin-panel:url(/assets/panel-DNFqRKZ0.webp);--skin-gold:url(/assets/button-gold-fh73PDpf.webp);--skin-gold-pressed:url(/assets/button-gold-pressed-CJTmFz_A.webp);--skin-gold-disabled:url(/assets/button-gold-disabled-a1NLa7Fv.webp);--skin-button:url(/assets/button-wood-Bl40pyvA.webp);--skin-button-pressed:url(/assets/button-wood-pressed-ufbabEEd.webp);--skin-pill:url(/assets/pill-DTAGTpKU.webp);--skin-bar:url(data:image/webp;base64,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);--skin-slot:url(/assets/slot-BDQ_-G6d.webp);--skin-ring:url(/assets/frame-round-CSpT4gRN.webp);--skin-parchment:url(/assets/parchment-C7YgiDmk.webp)}.panel,.modal{background-color:#241912;background-image:linear-gradient(#0e0a0761, #0e0a0761), var(--skin-wood);border-style:solid;border-width:14px;border-image:var(--skin-panel) 40 / 14px / 0 stretch;background-size:auto,220px;border-radius:0}.modal{box-shadow:0 18px 50px #000c}@media (orientation:portrait){.panel{border-width:14px 12px 0;border-image-width:14px 12px 0}}.btn,.tool,.fab,.zoom button,.chip-btn{border-style:solid;border-image-source:var(--skin-button);box-shadow:none;text-shadow:0 1px 2px #000000e6;background:0 0;border-image-slice:44 fill;border-image-width:13px;border-radius:0}.btn,.tool{border-width:9px}.btn:hover:not(:disabled),.tool:hover:not(:disabled){filter:brightness(1.12);background:0 0}.btn:active:not(:disabled),.tool:active:not(:disabled),.fab:active,.zoom button:active{border-image-source:var(--skin-button-pressed);transform:translateY(1px)}.tool:disabled,.btn:disabled{filter:grayscale(.6)brightness(.75);opacity:.7}.tool.on{box-shadow:none;filter:brightness(1.25)saturate(1.2)}.btn.primary{border-width:12px 16px;border-image-source:var(--skin-gold);color:#22170a;text-shadow:0 1px #ffecaa99;background:0 0;border-image-slice:36 40 fill;border-image-width:14px 18px}.btn.primary:hover:not(:disabled){background:0 0}.btn.primary:active:not(:disabled){border-image-source:var(--skin-gold-pressed)}.btn.primary:disabled{border-image-source:var(--skin-gold-disabled);color:#2a2620;filter:none}.fab,.zoom button{filter:drop-shadow(0 3px 5px #0009);border-width:8px}.zoom{box-shadow:none;background:0 0;border:0;gap:4px;overflow:visible}.zoom button+button{border-top-width:8px}.chip{border-style:solid;border-width:5px 8px;border-image:var(--skin-pill) 34 34 fill / 15px / 0 stretch;text-shadow:0 1px 2px #000000e6;background:0 0;border-radius:0;padding:0 2px}.chip-btn{border-width:7px;border-image-slice:44 fill;border-image-width:11px;flex:none}.resources{border-style:solid;border-width:6px 12px;border-image:var(--skin-bar) 22 30 fill / 13px 16px / 0 stretch;text-shadow:0 1px 2px #000000e6;background:0 0;border-radius:0}.minimap-frame{border-style:solid;border-width:7px;border-image:var(--skin-slot) 30 / 9px / 0 stretch;background:#0c0a08;border-radius:0;padding:0}.stack{border-style:solid;border-width:6px;border-image:var(--skin-slot) 30 fill / 9px / 0 stretch;background:0 0;border-radius:0}.stack.vacant{opacity:.55;border-style:solid}.avatar{background:radial-gradient(#4a3a2a,#1c150f);border:0}.avatar:after{content:"";background:var(--skin-ring) center / contain no-repeat;pointer-events:none;position:absolute;inset:-5px}.avatar.active:after{filter:brightness(1.35)drop-shadow(0 0 4px #ffdc78cc)}.toast{color:#2b1d10;border-style:solid;border-width:8px 12px;border-image:var(--skin-parchment) 20 26 fill / 8px 12px / 0 stretch;text-shadow:none;background:0 0;border-radius:0}.toast.good,.toast.bad{border-left-width:12px}.menu{background:linear-gradient(#0c090626,#0c09068c 45%,#0c0906eb),url(/assets/title-wide-DIaIg_rL.webp) top/cover no-repeat,#0d0a08}@media (orientation:portrait){.menu{background:linear-gradient(#0c09061a,#0c090680 40%,#0c0906eb),url(/assets/title-tall-CjKCzT87.webp) top/cover no-repeat,#0d0a08}}.menu h1{text-shadow:0 3px #1a120a,0 0 24px #000000d9,0 0 60px #ffc86e59}.menu .subtitle{text-shadow:0 1px 3px #000000f2}.combat-head,.combat-foot,.screen-header{background-color:#1d1510;background-image:linear-gradient(#0a07058c, #0a07058c), var(--skin-wood);background-size:auto,220px}.town-art.painted{object-fit:contain;image-rendering:auto;filter:drop-shadow(0 4px 6px #0009);width:92px;height:92px;margin:-10px 0}.menu h1.title-logo img{filter:drop-shadow(0 6px 14px #000000b3);width:min(520px,86vw);height:auto}@media (orientation:landscape) and (height<=520px){.menu h1.title-logo img{width:auto;height:min(190px,46vh)}}.menu{overflow:hidden}.title-screen{height:100%;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);flex-direction:column;display:flex;position:relative}.title-screen h2,.title-screen h3,.tap-prompt,.nc-prompt,.title-btn:not(.primary) .title-btn-label,.slot-text strong{color:#f6cf55;-webkit-text-stroke:4px #3a2208;paint-order:stroke fill;text-shadow:0 3px 3px #0009;font-family:var(--heading);letter-spacing:.06em;font-weight:800}.menu h1.title-logo{text-shadow:none;margin:0;line-height:0}.menu h1.title-logo img{object-fit:contain;filter:drop-shadow(0 6px 14px #000000b3);width:min(400px,88vw);height:auto;max-height:40vh}.title-splash{cursor:pointer;background:radial-gradient(at 50% 45%,#0000 30%,#0806048c 100%);justify-content:center;align-items:center;gap:18px}.menu .title-splash h1.title-logo img{width:min(460px,92vw);max-height:52vh}.tap-prompt{letter-spacing:.14em;margin:0;font-size:22px;animation:1.8s ease-in-out infinite tap-pulse}.title-maker{bottom:calc(18px + env(safe-area-inset-bottom));text-align:center;font-family:var(--heading);letter-spacing:.12em;color:var(--parchment);text-shadow:0 1px 3px #000,0 0 10px #000;margin:0;font-size:12px;position:absolute;left:0;right:0}@keyframes tap-pulse{0%,to{opacity:.7;transform:scale(.97)}50%{opacity:1;transform:scale(1.03)}}.title-main{background:linear-gradient(#0000 40%,#0a07058c 70%,#0a0705d9);align-items:center}.title-hero{flex:1;justify-content:center;align-items:center;min-height:0;padding-top:12px;display:flex}.title-stack{flex-direction:column;gap:10px;width:min(330px,100vw - 40px);padding-bottom:28px;animation:.5s ease-out both title-rise;display:flex}.title-btn{letter-spacing:.06em;filter:drop-shadow(0 4px 6px #0000008c);gap:12px;width:100%;min-height:58px;padding:4px 16px;font-size:19px}.title-btn.btn{border-width:12px;border-image-width:14px}.title-btn.btn.primary{border-width:12px 16px;border-image-width:14px 18px;min-height:64px}.title-btn>.ui-icon{filter:drop-shadow(0 1px 1px #000);font-size:22px}.title-btn.primary>.ui-icon{filter:none}.title-btn-text{flex-direction:column;align-items:flex-start;min-width:0;line-height:1.15;display:flex}.title-btn-label{font-weight:800}.title-btn-text small{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-family:var(--body);letter-spacing:0;color:inherit;opacity:.85;font-size:12.5px;font-style:italic;overflow:hidden}.title-btn.primary .title-btn-label{color:#2a1a08}.title-minor{grid-template-columns:1fr 1fr;gap:10px;display:grid}.title-btn.minor{gap:8px;min-height:48px;font-size:15px}.title-btn.minor>.ui-icon{font-size:18px}@keyframes title-rise{0%{opacity:0;transform:translateY(14px)}}@media (prefers-reduced-motion:reduce){.tap-prompt,.title-stack{animation:none}}.title-sub{background:linear-gradient(#0a070599,#0a0705d1)}.title-head{flex:none;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:10px 14px 6px;display:grid}.title-head h2{white-space:nowrap;grid-column:2;margin:0;font-size:22px}.btn.title-back{grid-column:1;justify-self:start;gap:2px;min-height:44px;padding:2px 10px 2px 4px;font-size:14px}.title-back .ui-icon{font-size:18px}.title-body{flex-direction:column;flex:1;align-items:center;gap:12px;min-height:0;padding:10px 16px 20px;display:flex;overflow-y:auto}.title-panel,.nc-showcase,.nc-advanced{color:var(--text);background-color:#241912;background-image:linear-gradient(#0e0a0766, #0e0a0766), var(--skin-wood);border-style:solid;border-width:14px;border-image:var(--skin-panel) 40 / 14px / 0 stretch;background-size:auto,220px;box-shadow:0 10px 26px #0000008c}.title-panel{width:min(460px,100%);padding:4px 6px 8px}.title-panel h3{text-transform:none;align-items:center;gap:8px;margin:0 0 14px;font-size:17px;display:flex}.sound-controls{flex-direction:column;gap:18px;display:flex}.credits-scroll{border-style:solid;border-width:12px 18px;border-image:var(--skin-parchment) 20 26 fill / 12px 18px / 0 stretch;color:#3a2810;text-align:center;filter:drop-shadow(0 6px 10px #0009);width:min(500px,100%);padding:14px 20px;font-size:15px;line-height:1.45}.credits-scroll p{margin:0 0 10px}.credits-lead{font-family:var(--heading);letter-spacing:.08em;color:#5a3a10;font-size:22px;font-weight:800}.credits-small{color:#5b4526;font-size:12.5px;font-style:italic}.credits-thanks{font-family:var(--heading);letter-spacing:.06em;font-size:14px}.slot-list{flex-direction:column;gap:10px;width:min(560px,100%);display:flex}.slot-card{align-items:stretch;gap:8px;display:flex}.slot-main{min-width:0;min-height:96px;font:inherit;text-align:left;color:var(--text);background-color:#241912;background-image:linear-gradient(#0e0a0759, #0e0a0759), var(--skin-wood);border-style:solid;border-width:12px;border-image:var(--skin-panel) 40 / 12px / 0 stretch;background-size:auto,220px;flex:1;align-items:center;gap:12px;padding:4px 6px;display:flex;box-shadow:0 8px 20px #00000080}button.slot-main{cursor:pointer}button.slot-main:hover{filter:brightness(1.1)}button.slot-main:active{transform:translateY(1px)}.slot-empty .slot-main,.slot-damaged .slot-main{filter:brightness(.75)saturate(.7)}.slot-crest{width:60px;height:60px;color:var(--brass);flex:none;place-items:center;font-size:30px;display:grid}.slot-crest .crest{object-fit:contain;filter:drop-shadow(0 3px 4px #0009);width:60px;height:60px}.slot-empty .slot-crest{border:2px dashed var(--brass-dim);border-radius:50%;width:52px;height:52px;font-size:24px}.slot-text{flex-direction:column;flex:1;gap:1px;min-width:0;line-height:1.25;display:flex}.slot-number{font-family:var(--heading);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-size:11px}.slot-text strong{-webkit-text-stroke-width:3px;font-size:18px}.slot-text strong em{font-family:var(--body);letter-spacing:0;color:var(--parchment);-webkit-text-stroke:0;font-size:13px;font-style:italic;font-weight:400}.slot-text small{text-overflow:ellipsis;white-space:nowrap;color:var(--parchment);font-size:13px;overflow:hidden}.slot-text small.slot-when{color:var(--muted);font-style:italic}.slot-go{color:#f6cf55;filter:drop-shadow(0 1px 2px #000);flex:none;font-size:26px}.slot-delete-space{flex:none;width:52px}.btn.slot-delete{color:#f0a08f;flex:none;align-self:center;width:52px;height:52px;padding:0;font-size:20px}.nc-body{flex-direction:column;flex:1;justify-content:space-between;gap:10px;min-height:0;padding:4px 16px 8px;display:flex;overflow-y:auto}.nc-side{display:contents}.nc-pick{order:1}.nc-showcase{order:2}.nc-settings{order:3}.nc-prompt{text-align:center;letter-spacing:.08em;-webkit-text-stroke-width:3px;margin:0 0 4px;font-size:15px}.nc-crests{grid-template-columns:repeat(3,1fr);gap:6px;display:grid}.nc-crest{font:inherit;color:var(--muted);cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:0;flex-direction:column;align-items:center;gap:2px;padding:6px 2px 4px;display:flex}.nc-crest .crest{object-fit:contain;filter:grayscale(.55)brightness(.62)drop-shadow(0 3px 4px #000000b3);width:76px;height:76px;transition:filter .2s,transform .2s}.nc-crest-name{font-family:var(--heading);letter-spacing:.04em;text-shadow:0 1px 2px #000;font-size:13px;font-weight:600}.nc-crest.active{color:#f6cf55;background:radial-gradient(at 50% 42%,#ffc45052,#0000 66%)}.nc-crest.active .crest{filter:drop-shadow(0 0 10px #ffc450bf)drop-shadow(0 3px 4px #000000b3);transform:scale(1.1)}.nc-crest.active .nc-crest-name{font-weight:800}.nc-showcase{flex-direction:column;gap:6px;padding:0 4px 2px;display:flex}.nc-banner{align-items:center;gap:10px;display:flex}.nc-town{object-fit:contain;filter:drop-shadow(0 4px 6px #0009);flex:none;width:92px;height:92px;margin:-6px -4px -8px -8px}.nc-name{min-width:0}.nc-name h3{text-transform:none;margin:0;font-size:23px}.nc-tagline{color:#d8c49a;margin:2px 0 0;font-size:14.5px;font-style:italic}.nc-parade{border-style:solid;border-width:6px;border-image:var(--skin-slot) 30 fill / 9px / 0 stretch;flex:none;height:clamp(96px,29vh,250px)}.unit-parade{image-rendering:auto;width:100%;height:100%;display:block}.nc-description{margin:0;font-size:14.5px;line-height:1.4}.nc-perk{flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:0;font-size:14px;line-height:1.4;display:flex}.nc-perk .ui-icon{align-self:center}.nc-adv-toggle{width:100%;min-height:48px;font:inherit;color:var(--text);border-style:solid;border-width:8px 10px;border-image:var(--skin-pill) 34 34 fill / 15px / 0 stretch;cursor:pointer;text-shadow:0 1px 2px #000;background:0 0;align-items:center;gap:10px;padding:0 4px;display:flex}.nc-adv-title{font-family:var(--heading);color:var(--parchment);flex:none;align-items:center;gap:6px;font-size:13px;font-weight:600;display:inline-flex}.nc-adv-summary{text-overflow:ellipsis;white-space:nowrap;text-align:right;min-width:0;color:var(--muted);flex:1;font-size:13px;font-style:italic;overflow:hidden}.nc-advanced{flex-direction:column;gap:10px;margin-top:8px;padding:2px 4px 4px;display:flex}.nc-advanced[hidden]{display:none}.nc-field{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 10px;display:flex}.nc-label{white-space:nowrap;font-family:var(--heading);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-size:12px}.nc-mode-note{color:#d8c49a;margin:-4px 0 0;font-size:12.5px;font-style:italic}.nc-advanced .segmented{gap:4px}.nc-advanced .segmented button{min-height:40px;font-family:var(--heading);color:var(--text);border-style:solid;border-width:7px;border-image:var(--skin-button) 44 fill / 11px / 0 stretch;text-shadow:0 1px 2px #000;background:0 0;padding:0 10px;font-size:12.5px}.nc-advanced .segmented button+button{border-left-width:7px}.nc-advanced .segmented button.active{color:#22170a;border-width:7px 9px;border-image:var(--skin-gold) 36 40 fill / 11px 13px / 0 stretch;text-shadow:0 1px #ffecaa99;font-weight:800}.nc-seed{align-items:center;gap:4px;display:flex}.nc-advanced .seed{width:96px;height:40px;font-family:var(--heading);-webkit-user-select:text;user-select:text;border-style:solid;border-width:5px;border-image:var(--skin-slot) 30 / 7px / 0 stretch;background:#120d09;border-radius:0;font-size:15px}.btn.nc-reroll{width:44px;height:44px;padding:0;font-size:20px}.nc-foot.menu-actions{flex-direction:column;flex:none;align-items:center;gap:4px;padding:8px 16px 14px;display:flex}.nc-slot-note{color:var(--parchment);text-shadow:0 1px 2px #000;font-style:italic}.btn.primary.nc-begin{letter-spacing:.1em;filter:drop-shadow(0 4px 8px #0009);gap:10px;width:min(340px,100%);min-height:62px;font-size:21px;font-weight:800}.nc-begin .ui-icon{font-size:22px}@media (orientation:landscape){.title-main{background:linear-gradient(90deg,#0000 35%,#0a070580 65%,#0a0705bf);flex-direction:row;justify-content:center;gap:3vw}.title-hero{flex:0 auto;padding:0}.menu .title-main h1.title-logo img{width:auto;max-width:52vw;height:min(330px,80vh);max-height:none}.title-stack{justify-content:center;padding:0}.title-new{grid-template:"head head""show side"minmax(0,1fr)"show foot"/minmax(0,1fr) minmax(270px,330px);column-gap:14px;display:grid}.title-new .title-head{grid-area:head}.title-new .nc-body{display:contents}.title-new .nc-showcase{grid-area:show;align-self:stretch;min-height:0;margin:0 0 12px 16px;overflow-y:auto}.title-new .nc-side{flex-direction:column;grid-area:side;gap:8px;min-height:0;padding-right:16px;display:flex;overflow-y:auto}.title-new .nc-foot{grid-area:foot;padding:6px 16px 12px 0}}@media (height<=520px){.title-head{padding:6px 14px 2px}.title-head h2{font-size:19px}.btn.title-back{min-height:40px}.title-stack{gap:7px}.title-btn{min-height:50px;font-size:17px}.title-btn.btn.primary{min-height:56px}.title-btn.minor{min-height:44px}.title-splash{gap:6px}.menu .title-splash h1.title-logo img{width:auto;height:min(300px,64vh);max-height:none}.nc-crest .crest{width:58px;height:58px}.nc-town{width:76px;height:76px}.title-new .nc-parade{flex:1;height:auto;min-height:84px}.btn.primary.nc-begin{min-height:54px;font-size:19px}.slot-main{min-height:82px}.slot-crest,.slot-crest .crest{width:50px;height:50px}}.title-body>:first-child{margin-top:auto}.title-body>:last-child{margin-bottom:auto}.screen-body.tab-build{padding-top:12px}.town-screen .tab{min-width:max-content}.town-screen .tab-garrison{min-height:300px}.garrison-heading{margin-bottom:22px}.garrison-heading h3{color:var(--brass);margin:0 0 8px}.garrison-status{color:var(--muted);margin:0}.tab-garrison .army-panel{gap:20px}.tab-garrison .army-row{flex-direction:column;align-items:stretch;gap:8px}.tab-garrison .army-label{width:auto;font-size:14px}.tab-garrison .army-slots{grid-template-columns:repeat(6,minmax(0,1fr));display:grid}.tab-garrison .army-slot{width:100%;min-width:0;height:72px}.tab-garrison .army-slot img{object-fit:contain;max-width:100%}.tab-garrison .hint{max-width:540px;margin-top:22px;line-height:1.5}.quantity-control{width:100%;min-width:0}.quantity-control label{color:var(--muted);justify-content:space-between;align-items:center;gap:12px;font-size:13px;display:flex}.quantity-input{border:1px solid var(--brass-dim);width:112px;min-height:44px;color:var(--text);font:inherit;font-variant-numeric:tabular-nums;text-align:right;background:#17110d;border-radius:4px;padding:8px}.quantity-control .slider{min-height:44px;margin:0;display:block}.quantity-input:focus-visible,.quantity-control .slider:focus-visible,.town-screen .tab:focus-visible,.tab-garrison .army-slot:focus-visible{outline-offset:2px;outline:2px solid #fff0b6}.recruit .card-foot>.row{flex-wrap:wrap;gap:10px}.recruit .card-foot>.row .primary{min-height:44px;margin-left:auto}@media (width<=640px),(height<=520px){.town-screen .tab-garrison{min-height:0}.tab-garrison .army-slot{height:58px}.tab-garrison .army-slot .count{padding-inline:2px;font-size:11px}.town-screen .screen-body{padding-bottom:max(20px, env(safe-area-inset-bottom))}}.build-layout{flex-direction:column;gap:16px;display:flex}.town-overview{border-style:solid;border-width:9px;border-image:var(--skin-slot) 30 fill / 9px / 0 stretch;background:radial-gradient(at 22% 40%,#ffc45c29,#0000 62%);grid-template-columns:148px minmax(0,1fr);grid-template-areas:"banner banner""picture info""next next""daily daily";align-items:center;gap:10px 12px;padding:10px 12px 12px;display:grid;position:relative}.overview-picture{grid-area:picture;place-items:center;height:118px;display:grid;position:relative}.overview-art{z-index:1;object-fit:cover;object-position:50% 100%;filter:drop-shadow(0 6px 8px #000000a6);width:152px;height:118px;position:relative}canvas.overview-art{width:112px;height:80px}.overview-info{flex-direction:column;grid-area:info;gap:12px;min-width:0;display:flex}.stage-track{margin:0;padding:0;list-style:none;display:flex}.stage-step{flex-direction:column;flex:1;align-items:center;gap:4px;min-width:0;display:flex;position:relative}.stage-step+.stage-step:before{content:"";background:#3a2c1f;width:100%;height:3px;position:absolute;top:11px;right:50%;box-shadow:0 1px #0009}.stage-step.reached+.stage-step.reached:before{background:linear-gradient(90deg,#b8902f,#f0cd76)}.stage-dot{z-index:1;border:2px solid var(--brass-dim);color:#1c1408;background:#17110d;border-radius:50%;place-items:center;width:24px;height:24px;font-size:13px;display:grid;position:relative}.stage-step.reached .stage-dot{background:radial-gradient(circle at 35% 30%,#ffe9a6,#d1a23a 60%,#8a6420);border-color:#f6dc8c}.stage-step.current .stage-dot{box-shadow:0 0 0 3px #ffd26e40,0 0 12px #ffc450bf}.stage-name{font-family:var(--heading);letter-spacing:.04em;color:var(--muted);white-space:nowrap;font-size:11px}.stage-step.current .stage-name{color:#f6cf55;font-weight:800}.build-progress{flex-direction:column;gap:3px;display:flex}.progress-bar{border-style:solid;border-width:3px 8px;border-image:var(--skin-bar) 22 30 fill / 7px 10px / 0 stretch;height:14px;padding:3px 5px}.progress-bar span{background:linear-gradient(#ffe08a,#d39b2a 55%,#a8741c);border-radius:2px;min-width:4px;height:100%;transition:width .9s cubic-bezier(.3,1.3,.5,1) .25s;display:block;box-shadow:0 0 6px #ffc85a99}.build-progress small{font-size:12px}.next-stage{min-height:48px;font:inherit;color:var(--text);text-align:left;border-style:solid;border-width:8px;border-image:var(--skin-button) 44 fill / 11px / 0 stretch;cursor:pointer;background:0 0;grid-area:next;align-items:center;gap:10px;margin:0;padding:4px 6px;display:flex}.next-stage:active{border-image-source:var(--skin-button-pressed)}.next-stage.ready{filter:drop-shadow(0 0 6px #ffc4508c)}.next-label{font-family:var(--heading);color:#f6cf55;white-space:nowrap;flex:none;align-items:center;gap:6px;font-size:13px;font-weight:800;display:inline-flex}.next-needs{flex:1;min-width:0;font-size:13px}.next-stage.complete{font-family:var(--heading);color:#f6cf55;cursor:default;justify-content:center}.daily{border-style:solid;border-width:5px 10px;border-image:var(--skin-pill) 34 34 fill / 12px / 0 stretch;grid-area:daily;align-items:center;gap:8px;margin:0;padding:2px 8px;font-size:13px;display:flex}.daily .ui-icon{font-size:18px}.daily strong{color:var(--parchment)}.daily.resting strong{color:#c9d8f8}.build-groups{flex-direction:column;gap:14px;min-width:0;display:flex}.build-group h3{align-items:center;gap:8px;margin:0 0 8px;font-size:13px;display:flex}.build-group h3:after{content:"";background:linear-gradient(90deg, var(--brass-dim), transparent);flex:1;height:1px}.build-group h3 small{font-family:var(--body);letter-spacing:0;text-transform:none;order:2;font-size:12px}.build-group h3 .ui-icon{font-size:17px}.build-grid{perspective:700px;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px;display:grid}.build-tile{min-width:0;min-height:128px;font:inherit;color:var(--text);text-align:center;border-style:solid;border-width:7px;border-image:var(--skin-slot) 30 fill / 9px / 0 stretch;cursor:pointer;background:0 0;flex-direction:column;align-items:center;gap:3px;padding:6px 4px 4px;transition:transform .12s;display:flex;position:relative}.build-tile:active{transform:scale(.96)}.build-tile:focus-visible{outline-offset:2px;outline:2px solid #f6cf55}.tile-art{flex:none;place-items:center;width:60px;height:58px;display:grid;position:relative}.building-icon{object-fit:contain;filter:drop-shadow(0 3px 3px #0009);width:56px;height:56px}.tile-badge{z-index:1;border:2px solid #1a120b;border-radius:50%;place-items:center;width:22px;height:22px;font-size:12px;display:grid;position:absolute;top:-4px;right:-8px;box-shadow:0 1px 3px #000000b3}.tile-name{font-family:var(--heading);letter-spacing:.02em;color:var(--parchment);overflow-wrap:anywhere;font-size:11.5px;font-weight:600;line-height:1.15}.tile-foot{justify-content:center;margin-top:auto;font-size:12px;line-height:1.25;display:flex}.tile-foot .cost,.next-needs .cost{justify-content:center;gap:1px 7px}.next-needs .cost{justify-content:flex-start}.tile-foot .res .res-icon,.next-needs .res .res-icon{width:1.3em;height:1.3em}.needs.short{flex-wrap:wrap;justify-content:center;align-items:center;gap:0 5px;display:inline-flex}.next-needs .needs.short{justify-content:flex-start}.needs.short small{color:var(--bad);font-size:11px}.needs.locked,.tile-note.bad{color:#e99a86;font-size:11.5px}.tile-note.good{color:var(--good);font-family:var(--heading);font-size:11px}.build-tile.ready{filter:drop-shadow(0 0 5px #ffc450bf)}.build-tile.ready .tile-badge{color:#22170a;background:radial-gradient(circle at 35% 30%,#ffe9a6,#d1a23a 60%,#8a6420);animation:1.8s ease-in-out infinite badge-pulse}.build-tile.built .tile-badge{color:#d8f5c8;background:#2f6b2a}.build-tile.built .tile-name{color:#d9ebc9}.build-tile.locked .building-icon{filter:grayscale()brightness(.5)drop-shadow(0 3px 3px #0009)}.build-tile.locked .tile-name{color:var(--muted)}.build-tile.locked .tile-badge{color:#c9b48a;background:#2a211a}.build-tile.short .building-icon{filter:saturate(.45)brightness(.8)drop-shadow(0 3px 3px #0009)}.build-tile.short .tile-badge{color:#f2b0a2;background:#4a2018}.build-tile.waiting .tile-badge{color:#c9d8f8;background:#23324f}@keyframes badge-pulse{0%,to{transform:scale(1);box-shadow:0 1px 3px #000000b3}50%{transform:scale(1.12);box-shadow:0 0 10px #ffd26ee6}}.build-tile.just-built{z-index:2;animation:.75s cubic-bezier(.2,.9,.3,1.2) both tile-flip,1.8s ease-out .2s both tile-glow}@keyframes tile-flip{0%{transform:rotateY(-180deg)scale(.9)}to{transform:rotateY(0)scale(1)}}@keyframes tile-glow{0%{filter:brightness(1.8)drop-shadow(0 0 14px #ffd678)}to{filter:brightness()drop-shadow(0 0 #ffd67800)}}.spark-burst{pointer-events:none;width:0;height:0;position:absolute;top:34px;left:50%}.spark{opacity:0;width:8px;height:8px;animation:spark-fly .95s ease-out var(--delay,0s) both;background:radial-gradient(circle,#fff6c8,#f2c14e 55%,#f2c14e00);border-radius:50%;position:absolute;top:-4px;left:-4px}.spark.star{clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);background:#fff1b0;border-radius:0;width:14px;height:14px;top:-7px;left:-7px}@keyframes spark-fly{0%{opacity:1;transform:translate(0)scale(.4)rotate(0)}70%{opacity:1}to{opacity:0;transform:translate(var(--dx), var(--dy)) scale(1) rotate(90deg)}}.tile-ribbon{z-index:2;font-family:var(--heading);color:#3a2810;white-space:nowrap;border-style:solid;border-width:5px 10px;border-image:var(--skin-parchment) 20 26 fill / 6px 10px / 0 stretch;filter:drop-shadow(0 3px 4px #000000b3);pointer-events:none;padding:1px 10px;font-size:13px;font-weight:800;animation:2.2s ease-out .35s both ribbon-pop;position:absolute;top:38px;left:50%}@keyframes ribbon-pop{0%{opacity:0;transform:translate(-50%,6px)scale(.4)}14%{opacity:1;transform:translate(-50%)scale(1.15)}24%,78%{opacity:1;transform:translate(-50%)scale(1)}to{opacity:0;transform:translate(-50%,-10px)scale(1)}}.overview-picture.stage-up .overview-art{animation:1.3s cubic-bezier(.2,.9,.3,1.3) both stage-pop}@keyframes stage-pop{0%{filter:brightness(2.2)drop-shadow(0 0 18px #ffdc82);transform:scale(.75)}45%{transform:scale(1.12)}to{filter:brightness()drop-shadow(0 6px 8px #000000a6);transform:scale(1)}}.stage-rays{background:repeating-conic-gradient(#ffd6788c 0 10deg, transparent 10deg 30deg);pointer-events:none;border-radius:50%;animation:3.2s ease-out both rays;position:absolute;inset:-18px;-webkit-mask:radial-gradient(circle,#000 25%,#0000 70%);mask:radial-gradient(circle,#000 25%,#0000 70%)}@keyframes rays{0%{opacity:0;transform:rotate(0)scale(.6)}20%{opacity:1}to{opacity:0;transform:rotate(80deg)scale(1.15)}}.stage-banner{font-family:var(--heading);color:#3a2810;border-style:solid;border-width:8px 14px;border-image:var(--skin-parchment) 20 26 fill / 8px 14px / 0 stretch;filter:drop-shadow(0 4px 6px #0009);grid-area:banner;justify-self:center;align-items:center;gap:8px;padding:2px 16px;font-size:15px;font-weight:800;animation:.7s cubic-bezier(.2,.9,.3,1.3) .2s both banner-drop;display:inline-flex}@keyframes banner-drop{0%{opacity:0;transform:translateY(-14px)scale(.85)}to{opacity:1;transform:none}}.sheet-layer .modal{animation:.22s ease-out both sheet-up}@keyframes sheet-up{0%{opacity:0;transform:translateY(40px)}to{opacity:1;transform:none}}.build-sheet{padding:18px 18px calc(18px + env(safe-area-inset-bottom));flex-direction:column;gap:14px;display:flex;position:relative}.sheet-close{z-index:1;width:44px;height:44px;position:absolute;top:8px;right:8px}.sheet-about,.sheet-deal{flex-direction:column;gap:12px;min-width:0;display:flex}.sheet-head{align-items:center;gap:14px;padding-right:44px;display:flex}.sheet-art{border-style:solid;border-width:8px;border-image:var(--skin-slot) 30 fill / 9px / 0 stretch;background:radial-gradient(circle,#ffc45c38,#0000 70%);flex:none;place-items:center;width:108px;height:108px;display:grid}.sheet-art .building-icon{width:88px;height:88px}.build-sheet.locked .sheet-art .building-icon{filter:grayscale()brightness(.55)}.sheet-kind{font-family:var(--heading);letter-spacing:.1em;text-transform:uppercase;font-size:11px;display:block}.sheet-head h2{color:#f6cf55;-webkit-text-stroke:4px #3a2208;paint-order:stroke fill;margin:2px 0 6px;font-size:21px;font-weight:800;line-height:1.15}.state-badge{border-style:solid;border-width:4px 9px;border-image:var(--skin-pill) 34 34 fill / 11px / 0 stretch;align-items:center;gap:5px;padding:0 4px;font-size:13px;display:inline-flex}.sheet-desc{color:var(--parchment);margin:0;font-size:16px;line-height:1.45}.sheet-unit{margin:-4px 0 0;font-size:13px}.stage-note{color:#f2dfae;background:#ffc45c1a;border-left:3px solid #d1a23a;gap:8px;margin:0;padding:8px 10px;font-size:14px;display:flex}.stage-note .ui-icon{flex:none;margin-top:2px}.sheet-section h4{margin:0 0 6px}.sheet-cost{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:6px;display:grid}.cost-item{border-style:solid;border-width:6px;border-image:var(--skin-slot) 30 fill / 8px / 0 stretch;grid-template-rows:auto auto;grid-template-columns:auto auto;justify-content:start;align-items:center;column-gap:6px;padding:2px 4px;display:grid}.cost-item .res-icon{object-fit:contain;filter:drop-shadow(0 2px 2px #0009);grid-row:span 2;width:28px;height:28px}.cost-item b{font-variant-numeric:tabular-nums;font-size:17px;line-height:1.1}.cost-item small{white-space:nowrap;font-size:11.5px;line-height:1.1}.cost-item.lacking b,.cost-item.lacking small{color:var(--bad)}.cost-item.lacking{background:#e8705e1f}.chip-list{flex-wrap:wrap;gap:6px;display:flex}.building-chip{min-height:40px;font:inherit;color:var(--text);border-style:solid;border-width:5px 10px;border-image:var(--skin-pill) 34 34 fill / 13px / 0 stretch;cursor:pointer;background:0 0;align-items:center;gap:6px;padding:0 4px;font-size:13px;display:inline-flex}.building-chip .building-icon{width:28px;height:28px}.building-chip.missing span{color:#f2b0a2}.sheet-actions{z-index:1;background-color:#241912;background-image:linear-gradient(#0e0a0761, #0e0a0761), var(--skin-wood);background-size:auto,220px;flex-direction:column;gap:8px;margin:2px -6px 0;padding:8px 6px 2px;display:flex;position:sticky;bottom:0;-webkit-mask-image:linear-gradient(#0000,#000 8px);mask-image:linear-gradient(#0000,#000 8px)}.btn.build-now{letter-spacing:.08em;width:100%;min-height:58px;font-size:18px}.btn.build-now .ui-icon{font-size:20px}.btn.build-now:disabled{font-size:15px}.sheet-rule{text-align:center;color:var(--muted);margin:0;font-size:13px}.sheet-rule .ui-icon{vertical-align:-2px;margin-right:6px;font-size:15px}.sheet-rule.warn{color:#f0c878}.sheet-rule.good{color:var(--good)}@media (orientation:landscape) and (width>=700px){.build-layout{grid-template-columns:236px minmax(0,1fr);align-items:start;gap:16px;display:grid}.town-overview{grid-template-columns:minmax(0,1fr);grid-template-areas:"banner""picture""info""next""daily";gap:8px}.overview-picture{height:124px}.overview-art{width:160px;height:124px}.build-sheet{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:18px;padding-top:14px;display:grid}.sheet-deal{padding-right:48px}}@media (orientation:landscape) and (height<=520px){.sheet-art{width:92px;height:92px}.sheet-art .building-icon{width:72px;height:72px}.sheet-desc{font-size:15px}}@media (prefers-reduced-motion:reduce){.build-tile.ready .tile-badge,.build-tile.just-built,.spark,.tile-ribbon,.overview-picture.stage-up .overview-art,.stage-rays,.stage-banner,.sheet-layer .modal{animation:none}.spark,.stage-rays{display:none}.progress-bar span{transition:none}}.tier-panel{flex-direction:column;gap:5px;display:flex}.tier-head{align-items:center;gap:8px;min-width:0;display:flex}.tier-name{font-family:var(--heading);letter-spacing:.05em;color:var(--fx-color,var(--brass));white-space:nowrap;text-overflow:ellipsis;font-size:15px;overflow:hidden}.tier-dots{align-items:center;gap:6px;margin:0;padding:0;list-style:none;display:flex}.tier-dot{border:2px solid var(--brass-dim);background:#17110d;border-radius:50%;width:12px;height:12px}.tier-dot.reached{border-color:var(--fx-color);background:var(--fx-color)}.tier-dot.current{box-shadow:0 0 0 2px #0009, 0 0 8px var(--fx-color)}.tier-dot.grand{color:#e8705e;border-color:#e8705e;place-items:center;width:20px;height:20px;margin-left:auto;font-size:11px;display:grid}.tier-bar span{background:linear-gradient(#fff, var(--fx-color) 55%, #6d5420);box-shadow:0 0 6px var(--fx-color)}.tier-next{color:var(--muted);font-size:12px}.overview-fx{display:flex}.tile-level{z-index:1;color:var(--brass);white-space:nowrap;background:#2f241a;border:1px solid #1a120b;border-radius:8px;padding:0 5px;font-size:10px;line-height:15px;position:absolute;bottom:-6px;left:50%;transform:translate(-50%)}.build-tile.built.upgradable{filter:drop-shadow(0 0 5px #ffc450bf)}.build-tile.built.upgradable .tile-badge{color:#22170a;background:radial-gradient(circle at 35% 30%,#ffe9a6,#d1a23a 60%,#8a6420)}.upgrade-section h4{align-items:center;gap:6px;display:flex}.upgrade-section p{gap:8px;margin:4px 0 0;display:flex}.upgrade-section small{min-width:36px;color:var(--muted)}.upgrade-then{color:var(--good)}.rank-list{flex-direction:column;gap:8px;display:flex}.rank-card{background:#2a2017;border:1px solid #3d2f22;border-radius:8px;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px 10px;padding:8px 10px;display:grid}.rank-card.locked{opacity:.65}.rank-head{justify-content:space-between;align-items:center;gap:6px;display:flex}.rank-card small{color:var(--muted);display:block}.rank-card .rank-form{color:var(--fx-color,var(--brass))}.rank-foot{flex-wrap:wrap;grid-column:1/-1;justify-content:space-between;align-items:center;gap:8px;display:flex}.rank-foot .progress-bar{flex:1;min-width:80px}.fx-frame{isolation:isolate;justify-content:center;align-items:flex-end;display:inline-flex;position:relative}.fx-frame>img,.fx-frame>canvas{z-index:1;position:relative}.fx-aura:before{content:"";background:radial-gradient(closest-side, var(--fx-soft), transparent);height:30%;box-shadow:0 0 0 1.5px var(--fx-color) inset;opacity:.85;z-index:0;border-radius:50%;animation:1.8s ease-in-out infinite fx-pulse;position:absolute;bottom:-4%;left:8%;right:8%}.fx-trim:after{content:"";background:var(--fx-trim);z-index:2;border-radius:2px;height:4px;position:absolute;bottom:4%;left:30%;right:30%;box-shadow:0 0 0 1px #140e08d9}.fx-mote{bottom:10%;left:calc(18% + var(--i) * 9%);background:var(--fx-color);width:4px;height:4px;box-shadow:0 0 6px var(--fx-color);opacity:0;z-index:2;animation:2.2s ease-out infinite fx-rise;animation-delay:calc(var(--i) * -.27s);border-radius:50%;position:absolute}@keyframes fx-pulse{50%{opacity:.45;transform:scale(1.06)}}@keyframes fx-rise{0%{opacity:0;transform:translateY(0)}25%{opacity:.95}to{transform:translateY(-260%) translateX(calc((var(--i) - 3.5) * 2px));opacity:0}}@media (prefers-reduced-motion:reduce){.fx-aura:before,.fx-mote{animation:none}.fx-mote{opacity:.6}}.fx-level{border:1px solid var(--fx-color,var(--brass-dim));color:var(--fx-color,var(--brass));white-space:nowrap;border-radius:9px;align-items:center;gap:3px;padding:0 6px;font-size:12px;line-height:18px;display:inline-flex}.talent-offer{border:1px solid var(--brass-dim);background:#c9a24a14;border-radius:8px;flex-direction:column;gap:6px;padding:8px;display:flex}.talent-ready{color:var(--brass);align-items:center;gap:6px;margin:0;display:flex}.talent-ready small{color:var(--muted);margin-left:auto}button.talent-choice{text-align:left;width:100%;font:inherit;color:inherit;cursor:pointer;background:#2f241a;border:1px solid #3d2f22;border-radius:6px}button.talent-choice:hover,button.talent-choice:focus-visible{border-color:var(--brass)}.expedition{border-bottom:1px solid #a58a505e;flex:none;padding:10px 0 12px}.expedition-head{align-items:flex-start;gap:4px;display:flex}.expedition-title{text-align:left;min-width:0;color:var(--text);font:inherit;cursor:pointer;background:0 0;border:0;flex:1;align-items:center;gap:10px;padding:0;display:flex}.expedition-title>.ui-icon{width:26px;height:26px}.expedition-title span{min-width:0}.expedition-title small{color:#c5b17f;font:9px var(--heading);letter-spacing:.1em;margin-bottom:3px;display:block}.expedition-title strong{font:600 15px/1.3 var(--heading);color:#f6dfa7;display:block}.expedition-hide{color:#bda879;cursor:pointer;background:0 0;border:0;flex:none;width:44px;min-height:44px;margin:-8px 0 0}.expedition-hide img{width:17px;height:17px}.expedition-track{gap:4px;margin:10px 0 8px;display:flex}.expedition-track span{transform-origin:0;background:#695738;flex:1;height:3px}.expedition-track .done{background:#cce4a6}.expedition-track .current{background:#e3b75b}.expedition-bottom{flex-direction:column;align-items:stretch;gap:6px;display:flex}.expedition-bottom p{color:#d9c9a9;margin:0;font-size:12px;line-height:1.4}.expedition-action{white-space:nowrap;min-height:44px}.expedition button:disabled{cursor:default}.expedition button:focus-visible,.expedition-journal button:focus-visible,.expedition-finale button:focus-visible{outline-offset:3px;outline:2px solid #fff0b6}.expedition-advance .expedition-track .done{animation:.5s cubic-bezier(.22,.85,.3,1) both expedition-track}.expedition-advance .expedition-title strong{animation:.42s cubic-bezier(.22,.85,.3,1) both expedition-heading}:is(.modal:has(>.expedition-journal),.modal:has(>.expedition-finale)){width:min(540px,100%);height:auto;overflow:hidden}.modal:has(>.expedition-journal){max-height:100%}.modal-layer:has(.expedition-journal,.expedition-finale){padding:max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left))}.expedition-journal,.expedition-finale{max-height:calc(100dvh - 56px - env(safe-area-inset-top) - env(safe-area-inset-bottom));flex-direction:column;display:flex}.expedition-journal header{border-bottom:1px solid #96753d66;flex:none;padding:22px 22px 14px}.expedition-journal h2{margin:7px 0 8px;font-size:clamp(22px,5vw,29px);line-height:1.2}.expedition-journal header p{color:#cdbd9d;margin:0;font-size:14px}.expedition-journal-body{overscroll-behavior:contain;min-height:0;padding:18px 22px;overflow:auto}.expedition-steps{margin:0;padding:0;list-style:none}.expedition-steps li{gap:14px;padding:0 0 22px;display:flex;position:relative}.expedition-steps li:not(:last-child):before{content:"";background:#7d673f;width:1px;position:absolute;top:35px;bottom:5px;left:17px}.expedition-step-seal{width:35px;height:35px;font:600 14px var(--heading);color:#bea77b;background:#201d15;border:1px solid #8b7444;border-radius:50%;flex:none;place-items:center;display:grid}.expedition-step-seal img{width:20px;height:20px}.expedition-steps .done .expedition-step-seal{background:#2a3822;border-color:#acbd80}.expedition-steps .current .expedition-step-seal{color:#fff0c2;background:#514022;border-color:#edc16b;box-shadow:0 0 0 3px #c4a35620}.expedition-steps strong{font:600 14px var(--heading);color:#ebd7af}.expedition-steps p{color:#cdbd9d;margin:4px 0 0;font-size:13px;line-height:1.45}.expedition-reward-line{border-top:1px solid #8b744466;flex-wrap:wrap;justify-content:space-between;gap:10px;padding-top:14px;display:flex}.expedition-freedom{color:#c5b392;margin:12px 0 0;font-size:12px}.expedition-journal footer,.expedition-finale footer{background:#1b1510;border-top:1px solid #96753d66;flex:none;gap:10px;padding:14px 22px;display:flex}.expedition-journal footer .btn,.expedition-finale footer .btn{flex:1;min-height:48px}.expedition-journal footer .btn{letter-spacing:0;white-space:nowrap;padding-inline:8px;font-size:12px}.expedition-finale{text-align:center;background:radial-gradient(at 50% 15%,#5c65384d,#0000 65%);overflow-y:auto}.expedition-finale-art{flex:none;place-items:center;height:168px;padding-top:12px;display:grid;position:relative}.expedition-victory-art{object-fit:contain;filter:drop-shadow(0 8px 8px #0009);width:154px;height:154px}.expedition-finale-copy{padding:8px 24px 0}.expedition-finale h2{margin:7px 0 12px;font-size:clamp(24px,5vw,34px);line-height:1.2}.expedition-finale-copy p{color:#dccba7}.expedition-finale-reward{color:#f9e4ad;background:#191b16;border:1px solid #927a45;margin:8px 24px 20px;padding:15px;font-size:21px}.expedition-finale-reward .cost{justify-content:center;gap:24px}.expedition-finale footer{flex-wrap:wrap;position:sticky;bottom:0}.expedition-claim-status{color:#d3e6b2;width:100%;min-height:21px;margin:0}.expedition-finale footer .btn{letter-spacing:0;white-space:nowrap;flex:1 1 0;min-width:0;padding-inline:8px;font-size:12px}.expedition-finale footer .primary{flex:2 1 0}.expedition-next{color:#c7b899;border-top:1px solid #927a4555;margin:0 24px 18px;padding:12px 0 0;font-size:14px}.expedition-finale.collected .expedition-victory-art{animation:.62s cubic-bezier(.22,.85,.3,1) both expedition-seal}.expedition-finale.collected .expedition-finale-reward{animation:.62s ease-out both expedition-impact}.expedition-finale.collected .expedition-next{animation:.75s cubic-bezier(.22,.85,.3,1) both expedition-next}@keyframes expedition-track{0%{transform:scaleX(.15)}to{transform:scaleX(1)}}@keyframes expedition-heading{0%{opacity:.3;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes expedition-seal{0%{transform:scale(1)}22%{transform:scale(.9)translateY(-8px)rotate(-4deg)}45%{transform:scale(1.1)translateY(4px)rotate(2deg)}68%{transform:scale(.98)translateY(-2px)}to{transform:none}}@keyframes expedition-impact{0%,44%{border-color:#927a45;transform:none}45%{background-color:#354329;border-color:#e6dca0;transform:translateY(4px)}70%{transform:translateY(-1px)}to{background-color:#263020;border-color:#a7ba7d;transform:none}}@keyframes expedition-next{0%,45%{color:#c7b899;transform:none}65%{color:#f5e5bd;transform:translateY(-2px)}to{color:#e4d4b2;transform:none}}@media (orientation:portrait){.expedition{padding:0 0 8px}.expedition-title strong{font-size:14px}.expedition-track{margin:6px 0}.expedition-bottom{flex-direction:row;align-items:center;gap:12px}.expedition-bottom p{flex:1}.expedition-action{flex:none;font-size:11px}}@media (orientation:landscape) and (height<=520px){.expedition{z-index:3;left:max(10px, env(safe-area-inset-left));bottom:max(10px, env(safe-area-inset-bottom));width:min(440px, calc(100vw - 270px - env(safe-area-inset-left) - env(safe-area-inset-right)));background:linear-gradient(#231d16ed,#181611f5);border:1px solid #b99a57;padding:10px 12px;position:fixed;box-shadow:0 6px 18px #000a}.expedition-head{align-items:center}.expedition-hide{margin-top:-4px;margin-bottom:-4px}.expedition-bottom{flex-direction:row;align-items:center;gap:10px}.expedition-bottom p{flex:1;font-size:12px}.expedition-action{flex:none;font-size:11px}.game:has(.expedition:not([hidden])) .statusline{bottom:134px}.panel .controls{grid-template-columns:repeat(4,minmax(0,1fr))}.panel .controls .tool{min-width:0;padding-inline:0}.panel .controls .tool span{letter-spacing:0;font-size:9px}.expedition-title strong{font-size:13px}.expedition-title>.ui-icon{display:none}.expedition-finale-art{height:72px;padding:0}.expedition-victory-art{width:78px;height:78px}.expedition-finale h2{margin:4px 0;font-size:24px}.expedition-finale-copy p{margin:3px 0;font-size:13px}.expedition-finale-reward{margin:8px 24px;padding:6px;font-size:17px}.expedition-finale footer{padding:8px 16px}}@media (prefers-reduced-motion:reduce){.expedition *,.expedition-finale *{transition:none!important;animation:none!important}}.controls:has(.quest-tool){grid-template-columns:repeat(4,minmax(0,1fr))}.controls .quest-tool{flex-direction:row;grid-column:1/3;gap:8px}.controls:has(.quest-tool) .end-turn{grid-column:3/-1}
