/* fb_run.css — 「野帳」 reskin P3 (reference/ui-fieldbook/DESIGN.md §4.5–4.7, §5): run HUD, BOSS gauge, minimap frame,
   skill bar, DPS panel, left feed + banners, ship button, card draft (incl. r47 ol.ic-chg.h7-chg), pause, settle, BOSS chest open.
   Add-only layer: every selector starts with html.fb; nothing here changes width / transform / --* values that JS writes.
   Needs fb_tokens.css (html.fb custom properties). Without html.fb (?skin=legacy, localStorage.fbSkin='0') nothing applies.
   !important: 3 declarations, all background-image:none on the BOSS gauge art that boss_gauge.js writes as inline style
   (.ih-mg-ico, .ih-mg-bar b/span, .ih-mg-g i). No width / transform / --* value is overridden. */

/* ---------- shared bits (local copies of the mockup recipes; names stay inside this file) ---------- */
@keyframes fb-press{0%{transform:rotate(var(--fb-rot,-6deg)) scale(1.8);opacity:0}55%{transform:rotate(var(--fb-rot,-6deg)) scale(.93);opacity:1}100%{transform:rotate(var(--fb-rot,-6deg)) scale(1);opacity:.92}}

/* ============================================================ 4.5 run HUD ============================================================ */
/* status plate (.st-hud is scaled with transform:scale(var(--st)) by style.css; untouched) */
html.fb #hud-run .st-hud{background:var(--fb-slip);border:2px solid var(--fb-ink);border-radius:2px;box-shadow:3px 3px 0 var(--fb-ink)}
html.fb #hud-run .st-hud .st-bg{display:none}
html.fb #hud-run #run-lv.st-lvn{left:5px;top:5px;height:34px;min-width:34px;padding:0 7px;display:flex;align-items:center;justify-content:center;
  background:var(--fb-weave),var(--fb-cover);border:1.5px solid var(--fb-ink);color:var(--fb-foil-lite);font:700 16px/1 var(--fb-num);letter-spacing:.02em;text-shadow:none}
html.fb #hud-run #run-lv.st-lvn::before{font:700 10px/1 var(--fb-num);margin-right:2px;color:var(--fb-foil)}
html.fb #hud-run .st-hp,html.fb #hud-run .st-xp{border:2px solid var(--fb-ink);border-radius:0;background:var(--fb-page-2)}
html.fb #hud-run .st-hp{top:9px;height:15px}
html.fb #hud-run .st-xp{top:27px;height:11px}
html.fb #hud-run .st-hp i{background:var(--fb-seal)}
html.fb #hud-run .st-xp i{background:var(--fb-foil)}
html.fb #hud-run .st-hp::before,html.fb #hud-run .st-xp::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(90deg,transparent 0 calc(25% - 1px),rgba(28,43,42,.45) calc(25% - 1px) 25%)}
html.fb #hud-run .st-hp span,html.fb #hud-run .st-xp span{z-index:1;color:#fff;font-family:var(--fb-num);font-weight:700;letter-spacing:.03em;
  text-shadow:-1px 0 var(--fb-ink),1px 0 var(--fb-ink),0 -1px var(--fb-ink),0 1px var(--fb-ink)}
html.fb #hud-run .st-hp span{font-size:10.5px;line-height:11px}
html.fb #hud-run .st-xp span{font-size:8px;line-height:7px}

/* meso / kill tally (r47 .h7-tally): two slips */
html.fb #hud-run .run-counts{text-shadow:none;color:var(--fb-ink)}
html.fb #hud-run .run-counts span{background:var(--fb-slip);border:1.5px solid var(--fb-ink);border-radius:2px;box-shadow:2px 2px 0 var(--fb-ink);padding:1px 7px 1px 4px}
html.fb #hud-run .run-counts img{filter:none}
html.fb #hud-run .run-counts b{font-family:var(--fb-num);font-weight:700;color:var(--fb-ink)}
html.fb #hud-run .run-counts .h7-meso b{color:var(--fb-foil-deep)}
html.fb #hud-run .run-counts .h7-kill b{color:var(--fb-ink)}
html.fb #hud-run .run-counts .h7-gain{font-family:var(--fb-num);font-weight:700;color:var(--fb-cover)}
html.fb #hud-run .run-counts .h7-gain:empty{min-width:0}
html.fb #hud-run #run-buffs{color:var(--fb-ink);text-shadow:none;font:600 12px/1.4 var(--fb-text)}
html.fb #hud-run #run-buffs:not(:empty){background:var(--fb-slip);border:1.5px solid var(--fb-ink);border-radius:2px;padding:1px 7px;box-shadow:2px 2px 0 var(--fb-ink)}

/* timer: cloth plaque (art removed), gold digits */
html.fb #hud-run .timer-plaque{width:calc(156px * var(--a,1));height:calc(50px * var(--a,1));padding:0;background:var(--fb-weave),var(--fb-cover);
  border:2px solid var(--fb-ink);border-radius:2px;box-shadow:3px 3px 0 var(--fb-ink);outline:1px dashed rgba(240,217,138,.55);outline-offset:-6px;image-rendering:auto}
html.fb #hud-run #run-timer{font-family:var(--fb-num);font-weight:700;color:var(--fb-foil-lite);letter-spacing:.06em;text-shadow:none;font-variant-numeric:tabular-nums}
html.fb #hud-run #run-bossleft{color:var(--fb-ink);text-shadow:none;font:700 12px/1.3 var(--fb-text)}
html.fb #hud-run #run-bossleft:not(:empty){display:inline-block;margin-top:7px;padding:4px 16px;background:rgba(246,224,94,.94);transform:rotate(-.6deg);
  clip-path:polygon(0 0,100% 0,calc(100% - 4px) 25%,100% 50%,calc(100% - 4px) 75%,100% 100%,0 100%,4px 75%,0 50%,4px 25%)}

/* BOSS gauge (boss_gauge.js): the art is written into inline background-image, so it is cleared with !important; sizes, --w, --nk and the fill width stay JS-owned */
html.fb #run-bossgauge{text-shadow:none}
html.fb #run-bossgauge .ih-mg-ico{background-image:none!important;background-color:var(--fb-slip);border:2px solid var(--fb-ink);border-radius:50%;box-shadow:2px 2px 0 var(--fb-ink)}
html.fb #run-bossgauge .ih-mg-ico i{left:3px;top:4px}
html.fb #run-bossgauge .ih-mg-bar{margin-left:3px}
html.fb #run-bossgauge .ih-mg-bar b,html.fb #run-bossgauge .ih-mg-bar span{background-image:none!important}
html.fb #run-bossgauge .ih-mg-g{left:0;right:0;top:0;height:20px;border:3px solid var(--fb-ink);background:var(--fb-page-2);box-shadow:3px 3px 0 var(--fb-ink)}
html.fb #run-bossgauge .ih-mg-g i{background-image:none!important}
html.fb #run-bossgauge .ih-mg-g i.bg{background-color:var(--fb-page-2)}
html.fb #run-bossgauge .ih-mg-g i.fg{background-color:var(--fb-seal)}
html.fb #run-bossgauge .ih-mg-g::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(90deg,transparent 0 calc(10% - 1px),rgba(28,43,42,.5) calc(10% - 1px) 10%)}
html.fb #run-bossgauge .ih-boss-n,html.fb #run-bossgauge .ih-bx-n{font-family:var(--fb-display);font-weight:900;color:#fff;letter-spacing:.06em;
  text-shadow:-1px 0 var(--fb-ink),1px 0 var(--fb-ink),0 -1px var(--fb-ink),0 1px var(--fb-ink),1px 1px var(--fb-ink),-1px -1px var(--fb-ink),1px -1px var(--fb-ink),-1px 1px var(--fb-ink)}
html.fb #run-bossgauge .ih-boss-p,html.fb #run-bossgauge .ih-bx-p{display:inline-block;padding:0 5px;font-family:var(--fb-num);font-weight:700;color:var(--fb-foil-lite);
  background:var(--fb-cover);border:1.5px solid var(--fb-ink);text-shadow:none;line-height:1.35}
html.fb #run-bossgauge .ih-boss-p{margin-left:6px}

/* top-right icons (🎒 ☰ become line icons: font-size 0 + data-URI SVG) */
html.fb #hud-run .run-icons button{width:32px;height:32px;margin-left:6px;padding:0;font-size:0;color:transparent;border-radius:2px;border:2px solid var(--fb-ink);
  background:var(--fb-slip) center/20px 20px no-repeat;box-shadow:2px 2px 0 var(--fb-ink);vertical-align:top}
html.fb #hud-run .run-icons button:active{transform:translate(2px,2px);box-shadow:none}
html.fb #hud-run #btn-bag{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C2B2A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9h12l-1 11H7z'/%3E%3Cpath d='M9 9V7a3 3 0 0 1 6 0v2'/%3E%3Cpath d='M9.5 13h5'/%3E%3C/svg%3E")}
html.fb #hud-run #btn-pause{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C2B2A' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 7h14M5 12h14M5 17h14'/%3E%3C/svg%3E")}
@media (pointer:coarse){html.fb #hud-run .run-icons button{width:40px;height:40px;background-size:24px 24px}}

/* minimap: frame only, canvas content untouched */
html.fb #hud-run #minimap{border:2px solid var(--fb-ink);border-radius:2px;background:rgba(21,58,48,.62);box-shadow:3px 3px 0 var(--fb-ink)}
html.fb #hud-run #run-ship{background:var(--fb-slip);border:1.5px solid var(--fb-ink);border-radius:2px;box-shadow:2px 2px 0 var(--fb-ink);color:var(--fb-ink);font:700 12px/1.3 var(--fb-num);letter-spacing:.02em}

/* ship button #btn-ship: round slip, red ring (conic angle stays var(--hp)) */
html.fb #run-passive .qbtn{border-radius:50%}
html.fb #run-passive .ring{background:conic-gradient(var(--fb-seal) calc(var(--hp,1) * 360deg),var(--fb-page-2) 0);border:2px solid var(--fb-ink);box-shadow:3px 3px 0 var(--fb-ink)}
html.fb #run-passive .qbtn.low .ring{background:conic-gradient(var(--fb-seal-deep) calc(var(--hp,1) * 360deg),var(--fb-ink-3) 0)}
html.fb #run-passive .ico{inset:6px;background:url("assets/ui/ship-icon.png") center/58% no-repeat,var(--fb-slip);border:2px solid var(--fb-ink);box-shadow:none}
html.fb #run-passive .qbtn.on .ico{background:url("assets/ui/ship-icon.png") center/58% no-repeat,var(--fb-marker)}
html.fb #run-passive .qbtn b{border-radius:0;background:var(--fb-slip);border:1.5px solid var(--fb-ink);color:var(--fb-ink);-webkit-text-stroke:0;font:700 11px/16px var(--fb-text);letter-spacing:.06em;padding:0 6px;box-shadow:2px 2px 0 var(--fb-ink)}
html.fb #run-passive .qbtn.on b{background:var(--fb-weave),var(--fb-cover);border-color:var(--fb-ink);color:var(--fb-foil-lite);-webkit-text-stroke:0}
html.fb #run-passive .qbtn kbd{border-radius:0;background:var(--fb-cover);color:var(--fb-foil-lite);border:1.5px solid var(--fb-ink);font:700 10px/13px var(--fb-num);width:17px;height:17px}
html.fb #run-passive .qbtn:focus-visible{outline:2px solid var(--fb-marker);outline-offset:2px}

/* skill bar */
html.fb #hud-run .slot-skill{background:var(--fb-slip);border:2px solid var(--fb-ink);border-radius:2px;box-shadow:2px 2px 0 var(--fb-ink);overflow:visible}
html.fb #hud-run .slot-skill img{left:14%;top:12%;width:72%;height:72%}
html.fb #hud-run .slot-skill .cd{inset:0;display:grid;place-items:center;font:700 13px/1 var(--fb-num);color:#fff;
  background:repeating-linear-gradient(45deg,rgba(28,43,42,.62) 0 3px,rgba(28,43,42,.38) 3px 6px);
  text-shadow:-1px 0 var(--fb-ink),1px 0 var(--fb-ink),0 -1px var(--fb-ink),0 1px var(--fb-ink)}
html.fb #hud-run .slot-skill .lv{right:-5px;top:auto;bottom:-6px;z-index:1;padding:0 3px;font:700 9px/12px var(--fb-num);color:var(--fb-foil-lite);background:var(--fb-cover);border:1.5px solid var(--fb-ink);text-shadow:none;white-space:nowrap}
html.fb #hud-run .slot-skill.passive{box-shadow:2px 2px 0 var(--fb-ink);border-style:dashed}

/* DPS panel (--ixk, --push and the scaleX of each u stay JS-owned) */
html.fb #hud-run .ix-dmg{color:var(--fb-ink);text-shadow:none;background:var(--fb-slip);border:1.5px solid var(--fb-ink);border-radius:2px;box-shadow:3px 3px 0 var(--fb-ink);
  padding:calc(4px * var(--ixk)) calc(6px * var(--ixk)) calc(5px * var(--ixk));font-family:var(--fb-num)}
html.fb #hud-run .ix-dmg .hd{justify-content:space-between;border-bottom:1px dashed var(--fb-rule);padding-bottom:calc(2px * var(--ixk))}
html.fb #hud-run .ix-dmg .hd em{font:900 calc(10px * var(--ixk))/1.1 var(--fb-display);letter-spacing:.08em;opacity:1;color:var(--fb-ink);padding:0 3px;
  background:linear-gradient(transparent 55%,var(--fb-marker) 55% 92%,transparent 92%)}
html.fb #hud-run .ix-dmg .hd b{font-family:var(--fb-num);font-weight:700;color:var(--fb-cover)}
html.fb #hud-run .ix-dmg .r span{color:var(--fb-ink-2);font-family:var(--fb-text);text-align:left}
html.fb #hud-run .ix-dmg .r b{color:var(--fb-ink);font-family:var(--fb-num)}
html.fb #hud-run .ix-dmg .r i{border-radius:0;background:var(--fb-page-2);outline:1px solid rgba(28,43,42,.35)}
html.fb #hud-run .ix-dmg .r u{border-radius:0;background:var(--fb-foil-deep)}
html.fb #hud-run .ix-dmg .r:nth-child(2) u{background:var(--fb-blue)}
html.fb #hud-run .ix-dmg .r:nth-child(3) u{background:var(--fb-t0)}
html.fb #hud-run .ix-dmg .r:nth-child(4) u{background:var(--fb-t2)}

/* left feed (#run-feed in the app, #tr-hud .ix-feed in the temple scene): narrow slip rows, tier = colour edge */
html.fb #run-feed,html.fb #tr-hud .ix-side{text-shadow:none}
html.fb #run-feed .ix-row,html.fb #tr-hud .ix-row{background:rgba(251,252,247,.94);border:1.5px solid var(--fb-ink);border-left:4px solid var(--fb-ink-2);border-radius:2px;
  padding-right:calc(8px * var(--ixk));box-shadow:2px 2px 0 rgba(28,43,42,.85)}
html.fb #run-feed .ix-row img,html.fb #tr-hud .ix-row img{filter:none}
html.fb #run-feed .ix-row .tx,html.fb #tr-hud .ix-row .tx{color:var(--fb-ink);font-family:var(--fb-text)}
html.fb #run-feed .ix-row em,html.fb #tr-hud .ix-row em{color:var(--fb-foil-deep);font-family:var(--fb-num);font-weight:700}
html.fb #run-feed .ix-row.good,html.fb #tr-hud .ix-row.good{border-left-color:var(--fb-foil)}
html.fb #run-feed .ix-row.good .tx,html.fb #tr-hud .ix-row.good .tx{color:var(--fb-ink)}
html.fb #run-feed .ix-row.warn,html.fb #tr-hud .ix-row.warn{border-left-color:var(--fb-seal)}
html.fb #run-feed .ix-row.warn .tx,html.fb #tr-hud .ix-row.warn .tx{color:var(--fb-seal-deep)}
html.fb #run-feed .ix-row.gear.t0{border-left-color:var(--fb-t0)}
html.fb #run-feed .ix-row.gear.t1{border-left-color:var(--fb-t1)}
html.fb #run-feed .ix-row.gear.t2{border-left-color:var(--fb-t2)}
html.fb #run-feed .ix-row.gear.t3{border-left-color:var(--fb-t3)}
html.fb #run-feed .ix-row.gear.t4{border-left-color:var(--fb-t4)}
html.fb #run-feed .ix-row.gear .tx,html.fb #run-feed .ix-row.gear.t0 .tx,html.fb #run-feed .ix-row.gear.t1 .tx,html.fb #run-feed .ix-row.gear.t2 .tx,
html.fb #run-feed .ix-row.gear.t3 .tx,html.fb #run-feed .ix-row.gear.t4 .tx{color:var(--fb-ink)}
html.fb #run-feed .ix-row.gear.t2,html.fb #run-feed .ix-row.gear.t3,html.fb #run-feed .ix-row.gear.t4{background:var(--fb-slip);border-left-width:6px}

/* banners (#run-ann, #tr-hud .ix-ann): white display letters with a hard ink outline, gold rule lines, subtitle on tape. Timeline (ixann) kept. */
html.fb #run-ann,html.fb #tr-hud .ix-ann{text-shadow:none}
html.fb #run-ann .ix-ann-in,html.fb #tr-hud .ix-ann-in{--c:var(--fb-foil)}
html.fb #run-ann .ix-ann-in.boss,html.fb #run-ann .ix-ann-in.warn,html.fb #tr-hud .ix-ann-in.boss,html.fb #tr-hud .ix-ann-in.warn{--c:var(--fb-seal)}
html.fb #run-ann .ix-ann-in.intro,html.fb #tr-hud .ix-ann-in.intro{--c:var(--fb-foil-lite)}
html.fb #run-ann .ix-ann-in::before,html.fb #run-ann .ix-ann-in::after,html.fb #tr-hud .ix-ann-in::before,html.fb #tr-hud .ix-ann-in::after{
  height:calc(2px * var(--ixk));background:var(--c);opacity:1;box-shadow:1px 1px 0 var(--fb-ink)}
html.fb #run-ann .ix-ann-in b,html.fb #tr-hud .ix-ann-in b{font-family:var(--fb-display)}
html.fb #run-ann .ix-ann-in b::before,html.fb #tr-hud .ix-ann-in b::before{color:var(--fb-ink);-webkit-text-stroke-color:var(--fb-ink);text-shadow:calc(2px * var(--ixk)) calc(2px * var(--ixk)) 0 var(--fb-ink)}
html.fb #run-ann .ix-ann-in b span,html.fb #tr-hud .ix-ann-in b span{color:#fff;background:none;-webkit-background-clip:border-box;background-clip:border-box}
html.fb #run-ann .ix-ann-in.good b span,html.fb #tr-hud .ix-ann-in.good b span{color:var(--fb-foil-lite)}
html.fb #run-ann .ix-ann-in em,html.fb #tr-hud .ix-ann-in em{margin-top:calc(3px * var(--ixk));padding:calc(3px * var(--ixk)) calc(14px * var(--ixk));color:var(--fb-ink);font-family:var(--fb-text);text-shadow:none;
  background:rgba(246,224,94,.94);clip-path:polygon(0 0,100% 0,calc(100% - 4px) 25%,100% 50%,calc(100% - 4px) 75%,100% 100%,0 100%,4px 75%,0 50%,4px 25%)}
html.fb #run-ann .ix-ann-in.boss em,html.fb #run-ann .ix-ann-in.warn em,html.fb #tr-hud .ix-ann-in.boss em,html.fb #tr-hud .ix-ann-in.warn em{box-shadow:inset 6px 0 0 var(--fb-seal)}

/* opening title (#run-title h2 / p) */
html.fb #hud-run #run-title h2{font-family:var(--fb-display);font-weight:900;color:#fff;display:inline-block;padding:0 10px 4px;border-bottom:2px solid var(--fb-foil);
  text-shadow:-2px 0 var(--fb-ink),2px 0 var(--fb-ink),0 -2px var(--fb-ink),0 2px var(--fb-ink),2px 2px var(--fb-ink),-2px -2px var(--fb-ink),2px -2px var(--fb-ink),-2px 2px var(--fb-ink),3px 3px 0 var(--fb-ink)}
html.fb #hud-run #run-title p{color:#fff;text-shadow:-1px 0 var(--fb-ink),1px 0 var(--fb-ink),0 -1px var(--fb-ink),0 1px var(--fb-ink)}

/* chest / event edge pointers (tr_ptr.css .ix-cp): slip disc, hard shadow, no glow; pulse timeline kept */
html.fb .ix-cp{background:var(--fb-slip);box-shadow:calc(2px * var(--ixk)) calc(2px * var(--ixk)) 0 var(--fb-ink)}
html.fb .ix-cp .ic img{filter:none}
html.fb .ix-cp .ar{filter:none}
html.fb .ix-cp em{border-radius:0;background:var(--fb-cover);border-color:var(--fb-ink);color:var(--fb-foil-lite);font-family:var(--fb-num)}
html.fb .ix-cp.ev .ic b{color:var(--fb-ink);text-shadow:none}

/* ============================================================ 4.6 card draft ============================================================ */
html.fb #draft{background:rgba(21,58,48,.5)}
html.fb #draft .ic-win{font-family:var(--fb-text);color:var(--fb-ink)}
html.fb #draft .ic-title{height:36px;padding:0 34px;background:var(--fb-weave),var(--fb-cover);border:2px solid var(--fb-ink);border-radius:2px;box-shadow:3px 3px 0 var(--fb-ink);
  font:900 19px/1 var(--fb-display);letter-spacing:.3em;text-indent:.3em;color:var(--fb-foil-lite);text-shadow:none}
html.fb #draft .ic-legend{border-radius:0;background:var(--fb-slip);border:1.5px solid var(--fb-ink);color:var(--fb-ink);text-shadow:none;font:600 11px/1 var(--fb-text);padding:3px 9px}
html.fb #draft .ic-legend b{display:inline-block;padding:2px 5px 2px 12px;color:var(--fb-ink);background:var(--fb-slip);border:1px solid var(--fb-ink);box-shadow:inset 8px 0 0 var(--t);font:700 10px/1 var(--fb-text)}
html.fb #draft .ic-legend .t0{--t:var(--fb-t0)} html.fb #draft .ic-legend .t1{--t:var(--fb-t1)} html.fb #draft .ic-legend .t2{--t:var(--fb-t2)}
html.fb #draft .ic-legend .t3{--t:var(--fb-t3)} html.fb #draft .ic-legend .t4{--t:var(--fb-t4)}
html.fb #draft .ic-legend i{color:var(--fb-ink-2);opacity:1}

html.fb #draft .ic-card{--band:var(--fb-ink-2);background:var(--fb-slip);border:2px solid var(--fb-ink);border-radius:2px;box-shadow:3px 3px 0 var(--fb-ink);filter:none;color:var(--fb-ink)}
html.fb #draft .ic-card[data-tier="0"]{--band:var(--fb-t0)} html.fb #draft .ic-card[data-tier="1"]{--band:var(--fb-t1)} html.fb #draft .ic-card[data-tier="2"]{--band:var(--fb-t2)}
html.fb #draft .ic-card[data-tier="3"]{--band:var(--fb-t3)} html.fb #draft .ic-card[data-tier="4"]{--band:var(--fb-t4)}
html.fb #draft .ic-card.new,html.fb #draft .ic-card.selbuff{--band:var(--fb-cover)}
html.fb #draft .ic-card .ic-art{display:none}
html.fb #draft .ic-card::before{content:"";position:absolute;left:0;right:0;top:0;height:28px;transform:none;border:0;border-bottom:2px solid var(--fb-ink);background:var(--band);filter:none;pointer-events:none}
html.fb #draft .ic-card.new::before,html.fb #draft .ic-card.selbuff::before{background:var(--fb-weave),var(--band)}
html.fb #draft .ic-key{left:4px;top:4px;width:20px;height:20px;border-radius:0;background:var(--fb-slip);border:1.5px solid var(--fb-ink);box-shadow:none;font:700 12px/17px var(--fb-num);color:var(--fb-ink)}
html.fb #draft .ic-tag{right:auto;left:30px;top:0;width:auto;height:28px;aspect-ratio:auto;justify-content:flex-start}
html.fb #draft .ic-tag img{display:none}
html.fb #draft .ic-tag span{font:700 11px/1 var(--fb-text);letter-spacing:.1em;color:#fff;
  text-shadow:-1px 0 var(--fb-ink),1px 0 var(--fb-ink),0 -1px var(--fb-ink),0 1px var(--fb-ink)}
html.fb #draft .ic-tag.new{left:auto;right:-10px;top:-12px;height:auto;z-index:4}
html.fb #draft .ic-tag.new span{display:block;padding:4px 7px;font:900 11px/1 var(--fb-display);letter-spacing:.1em;color:var(--fb-blue);text-shadow:none;background:var(--fb-slip);
  border:2px solid currentColor;border-radius:4px;outline:1px solid currentColor;outline-offset:2px;transform:rotate(-6deg)}
html.fb #draft .ic-ico{left:calc(50% - 20px);top:34px;width:40px;height:40px;background:var(--fb-slip);border:2px solid var(--fb-ink)}
html.fb #draft .ic-ico img{width:70%;height:70%}
html.fb #draft .ic-body{left:6%;width:88%;top:80px;height:calc(100% - 80px - 26px);gap:3px}
html.fb #draft .ic-name{margin-top:0;font:900 15px/1.25 var(--fb-display);color:var(--fb-ink)}
html.fb #draft .ic-text{font:400 11px/1.4 var(--fb-text);color:var(--fb-ink-2);padding:0 2px}
html.fb #draft .ic-detail{font:600 11px/1.3 var(--fb-num);color:var(--fb-blue);letter-spacing:.02em}
html.fb #draft .ic-bar{left:0;top:auto;bottom:0;width:100%;height:24px;background:var(--fb-page-2);border-top:1px dashed var(--fb-rule);font:700 12px/1 var(--fb-num);color:var(--fb-ink-2)}
html.fb #draft .ic-card[data-tier] .ic-bar{color:var(--fb-ink-2);text-shadow:none}
/* r47 upgrade rows ol.ic-chg.h7-chg */
html.fb #draft .ic-chg{color:var(--fb-ink);font-family:var(--fb-text)}
html.fb #draft .ic-chg li{border-radius:0;border-bottom:1px dashed var(--fb-rule)}
html.fb #draft .ic-chg li:nth-child(odd){background:var(--fb-page)}
html.fb #draft .ic-chg li::marker{color:var(--fb-ink);font-family:var(--fb-num)}
html.fb #draft .ic-chg b{color:var(--fb-ink)}
html.fb #draft .ic-chg span{color:var(--fb-ink-2);font-family:var(--fb-num)}
html.fb #draft .ic-chg i{color:var(--fb-ink-2)}
html.fb #draft .ic-chg em{color:var(--fb-blue);font-family:var(--fb-num);font-weight:700}
/* selection, choice, ban */
html.fb #draft .ic-card.sel{transform:translateY(-8px);border-width:3px;box-shadow:5px 5px 0 var(--fb-ink),0 0 0 4px var(--fb-marker);filter:none}
html.fb #draft .ic-card.sel::after{border-top-color:var(--fb-ink);filter:none;top:-26px}
html.fb #draft .ic-card.chosen::after{content:"✓";position:absolute;--fb-rot:-8deg;left:auto;right:6px;top:30px;width:40px;height:40px;margin:0;display:grid;place-items:center;border:2px solid var(--fb-seal);border-radius:50%;
  outline:1px solid var(--fb-seal);outline-offset:2px;background:rgba(251,252,247,.85);color:var(--fb-seal);font:900 22px/1 var(--fb-display);filter:none;animation:fb-press .26s cubic-bezier(.2,.9,.3,1.2) both}
html.fb #draft .ic-row.banning .ic-card{filter:saturate(.55) brightness(.92);border-style:dashed}
html.fb #draft .ic-card:focus-visible{outline:2px solid var(--fb-marker);outline-offset:2px}
/* tools */
html.fb #draft .ic-btn{height:34px;padding:0 10px;background:var(--fb-slip);border:2px solid var(--fb-ink);border-radius:2px;box-shadow:3px 3px 0 var(--fb-ink);
  font:700 13px/1 var(--fb-text);letter-spacing:.08em;color:var(--fb-ink);text-shadow:none}
html.fb #draft .ic-btn.remove,html.fb #draft.buffbox #btn-buff-skip{background-image:none}
html.fb #draft .ic-btn.remove{color:var(--fb-seal-deep);border-color:var(--fb-seal-deep);box-shadow:3px 3px 0 var(--fb-seal-deep)}
html.fb #draft .ic-btn:active,html.fb #draft #btn-draft-confirm:active,html.fb #draft.buffbox .ic-skip:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--fb-ink)}
html.fb #draft .ic-btn:focus-visible,html.fb #draft #btn-draft-confirm:focus-visible{outline:2px solid var(--fb-marker);outline-offset:2px}
html.fb #draft.buffbox .ic-skip{border-radius:2px;background:var(--fb-slip);border:2px solid var(--fb-ink);box-shadow:3px 3px 0 var(--fb-ink);color:var(--fb-ink);font:700 13px/1 var(--fb-text)}
html.fb #draft #btn-draft-confirm{height:34px;padding:0 18px;background:var(--fb-weave),var(--fb-cover);border:2px solid var(--fb-ink);border-radius:2px;box-shadow:3px 3px 0 var(--fb-ink);
  font:700 13px/1 var(--fb-text);letter-spacing:.18em;color:var(--fb-foil-lite);cursor:pointer}
html.fb #draft .ic-hint{background:none;border-radius:0;font:400 13px/1.3 var(--fb-note);color:#fff;
  text-shadow:-1px 0 var(--fb-ink),1px 0 var(--fb-ink),0 -1px var(--fb-ink),0 1px var(--fb-ink),1px 1px var(--fb-ink),-1px -1px var(--fb-ink)}
html.fb #draft #draft-banhint{color:var(--fb-foil-lite);text-shadow:-1px 0 var(--fb-ink),1px 0 var(--fb-ink),0 -1px var(--fb-ink),0 1px var(--fb-ink)}

/* ============================================================ 4.7 pause / settle / chest ============================================================ */
html.fb #run-pause.u2-overlay,html.fb #run-settle.u2-overlay,html.fb #bc-open.u2-overlay{background:var(--fb-scrim);backdrop-filter:none;-webkit-backdrop-filter:none}

/* pause */
html.fb #run-pause .ip2{border-radius:3px;background:var(--fb-grid-bg),var(--fb-page);border:2px solid var(--fb-ink);box-shadow:4px 4px 0 var(--fb-ink);color:var(--fb-ink);font-family:var(--fb-text)}
html.fb #run-pause .hd{border-bottom:2px solid var(--fb-ink);padding-bottom:5px}
html.fb #run-pause .hd b{font:900 18px var(--fb-display);color:var(--fb-ink);text-shadow:none}
html.fb #run-pause .hd i{font:600 11.5px var(--fb-text);color:var(--fb-ink-2);text-shadow:none}
html.fb #run-pause .st{border-radius:2px;background:var(--fb-slip);border:1.5px solid var(--fb-ink)}
html.fb #run-pause .st span{font-family:var(--fb-text);color:var(--fb-ink-2)}
html.fb #run-pause .st b{font:700 15px var(--fb-num);color:var(--fb-ink)}
html.fb #run-pause .st.meso b{color:var(--fb-foil-deep)}
html.fb #run-pause .go{height:44px;border-radius:2px;color:var(--fb-foil-lite);background:var(--fb-weave),var(--fb-cover);border:2px solid var(--fb-ink);box-shadow:3px 3px 0 var(--fb-ink)}
html.fb #run-pause .go b{font:900 17px var(--fb-display);text-shadow:none;letter-spacing:.22em}
html.fb #run-pause .bt{border-radius:2px;color:var(--fb-ink);background:var(--fb-slip);border:2px solid var(--fb-ink);box-shadow:3px 3px 0 var(--fb-ink)}
html.fb #run-pause .bt b{font-family:var(--fb-text);color:var(--fb-ink)}
html.fb #run-pause .bt i{font-family:var(--fb-text);color:var(--fb-ink-2)}
html.fb #run-pause .bt svg{color:var(--fb-ink)}
html.fb #run-pause .bt.quit{background:var(--fb-slip);border-color:var(--fb-seal-deep);box-shadow:3px 3px 0 var(--fb-seal-deep)}
html.fb #run-pause .bt.quit b,html.fb #run-pause .bt.quit svg{color:var(--fb-seal-deep)}
html.fb #run-pause .bt.quit i{color:var(--fb-ink-2)}
html.fb #run-pause .go:active,html.fb #run-pause .bt:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--fb-ink)}
html.fb #run-pause .go:focus-visible,html.fb #run-pause .bt:focus-visible{outline:2px solid var(--fb-marker);outline-offset:2px}

/* settle: title strip with a stamp, three slips, ticket button */
html.fb #run-settle .ir2{--c:var(--fb-seal);font-family:var(--fb-text)}
html.fb #run-settle .ir2.dead,html.fb #run-settle .ir2.quit{--c:var(--fb-ink-2)}
html.fb #run-settle .ttl{left:262px;right:262px;top:6px;height:74px;justify-content:center;gap:6px;background:var(--fb-grid-bg),var(--fb-page);border:2px solid var(--fb-ink);border-radius:3px;box-shadow:3px 3px 0 var(--fb-ink)}
html.fb #run-settle .ttl::after{content:none}
html.fb #run-settle .ttl b{--fb-rot:-3deg;font:900 24px/1.1 var(--fb-display);letter-spacing:.3em;margin-right:0;padding:4px 6px 4px 14px;color:var(--c);border:3px solid currentColor;border-radius:4px;
  outline:1px solid currentColor;outline-offset:2px;transform:rotate(-3deg);opacity:.92;animation:fb-press .26s cubic-bezier(.2,.9,.3,1.2) both}
html.fb #run-settle .ttl b::before{content:none}
html.fb #run-settle .ttl b span,html.fb #run-settle .ir2.dead .ttl b span,html.fb #run-settle .ir2.quit .ttl b span{color:inherit;background:none;-webkit-background-clip:border-box;background-clip:border-box}
html.fb #run-settle .ttl i{font:600 11px var(--fb-text);letter-spacing:.12em;color:var(--fb-ink-2);text-shadow:none}
html.fb #run-settle .pn{border-radius:2px;overflow:hidden}
html.fb #run-settle .pn.a,html.fb #run-settle .pn.b,html.fb #run-settle .pn.c{background:var(--fb-slip);color:var(--fb-ink);border:2px solid var(--fb-ink);box-shadow:3px 3px 0 var(--fb-ink)}
html.fb #run-settle .pn h3,html.fb #run-settle .pn.c h3{--mk:var(--fb-marker);align-self:flex-start;height:auto;margin:9px 11px 5px;padding:0 4px;border:0;font:900 14px/1.35 var(--fb-display);letter-spacing:.1em;color:var(--fb-ink);text-shadow:none;
  background:linear-gradient(transparent 58%,var(--mk) 58% 94%,transparent 94%)}
html.fb #run-settle .pn.b h3{--mk:#BFE3C8}
html.fb #run-settle .pn.c h3{--mk:#C9DBF2}
html.fb #run-settle .pn h3 i{font:700 11px var(--fb-num);font-style:normal;margin-left:6px;color:var(--fb-ink-2)}
html.fb #run-settle .rw{border-bottom:1px dashed var(--fb-rule);margin:0 8px;padding:0 4px}
html.fb #run-settle .rw span{font-family:var(--fb-text);color:var(--fb-ink-2)}
html.fb #run-settle .rw b{font:700 18px var(--fb-num);color:var(--fb-ink)}
html.fb #run-settle .big b{font:700 30px/1 var(--fb-num)}
html.fb #run-settle .big.meso b{color:var(--fb-foil-deep)}
html.fb #run-settle .big.exp b{color:var(--fb-t0)}
html.fb #run-settle .big em{font-family:var(--fb-text);color:var(--fb-ink-2)}
html.fb #run-settle .sub{font-family:var(--fb-text);color:var(--fb-ink-2)}
html.fb #run-settle .lv b{font:900 13px var(--fb-display);color:var(--fb-cover)}
html.fb #run-settle .lv span{font:700 12px var(--fb-num);color:var(--fb-ink-2)}
html.fb #run-settle .bar{height:10px;border-radius:0;border:2px solid var(--fb-ink);background:var(--fb-page-2);position:relative}
html.fb #run-settle .bar u{border-radius:0;background:var(--fb-foil)}
html.fb #run-settle .bar::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 calc(25% - 1px),rgba(28,43,42,.4) calc(25% - 1px) 25%)}
html.fb #run-settle .ap{font-family:var(--fb-text);color:var(--fb-ink-2)}
html.fb #run-settle .ap b{font-family:var(--fb-num);color:var(--fb-blue)}
html.fb #run-settle .none{font:400 13px var(--fb-note);color:var(--fb-ink-2)}
html.fb #run-settle .pn.c .grid span{font-family:var(--fb-text);color:var(--fb-ink);border-bottom:1px dashed var(--fb-rule);padding:2px 0}
html.fb #run-settle .inv-badge{border-radius:0;border:1px solid var(--fb-ink);font-family:var(--fb-text);text-shadow:-1px 0 var(--fb-ink),1px 0 var(--fb-ink),0 -1px var(--fb-ink),0 1px var(--fb-ink)}
html.fb #run-settle .inv-badge.t0{background:var(--fb-t0)} html.fb #run-settle .inv-badge.t1{background:var(--fb-t1)} html.fb #run-settle .inv-badge.t2{background:var(--fb-t2)}
html.fb #run-settle .inv-badge.t3{background:var(--fb-t3)} html.fb #run-settle .inv-badge.t4{background:var(--fb-t4)}
html.fb #run-settle .ft>.note{font-family:var(--fb-note);color:#E6ECDF;text-shadow:none}
html.fb #run-settle .ask span{font-family:var(--fb-text);color:#fff;text-shadow:none}
html.fb #run-settle .ask small{font-family:var(--fb-text);color:rgba(255,255,255,.82)}
html.fb #run-settle .ask button,html.fb #run-settle .ask button[data-sv="1"]{height:28px;padding:0 12px;border-radius:2px;font:700 12px var(--fb-text);letter-spacing:.08em;color:var(--fb-ink);
  background:var(--fb-slip);border:2px solid var(--fb-ink);box-shadow:2px 2px 0 var(--fb-ink)}
html.fb #run-settle .ask button:active{transform:translate(2px,2px);box-shadow:none}
html.fb #run-settle .u2-go{position:relative;padding:0 18px 0 34px;border-radius:2px;color:var(--fb-foil-lite);background:var(--fb-weave),var(--fb-cover);border:2px solid var(--fb-ink);box-shadow:4px 4px 0 var(--fb-ink)}
html.fb #run-settle .u2-go::before{content:"";position:absolute;left:22px;top:5px;bottom:5px;border-left:2px dotted rgba(240,217,138,.75)}
html.fb #run-settle .u2-go::after{content:"";position:absolute;left:8px;top:50%;width:7px;height:7px;margin-top:-4px;border-radius:50%;background:var(--fb-foil)}
html.fb #run-settle .u2-go b{font:900 17px/1 var(--fb-display);letter-spacing:.2em;color:var(--fb-foil-lite);text-shadow:none}
html.fb #run-settle .u2-go:active{transform:translate(2px,2px);box-shadow:2px 2px 0 var(--fb-ink)}
html.fb #run-settle .u2-go:focus-visible,html.fb #run-settle .ask button:focus-visible{outline:2px solid var(--fb-marker);outline-offset:2px}

/* BOSS chest open (#bc-open, built by game2 bcOpenScreen) — chest / coin / item pictures are content and stay */
html.fb #bc-open{--u2-out:-1px 0 var(--fb-ink),1px 0 var(--fb-ink),0 -1px var(--fb-ink),0 1px var(--fb-ink);--u2-sans:var(--fb-text);--u2-num:var(--fb-num);--u2-ink:var(--fb-ink);--u2-ink2:var(--fb-ink-2);--u2-ink3:var(--fb-ink-3);--u2-edge:var(--fb-ink)}
html.fb #bc-open .bc-top{background:var(--fb-weave),var(--fb-cover);border:2px solid var(--fb-ink);border-top:0;box-shadow:0 3px 0 var(--fb-ink)}
html.fb #bc-open .bc-back{width:26px;height:26px;border-radius:2px;color:var(--fb-foil);background:transparent;border:1.5px solid var(--fb-foil);box-shadow:none}
html.fb #bc-open .bc-ttl b{font:900 18px var(--fb-display);color:var(--fb-foil-lite);text-shadow:none}
html.fb #bc-open .bc-ttl i{font:600 11px var(--fb-text);color:var(--fb-foil-lite);opacity:.85;text-shadow:none}
html.fb #bc-open .bc-card{border-radius:3px;border:2px solid var(--fb-ink);box-shadow:4px 4px 0 var(--fb-ink);background:var(--fb-grid-bg),var(--fb-page);color:var(--fb-ink)}
html.fb #bc-open .bc-ch,html.fb #bc-open .bc-ch.blue{--mk:var(--fb-marker);background:var(--fb-slip);border-bottom:2px solid var(--fb-ink)}
html.fb #bc-open .bc-ch.blue{--mk:#C9DBF2}
html.fb #bc-open .bc-ch h2{padding:0 4px;font:900 14px var(--fb-display);color:var(--fb-ink);text-shadow:none;background:linear-gradient(transparent 58%,var(--mk) 58% 94%,transparent 94%)}
html.fb #bc-open .bc-ch span{font:700 12px var(--fb-num);color:var(--fb-ink-2);text-shadow:none}
html.fb #bc-open .cho-big{border-radius:2px;background:var(--fb-slip);border:1.5px solid var(--fb-ink);box-shadow:2px 2px 0 var(--fb-ink)}
html.fb #bc-open .cho-big img{filter:none}
html.fb #bc-open .cho-nm{font:900 15px var(--fb-display);color:var(--fb-ink)}
html.fb #bc-open .cho-own{color:var(--fb-ink-2)}
html.fb #bc-open .cho-own b{font:700 20px var(--fb-num);color:var(--fb-cover)}
html.fb #bc-open .cho-go{height:36px;border-radius:2px;font:700 13px var(--fb-text);letter-spacing:.16em;color:var(--fb-foil-lite);background:var(--fb-weave),var(--fb-cover);border:2px solid var(--fb-ink);box-shadow:3px 3px 0 var(--fb-ink);text-shadow:none}
html.fb #bc-open .cho-go.all{color:var(--fb-ink);background:var(--fb-foil);border-color:var(--fb-ink);box-shadow:3px 3px 0 var(--fb-ink)}
html.fb #bc-open .cho-go:disabled{filter:none;color:var(--fb-ink-3);background:var(--fb-page-2);border-style:dashed;box-shadow:none}
html.fb #bc-open .cho-go:not(:disabled):active,html.fb #bc-open .bc-back:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--fb-ink)}
html.fb #bc-open .cho-go:focus-visible,html.fb #bc-open .bc-back:focus-visible{outline:2px solid var(--fb-marker);outline-offset:2px}
html.fb #bc-open .cho-note{font:400 12px/1.45 var(--fb-note);color:var(--fb-ink-2)}
html.fb #bc-open .cho-sum{border-radius:2px;background:var(--fb-slip);border:1.5px solid var(--fb-ink);color:var(--fb-ink-2);font-family:var(--fb-text)}
html.fb #bc-open .cho-tt b{color:var(--fb-ink);padding:0 3px 0 11px;box-shadow:inset 8px 0 0 var(--fbt)}
html.fb #bc-open .cho-why{color:var(--fb-seal-deep)}
html.fb #bc-open .u2-t0{--tcd:var(--fb-t0);--fbt:var(--fb-t0)} html.fb #bc-open .u2-t1{--tcd:var(--fb-t1);--fbt:var(--fb-t1)} html.fb #bc-open .u2-t2{--tcd:var(--fb-t2);--fbt:var(--fb-t2)}
html.fb #bc-open .u2-t3{--tcd:var(--fb-foil-deep);--fbt:var(--fb-t3)} html.fb #bc-open .u2-t4{--tcd:var(--fb-seal-deep);--fbt:var(--fb-t4)}
html.fb #bc-open .cho-cell{border-radius:0;background:var(--fb-slip);border:1.5px solid var(--fb-rule)}
html.fb #bc-open .cho-cell.u2-tier{background:var(--fb-slip);border-color:var(--fb-ink)}
html.fb #bc-open .cho-cell.u2-tier::before{content:"";position:absolute;left:0;top:0;border:6px solid;border-color:var(--fbt) transparent transparent var(--fbt)}
html.fb #bc-open .cho-cell .m{font:700 17px var(--fb-num);color:var(--fb-foil-deep)}
html.fb #bc-open .cho-cell i{font:700 9px var(--fb-num);color:#fff;text-shadow:var(--u2-out)}

@media (prefers-reduced-motion:reduce){
  html.fb #draft .ic-card.chosen::after,html.fb #run-settle .ttl b{animation:none}
  html.fb #draft .ic-card.sel::after{animation:none}
}

/* P4 ink icons: image only. Keep P3 hitboxes, DOM and handlers. */
html.fb #hud-run #btn-bag{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231C2B2A%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%207V5.8a3%203%200%200%201%206%200V7%22%2F%3E%3Crect%20x%3D%225.5%22%20y%3D%226.5%22%20width%3D%2213%22%20height%3D%2214%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M6%2011h12M9%2016h6M7.5%2013v4M16.5%2013v4%22%2F%3E%3C%2Fsvg%3E")}
html.fb #hud-run #btn-pause{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231C2B2A%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%205.5v13M16%205.5v13%22%2F%3E%3C%2Fsvg%3E")}

/* P4: standalone glyph buttons only. The native text/ARIA label is not removed. */
html.fb #modal .win:not(:has(#m-ok,#bk-import)) .p-head button.x{font-size:0;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231C2B2A%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%206l12%2012M18%206L6%2018%22%2F%3E%3C%2Fsvg%3E");background-size:16px 16px;background-repeat:no-repeat;background-position:center}
html.fb #modal .win.tl-win #tl-full{font-size:0;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231C2B2A%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%209V4h5M15%204h5v5M20%2015v5h-5M9%2020H4v-5%22%2F%3E%3C%2Fsvg%3E");background-size:16px 16px;background-repeat:no-repeat;background-position:center}

/* P4 accessibility: remove only the two observed HUD entrance motions. Game timers still remove notices. */
@media (prefers-reduced-motion: reduce) {
  html.fb #run-feed .ix-row,
  html.fb #run-ann .ix-ann-in { animation-name: none; }
}

/* Private native P3/P4 follow-up; only new-skin DOM. No !important, JS, canvas or dynamic transform. */
html.fb #hud-run .run-counts .h7-meso b,
html.fb #run-pause .st.meso b,
html.fb #run-settle .big.meso b { color:#765917; }
html.fb #run-settle .big.exp b { color:var(--fb-cover-lite); }
html.fb #hud-run .ix-dmg .r span { line-height:1.5; }
/* The old pulse animates transform and overrides JS translate(x,y). Let the actual target coordinates win. */
html.fb .ix-cp { animation:none; }
html.fb #draft .ic-body { padding-top:3px; background-color:var(--fb-slip); }
/* Restore original coarse hit areas; the narrower P3 controls came from new padding and borders. */
@media (pointer:coarse) {
  html.fb #draft .ic-btn { min-height:35px; }
  html.fb #run-pause .ip2 { padding-inline:15px; }
  html.fb #run-pause .go { min-height:46px; }
  html.fb #run-settle .ask button,
  html.fb #run-settle .ask button[data-sv="1"] { min-height:36px; padding-inline:16px; }
}
/* Flat 844x390: keep whole 200x273 cards, use the available header width for the optional tier legend. */
@media (orientation:landscape) and (max-height:450px) and (min-width:700px) {
  html.fb #draft .ic-win { display:grid; grid-template-columns:auto auto; grid-template-areas:"title legend" "cards cards" "tools tools" "hint hint"; align-items:center; justify-items:center; gap:4px 8px; }
  html.fb #draft .ic-title { grid-area:title; justify-self:stretch; min-width:0; height:32px; padding-inline:12px; }
  html.fb #draft .ic-win:has(> .ic-legend[hidden]) > .ic-title { grid-column:1/-1; justify-self:center; width:min(520px,80vw); }
  html.fb #draft .ic-legend { grid-area:legend; }
  html.fb #draft .ic-row { grid-area:cards; margin-top:13px; }
  html.fb #draft .ic-tools { grid-area:tools; }
  html.fb #draft .ic-hint { grid-area:hint; padding-block:1px; }
  html.fb #draft .ic-win:has(> #draft-banhint:not(:empty)) { grid-template-areas:"title legend" "cards cards" "tools hint" "note note"; }
  html.fb #draft #draft-banhint { grid-area:note; }
}
/* Only the abandon-result lettering. Keep the original status border and victory seal colors. */
html.fb #run-settle .ir2.quit .ttl b span { color:var(--fb-ink); }

/* The left feed, middle announcement and right ship readout need separate lanes on a short screen.
   The game owns the timers, health bar sizes, pointer coordinates and arrow rotations. */
@media (max-height: 520px) and (min-width: 580px) {
  html.fb #run-ann:has(.ix-ann-in.intro),
  html.fb #run-ann:has(.ix-ann-in.boss),
  html.fb #run-ann:has(.ix-ann-in.warn) {
    left: min(40vw, 320px);
    right: min(21vw, 160px);
  }
  html.fb #run-ann .ix-ann-in.intro,
  html.fb #run-ann .ix-ann-in.warn { min-width: 0; max-width: 100%; }
  html.fb #run-ann .ix-ann-in.intro em,
  html.fb #run-ann .ix-ann-in.warn em {
    box-sizing: border-box; max-width: 100%; white-space: normal;
    overflow-wrap: anywhere; text-align: center; text-wrap: balance;
  }
}
/* Keep the stamp and its decorative rules below the separate, live BOSS-name/HP strip. */
html.fb #run-ann:has(.ix-ann-in.boss) { top: max(20%, calc(10vh + 88px)); }

/* Two temple landmarks can have the same bearing. Keep the real anchor and triangle unchanged;
   put the two glyphs on different halves of their existing pointer, only when both are present. */
html.fb .ix-cptr:has(> [title="補給祭壇"]):has(> [title="機關開關"])
  > .ix-cp.ev:is([title="補給祭壇"],[title="機關開關"]) {
  background: transparent; border-color: transparent; box-shadow: none;
}
html.fb .ix-cptr:has(> [title="補給祭壇"]):has(> [title="機關開關"])
  > .ix-cp.ev:is([title="補給祭壇"],[title="機關開關"]) .ic {
  inset: 50% auto auto 50%; translate: -50% -50%; box-sizing: border-box;
  width: calc(25px * var(--ixk)); height: calc(25px * var(--ixk));
  border: calc(2px * var(--ixk)) solid var(--fb-ink); border-radius: 50%; background: var(--fb-slip);
}
html.fb .ix-cptr:has(> [title="機關開關"]) > .ix-cp.ev[title="補給祭壇"] .ic { margin-top: calc(13px * var(--ixk)); }
html.fb .ix-cptr:has(> [title="補給祭壇"]) > .ix-cp.ev[title="機關開關"] .ic { margin-top: calc(-13px * var(--ixk)); }
html.fb .ix-cptr:has(> [title="補給祭壇"]):has(> [title="機關開關"])
  > .ix-cp.ev:is([title="補給祭壇"],[title="機關開關"]) em:empty { display: none; }

/* Draw the seal-gate label at its actual bearing but outside the right HUD rail.
   The positioned ::after belongs to the full pointer layer, after the DOM anchor;
   do not anchor a child inside the translated marker to its own ancestor. */
html.fb .ix-cptr > .ix-cp.ev[title="封印門（打倒守關王才開）"] { anchor-name: --fb-sealed-gate; }
html.fb .ix-cptr:has(> .ix-cp.ev[title="封印門（打倒守關王才開）"])::after {
    content: "門"; position: absolute; position-anchor: --fb-sealed-gate;
    /* Browsers without anchor positioning keep the normal game label; only this extra tag is offscreen. */
    left: -1000px; top: -1000px;
    left: clamp(24px, anchor(center), calc(100% - clamp(124px, 17vw, 211px)));
    top: clamp(24px, anchor(center), calc(100% - 30px)); translate: -50% -50%;
    width: calc(28px * var(--ixk)); height: calc(28px * var(--ixk));
    box-sizing: border-box; display: grid; place-items: center; pointer-events: none;
    border: 2px solid var(--fb-ink); border-radius: 50%; background: var(--fb-slip);
    color: var(--fb-ink); font: 700 calc(17px * var(--ixk))/1 var(--fb-text);
}

/* Final integration candidate. 620px is the game's own compact/portrait branch
   breakpoint in hudScaleK(). Do not send a 390px portrait feed into a 1px lane.
   The geometry below is specifically for the available landscape HUD space. */
@media (min-width: 620px) and (orientation: landscape) {
  html.fb body[data-practice="1"] #hud-run .run-topleft > #run-feed {
    margin-left: 225px;
    width: min(44vw, calc(300px * var(--ixk)), calc(100vw - 404px));
  }
  html.fb body[data-practice="1"] #hud-run #run-feed > .ix-row {
    max-width: 100%;
  }
}
/* No truncation of a real instruction. On narrow portrait keep its existing
   placement/available width instead of applying the landscape split. */
html.fb body[data-practice="1"] #hud-run #run-feed > .ix-row.info .tx {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: visible;
  text-overflow: clip;
}
