/* W-164 (#92) the Siege ladder: the start screen's pick, the HUD's mark, the deck counter's cap, the full-deck sheet and
   the priced unlock. Colours follow tower-card.css (--tc-gold) and the belt sheet (item-belt.css). */
.siege-pick{width:min(640px,100%);margin:0 auto 12px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--tc-gold,#d2b271) 55%,transparent);border-radius:10px;background:#0f1a1dcc;color:#e6ebdc;text-align:left}
.siege-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.siege-label{display:flex;align-items:center;gap:4px;font-weight:700;font-size:var(--fs-sm,13px);color:var(--tc-gold,#d2b271);letter-spacing:.04em;text-transform:uppercase}
.siege-label .ui-icon{width:18px;height:18px}
/* W-181 (#92): ten and more levels stay one row: the chips share the row's width (beside the label when it has room,
   under it on a phone), each a circle up to 34 px. */
.siege-chips{flex:1 1 340px;min-width:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(28px,1fr));gap:4px;justify-items:center}
.siege-chip{font:inherit;font-weight:700;width:100%;max-width:34px;aspect-ratio:1;height:auto;min-width:0;padding:0;border-radius:50%;border:1px solid #56635e;background:#243b41;color:#c4dedd;cursor:pointer}
.siege-chip.on{background:var(--tc-gold,#d2b271);border-color:var(--tc-gold,#d2b271);color:#15252a}
.siege-chip.locked{opacity:.4;cursor:default}
.siege-body{display:grid;grid-template-columns:96px 1fr;gap:12px;align-items:start;margin-top:10px}
.siege-body:has(.plain){grid-template-columns:1fr}
.siege-art{width:96px;height:96px;border-radius:8px;border:1px solid #415c5b;background:#15252a;object-fit:cover}
.siege-words h2{margin:0 0 4px;font-size:var(--fs-md,15px);color:var(--tc-gold,#d2b271)}
.siege-words p{margin:0;font-size:var(--fs-sm,13px);line-height:1.45;color:#c4dedd}
.siege-rules{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px;font-size:var(--fs-sm,13px);line-height:1.4}
.siege-rules li{display:flex;gap:8px;align-items:baseline}
.siege-rules li:first-child{color:#e6ebdc}
.siege-rules li:not(:first-child){color:#9eb3ad}
.siege-rules b{flex:none;width:18px;height:18px;border-radius:50%;background:#2c3b3d;border:1px solid #56635e;font-size:11px;display:inline-flex;align-items:center;justify-content:center;color:var(--tc-gold,#d2b271)}
.siege-next{margin:8px 0 0;font-size:var(--fs-xs,11px);color:#8fa8a2}
.siege-mark{display:flex;align-items:center;gap:1px;margin-right:6px;padding:2px 7px 2px 4px;border-radius:12px;border:1px solid #d2b27166;color:#d2b271;font-size:var(--fs-xs,11px);font-weight:700}
.siege-mark .ui-icon{width:14px;height:14px}
.rail-button .deck-cap{font-style:normal;opacity:.7;font-size:.85em}
#deck-full{position:absolute;left:0;right:0;top:calc(44px + var(--safe-top,env(safe-area-inset-top)));bottom:0;z-index:11;display:flex;padding:5px;background:#231d16e6;overflow:auto;
 --uf-sheet:var(--era-paper,url('/assets/ui/parchment.svg'));--uf-card:var(--era-card,url('/assets/ui/card.svg'));--uf-edge:var(--era-edge,#ac9560);--uf-paper:var(--paper,#e6d7af)}
#deck-full.hidden{display:none}
.deck-cull{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;width:100%}
.deck-cull .belt-card{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;padding:8px}
.deck-cull .belt-card[disabled]{opacity:.5}
.deck-cull .tc-model{width:64px;height:64px;display:block}
.deck-cull .tc-model img,.deck-cull .tc-model svg{width:64px;height:64px;object-fit:contain}
.deck-cull .tc-kind{font-size:var(--fs-xs,11px);opacity:.75;text-transform:uppercase;letter-spacing:.06em}
.deck-cull .tc-line{font-size:var(--fs-xs,11px);line-height:1.3;opacity:.85}
.deck-cull .belt-leave{margin-top:auto}
/* W-172 (T4): the two pay buttons take the panel's whole action row, side by side, as the one unlock button does
   (tower-card.css puts .up-unlock in the `act` area; the wrapper fell into the left half and the price wrapped). */
.up-detail>.up-pay{grid-area:act}
.up-pay{display:flex;gap:8px;width:100%}
.up-pay>.up-unlock{flex:1 1 0;min-width:0}
.up-pay .pay-health{background:#8a3a3a;color:#f6e8e0}
@media (min-width:600px){#deck-full{top:44px}}
@media (min-width:960px) and (min-height:600px) and (min-aspect-ratio:5/4){#deck-full{top:46px}#deck-full .deck-full{max-width:860px;margin:0 auto;align-self:flex-start}}
@media (max-width:480px){.siege-body{grid-template-columns:72px 1fr}.siege-art{width:72px;height:72px}}
/* W-172 (T4): on the phone the full deck fits one screen: three across, the art smaller, each card's line left to its
   name (the deck is the player's own), the sheet below the HUD so the 13/12 stays in sight; 600 px up the frame has no inset. */
@media (max-width:480px){#deck-full .deck-cull{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.deck-cull .belt-card{padding:6px 4px;gap:2px}
 .deck-cull .tc-model,.deck-cull .tc-model img,.deck-cull .tc-model svg{width:52px;height:52px}.deck-cull .tc-line{display:none}
 .deck-cull .tc-name{font-size:var(--fs-sm,13px);line-height:1.2}.deck-cull .belt-leave{padding:4px 5px;font-size:10px;letter-spacing:.04em}}
