/* Breach Company styles: worn charcoal and gunmetal panels, olive and khaki, rust-orange accents, stencil type.
   No candy colours, no bounce. Everything fits the screen, nothing scrolls. */
:root {
  --bg: #1b1d18; --ink: #11120e; --paper: #e2d9c0; --khaki: #c9bc93; --dim: #a39d86;
  --olive: #5c6340; --olive-d: #3a3f28; --steel: #393c34; --steel-l: #4a4d43; --line: #4f513f; --line-d: #2b2c23;
  --panel: rgba(29, 31, 26, .93); --panel2: #262821; --rust: #b9532a; --rust-l: #dd7a40; --amber: #d6a046; --red: #a83a2a; --good: #9cc27a; --bad: #e08262; --ice: #8fb3c8;
  --tex: linear-gradient(180deg, rgba(255,255,255,.035), rgba(0,0,0,.12)), repeating-linear-gradient(135deg, rgba(255,255,255,.014) 0 2px, transparent 2px 7px);
  --shadow: 0 6px 16px rgba(0,0,0,.45); --bevel: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -2px 0 rgba(0,0,0,.35);
  --font-d: 'Black Ops One', 'Stencil', 'Impact', 'Arial Black', sans-serif; --font-b: 'IBM Plex Sans', system-ui, sans-serif; --font-m: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --c-common: #b9b8a4; --c-rare: #7fa7c2; --c-epic: #b48ad0; --c-legendary: #e3a248;
  --top: calc(54px + env(safe-area-inset-top));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--paper); font-family: var(--font-b); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
#view { position: fixed; inset: 0; }
#view canvas { display: block; width: 100%; height: 100%; }
.layer { position: fixed; inset: 0; pointer-events: none; }
.layer > * { pointer-events: auto; }
.hidden { display: none !important; }
h2, h3 { font-family: var(--font-d); font-weight: 400; margin: 0; letter-spacing: .04em; color: var(--khaki); }
.sub { color: var(--dim); font-weight: 500; font-size: 13px; margin: 4px 0; }
.center { text-align: center; }
.good { color: var(--good); font-weight: 700; } .bad { color: var(--bad); font-weight: 700; }
a { color: var(--rust-l); }
img.cur, .ifb.cur { width: 1.15em; height: 1.15em; vertical-align: -0.22em; margin-right: 3px; object-fit: contain; }
.ifb { display: inline-flex; align-items: center; justify-content: center; font: 400 15px var(--font-d); color: var(--khaki); background: #2e3028; border: 1px solid var(--line); border-radius: 3px; min-width: 2em; min-height: 2em; letter-spacing: .04em; }
.ifb.cur { min-width: 0; min-height: 0; font-size: .6em; color: var(--ink); background: var(--khaki); border: 0; } .ifb.cur.gold { background: var(--amber); }
.stamp { display: inline-block; font: 600 11px var(--font-m); letter-spacing: .18em; text-transform: uppercase; color: var(--rust-l); border: 1px solid currentColor; padding: 1px 7px; border-radius: 2px; }

/* buttons */
.btn { font: 400 18px/1.05 var(--font-d); letter-spacing: .06em; text-transform: uppercase; color: #f3e8cf; background: linear-gradient(180deg, #c5602f, #9c4320); border: 2px solid var(--ink); border-radius: 3px;
  padding: 10px 18px; box-shadow: var(--bevel), 0 3px 0 rgba(0,0,0,.45); cursor: pointer; transition: filter .15s, transform .08s; white-space: nowrap; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); box-shadow: var(--bevel); }
.btn[disabled] { filter: grayscale(1) brightness(.6); cursor: default; transform: none; }
.btn.alt { background: linear-gradient(180deg, #4b4f43, #33362d); color: var(--paper); }
.btn.red { background: linear-gradient(180deg, #a83a2a, #7a2418); }
.btn.big { font-size: 28px; padding: 14px 44px; letter-spacing: .14em; }
.btn.pulse { background: linear-gradient(180deg, #dd7a40, #b9532a); box-shadow: var(--bevel), 0 0 0 2px var(--rust-l); }
.row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 10px; }
.ndot { position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--rust-l); border: 2px solid var(--ink); }

/* rarity frames */
.r-common { --rc: var(--c-common); } .r-rare { --rc: var(--c-rare); } .r-epic { --rc: var(--c-epic); } .r-legendary { --rc: var(--c-legendary); }

/* wordmark (CSS stand-in until art/game/logo.webp is the Breach Company logo) */
.wordmark { display: inline-flex; flex-direction: column; align-items: center; font-family: var(--font-d); color: var(--khaki); line-height: .92; text-shadow: 0 3px 0 rgba(0,0,0,.6), 0 0 22px rgba(0,0,0,.6); }
.wordmark b { font-weight: 400; display: block; }
.wordmark b:first-child { font-size: clamp(46px, 9vw, 104px); letter-spacing: .07em; background: linear-gradient(180deg, #e2d6b0 0%, #b7a97e 60%, #8e8360 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark b:nth-child(2) { font-size: clamp(20px, 3.7vw, 42px); letter-spacing: .44em; margin-right: -.44em; color: var(--dim); margin-top: .12em; }
.wordmark small { margin-top: .5em; font: 400 clamp(12px, 1.6vw, 16px) var(--font-d); letter-spacing: .2em; color: #f0e2c4; background: var(--rust); padding: 3px 10px 2px 12px; border: 2px solid var(--ink); text-shadow: none; }
.logo-img { max-width: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
.badge { width: 34px; height: 34px; object-fit: contain; }
.badge-fb { font: 400 14px var(--font-d); letter-spacing: .1em; color: #f0e2c4; background: var(--rust); border: 2px solid var(--ink); padding: 5px 8px 4px; border-radius: 2px; }

/* loading + busy */
#loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; background: radial-gradient(ellipse at 50% 40%, #2c2f25, #121310 75%); z-index: 50; }
#loading .meter { width: 240px; height: 8px; border: 1px solid var(--line); background: #0c0d0a; overflow: hidden; }
#loading .meter i { display: block; height: 100%; width: 0; background: var(--rust); transition: width .2s; }
#loading > small { font: 500 12px var(--font-m); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
#busy { position: fixed; inset: 0; z-index: 45; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; background: rgba(14,15,12,.78); font: 400 22px var(--font-d); letter-spacing: .1em; text-transform: uppercase; color: var(--khaki); }
.spin { width: 46px; height: 46px; border: 4px solid var(--steel-l); border-top-color: var(--rust-l); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* title */
#title { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: radial-gradient(ellipse at center, rgba(0,0,0,.15) 20%, rgba(0,0,0,.72) 100%); padding: 16px; text-align: center; }
#title .title-logo { max-width: 92vw; } #title .logo-img { width: min(600px, 84vw); max-height: 36vh; }
#title .tag { font: 500 15px var(--font-b); color: var(--paper); text-shadow: 0 2px 6px #000; max-width: 560px; letter-spacing: .02em; }
#title .by { font: 500 11px var(--font-m); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); text-shadow: 0 1px 3px #000; }

/* top bar (menus) */
#topbar { position: fixed; left: 0; right: 0; top: 0; z-index: 20; display: flex; gap: 8px; align-items: center; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,13,10,.75), rgba(12,13,10,0)); }
#topbar > * { pointer-events: auto; }
#topbar button, .tb-cur { font: 600 16px var(--font-m); color: var(--paper); background: var(--panel); background-image: var(--tex); border: 1px solid var(--line); border-radius: 3px; padding: 5px 10px; box-shadow: var(--bevel); cursor: pointer; display: flex; align-items: center; gap: 5px; }
.tb-back { background: linear-gradient(180deg, #c5602f, #9c4320) !important; color: #f3e8cf !important; border-color: var(--ink) !important; font-family: var(--font-d) !important; }
.tb-title { font: 400 17px var(--font-d); letter-spacing: .08em; text-transform: uppercase; color: var(--khaki); text-shadow: 0 2px 4px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tb-cur b { font-weight: 600; min-width: 30px; } .tb-cur img, .tb-cur .ifb { width: 22px; height: 22px; } .tb-cur.gold b { color: var(--amber); }
.tb-pass { margin-left: auto; flex-direction: column; align-items: stretch !important; gap: 3px !important; padding: 4px 10px !important; font-size: 12px !important; letter-spacing: .08em; text-transform: uppercase; }
.tb-pass i { display: block; width: 84px; height: 5px; background: #0c0d0a; overflow: hidden; } .tb-pass i b { display: block; height: 100%; background: var(--rust-l); }
.tb-gear { font-size: 18px !important; }

/* panels shared */
.panel, .hbtn, .map-panel, .sq-detail, .mbox, .fbig, .unit, #hud .pill, #toast { background-color: var(--panel); background-image: var(--tex); }

/* hub */
#hub { display: flex; justify-content: space-between; align-items: center; padding: var(--top) 18px 18px; gap: 16px; }
.hub-l, .hub-r { display: flex; flex-direction: column; gap: 10px; width: min(340px, 42vw); }
.hub-logo.wordmark { align-self: flex-start; margin-bottom: 4px; } .hub-logo.wordmark b:first-child { font-size: clamp(34px, 5vw, 62px); } .hub-logo.wordmark b:nth-child(2) { font-size: clamp(15px, 2.1vw, 25px); }
.hub-logo.wordmark small { display: none; } .hub-logo.logo-img { width: 100%; max-height: 22vh; }
.hbtn { position: relative; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--steel-l); border-radius: 3px; padding: 10px 14px; box-shadow: var(--shadow), var(--bevel); cursor: pointer; font-family: var(--font-b); transition: border-color .15s, background-color .15s; }
.hbtn:hover { border-left-color: var(--rust-l); background-color: rgba(42,45,37,.95); }
.hbtn img, .hbtn > .ifb { width: 48px; height: 48px; object-fit: contain; flex: none; filter: saturate(.55) sepia(.2); }
.hbtn b { font: 400 21px var(--font-d); letter-spacing: .04em; display: block; color: var(--paper); } .hbtn small { font-weight: 500; color: var(--dim); font-size: 13px; }
.hbtn.big { flex-direction: column; align-items: flex-start; gap: 3px; border-left-color: var(--rust); padding: 14px 18px; background-image: linear-gradient(100deg, rgba(185,83,42,.28), transparent 60%), var(--tex); }
.hbtn.big b { font-size: 27px; } .hk { font: 600 11px var(--font-m); letter-spacing: .16em; text-transform: uppercase; color: var(--rust-l); }
.hbtn.daily { flex-direction: column; align-items: flex-start; gap: 2px; border-left-color: var(--ice); } .hbtn.daily .hk { color: var(--ice); }
.hbtn.shop { border-left-color: var(--amber); } .hbtn.pass { border-left-color: var(--olive); }

/* world map: a command table */
#map { display: flex; gap: 12px; padding: var(--top) 12px 12px; align-items: stretch; }
.map-art { position: relative; flex: 1; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; box-shadow: var(--shadow), inset 0 0 60px rgba(0,0,0,.8); min-width: 0;
  background: radial-gradient(ellipse at 50% 45%, #2e3a3c 0%, #1b2224 70%, #111517 100%); }
.map-stage { position: absolute; }
.map-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-stage.grid { background:
  linear-gradient(90deg, transparent calc(50% - .5px), rgba(201,188,147,.22) 50%, transparent calc(50% + .5px)),
  linear-gradient(0deg, transparent calc(50% - .5px), rgba(201,188,147,.22) 50%, transparent calc(50% + .5px)),
  repeating-linear-gradient(90deg, rgba(201,188,147,.09) 0 1px, transparent 1px calc(100% / 24)),
  repeating-linear-gradient(0deg, rgba(201,188,147,.09) 0 1px, transparent 1px calc(100% / 12)),
  radial-gradient(ellipse at 50% 50%, rgba(80,100,95,.35), transparent 70%); border: 1px solid rgba(201,188,147,.18); }
.map-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 80px rgba(0,0,0,.75); }
.strings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.strings path { fill: none; stroke: #b8302a; stroke-width: 2.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 2px 1px rgba(0,0,0,.6)); }
.pin { position: absolute; width: 0; height: 0; padding: 0; border: 0; background: none; cursor: pointer; z-index: 2; }
.pin .pt { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e88a6a, #a32a1f 60%, #5c140e); border: 1px solid #1a0b08; box-shadow: 0 3px 4px rgba(0,0,0,.7); }
.pin.locked .pt { background: radial-gradient(circle at 35% 30%, #8e8e86, #4a4a44 60%, #262622); }
.pin.done .pt { background: radial-gradient(circle at 35% 30%, #c8d6a0, #6c7a40 60%, #343c1c); }
.pin.on .pt { box-shadow: 0 0 0 3px rgba(221,122,64,.55), 0 3px 4px rgba(0,0,0,.7); }
.pin .pl { position: absolute; white-space: nowrap; text-align: left; background: rgba(226,217,192,.93); color: #1e1d16; padding: 2px 7px 3px; border-radius: 1px; box-shadow: 0 2px 4px rgba(0,0,0,.6); transform: rotate(-1deg); }
.pin.locked .pl { background: rgba(120,118,104,.85); color: #191813; }
.pin.on .pl { background: #f0e5c8; outline: 2px solid var(--rust); }
.pin .pl b { display: block; font: 400 13px var(--font-d); letter-spacing: .05em; } .pin .pl small { display: block; font: 600 10px var(--font-m); }
.pin.lbl-e .pl { left: 12px; top: -12px; } .pin.lbl-w .pl { right: 12px; top: -12px; } .pin.lbl-n .pl { left: -36px; bottom: 12px; } .pin.lbl-s .pl { left: -36px; top: 12px; }
.pin.lbl-ne .pl { left: 10px; bottom: 8px; } .pin.lbl-nw .pl { right: 10px; bottom: 8px; } .pin.lbl-se .pl { left: 10px; top: 8px; } .pin.lbl-sw .pl { right: 10px; top: 8px; }
.standee { position: absolute; width: 0; height: 0; pointer-events: none; z-index: 3; }
.standee canvas { position: absolute; left: -62px; bottom: 2px; height: 58px; width: auto; filter: drop-shadow(0 3px 2px rgba(0,0,0,.8)); }
.map-panel { width: min(380px, 40vw); border: 1px solid var(--line); border-top: 4px solid var(--c, var(--rust)); border-radius: 3px; padding: 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); min-height: 0; }
.mp-h { display: flex; align-items: baseline; gap: 10px; } .map-panel h2 { font-size: 27px; color: var(--paper); text-shadow: 0 2px 0 #000; } .ctry { font: 600 11px var(--font-m); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.wx { display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--dim); border-left: 2px solid var(--ice); padding-left: 8px; } .wx b { font: 600 11px var(--font-m); letter-spacing: .12em; text-transform: uppercase; color: var(--ice); white-space: nowrap; }
.mrow { display: flex; align-items: center; gap: 10px; background: var(--panel2); color: var(--paper); border: 1px solid var(--line-d); border-left: 3px solid var(--steel-l); border-radius: 2px; padding: 6px 10px; cursor: pointer; text-align: left; font-family: var(--font-b); min-width: 0; }
.mrow:hover:not([disabled]) { background: #30332a; border-left-color: var(--rust-l); }
.mrow.locked { opacity: .45; cursor: default; }
.mrow.boss { border-left-color: var(--red); background: linear-gradient(90deg, rgba(168,58,42,.22), transparent 70%), var(--panel2); } .mrow.clear .mn { background: var(--olive); color: var(--paper); }
.mn { width: 28px; height: 28px; flex: none; background: var(--khaki); color: var(--ink); font: 400 16px/28px var(--font-d); text-align: center; border-radius: 2px; }
.mt { flex: 1; min-width: 0; } .mt b { font: 400 16px var(--font-d); letter-spacing: .03em; display: block; } .mt small { font-size: 12px; color: var(--dim); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtype { font: 600 9px var(--font-m); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--dim); padding: 1px 5px; margin-right: 6px; border-radius: 1px; vertical-align: 1px; }
.mtype.t-breach { background: var(--khaki); } .mtype.t-silent { background: var(--ice); } .mtype.t-rescue { background: var(--good); } .mtype.t-hold { background: var(--amber); } .mtype.t-ambush { background: var(--rust-l); } .mtype.t-boss { background: var(--red); color: #f3e8cf; }
.ms i { color: #4a4a40; font-style: normal; font-size: 15px; } .ms i.on { color: var(--amber); }
.locked-msg { color: var(--dim); }

/* generic page (barracks, store, pass, daily) */
.page { display: flex; flex-direction: column; padding: var(--top) 12px 10px; gap: 8px; background: linear-gradient(180deg, rgba(14,15,12,.55), rgba(14,15,12,.82)); }
.tabs, .stabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button, .stabs button { position: relative; font: 400 15px var(--font-d); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); background: var(--panel); border: 1px solid var(--line); border-bottom: 2px solid var(--line); border-radius: 2px; padding: 6px 14px; cursor: pointer; }
.tabs button.on, .stabs button.on { color: var(--paper); border-bottom-color: var(--rust-l); background: #34372e; }
.panel { border: 1px solid var(--line); border-radius: 3px; padding: 14px; box-shadow: var(--shadow); }

/* paging */
.pgrid { display: grid; gap: 8px; }
.pcell { min-width: 0; min-height: 0; cursor: pointer; }
.pnav { display: flex; align-items: center; justify-content: center; gap: 12px; height: 30px; margin-top: 4px; font: 600 13px var(--font-m); color: var(--dim); }
.pbtn { font: 400 14px var(--font-d); background: var(--steel); border: 1px solid var(--line); border-radius: 2px; width: 40px; height: 28px; cursor: pointer; color: var(--paper); }
.pbtn[disabled] { opacity: .3; cursor: default; }

/* barracks */
.sq-body { flex: 1; display: flex; gap: 12px; min-height: 0; }
.sq-list { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sq-slots { display: flex; gap: 8px; align-items: center; }
.sq-slots > span { font: 600 11px var(--font-m); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.sq-slot { width: 82px; height: 82px; background: var(--panel); border: 1px solid var(--rust); border-radius: 2px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; cursor: pointer; overflow: hidden; }
.sq-slot b { font: 400 13px var(--font-d); letter-spacing: .04em; background: var(--ink); width: 100%; text-align: center; padding: 1px 0; }
.sf, .hf { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; } .sf canvas, .hf canvas { width: 62px; height: 62px; }
.sq-grid { flex: 1; min-height: 0; }
.hcard { position: relative; height: 100%; background: var(--panel2); background-image: var(--tex); border: 1px solid var(--line-d); border-bottom: 3px solid var(--rc); border-radius: 2px; display: flex; flex-direction: column; align-items: center; padding: 4px; overflow: hidden; }
.hcard b { font: 400 14px var(--font-d); letter-spacing: .04em; } .hcard small { font: 500 10px var(--font-m); color: var(--dim); }
.hcard.on { background-color: #3a3f28; outline: 2px solid var(--rust-l); }
.hcard.locked .hf { filter: brightness(0) opacity(.75); }
.insq { position: absolute; top: 3px; left: 4px; font-style: normal; background: var(--olive); color: var(--paper); width: 18px; height: 18px; font: 400 11px/18px var(--font-d); text-align: center; border-radius: 1px; }
.sq-detail { width: min(500px, 52vw); border: 1px solid var(--line); border-radius: 3px; padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); min-height: 0; }
.dt-top { display: flex; gap: 10px; min-height: 0; }
.dt-pic { flex: none; width: 150px; border-radius: 2px; background: radial-gradient(circle at 50% 75%, color-mix(in srgb, var(--rc) 25%, transparent), transparent 70%), #1d1f19; border: 1px solid var(--line-d); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.dt-pic canvas { width: 100%; height: auto; }
.dt-info { flex: 1; min-width: 0; } .dt-info h2 { font-size: 26px; color: var(--paper); } .dt-info p { margin: 2px 0 6px; font-size: 13px; color: var(--dim); }
.lv { font: 600 13px var(--font-m); background: var(--khaki); color: var(--ink); padding: 1px 6px; vertical-align: middle; border-radius: 1px; }
.rar { font: 600 10px var(--font-m); text-transform: uppercase; letter-spacing: .14em; }
.dt-moves { display: flex; flex-direction: column; gap: 2px; font-size: 12px; margin-bottom: 4px; color: var(--paper); } .dt-moves b { color: var(--rust-l); font-weight: 600; }
.srow { display: grid; grid-template-columns: 58px 1fr 48px; gap: 6px; align-items: center; font: 500 11px var(--font-m); margin: 2px 0; color: var(--dim); }
.srow i, .xpline i, .chr i, .pxp i, .lw i { display: block; height: 6px; background: #0c0d0a; overflow: hidden; border: 1px solid var(--line-d); }
.srow i b, .xpline i b, .chr i b, .pxp i b, .lw i b { display: block; height: 100%; background: linear-gradient(90deg, var(--olive), var(--khaki)); }
.srow em { font-style: normal; text-align: right; color: var(--paper); }
.xpline { display: flex; gap: 6px; align-items: center; font: 500 10px var(--font-m); margin-top: 4px; color: var(--dim); } .xpline i { flex: 1; } .xpline i b { background: var(--ice); }
.dt-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.eslot { display: flex; align-items: center; gap: 6px; background: var(--panel2); color: var(--paper); border: 1px solid var(--line-d); border-left: 3px solid var(--rc, #555); border-radius: 2px; padding: 3px 6px; cursor: pointer; text-align: left; font-family: var(--font-b); min-width: 0; }
.eslot:hover:not([disabled]) { background: #30332a; }
.eslot .ti { width: 38px; height: 38px; flex: none; display: flex; align-items: center; justify-content: center; font: 400 20px var(--font-d); color: var(--dim); } .eslot img { width: 100%; height: 100%; object-fit: contain; }
.eslot span { min-width: 0; } .eslot small { display: block; font: 600 9px var(--font-m); color: var(--dim); text-transform: uppercase; letter-spacing: .1em; } .eslot b { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eslot.empty { opacity: .7; }
.dt-gear { display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.22); border: 1px solid var(--line-d); padding: 5px 8px; border-radius: 2px; }
.gl { font: 600 9px var(--font-m); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); writing-mode: vertical-rl; transform: rotate(180deg); }
.gslot { position: relative; width: 44px; height: 44px; flex: none; background: var(--panel2); border: 1px solid var(--line); border-bottom: 3px solid var(--rc, var(--line)); border-radius: 2px; cursor: pointer; padding: 3px; color: var(--dim); display: flex; align-items: center; justify-content: center; }
.gslot img { width: 100%; height: 100%; object-fit: contain; } .gslot .ifb { min-width: 0; min-height: 0; width: 100%; height: 100%; font-size: 13px; }
.gslot b { font: 400 20px var(--font-d); } .gslot.empty { border-style: dashed; } .gslot.out { opacity: .5; }
.gslot i, .gs i { position: absolute; bottom: -3px; right: -3px; font: 600 10px/13px var(--font-m); font-style: normal; background: var(--khaki); color: var(--ink); padding: 0 3px; border-radius: 1px; }
.lw { flex: 1; min-width: 70px; display: flex; flex-direction: column; gap: 3px; } .lw small { font: 500 10px var(--font-m); color: var(--dim); white-space: nowrap; } .lw.heavy i b { background: linear-gradient(90deg, var(--rust), var(--red)); } .lw.heavy small { color: var(--bad); }
.noise { font: 600 10px var(--font-m); letter-spacing: .12em; text-transform: uppercase; padding: 2px 6px; border: 1px solid currentColor; border-radius: 1px; white-space: nowrap; }
.noise.n-quiet { color: var(--good); } .noise.n-normal { color: var(--khaki); } .noise.n-loud { color: var(--rust-l); }
.dt-btns { margin-top: auto; } .dt-btns .btn { font-size: 15px; padding: 8px 14px; }
.dt-lock p { color: var(--dim); } .dt-lock b { color: var(--paper); }

/* dossier */
.sq-detail.dossier { background-color: #2b2a22; background-image: linear-gradient(180deg, rgba(226,217,192,.06), rgba(0,0,0,.18)), repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px); width: min(640px, 60vw); gap: 6px; }
.dz-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed var(--line); padding-bottom: 5px; }
.dz-stamp { font: 400 14px var(--font-d); letter-spacing: .14em; text-transform: uppercase; color: var(--rust-l); border: 2px solid var(--rust); padding: 1px 8px; transform: rotate(-2deg); }
.dz-no { font: 600 11px var(--font-m); letter-spacing: .12em; color: var(--dim); }
.dz-cols { flex: 1; display: flex; gap: 12px; min-height: 0; }
.dz-file { flex: 1.25; display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 0; } .dz-rec { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dz-top { display: flex; gap: 10px; }
.dz-photo { width: 92px; height: 108px; flex: none; background: #d8cfb5; border: 4px solid #ece4cd; box-shadow: 0 3px 6px rgba(0,0,0,.6); transform: rotate(-2deg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dz-photo canvas { width: 100%; height: auto; filter: sepia(.45) saturate(.7) contrast(1.05); } .dz-photo.red canvas { filter: brightness(0); opacity: .8; }
.dz-id { min-width: 0; flex: 1; } .dz-id h2 { font-size: 24px; color: var(--paper); line-height: 1; }
.dz-id dl { display: grid; grid-template-columns: 46px 1fr; gap: 1px 8px; margin: 5px 0 0; font-size: 12px; } .dz-id dt { font: 600 9px/17px var(--font-m); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); } .dz-id dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 17px; }
.redact { display: inline-block; height: .95em; max-width: 100%; background: #0b0b09; vertical-align: -2px; margin: 0 4px 3px 0; }
.rx { font: 600 11px var(--font-m); background: #0b0b09; color: var(--dim); padding: 0 4px; letter-spacing: .1em; }
.dz-text { font-size: 12.5px; line-height: 1.38; color: var(--paper); min-height: 0; overflow: hidden; } .dz-text p { margin: 0 0 5px; } .dz-text b { color: var(--khaki); font-weight: 600; }
.dz-text blockquote { margin: 4px 0 0; font: 400 14px var(--font-d); letter-spacing: .03em; color: var(--rust-l); }
.dz-find { margin: 0; font-size: 12px; color: var(--paper); border-left: 3px solid var(--rust); padding-left: 8px; } .dz-find b { color: var(--rust-l); }
.dz-rec small { display: block; font: 600 9px var(--font-m); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
.dz-sig, .dz-svc, .dz-mas { background: rgba(0,0,0,.22); border: 1px solid var(--line-d); padding: 6px 8px; border-radius: 2px; }
.dz-sig b { display: block; font: 400 15px var(--font-d); color: var(--amber); letter-spacing: .03em; } .dz-sig span { font-size: 12px; color: var(--paper); }
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; text-align: center; } .svc span { font: 500 9px var(--font-m); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; } .svc b { display: block; font: 600 18px var(--font-m); color: var(--paper); }
.dz-svc p { margin: 4px 0 0; font-size: 11px; color: var(--dim); }
.pips { display: flex; gap: 4px; margin: 2px 0 4px; } .pips i { width: 22px; height: 7px; background: #0c0d0a; border: 1px solid var(--line); } .pips i.on { background: var(--khaki); } .pips i.gold { background: var(--amber); }
.dz-mas span { display: block; font: 500 11px var(--font-m); color: var(--paper); } .dz-mas .mperk { color: var(--dim); }

/* gadgets + pickers */
.pick { position: relative; height: 100%; background: var(--panel2); background-image: var(--tex); border: 1px solid var(--line-d); border-bottom: 3px solid var(--rc, #555); border-radius: 2px; padding: 6px; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; gap: 2px; }
.pick > img { width: 60%; max-height: 46%; object-fit: contain; } .pick > .ifb { width: 46px; height: 46px; flex: none; }
.pick b { font: 400 13px var(--font-d); letter-spacing: .03em; } .pick small { font-size: 11px; color: var(--dim); line-height: 1.2; } .pick small.wn, .pick small.ph { font: 600 9px var(--font-m); letter-spacing: .08em; text-transform: uppercase; }
.ph-infil { color: var(--ice) !important; } .ph-both { color: var(--khaki) !important; } .ph-battle { color: var(--rust-l) !important; }
.pick.on { outline: 2px solid var(--rust-l); background-color: #3a3f28; } .pick.locked > img, .pick.locked .pf, .pick.locked > .ifb { filter: grayscale(.9) brightness(.55); }
.pick.skin.locked .pf { filter: none; } .pick .lk { position: absolute; top: 4px; right: 5px; font: 600 8px var(--font-m); letter-spacing: .1em; font-style: normal; color: var(--dim); background: var(--ink); padding: 1px 4px; }
.pick .pf { flex: 1; min-height: 0; display: flex; align-items: flex-end; } .pick .pf canvas { height: 100%; width: auto; max-width: 100%; }
.cnt { font: 600 11px var(--font-m); font-style: normal; color: var(--amber); }
.ti.big { font: 400 34px var(--font-d); flex: 1; display: flex; align-items: center; color: var(--dim); }

/* store */
#shop { gap: 6px; } .sbody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.stabs button { font-size: 13px; padding: 5px 10px; }
.sgrid { flex: 1; min-height: 0; }
.scard { position: relative; height: 100%; background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 14%, #2a2c25), #1f211b); border: 1px solid var(--line-d); border-bottom: 3px solid var(--rc); border-radius: 2px; padding: 6px; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; transition: border-color .15s; }
.scard:hover { border-color: var(--line); }
.scard .si { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; } .scard .si img { max-width: 80%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0,0,0,.5)) saturate(.75); } .scard .si .ifb { width: 54px; height: 54px; }
.scard .sl { height: 100%; display: flex; align-items: flex-end; justify-content: center; } .scard .sl canvas { height: 100%; width: auto; }
.scard b { font: 400 14px/1.1 var(--font-d); letter-spacing: .03em; } .scard small { font-size: 10.5px; color: var(--dim); }
.scard .price { margin-top: 4px; background: #14150f; color: var(--paper); border: 1px solid var(--line); padding: 2px 10px; font: 600 13px var(--font-m); border-radius: 1px; }
.scard.owned .price { color: var(--good); }
.off { position: absolute; top: 6px; left: 6px; background: var(--rust); color: #f3e8cf; padding: 1px 6px; font: 600 11px var(--font-m); font-style: normal; z-index: 1; border-radius: 1px; }
.odds { font-size: 10px; color: var(--dim); margin: 2px 0; line-height: 1.25; } .gc { font: 600 9px var(--font-m) !important; letter-spacing: .06em; text-transform: uppercase; }
.oddt { width: 100%; display: flex; flex-direction: column; gap: 2px; margin: 3px 0; } .oddt span { position: relative; display: flex; justify-content: space-between; font: 600 9.5px var(--font-m); text-transform: uppercase; letter-spacing: .06em; padding: 1px 5px; background: #14150f; overflow: hidden; }
.oddt i { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--rc, #888) 30%, transparent); } .oddt em, .oddt b { position: relative; font-style: normal; font-weight: 600; }
.was { font: 500 11px var(--font-m); color: var(--dim); }
.feat { flex: 1; display: flex; gap: 12px; min-height: 0; }
.fbig { width: min(340px, 38%); background-image: radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 65%), var(--tex); border: 1px solid var(--line); border-bottom: 4px solid var(--rc); border-radius: 3px; padding: 10px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; box-shadow: var(--shadow); }
.fbig small { font: 600 10px var(--font-m); letter-spacing: .16em; text-transform: uppercase; color: var(--rust-l); } .fbig b { font: 400 24px var(--font-d); letter-spacing: .04em; } .fbig > span { color: var(--dim); font-size: 13px; }
.fpic { flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: center; width: 100%; } .fpic canvas { max-height: 100%; width: auto; max-width: 100%; } .fpic img { max-height: 100%; max-width: 80%; object-fit: contain; align-self: center; }
.fside { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 0; overflow: hidden; } .fside h3 { font-size: 17px; letter-spacing: .08em; text-transform: uppercase; }
.deals { flex: 1; min-height: 0; }
.gift { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; background: linear-gradient(90deg, rgba(185,83,42,.38), rgba(29,31,26,.93) 70%); color: var(--paper); border: 1px solid var(--rust); border-left: 4px solid var(--rust-l); border-radius: 2px; padding: 6px 12px; cursor: pointer; text-align: left; font-family: var(--font-b); box-shadow: var(--shadow); }
.gift img, .gift > .ifb { width: 42px; height: 42px; flex: none; filter: saturate(.6); } .gift b { font: 400 18px var(--font-d); letter-spacing: .04em; display: block; } .gift small { font-size: 12px; color: var(--dim); }
.gift.used { filter: grayscale(.8); opacity: .6; border-color: var(--line); }
.mycrates { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; font: 600 12px var(--font-m); text-transform: uppercase; letter-spacing: .1em; } .mycrates .btn { font-size: 13px; padding: 5px 10px; }
.skhero { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.skhero button { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 2px; background: var(--panel2); cursor: pointer; overflow: hidden; }
.skhero button.on { outline: 2px solid var(--rust-l); background: #3a3f28; } .skhero button span { display: block; width: 100%; height: 100%; } .skhero canvas { width: 100%; height: 100%; }
.gemsp { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; } .gemsp > p { font: 400 18px var(--font-d); letter-spacing: .04em; color: var(--khaki); }
.gp { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.gpk { position: relative; width: 120px; background: var(--panel); background-image: var(--tex); border: 1px solid var(--line); border-bottom: 3px solid var(--amber); border-radius: 2px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.gpk img, .gpk > .ifb { width: 52px; height: 52px; } .gpk small { font: 600 9px var(--font-m); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); } .gpk b { font: 600 20px var(--font-m); color: var(--amber); }
.gpk i { position: absolute; top: -7px; right: -7px; background: var(--rust); padding: 0 5px; font: 600 10px var(--font-m); font-style: normal; border-radius: 1px; }
.gpk.best { border-color: var(--amber); } .gpk .btn { font-size: 13px; padding: 4px 12px; }
.earn { list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; } .earn li::before { content: '▸ '; color: var(--rust-l); }

/* season pass */
#pass { gap: 6px; }
.ph { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; } .ph small { font: 600 10px var(--font-m); letter-spacing: .16em; text-transform: uppercase; color: var(--rust-l); } .ph h2 { font-size: 28px; color: var(--paper); text-shadow: 0 3px 0 #000; }
.pxp { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 3px; } .pxp > b { font: 400 16px var(--font-d); letter-spacing: .05em; } .pxp i { height: 9px; } .pxp i b { background: linear-gradient(90deg, var(--rust), var(--rust-l)); } .pxp small { font: 500 11px var(--font-m); color: var(--dim); }
.premok { font: 400 15px var(--font-d); letter-spacing: .06em; text-transform: uppercase; color: var(--amber); border: 1px solid var(--amber); padding: 6px 12px; border-radius: 2px; }
.pbody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.trk { flex: 1; display: flex; gap: 6px; min-height: 0; }
.tlabels { width: 66px; display: flex; flex-direction: column; justify-content: space-around; padding-top: 30px; font: 600 10px var(--font-m); letter-spacing: .14em; text-align: center; color: var(--dim); }
.tlabels span:last-child { color: var(--amber); }
.tcols { flex: 1; display: flex; gap: 6px; min-height: 0; }
.tcol { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tn { display: flex; flex-direction: column; align-items: center; gap: 3px; } .tn > b { font: 600 13px/22px var(--font-m); width: 32px; height: 24px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 1px; } .tn i { width: 100%; height: 4px; background: #0c0d0a; overflow: hidden; display: block; } .tn i b { display: block; height: 100%; background: var(--rust-l); width: 0; border: 0; }
.tcol.got .tn > b { background: var(--khaki); color: var(--ink); } .tcol.cur .tn > b { background: var(--rust); color: #f3e8cf; border-color: var(--rust-l); }
.tr { position: relative; flex: 1; min-height: 0; background: var(--panel2); background-image: var(--tex); border: 1px solid var(--line-d); border-bottom: 3px solid var(--rc); border-radius: 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4px; cursor: pointer; overflow: hidden; }
.tr > img { width: 66%; max-height: 58%; object-fit: contain; filter: saturate(.75); } .tr > .ifb { width: 40px; height: 40px; } .tr small { font-size: 10.5px; line-height: 1.15; color: var(--paper); }
.tr .tl { flex: 1; min-height: 0; display: flex; align-items: flex-end; } .tr .tl canvas { height: 100%; width: auto; max-width: 100%; }
.tr.prem { background-color: #2c2a20; background-image: linear-gradient(180deg, rgba(214,160,70,.12), transparent), var(--tex); } .tr.lock > img, .tr.lock .tl, .tr.lock > .ifb { filter: grayscale(.7) brightness(.6); }
.tcol.got .tr.free, .tcol.got .tr.prem:not(.lock) { box-shadow: inset 0 0 0 1px var(--khaki); }
.ck { position: absolute; top: 3px; right: 4px; font-style: normal; color: var(--good); font: 400 14px var(--font-d); } .lk { position: absolute; top: 3px; right: 4px; font-style: normal; font-size: 12px; color: var(--dim); }
.chs { flex: 1; display: flex; gap: 12px; min-height: 0; } .chd { width: min(360px, 40%); } .chsn { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; } .chlist { flex: 1; min-height: 0; }
.chs h3 { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.chr { display: grid; grid-template-columns: 1fr 70px 64px 46px; gap: 6px; align-items: center; background: var(--panel); border: 1px solid var(--line-d); border-left: 3px solid var(--olive); border-radius: 2px; padding: 4px 8px; font-size: 12px; margin-bottom: 6px; height: 36px; }
.chr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .chr em { font: 500 11px var(--font-m); font-style: normal; text-align: right; color: var(--dim); } .chr small { font: 600 11px var(--font-m); color: var(--amber); text-align: right; }
.chr.done { opacity: .55; } .chr.done i b { background: var(--good); }
.chsn .chr { margin: 0; height: 100%; }

/* daily */
#daily { flex-direction: row; align-items: center; justify-content: center; gap: 14px; }
.daily-p { width: min(440px, 50vw); text-align: center; } .daily-p h2 { font-size: 30px; color: var(--paper); margin-top: 6px; } .daily-p p { font-size: 14px; }
.dmod { background: rgba(143,179,200,.12); border: 1px solid var(--ice); border-radius: 2px; padding: 8px; margin: 8px 0; } .dmod b { font: 400 20px var(--font-d); letter-spacing: .05em; display: block; color: var(--ice); } .dmod span { font-size: 13px; }
.board { width: min(340px, 40vw); } .board h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .08em; } .board ol { margin: 6px 0 0; padding-left: 26px; font: 500 13px var(--font-m); } .board li { padding: 3px 0; } .board li span { float: right; color: var(--dim); } .board li.me { color: var(--amber); }

/* battle HUD (built by game.js; restyled here) */
#hud { display: flex; justify-content: space-between; align-items: flex-start; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; gap: 8px; }
#hud .pill { pointer-events: auto; border: 1px solid var(--line); border-radius: 2px; padding: 6px 12px; font: 400 15px var(--font-d); letter-spacing: .05em; box-shadow: var(--shadow); color: var(--paper); }
.hud-r { display: flex; gap: 6px; align-items: flex-start; }
#hud .turn { background: var(--olive); background-image: var(--tex); text-transform: uppercase; } #hud .turn.enemy { background-color: var(--red); }
#hud .hint { font: 500 13px var(--font-b); max-width: 44vw; text-align: center; }
#hud .coins { display: flex; align-items: center; gap: 5px; font-family: var(--font-m); font-weight: 600; } .cc { width: 14px; height: 14px; background: linear-gradient(135deg, #cfc6a8, #6f6a56); border: 1px solid var(--ink); display: inline-block; transform: rotate(45deg); }
#hud .pause { cursor: pointer; font-family: var(--font-d); }
#banner { position: fixed; left: 0; right: 0; top: 30%; text-align: center; font: 400 clamp(32px, 6.5vw, 70px) var(--font-d); letter-spacing: .06em; text-transform: uppercase; color: var(--khaki); text-shadow: 0 4px 0 #000, 0 0 30px rgba(0,0,0,.7); pointer-events: none; opacity: 0; transform: scale(.94); transition: opacity .25s, transform .25s; z-index: 15; padding: 0 12px; }
#banner.show { opacity: 1; transform: scale(1); }
#banner small { display: block; font: 500 clamp(13px, 2vw, 20px) var(--font-b); letter-spacing: .04em; text-transform: none; color: var(--paper); margin-top: 6px; }
#banner.boss { color: #e0644e; } #banner.warn small { color: var(--amber); }
#bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); pointer-events: none; }
#bar > * { pointer-events: auto; }
.bar-row { display: flex; gap: 10px; align-items: flex-end; justify-content: center; }
#units { display: flex; gap: 8px; }
.unit { width: 150px; border: 1px solid var(--line); border-radius: 2px; padding: 6px; display: flex; gap: 8px; align-items: center; cursor: pointer; box-shadow: var(--shadow); transition: transform .12s, background-color .12s; }
.unit .ui { flex: 1; min-width: 0; }
.unit.sel { background-color: #3d4329; transform: translateY(-4px); outline: 2px solid var(--rust-l); }
.unit.done { opacity: .55; } .unit.ko { opacity: .4; filter: grayscale(1); }
.unit.marked { outline: 2px solid var(--red); box-shadow: 0 0 14px rgba(168,58,42,.8); }
.unit .face { width: 44px; height: 44px; border-radius: 2px; background: #c9c0a4; border: 1px solid var(--ink); overflow: hidden; flex: none; } .unit .face canvas { width: 100%; height: 100%; }
.unit b { font: 400 15px var(--font-d); letter-spacing: .04em; display: block; }
.unit .hp { height: 7px; background: #0c0d0a; overflow: hidden; margin-top: 3px; border: 1px solid #000; }
.unit .hp i { display: block; height: 100%; background: linear-gradient(#a8c47c, #5f7d3a); transition: width .3s; }
.unit .meta { font: 500 10px var(--font-m); color: var(--dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#acts .btn { font-size: 15px; padding: 7px 12px; min-width: 140px; text-align: left; }
#acts .btn small { display: block; font: 500 10px var(--font-b); letter-spacing: 0; text-transform: none; opacity: .85; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
#acts .btn.alt { background: linear-gradient(180deg, #4b4f43, #33362d); }
#acts .skill:not([disabled]) { background: linear-gradient(180deg, #d6a046, #a2722a); color: #1b1a12; text-shadow: none; }
#tools { display: flex; gap: 6px; align-items: center; }
.tool { position: relative; width: 48px; height: 48px; border-radius: 2px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; padding: 4px; box-shadow: var(--shadow); }
.tool img { width: 100%; height: 100%; object-fit: contain; } .tool i { position: absolute; bottom: -4px; right: -4px; background: var(--khaki); color: var(--ink); font: 600 11px/14px var(--font-m); font-style: normal; padding: 0 4px; border-radius: 1px; }
.tool.on { outline: 2px solid var(--rust-l); background: #3a3f28; } .tool[disabled] { filter: grayscale(1) brightness(.6); cursor: default; }
.tl { font: 600 11px var(--font-m); letter-spacing: .08em; text-transform: uppercase; background: rgba(20,21,17,.88); border-radius: 2px; padding: 2px 8px; }
#sqshield { position: fixed; left: 12px; bottom: calc(120px + env(safe-area-inset-bottom)); font: 600 15px var(--font-m); background: rgba(40,60,72,.92); border: 1px solid var(--ice); border-radius: 2px; padding: 4px 10px; }
#tip { position: fixed; padding: 6px 10px; background: rgba(20,21,17,.94); border: 1px solid var(--rust-l); border-radius: 2px; font-weight: 500; font-size: 13px; pointer-events: none; transform: translate(-50%, -130%); white-space: nowrap; z-index: 16; }
.float { position: fixed; font: 400 26px var(--font-d); color: #f1e9d4; text-shadow: 0 3px 0 #000, 0 0 6px #000; pointer-events: none; transform: translate(-50%, -50%); animation: rise 1.05s ease-out forwards; white-space: nowrap; z-index: 14; }
.float.crit { color: var(--amber); font-size: 34px; } .float.heal { color: var(--good); } .float.miss { color: #b9b6a8; font-size: 20px; } .float.note { color: var(--ice); font-size: 17px; } .float.hurt { color: var(--bad); }
@keyframes rise { 0% { opacity: 0; transform: translate(-50%, -30%); } 15% { opacity: 1; transform: translate(-50%, -60%); } 100% { opacity: 0; transform: translate(-50%, -170%); } }
.ehp { position: fixed; width: 64px; height: 7px; background: #0c0d0a; border: 1px solid #000; transform: translate(-50%, 0); pointer-events: none; overflow: hidden; }
.ehp i { display: block; height: 100%; background: linear-gradient(#d06a4e, #8e2c1e); transition: width .3s; }
.ehp.elite { border-color: var(--amber); } .ehp.elite i { background: linear-gradient(#e6c072, #a87a2a); }
.ehp.hidden-in-cover { opacity: .45; }
.ehp.boss { width: 180px; height: 14px; overflow: visible; } .ehp.boss span { position: absolute; left: 0; right: 0; top: -20px; text-align: center; font: 400 13px var(--font-d); letter-spacing: .05em; text-shadow: 0 2px 0 #000; white-space: nowrap; }
.ehp.shielded { box-shadow: 0 0 0 2px var(--ice), 0 0 10px var(--ice); } .ehp.exposed { box-shadow: 0 0 0 2px var(--amber), 0 0 12px var(--amber); }
#selArrow { position: fixed; width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 14px solid var(--rust-l); filter: drop-shadow(0 2px 0 #000); transform: translate(-50%, -100%); pointer-events: none; animation: arrow .7s ease-in-out infinite alternate; }
@keyframes arrow { to { margin-top: -6px; } }
.flycoin { position: fixed; width: 14px; height: 14px; background: linear-gradient(135deg, #cfc6a8, #6f6a56); border: 1px solid var(--ink); transform: translate(-50%, -50%) rotate(45deg); transition: left .6s cubic-bezier(.5,-0.4,.7,1), top .6s cubic-bezier(.3,0,.7,1.4), opacity .6s; z-index: 17; pointer-events: none; }
#rotate { position: fixed; left: 50%; top: 64px; transform: translateX(-50%); background: rgba(20,21,17,.9); border: 1px solid var(--line); border-radius: 2px; padding: 6px 12px; font: 500 12px var(--font-b); white-space: nowrap; pointer-events: none; transition: opacity .4s; z-index: 15; }

/* cut-ins, letterbox, boss card, flash */
#cutin { position: fixed; inset: 0; pointer-events: none; z-index: 18; display: flex; align-items: center; }
.ci-band { width: 100%; height: 140px; display: flex; align-items: center; gap: 18px; padding-left: 8vw; background: repeating-linear-gradient(-60deg, color-mix(in srgb, var(--c) 45%, #1b1d18) 0 26px, color-mix(in srgb, var(--c) 30%, #111) 26px 52px); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: translateX(-110%) skewY(-3deg); transition: transform .26s cubic-bezier(.2,.8,.3,1); box-shadow: 0 10px 20px rgba(0,0,0,.5); }
#cutin.show .ci-band { transform: translateX(0) skewY(-3deg); }
.ci-face { width: 140px; height: 140px; margin-top: -30px; filter: drop-shadow(4px 4px 0 #000); } .ci-face canvas { width: 100%; height: 100%; }
.ci-text { font: 400 clamp(32px, 6.5vw, 66px) var(--font-d); letter-spacing: .05em; text-transform: uppercase; color: #f1e9d4; text-shadow: 0 4px 0 #000; } .ci-text small { display: block; font-size: .36em; color: var(--khaki); text-shadow: 0 2px 0 #000; }
#letterbox i { position: fixed; left: 0; right: 0; height: 0; background: #000; transition: height .4s; z-index: 17; pointer-events: none; } #letterbox i:first-child { top: 0; } #letterbox i:last-child { bottom: 0; }
#letterbox.on i { height: 11vh; }
#bosscard { position: fixed; left: 50%; bottom: 14vh; transform: translate(-50%, 30px); opacity: 0; transition: all .4s; z-index: 19; text-align: center; pointer-events: none; width: min(560px, 92vw); }
#bosscard.on { opacity: 1; transform: translate(-50%, 0); }
#bosscard small { font: 600 13px var(--font-m); letter-spacing: .2em; text-transform: uppercase; background: var(--red); color: #f3e8cf; padding: 2px 12px; border: 1px solid var(--ink); }
#bosscard b { display: block; font: 400 clamp(36px, 7.5vw, 72px) var(--font-d); letter-spacing: .04em; color: #e0644e; text-shadow: 0 4px 0 #000; line-height: 1.05; margin-top: 6px; }
#bosscard span { font: 400 18px var(--font-d); color: var(--khaki); text-shadow: 0 3px 0 #000; } #bosscard p { text-shadow: 0 2px 3px #000; margin: 6px 0 0; }
#flash { position: fixed; inset: 0; background: #fff4e0; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 30; } #flash.on { opacity: .85; transition: none; }

/* toast */
#toast { position: fixed; left: 50%; top: calc(62px + env(safe-area-inset-top)); transform: translate(-50%, -20px); opacity: 0; transition: all .3s; z-index: 40; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-left: 4px solid var(--rust-l); border-radius: 2px; padding: 6px 14px; box-shadow: var(--shadow); pointer-events: none; max-width: 92vw; }
#toast.show { opacity: 1; transform: translate(-50%, 0); } #toast img, #toast .ifb { width: 38px; height: 38px; object-fit: contain; flex: none; } #toast b { font: 400 15px var(--font-d); letter-spacing: .04em; display: block; } #toast small { font-size: 12px; color: var(--dim); }
#toast.tier { border-left-color: var(--amber); }

/* modal */
#modal { position: fixed; inset: 0; z-index: 35; display: none; align-items: center; justify-content: center; background: rgba(8,9,7,.74); padding: 12px; }
#modal.show { display: flex; animation: fadein .15s; }
@keyframes fadein { from { opacity: 0; } }
.mbox { width: min(560px, 96vw); max-height: 96vh; border: 1px solid var(--line); border-top: 3px solid var(--rust); border-radius: 3px; padding: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.6); text-align: center; display: flex; flex-direction: column; gap: 4px; animation: slidein .18s ease-out; overflow: hidden; }
@keyframes slidein { from { transform: translateY(8px); opacity: .6; } }
.mbox h2 { font-size: 26px; color: var(--paper); } .mbox p { margin: 4px 0; } .mtext { font-size: 17px; }
#modal.picker .mbox { width: min(880px, 96vw); height: min(620px, 94vh); } .pk-grid { flex: 1; min-height: 0; }
.pb .mbox { width: min(680px, 96vw); }
.brief h2 { margin-top: 4px; }
.intel { display: flex; gap: 8px; text-align: left; } .intel > div { flex: 1; background: rgba(0,0,0,.25); border: 1px solid var(--line-d); border-left: 3px solid var(--khaki); padding: 5px 8px; font-size: 12px; border-radius: 2px; }
.intel b { display: block; font: 600 10px var(--font-m); letter-spacing: .14em; text-transform: uppercase; color: var(--khaki); } .intel .wxi { border-left-color: var(--ice); } .intel .wxi b { color: var(--ice); }
.bossline { background: rgba(168,58,42,.18); border: 1px solid var(--red); border-radius: 2px; padding: 6px 10px; font-size: 12.5px; text-align: left; } .bossline b { color: #e0644e; font-family: var(--font-d); font-weight: 400; font-size: 15px; letter-spacing: .04em; }
.pb-squad { display: flex; gap: 8px; justify-content: center; } .pb-h { flex: 1; min-width: 0; max-width: 210px; display: flex; flex-direction: column; align-items: center; gap: 2px; background: rgba(0,0,0,.18); border: 1px solid var(--line-d); padding: 4px; border-radius: 2px; }
.pbf { height: 92px; display: flex; align-items: flex-end; } .pbf canvas { height: 100%; width: auto; } .pb-h > b { font: 400 16px var(--font-d); letter-spacing: .04em; } .pb-h > b small { font: 500 11px var(--font-m); color: var(--dim); }
.lo { width: 100%; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: center; } .lo .gslots { display: flex; gap: 3px; }
.gs { position: relative; width: 30px; height: 30px; background: var(--panel2); border: 1px solid var(--line); border-radius: 2px; padding: 2px; display: flex; align-items: center; justify-content: center; font: 400 14px var(--font-d); color: var(--dim); }
.gs img { width: 100%; height: 100%; object-fit: contain; } .gs .ifb { min-width: 0; min-height: 0; width: 100%; height: 100%; font-size: 10px; border: 0; } .gs.empty { border-style: dashed; } .gs.out { opacity: .45; }
.lo .lw { min-width: 80px; } .lo.compact .lw { flex-basis: 100%; }
.pv { height: 180px; border-radius: 2px; background: radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--rc) 25%, transparent), transparent 65%), #1d1f19; border: 1px solid var(--line-d); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.pvpic { display: flex; align-items: flex-end; justify-content: center; height: 100%; gap: 0; } .pvpic canvas { height: 100%; width: auto; } .pvpic img { max-height: 90%; max-width: 70%; align-self: center; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0,0,0,.5)); } .pvpic .ifb { align-self: center; width: 80px; height: 80px; font-size: 28px; }
.bitems { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tile { width: 92px; background: var(--panel2); border: 1px solid var(--line-d); border-bottom: 3px solid var(--rc); border-radius: 2px; padding: 4px; } .tile .ti img, .tile .ti .ifb { width: 50px; height: 50px; object-fit: contain; } .tile b { display: block; font-size: 11px; font-weight: 600; }
.gi { height: 120px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, color-mix(in srgb, var(--rc) 22%, transparent), transparent 70%); } .gi img { max-height: 100%; max-width: 70%; }
.set { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line-d); font-weight: 500; }
.set input { font: 500 15px var(--font-m); padding: 6px 10px; border-radius: 2px; border: 1px solid var(--line); background: #11120e; color: var(--paper); width: 190px; }
/* supply drop + reveal */
.crate { position: relative; height: 190px; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; padding-bottom: 6px; } .crate img, .crate > .ifb { height: 120px; width: 120px; object-fit: contain; filter: drop-shadow(0 8px 6px rgba(0,0,0,.55)) saturate(.7); }
.crate .chute { position: absolute; top: 0; left: 50%; width: 120px; height: 46px; margin-left: -60px; border-radius: 60px 60px 6px 6px; background: repeating-linear-gradient(90deg, #6b6e52 0 20px, #575a42 20px 40px); box-shadow: 0 3px 0 rgba(0,0,0,.4); }
.crate.drop img, .crate.drop > .ifb, .crate.drop .chute { animation: dropin .9s cubic-bezier(.25,.6,.35,1) both; }
.crate.drop .chute { animation-name: chutein; }
@keyframes dropin { from { transform: translateY(-120px); opacity: 0; } 70% { opacity: 1; } }
@keyframes chutein { from { transform: translateY(-120px); opacity: 0; } 75% { transform: translateY(0); opacity: 1; } to { transform: translateY(-20px); opacity: 0; } }
.crate.burst img, .crate.burst > .ifb { animation: burst .5s forwards; }
@keyframes burst { 50% { transform: scale(1.12); filter: brightness(1.8); } 100% { transform: scale(1.3); opacity: 0; filter: brightness(2.4); } }
.rv { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 8px 0; }
.rvc { width: 130px; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 25%, transparent), transparent 70%), var(--panel2); border: 1px solid var(--line-d); border-bottom: 3px solid var(--rc); border-radius: 2px; padding: 8px; animation: dealin .4s backwards; }
.rvc .ti img, .rvc .ti .ifb { width: 80px; height: 80px; object-fit: contain; } .rvc b { display: block; font-size: 12.5px; font-weight: 600; } .rvc small { font: 600 10px var(--font-m); letter-spacing: .12em; text-transform: uppercase; }
@keyframes dealin { from { transform: translateY(12px); opacity: 0; } }
#modal.reveal.legend .mbox { box-shadow: 0 0 0 1px var(--c-legendary), 0 0 40px rgba(227,162,72,.45); border-top-color: var(--c-legendary); } #modal.reveal.epic .mbox { box-shadow: 0 0 0 1px var(--c-epic), 0 0 30px rgba(180,138,208,.35); border-top-color: var(--c-epic); }

/* result */
#result { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: radial-gradient(ellipse at center, rgba(14,15,12,.7), rgba(8,9,7,.92)); text-align: center; padding: 14px; }
#result h2 { font-size: clamp(32px, 6.5vw, 64px); letter-spacing: .06em; text-transform: uppercase; color: var(--khaki); text-shadow: 0 4px 0 #000; } #result h2.lost { color: #c9705a; }
#result .stars i { font: 400 46px var(--font-d); color: #3e3e36; font-style: normal; margin: 0 4px; text-shadow: 0 3px 0 #000; display: inline-block; animation: dealin .4s backwards; } #result .stars i.on { color: var(--amber); }
#result .stars i:nth-child(2) { animation-delay: .2s; } #result .stars i:nth-child(3) { animation-delay: .4s; }
#result p { margin: 0; font-size: 14px; }
.infil-out { font: 400 18px var(--font-d) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--khaki); border: 1px solid currentColor; padding: 3px 12px; } .infil-out.good { color: var(--good); } .infil-out.bad { color: var(--bad); }
.rew { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 900px; }
.rw { width: 120px; background: var(--panel); background-image: var(--tex); border: 1px solid var(--line-d); border-bottom: 3px solid var(--rc, var(--line)); border-radius: 2px; padding: 6px; display: flex; flex-direction: column; align-items: center; animation: dealin .35s backwards; }
.rw img, .rw > .ifb { width: 42px; height: 42px; object-fit: contain; } .rw b { font: 600 16px var(--font-m); } .rw small { font-size: 11px; color: var(--dim); }
.rf canvas { width: 42px; height: 42px; border-radius: 2px; }

/* ---------------- small screens ---------------- */
@media (max-width: 760px), (max-height: 520px) {
  :root { --top: calc(48px + env(safe-area-inset-top)); }
  #topbar button, .tb-cur { font-size: 13px; padding: 3px 7px; } .tb-cur img, .tb-cur .ifb { width: 18px; height: 18px; } .tb-pass i { width: 58px; } .tb-title { font-size: 14px; }
  .btn { font-size: 15px; padding: 8px 13px; } .btn.big { font-size: 22px; padding: 10px 30px; }
  .hbtn { padding: 7px 10px; gap: 8px; } .hbtn img, .hbtn > .ifb { width: 36px; height: 36px; } .hbtn b { font-size: 17px; } .hbtn.big b { font-size: 20px; } .hbtn small { font-size: 11px; }
  .unit { width: 120px; padding: 4px; gap: 5px; } .unit .face { width: 32px; height: 32px; } .unit b { font-size: 13px; }
  #acts .btn { min-width: 112px; font-size: 13px; padding: 5px 8px; } #acts .btn small { display: none; }
  .tool { width: 40px; height: 40px; }
  .map-panel h2 { font-size: 21px; } .mrow { padding: 4px 8px; } .mn { width: 24px; height: 24px; font-size: 14px; line-height: 24px; } .mt b { font-size: 14px; }
  .sq-detail { padding: 8px; } .dt-pic { width: 110px; } .dt-info h2 { font-size: 21px; } .dt-info p { display: none; }
  .ci-band { height: 104px; } .ci-face { width: 104px; height: 104px; }
  .mbox { padding: 10px; } .mbox h2 { font-size: 22px; }
  .dz-text { font-size: 11.5px; line-height: 1.32; } .dz-photo { width: 74px; height: 88px; } .dz-id h2 { font-size: 19px; }
}
/* phones held upright: stack things */
@media (orientation: portrait) and (max-width: 760px) {
  #hub { flex-direction: column; justify-content: flex-start; padding-top: calc(var(--top) + 6px); }
  .hub-l, .hub-r { width: 100%; } .hub-r { margin-top: auto; } .hub-logo.wordmark { align-self: center; }
  #map { flex-direction: column; } .map-art { flex: 1; min-height: 0; } .map-panel { width: 100%; flex: none; overflow: hidden; }
  .map-art:has(+ .map-panel:not(.hidden)) { flex: none; height: 36vh; }
  .pin .pl b { font-size: 11px; } .pin .pl small { font-size: 9px; } .standee canvas { height: 44px; left: -46px; }
  .mt small { font-size: 11px; } .wx span { display: none; }
  .sq-body { flex-direction: column; } .sq-list { flex: 1; } .sq-detail { width: 100% !important; flex: none; } .sq-slot { width: 60px; height: 60px; } .sf canvas { width: 42px; height: 42px; }
  .dt-slots { grid-template-columns: repeat(3, 1fr); } .eslot .ti { width: 28px; height: 28px; } .dt-moves { display: none; }
  .gslot { width: 38px; height: 38px; }
  .dz-cols { flex-direction: column; gap: 6px; } .dz-rec { flex-direction: row; flex-wrap: wrap; gap: 5px; } .dz-sig { flex: 1 1 45%; } .dz-mas { flex: 1 1 45%; } .dz-svc { flex: 1 1 100%; order: -1; }
  .dz-text p:first-child { display: none; } .dz-sig span, .dz-mas .mperk { display: none; }
  .feat { flex-direction: column; } .fbig { width: 100%; flex: none; height: 31vh; padding: 6px; } .fbig b { font-size: 19px; } .fbig .btn { padding: 5px 14px; }
  .hf canvas { width: 46px; height: 46px; }
  .pb-squad { gap: 4px; } .pbf { height: 70px; } .intel { flex-direction: column; gap: 4px; } .lo .lw small { font-size: 9px; }
  .chs { flex-direction: column; } .chd { width: 100%; }
  .gpk { width: 30%; padding: 4px; } .gpk img, .gpk > .ifb { width: 34px; height: 34px; } .gpk b { font-size: 15px; } .gp { gap: 6px; } .earn { font-size: 12px; gap: 3px 10px; } .gemsp { gap: 6px; } .gemsp > p { font-size: 15px; }
  #daily { flex-direction: column; } .daily-p, .board { width: 100%; }
  #bar { align-items: stretch; } .bar-row { flex-direction: column; align-items: stretch; gap: 6px; width: 100%; } #tools { justify-content: center; } #units { justify-content: space-between; gap: 5px; } .unit { width: 32.5%; min-width: 0; }
  #acts { grid-template-columns: repeat(4, 1fr); } #acts .btn { min-width: 0; text-align: center; padding: 8px 2px; }
  #hud .hint { display: none !important; } #hud .pill { font-size: 13px; padding: 4px 8px; } #where { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tlabels { width: 26px; font-size: 9px; writing-mode: vertical-rl; transform: rotate(180deg); }
}
@media (orientation: landscape), (min-width: 761px) { #rotate { display: none; } }
@media (max-width: 400px) {
  #topbar { gap: 4px; padding-left: 6px; padding-right: 6px; } .tb-cur b { min-width: 0; } .tb-pass i { width: 40px; } #topbar button, .tb-cur { padding: 3px 5px; font-size: 12px; } .tb-title { display: none; }
}
@media (orientation: portrait) and (max-width: 760px) and (max-height: 700px) { .map-art:has(+ .map-panel:not(.hidden)) { height: 26vh; } .mrow { padding: 2px 8px; } .map-panel { gap: 4px; padding: 8px; } .wx { display: none; } .pbf { height: 56px; } .pb-h > b { font-size: 13px; } }
@media (max-height: 520px) and (orientation: landscape) {
  .map-panel { gap: 3px; padding: 8px; } .map-panel h2 { font-size: 19px; } .wx { display: none; } .mrow { padding: 2px 8px; } .mt small { font-size: 10.5px; }
  .page { padding-top: var(--top); } #hub { padding: var(--top) 12px 10px; }
  .hub-l, .hub-r { gap: 7px; } .hub-logo.wordmark b:first-child { font-size: 30px; } .hub-logo.wordmark b:nth-child(2) { font-size: 13px; }
  #title .wordmark b:first-child { font-size: 52px; }
  .unit { width: 118px; } #bar { padding-bottom: 4px; gap: 4px; } .bar-row { gap: 6px; }
  .dt-top { max-height: 40vh; } .tr small { font-size: 9px; } .dt-gear { padding: 3px 6px; } .gslot { width: 34px; height: 34px; } .eslot .ti { width: 28px; height: 28px; }
  .dz-text { font-size: 11px; } .dz-text p:first-child { display: none; } .dz-photo { width: 62px; height: 74px; } .dz-sig span { display: none; } .dz-svc p { display: none; } .svc b { font-size: 15px; }
  #result .stars i { font-size: 32px; } .rw { width: 96px; padding: 3px; } .rw img, .rw > .ifb { width: 30px; height: 30px; }
  .pbf { height: 58px; } .intel > div { font-size: 11px; } .mbox { gap: 2px; } .pb .mbox .sub { margin: 2px 0; } .bossline { font-size: 11px; padding: 3px 8px; }
}
/* phones: compact results and briefings */
@media (max-width: 760px) {
  #result { gap: 6px; padding: 10px; } #result h2 { font-size: 30px; } #result .stars i { font-size: 34px; } #result p { font-size: 12.5px; } .infil-out { font-size: 14px !important; }
  .rew { gap: 5px; } .rw { width: calc(33.3% - 4px); padding: 3px; } .rw img, .rw > .ifb, .rf canvas { width: 30px; height: 30px; } .rw b { font-size: 13px; } .rw small { font-size: 10px; }
  #result .row { margin-top: 4px; gap: 6px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .pb .brief .stamp { display: none; } .pb .mbox h2 { font-size: 19px; }
  .pb-h { display: grid; grid-template-columns: 50px 1fr; align-items: center; column-gap: 4px; } .pb-h .pbf { grid-row: span 2; height: 62px; justify-content: center; } .pb-h > b { text-align: left; }
  .lo.compact { justify-content: flex-start; } .lo.compact .lw { flex: 1 1 60px; min-width: 50px; }
  .intel > div { padding: 3px 6px; }
  #result h2 { font-size: 30px; } .infil-out { font-size: 14px !important; }
}
@media (orientation: portrait) and (max-width: 760px) {
  .stabs button { font-size: 12px; padding: 4px 8px; }
}
@media (orientation: portrait) and (max-width: 760px) and (max-height: 760px) {
  .sq-slots { display: none; } .dz-svc p, .dz-find { font-size: 11px; } .dz-text { font-size: 11px; } .dz-id dl { font-size: 11px; } .dz-id dt, .dz-id dd { line-height: 15px; }
  .dz-photo { width: 64px; height: 76px; } .dz-head { padding-bottom: 3px; } .dz-stamp { font-size: 12px; }
}
@media (orientation: portrait) and (max-width: 1100px) {
  #map { flex-direction: column; } .map-art { flex: 1; min-height: 0; } .map-panel { width: 100%; flex: none; overflow: hidden; }
  .pin:not(.on) .pl small { display: none; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .dt-top { overflow: hidden; } .dt-moves { display: none; } .srow { margin: 1px 0; }
  .pin:not(.on) .pl small { display: none; }
}
