/* ABIKU: the glass over the palace of the dead.
   One voice for every surface: near black, lit from below by bronze and ember, Bricolage Grotesque throughout,
   hairline edges, soft corners, and motion that eases in the way a flame settles. Nothing here is a browser control:
   every button, switch, rail and tab is drawn by this sheet.
   --S scales the in play glass (the plate, the notices): main.js sets it from the screen. The windows (the pause menu,
   the hub, the caption) size themselves from the viewport instead, so a large monitor never gets a giant box. */

@import url('type.css');

:root {
  --S: 1.2;
  --ink: #060508; --ink2: #0c0a0d; --panel: rgba(15, 12, 12, .94); --panel2: rgba(22, 17, 15, .96);
  --line: rgba(222, 178, 104, .2); --line2: rgba(222, 178, 104, .38); --line3: rgba(222, 178, 104, .6);
  --gold: #e6ba6a; --gold2: #f7dca0; --gold-rgb: 230, 186, 106; --bronze: #a9773c;
  --ember: #ff8a3c; --ember-rgb: 255, 138, 60;
  --text: #f3eadb; --mute: #bdae95; --faint: #857a67; --dim: #5d5446;
  --red: #e8685c; --green: #8fe0a6; --ice: #a8ccff; --spirit: #9fe0b4;
  --ui: 'Bricolage Grotesque', 'Montserrat', 'Segoe UI', system-ui, sans-serif;   /* (Montserrat second: it has the Hausa Ɗ Ƙ the Bricolage files lack — the plaque's ƘOFAR GARI showed a ? box, 2026-10-19) */
  --ease: cubic-bezier(.2, .8, .2, 1); --ease-in: cubic-bezier(.5, 0, .75, 0);
  --r: 6px; --r2: 10px;
  /* the in play type ramp, from the plate's scale */
  --micro: calc(var(--S) * 7.5px); --tiny: calc(var(--S) * 8.8px); --small: calc(var(--S) * 10.2px); --body: calc(var(--S) * 11.5px);
  --big: calc(var(--S) * 19px); --huge: calc(var(--S) * 25px);
  /* the windows' type ramp, from the viewport */
  /* (2026-10-02, the user: "the text is very big ... as if it is for old people". About a fifth smaller everywhere: on a
     phone on its side the body text is now 11.5px, the size the big mobile action games use in their menus) */
  --w-xs: clamp(8.5px, .3vw + 6.4px, 10.5px); --w-s: clamp(9.5px, .34vw + 7.2px, 12px); --w-m: clamp(10.5px, .4vw + 8px, 13.5px);
  --w-l: clamp(12.5px, .65vw + 8.6px, 18px); --w-xl: clamp(15px, 1.05vw + 9.5px, 26px);
  --pad: max(calc(var(--S) * 10px), env(safe-area-inset-left));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--ink); color: var(--text);
  font-family: var(--ui); font-optical-sizing: auto; user-select: none; -webkit-user-select: none; touch-action: none; -webkit-font-smoothing: antialiased; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#ctl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; touch-action: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; outline: none; -webkit-appearance: none; appearance: none; }
button:focus-visible { box-shadow: 0 0 0 2px rgba(var(--gold-rgb), .55); }
.cw { font-variant-numeric: tabular-nums; }
/* the game's own scrollbar: a thin bronze line, no arrows, no track */
* { scrollbar-width: thin; scrollbar-color: rgba(var(--gold-rgb), .35) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-thumb { background: rgba(var(--gold-rgb), .3); border-radius: 6px; } ::-webkit-scrollbar-thumb:hover { background: rgba(var(--gold-rgb), .55); }
.cw::before { content: ''; display: inline-block; width: .56em; height: .74em; margin-right: .38em; border-radius: 50% 50% 46% 46%; vertical-align: -.04em;
  background: radial-gradient(ellipse at 50% 30%, #fffaf0, #e8dcc0 60%, #b8a888); box-shadow: inset 0 -.1em 0 rgba(0,0,0,.3), 0 0 .3em rgba(255,240,200,.25); }

/* ====================================================================== THE PLATE, top left */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
/* ====================================================================== THE PLATE, TOP LEFT (2026-10-02, the reference)
   The map's disc, then a dark panel with gold hairlines and a cut end: his name and level; Ṣadé's catches as red diamonds;
   LIFE (gold) and ÀṢẸ (blue) as bars with their numbers; the fury's thin ember bar. The room's card hangs under it. */
:root { --disc: calc(var(--S) * 66px); --edgeL: max(calc(var(--S) * 10px), env(safe-area-inset-left)); --edgeT: max(calc(var(--S) * 8px), env(safe-area-inset-top)); }
#vit { position: absolute; left: var(--edgeL); top: var(--edgeT); display: flex; align-items: center; animation: rise .9s var(--ease) both .2s; }
#vit .plate { position: relative; display: flex; flex-direction: column; gap: calc(var(--S) * 3.2px); padding: calc(var(--S) * 7px) calc(var(--S) * 26px) calc(var(--S) * 7px) calc(var(--S) * 12px);
  min-width: calc(var(--S) * 196px); }
#vit .plate::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; clip-path: polygon(0 0, calc(100% - var(--S) * 16px) 0, 100% 50%, calc(100% - var(--S) * 16px) 100%, 0 100%);
  background: linear-gradient(90deg, rgba(var(--gold-rgb), .75), rgba(var(--gold-rgb), .2)) top left / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(var(--gold-rgb), .55), rgba(var(--gold-rgb), .1)) bottom left / 100% 1px no-repeat,
    linear-gradient(100deg, rgba(14,10,7,.92), rgba(12,9,7,.82) 60%, rgba(12,9,7,.55)); }
#hud.hasmap #vit .plate { margin-left: calc(var(--disc) * -.18); padding-left: calc(var(--disc) * .18 + var(--S) * 12px); }
#vit .row { display: flex; align-items: center; gap: calc(var(--S) * 6px); white-space: nowrap; }
#vit .nm { font-size: calc(var(--S) * 12.5px); letter-spacing: .2em; font-weight: 700; color: #f6ead2; text-shadow: 0 1px 3px #000; line-height: 1; }
#vit .lv { margin-left: auto; padding: calc(var(--S) * 1.5px) calc(var(--S) * 8px); border-radius: 99px; border: 1px solid rgba(var(--gold-rgb), .6); font-size: calc(var(--S) * 9px);
  font-weight: 700; color: var(--gold2); letter-spacing: .06em; line-height: 1.2; background: rgba(0,0,0,.35); }
#stance { display: none; }
#vit .ic { flex: none; width: calc(var(--S) * 10px); height: calc(var(--S) * 10px); fill: var(--gold); filter: drop-shadow(0 0 2px rgba(var(--gold-rgb), .6)); }
#vit .ase .ic { fill: #6fb4ff; filter: drop-shadow(0 0 2px rgba(80,160,255,.7)); }
#pips { display: flex; align-items: center; gap: calc(var(--S) * 3px); }
#pips i { width: calc(var(--S) * 7px); height: calc(var(--S) * 7px); transform: rotate(45deg) scale(.8); background: linear-gradient(135deg, #ffb0a0, #e0302a 45%, #8e1a14); box-shadow: 0 0 calc(var(--S) * 4px) rgba(255,60,40,.6); transition: all .4s; }
#pips i.spent { background: transparent; box-shadow: inset 0 0 0 1px rgba(90,140,220,.55); }
#vit .meter .bar { position: relative; flex: none; width: calc(var(--S) * 112px); height: calc(var(--S) * 6px); border-radius: 1px; background: rgba(0,0,0,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); overflow: hidden; }
#vit .meter .bar b, #vit .meter .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: left; }
#vit .life .bar b { background: linear-gradient(180deg, #ffe7a6, #f0bf55 45%, #b9822e); box-shadow: 0 0 calc(var(--S) * 6px) rgba(255,190,80,.5); transition: transform .18s var(--ease); }
#vit .life .bar i { background: rgba(255,240,220,.65); transition: transform .9s .35s var(--ease); }
#vit .ase .bar b { background: linear-gradient(180deg, #a8d8ff, #3f8cf0 50%, #1d4fa8); box-shadow: 0 0 calc(var(--S) * 6px) rgba(70,150,255,.45); transition: transform .25s var(--ease); }
#vit .ase .bar u { position: absolute; top: -1px; bottom: -1px; width: 1px; background: rgba(255,255,255,.7); }
#vit .ase.can .bar b { box-shadow: 0 0 calc(var(--S) * 8px) rgba(120,190,255,.8); }
#vit .num { min-width: calc(var(--S) * 44px); text-align: right; font-size: calc(var(--S) * 9.5px); font-weight: 600; color: #efe3cc; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #000; }
#vit .life.low .bar b { background: linear-gradient(180deg, #ffb0a0, #e0483a 50%, #8e1a14); animation: breathe 1s ease-in-out infinite; }
#vit .life.hurt .bar { animation: shake .35s ease-out; }
#vit .furyrow { padding-left: calc(var(--S) * 16px); }
#vit .furyrow .bar { position: relative; width: calc(var(--S) * 112px); height: calc(var(--S) * 2.5px); background: rgba(60,30,20,.65); border-radius: 2px; overflow: hidden;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(25% - 2px), transparent calc(25% - 2px) 25%); mask: repeating-linear-gradient(90deg, #000 0 calc(25% - 2px), transparent calc(25% - 2px) 25%); }
#vit .furyrow .bar b { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #a8321a, var(--ember), #ffc27a); transition: width .25s var(--ease); }
#vit .furyrow.full .bar { animation: burn .9s ease-in-out infinite; }
#vit .furyrow.on .bar b { background: linear-gradient(90deg, #ffb35a, #fff0c0); transition: none; }
#furyKey { font-style: normal; font-size: calc(var(--S) * 7.5px); letter-spacing: .13em; font-weight: 700; color: var(--ember); white-space: nowrap; text-shadow: 0 1px 3px #000; animation: breathe 1.2s ease-in-out infinite; }
#furyKey:empty { display: none; }
@keyframes burn { 50% { box-shadow: 0 0 calc(var(--S) * 12px) rgba(var(--ember-rgb), 1); } }
@keyframes breathe { 50% { opacity: .5; } }
@keyframes shake { 20% { transform: translateX(-3px); } 40% { transform: translateX(3px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(1px); } }
@keyframes shardflash { 50% { background: #fff; } }
#vit .under { position: absolute; left: calc(var(--S) * 12px); top: calc(100% + var(--S) * 52px); display: flex; flex-direction: column; gap: calc(var(--S) * 3px); align-items: flex-start; }
#hpost:not(.show) { display: none; }
#hpost { height: 2px; width: calc(var(--S) * 64px); background: rgba(0,0,0,.4); border-radius: 2px; overflow: hidden; }
#hpost b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f0b030, #ffe08a); }
#pipsLine { display: none; font-size: calc(var(--S) * 7.5px); letter-spacing: .13em; font-weight: 600; color: rgba(168,204,255,.8); white-space: nowrap; text-shadow: 0 1px 3px #000; }
#pipsLine.show { display: block; }
#field { display: flex; gap: calc(var(--S) * 5px); }
#field:empty { display: none; }
#field .eg { position: relative; width: calc(var(--S) * 15px); height: calc(var(--S) * 15px); animation: pop .4s var(--ease); }
#field .eg u { position: absolute; left: 0; right: 0; bottom: calc(var(--S) * -3px); height: 2px; background: rgba(40,36,48,.9); }
#field .eg u b { display: block; height: 100%; background: currentColor; }
#field .eg.raised { opacity: .72; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(calc(var(--S) * -8px)); } }
/* the map's disc: gold-rimmed, a compass N on top */
#minimap { pointer-events: auto; position: relative; z-index: 2; flex: none; width: var(--disc); height: var(--disc); border-radius: 50%; padding: 0; overflow: visible;
  border: calc(var(--S) * 1.5px) solid #c9923c; box-shadow: 0 0 0 calc(var(--S) * 3px) rgba(6,4,3,.85), 0 0 0 calc(var(--S) * 4.6px) #d9a24a, 0 0 calc(var(--S) * 10px) calc(var(--S) * 4px) rgba(255,170,60,.25), 0 calc(var(--S) * 3px) calc(var(--S) * 12px) rgba(0,0,0,.7), inset 0 0 calc(var(--S) * 12px) rgba(0,0,0,.85);
  background: radial-gradient(circle, #1a130c, #050407 70%); transition: transform .2s var(--ease); }
#minimap::after { content: 'N'; position: absolute; left: 50%; top: calc(var(--S) * -1px); transform: translate(-50%, -50%); font-size: calc(var(--S) * 8px); font-weight: 800; color: var(--gold2); text-shadow: 0 0 3px #000, 0 0 2px #000; }
#minimap:active { transform: scale(.95); }
#minimap canvas { width: 100%; height: 100%; display: block; border-radius: 50%; }
/* THE ROOM'S CARD, under the plate */
#quest { pointer-events: auto; position: absolute; left: var(--edgeL); top: calc(var(--edgeT) + var(--disc) + var(--S) * 26px); display: flex; align-items: center; gap: calc(var(--S) * 9px);
  width: calc(var(--S) * 214px); padding: calc(var(--S) * 7px) calc(var(--S) * 10px) calc(var(--S) * 7px) calc(var(--S) * 11px); text-align: left;
  background: linear-gradient(100deg, rgba(14,10,7,.9), rgba(12,9,7,.7)); border: 1px solid rgba(var(--gold-rgb), .35); border-left: calc(var(--S) * 3px) solid var(--gold); border-radius: calc(var(--S) * 3px);
  clip-path: polygon(0 0, calc(100% - var(--S) * 8px) 0, 100% calc(var(--S) * 8px), 100% 100%, 0 100%); animation: rise .9s var(--ease) both .3s; }
#quest:empty, #quest.none { display: none; }
#quest .dm { flex: none; width: calc(var(--S) * 13px); height: calc(var(--S) * 13px); transform: rotate(45deg); border: 1.5px solid var(--gold); box-shadow: inset 0 0 0 calc(var(--S) * 2.5px) rgba(0,0,0,.8), inset 0 0 0 calc(var(--S) * 7px) var(--gold); }
#quest .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(var(--S) * 2px); }
#quest b { font-size: calc(var(--S) * 9.5px); letter-spacing: .1em; color: var(--gold2); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#quest .tx span { font-size: calc(var(--S) * 8.5px); color: #e8dcc6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#quest .chev { flex: none; width: calc(var(--S) * 6px); height: calc(var(--S) * 10px); fill: none; stroke: var(--gold2); stroke-width: 1.6; stroke-linecap: round; }
#quest:active { transform: scale(.97); }
/* THE EMBLEM: a gold diamond (it opens the hub) */
#hubBtn { pointer-events: auto; position: relative; flex: none; width: calc(var(--S) * 17px); height: calc(var(--S) * 17px); display: grid; place-items: center;
  transform: rotate(45deg); border-radius: calc(var(--S) * 2.5px);
  background: radial-gradient(circle at 50% 40%, #2c2016, #0b0806 75%); border: 1px solid var(--line3);
  box-shadow: 0 0 0 calc(var(--S) * 2px) rgba(0,0,0,.5), inset 0 0 calc(var(--S) * 6px) rgba(var(--gold-rgb), .18);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
#hubBtn:hover { transform: rotate(45deg) scale(1.08); }
#hubBtn:active { transform: rotate(45deg) scale(.92); }
#hubBtn svg { width: 72%; height: 72%; overflow: visible; transform: rotate(-45deg); }
#hubBtn .ring { fill: none; stroke: rgba(var(--gold-rgb), .55); stroke-width: .9; }
#hubBtn .star { fill: var(--gold); filter: drop-shadow(0 0 2px rgba(var(--gold-rgb), .8)); transition: transform .6s var(--ease); transform-origin: center; }
#hubBtn:hover .star { transform: rotate(45deg); }
#hubBtn .eye { fill: #0a0806; }
#hubBtn .dot { position: absolute; right: calc(var(--S) * -3px); top: calc(var(--S) * -3px); width: calc(var(--S) * 7px); height: calc(var(--S) * 7px); border-radius: 50%;
  background: var(--ember); box-shadow: 0 0 0 calc(var(--S) * 1.5px) #0b0806, 0 0 calc(var(--S) * 8px) var(--ember); transform: scale(0); transition: transform .35s var(--ease); }
#hubBtn.can .dot { transform: scale(1); animation: beat 1.8s ease-in-out infinite; }
#hubBtn.can { border-color: rgba(var(--ember-rgb), .7); }
/* THE FURY, FULL: the emblem goes red and breathes; LIT, it burns gold-white at the heart */
#hubBtn.fury { border-color: #ff5a3c; background: radial-gradient(circle at 50% 40%, #7a1a10, #2a0604 75%); animation: furyBeat 1.1s ease-in-out infinite; }
#hubBtn.fury .star { fill: #ff7a4a; filter: drop-shadow(0 0 3px rgba(255,90,50,.95)); }
#hubBtn.fury .ring { stroke: rgba(255,120,80,.8); }
#hubBtn.burn { border-color: #ffd27a; background: radial-gradient(circle at 50% 40%, #b8401a, #3a0c04 75%); animation: furyBeat .5s ease-in-out infinite; }
#hubBtn.burn .star { fill: #fff0c0; filter: drop-shadow(0 0 4px #ffb35a); }
@keyframes furyBeat { 0%, 100% { box-shadow: 0 0 0 calc(var(--S) * 2px) rgba(0,0,0,.5), 0 0 calc(var(--S) * 6px) rgba(255,70,40,.55); } 50% { box-shadow: 0 0 0 calc(var(--S) * 2px) rgba(0,0,0,.5), 0 0 calc(var(--S) * 16px) rgba(255,70,40,1); } }
@keyframes beat { 50% { box-shadow: 0 0 0 calc(var(--S) * 1.5px) #0b0806, 0 0 calc(var(--S) * 14px) var(--ember); } }
/* the place, top centre; and in a fight, how many remain */
#place { position: absolute; left: 50%; top: max(calc(var(--S) * 10px), env(safe-area-inset-top)); transform: translateX(-50%); text-align: center; animation: rise 1s var(--ease) both .35s;
  /* (kept to the lane between his band and the clock: a long fight's count goes onto two lines before it goes under either) */
  width: max-content; max-width: max(calc(100vw - 2 * var(--laneSide, 0px) - var(--S) * 20px), 38vw); text-wrap: balance; }   /* (never a column one word wide) */
#place b { position: relative; display: block; font-size: calc(var(--S) * 15px); letter-spacing: .26em; padding-left: .26em; color: var(--gold2); font-weight: 700; text-shadow: 0 1px 4px #000, 0 0 12px rgba(255,190,90,.25); transition: opacity .4s; }
#place b::before, #place b::after { content: ''; position: absolute; top: 50%; width: calc(var(--S) * 60px); height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), .8)); }
#place b::before { right: calc(100% + var(--S) * 10px); } #place b::after { left: calc(100% + var(--S) * 10px); transform: scaleX(-1); }
#place span { display: block; font-size: calc(var(--S) * 9.5px); color: #efe3cc; letter-spacing: .24em; margin-top: calc(var(--S) * 3px); font-weight: 500; text-shadow: 0 1px 3px #000; }
#place small { display: block; max-width: min(78vw, calc(var(--S) * 520px)); margin: calc(var(--S) * 4px) auto 0; font-size: calc(var(--S) * 10.5px); line-height: 1.35; color: #f3ead8; letter-spacing: .02em; font-weight: 400; text-shadow: 0 1px 3px #000, 0 0 6px rgba(0,0,0,.8); }
#place small:empty { display: none; }
#place.fight b { display: none; }
/* (2026-10-17, the user: "it gives clear instructions": the line is back — what to do, and how, in plain words — but not the
   realm's name over it: that card is under his plate) */
#place b { display: none; }
/* (a soft dark under the words: what is behind them in the world — a carved band over a gate — never reads through them) */
#place { isolation: isolate; }
#place::before { content: ''; position: absolute; z-index: -1; left: -14%; right: -14%; top: -10px; bottom: -10px; border-radius: 40px;
  background: radial-gradient(ellipse at center, rgba(6,4,3,.62) 0%, rgba(6,4,3,.45) 45%, rgba(6,4,3,0) 75%); pointer-events: none; }
#place:has(#placeSub:empty)::before { display: none; }
#place.tg span { display: none; }
#place span i, #place span em { display: block; font-style: normal; }
#place span em { margin-top: calc(var(--S) * 2px); font-size: calc(var(--micro) * .92); font-weight: 600; letter-spacing: .26em; color: var(--mute); }
#place.fight span { margin-top: 0; font-size: var(--tiny); font-weight: 700; color: var(--gold2); letter-spacing: .24em; }

/* the one in front of him */
#tg { position: absolute; left: 50%; top: calc(max(calc(var(--S) * 10px), env(safe-area-inset-top)) + var(--S) * 54px); transform: translateX(-50%) translateY(-4px); width: min(44vw, calc(var(--S) * 220px), calc(100vw - 2 * var(--laneSide, 0px) - var(--S) * 20px)); opacity: 0; transition: opacity .25s, transform .35s var(--ease); }
#tg.show { opacity: 1; transform: translateX(-50%); }
#tg .nm { font-size: var(--micro); letter-spacing: .3em; color: #f0c0b0; text-align: center; margin-bottom: calc(var(--S) * 3px); font-weight: 700; text-shadow: 0 1px 3px #000; }
#tg .bar { position: relative; height: calc(var(--S) * 4px); background: rgba(0,0,0,.65); border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(232,104,92,.4); }
#tg .bar b, #tg .bar i { position: absolute; left: 0; top: 0; bottom: 0; }
#tg .bar i { background: rgba(255,255,255,.3); }
#tg .bar b { background: linear-gradient(#f59080, #d8453a 55%, #8a2a22); }
#tg .post { position: relative; height: calc(var(--S) * 2.5px); margin: calc(var(--S) * 3px) auto 0; width: 70%; background: rgba(0,0,0,.5); border-radius: 2px; }
#tg .post b { position: absolute; left: 50%; top: 0; bottom: 0; transform: translateX(-50%); width: 0; background: linear-gradient(90deg, #f0b030, #ffe08a, #f0b030); transition: width .1s; }
#tg.open .post b { background: #ff3a2a; animation: shardflash .2s steps(2) infinite; }

/* top right: the time in the realm, the cowries, and pause */
/* (2026-10-01: the clock and the pause, bigger — a thumb's press, and read at a glance) */
#sys { position: absolute; right: max(var(--pad), env(safe-area-inset-right)); top: max(calc(var(--S) * 8px), env(safe-area-inset-top)); display: flex; gap: calc(var(--S) * 7px); align-items: center; pointer-events: auto; animation: rise .9s var(--ease) both .3s; }
#clockChip { display: flex; align-items: center; gap: calc(var(--S) * 6px); height: calc(var(--S) * 28px); padding: 0 calc(var(--S) * 12px); border-radius: 99px;
  background: rgba(10,8,8,.7); border: 1px solid var(--line); font-size: calc(var(--S) * 12.5px); font-weight: 600; letter-spacing: .06em; color: var(--text); white-space: nowrap; }
#clockChip > svg { width: calc(var(--S) * 14px); height: calc(var(--S) * 14px); stroke: var(--gold); fill: none; stroke-width: 1.3; }
#clockChip { gap: calc(var(--S) * 9px); padding: 0 calc(var(--S) * 14px) 0 calc(var(--S) * 10px); clip-path: polygon(calc(var(--S) * 8px) 0, calc(100% - var(--S) * 8px) 0, 100% 50%, calc(100% - var(--S) * 8px) 100%, calc(var(--S) * 8px) 100%, 0 50%); border-radius: 0; border-color: rgba(var(--gold-rgb), .45); }
#clockChip .sep { width: 1px; height: 60%; background: rgba(var(--gold-rgb), .4); }
#clockChip #cw { margin-left: 0; }
#clockChip #cw { color: var(--gold2); margin-left: calc(var(--S) * 5px); }
#fps { display: none; color: var(--faint); }
/* SHOW FPS: its own small line under the clock (2026-10-02: inside the chip it made it half the glass wide, and the room's
   objective, kept to the lane between his band and the chip, went down the middle one word a line) */
#clockChip { position: relative; }
#fps.show { display: block; position: absolute; right: calc(var(--S) * 6px); top: calc(100% + var(--S) * 4px); white-space: nowrap; font-size: var(--micro);
  letter-spacing: .06em; text-shadow: 0 1px 3px #000; }
#bMenu, #bEmote { width: calc(var(--S) * 32px); height: calc(var(--S) * 32px); border-radius: 50%; display: grid; place-items: center; background: rgba(10,8,8,.7); border: 1px solid var(--line); transition: transform .2s var(--ease), border-color .2s; }
#bMenu:hover, #bEmote:hover { border-color: var(--line3); } #bMenu:active, #bEmote:active { transform: scale(.9); }
#bMenu svg, #bEmote svg { width: 46%; height: 46%; stroke: var(--gold2); stroke-width: 1.8; stroke-linecap: round; fill: none; }
#bEmote svg { width: 56%; height: 56%; stroke-width: 1.2; }
#emotes { position: absolute; right: max(var(--pad), env(safe-area-inset-right)); top: calc(max(calc(var(--S) * 8px), env(safe-area-inset-top)) + var(--S) * 42px); display: none; flex-direction: column; gap: calc(var(--S) * 4px); padding: calc(var(--S) * 6px); border-radius: calc(var(--S) * 8px); background: rgba(10,8,8,.82); border: 1px solid var(--line); pointer-events: auto; z-index: 5; }
#emotes.open { display: grid; grid-template-columns: repeat(3, auto); max-height: 70vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }   /* (the dances: three across, scrolled) */
#emotes button { font: inherit; font-size: calc(var(--S) * 12px); letter-spacing: .12em; color: var(--gold2); background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: calc(var(--S) * 5px); padding: calc(var(--S) * 8px) calc(var(--S) * 14px); text-align: left; min-width: calc(var(--S) * 112px); }
#emotes button:active { transform: scale(.96); border-color: var(--line3); }

/* ====================================================================== NOTICES: one at a time, under the plate */
/* (below the band, below what hangs under it — a line for each that shows — and below the disc) */
#hud { --under: 0px; }
#hud:has(#pipsLine.show) { --under: calc(var(--S) * 17px); }
#hud:has(#furyKey:not(:empty)) { --under: calc(var(--S) * 17px); }
#hud:has(#pipsLine.show):has(#furyKey:not(:empty)) { --under: calc(var(--S) * 28px); }
#hud.hasmap #notes, #notes { top: calc(var(--edgeT) + var(--disc) + var(--S) * 80px); }   /* (under the room's card) */
#notes { position: absolute; left: var(--edgeL); top: calc(var(--edgeT) + var(--plateH) + var(--under) + var(--S) * 14px); display: flex; flex-direction: column; gap: calc(var(--S) * 4px); align-items: flex-start; pointer-events: none; z-index: 3; }
.note { --c: 189, 174, 149; position: relative; max-width: calc(var(--S) * 170px); padding: calc(var(--S) * 4px) calc(var(--S) * 9px) calc(var(--S) * 5px) calc(var(--S) * 9px);
  background: linear-gradient(90deg, rgba(12,10,10,.92), rgba(12,10,10,.78)); border-radius: 0 var(--r) var(--r) 0; box-shadow: inset 2px 0 0 rgb(var(--c)), 0 4px 16px rgba(0,0,0,.4);
  animation: noteIn .42s var(--ease) both; transition: opacity .45s, transform .45s var(--ease); overflow: hidden; }
.note.out { opacity: 0; transform: translateX(calc(var(--S) * -12px)); }
.note b { display: block; font-size: calc(var(--micro) * .92); letter-spacing: .15em; font-weight: 700; color: rgb(var(--c)); padding-right: calc(var(--S) * 14px); }
.note span { display: block; font-size: calc(var(--micro) * .86); color: var(--mute); line-height: 1.42; margin-top: calc(var(--S) * 2px); font-weight: 450; }
.note em { position: absolute; right: calc(var(--S) * 7px); top: calc(var(--S) * 5px); font-style: normal; font-size: var(--micro); color: rgba(var(--c), .9); font-weight: 700; }
.note .life { position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: rgba(var(--c), .45); transform-origin: left; }
.note.good { --c: 143, 224, 166; } .note.warn { --c: 230, 186, 106; } .note.fail { --c: 232, 104, 92; } .note.bind { --c: 159, 224, 180; } .note.fury { --c: 255, 138, 60; }
@keyframes noteIn { from { opacity: 0; transform: translateX(calc(var(--S) * -16px)); clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* a card over the world: the carved words, the seal */
/* THE CARD OF A THING NEAR HIM (2026-10-04, the user: "I don't like how that text modal is in the center of the screen ...
   the right side at the top that is free, simply put it there, make it small, then design it"): pinned under the top-right
   buttons (and under the tutorial's SKIP chip), small, never over the picture's middle — a dark glass slip with a gold
   edge on the left, a gold diamond, the thing's name, one line of what it is, and the key to press, all read from the left
   (2026-10-04, the user: "why is everything aligned to the right instead of the left") */
#near { position: fixed; right: calc(var(--S) * 16px); top: calc(var(--S) * 88px); left: auto; z-index: 6; pointer-events: none; text-align: left;
  width: max-content; max-width: calc(var(--S) * 168px); padding: calc(var(--S) * 5px) calc(var(--S) * 10px) calc(var(--S) * 5.5px) calc(var(--S) * 9px);
  background: linear-gradient(90deg, rgba(20,14,8,.9), rgba(12,9,6,.72)); border: 1px solid rgba(var(--gold-rgb), .22); border-left: 2px solid rgba(var(--gold-rgb), .85);
  border-radius: calc(var(--S) * 3px); box-shadow: 0 4px 14px rgba(0,0,0,.45); opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s var(--ease); }
#near.show { opacity: 1; transform: none; }
#near b { display: block; font-size: calc(var(--micro) * 1.08); letter-spacing: .16em; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#near b::before { content: ''; display: inline-block; width: calc(var(--S) * 4.5px); height: calc(var(--S) * 4.5px); margin-right: calc(var(--S) * 5px); vertical-align: middle; transform: rotate(45deg) translateY(-1px);
  background: var(--gold); box-shadow: 0 0 5px rgba(var(--gold-rgb), .8); }
#near span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 0; font-size: calc(var(--micro) * .9); letter-spacing: .02em; line-height: 1.3; color: var(--mute); font-style: italic; }
#near span:empty { display: none; }
#near em { display: inline-block; font-style: normal; font-size: calc(var(--micro) * .8); letter-spacing: .12em; font-weight: 700; color: #1a1206; background: linear-gradient(180deg, #f6d38c, var(--gold)); padding: 1px calc(var(--S) * 5px); border-radius: 2px; margin-top: calc(var(--S) * 3.5px); white-space: nowrap; }

/* a soul standing out of a body */
#soul { position: fixed; left: 0; top: 0; z-index: 6; pointer-events: none; width: calc(var(--S) * 44px); height: calc(var(--S) * 44px); opacity: 0; transition: opacity .2s; }
#soul.show { opacity: 1; }
#soul svg { width: 100%; height: 100%; overflow: visible; }
#soul .lbl { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); white-space: nowrap; font-size: var(--micro); letter-spacing: .14em; font-weight: 700; color: var(--spirit); margin-top: calc(var(--S) * 3px); text-shadow: 0 1px 3px #000; }

/* numbers and words off the bodies */
#pops { position: fixed; inset: 0; pointer-events: none; z-index: 6; }
.pop { position: absolute; left: 0; top: 0; font-weight: 700; font-size: var(--small); color: #f4ead8; text-shadow: 0 1px 2px #000, 0 0 5px #000; white-space: nowrap; font-variant-numeric: tabular-nums; animation: popIn .25s var(--ease); }
@keyframes popIn { from { scale: 1.6; } }
.pop.heavy { font-size: var(--big); color: #fff3d0; font-weight: 800; }
.pop.ally { color: var(--spirit); font-size: var(--tiny); }
.pop.word { font-size: var(--tiny); letter-spacing: .22em; color: #d0dcf0; }
.pop.parry { font-size: var(--small); letter-spacing: .28em; font-weight: 800; color: #fff; text-shadow: 0 0 10px #fff, 0 1px 2px #000; }
.pop.beat { font-size: var(--tiny); letter-spacing: .26em; font-weight: 800; color: var(--gold2); text-shadow: 0 0 8px rgba(var(--gold-rgb), .8), 0 1px 2px #000; }
.pop.cowrie { font-size: var(--tiny); color: #f4ead8; }
.pop.cowrie::before { content: ''; display: inline-block; width: .55em; height: .75em; margin-right: .3em; border-radius: 50%; background: #efe6d0; vertical-align: -.05em; }
.pop.danger { font-size: var(--big); color: #ff5a48; font-weight: 800; text-shadow: 0 0 10px #ff0000, 0 1px 2px #000; }
.pop.alert { font-size: var(--big); color: #ffd060; font-weight: 800; text-shadow: 0 0 10px rgba(255,170,40,.9), 0 1px 2px #000; }

/* THE BANNER: big words in the middle, used sparingly */
#banner { position: fixed; left: 50%; top: 36%; transform: translate(-50%, -50%); z-index: 7; pointer-events: none; text-align: center; opacity: 0; width: 92vw; }
#banner b { display: block; font-size: clamp(20px, 2.6vw + 8px, 44px); letter-spacing: .3em; padding-left: .3em; color: var(--text); font-weight: 750; white-space: nowrap; line-height: 1.1;
  text-shadow: 0 0 22px rgba(var(--gold-rgb), .45), 0 2px 4px #000; }
#banner i { display: block; width: min(40vw, 320px); height: 1px; margin: .7em auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform-origin: center; }
#banner span { display: block; font-size: clamp(10px, .5vw + 8px, 15px); letter-spacing: .26em; color: var(--gold2); font-weight: 500; text-shadow: 0 1px 3px #000; }
#banner.ice b { color: #e4ecf8; text-shadow: 0 0 22px rgba(168,204,255,.45), 0 2px 4px #000; }
#banner.mark b { color: #ffd0c0; text-shadow: 0 0 22px rgba(232,80,60,.6), 0 2px 4px #000; }
#banner.show { animation: bannerA 3s var(--ease) forwards; }
#banner.show b { animation: bannerB 3s var(--ease) forwards; }
#banner.show i { animation: bannerI 3s var(--ease) forwards; }
@keyframes bannerA { 0% { opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bannerB { 0% { letter-spacing: .6em; filter: blur(6px); } 22% { letter-spacing: .3em; filter: blur(0); } 100% { letter-spacing: .34em; } }
@keyframes bannerI { 0% { transform: scaleX(0); } 30% { transform: scaleX(1); } }

/* THE CALLOUT: a finisher's name, right of centre, gone in a second */
#callout { position: absolute; right: max(calc(var(--S) * 10px), env(safe-area-inset-right)); top: 21%; text-align: right; pointer-events: none; opacity: 0; }
#callout b { display: block; font-size: clamp(11px, .7vw + 6px, 16px); color: var(--text); letter-spacing: .12em; font-weight: 800; font-style: italic; text-shadow: 0 0 16px rgba(var(--gold-rgb), .7), 0 2px 6px rgba(0,0,0,.9); }
#callout span { display: block; font-size: clamp(8px, .3vw + 6px, 10.5px); color: var(--gold2); letter-spacing: .14em; margin-top: 1px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.9); }
#callout.show { animation: callout 1.3s var(--ease) forwards; }
@keyframes callout { 0% { opacity: 0; transform: translateX(28px) skewX(-10deg); } 12% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateX(-10px); } }

/* the black over a return */
#home { position: fixed; inset: 0; z-index: 9; pointer-events: none; background: radial-gradient(circle at 50% 50%, #0a0708, #020103 70%); opacity: 0; transition: opacity .6s; display: grid; place-items: center; }
#home.show { opacity: .97; transition: opacity .25s; }
#home b { display: block; font-size: var(--w-xl); letter-spacing: .44em; padding-left: .44em; color: var(--gold2); font-weight: 700; text-align: center; }
#home span { display: block; font-size: var(--w-s); letter-spacing: .2em; color: var(--mute); margin-top: 1em; text-align: center; }
#home.show b { animation: bannerB 2.4s var(--ease) both; }

/* the fight's marks over bodies */
.bmark { position: fixed; left: 0; top: 0; z-index: 6; pointer-events: none; font-weight: 800; text-align: center; }
.bmark.danger { width: calc(var(--S) * 22px); height: calc(var(--S) * 22px); line-height: calc(var(--S) * 22px); font-size: calc(var(--S) * 14px); color: #fff; border-radius: 50%;
  background: radial-gradient(circle, #ff2a1a 30%, rgba(255,40,20,.25) 70%, transparent 72%); text-shadow: 0 0 6px #ff0000; animation: breathe .25s ease-in-out infinite; }
.bmark.db { width: calc(var(--S) * 16px); height: calc(var(--S) * 16px); border-radius: 50%; border: 2px solid #ff3a2a; box-shadow: 0 0 10px #ff2a1a, inset 0 0 6px #ff2a1a;
  background: radial-gradient(circle, #ff4a3a 25%, transparent 30%); animation: breathe .5s ease-in-out infinite; }
#reticle { position: fixed; left: 0; top: 0; width: calc(var(--S) * 20px); height: calc(var(--S) * 20px); pointer-events: none; z-index: 4; opacity: 0; transition: opacity .2s; }
/* the lock (2026-10-02, the user: "not red in his body — something over his head, something nice"): a gold arrow above
   his head, bobbing */
#reticle svg { width: 100%; height: 100%; filter: drop-shadow(0 0 4px rgba(255,210,122,.75)) drop-shadow(0 1px 2px #000); animation: lockbob 1.1s ease-in-out infinite; }
@keyframes lockbob { 0%, 100% { transform: translateY(-12%); } 50% { transform: translateY(12%); } }
@keyframes spin { to { transform: rotate(360deg); } }
/* THE AXE'S AIM (2026-10-04, the user: "the axe throw should not use that current cross hair ... just one small line, since it
   would fly horizontally"): a thin level line, fading at its ends, the point it flies to in the middle */
#aimRet { position: fixed; left: 50%; top: 45%; width: calc(var(--S) * 70px); height: calc(var(--S) * 7px); color: #f2ecdc; transform: translate(-50%, -50%); z-index: 6; pointer-events: none; opacity: 0; transition: opacity .12s; }
#aimRet.show { opacity: .9; }
#aimRet svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.9)); }
#aimRet.charged { color: #7fe0ff; filter: drop-shadow(0 0 5px #7fe0ff); }
/* witch time: the world goes cold and still; the fury: the edges burn */
/* (2026-10-01, the fight's frame rate: the fury's edge was a full-screen blurred box-shadow ANIMATED — the phone painted
   the whole screen's shadow again every frame it burned. A gradient painted once, breathing by its opacity alone, which
   the compositor does for nothing) */
body.witch::after, body.fury::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 2; will-change: opacity; }
body.witch::after { background: radial-gradient(ellipse at center, transparent 52%, rgba(60,120,200,.5) 100%); }
body.fury::after { background: radial-gradient(ellipse at center, transparent 55%, rgba(255,100,25,.42) 100%); animation: furyEdge 1.1s ease-in-out infinite; }
@keyframes furyEdge { 50% { opacity: .65; } }

/* ====================================================================== THE CAPTION: everything said, one line at a time */
#say { position: fixed; left: 50%; bottom: max(clamp(10px, 3vh, 30px), env(safe-area-inset-bottom)); z-index: 8; transform: translateX(-50%);
  width: min(680px, 66vw); padding: .38em 1.4em .42em; font-size: clamp(10.5px, .55vw + 7px, 13px); pointer-events: none; opacity: 0; visibility: hidden;
  --c: 238, 196, 130; text-align: center; display: flex; align-items: baseline; justify-content: center; gap: .7em; white-space: normal; }   /* (2026-10-02: a long line wraps — on a phone it was cut off mid-word) */
#say::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 10px;
  background: radial-gradient(ellipse 60% 140% at 50% 100%, rgba(8,6,6,.85), rgba(8,6,6,.6) 60%, rgba(8,6,6,0) 100%);
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
#say::after { display: none; }
#say.show { visibility: visible; opacity: 1; pointer-events: auto; animation: sayIn .5s var(--ease) both; }
#say.out { visibility: visible; animation: sayOut .35s var(--ease-in) both; }
#say.swap .line, #say.swap .who { animation: swap .38s var(--ease) both; }
@keyframes sayIn { from { opacity: 0; transform: translate(-50%, 14px); filter: blur(4px); } }
@keyframes sayOut { to { opacity: 0; transform: translate(-50%, 8px); visibility: hidden; } }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }
#say .who { flex: none; font-size: .74em; letter-spacing: .24em; font-weight: 750; color: rgb(var(--c)); text-shadow: 0 0 10px rgba(var(--c), .4); }
#say .line { position: relative; flex: 0 1 auto; min-width: 0; overflow: hidden; line-height: 1.35; color: var(--text); font-weight: 450; text-shadow: 0 1px 3px rgba(0,0,0,.9); white-space: nowrap; text-align: left; font-size: calc(1em * var(--sayK, 1)); }   /* (one line, always: hud.js fit) */
#say .ghost { visibility: hidden; }
#say .said { position: absolute; inset: 0; }
#say .dots { display: none; }
#say .dots:empty { display: none; }
#say .dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(var(--c), .25); transition: all .3s var(--ease); }
#say .dots i.was { background: rgba(var(--c), .55); }
#say .dots i.now { width: 14px; border-radius: 2px; background: rgb(var(--c)); }

#say[data-v="adisa"] { --c: 168, 204, 255; }
#say[data-v="oba"] { --c: 247, 220, 160; }
#say[data-v="stone"] { --c: 214, 160, 104; }
#say[data-v="stone"] .line { font-style: italic; color: #efe2cc; }
#say[data-v="other"] { --c: 200, 190, 170; }
#say[data-v="voice"] { --c: 190, 216, 255; }
#say[data-v="voice"] .line { font-style: italic; }
#say[data-v="mark"] { --c: 255, 110, 90; }
#say[data-v="mark"] .line { letter-spacing: .04em; color: #f2d6cc; }

/* ====================================================================== THE LAYERS: the pause menu and the hub */
.layer { position: fixed; inset: 0; z-index: 14; display: none; align-items: center; justify-content: center; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.layer.show, .layer.hide { display: flex; }
.layer.hide { pointer-events: none; animation: layerOut .28s var(--ease-in) forwards; }
.layer.show .scrim { animation: fadeIn .35s var(--ease) both; }
.layer.show .sheet { animation: sheetIn .5s var(--ease) both; }
.layer.hide .sheet { animation: sheetOut .28s var(--ease-in) forwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes layerOut { to { opacity: 0; visibility: hidden; } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(6px); } }
@keyframes sheetOut { to { opacity: 0; transform: translateY(10px) scale(.98); } }
.scrim { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(12,8,6,.6), rgba(3,2,3,.9)); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet { position: relative; display: flex; border-radius: var(--r2); overflow: hidden; font-size: var(--w-m);
  background: linear-gradient(180deg, rgba(28,21,17,.97), rgba(12,10,11,.98) 55%, rgba(8,7,9,.99));
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,230,190,.06); }
.sheet::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line3), transparent); pointer-events: none; }

/* the shared button of the windows */
.hb { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 2.5em; padding: .45em 1.1em; border-radius: var(--r);
  font-size: var(--w-s); font-weight: 700; letter-spacing: .14em; color: var(--text); background: rgba(255,240,220,.04); box-shadow: inset 0 0 0 1px var(--line2);
  transition: background .2s, box-shadow .2s, transform .15s var(--ease), color .2s; white-space: nowrap; }
.hb:hover:not([disabled]) { background: rgba(var(--gold-rgb), .1); box-shadow: inset 0 0 0 1px var(--line3); }
.hb:active:not([disabled]) { transform: scale(.97); }
.hb small { font-size: .8em; font-weight: 500; letter-spacing: .04em; color: var(--mute); }
.hb.gold { background: linear-gradient(180deg, #f0c878, #c9954a); color: #1b1207; box-shadow: 0 4px 14px rgba(var(--gold-rgb), .25), inset 0 1px 0 rgba(255,255,255,.4); }
.hb.gold:hover:not([disabled]) { background: linear-gradient(180deg, #fbd892, #d6a458); }
.hb.quiet { background: transparent; color: var(--mute); }
.hb.danger { background: rgba(232,104,92,.12); box-shadow: inset 0 0 0 1px rgba(232,104,92,.55); color: #ffc2b8; }
.hb.danger:hover { background: rgba(232,104,92,.22) !important; box-shadow: inset 0 0 0 1px rgba(232,104,92,.8) !important; }
.hb[disabled] { opacity: .42; cursor: default; }
.hb.wide { width: 100%; }

/* ---------------------------------------------------------------- THE PAUSE MENU */
.sheet.menu { width: min(920px, 100%); height: min(560px, 100%); }
.mnav { flex: none; width: clamp(170px, 22%, 230px); display: flex; flex-direction: column; gap: 4px; padding: 1.6em 1.1em 1.3em; background: rgba(0,0,0,.25); border-right: 1px solid var(--line); }
.mnav .brand { padding: 0 .6em 1.2em; }
.mnav .brand b { display: block; font-size: var(--w-xl); font-weight: 800; letter-spacing: .32em; color: var(--gold2); line-height: 1; text-shadow: 0 0 18px rgba(var(--gold-rgb), .35); }
.mnav .brand span { display: block; margin-top: .55em; font-size: var(--w-xs); letter-spacing: .34em; color: var(--faint); font-weight: 600; }
.nv { position: relative; text-align: left; padding: .72em .9em; border-radius: var(--r); font-size: var(--w-s); font-weight: 700; letter-spacing: .18em; color: var(--mute); transition: color .2s, background .2s, padding .3s var(--ease); }
.nv::before { content: ''; position: absolute; left: 0; top: 50%; width: 3px; height: 0; border-radius: 2px; background: var(--gold); transform: translateY(-50%); transition: height .3s var(--ease); }
.nv:hover { color: var(--text); background: rgba(255,240,220,.04); padding-left: 1.15em; }
.nv.on { color: var(--gold2); background: rgba(var(--gold-rgb), .08); }
.nv.on::before { height: 60%; }
.nv[data-mact="resume"] { color: var(--text); }
.mnav .grow { flex: 1; }
.mnav .hint { margin: 0; padding: .9em .6em 0; border-top: 1px solid var(--line); font-size: var(--w-xs); line-height: 1.5; color: var(--faint); }
.mbody { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 1.6em 1.9em 1.4em; overflow: hidden; }
.mpane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.mpane.enter > * { animation: paneIn .45s var(--ease) both; }
.mpane.enter > *:nth-child(2) { animation-delay: .04s; } .mpane.enter > *:nth-child(3) { animation-delay: .08s; } .mpane.enter > *:nth-child(4) { animation-delay: .12s; }
@keyframes paneIn { from { opacity: 0; transform: translateX(14px); } }
.mhead { padding-bottom: .9em; margin-bottom: 1em; border-bottom: 1px solid var(--line); }
.mhead b { display: block; font-size: var(--w-l); font-weight: 750; letter-spacing: .16em; color: var(--text); }
.mhead span { display: block; margin-top: .3em; font-size: var(--w-xs); letter-spacing: .14em; color: var(--faint); font-weight: 500; }
/* the realm */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7em; }
.tiles > div { padding: .8em .9em; border-radius: var(--r); background: rgba(255,240,220,.035); box-shadow: inset 0 0 0 1px var(--line); }
.tiles span { display: block; font-size: var(--w-xs); letter-spacing: .16em; color: var(--faint); font-weight: 600; }
.tiles b { display: block; margin-top: .3em; font-size: var(--w-l); font-weight: 750; color: var(--gold2); font-variant-numeric: tabular-nums; }
.parts { list-style: none; margin: 1.1em 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.parts li { display: flex; align-items: center; gap: .9em; padding: .55em .4em; border-bottom: 1px solid rgba(255,240,220,.05); }
.parts li i { flex: none; width: .75em; height: .75em; transform: rotate(45deg); box-shadow: inset 0 0 0 1.5px var(--dim); }
.parts li.ok i { background: var(--gold); box-shadow: 0 0 8px rgba(var(--gold-rgb), .7); }
.parts li b { font-size: var(--w-s); font-weight: 700; letter-spacing: .14em; color: var(--mute); min-width: 11em; }
.parts li.ok b { color: var(--text); }
.parts li span { font-size: var(--w-xs); color: var(--faint); }
.macts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6em 1.2em; padding-top: 1em; margin-top: 1em; border-top: 1px solid var(--line); text-align: center; }   /* (2026-10-02, the user: the restart box was glued to the bottom — it sits under the list now, centred) */
.macts span { flex-basis: 100%; font-size: var(--w-xs); color: var(--faint); letter-spacing: .1em; }
/* the controls */
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2em; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; align-content: start; }
.keys > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; padding: .5em 0; border-bottom: 1px solid rgba(255,240,220,.05); }
.keys b { font-size: var(--w-xs); font-weight: 700; letter-spacing: .16em; color: var(--gold); white-space: nowrap; }
.keys span { font-size: var(--w-s); color: var(--text); text-align: right; }
.note2 { margin: 1em 0 0; font-size: var(--w-xs); line-height: 1.55; color: var(--mute); }
/* settings */
.stabs { display: flex; gap: .3em; margin-bottom: 1em; flex-wrap: wrap; }
.stabs button { padding: .5em 1em; border-radius: 99px; font-size: var(--w-xs); font-weight: 700; letter-spacing: .16em; color: var(--mute); transition: all .25s var(--ease); box-shadow: inset 0 0 0 1px transparent; }
.stabs button:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.stabs button.on { color: #1b1207; background: var(--gold); }
.srows { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 3px; padding-right: 4px; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 1.5em; min-height: 3.3em; padding: .55em 1em; border-radius: var(--r); background: rgba(255,240,220,.028); animation: paneIn .4s var(--ease) both; }
.srow:nth-child(2) { animation-delay: .03s; } .srow:nth-child(3) { animation-delay: .06s; } .srow:nth-child(4) { animation-delay: .09s; } .srow:nth-child(5) { animation-delay: .12s; } .srow:nth-child(6) { animation-delay: .15s; }
.srow .sn b { display: block; font-size: var(--w-s); letter-spacing: .12em; font-weight: 700; color: var(--text); }
.srow .sn small { display: block; font-size: var(--w-xs); color: var(--faint); margin-top: .2em; }
.srow .sc { flex: none; display: flex; align-items: center; }
/* the switch */
.sw { display: flex; align-items: center; gap: .6em; }
.sw i { position: relative; width: 2.9em; height: 1.5em; border-radius: 99px; background: #241d19; box-shadow: inset 0 0 0 1px var(--line2); transition: background .25s; }
.sw i::after { content: ''; position: absolute; top: .22em; left: .22em; width: 1.06em; height: 1.06em; border-radius: 50%; background: var(--faint); transition: transform .3s var(--ease), background .25s; }
.sw.on i { background: linear-gradient(90deg, #a8733a, var(--gold)); box-shadow: 0 0 12px rgba(var(--gold-rgb), .35); }
.sw.on i::after { transform: translateX(1.4em); background: #fff6e2; }
.sw span { font-size: var(--w-xs); font-weight: 700; letter-spacing: .14em; color: var(--faint); min-width: 2.4em; }
.sw.on span { color: var(--gold2); }
/* the strip of choices */
.seg { display: flex; padding: 3px; gap: 2px; border-radius: 99px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { padding: .45em .95em; border-radius: 99px; font-size: var(--w-xs); font-weight: 700; letter-spacing: .12em; color: var(--mute); transition: all .25s var(--ease); }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--gold); color: #1b1207; box-shadow: 0 2px 10px rgba(var(--gold-rgb), .3); }
.seg button:active { transform: scale(.95); }
/* the rail */
.rail { display: flex; align-items: center; gap: 1em; cursor: pointer; touch-action: none; }
.rail .track { position: relative; width: clamp(130px, 14vw, 200px); height: 1.6em; }
.rail .track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgba(255,240,220,.1); }
.rail .track i { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; width: var(--p); border-radius: 4px; background: linear-gradient(90deg, #a8733a, var(--gold)); box-shadow: 0 0 10px rgba(var(--gold-rgb), .35); }
.rail .track b { position: absolute; top: 50%; left: var(--p); width: 1.15em; height: 1.15em; margin: -.575em 0 0 -.575em; border-radius: 50%; background: #fff6e2; box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .35), 0 2px 8px rgba(0,0,0,.6); transition: transform .2s var(--ease); }
.rail.drag .track b, .rail:hover .track b { transform: scale(1.18); }
.rail output { min-width: 2.4em; text-align: right; font-size: var(--w-s); font-weight: 700; color: var(--gold2); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- THE HUB */
.sheet.hub { width: min(1040px, 100%); height: min(640px, 100%); flex-direction: column; }
.hhead { flex: none; display: flex; align-items: center; gap: 1em; padding: .9em 1em .9em 1.4em; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.2); }
.htabs { display: flex; gap: .25em; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ht { position: relative; padding: .65em 1.15em; font-size: var(--w-s); font-weight: 750; letter-spacing: .18em; color: var(--faint); transition: color .25s; white-space: nowrap; }
.ht::after { content: ''; position: absolute; left: 1.15em; right: 1.15em; bottom: -.1em; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.ht:hover { color: var(--text); }
.ht.on { color: var(--gold2); }
.ht.on::after { transform: scaleX(1); }
.purse { padding: .45em 1em; border-radius: 99px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--w-m); font-weight: 750; color: var(--gold2); white-space: nowrap; }
.purse.spent { animation: spent .5s var(--ease); } .purse.short { animation: short .4s ease-out; }
@keyframes spent { 30% { transform: scale(1.12); box-shadow: inset 0 0 0 1px var(--gold), 0 0 18px rgba(var(--gold-rgb), .5); } }
@keyframes short { 20% { transform: translateX(-4px); box-shadow: inset 0 0 0 1px var(--red); } 50% { transform: translateX(4px); } 80% { transform: translateX(-2px); } }
.x { flex: none; width: 2.4em; height: 2.4em; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: all .2s var(--ease); }
.x:hover { box-shadow: inset 0 0 0 1px var(--line3); transform: rotate(90deg); }
.x svg { width: 42%; height: 42%; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; }
.hbody { flex: 1; min-height: 0; display: flex; }
.hpane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.hpane.enter { animation: paneIn .45s var(--ease) both; }
/* upgrades: four tracks */
.tracks { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 1em; padding: 1.3em 1.4em 1.4em; align-content: start; }
.track { padding: 1em 1.1em .5em; border-radius: var(--r2); background: rgba(255,240,220,.03); box-shadow: inset 0 0 0 1px var(--line); animation: paneIn .45s var(--ease) both; }
.track:nth-child(2) { animation-delay: .05s; } .track:nth-child(3) { animation-delay: .1s; } .track:nth-child(4) { animation-delay: .15s; }
.track header { padding-bottom: .6em; margin-bottom: .2em; border-bottom: 1px solid var(--line); }
.track header b { display: block; font-size: var(--w-s); font-weight: 800; letter-spacing: .2em; color: var(--gold2); }
.track header span { display: block; margin-top: .25em; font-size: var(--w-xs); color: var(--faint); }
.track.t-fury header b { color: #ffb070; }
.track .aside { margin: .2em 0 .5em; font-size: var(--w-xs); color: #ffb070; opacity: .8; }
.uprow { display: flex; align-items: center; gap: 1em; padding: .7em 0; border-bottom: 1px solid rgba(255,240,220,.05); border-radius: var(--r); }
.uprow:last-of-type { border-bottom: 0; }
.uprow .tx { flex: 1; min-width: 0; }
.uprow b { display: flex; align-items: center; gap: .7em; font-size: var(--w-s); font-weight: 750; letter-spacing: .12em; color: var(--text); }
.uprow p { margin: .25em 0 0; font-size: var(--w-xs); line-height: 1.45; color: var(--mute); }
.uprow p em { font-style: normal; color: var(--gold2); }
.pips { display: inline-flex; gap: 4px; }
.pips i { width: 7px; height: 7px; transform: rotate(45deg); box-shadow: inset 0 0 0 1.2px rgba(var(--gold-rgb), .5); transition: all .3s; }
.pips i.on { background: var(--gold); box-shadow: 0 0 6px rgba(var(--gold-rgb), .7); }
.hb.buy { flex: none; min-width: 5.4em; min-height: 2.3em; padding: .3em .9em; }
.hb.buy .cw { font-size: 1.05em; letter-spacing: .02em; }
.hb.buy.short { opacity: .55; }
.uprow.bought { animation: bought .9s var(--ease); }
.uprow.bought .pips i.last { animation: pipIn .7s var(--ease); }
.uprow.bought .hb.buy { animation: bought2 .6s var(--ease); }
@keyframes bought { 0% { background: rgba(var(--gold-rgb), .3); box-shadow: 0 0 0 1px var(--gold), 0 0 26px rgba(var(--gold-rgb), .35); } 100% { background: transparent; } }
@keyframes pipIn { 0% { transform: rotate(45deg) scale(2.6); background: #fff; box-shadow: 0 0 14px #fff; } }
@keyframes bought2 { 30% { transform: scale(.9); } }
/* weapons and moves: a list down the side, the one picked on the right */
.split { flex: 1; min-height: 0; display: flex; }
.split > .side { flex: none; width: clamp(180px, 26%, 260px); overflow-y: auto; overflow-x: hidden; padding: 1.1em .9em; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--line); background: rgba(0,0,0,.18); }
.split > .main { flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 1.3em 1.6em 1.4em; }
.wpick { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; padding: .65em .9em; border-radius: var(--r); transition: background .2s, padding .3s var(--ease); }
.wpick:hover { background: rgba(255,240,220,.04); }
.wpick b { font-size: var(--w-s); font-weight: 750; letter-spacing: .1em; color: var(--mute); }
.wpick small { grid-column: 1; font-size: var(--w-xs); color: var(--faint); letter-spacing: .08em; }
.wpick .lvl { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font-size: var(--w-s); font-weight: 750; color: var(--gold); }
.wpick .lvl em { font-style: normal; color: var(--faint); font-weight: 500; font-size: .85em; }
.wpick u { position: absolute; right: .8em; top: .5em; text-decoration: none; font-size: calc(var(--w-xs) * .85); font-weight: 750; letter-spacing: .14em; color: var(--ember); }
.wpick .lvl ~ u { right: 3.6em; }
.wpick.on { background: rgba(var(--gold-rgb), .1); box-shadow: inset 3px 0 0 var(--gold); padding-left: 1.1em; }
.wpick.on b { color: var(--gold2); }
.whead { display: flex; align-items: baseline; gap: 1em; }
.whead b { font-size: var(--w-xl); font-weight: 800; letter-spacing: .08em; color: var(--text); }
.whead span { font-size: var(--w-xs); letter-spacing: .2em; color: var(--gold); font-weight: 700; }
.lead { margin: .6em 0 1em; font-size: var(--w-s); line-height: 1.55; color: var(--mute); max-width: 60ch; }
.lead.small { font-size: var(--w-xs); }
.meter { display: flex; align-items: center; gap: 1em; margin-bottom: .6em; }
.meter span { font-size: var(--w-xs); letter-spacing: .18em; color: var(--faint); font-weight: 700; }
.meter b { font-size: var(--w-s); color: var(--gold2); font-weight: 750; font-variant-numeric: tabular-nums; }
.fillbar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,240,220,.08); overflow: hidden; }
.fillbar i { display: block; height: 100%; background: linear-gradient(90deg, #a8733a, var(--gold)); transition: width .5s var(--ease); }
.acts { display: flex; gap: .7em; margin-top: 1.1em; }
.acts.col { flex-direction: column; gap: .45em; }
/* THE ARMY'S DETAIL (2026-10-01, the user: "too large and scattered"): a head row, a stats strip, two actions side
   by side, and one RANK UP box with the givers as small tiles in two columns */
.split.army > .side.detail { gap: .7em; }
.dhead { display: flex; align-items: center; gap: .75em; }
.detail .dhead .portrait { flex: none; width: 3.6em; height: 4.4em; margin: 0; border-radius: var(--r); overflow: hidden; background: rgba(255,240,220,.04); box-shadow: inset 0 0 0 1px var(--line); }
.detail .dhead .portrait img, .detail .dhead .portrait svg { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.dhead .who { min-width: 0; }
.dhead h4 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail .dhead .tier { margin: .25em 0 0; }
.dnote { margin: 0; font-size: var(--w-xs); line-height: 1.45; color: var(--mute); }
.drow { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; }
.drow .hb { min-height: 2.3em; padding: .35em .5em; font-size: .9em; }
.rankup { display: flex; flex-direction: column; gap: .5em; padding: .7em; border-radius: var(--r); background: rgba(255,240,220,.03); box-shadow: inset 0 0 0 1px var(--line); }
.rankup .rh { display: flex; justify-content: space-between; align-items: baseline; }
.rankup .rh span { font-size: var(--w-xs); letter-spacing: .18em; font-weight: 700; color: var(--gold2); }
.rankup .rh b { font-size: var(--w-xs); letter-spacing: .1em; color: var(--text); }
.rankup .gl { display: grid; grid-template-columns: 1fr 1fr; gap: .35em; max-height: 11em; overflow-y: auto; }
.gchip { position: relative; display: flex; align-items: center; gap: .4em; min-width: 0; padding: .3em .7em .3em .3em; border-radius: var(--r); background: rgba(255,240,220,.03); box-shadow: inset 0 0 0 1px var(--line); color: inherit; font: inherit; font-size: .74em; text-align: left; transition: box-shadow .2s, background .2s; }
.gchip .th { flex: none; width: 1.9em; height: 2.3em; display: grid; place-items: center; overflow: hidden; }
.gchip .th img, .gchip .th svg { width: 100%; height: 100%; object-fit: contain; }
.gchip b { min-width: 0; font-weight: 600; letter-spacing: 0; font-size: .95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gchip u { position: absolute; top: .2em; right: .3em; text-decoration: none; font-size: .7em; letter-spacing: .1em; color: var(--faint); }
.gchip.on { background: rgba(var(--gold-rgb), .16); box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), .85); }
.gchip.on::after { content: ''; position: absolute; top: .3em; right: .3em; width: .45em; height: .45em; border-radius: 50%; background: var(--gold); }
/* the moves */
.moves { margin-top: .9em; display: flex; flex-direction: column; }
.mv { display: flex; align-items: center; justify-content: space-between; gap: 1.4em; padding: .7em 0; border-bottom: 1px solid rgba(255,240,220,.05); animation: paneIn .4s var(--ease) both; }
.mv b { font-size: var(--w-s); font-weight: 750; letter-spacing: .1em; color: var(--text); }
.mv p { margin: .2em 0 0; font-size: var(--w-xs); line-height: 1.45; color: var(--mute); }
.mv kbd { flex: none; max-width: 46%; text-align: right; font-family: var(--ui); font-size: calc(var(--w-xs) * .92); font-weight: 700; letter-spacing: .08em; color: var(--gold); padding: .35em .7em; border-radius: var(--r); background: rgba(var(--gold-rgb), .07); box-shadow: inset 0 0 0 1px var(--line); }
/* the army */
.tallies { display: flex; gap: 2.4em; margin-bottom: 1.1em; }
.tallies span { display: block; font-size: var(--w-xs); letter-spacing: .18em; color: var(--faint); font-weight: 700; }
.tallies b { display: block; font-size: var(--w-l); font-weight: 800; color: var(--text); }
.tallies b em { font-style: normal; font-size: .6em; color: var(--faint); font-weight: 500; }
.tallies b.full { color: var(--gold2); }
.empty { padding: 2em 0; max-width: 46ch; }
.empty b { display: block; font-size: var(--w-m); color: var(--text); font-weight: 650; }
.empty p { margin: .5em 0 0; font-size: var(--w-s); line-height: 1.55; color: var(--mute); }
.empty.small { padding: 1em 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .7em; }
.egcard { position: relative; display: flex; flex-direction: column; aspect-ratio: 1 / 1.35; border-radius: var(--r); overflow: hidden; background: rgba(255,240,220,.03); box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s var(--ease), box-shadow .25s; animation: pop .4s var(--ease) both; }
.egcard:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line3); }
.egcard.sel { box-shadow: inset 0 0 0 2px var(--gold), 0 0 20px rgba(var(--gold-rgb), .25); }
.egcard .art { flex: 1; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 75%, rgba(var(--gold-rgb), .14), transparent 70%); min-height: 0; }
.egcard .art img { width: 88%; height: 88%; object-fit: contain; }
.egcard .strip { padding: .45em .4em .5em; text-align: center; background: rgba(0,0,0,.35); }
.egcard .strip b { display: block; font-size: calc(var(--w-xs) * .92); color: var(--text); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.egcard .strip i { display: block; font-style: normal; font-size: calc(var(--w-xs) * .8); color: var(--faint); letter-spacing: .06em; }
.egcard .strip i.gold { color: var(--gold); }
.egcard u { position: absolute; left: .4em; top: .4em; text-decoration: none; font-size: calc(var(--w-xs) * .75); font-weight: 800; letter-spacing: .12em; color: #1b1207; background: var(--gold); padding: .1em .45em; border-radius: 3px; }
.egcard u.rest { background: #6a6478; color: #eee8f6; }
.egcard.resting .art { opacity: .45; filter: grayscale(.6); }
.split.army > .main { order: 0; }
.split.army > .side { order: 1; border-right: 0; border-left: 1px solid var(--line); width: clamp(210px, 30%, 290px); padding: 1.3em 1.2em; }
.detail .portrait { height: 7em; display: grid; place-items: center; margin-bottom: .6em; }
.detail .portrait img { max-height: 100%; max-width: 80%; object-fit: contain; }
.detail h4 { margin: 0; font-size: var(--w-m); font-weight: 800; letter-spacing: .08em; }
.detail .tier { margin: .3em 0 .8em; font-size: var(--w-xs); letter-spacing: .18em; color: var(--faint); font-weight: 700; }
.detail .tier.gold { color: var(--gold); }
.kvs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4em; }
.kvs > div { padding: .45em .5em; border-radius: var(--r); background: rgba(255,240,220,.035); }
.kvs span { display: block; font-size: calc(var(--w-xs) * .8); letter-spacing: .12em; color: var(--faint); font-weight: 700; }
.kvs b { display: block; font-size: var(--w-xs); color: var(--text); font-weight: 700; margin-top: .1em; }

/* ---------------------------------------------------------------- THE CONFIRM */
#confirm { position: fixed; inset: 0; z-index: 16; display: none; align-items: center; justify-content: center; background: rgba(3,2,3,.72); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); padding: 16px; }
#confirm.show { display: flex; animation: fadeIn .25s var(--ease) both; }
#confirm .card { width: min(420px, 100%); padding: 1.6em 1.7em 1.4em; border-radius: var(--r2); font-size: var(--w-m); background: linear-gradient(180deg, rgba(30,22,18,.98), rgba(12,10,11,.99)); box-shadow: 0 0 0 1px var(--line2), 0 24px 60px rgba(0,0,0,.7); animation: sheetIn .4s var(--ease) both; }
#confirm b { display: block; font-size: var(--w-m); font-weight: 800; letter-spacing: .18em; color: var(--text); }
#confirm p { margin: .8em 0 1.4em; font-size: var(--w-s); line-height: 1.55; color: var(--mute); }
#confirm .row { display: flex; gap: .6em; justify-content: flex-end; }

/* ====================================================================== THE LOADING SCREEN */
#loading { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 50% 58%, #1c110b 0%, #0b0706 45%, #030204 100%); }
#embers { position: absolute; inset: 0; width: 100%; height: 100%; }
#loading .veil { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 40% at 50% 46%, rgba(255,140,60,.08), transparent 70%), linear-gradient(0deg, rgba(0,0,0,.55), transparent 35%); animation: veil 6s ease-in-out infinite; }
@keyframes veil { 50% { opacity: .6; } }
#loading .stage { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px; }
.sigil { width: clamp(72px, 12vmin, 130px); height: clamp(72px, 12vmin, 130px); overflow: visible; filter: drop-shadow(0 0 18px rgba(255,150,60,.35)); }
.sigil .prog, .sigil .star { transform-box: fill-box; transform-origin: center; }
.sigil .track { fill: none; stroke: rgba(var(--gold-rgb), .12); stroke-width: 1.2; }
.sigil .prog { fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transform: rotate(-90deg); filter: drop-shadow(0 0 4px var(--gold)); }
.sigil .diamond { fill: none; stroke: rgba(var(--gold-rgb), .7); stroke-width: 1.2; stroke-dasharray: 230; stroke-dashoffset: 230; animation: draw 1.8s var(--ease) forwards .3s; }
.sigil .star { fill: rgba(var(--gold-rgb), 0); stroke: var(--gold2); stroke-width: 1; stroke-dasharray: 200; stroke-dashoffset: 200; transform-origin: center; animation: draw 1.6s var(--ease) forwards .9s, starFill .8s ease forwards 2.2s, starTurn 14s linear infinite 2.2s; }
.sigil .eye { fill: #fff0cc; opacity: 0; animation: fadeIn .6s ease reverse both, eye 3s ease-in-out infinite 2.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes starFill { to { fill: rgba(var(--gold-rgb), .9); } }
@keyframes starTurn { to { transform: rotate(360deg); } }
@keyframes eye { 0%, 100% { opacity: .9; } 50% { opacity: .35; } }
#loading .logo { margin: .45em 0 0; font-size: clamp(28px, 5vmin + 8px, 76px); font-weight: 800; letter-spacing: .36em; padding-left: .36em; line-height: 1; color: #fff3dc; display: flex; }
#loading .logo span { display: inline-block; opacity: 0; transform: translateY(.5em); filter: blur(10px); animation: letter 1.1s var(--ease) forwards; text-shadow: 0 0 30px rgba(255,170,90,.45), 0 0 2px rgba(255,220,170,.6);
  background: linear-gradient(180deg, #fff8e6 20%, #f0c47a 70%, #b87a38); -webkit-background-clip: text; background-clip: text; color: transparent; }
#loading .logo span:nth-child(1) { animation-delay: .5s; } #loading .logo span:nth-child(2) { animation-delay: .62s; } #loading .logo span:nth-child(3) { animation-delay: .74s; }
#loading .logo span:nth-child(4) { animation-delay: .86s; } #loading .logo span:nth-child(5) { animation-delay: .98s; }
@keyframes letter { to { opacity: 1; transform: none; filter: blur(0); } }
#loading .tag { margin-top: 1.1em; font-size: clamp(8.5px, .45vw + 6.5px, 12.5px); letter-spacing: .5em; padding-left: .5em; color: var(--gold); font-weight: 600; opacity: 0; animation: fadeUp 1s var(--ease) forwards 1.4s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: .85; transform: none; } }
#loading.crossing .load, #loading.crossing .tag, #loading.crossing .logo span { animation-delay: 0s !important; }   /* (through a portal: the bar at once) */
#loading .load { width: min(360px, 70vw); margin-top: clamp(22px, 5vh, 44px); opacity: 0; animation: fadeUp .8s var(--ease) forwards 1.2s; transition: opacity .5s, transform .5s var(--ease); }
#loading .load .bar { height: 2px; border-radius: 2px; background: rgba(var(--gold-rgb), .12); overflow: hidden; }
#loadBar { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #8a5a2a, var(--gold), #fff0c8); box-shadow: 0 0 10px var(--gold); }
#loading .load .row { display: flex; justify-content: space-between; margin-top: .8em; font-size: clamp(9px, .4vw + 7px, 12px); letter-spacing: .24em; font-weight: 600; color: var(--faint); }
#loadPct { color: var(--gold2); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
#start { position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 40%); opacity: 0; pointer-events: none; padding: .8em 2.6em; border-radius: 99px; font-size: clamp(9.5px, .4vw + 7.5px, 13px); font-weight: 800; letter-spacing: .5em;
  color: #1b1207; background: linear-gradient(180deg, #fbd892, #c9954a); box-shadow: 0 0 0 1px rgba(255,230,180,.5), 0 8px 30px rgba(255,160,60,.35); transition: transform .3s var(--ease), box-shadow .3s; }
#start span { padding-left: .5em; }
#start::before { content: ''; position: absolute; inset: -6px; border-radius: 99px; box-shadow: 0 0 0 1px rgba(var(--gold-rgb), .5); animation: ring 2.2s ease-out infinite; }
@keyframes ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.25, 1.6); } }
#start:hover { box-shadow: 0 0 0 1px rgba(255,230,180,.8), 0 10px 40px rgba(255,160,60,.55); }
#loading.ready .load { opacity: 0; transform: translateY(-6px); animation: none; }
#loading.ready #start { opacity: 1; pointer-events: auto; transform: translate(-50%, 10%); animation: enterIn .7s var(--ease) both; }
@keyframes enterIn { from { opacity: 0; transform: translate(-50%, 60%) scale(.9); } }
#loading.ready .sigil .prog { stroke: #fff0c8; }
#loading .tip { position: absolute; bottom: max(26px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(560px, 86vw); margin: 0; text-align: center; font-size: clamp(9.5px, .3vw + 8px, 12px); color: var(--mute); line-height: 1.5; opacity: 0; transition: opacity .35s; }
#loading .tip.on { opacity: .85; }
/* ENTER: the sign flares, the letters rise away, the dark opens from the middle */
#loading.leaving { pointer-events: none; animation: openUp 1.45s var(--ease-in) forwards .15s; }
#loading.leaving .sigil { animation: flare 1s var(--ease) forwards; }
#loading.leaving .logo span { animation: away .9s var(--ease-in) forwards; }
#loading.leaving .logo span:nth-child(2) { animation-delay: .04s; } #loading.leaving .logo span:nth-child(3) { animation-delay: .08s; } #loading.leaving .logo span:nth-child(4) { animation-delay: .12s; } #loading.leaving .logo span:nth-child(5) { animation-delay: .16s; }
#loading.leaving .tag, #loading.leaving #start, #loading.leaving .tip { opacity: 0 !important; transition: opacity .3s; animation: none; }
@keyframes flare { 30% { transform: scale(1.18); filter: drop-shadow(0 0 40px rgba(255,200,120,1)) brightness(1.6); } 100% { transform: scale(3.2); opacity: 0; filter: drop-shadow(0 0 60px rgba(255,200,120,1)) brightness(2); } }
@keyframes away { to { opacity: 0; transform: translateY(-.9em) scale(1.1); filter: blur(8px); } }
@keyframes openUp { 0% { -webkit-mask: radial-gradient(circle at 50% 46%, transparent 0%, #000 0%); mask: radial-gradient(circle at 50% 46%, transparent 0%, #000 0%); }
  100% { -webkit-mask: radial-gradient(circle at 50% 46%, transparent 75%, #000 110%); mask: radial-gradient(circle at 50% 46%, transparent 75%, #000 110%); opacity: 0; } }

#err { position: fixed; left: 8px; right: 8px; bottom: 8px; max-height: 40%; overflow: auto; z-index: 50; display: none; margin: 0; padding: 10px;
  background: rgba(60,0,0,.9); color: #fff; font: 12px/1.4 monospace; white-space: pre-wrap; border: 1px solid #f66; }

/* ====================================================================== SMALL SCREENS */
/* a phone on its side: the caption sits between the stick and the buttons, the windows lose their margins */
@media (max-width: 820px) {
  #say { width: min(50vw, 440px); bottom: max(6px, env(safe-area-inset-bottom)); font-size: clamp(10px, .9vw + 4px, 12px); }
}
/* on a touch screen the right thumb's buttons are at the bottom right: the caption sits left of them, and a touch goes through it */
@media (pointer: coarse) {
  #say { left: 42%; width: min(44vw, 420px); bottom: max(6px, env(safe-area-inset-bottom)); font-size: clamp(10px, .9vw + 4px, 12px); }
  #say.show { pointer-events: none; }
}
@media (max-height: 480px) {
  .layer { padding: 6px; }
  .sheet.menu, .sheet.hub { height: 100%; }
  .mnav { padding: 1em .7em; } .mnav .brand { padding-bottom: .6em; } .nv { padding: .55em .8em; }
  .mbody { padding: 1em 1.2em; } .mhead { padding-bottom: .5em; margin-bottom: .6em; }
  .tiles > div { padding: .5em .7em; } .parts li { padding: .35em .4em; }
  .srow { min-height: 2.8em; padding: .4em .8em; }
  .hhead { padding: .45em .6em .45em 1em; } .ht { padding: .5em .8em; }
  .tracks { padding: .8em; gap: .7em; } .track { padding: .7em .8em .3em; } .uprow { padding: .45em 0; }
  .split > .main { padding: .9em 1.1em; } .split > .side { padding: .7em .6em; }
  #loading .load { margin-top: 16px; }
}
@media (max-width: 720px) {
  .mnav { width: 150px; } .mnav .hint { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .keys { grid-template-columns: 1fr; }
  .tracks { grid-template-columns: 1fr; }
  .split > .side { width: 150px; }
}
@media (max-width: 520px) and (orientation: portrait) {
  .sheet.menu { flex-direction: column; } .mnav { width: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); } .mnav .brand, .mnav .grow { display: none; }
  .split { flex-direction: column; } .split > .side { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  #say { width: 88vw; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ====================================================================== THE MAP (realm/map.js): the disc under his plate; the whole room when tapped */
#bigmap { position: fixed; inset: 0; z-index: 40; display: none; align-items: center; justify-content: center; }
#bigmap.show { display: flex; }
#bigmap .scrim { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(10,8,6,.75), rgba(3,2,2,.94)); }
#bigmap .win { position: relative; width: min(calc(100vw - 24px), 1100px); height: calc(100vh - 20px); display: flex; flex-direction: column; padding: 10px 14px 8px;
  background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r2); box-shadow: 0 10px 40px rgba(0,0,0,.7); }
#bigmap .hd { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
#bigmap .hd b { font-size: var(--w-s); letter-spacing: .4em; color: var(--gold2); font-weight: 700; }
#bigmap .hd span { flex: 1; font-size: var(--w-xs); color: var(--mute); letter-spacing: .14em; }
#bigmap .hd .x { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: 50%; }
#bigmap .hd .x svg { width: 12px; height: 12px; stroke: var(--gold); stroke-width: 1.6; fill: none; }
#bigmap canvas { flex: 1; width: 100%; min-height: 0; display: block; border-radius: var(--r); }
#bigmap .ft { font-size: var(--w-xs); color: var(--faint); letter-spacing: .1em; text-align: center; margin-top: 5px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; max-height: 22%; overflow: hidden; }
#bigmap .ft canvas { flex: none; width: 14px !important; height: 14px; display: inline-block; vertical-align: middle; border-radius: 0; margin-right: 3px; }

/* ---------------------------------------------------------------- THE TUTORIAL (tutorial.js, 2026-10-02): the lesson card
   at the left of the glass, under the place's own note. */
/* the tutorial is Ṣadé talking (tutorial.js): on the glass only a SKIP chip, for one who has been through it before */
/* (2026-10-30, the user: "why does the skip tutorial not work when you press it on the screen": #hud lets no touch through,
   pointer-events: none, and the chip had none of its own — every tap fell to the thumbs' glass under it. It takes them now,
   and is big enough for a thumb) */
#tut { position: fixed; left: 50%; top: calc(var(--S) * 58px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 30; background: rgba(10,9,14,.55); border: 1px solid var(--line);
  color: var(--mute); font: inherit; font-size: var(--micro); letter-spacing: .14em; padding: 8px 16px; min-height: 32px; border-radius: 4px;
  pointer-events: auto; touch-action: manipulation; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#tut[hidden] { display: none; }
/* what she names, when it is the emblem by his name */
#hubBtn.tuthl { animation: tuthl 1.2s ease-in-out infinite; border-radius: 50%; }
@keyframes tuthl { 0%, 100% { box-shadow: 0 0 0 2px rgba(255,210,122,.9), 0 0 10px 2px rgba(255,210,122,.5); } 50% { box-shadow: 0 0 0 4px rgba(255,210,122,.5), 0 0 22px 6px rgba(255,210,122,.25); } }

  background: radial-gradient(ellipse at 50% 40%, rgba(40, 26, 12, .96), rgba(4, 3, 5, .99) 70%); font-family: var(--ui); color: var(--text); transition: opacity .45s; }

.credit { margin: 1.2em .8em 0; font-size: var(--w-xs); line-height: 1.5; color: var(--faint); }

/* ====================================================================== TOP RIGHT, PAINTED (assets/hud: cut from the reference)
   the chip: the emblem's diamond (it opens the hub) | the cowries; then the emote and the pause, each a painted round */
#clockChip { position: relative; width: calc(var(--S) * 112px); height: calc(var(--S) * 32px); padding: 0; gap: 0; border: 0; border-radius: 0; clip-path: none;
  background: url(../hud/chip.png) center / 100% 100% no-repeat; }
#clockChip .sep { display: none; }
#clockChip #hubBtn { position: absolute; left: 12%; top: 18%; width: 21%; height: 64%; transform: none; border: 0; border-radius: 4px; background: transparent; box-shadow: none; }
#clockChip #hubBtn svg { opacity: 0; }
#clockChip #hubBtn.fury, #clockChip #hubBtn.burn, #clockChip #hubBtn.can { background: transparent; }
#clockChip #hubBtn.fury { box-shadow: 0 0 calc(var(--S) * 10px) rgba(255,80,40,.9); animation: none; }
#clockChip #hubBtn.burn { box-shadow: 0 0 calc(var(--S) * 14px) rgba(255,200,110,1); animation: none; }
#clockChip #hubBtn .dot { right: -10%; top: -10%; }
#clockChip #cw { position: absolute; left: 70%; top: 50%; transform: translate(-50%, -50%); font-size: calc(var(--S) * 13px); font-weight: 600; color: #f4efe6; text-shadow: 0 1px 2px #000; }
#clockChip #cw::before { display: none; }
#bMenu, #bEmote { width: calc(var(--S) * 33px); height: calc(var(--S) * 33px); border: 0; background: url(../hud/b_pause.png) center / 100% 100% no-repeat; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
#bEmote { background-image: url(../hud/b_emote.png); }
#bMenu svg, #bEmote svg { display: none; }
#sys { gap: calc(var(--S) * 10px); }

/* Ṣadé's catches: her mark in ice, her name, the diamonds — not a second heart (the life is the gold bar) */
#vit .catches .ic.sade { fill: var(--ice); stroke: var(--ice); filter: drop-shadow(0 0 2px rgba(150,190,255,.7)); }
#vit .catches .lb { font-size: calc(var(--S) * 8px); letter-spacing: .14em; color: rgba(190,210,255,.85); font-weight: 700; }
#pips i { background: linear-gradient(135deg, #e8f2ff, #8ab4ff 45%, #3a5fb0); box-shadow: 0 0 calc(var(--S) * 4px) rgba(120,170,255,.65); }

/* THE CARD AS THE TOAST: a notice tints its edge by kind, slides in, and a thin line under it runs down its life */
#notes { display: none !important; }
#quest.toast { border-left-color: var(--tc, var(--gold)); }
#quest.toast .dm { border-color: var(--tc, var(--gold)); box-shadow: inset 0 0 0 calc(var(--S) * 2.5px) rgba(0,0,0,.8), inset 0 0 0 calc(var(--S) * 7px) var(--tc, var(--gold)); }
#quest.toast b { color: var(--tc2, var(--gold2)); white-space: normal; }
#quest.toast .tx span { white-space: normal; }
#quest.toast::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--tc, var(--gold)); transform-origin: left; transform: scaleX(var(--life, 1)); opacity: .8; }
#quest.toast.in { animation: toastIn .35s var(--ease); }
@keyframes toastIn { from { transform: translateX(calc(var(--S) * -14px)); opacity: .2; } }
#quest.toast.warn { --tc: #ff9a5a; --tc2: #ffc39a; }
#quest.toast.good { --tc: #8fe0a6; --tc2: #c4f2d0; }
#quest.toast.fury, #quest.toast.mark { --tc: #ff6a4a; --tc2: #ffb4a0; }
#quest.toast.bind, #quest.toast.ice { --tc: #9fc4ff; --tc2: #d0e2ff; }
#quest.toast.info { --tc: var(--gold); }

/* THE LOADING SCREEN, PLAIN (2026-10-02, the user: "remove the particles, it should be pitch black; ENTER should not pulse;
   "): black, no embers, no glow behind the sign, ENTER still. (No studio badge: 2026-10-04, the user — "remove it ... it is not needed at all") */
#loading { background: #000 !important; }
#loading #embers, #loading .veil { display: none !important; }
#start::before { display: none !important; animation: none !important; }
#loading.ready #start { animation: startFade .6s ease both; }
@keyframes startFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes stageFade { from { opacity: 0; } to { opacity: 1; } }

/* ====================================================================== THE WINDOWS IN THE REFERENCE'S HAND (2026-10-02)
   The user: "apply this same design to the menu and the Abiku army management, so it has this kind of look — not childish".
   The HUD's language carried in: near-black panels, a DOUBLE GOLD HAIRLINE for every frame (a fine gold edge, a dark gap,
   a fainter line inside), square-cut corners instead of pills, gold capitals with an ornament line and a diamond, and
   nothing that bounces or throbs. */
:root { --frame: inset 0 0 0 1px rgba(214,160,72,.55), inset 0 0 0 3px rgba(4,3,2,.9), inset 0 0 0 4px rgba(214,160,72,.16);
  --frame-on: inset 0 0 0 1px rgba(246,206,130,.95), inset 0 0 0 3px rgba(4,3,2,.9), inset 0 0 0 4px rgba(246,206,130,.35), 0 0 14px rgba(255,180,80,.18);
  --panel-g: linear-gradient(180deg, rgba(26,19,13,.96), rgba(9,7,6,.98)); --r: 2px; --r2: 3px; }
.sheet { background: linear-gradient(180deg, #14100c, #070504 60%, #040303) !important; border-radius: 3px !important;
  box-shadow: inset 0 0 0 1px rgba(214,160,72,.7), inset 0 0 0 4px #050403, inset 0 0 0 5px rgba(214,160,72,.22), 0 30px 80px rgba(0,0,0,.8) !important; }
.sheet::before { height: 0 !important; }
.sheet::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: linear-gradient(135deg, #d6a048 0 1px, transparent 1px) top 6px left 6px / 10px 10px no-repeat, linear-gradient(225deg, #d6a048 0 1px, transparent 1px) top 6px right 6px / 10px 10px no-repeat,
    linear-gradient(45deg, #d6a048 0 1px, transparent 1px) bottom 6px left 6px / 10px 10px no-repeat, linear-gradient(315deg, #d6a048 0 1px, transparent 1px) bottom 6px right 6px / 10px 10px no-repeat; opacity: .8; }
.layer.show .sheet { animation: sheetFade .35s ease both !important; }
@keyframes sheetFade { from { opacity: 0; } to { opacity: 1; } }
/* the side rail of the menu and the hub's columns */
.mnav, .split > .side { background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.15)) !important; border-color: rgba(214,160,72,.22) !important; }
.mnav .brand b { letter-spacing: .34em; color: #f3d9a0; text-shadow: none; }
.nv, .wpick { border-radius: 2px !important; transition: color .2s, background .2s !important; }
.nv:hover, .wpick:hover { padding-left: .9em; background: rgba(214,160,72,.05) !important; }
.nv::before { width: 6px !important; height: 6px !important; left: -1px; border-radius: 0 !important; transform: translateY(-50%) rotate(45deg) scale(0) !important; transition: transform .25s ease !important; background: var(--gold) !important; }
.nv.on::before { transform: translateY(-50%) rotate(45deg) scale(1) !important; height: 6px !important; }
.nv.on, .wpick.on { background: linear-gradient(90deg, rgba(214,160,72,.14), rgba(214,160,72,.02)) !important; box-shadow: inset 0 0 0 1px rgba(214,160,72,.3) !important; padding-left: 1.2em !important; }
/* headings: gold capitals over a fine ornament line ending in a diamond */
.mhead b, .whead b, .track header b, .dhead h4 { color: #f3d9a0 !important; letter-spacing: .14em !important; }
.mhead, .track header { border-bottom: 0 !important; position: relative; }
.mhead::after, .track header::after { content: ''; display: block; height: 1px; margin-top: .55em; background: linear-gradient(90deg, rgba(214,160,72,.75), rgba(214,160,72,.12) 70%, transparent); }
/* tabs: a fine underline and a diamond over the active one */
.hhead { background: rgba(0,0,0,.35) !important; border-bottom: 1px solid rgba(214,160,72,.3) !important; }
.ht::after { height: 1px !important; border-radius: 0 !important; }
.ht.on::before { content: ''; position: absolute; left: 50%; bottom: -.38em; width: 6px; height: 6px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }
/* buttons: square-cut, a fine gold frame, no pills */
.hb { border-radius: 2px !important; background: var(--panel-g) !important; box-shadow: var(--frame) !important; letter-spacing: .16em; }
.hb:hover:not([disabled]) { box-shadow: var(--frame-on) !important; background: linear-gradient(180deg, rgba(44,32,20,.96), rgba(12,9,7,.98)) !important; }
.hb.gold { background: linear-gradient(180deg, #f2cf86, #c48a3c 60%, #8a5a22) !important; color: #140c04 !important; box-shadow: inset 0 0 0 1px #ffe6a8, inset 0 0 0 3px rgba(60,36,10,.55), 0 4px 14px rgba(214,160,72,.22) !important; }
.hb.danger { box-shadow: inset 0 0 0 1px rgba(232,104,92,.7), inset 0 0 0 3px rgba(4,3,2,.9), inset 0 0 0 4px rgba(232,104,92,.2) !important; }
.seg { border-radius: 2px !important; background: rgba(0,0,0,.35) !important; box-shadow: inset 0 0 0 1px rgba(214,160,72,.3) !important; }
.seg button { border-radius: 1px !important; }
.seg button.on { background: linear-gradient(180deg, #f2cf86, #c48a3c) !important; box-shadow: inset 0 0 0 1px #ffe6a8 !important; }
.purse { border-radius: 2px !important; box-shadow: var(--frame) !important; background: rgba(0,0,0,.45) !important; }
.x { border-radius: 0 !important; transform: rotate(45deg); box-shadow: inset 0 0 0 1px rgba(214,160,72,.6) !important; width: 2em !important; height: 2em !important; }
.x svg { transform: rotate(-45deg); }
.x:hover { transform: rotate(45deg) !important; box-shadow: inset 0 0 0 1px #f6ce82, 0 0 10px rgba(255,180,80,.3) !important; }
/* panels: upgrade tracks, tiles, rows, the realm's parts, the army's cards and its rank-up box */
.track, .tiles > div, .srow, .rankup, .egcard, .parts li { border-radius: 2px !important; background: var(--panel-g) !important; box-shadow: var(--frame) !important; animation: none !important; }
.egcard:not(.sku):hover { transform: none !important; box-shadow: var(--frame-on) !important; }
.egcard.sel { box-shadow: var(--frame-on), inset 0 0 0 2px rgba(246,206,130,.6) !important; }
.egcard u { border-radius: 1px !important; }
.parts li { margin-bottom: 4px; }
.parts li i { border-radius: 0 !important; transform: rotate(45deg) scale(.8); }
.srow { margin-bottom: 4px; }
.rail .track { box-shadow: none !important; background: none !important; }
.rail .track b { border-radius: 0 !important; transform: rotate(45deg); }
.rail.drag .track b, .rail:hover .track b { transform: rotate(45deg) scale(1.15) !important; }
/* the confirm card */
#confirm .card { border-radius: 3px !important; background: var(--panel-g) !important; box-shadow: var(--frame), 0 30px 80px rgba(0,0,0,.8) !important; }

/* NO TABLE LINES (2026-10-02, the user: "why are there borders in the settings and menu — those lines make it look weird,
   like tables"): the rows of SETTINGS, CONTROLS, the realm's parts and its tiles stand on the window itself, no box and no
   rule between them; a row only lights faintly under a finger */
.srow, .parts li, .tiles > div { box-shadow: none !important; background: transparent !important; border: 0 !important; }
.srows .srow + .srow, .parts li + li { border-top: 0 !important; }
.srow:hover, .parts li:hover { background: rgba(214,160,72,.04) !important; }
.tiles > div { padding-left: 0 !important; }

/* MARGINS (2026-10-02, the user: "it eats into my phone's edge — give a bit of space so it all aligns, the pause button and
   all"): the whole glass sits in from the screen's edges — ~4.5% at the sides, a little at the top — and never closer than the
   phone's own safe area (a notch, a curved edge) plus a breath */
:root { --edgeL: max(4.5vw, calc(env(safe-area-inset-left) + 12px), 22px); --edgeT: max(3.4vh, calc(env(safe-area-inset-top) + 8px), 12px); --edgeR: max(4.5vw, calc(env(safe-area-inset-right) + 12px), 22px); }
#sys { right: var(--edgeR) !important; top: var(--edgeT) !important; }
#place { top: var(--edgeT) !important; }

/* ====================================================================== THE HUD AS THE USER'S PICTURE (2026-10-02, evening)
   The user: "check the last chatgpt image I downloaded and ensure that all the hud placement are perfectly like that. all of
   them". Every place and size below is measured off that picture (1855 x 848) and written in screen heights (vh), so the
   glass sits the same on any phone held on its side: the map's disc tight in the top left corner, his name and bars beside
   it on a soft dark ground with no frame, the card under the disc, the foe's bar high in the middle, the chip and the two
   rounds tight in the top right. (The buttons and the stick are drawn by input.js, measured off the same picture.) */
#vit { left: max(2vw, calc(env(safe-area-inset-left) + 6px)) !important; top: max(calc(2.65 * var(--u)), calc(env(safe-area-inset-top) + 4px)) !important; align-items: flex-start; }
#minimap { width: calc(17.6 * var(--u)); height: calc(17.6 * var(--u)); border-width: calc(.22 * var(--u));
  box-shadow: 0 0 0 calc(.38 * var(--u)) rgba(6,4,3,.85), 0 0 0 calc(.62 * var(--u)) #d9a24a, 0 0 calc(1.2 * var(--u)) calc(.4 * var(--u)) rgba(255,170,60,.22), 0 calc(.4 * var(--u)) calc(1.4 * var(--u)) rgba(0,0,0,.7), inset 0 0 calc(1.4 * var(--u)) rgba(0,0,0,.85); }
#minimap::after { font-size: calc(2.3 * var(--u)); top: 0; }
#hud.hasmap #vit .plate, #vit .plate { margin-left: calc(3.8 * var(--u)); padding: calc(.3 * var(--u)) 0 0 0; gap: 0; min-width: 0; width: calc(39.9 * var(--u)); }
#vit .plate::before { clip-path: none; inset: calc(-1.2 * var(--u)) calc(-2.4 * var(--u)) calc(-1.6 * var(--u)) calc(-3 * var(--u)); border-radius: calc(1 * var(--u));
  background: linear-gradient(90deg, rgba(8,6,5,0), rgba(8,6,5,.5) 9%, rgba(8,6,5,.42) 78%, rgba(8,6,5,0)); }
#vit .row { gap: calc(1.6 * var(--u)); }
#vit .nmrow { height: calc(3.6 * var(--u)); }
#vit .nm { font-size: calc(3.1 * var(--u)); letter-spacing: .16em; }
#vit .lv { font-size: calc(2 * var(--u)); padding: calc(.35 * var(--u)) calc(1.5 * var(--u)); margin-right: calc(2.5 * var(--u)); }
#vit .catches { height: calc(2.6 * var(--u)); margin-top: calc(.65 * var(--u)); gap: calc(1.1 * var(--u)); }
#vit .catches .ic.sade { width: calc(1.9 * var(--u)); height: calc(1.9 * var(--u)); }
#vit .catches .lb { font-size: calc(2.1 * var(--u)); letter-spacing: .1em; }
#pips { gap: calc(.55 * var(--u)); margin-left: calc(.6 * var(--u)); } #pips i { width: calc(1.45 * var(--u)); height: calc(1.45 * var(--u)); }
#vit .life { height: calc(2.4 * var(--u)); margin-top: calc(1.06 * var(--u)); }
#vit .ase { height: calc(2.4 * var(--u)); margin-top: calc(2.36 * var(--u)); }
#vit .meter { margin-bottom: 0; }
#vit .meter .ic { width: calc(2.2 * var(--u)); height: calc(2.2 * var(--u)); }
#vit .meter .bar { width: calc(25.5 * var(--u)); height: calc(1.25 * var(--u)); }
#vit .num { font-size: calc(2.2 * var(--u)); letter-spacing: .08em; min-width: calc(9 * var(--u)); text-align: left; }
#vit .furyrow { position: absolute; left: calc(3.8 * var(--u)); top: calc(100% + calc(.5 * var(--u))); padding: 0; }
#vit .furyrow .bar { width: calc(25.5 * var(--u)); height: calc(.35 * var(--u)); }
#vit .furyrow:not(.full):not(.on) { visibility: hidden; }
/* what only sometimes shows (his footing, the fury's key, the raised): under the card, never over it */
#vit .under { position: fixed; left: max(2vw, calc(env(safe-area-inset-left) + 6px)); top: calc(40.5 * var(--u)); }
#furyKey, #pipsLine { font-size: calc(1.7 * var(--u)); }
#field .eg { width: calc(2.4 * var(--u)); height: calc(2.4 * var(--u)); }
/* THE CARD: a fine double gold frame all round, the diamond, the gold title, up to three lines under it, the chevron */
#quest { left: max(1.6vw, calc(env(safe-area-inset-left) + 4px)) !important; top: calc(22.8 * var(--u)) !important; width: calc(56 * var(--u)); gap: calc(2.2 * var(--u));
  padding: calc(1.8 * var(--u)) calc(3 * var(--u)) calc(1.9 * var(--u)) calc(2.2 * var(--u)); border: 0 !important; border-radius: 2px; clip-path: none; background: rgba(8,6,5,.8);
  box-shadow: inset 0 0 0 1px rgba(var(--qc, 214,160,72), .8), inset 0 0 0 3px rgba(5,4,3,.92), inset 0 0 0 4px rgba(var(--qc, 214,160,72), .25), 0 calc(.6 * var(--u)) calc(2 * var(--u)) rgba(0,0,0,.45); }
#quest .dm { width: calc(3.2 * var(--u)); height: calc(3.2 * var(--u)); border-width: calc(.25 * var(--u)); box-shadow: inset 0 0 0 calc(.55 * var(--u)) rgba(0,0,0,.85), inset 0 0 0 calc(1.3 * var(--u)) var(--tc, var(--gold)) !important; }
#quest b { font-size: calc(2.2 * var(--u)); letter-spacing: .06em; }
#quest .tx { gap: calc(.5 * var(--u)); }
#quest .tx span { font-size: calc(2 * var(--u)); line-height: 1.38; white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#quest .chev { width: calc(1.2 * var(--u)); height: calc(2 * var(--u)); }
#quest.toast.warn { --qc: 255,154,90; } #quest.toast.good { --qc: 143,224,166; } #quest.toast.fury, #quest.toast.mark { --qc: 255,106,74; } #quest.toast.bind, #quest.toast.ice { --qc: 159,196,255; }
#quest.toast::after { left: 4px; right: 4px; bottom: 4px; width: auto; }
/* THE FOE'S BAR, high in the middle: its name in spaced capitals, a long glossy red bar, the footing's thin bar under it */
#tg { top: calc(var(--edgeT) + 8.6 * var(--u)); width: 24.7vw; }   /* (under the room's title, never over it — 2026-10-03, the user: "their health is overlapping with the title") */
#tg .nm { font-size: calc(2.2 * var(--u)); letter-spacing: .24em; color: #f2ece4; margin-bottom: calc(1.1 * var(--u)); }
#tg .bar { height: calc(1.3 * var(--u)); border-radius: 99px; box-shadow: 0 0 0 1px rgba(255,120,100,.35), 0 0 calc(1 * var(--u)) rgba(255,40,30,.25); }
#tg .bar b { background: linear-gradient(#ff8a7a, #e0303a 45%, #9a1420); border-radius: 99px; }
#tg .post { width: 71%; height: calc(.5 * var(--u)); margin-top: calc(.55 * var(--u)); }
/* TOP RIGHT, tight in the corner: the chip, the run, the pause */
#sys { right: max(1.67vw, calc(env(safe-area-inset-right) + 6px)) !important; top: max(calc(2.6 * var(--u)), calc(env(safe-area-inset-top) + 4px)) !important; gap: calc(3.3 * var(--u)); }
#clockChip { width: calc(25.4 * var(--u)); height: calc(6.4 * var(--u)); }
#clockChip #cw { font-size: calc(2.8 * var(--u)); }
#bMenu, #bEmote { width: calc(7.1 * var(--u)); height: calc(7.1 * var(--u)); }
#emotes { top: calc(calc(2.6 * var(--u)) + calc(8 * var(--u))) !important; }

/* THE WINDOWS, IN FROM THE EDGES (2026-10-02, the user: "the settings and Abiku menu box should have a bigger margin from
   around the phone, so that it is properly central"): every window stands well inside the glass, centred */
.layer, .layer[class] { padding: max(calc(6 * var(--u)), calc(env(safe-area-inset-top) + 10px)) max(7vw, calc(env(safe-area-inset-right) + 14px)) max(calc(6 * var(--u)), calc(env(safe-area-inset-bottom) + 10px)) max(7vw, calc(env(safe-area-inset-left) + 14px)) !important; }
.sheet.menu, .sheet.hub { max-height: 100%; }

/* NO BORDER LINES, ANYWHERE (2026-10-02, the user: "there are too many border lines around everything — I hate border
   lines. Remove all: the Abiku menu, the menu, any other place. It can be fine without them"). Every frame, hairline, rule
   and outline of the windows goes; what was a box is a soft darker ground, what was a selected frame is a warmer ground,
   and the gold is left to the words and the diamonds */
:root { --frame: none; --frame-on: none; }
.sheet { box-shadow: 0 30px 80px rgba(0,0,0,.8) !important; border: 0 !important; }
.sheet::after, .sheet::before { display: none !important; }
.mnav, .split > .side { border: 0 !important; }
.mhead::after, .track header::after, .whead::after, .dhead::after { display: none !important; }
.mhead, .whead, .track header, .dhead, .hhead, .mnav .brand, .mnav .foot, .macts, .tiles, .parts, .srows, .keys, .note2 { border: 0 !important; }
.hhead { box-shadow: none !important; }
.track, .rankup, .egcard, .detail, .purse, .card, .wcard, .tcard, .move, .mv, .wpick, .nv { border: 0 !important; box-shadow: none !important; }
.track { background: rgba(255,240,220,.035) !important; }
.track li, .track .row, .track > div + div, .track .up + .up { border: 0 !important; box-shadow: none !important; }
.egcard { background: rgba(255,240,220,.04) !important; } .egcard:hover { box-shadow: none !important; background: rgba(255,230,180,.07) !important; }
.egcard.sel { box-shadow: none !important; background: rgba(214,160,72,.16) !important; }
.nv.on, .wpick.on { box-shadow: none !important; background: rgba(214,160,72,.12) !important; }
.hb, .hb:hover:not([disabled]), .hb.danger { box-shadow: none !important; border: 0 !important; background: rgba(214,160,72,.12) !important; }
.hb:hover:not([disabled]) { background: rgba(214,160,72,.2) !important; }
.hb.danger { background: rgba(232,104,92,.16) !important; }
.hb.gold { box-shadow: none !important; }
.hb.on { background: rgba(214,160,72,.28) !important; }
.seg { box-shadow: none !important; border: 0 !important; background: rgba(255,240,220,.05) !important; }
.seg button.on { box-shadow: none !important; }
.purse { background: rgba(255,240,220,.05) !important; }
.x, .x:hover { box-shadow: none !important; border: 0 !important; background: rgba(214,160,72,.12) !important; }
#confirm .card { box-shadow: 0 30px 80px rgba(0,0,0,.8) !important; border: 0 !important; }
.parts li i { box-shadow: none !important; }
hr, .rule, .sep { display: none !important; }
.mnav .hint, .parts li, .keys > div, .uprow, .mv, .stabs button, .stabs button:hover, .sw i, .detail .dhead .portrait, .gchip, .mv kbd, #bigmap .win, #bigmap .hd .x, #tut, .mnav, .split > .side { border: 0 !important; box-shadow: none !important; }
.gchip.on { box-shadow: none !important; background: rgba(214,160,72,.22) !important; }
.sw i { background: #2a221c !important; }
.stabs button.on { box-shadow: none !important; }
.uprow + .uprow { border-top: 0 !important; }

/* THE TOP LEFT, AGAIN (2026-10-02, the user: "can't you see the curve in the hud, the slightly dim background — why is
   yours very sharp edged ... the border lines in that toast: even if it has to be there like the reference, it is very
   thin"). As the picture: a dim ground with rounded corners behind his name and bars; the card rounded, one hair of gold
   round it and no more, a bigger diamond, bigger words; no line running along its foot */
#vit .plate::before { inset: calc(-1 * var(--u)) calc(-3.8 * var(--u)) calc(-3.1 * var(--u)) calc(-2.7 * var(--u)); border-radius: calc(1.5 * var(--u)); background: rgba(10,8,6,.52); box-shadow: 0 calc(.4 * var(--u)) calc(2 * var(--u)) rgba(0,0,0,.25); }
#vit .lv { color: var(--gold2); border-color: rgba(230,186,106,.85); background: rgba(8,6,4,.55); font-weight: 700; }
#vit .catches .lb { color: #9cc4ff; font-size: calc(2.2 * var(--u)); }
#vit .catches .ic.sade { width: calc(2.2 * var(--u)); height: calc(2.2 * var(--u)); }
#vit .meter .ic { width: calc(2.5 * var(--u)); height: calc(2.5 * var(--u)); }
#vit .meter .bar { height: calc(1.35 * var(--u)); border-radius: calc(.7 * var(--u)); background: rgba(0,0,0,.55); box-shadow: none; }
#vit .meter .bar b, #vit .meter .bar i { border-radius: calc(.7 * var(--u)); }
#vit .num { font-weight: 600; color: #f2e8d6; }
#quest { border-radius: calc(1.2 * var(--u)) !important; padding: calc(1.65 * var(--u)) calc(2.8 * var(--u)) calc(1.8 * var(--u)) calc(2.1 * var(--u)); gap: calc(1.8 * var(--u)); background: rgba(12,9,7,.78);
  box-shadow: inset 0 0 0 1px rgba(var(--qc, 214,160,72), .7), 0 calc(.6 * var(--u)) calc(2 * var(--u)) rgba(0,0,0,.4) !important; }
#quest::after, #quest.toast::after { display: none !important; }
#quest .dm { width: calc(3.6 * var(--u)); height: calc(3.6 * var(--u)); border: calc(.32 * var(--u)) solid var(--tc, var(--gold)); box-shadow: inset 0 0 0 calc(.6 * var(--u)) rgba(10,8,6,.9), inset 0 0 0 calc(1.6 * var(--u)) var(--tc, var(--gold)) !important; }
#quest b { font-size: calc(2.35 * var(--u)); color: var(--tc2, #f2c46a); }
#quest .tx span { font-size: calc(2.15 * var(--u)); line-height: 1.35; color: #f2ece2; }
#quest .chev { width: calc(1.3 * var(--u)); height: calc(2.2 * var(--u)); }
#minimap { border: calc(.25 * var(--u)) solid #d6a548; box-shadow: 0 0 0 calc(.32 * var(--u)) rgba(8,6,4,.9), 0 0 0 calc(.58 * var(--u)) #c99436, 0 calc(.5 * var(--u)) calc(1.6 * var(--u)) rgba(0,0,0,.6), inset 0 0 calc(1.4 * var(--u)) rgba(0,0,0,.8) !important; }
#vit .meter .ic { width: calc(3 * var(--u)); height: calc(3 * var(--u)); }
#vit .life .ic { fill: #f6c45a; filter: drop-shadow(0 0 calc(.5 * var(--u)) rgba(255,190,80,.55)); }
#vit .ase .ic { fill: #3a9cff; filter: drop-shadow(0 0 calc(.5 * var(--u)) rgba(60,150,255,.6)); }
#vit .nm { font-size: calc(3.3 * var(--u)); font-weight: 800; }
#quest { border-radius: calc(.7 * var(--u)) !important; background: rgba(8,6,4,.86); }
#quest .dm { width: calc(4 * var(--u)); height: calc(4 * var(--u)); border-width: calc(.38 * var(--u)); box-shadow: inset 0 0 0 calc(.7 * var(--u)) rgba(8,6,4,.95), inset 0 0 0 calc(2 * var(--u)) var(--tc, #f0c060) !important; border-color: var(--tc, #f0c060); }

/* ====================================================================== PORTRAIT (2026-10-02, the user: "make the game also work in
   portrait mode — a button at the top of the HUD to switch — and it should be perfect in portrait: the HUD, the menu,
   everything", for making content). Every size of the glass is in --u, the screen's SHORT side in hundredths: the height
   on its side, the width upright — so the plate, the card, the bars and the rounds are the same size to the thumb either
   way. Upright, only the places change: the top right stacks under itself, the room's name and the foe's bar come down
   under the card, the words come up over the thumbs, and the windows stack into one column. */
:root { --u: 1vh; }

/* (upright: html.upright — set by the page itself as it is held: index.html) */
/* the top right: the chip on its own row, the three rounds under it */
html.upright #sys { flex-wrap: wrap; justify-content: flex-end; width: calc(27 * var(--u)); gap: calc(2.2 * var(--u)) calc(2 * var(--u)) !important; right: max(calc(2.5 * var(--lw)), calc(env(safe-area-inset-right) + 6px)) !important; top: max(calc(2.65 * var(--u)), calc(env(safe-area-inset-top) + 6px)) !important; }
html.upright #clockChip { width: calc(25.4 * var(--u)); }
html.upright #bMenu, html.upright #bEmote { width: calc(7.4 * var(--u)); height: calc(7.4 * var(--u)); }
html.upright #emotes { top: calc(19 * var(--u)) !important; }
html.upright #vit { left: max(calc(2.5 * var(--lw)), calc(env(safe-area-inset-left) + 6px)) !important; }
html.upright #hud.hasmap #vit .plate, html.upright #vit .plate { width: calc(36 * var(--u)); margin-left: calc(3 * var(--u)); }
html.upright #vit .meter .bar { width: calc(21 * var(--u)); }
html.upright #vit .num { min-width: calc(8 * var(--u)); }
html.upright #quest { left: max(calc(2.5 * var(--lw)), calc(env(safe-area-inset-left) + 6px)) !important; top: calc(24 * var(--u)) !important; width: calc(66 * var(--u)); }
/* the card of a thing near him, under the toast (the top right has no room for it upright: the rounds stack there) */
html.upright #near { right: auto; left: max(calc(2.5 * var(--lw)), calc(env(safe-area-inset-left) + 6px)); top: calc(34 * var(--u)); max-width: calc(66 * var(--u)); }
/* the room's name and its line, and the foe's bar, under the card */
html.upright #place { top: calc(47 * var(--u)) !important; width: calc(90 * var(--lw)); }
html.upright #tg { top: calc(56 * var(--u)); width: calc(70 * var(--lw)); }
html.upright #vit .under { top: calc(41 * var(--u)); }
/* the words, over the thumbs (input.js lays the buttons in the bottom half of the width's measure) */
html.upright #say { left: 50% !important; width: calc(92 * var(--lw)) !important; bottom: calc(57 * var(--u)) !important; font-size: 13px !important; }
/* the windows: one column, well inside the glass */
html.upright .layer, html.upright .layer[class] { padding: max(calc(5 * var(--lh)), calc(env(safe-area-inset-top) + 10px)) max(calc(4 * var(--lw)), calc(env(safe-area-inset-right) + 8px)) max(calc(5 * var(--lh)), calc(env(safe-area-inset-bottom) + 10px)) max(calc(4 * var(--lw)), calc(env(safe-area-inset-left) + 8px)) !important; }
html.upright .sheet.menu, html.upright .sheet.hub { width: 100%; height: 100%; }
html.upright .sheet.menu { flex-direction: column; }
html.upright .mnav { width: auto !important; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 2px; padding: .9em .6em .5em !important; }
html.upright .mnav .brand, html.upright .mnav .grow, html.upright .mnav .hint { display: none !important; }
html.upright .split { flex-direction: column; }
html.upright .split > .side { width: auto !important; max-height: 34%; flex-direction: row; flex-wrap: wrap; overflow-y: auto; }
html.upright .mbody { padding: 1em 1.1em !important; }
html.upright .tiles { grid-template-columns: repeat(3, 1fr); }
html.upright .keys, html.upright .tracks { grid-template-columns: 1fr !important; }
html.upright .srow { flex-wrap: wrap; gap: .5em; }
html.upright .srow .sc { width: 100%; display: flex; justify-content: flex-end; }
html.upright .seg { flex-wrap: wrap; }
html.upright .ht { padding: .5em .55em !important; letter-spacing: .1em !important; }
html.upright .hhead { flex-wrap: wrap; row-gap: .4em; }
html.upright .htabs { order: 3; flex: 1 1 100% !important; overflow-x: auto; }
html.upright .hhead .purse { margin-left: auto; }
/* (the windows' type, upright: from the width, not the height, it came out too small to read) */
html.upright { --w-xs: 10.5px; --w-s: 12px; --w-m: 13.5px; --w-l: 16px; --w-xl: 20px; }
html.upright #bigmap .win { height: calc(calc(100 * var(--lh)) - 40px); }


/* SWITCHING ROOMS (main.js switchRoom): the dark at once, the room's number, a moving bar — never a frozen picture */
#switching { position: fixed; inset: 0; z-index: 300; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1.1em; background: #000; font-family: var(--ui); }
#switching.show { display: flex; animation: fadeIn .25s ease both; }
#switching b { font-size: clamp(16px, 2.6vmin + 8px, 26px); letter-spacing: .4em; padding-left: .4em; color: var(--gold2); font-weight: 700; }
#switching span { font-size: clamp(9px, 1vmin + 6px, 12px); letter-spacing: .35em; padding-left: .35em; color: var(--mute); }
#switching i { display: block; width: min(320px, 64vw); height: 2px; background: rgba(214,160,72,.15); overflow: hidden; }
#switching u { display: block; height: 100%; background: #e8c46e; transform-origin: left; transform: scaleX(0); }

/* (the picture turned by the game itself: gone 2026-10-31 — the phone turns the page) */

/* ONE ROOM INTO THE NEXT (2026-10-02, the user: "it should switch like a normal transition: a fade out, a loading screen,
   a fade in — why is it starting again?"): coming through, the loading screen is only the dark,
   the realm's name and the bar — no sign, no title, no ENTER, no tips — and it fades away onto the room */
#crossName { display: none; }
#loading.crossing .sigil, #loading.crossing .logo, #loading.crossing #start, #loading.crossing .tip { display: none !important; }
#loading.crossing .stage { gap: 1.2em; }
#loading.crossing #crossName { display: block; position: absolute; left: 0; right: 0; top: calc(50% - 3.2em); text-align: center; font-family: var(--ui); font-size: clamp(16px, 2.6vmin + 8px, 26px); letter-spacing: .4em; padding-left: .4em; color: var(--gold2); font-weight: 700; animation: fadeIn .4s ease both; }
#loading.crossing .load { opacity: 1 !important; animation: none !important; transform: none !important; }
#loading.crossing.leaving { animation: crossOut .9s ease forwards !important; }
#loading.crossing.leaving * { animation: none !important; }
@keyframes crossOut { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }

/* room 0, before Ṣadé comes out of the covenant scar: no row of her catches */
body.nosade .row.catches { visibility: hidden; }


/* THE WEB'S FIRST CHOICE (index.html #choose, edition.js apk): PLAY ON WEB in the gold of ENTER, DOWNLOAD APK as an outline
   under it, a small line under both. While it is up the bar and its numbers are hidden: nothing is loading yet. */
#choose { position: absolute; left: 50%; bottom: max(12vh, 64px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 14px; z-index: 3; }
#choose[hidden] { display: none; }
#choose #chPlay, #choose #chApk { min-width: 15em; text-align: center; padding: .85em 2.4em; border-radius: 99px; font-size: clamp(9.5px, .4vw + 7.5px, 13px); font-weight: 800; letter-spacing: .42em; text-decoration: none; }
#choose #chPlay { color: #1b1207; background: linear-gradient(180deg, #fbd892, #c9954a); border: 0; box-shadow: 0 0 0 1px rgba(255,230,180,.5), 0 8px 30px rgba(255,160,60,.35); }
#choose #chApk { color: var(--gold2); background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), .55); }
#choose span { padding-left: .42em; }
#choose small { font-size: clamp(8px, .3vw + 6.5px, 11px); letter-spacing: .14em; color: var(--faint); }
#loading.choosing .load, #loading.choosing #start, #loading.choosing .tip { visibility: hidden; }

/* THE CONTROLLER'S OUTLINE (gamepad.js): what A presses in a window — a fine gold edge, no glow */
.padfocus { outline: 1.5px solid #f2cf86 !important; outline-offset: 3px; border-radius: inherit; }
.padfocus.rail, [data-sl].padfocus { outline-offset: 6px; }
/* SETTINGS → CONTROLLER: the live line of what the pad sends, and a binding waiting for its button */
.padlive { margin: 0 0 .8em; padding: .55em .8em; border: 1px solid var(--line); border-radius: 6px; font-size: .78em; letter-spacing: .04em; color: rgba(244,234,214,.75); background: rgba(255,255,255,.025); min-height: 2.6em; }
.hb.padbind { min-width: 7.5em; }
.hb.padbind.wait span, [data-set="padstick"] span { color: #f2cf86; }
/* (a controller in his hands: the pad's button under the pause, the hub, the map and the emotes — main.js padBadges) */
body.padon #sys [data-pad], body.padon #hubBtn[data-pad] { position: relative; }
body.padon [data-pad]::before { content: attr(data-pad); position: absolute; left: 50%; bottom: -1.35em; transform: translateX(-50%); font: 800 calc(var(--S, 1) * 8.5px)/1 "Bricolage Grotesque", sans-serif; letter-spacing: .08em; color: #f2d79a; background: rgba(8,6,5,.78); border: 1px solid rgba(224,170,72,.6); border-radius: 99px; padding: .25em .55em; white-space: nowrap; pointer-events: none; }
/* CONTROLLER SETUP (gamepad.js): one card over everything — what to press now, how far along, SKIP and CANCEL */
#padsetup { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
#padsetup:not(.show) { display: none; }
#padsetup .scrim { position: absolute; inset: 0; background: rgba(4,3,2,.72); }
#padsetup .card { position: relative; width: min(92vw, 34em); padding: 1.4em 1.6em; border-radius: 10px; background: #100c08; border: 1px solid rgba(224,170,72,.45); text-align: center; color: #f4ead6; }
#padsetup .card > b { display: block; letter-spacing: .3em; font-size: .78em; color: #e0bb63; margin-bottom: 1em; }
#padsetup .ask { font-size: 1.25em; font-weight: 700; line-height: 1.35; margin: 0 0 .5em; }
#padsetup .sub { font-size: .78em; color: rgba(244,234,214,.6); margin: 0 0 1em; }
#padsetup .bar { display: block; height: 3px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; margin-bottom: 1.2em; }
#padsetup .bar u { display: block; height: 100%; background: #e0bb63; transform-origin: left; transition: transform .25s; }
#padsetup .row { display: flex; gap: .6em; justify-content: center; }
#padsetup .got { min-height: 1.3em; margin: 0 0 .3em; font-weight: 800; letter-spacing: .12em; font-size: .85em; color: #9fe0b4; }
#padsetup .live { min-height: 1.3em; margin: 0 0 .6em; font-size: .8em; color: #f2d79a; }
#padsetup .ask { font-size: 1.9em; letter-spacing: .06em; margin-bottom: .25em; }
#padsetup .where { font-size: .95em; color: rgba(244,234,214,.85); margin: 0 0 .9em; }
/* ÀBÍKÚ 2: the gold blow's words, mercy's */
.pop.gold { font-size: var(--small); letter-spacing: .24em; font-weight: 800; color: #ffd36a; text-shadow: 0 0 10px rgba(255,190,60,.9), 0 1px 2px #000; }
.pop.bind { font-size: var(--tiny); letter-spacing: .22em; font-weight: 800; color: var(--spirit); text-shadow: 0 0 8px rgba(120,220,170,.7), 0 1px 2px #000; }
.wpick.locked { opacity: .38; cursor: default; }
.wpick.locked u { color: var(--mute); }
/* ÀBÍKÚ 2: the 2 after the name, gold, a breath after the letters */
#loading .logo span.two { margin-left: .5em; color: #f1c46e; animation-delay: 1.25s; }


/* ====================================================================== THE REFERENCE HUD (2026-10-15)
   The user's picture, "that exact hud and that exact layout". Measured off it (1857 x 847) in --u, a hundredth of the
   glass's short side: the map's disc 15.6u at the top left; beside it, with NO panel behind, a small emblem and the name
   spaced wide, a thin red LIFE bar and a thinner gold ÀṢẸ bar under it; the one he fights at the top centre, its name
   spaced very wide over a thin red bar with arrow tips and a diamond at its middle; at the top right two rounds, the
   ABIKU emblem and PAUSE. The bottom (the stick, STRIKE, DASH, RAISE/HEAL) is drawn on the canvas: input.js.
   Everything older above is overruled here; what the picture does not have is `.gone`. */
#hud .gone, .gone { display: none !important; }
:root { --disc: calc(15.6 * var(--u)); --edgeL: max(calc(3.4 * var(--u)), env(safe-area-inset-left)); --edgeT: max(calc(2.8 * var(--u)), env(safe-area-inset-top)); }

/* the disc: a fine pale-bronze rim, a hair of dark round it, the N above — as the picture, not the heavy gold */
#minimap { width: var(--disc) !important; height: var(--disc) !important; border: calc(.22 * var(--u)) solid rgba(196,170,128,.85) !important;
  box-shadow: 0 0 0 calc(.3 * var(--u)) rgba(0,0,0,.45), 0 calc(.5 * var(--u)) calc(2 * var(--u)) rgba(0,0,0,.55), inset 0 0 calc(2 * var(--u)) rgba(0,0,0,.85) !important;
  background: radial-gradient(circle, rgba(40,34,28,.85), rgba(10,8,7,.9) 72%) !important; }
#minimap::after { top: calc(-1.4 * var(--u)) !important; left: auto !important; right: calc(.6 * var(--u)) !important; transform: none !important; font-size: calc(1.7 * var(--u)) !important; font-weight: 600 !important; color: #e8dfcf !important; }

#vit { left: var(--edgeL) !important; top: var(--edgeT) !important; align-items: flex-start; }
#vit .plate, #hud.hasmap #vit .plate, html.upright #vit .plate, html.upright #hud.hasmap #vit .plate { margin: calc(2.6 * var(--u)) 0 0 calc(4 * var(--u)) !important; padding: 0 !important; min-width: 0 !important; width: auto !important; gap: calc(1 * var(--u)) !important; }
#vit .plate::before { display: none !important; }
#vit .row { gap: calc(1.3 * var(--u)) !important; }
#vit .nmrow { height: calc(2.6 * var(--u)) !important; margin: 0 !important; }
#vit .life, #vit .ase { height: calc(1.4 * var(--u)) !important; margin: 0 !important; }
#vit .ic, #vit .meter .ic { width: calc(1.9 * var(--u)) !important; height: calc(1.9 * var(--u)) !important; fill: #d8cfbf !important; stroke: #d8cfbf; filter: drop-shadow(0 1px 1px rgba(0,0,0,.8)) !important; }
#vit .ic.mk { fill: #d8cfbf !important; stroke: #d8cfbf; }
#vit .nm { font-size: calc(2.55 * var(--u)) !important; letter-spacing: .26em !important; font-weight: 600 !important; color: #f1e9db !important; text-shadow: 0 1px 3px rgba(0,0,0,.9) !important; }
#vit .meter .bar, html.upright #vit .meter .bar { width: calc(28.7 * var(--u)) !important; border-radius: calc(.5 * var(--u)) !important; background: rgba(0,0,0,.5) !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.04) !important; overflow: hidden; }
#vit .life .bar { height: calc(.85 * var(--u)) !important; }
#vit .ase .bar { height: calc(.6 * var(--u)) !important; }
#vit .meter .bar b, #vit .meter .bar i { border-radius: calc(.5 * var(--u)) !important; }
#vit .life .bar b { background: linear-gradient(180deg, #f08a7c, #c8382e 45%, #8c1f19) !important; box-shadow: 0 0 calc(.8 * var(--u)) rgba(220,60,45,.45) !important; }
#vit .life .bar i { background: rgba(255,226,214,.5) !important; }
#vit .life.low .bar b { background: linear-gradient(180deg, #ff9d8e, #e0402f 45%, #9a1c14) !important; }
#vit .ase .bar b { background: linear-gradient(180deg, #f3e2b0, #cdb070 50%, #8f7638) !important; box-shadow: 0 0 calc(.6 * var(--u)) rgba(220,190,110,.35) !important; }
#vit .ase.can .bar b { box-shadow: 0 0 calc(.9 * var(--u)) rgba(240,210,130,.6) !important; }
#vit .ase .bar u { background: rgba(255,250,235,.55) !important; }

/* the one he fights: top centre, as the picture */
#tg { top: max(calc(3.6 * var(--u)), env(safe-area-inset-top)) !important; width: calc(28 * var(--lw)) !important; min-width: calc(48 * var(--u)); }
#tg .nm { font-size: calc(2.15 * var(--u)) !important; letter-spacing: .42em !important; padding-left: .42em; font-weight: 500 !important; color: #efe6d6 !important; margin-bottom: calc(1.6 * var(--u)) !important; text-shadow: 0 1px 4px rgba(0,0,0,.95) !important; }
#tg .bar { height: calc(.55 * var(--u)) !important; border-radius: 0 !important; overflow: visible !important; background: rgba(0,0,0,.55) !important; box-shadow: none !important; margin: 0 calc(1.6 * var(--u)); }
#tg .bar b { background: linear-gradient(180deg, #e8685a, #b8302a 55%, #7a1a16) !important; }
#tg .bar i { background: rgba(255,220,210,.35) !important; }
#tg .bar::before, #tg .bar::after { content: ''; position: absolute; top: 50%; width: calc(2.4 * var(--u)); height: calc(1.6 * var(--u)); transform: translateY(-50%); background: #cbbfa8;
  clip-path: polygon(0 50%, 55% 0, 55% 38%, 100% 38%, 100% 62%, 55% 62%, 55% 100%); filter: drop-shadow(0 0 2px #000); }
#tg .bar::before { right: calc(100% - .2 * var(--u)); }
#tg .bar::after { left: calc(100% - .2 * var(--u)); transform: translateY(-50%) scaleX(-1); }
#tg .post { position: absolute !important; left: 50% !important; top: calc(100% - 1.75 * var(--u)) !important; width: calc(1.5 * var(--u)) !important; height: calc(1.5 * var(--u)) !important; margin: 0 !important;
  transform: translate(-50%, -50%) rotate(45deg); background: #1a2430 !important; border: 1px solid #9fc2e0; border-radius: 0 !important; box-shadow: 0 0 calc(.6 * var(--u)) rgba(140,190,240,.6); overflow: hidden; }
#tg .post b { left: 0 !important; transform: none !important; height: 100%; background: #bfe0ff !important; }
#tg.open .post { border-color: #ff6a50; }

/* the top right: the ABIKU emblem (in the bag's place) and PAUSE, two rounds of 7.3u */
/* (2026-10-16, the user, twice: "the pause button and the Abiku icon are too far into the screen at the right, shift it from the
   side": well in from the right edge — 7% of the height, twice the disc's gap on the left, so a phone's rounded corner and
   its curved edge never take them — and never against a notch: past it by a margin, not flush with it) */
#sys { right: max(calc(7 * var(--u)), calc(env(safe-area-inset-right) + 3 * var(--u))) !important; top: max(calc(3.2 * var(--u)), calc(env(safe-area-inset-top) + 1.2 * var(--u))) !important; gap: calc(2.6 * var(--u)) !important; flex-wrap: nowrap !important; width: auto !important; }
html.upright #sys { right: max(calc(6 * var(--lw)), calc(env(safe-area-inset-right) + 16px)) !important; }
#hubBtn, #bMenu, html.upright #bMenu { width: calc(7.3 * var(--u)) !important; height: calc(7.3 * var(--u)) !important; border-radius: 50% !important; display: grid; place-items: center; transform: none !important;
  background: radial-gradient(circle at 50% 35%, rgba(34,29,24,.62), rgba(8,6,5,.62) 75%) !important; border: 1px solid rgba(228,214,190,.6) !important;
  box-shadow: 0 0 0 calc(.35 * var(--u)) rgba(228,214,190,.1), 0 calc(.4 * var(--u)) calc(1.6 * var(--u)) rgba(0,0,0,.45) !important; animation: none !important; transition: transform .15s var(--ease); }
#hubBtn:active, #bMenu:active { transform: scale(.92) !important; }
#hubBtn svg { width: 58% !important; height: 58% !important; transform: none !important; }
#hubBtn .ring { fill: none !important; stroke: #e6e0d6 !important; stroke-width: 1.3 !important; }
#hubBtn .star { fill: #ece6dc !important; filter: drop-shadow(0 1px 1px rgba(0,0,0,.8)) !important; }
#hubBtn .eye { fill: #14100c !important; }
#hubBtn:hover .star { transform: none; }
#hubBtn .dot { right: calc(.2 * var(--u)) !important; top: calc(.2 * var(--u)) !important; width: calc(1.4 * var(--u)) !important; height: calc(1.4 * var(--u)) !important; }
#bMenu svg { display: block !important; width: 46% !important; height: 46% !important; fill: none !important; stroke: #ece6dc !important; stroke-width: 1.7 !important; stroke-linecap: round; }
#fps.show { display: block !important; position: absolute; right: 0; top: calc(100% + .8 * var(--u)); font-size: calc(1.5 * var(--u)); color: rgba(236,230,220,.6); text-shadow: 0 1px 2px #000; }

/* the card of a thing near him: under the top right, out of the picture's way */
#near { top: calc(13 * var(--u)) !important; }
/* (upright: the plate is the same; the foe's bar comes down under it, clear of the two rounds) */
html.upright #tg { top: calc(24 * var(--u)) !important; width: calc(70 * var(--lw)) !important; }
/* the Abiku menu's MOVES: a heading over each part of the demonstration */
.moves .mvsec { margin: 1.1em 0 .35em; padding-bottom: .3em; font-size: var(--w-xs); font-weight: 800; letter-spacing: .3em; color: var(--gold2); border-bottom: 1px solid var(--line); }
.moves .mvsec:first-child { margin-top: 0; }
/* THE LENS (2026-10-15, the reference's realism): the picture darkens toward its edges as a camera's does — over the world,
   under the thumbs' glass and the HUD. Never touched by a finger. */
#vig { position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 46%, rgba(0,0,0,0) 55%, rgba(4,3,6,.28) 82%, rgba(2,1,3,.55) 100%); }
/* THE BUTTON LAYOUT'S BAR: top centre, over everything that can be dragged */
#layoutBar { position: fixed; left: 50%; top: max(calc(2.4 * var(--u)), env(safe-area-inset-top)); transform: translateX(-50%); z-index: 30; display: none; flex-direction: column; align-items: center; gap: calc(.8 * var(--u));
  padding: calc(1.6 * var(--u)) calc(3 * var(--u)); border-radius: calc(1.2 * var(--u)); background: rgba(10,8,6,.88); box-shadow: inset 0 0 0 1px rgba(214,192,154,.55), 0 calc(.6 * var(--u)) calc(3 * var(--u)) rgba(0,0,0,.5); font-family: var(--ui); pointer-events: auto; }
#layoutBar.show { display: flex; }
#layoutBar b { font-size: calc(2.1 * var(--u)); letter-spacing: .3em; color: #ecdcbc; font-weight: 700; }
#layoutBar span { font-size: calc(1.8 * var(--u)); color: rgba(236,226,208,.75); white-space: nowrap; }
#layoutBar .lrow { display: flex; gap: calc(1 * var(--u)); }
#layoutBar button { min-width: calc(6.5 * var(--u)); padding: calc(.9 * var(--u)) calc(1.8 * var(--u)); border-radius: 99px; font-size: calc(1.9 * var(--u)); font-weight: 700; letter-spacing: .14em; color: #ecdcbc; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(214,192,154,.6); }
#layoutBar button.go { color: #1a1207; background: linear-gradient(180deg, #f2dfb6, #c9a86e); box-shadow: none; }
#layoutBar button:active { transform: scale(.95); }
/* THE NOTICE: one quiet line at the top centre (hud.js line1) — under the foe's bar, never a panel */
#notice { position: absolute; left: 50%; top: calc(max(calc(3.6 * var(--u)), env(safe-area-inset-top)) + 21 * var(--u));   /* (under the instruction line, never through it: 2026-10-17) */ transform: translate(-50%, -4px); max-width: 70vw; text-align: center; pointer-events: none; opacity: 0; transition: opacity .35s, transform .35s var(--ease); }
#notice.show { opacity: 1; transform: translate(-50%, 0); }
#notice b { display: block; font-size: calc(1.9 * var(--u)); letter-spacing: .32em; padding-left: .32em; font-weight: 600; color: #f0e4cc; text-shadow: 0 1px 4px rgba(0,0,0,.95), 0 0 12px rgba(0,0,0,.6); }
#notice span { display: block; margin-top: calc(.5 * var(--u)); font-size: calc(1.75 * var(--u)); color: rgba(236,226,208,.85); text-shadow: 0 1px 3px rgba(0,0,0,.95); }
#notice span:empty { display: none; }
#notice[data-k="warn"] b, #notice[data-k="fail"] b { color: #f4b49a; }
#notice[data-k="good"] b { color: #f2dca2; }
/* THE STONE (hud.js plaque): a tablet of carved stone in the middle of the glass, its words cut into it */
#plaque { position: fixed; inset: 0; z-index: 48; display: none; align-items: center; justify-content: center; pointer-events: auto; font-family: var(--ui); }
#plaque.show { display: flex; animation: fadeIn .25s ease both; }
#plaque .scrim { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.45), rgba(0,0,0,.78)); }
#plaque .stone { position: relative; width: min(88vw, calc(92 * var(--u))); max-height: 84vh; overflow-y: auto; padding: calc(5 * var(--u)) calc(6.5 * var(--u)) calc(4 * var(--u));
  border-radius: calc(1.4 * var(--u)) calc(2.6 * var(--u)) calc(1.8 * var(--u)) calc(2.2 * var(--u));
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.07), transparent 60%), radial-gradient(ellipse at 80% 90%, rgba(0,0,0,.25), transparent 55%),
    repeating-linear-gradient(115deg, rgba(0,0,0,.035) 0 2px, transparent 2px 7px), linear-gradient(170deg, #6c6359, #574e46 45%, #463e37);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.12), inset 0 -3px 0 rgba(0,0,0,.35), inset 0 0 calc(4 * var(--u)) rgba(0,0,0,.45), 0 calc(1.5 * var(--u)) calc(5 * var(--u)) rgba(0,0,0,.7);
  transform: translateY(6px); animation: stoneIn .35s var(--ease) forwards; }
@keyframes stoneIn { to { transform: none; } }
#plaque .stone .chip { position: absolute; width: calc(3 * var(--u)); height: calc(2 * var(--u)); background: #2a2420; clip-path: polygon(0 0, 100% 0, 30% 100%); opacity: .55; }
#plaque .stone .chip.a { top: 0; right: calc(8 * var(--u)); } #plaque .stone .chip.b { bottom: 0; left: calc(10 * var(--u)); transform: rotate(180deg); }
#plaque .t { display: block; text-align: center; font-size: calc(3.1 * var(--u)); font-weight: 700; letter-spacing: .32em; padding-left: .32em; color: #241d18;
  text-shadow: 0 1px 0 rgba(255,255,255,.22), 0 -1px 0 rgba(0,0,0,.5); }
#plaque .rule { height: 2px; margin: calc(1.8 * var(--u)) auto calc(2.2 * var(--u)); width: 40%; background: linear-gradient(90deg, transparent, rgba(30,24,20,.75), transparent); box-shadow: 0 1px 0 rgba(255,255,255,.12); }
#plaque .words p { margin: 0 0 calc(1.4 * var(--u)); font-size: calc(2.55 * var(--u)); line-height: 1.55; color: #1e1814; text-align: center; font-weight: 600;
  text-shadow: 0 1px 0 rgba(255,255,255,.2), 0 -1px 0 rgba(0,0,0,.35); }
#plaque .close { display: block; margin-top: calc(1.6 * var(--u)); text-align: center; font-size: calc(1.6 * var(--u)); letter-spacing: .3em; color: rgba(30,24,20,.6); }
html.upright #plaque .t { font-size: calc(4 * var(--u)); } html.upright #plaque .words p { font-size: calc(3.4 * var(--u)); }

#loading.front .stage, #loading.front .tip, #loading.front #embers, #loading.front .veil { display: none !important; }
/* WHAT NEXT (2026-10-17): the next thing to do is no longer printed at the top — only a fight's count is; holding the Abiku
   emblem (or H) brings it up on the realm's stone plaque (hud.guide) */
#place:not(.fight) { display: none !important; }
#hubBtn.news .dot { transform: scale(1); background: #ffe2a8; box-shadow: 0 0 8px #ffd890; animation: beat 1.4s ease-in-out infinite; }
/* THE WAYS (front.js pages, modes.js): the Iroko's sections, the mode buttons, the ayò board, a way's line and its end card */
#modeline { position: fixed; left: 50%; top: max(58px, calc(env(safe-area-inset-top) + 48px)); transform: translateX(-50%); z-index: 12; pointer-events: none; font: 700 10px 'Bricolage Grotesque', 'Montserrat', sans-serif; letter-spacing: .3em; color: #ffe2a8; text-shadow: 0 1px 4px #000, 0 0 12px rgba(255,170,80,.5); white-space: nowrap; }
#modeEnd { position: fixed; left: 50%; top: 50%; z-index: 45; transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: opacity .3s ease, transform .4s cubic-bezier(.2,.8,.2,1); width: min(86vw, 420px); padding: 24px 22px; text-align: center;
  font-family: 'Bricolage Grotesque', 'Montserrat', sans-serif; color: #f4e6cc; background: linear-gradient(180deg, rgba(28,18,10,.92), rgba(10,7,5,.95)); border: 1px solid rgba(255,214,150,.4); border-radius: 4px; box-shadow: 0 20px 70px rgba(0,0,0,.7); }
#modeEnd.show { opacity: 1; transform: translate(-50%, -50%); }
#modeEnd b { display: block; font-size: 22px; letter-spacing: .3em; color: #fff0d0; text-shadow: 0 0 16px rgba(255,180,90,.5); }
#modeEnd span { display: block; margin-top: 8px; font-size: 12px; letter-spacing: .12em; color: rgba(255,232,200,.8); }
#modeEnd div { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
#modeEnd div.col { flex-direction: column; }
#modeEnd button { padding: 12px 16px; border: 1px solid #ffd890; border-radius: 3px; background: rgba(255,200,120,.1); color: #fff6e4; font: 700 11px 'Bricolage Grotesque', 'Montserrat', sans-serif; letter-spacing: .24em; }
#modeEnd button i { display: block; font-style: normal; font-size: 13px; letter-spacing: .3em; color: #ffd890; margin-bottom: 4px; }
/* (2026-10-19, the user: "why is that text at the top and behind the life bar please remove it totally": the how-to line of a
   fight is never on the glass — the plaque behind the emblem still says it) */
#place small, #placeHow { display: none !important; }
/* (nothing marks an enemy overhead: 2026-10-19) */
.bmark { display: none !important; }

/* THE FIRST TOUCH (index.html #gate): the emblem alone in the night, and under it the one word. A touch: the full screen, the
   phone on its side, and the rest of the game comes in. */
#gate { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 22px; background: radial-gradient(ellipse at 50% 46%, #120c06 0%, #050309 46%, #020105 100%); color: #f3e6cc; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
#gate.on { display: flex; }
#gate::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .75;
  background-image: radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 78% 14%, #ffe9b0 50%, transparent 51%), radial-gradient(1.4px 1.4px at 64% 72%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 30% 80%, #dfe6ff 50%, transparent 51%), radial-gradient(1px 1px at 88% 58%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 6% 64%, #ffe9b0 50%, transparent 51%), radial-gradient(1px 1px at 44% 10%, #dfe6ff 50%, transparent 51%), radial-gradient(1px 1px at 92% 88%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 46%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 56% 30%, #ffe9b0 50%, transparent 51%); }
#gate button { position: relative; background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; color: inherit; font: inherit; cursor: pointer; }
#gate svg { width: min(46vmin, 250px); height: min(46vmin, 250px); filter: drop-shadow(0 0 18px rgba(255,190,40,.55)) drop-shadow(0 0 3px rgba(255,220,120,.6)); animation: gateBreath 3.2s ease-in-out infinite; }
#gate b { font-weight: 600; font-size: 11px; letter-spacing: .62em; padding-left: .62em; color: #ffe9a6; text-shadow: 0 0 14px rgba(255,196,60,.7), 0 1px 3px #000; animation: gateWord 3.2s ease-in-out infinite; }
#gate small { position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); font-size: 9px; letter-spacing: .3em; color: rgba(255,232,196,.45); }
#gate a { position: absolute; bottom: max(40px, calc(env(safe-area-inset-bottom) + 22px)); font-size: 9.5px; letter-spacing: .3em; color: #ffd25a; text-decoration: none; text-shadow: 0 0 10px rgba(255,196,60,.5); padding: 8px; }
#gate.go { opacity: 0; transition: opacity .5s ease; pointer-events: none; }
#gate.go svg { transform: scale(1.12); transition: transform .5s ease; }
@keyframes gateBreath { 50% { filter: drop-shadow(0 0 28px rgba(255,196,50,.8)) drop-shadow(0 0 4px rgba(255,226,140,.8)); } }
@keyframes gateWord { 50% { opacity: .55; } }

/* THE ABIKU EMBLEM ON THE GLASS (the HUD's, beside his name and at the top right): the new drawing, in its gold */
#hubBtn svg.abk, #vit .ic.mk.abk { fill: none; stroke: none; }
#hubBtn svg.abk { filter: drop-shadow(0 0 4px rgba(255,196,50,.55)); }
#loading .sigil.abk { overflow: visible; }
#hubBtn { background: radial-gradient(circle, rgba(8,5,2,.5) 0%, rgba(8,5,2,.3) 60%, rgba(8,5,2,0) 72%) !important; border: 0 !important; box-shadow: none !important; }
#hubBtn svg.abk { width: 100% !important; height: 100% !important; }
#hubBtn.fury svg.abk { filter: hue-rotate(-28deg) saturate(1.8) drop-shadow(0 0 5px rgba(255,80,40,.9)); }
#hubBtn.burn svg.abk { filter: brightness(1.3) drop-shadow(0 0 7px rgba(255,200,110,1)); }
#vit .ic.mk.abk { filter: drop-shadow(0 0 3px rgba(255,196,50,.6)); }
