/* Hero Armoury — grid, editor chrome and the member gate.
   The loadout fields themselves are styled by create-lineup.css, which this file loads
   after; nothing here restyles a widget. */

.inv-armoury{max-width:1000px;margin:0 auto;padding:8px 8px 8px}
/* Where there are two columns, the page takes the room it has. Capped at 1000 it sat as
   a centred block in the middle of a wide screen, so the rail floated off the left edge
   and the sheet never reached the right one -- which is what collapsing the site's own
   sidebar made obvious. Still capped, so an ultrawide screen does not stretch a
   470px sheet across a metre of glass. */
@media (min-width:1000px){
	.inv-armoury{max-width:1440px}
}

.inv-armoury__bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;flex-wrap:wrap}
.inv-armoury__add{background:#f59e0b;color:#080d1a;border:0;border-radius:10px;padding:10px 18px;
	font-family:Rajdhani,sans-serif;font-weight:700;font-size:.95rem;cursor:pointer}
.inv-armoury__add:hover{filter:brightness(1.08)}
.inv-armoury__count{color:#6b7494;font-size:.8rem;font-variant-numeric:tabular-nums}

/* Two columns on a phone, more as there is room — this is the densest grid on the site. */
/* A roster of eighty heroes, so the grid fills the width rather than holding four
   oversized cards per row. The floor keeps two columns on the narrowest phone. */
.inv-armoury__cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:12px}
@media (min-width:560px){.inv-armoury__cards{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}







.inv-armoury__empty,.inv-armoury__loading{grid-column:1/-1;padding:34px 18px;text-align:center;
	color:#6b7494;font-size:.9rem;border:1px dashed rgba(255,255,255,.1);border-radius:14px}

.inv-armoury__editbar{display:flex;align-items:center;gap:12px;margin:0 0 18px;flex-wrap:wrap}
.inv-armoury__back{display:inline-flex;align-items:center;gap:8px;background:none;border:0;
	color:#8890a8;font-size:.85rem;cursor:pointer;padding:6px 0}
.inv-armoury__back:hover{color:#e5e7eb}
.inv-armoury__back-ico{display:block;width:26px;height:26px;flex:none;
	background:url(../images/game-icons/btn-back.webp) center/contain no-repeat;
	opacity:.9;transition:opacity .15s}
.inv-armoury__back:hover .inv-armoury__back-ico{opacity:1}
.inv-armoury__editname{font-family:Rajdhani,sans-serif;font-weight:700;font-size:1.3rem;color:#fff}
.inv-armoury__status{font-size:.8rem;color:#6b7494;margin-left:auto}
.inv-armoury__status.is-ok{color:#4ade80}
.inv-armoury__status.is-error{color:#ef4444}

/* The commander slot the hero pickers read lives on this page as a carrier with nothing
   in it, and it is marked [hidden]. But create-lineup.css gives .inv-cmd-slot
   display:flex, which outranks the browser's own [hidden]{display:none} -- so the empty
   slot kept painting its dashed, glowing border as a stray line above the buttons.
   It has to stay in the DOM (armoury.js, armoury-prefill.js, awakening-picker.js and
   create-lineup.js all read it), so [hidden] is made to mean hidden again. */
.inv-cmd-slot[hidden]{display:none}

.inv-armoury__actions{position:relative;display:flex;gap:12px;flex-wrap:wrap;align-items:center;
	margin:-16px 0 0}

/* Save and Reset are the game's own two plates -- ui_n_button/btn_n_01yellow for the
   confirm, btn_n_01white for the one beside it, the same pair it puts under DON'T SAVE /
   SAVE & EXIT. Both are 100px tall with a ~30px ornate corner, so they 9-slice: the corner
   is painted at 15px whatever the button's own size, and only the lattice in between
   stretches. border-width stays 0 so the plate paints inward and the label keeps its box. */
.inv-armoury__btn{position:relative;border:0;background:none;cursor:pointer;
	/* ⚠ A CAP, NOT A WIDTH. At a fixed 226 the two of them want 464 plus the gap, and
	   .inv-armoury__actions wraps -- which is how Save and Reset ended up stacked. They
	   share the row and each grows to 226 when there is room for it. */
	min-height:68px;flex:1 1 0;min-width:0;max-width:var(--armoury-btn-w,226px);
	padding:12px 30px;
	font-family:Rajdhani,sans-serif;font-weight:700;font-size:1.52rem;
	text-transform:uppercase;letter-spacing:.06em;line-height:1;
	/* DARK INK ON A GOLD PLATE. The label inherited the page's white and sat on a
	   bright plate, where it all but disappeared -- the game writes these in near
	   black with a hairline highlight above the stroke. Set on the base so every
	   plate gets it; the two that already name their own colour keep it. */
	color:#17120a;text-shadow:0 1px 0 rgba(255,255,255,.3);
	border-image:url(../images/game-icons/btn-plate-gold.webp) 30 fill / 15px stretch}
.inv-armoury__btn:hover{filter:brightness(1.06)}
.inv-armoury__btn:active{filter:brightness(.94)}
.inv-armoury__btn:disabled{filter:grayscale(.7) opacity(.6);cursor:default}

.inv-armoury__save{color:#5b3b11;text-shadow:0 1px 0 rgba(255,255,255,.28)}
.inv-armoury__clear{color:#6b6052;text-shadow:0 1px 0 rgba(255,255,255,.5);
	border-image-source:url(../images/game-icons/btn-plate-stone.webp)}
.inv-armoury__delete{background:transparent;color:#8890a8;border:1px solid rgba(255,255,255,.15);
	border-radius:10px;padding:12px 20px;font-size:.9rem;cursor:pointer}
.inv-armoury__delete:hover{color:#ef4444;border-color:rgba(239,68,68,.4)}

/* Member gate */
.inv-armoury-gate{max-width:560px;margin:0 auto;padding:60px 16px}
.inv-armoury-gate__card{text-align:center;padding:34px 26px;border-radius:16px;
	background:rgba(255,255,255,.03);border:1px solid rgba(245,158,11,.25)}
.inv-armoury-gate__icon{font-size:38px;line-height:1;margin-bottom:12px}
.inv-armoury-gate__title{font-family:Rajdhani,sans-serif;font-weight:700;font-size:1.5rem;color:#f59e0b;margin:0 0 8px}
.inv-armoury-gate__text{color:#8890a8;font-size:.9rem;line-height:1.6;margin:0 0 20px}
.inv-armoury-gate__btn{display:inline-block;background:#f59e0b;color:#080d1a;font-weight:700;
	padding:12px 26px;border-radius:10px;text-decoration:none}
.inv-armoury-gate__alt{color:#6b7494;font-size:.82rem;margin:14px 0 0}
.inv-armoury-gate__alt a{color:#f59e0b}

/* Picker panel on the armoury page — the builder's own slot tile and hero grid, reused. */
.inv-armoury__picker{margin:0 0 18px;padding:14px;border-radius:14px;
	background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.07)}
.inv-armoury__picker[hidden]{display:none}

.inv-armoury__cost{display:inline-flex;align-items:center;gap:6px;color:#6b7494;font-size:.82rem}
.inv-armoury__cost img{display:block}

/* Builder: the strip shown when a picked hero has a saved build. */
.inv-armoury-badge{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 10px;
	padding:8px 12px;border-radius:10px;background:rgba(245,158,11,.08);
	border:1px solid rgba(245,158,11,.28);color:#f59e0b;font-size:.78rem;font-weight:600}
.inv-armoury-badge__undo{margin-left:auto;background:none;border:0;color:#8890a8;
	font-size:.76rem;text-decoration:underline;cursor:pointer}
.inv-armoury-badge__undo:hover{color:#e5e7eb}

.inv-armoury-confirm{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 10px;
	padding:10px 12px;border-radius:10px;background:rgba(59,130,246,.08);
	border:1px solid rgba(59,130,246,.3);color:#cbd5e1;font-size:.8rem;line-height:1.4}
.inv-armoury-confirm__yes{background:#3b82f6;color:#fff;border:0;border-radius:8px;
	padding:6px 14px;font-size:.78rem;font-weight:700;cursor:pointer}
.inv-armoury-confirm__no{background:transparent;color:#8890a8;border:1px solid rgba(255,255,255,.18);
	border-radius:8px;padding:6px 12px;font-size:.78rem;cursor:pointer}
/* A refusal, not a question: the same strip in the colour the site uses for "this cannot
   be done", with the way to resolve it rather than a choice to make. */
.inv-armoury-confirm.is-clash{background:rgba(239,68,68,.08);border-color:rgba(239,68,68,.35);
	color:#fca5a5}
.inv-armoury-confirm.is-clash .inv-armoury-confirm__yes{background:#ef4444;text-decoration:none;
	display:inline-flex;align-items:center;line-height:1.4}
.inv-armoury-confirm.is-clash .inv-armoury-confirm__yes:hover{background:#f87171;color:#fff;text-decoration:none}

/* The grid lists the whole roster; a hero stays dim until it is unlocked. */





.inv-armoury__search{flex:1;min-width:160px;background:rgba(255,255,255,.04);
	border:1px solid rgba(255,255,255,.12);border-radius:10px;padding:10px 14px;
	color:#e5e7eb;font-size:.88rem}
.inv-armoury__search:focus{outline:none;border-color:rgba(245,158,11,.5)}
.inv-armoury__search::placeholder{color:#6b7494}

/* ── Hero card ────────────────────────────────────────────────────────────────
   The portrait is the game's own card art: crest, unit-type marks and gold frame
   are already in the picture, so the card adds nothing on top of it. What the card
   contributes is the frame around the art and a reading line beneath — level and
   star rank — in the same gold the lineup card uses, so a hero reads the same on
   both screens. A locked hero is the same card, dimmed. */

/* ⚠ NO BOX. The card used to sit in a panel of its own -- dark fill, hairline
   border, rounded corners -- which made sense when the art was a bare portrait.
   It is the game's card now, and it brings its own plate and border, so the panel
   was a second frame drawn around the first. Only the hover lift survives, and
   that as a glow rather than a border, because the card has no border to tint. */
.inv-armoury__card{position:relative;display:flex;flex-direction:column;
	text-decoration:none;background:none;border:0;border-radius:0;
	transition:transform .15s,filter .15s}
.inv-armoury__card:hover{transform:translateY(-2px);filter:brightness(1.08)}
.inv-armoury__card:focus-visible{outline:2px solid #f59e0b;outline-offset:2px}

/* ⚠ THE CARD'S OWN RATIO, AND NOTHING CROPPED. This box was 78/100 against 2:3 art
   on purpose: the old flat portrait had a level/star band baked along its foot at
   whatever level the screenshot was taken at, and cover-cropping the bottom threw it
   away. The composited card paints no such band -- it paints the game's star row,
   which is the thing we WANT -- so the crop was eating the stars and the foot below
   was redrawing them as petals. 238x360 is the plate; contain, so nothing is lost. */
.inv-armoury__art{position:relative;aspect-ratio:238/360;overflow:hidden;background:none}
/* The portrait only. A bare `.inv-armoury__art img` outranks the ring and coin badges
   that also live in this box — specificity, not order — and blew them up to card size. */
.inv-armoury__portrait{width:100%;height:100%;object-fit:contain;object-position:center top;display:block}

.inv-armoury__card.is-current{box-shadow:none}
/* ⚠ DECLARED HERE, BEFORE THE NARROW BLOCK, NOT AFTER IT. A media query adds no
   specificity, so this rule sitting further down the file beat
   `.is-narrow ... .has-icon{box-shadow:none}` and put a square gold box round the
   rail's round icon. Order is the whole fix.

   ⚠ THE SELECTION TAKES THE CARD'S SHAPE. A square outline round a rounded plate
   left four gold corners sticking out past the art. Measured, not guessed: on
   bg/<rarity>.png the top row is opaque from x=6 and the left column from y=6, so
   the plate's corner radius is 6 of 238 -- 2.52% of the width, which is 1.67% of
   the height at this ratio, written as two values so it stays a circle and not an
   ellipse at every roster width.

   ⚠ AND THIS IS NOT THE ROUNDED CORNERS THE RULE FORBIDS. Nothing of ours is being
   softened here; this traces the game's own plate, which is drawn round. Our own
   boxes on this screen stay square-cut. */
.inv-armoury__card.is-current .inv-armoury__art{
	border-radius:2.52% / 1.67%;
	box-shadow:0 0 0 2px #f59e0b,0 0 16px rgba(245,158,11,.45)}

/* Whole-card click, under the buttons rather than around them. */
.inv-armoury__open{position:absolute;inset:0;z-index:1}
.inv-armoury__open:focus-visible{outline:2px solid #f59e0b;outline-offset:2px}

/* Star. Lit once set, so a favourite reads without hovering. */
.inv-armoury__fav{position:absolute;top:4px;left:4px;z-index:3;width:24px;height:24px;
	display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;
	border:1px solid rgba(255,255,255,.14);border-radius:50%;
	background:rgba(8,13,26,.72);color:rgba(255,255,255,.34);
	font-size:.82rem;line-height:1;opacity:0;transition:opacity .15s,color .15s,border-color .15s}
.inv-armoury__card:hover .inv-armoury__fav,
.inv-armoury__fav:focus-visible{opacity:1}
.inv-armoury__fav:hover{color:#fbbf24;border-color:rgba(245,158,11,.6)}
.inv-armoury__card.is-fav .inv-armoury__fav{opacity:1;color:#fbbf24;border-color:rgba(245,158,11,.55)}

/* Hover actions. The art dims behind them so the label stays readable over any artwork. */
.inv-armoury__cardacts{position:absolute;inset:0;z-index:2;display:flex;align-items:flex-end;
	justify-content:center;padding:10px 8px;opacity:0;transition:opacity .15s;
	background:linear-gradient(180deg,rgba(8,13,26,0) 38%,rgba(8,13,26,.9))}
.inv-armoury__card:hover .inv-armoury__cardacts,
.inv-armoury__cardacts:focus-within{opacity:1}
.inv-armoury__cardact{display:inline-block;max-width:100%;padding:6px 12px;border-radius:7px;
	background:#f59e0b;color:#080d1a;text-decoration:none;text-align:center;
	font-family:Rajdhani,sans-serif;font-weight:700;font-size:.8rem;line-height:1.2;
	letter-spacing:.03em;text-transform:uppercase;white-space:nowrap;
	overflow:hidden;text-overflow:ellipsis}
.inv-armoury__cardact:hover{background:#fbbf24}
.inv-armoury__card.is-locked .inv-armoury__cardact{background:#334155;color:#e5e7eb}
.inv-armoury__card.is-locked .inv-armoury__cardact:hover{background:#475569}

/* No hover on a touch screen, and the buttons are the only way in — so they stay. */
@media (hover:none){
	.inv-armoury__cardacts{opacity:1;background:linear-gradient(180deg,rgba(8,13,26,0) 55%,rgba(8,13,26,.88))}
	.inv-armoury__fav{opacity:1}
}

/* The ring hangs off the card art's own left rail, under the crest and the unit marks,
   where the game puts it — in the opposite corner it read as a badge the site had added
   rather than as part of the card. Sized and placed in percentages so it keeps its place
   on the rail at every card width the roster uses. */
/* ── Awakened: nothing of ours over the card ───────────────────────────────────
   There was a soft radial breathing in the middle of every awakened card and a warm
   wash along its border -- one in CSS here, one baked by the compositor. Both were
   ours, neither is in the game's card, and together they sat over the art as a haze.
   Gone.

   What marks an awakened hero now is the mythical plate and pic_hero_txk_huang_04's
   own sunburst under the figure; at 100%, the lit rank stars glow in the bake and the
   restored ember clip and star field run over the card in the page. The z-index rules
   below are what keep that field under the card's furniture. */

/* The card art sits under it, and the furniture over it. */
.inv-armoury__art.inv-cmd-awk .inv-armoury__portrait{position:relative;z-index:0}
.inv-armoury__art.inv-cmd-awk .inv-armoury__ringwrap,
.inv-armoury__art.inv-cmd-awk .inv-armoury__cardacts,
.inv-armoury__art.inv-cmd-awk .inv-armoury__fav{z-index:3}
/* At 100% the art is .inv-awk-radiant, which isolates it: its own stacking context at
   z auto, so the card's open link (z 1) painted over the star button and it could not be
   clicked (user 2026-11-13). Lift the art over the link but let clicks fall through it,
   so the art still opens the card and only its controls take the click. */
.inv-armoury__art.inv-awk-radiant{z-index:2;pointer-events:none}
.inv-armoury__art.inv-awk-radiant .inv-armoury__fav,
.inv-armoury__art.inv-awk-radiant .inv-armoury__cardacts,
.inv-armoury__art.inv-awk-radiant .inv-armoury__ringwrap{pointer-events:auto}

/* ⚠ Anyone who asked not to be moved is not moved. */
/* ⚠ THE CARD HAS ITS OWN EQUIP NODE, AND EVERY NUMBER HERE IS ITS.
   Pan_HeroItemS_UGUI/Pan_Content/m_PanEquip -- which my first dump of that prefab
   cut off. Anchored to the card's left-middle with a left pivot at (-7,-14), 80 square:

     m_PicFrame  ui_g_menumailbattle/pic_g_menumail_equip_01..05, 272x308 at scale
                 0.2 -> 54.4x61.6, centred at (33,194). An ornate plate with a
                 chamfered rim and a chevron at its foot. NOT icon_hero_equip_00N --
                 that flat disc belongs to Menu_HeroListN's socket.
     m_PicEquip  the ring, 128 at scale 0.3 -> 38.4, centred at (33,190.5): 70.6% of
                 the plate across, riding 3.5 above its centre so it clears the
                 chevron. The ring sits INSIDE the plate.
     Pic_Lv      pic_g_menumail_lvbg, 72x28 centred at (33,220).

   ⚠ TWO ELEMENTS, NOT ONE. This was an <img> carrying the plate as its own
   background with the ring inset by percentage padding -- and a percentage padding
   resolves against the CONTAINING BLOCK's width, not the element's. The badge is
   22.86% of the art box and the padding asked for ~15% of that same box on each
   side, so the content box collapsed and the ring disappeared, leaving a bare
   plate. The wrapper sizes the badge; its children are percentages OF IT. */
.inv-armoury__ringwrap{position:absolute;left:2.44%;top:45.33%;width:22.86%;
	aspect-ratio:54.4/61.6;z-index:2;pointer-events:none;
	background:var(--inv-ring-bg,none) center/contain no-repeat}
.inv-armoury__ring{position:absolute;left:14.7%;top:13.15%;width:70.6%;height:62.3%;
	object-fit:contain;border:0;border-radius:0;background:none;box-shadow:none;padding:0}

/* The ring's level, on the game's own band under the plate -- wider than the plate
   itself, which is why it is placed from the plate's own box rather than the card's. */
.inv-armoury__ringlv{position:absolute;left:-16.2%;top:69.5%;width:132.4%;
	aspect-ratio:72/28;display:flex;align-items:center;justify-content:center;
	background:url(../images/game-icons/ring-card-lvbg.webp) center/100% 100% no-repeat;
	/* Same weight and same gold as the band the card itself paints -- #e8c563 is the
	   mean of the lit star's pixels, so the two lines read as one family. */
	font-family:Rajdhani,Inter,sans-serif;font-weight:500;font-size:10px;line-height:1;
	color:#e8c563;letter-spacing:.01em;text-shadow:0 1px 2px rgba(0,0,0,.9)}

.inv-armoury__card-lock{position:absolute;top:5px;right:5px;display:inline-flex;
	align-items:center;gap:4px;padding:2px 8px 2px 5px;border-radius:999px;
	background:rgba(8,13,26,.88);border:1px solid rgba(255,255,255,.12);
	color:#fbbf24;font-family:Rajdhani,sans-serif;font-size:.74rem;font-weight:700;
	line-height:1.6;font-variant-numeric:tabular-nums}

/* The currency's own coin, at text size wherever a price is printed. */
.inv-armoury__coin{width:15px;height:15px;object-fit:contain;flex:0 0 15px;display:inline-block;vertical-align:-2px}

/* Locked: the same card, not yours yet. */
.inv-armoury__card.is-locked .inv-armoury__art{filter:grayscale(.85) brightness(.5)}
.inv-armoury__card.is-locked:hover .inv-armoury__art{filter:grayscale(.3) brightness(.85)}
/* The filter makes the art its own stacking context, which trapped the star (and the
   Unlock button) UNDER the whole-card link (z-index 1): locked heroes could not be
   starred. Lift the art over the link but let clicks fall through it to the link,
   except on its own buttons. */
.inv-armoury__card.is-locked .inv-armoury__art{z-index:2;pointer-events:none}
.inv-armoury__card.is-locked .inv-armoury__art :is(button,a,[role=button]){pointer-events:auto}

/* ── Taxonomy filters ─────────────────────────────────────────────────────────
   The builder's chips, reused. A chip is a toggle here rather than a radio, so
   the lit state is carried by a class instead of :checked. */
.inv-armoury__filters{margin:0 0 16px}
.inv-armoury__chip{font-family:inherit}
.inv-armoury__chip:hover{border-color:rgba(245,158,11,.45);color:#fde68a}
.inv-armoury__chip.is-on{background:#f59e0b;border-color:#f59e0b;color:#080d1a}
.inv-armoury__chip.is-on .inv-chip-icon{filter:brightness(0) saturate(100%)}
/* These chips are buttons, not the builder's checkbox labels, so the rule that lights
   an icon on :checked never reaches them. */
.inv-armoury__chip.is-active .inv-chip-icon{opacity:1}

/* ── Unlock confirmation ──────────────────────────────────────────────────────
   A spend is asked before it happens. Small, centred, and dismissible by the
   backdrop or Escape — nothing here is worth trapping someone in. */
.inv-armoury__ask{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;
	justify-content:center;padding:20px;background:rgba(8,13,26,.82);
	backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.inv-armoury__ask[hidden]{display:none}
.inv-armoury__ask-card{width:100%;max-width:420px;padding:24px;border-radius:14px;
	background:#111827;border:1px solid rgba(245,158,11,.28);
	box-shadow:0 20px 50px rgba(0,0,0,.6)}
.inv-armoury__ask-title{margin:0 0 10px;font-family:Rajdhani,sans-serif;font-weight:700;
	font-size:1.25rem;line-height:1.2;color:#f59e0b;letter-spacing:.02em}
.inv-armoury__ask-text{margin:0 0 20px;color:#9ca3af;font-size:.88rem;line-height:1.6}
.inv-armoury__ask-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.inv-armoury__ask-no,.inv-armoury__ask-yes{display:inline-flex;align-items:center;gap:5px;
	padding:9px 18px;border-radius:9px;cursor:pointer;
	font-family:Rajdhani,sans-serif;font-weight:700;font-size:.88rem;
	text-transform:uppercase;letter-spacing:.04em;line-height:1.2}
.inv-armoury__ask-no{background:transparent;border:1px solid rgba(255,255,255,.15);color:#9ca3af}
.inv-armoury__ask-no:hover{border-color:rgba(255,255,255,.3);color:#e5e7eb}
.inv-armoury__ask-yes{background:linear-gradient(135deg,#f59e0b,#b45309);border:0;color:#080d1a;
	font-variant-numeric:tabular-nums}
.inv-armoury__ask-yes:hover{background:linear-gradient(135deg,#fbbf24,#d97706)}
.inv-armoury__ask-yes:disabled{opacity:.6;cursor:wait}
.inv-armoury__ask-yes .inv-armoury__coin{width:17px;height:17px;flex-basis:17px}

/* ── Sheet tile → editor section ──────────────────────────────────────────────
   The sheet's pieces act as shortcuts into the controls for that piece, so they
   advertise themselves as clickable and the group they land on says so briefly. */
/* Every slot in the panel is a button, so it already reads as clickable. */



/* ── Hero panel, beside the controls ──────────────────────────────────────────
   The game shows a hero's whole build in one panel next to the portrait, and every
   slot in it is a way into that slot's settings. This is that panel. It holds its
   place while the player works the controls, so a change and the thing it changes
   are on screen together; one column below 1100px, where side by side would leave
   neither half usable. */
.inv-armoury__cols{display:grid;gap:20px}
.inv-armoury__sheet:empty{display:none}

/* minmax(0,1fr) and min-width:0 keep the column from growing to a descendant's
   min-content width — a grid item defaults to min-width:auto, and one wide child in
   the editor below was stretching the whole panel to twelve thousand pixels. */
.inv-armoury__cols{max-width:460px;margin:0 auto;grid-template-columns:minmax(0,1fr)}
.inv-armoury__cols > *{min-width:0}

/* The controls are reached through the panel's slots now, so the long form has no reason
   to be on screen. It stays in the DOM: it owns every widget and every field that posts,
   and the slot dialog borrows its groups one at a time. Hiding the WRAPPER would take the
   dialog with it — the dialog is parked inside — so its children are hidden instead and
   the wrapper's own frame collapsed. */
.inv-armoury__form .inv-cmd-details-wrap{padding:0;margin:0;border:0;background:none}
.inv-armoury__form .inv-cmd-details-wrap:before{display:none}
.inv-armoury__form .inv-cmd-details-wrap > *:not(.inv-hap-modal){display:none !important}

/* No CARD round the sheet -- no frame, no rounded corners, nothing drawn round a box.
   It does need a floor, though: with the backdrop playing there was nothing between the
   video and the sheet's own small text, and the whole panel read as faded. So, a flat
   dark panel, square, edge to edge, and that is all. */
.inv-hap{padding:0;border:0;border-radius:0;background:none}
@media (min-width:1000px){
	/* No floor under the sheet. The game's own has none: the bars, the gear strip and
	   the tiles carry their own backgrounds and the gaps between them show the backdrop.
	   The one exception is BELOW the gear strip, where a faint wash sits behind the
	   mount, the talents and the skill discs -- about a tenth, barely there. */
	.inv-hap{background:none;padding:0 16px 0}
	.inv-hap__below{background:rgb(32 38 49 / 27%)}
	/* The buttons line up with the sheet, not with the form. They sit outside .inv-hap, so
	   they started at the form's edge while everything they belong to -- the gear strip,
	   the mount row, the skills -- starts 16px in, and they read as hanging off the left. */
	.inv-armoury__actions{padding:0 16px}
}

/* The hero's reveal animation behind the sheet.
 *
 * Scenery, so it is pinned behind everything and takes no clicks. It is darkened hard
 * and faded at every edge: the sheet is full of small text and thin gold rules, and an
 * undimmed 720p video under them is unreadable. The mask does the fading rather than a
 * gradient over the top, so nothing sits between the video and the controls.
 *
 * Only where there is room for it. On a narrow screen the sheet IS the screen and a
 * moving backdrop under a form is just noise, and a player who has asked for less
 * motion gets a still frame instead. */
.inv-armoury__backdrop{position:relative;z-index:0}
.inv-hap__bgvid{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;
	display:none}
/* These are battlefield cinematics and most of them are graded cold -- grey sky, blue
   haze -- so behind a navy page they read as a wash of blue rather than as texture. Most
   of the colour comes out and a little warmth goes back in, which leaves the shapes and
   loses the cast. Darkened as well: the sheet's gold has to stay the brightest thing. */
.inv-hap__bgvid video{width:100%;height:100%;object-fit:cover;display:block;
	opacity:.5;filter:saturate(.46) sepia(.16) brightness(.8) contrast(1.04)}
.inv-hap.has-video{position:relative}
.inv-hap.has-video > *:not(.inv-hap__bgvid){position:relative;z-index:1}
@media (min-width:1000px){
	/* Behind the WHOLE page, not just the sheet: fixed to the viewport so the roster
	   rail sits on it too and it does not scroll with the form.
	   ⚠ A fixed child escapes to the viewport only while no ancestor carries a
	   transform or a filter -- an animation left on `both` is enough to turn one into
	   a containing block and drop this back into the panel. Vignetted at the edges so
	   it reads as a backdrop rather than a video someone left playing. */
	.inv-hap__bgvid{display:block;
		-webkit-mask-image:radial-gradient(140% 120% at 50% 42%,#000 42%,transparent 100%);
		mask-image:radial-gradient(140% 120% at 50% 42%,#000 42%,transparent 100%)}
	/* Everything the player reads sits above the backdrop.
	   ⚠ The video is RENDERED in the sheet -- that is the markup that knows which hero
	   it is -- and then MOVED into .inv-armoury__backdrop by script. It has to be: the
	   sheet is positioned, a positioned element makes a stacking context, and a fixed
	   element inside one is confined to it. Left there, the backdrop painted over the
	   roster beside it no matter what the z-indexes said. */
	.inv-armoury__shell{position:relative;z-index:1}
}
@media (prefers-reduced-motion:reduce){
	.inv-hap__bgvid video{animation:none}
}

/* Card art across the top, full bleed to the panel's edges. Wider than the art's own 2:3,
   so object-cover drops the level/star band baked along its foot. */

/* The header the game opens with: the crest, the name in a display serif, what the hero
   IS under it, and the unit types it FIGHTS AS off to the right in their own divided
   pill -- two different facts, which is why the game does not run them together.
   Georgia is the serif the theme already uses; no new font comes down for this. */
.inv-hap__head{display:flex;align-items:center;gap:10px;margin-bottom:10px;min-width:0}
/* flex-basis has to move with the width. In a row flex container the basis IS the
   main size, so leaving it at 40 while the width says 78 letterboxes the crest into
   a 40-wide box and only the box gets taller. */
.inv-hap__crest{width:78px;height:78px;object-fit:contain;flex:0 0 78px}
.inv-hap__id{min-width:0;flex:1 1 auto}
.inv-hap__name{margin:0;font-family:Georgia,'Times New Roman',serif;font-weight:700;font-size:1.8rem;
	line-height:1.15;letter-spacing:.015em;color:#f3c04a;text-transform:uppercase;overflow-wrap:anywhere;
	text-shadow:0 1px 2px rgba(0,0,0,.55)}
/* A long name shrinks rather than wrapping onto the tags or running under the unit pill,
   which is what the game does with one. The template picks the step from the length. */
.inv-hap__name.is-long{font-size:1.56rem;letter-spacing:0}
.inv-hap__name.is-xlong{font-size:1.32rem;letter-spacing:-.005em}
/* The two tags the game prints under the name -- icon then word, set apart from each
   other rather than crowded, and read as plainly as the game sets them. */
.inv-hap__tags{display:flex;flex-wrap:wrap;align-items:center;gap:0 8px;margin-top:0}
.inv-hap__tag{display:inline-flex;align-items:center;gap:0;color:#dfe5f2;
	font-size:.95rem;font-weight:500;letter-spacing:.01em;
	text-shadow:0 1px 3px rgba(0,0,0,.55)}
.inv-hap__tag img{width:32px;height:32px;object-fit:contain}
/* The game's own bar -- ui_n_bar/bar_n_hero_001a -- as a 9-slice, so the pointed ends
   are the sprite's and only the middle stretches. I had been CUTTING the shape with a
   clip-path, first as a parallelogram and then as a hexagon; both were drawings of a
   sprite that ships. The slice is 30px of a 362px export, which is where its taper ends. */
.inv-hap__units{flex:0 0 auto;display:inline-flex;align-items:center;gap:14px;
	padding:7px 22px;border:0;border-radius:0;background:none;
	border-image:url(../images/game-icons/unit-pill.webp) 0 30 fill / 0 15px stretch}
.inv-hap__units img{width:22px;height:22px;object-fit:contain;display:block}
.inv-hap__units-sep{width:1px;height:17px;background:rgba(255,255,255,.16)}
/* The game's header (user 2026-11-07): the name takes the whole width beside the crest
   on ONE line, and the unit pill drops to the tags' row at the right edge instead of
   sharing the name's row -- that is what squeezed "KING ARTHUR" onto two lines. */
.inv-hap__head{position:relative;align-items:center}
.inv-hap__name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
.inv-hap__head > .inv-hap__units{position:absolute;right:0;bottom:2px}
.inv-hap__head .inv-hap__tags{padding-right:118px}
/* The rule under the header, fading out at both ends the way the game's does. */
.inv-hap__rule{height:1px;margin:0 0 6px;
	background:linear-gradient(90deg,transparent,rgba(243,192,74,.38) 18%,rgba(243,192,74,.38) 82%,transparent)}

/* Rank and level read as two dark slabs with a gold chip on the end, the way the game
   stacks them. The slab is darker than the panel, not lighter: the game cuts them INTO
   the sheet. */
/* The slab is a LIGHT wash cut into the sheet, not a black hole in it -- the game's is
   pale grey over its sky, and over this page the same job wants the same direction.
   The + stands beside it as its own square, matching the row's height. */
.inv-hap__barrow{display:flex;align-items:stretch;gap:6px;margin-bottom:4px}
.inv-hap__bar{position:relative;flex:1 1 auto;display:flex;align-items:center;
	justify-content:space-between;gap:10px;min-width:0;
	margin:0;padding:2px 4px;border:0;border-radius:0;cursor:pointer;text-align:left;
	background:rgb(32 38 49 / 33%);transition:background-color .15s;overflow:hidden}
.inv-hap__bar:hover{background:rgba(245,158,11,.16)}
.inv-hap__bar--lvl{flex-direction:column;align-items:stretch;justify-content:center;gap:0;
	padding-bottom:9px}
.inv-hap__bar-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
/* The level diamond, ahead of the figure. The label keeps the rest of the row, so the
   mark is the only thing that moves in: flex:none, and the label takes what is left. */
.inv-hap__bar-ico{flex:none;width:var(--hap-lvico,26px);height:var(--hap-lvico,26px);
	background:url(../images/game-icons/icon-level-diamond.webp) center/contain no-repeat}
.inv-hap__bar-row .inv-hap__bar-lbl{flex:1;min-width:0}
.inv-hap__bar-lbl{font-family:Inter,system-ui,sans-serif;font-weight:500;font-size:.95rem;color:#fff;
	font-variant-numeric:tabular-nums;letter-spacing:.01em}
/* The progress line runs along the slab's own bottom edge, edge to edge. */
.inv-hap__bar-track{position:absolute;left:0;right:0;bottom:0;display:block;height:4px;
	border-radius:0;background:rgba(0,0,0,.4);overflow:hidden}
.inv-hap__bar-track i{display:block;height:100%;background:#fff}

/* A PETAL IS A POINT OF THE STAR, not a slice across it -- which is the whole reason
   the earlier attempts looked wrong. The star is an unlit base with up to five petal
   sprites laid on it, one per arm, exactly as invictus_hero_card_star() builds the one
   in the round hero icon. The game's own six sprites; nothing is drawn by us.

   The offsets are the generator's, measured on its 56px canvas and written here as
   shares of it: a petal is 28 of 56, and the five sit at 14/4, 25/13, 21/26, 6/27 and
   2/13. The lit petals are the only thing in the box, so nothing composites twice and
   no edge fringes. */
/* Wider apart and a shade bigger, the way the game spaces a hero's five. */
.inv-hap__stars{display:inline-flex;align-items:center;gap:2px}
.inv-hap__star{position:relative;display:block;width:32px;height:32px;
	background:url(../images/game-icons/hero-star-base.webp) center/contain no-repeat}
.inv-hap__petal{position:absolute;display:block;width:50%;height:50%;
	background-size:contain;background-repeat:no-repeat;background-position:center}
.inv-hap__petal--1{left:25%;top:7.143%;background-image:url(../images/game-icons/hero-star-p1.webp)}
.inv-hap__petal--2{left:44.643%;top:23.214%;background-image:url(../images/game-icons/hero-star-p2.webp)}
.inv-hap__petal--3{left:37.5%;top:46.429%;background-image:url(../images/game-icons/hero-star-p3.webp)}
.inv-hap__petal--4{left:10.714%;top:48.214%;background-image:url(../images/game-icons/hero-star-p4.webp)}
.inv-hap__petal--5{left:3.571%;top:23.214%;background-image:url(../images/game-icons/hero-star-p5.webp)}

/* The gold chip the game puts at the end of a row that can be raised. Decoration: the
   whole slab is the button, so it is hidden from anything that reads the page. */
/* The game's own button, not a gradient chip with a typed plus in it: the gold plate is
   ui_n_button/btn_n_02yellow and the cross on it ui_n_button/btn_n_add_04. The glyph is
   a sprite, so it keeps the game's flared arms instead of whatever the font draws. */
.inv-hap__plus{flex:0 0 auto;display:inline-block;position:relative;border:0;cursor:pointer;
	width:38px;border-radius:0;font-size:0;line-height:0;color:transparent;
	background:url(../images/game-icons/btn-gold-plate.webp) center/100% 100% no-repeat}
.inv-hap__plus::after{content:"";position:absolute;left:50%;top:50%;
	width:52%;height:52%;transform:translate(-50%,-50%);
	background:url(../images/game-icons/icon-plus.webp) center/contain no-repeat}

/* Section headings in the display serif the header uses. */
.inv-hap__label{margin:2px 0 2px;font-family:Georgia,'Times New Roman',serif;font-weight:700;
	font-size:1.25rem;text-transform:uppercase;letter-spacing:.06em;color:#f3c04a;
	text-shadow:0 1px 2px rgba(0,0,0,.5)}

/* Two pieces, the ring, two pieces. The ring is the centre of the strip in the game,
   so it is wider than a gear tile and overlaps the band. */
/* minmax(0,…) on every track, because a grid item defaults to min-width:auto and the
   gear thumbnails carry their intrinsic size as width/height attributes — a 3000px
   source was sizing each track to 3000px and squeezing the ring out of existence. */
/* The game's gear plate: a warm band carrying the five sockets, square-edged, with the
   pattern drawn in CSS rather than shipped as an image — three layers over the base, each
   faint enough to read as texture and not as decoration.

   1. a wide ring centred where the signet ring sits, the way the game haloes that socket
   2. a fine diagonal weave
   3. the band's own light-to-dark fall

   Paint order is top-down in the shorthand, so the ring is listed first. */
/* The game's own plate, sockets and all. Nothing in its 500x217 canvas is placed by
   accident, so the row is built from the canvas rather than fitted to it by eye:
   the leather band runs y 40-174, the four sockets are 69-70px squares at x 9, 92,
   339 and 422, and between the middle pair sits a 177px clean block that is the
   signet ring's room. The row therefore keeps the canvas ratio and splits its width
   into the plate's own columns -- 9|69|14|70|177|70|13|70|8 -- so a gear tile lands
   ON a socket instead of beside it, and an empty socket reads as the game draws it.
   Stretched to the row, never tiled. Measured off the PNG. */
.inv-hap__gear{position:relative;display:grid;
	grid-template-columns:1.8% 13.8% 2.8% 14% 35.4% 14% 2.6% 14% 1.6%;
	column-gap:0;align-items:center;padding:0;margin-top:-32px;margin-bottom:0;
	aspect-ratio:500/217;
	background-image:url(../images/gear/equip-strip.webp);
	background-size:100% 100%;
	background-repeat:no-repeat}
/* helmet, gloves, ring, chest, boots -- the plate's five slots, in markup order. The
   tracks between them are the plate's own gaps and carry nothing. */
.inv-hap__gear>:nth-child(1){grid-column:2}
.inv-hap__gear>:nth-child(2){grid-column:4}
.inv-hap__gear>:nth-child(3){grid-column:5}
.inv-hap__gear>:nth-child(4){grid-column:6}
.inv-hap__gear>:nth-child(5){grid-column:8}
/* The tile's own look comes from hero-loadout-card.css; this only fits it to the strip,
   which is narrower than the lineup page's row. */
.inv-hap__tile{min-width:0;padding:0;border:0;background:none;cursor:pointer}
/* The piece in the frame, the gem pips along its top, the ascension stars on a dark band
   at its foot — and the level BELOW the frame rather than over the artwork, which is where
   the game prints it and what keeps a gold piece legible under a gold number. The frame is
   only slightly taller than wide; at three-by-four it was a column. */
/* Square sockets, as the game cuts them: gem pips along the top, the piece in the middle,
   the ascension stars on a dark band at the foot, and the level BELOW the frame on the
   plate — which is where the game prints it and what keeps a gold number off gold
   artwork. The slot's name is not drawn: the artwork says which piece it is, and the
   reference carries no labels. It stays in the markup for anything that reads the page. */
/* The socket is a flex box on a lineup page, where its content sets the height. Here the
   square IS the spec, so the tile is laid into it absolutely and cannot push it taller —
   with aspect-ratio alone a flex item still wins. */
.inv-hap__gear .inv-gear-slot__icon,
.inv-enh__strip .inv-gear-slot__icon{position:relative;display:block;width:100%;height:auto;
	aspect-ratio:1;background:none;border:0;border-radius:0;overflow:visible}
.inv-hap__gear .inv-gear-tile{position:absolute;inset:0;max-width:none;width:auto;height:auto;
	display:block;overflow:visible}
.inv-hap__gear .inv-gear-tile img{position:absolute;inset:0;width:100%;height:100%;
	object-fit:contain;display:block;padding:13% 4.3% 18.8%}
.inv-hap__gear .inv-gear-tile__gems{top:1px;gap:1px}
.inv-hap__gear .inv-gear-tile__gem{width:12px;height:12px}
.inv-hap__gear .inv-gear-tile__lv{left:0;right:0;bottom:-15px;text-align:center;
	font-size:.62rem;color:#f3e8d0;text-shadow:0 1px 3px rgba(0,0,0,.65)}
.inv-hap__gear .inv-gear-slot__label{position:absolute;width:1px;height:1px;margin:-1px;
	padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.inv-hap__gear .inv-lp-gstars{position:absolute;left:0;right:0;bottom:0;max-width:none;
	padding:3px 0;background:rgba(0,0,0,.42)}
/* THE TILE IS THE GAME'S OWN SQUARE, not a gradient of ours. m_PicItemBG in
   ListItem_GemItem reaches into ui_menuitem4 for box_1..box_5 and box_7, and the gear
   strip is printed on the SAME six -- which is why the game's helmet tile and its gem
   tiles read as one set. The site's gear only ever climbs to legendary and mythical,
   so only those two are needed here; the file carries all six for the gem grid.
   Scoped to the armoury so the lineup pages keep the gradient they were built on. */
.inv-hap__gear .inv-gear-slot.is-leg .inv-gear-tile{
	background:url(../images/game-icons/gem-tile-legendary.webp) center/100% 100% no-repeat;
	border-color:rgba(245,215,140,.5)}
.inv-hap__gear .inv-gear-slot.is-myth .inv-gear-tile{
	background:url(../images/game-icons/gem-tile-mythical.webp) center/100% 100% no-repeat;
	border-color:rgba(232,178,148,.42)}

/* An empty socket is the plate's. The strip behind the row carries the recess the game
   cuts, so a slot with nothing in it draws nothing on top of it -- our rarity gradient,
   our gem pips, a level of zero and four unearned stars all added up to a box that read
   as filled. The button is still there to tap. */
.inv-hap__gear .inv-hap__tile.is-empty .inv-gear-tile{background:none;border-color:transparent}
.inv-hap__gear .inv-hap__tile.is-empty .inv-gear-tile__gems,
.inv-hap__gear .inv-hap__tile.is-empty .inv-gear-tile__lv,
.inv-hap__gear .inv-hap__tile.is-empty .inv-lp-gstars{display:none}

/* The ring sits on the game's plates — slot underneath, quality disc over it — which
   .inv-ring-art in hero-loadout-card.css draws from two CSS variables. */
/* The ring is the centre of the strip: its disc fills the column and rides over the
   plate's top and bottom edges, the way the game seats it, and its level sits on the same
   line as the gear levels rather than in a badge of its own. */
/* The disc is the biggest thing on the strip and is meant to break the plate's top and
   bottom edges. If it sat in the row it would also SET the row's height, and the gear
   tiles would float in the middle with uneven space above and below them — so the ring is
   a zero-height anchor and the disc hangs off it, centred. */
.inv-hap__ring{min-width:0;position:relative;z-index:4;display:block;height:0;align-self:center;
	padding:0;border:0;background:none;cursor:pointer;transition:transform .15s}
.inv-hap__ring:hover{transform:scale(1.05)}
/* EVERYTHING in the socket is a share of this one box, so nothing drifts as the strip
   scales. Written as percentages rather than the shared rule's fixed 19px overhang,
   which only held at the one size it was measured at.

     box     57% of the track -- chosen so the PLATE comes out the size it was at the
                             ratio that read well; everything else is a share of it
     plate   inset -23.91% -> 1.4782 boxes
     disc    inset  -5%  -> 1.10 boxes, which is 0.82 of the plate, so the plate's
                            rim still shows around the quality colour
     ring    107%         -> artwork 0.81 of the disc, as the game's strip has it
     glyph    76%         -> 0.57 of the plate, the ratio of the game's own two files
                            (97 on 169)

   The plate still breaks the leather's top and bottom, because it is round and the
   band is only as tall as a gear tile and its level. */
.inv-hap__ring-art{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
	display:block;width:var(--rs-box,63.05%);aspect-ratio:1}
/* The plate, sized off the game's screen and CENTRED on its canvas.

   SIZE, measured off the game's own gear strip: the plate is 284 wide there and the
   disc 216, so circle to circle the plate is 1.31 of the disc -- which puts the disc's
   rim at 0.76 of the plate's radius, right on the INNER EDGE of its ornament band. (The
   plate's own radial profile, in fractions of its 84.5px radius: inner field to 0.651,
   a gap ring 0.663-0.734, the band 0.746-0.828.) I had put the rim in the middle of the
   gap at 0.698, which left a moat and made the disc look small inside the plate.

   The plate is 1.4782 boxes and the disc 1.1956, which is 1.31 circle to circle once
   each canvas's own fill is taken out (168/169 and 167/178). And the box is 55% of the
   track, so the plate comes out 28.8% of the row against the game's 28.5%.

   NO NUDGE, and that was a wrong turn worth recording. Thresholded at the solid inner
   ornament the ring's centre is y 81.5 of a 169 square whose centre is 84.0, so the
   plate was pushed down 1.48% to centre THAT. But the circle a player reads is the
   faint OUTER tick ring, and in the alpha box -- which is the one that ring sets --
   the artwork is already centred. Centring the inner ring simply moved the outer one
   off centre. The canvas is centred; the plate is centred. */
/* The SLOT PLATE sits back at 80%. Only the plate: the quality disc over it
   (::after) is the background a worn ring stands on and stays at full strength. */
.inv-ring-art.inv-hap__ring-art::before{opacity:.8;inset:var(--rs-plate,-23.91%);transform:translate(var(--rs-plate-x,0%),var(--rs-plate-y,0%))}
.inv-ring-art.inv-hap__ring-art::after{inset:var(--rs-disc,-15.07%);transform:translate(var(--rs-disc-x,.55%),var(--rs-disc-y,-.98%))}
/* The ring inside its disc, at the game's own proportion. Measured off the game's
   screen: the artwork spans 0.68 of the quality disc. The sprite is a 256 square that
   carries its own margin -- 211 of those 256 are artwork -- so the BOX that puts 0.68
   of the disc on screen is 0.68/0.824 = 0.83 of the disc, and the disc is 1.10 of this
   box: 0.91.

   It was 112%, which pushed the metal past the disc entirely -- and only 112% one way,
   because a global `img{max-width:100%}` clipped the WIDTH back to the box and left the
   HEIGHT at 112%. The box was 100x112 and the -6% top margin then lifted the sprite off
   the disc's centre. Centred on the box now, square, no margin.

   CENTRED ON ITS FILE, and that is deliberate. The ring inside a 256 square is not
   centred in it -- across all 47 the bounding box wanders -5.5% to +1.8% across and
   -8.2% to +9.6% down -- and I once read that as an error and corrected each ring onto
   its own bounding box. It is not an error: where a ring sits in its canvas is the
   artist's composition, and the game draws them exactly there. Ring of Lion's artwork
   fills the TOP of its square; centring its box shoved it a fifth of a ring downwards.
   The canvas goes on the disc, and the ring lands where it was drawn.

   NAMED, not `img`. This box holds three images -- the ring, the empty slot's glyph and
   the skill badge -- and a bare `img` rule reaches all three. It has caught me twice:
   `margin:-6% auto` put the glyph 12px right of the plate's centre, and this rule's own
   centring transform then moved it half its width again. Each image says which it is. */
.inv-hap__ring-art img:not(.inv-ring-art__glyph):not(.inv-hap__ring-skill){
	position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);
	z-index:2;width:var(--rs-ring,88.91%);height:var(--rs-ring,88.91%);margin:0;object-fit:contain;display:block}
/* The ring's level, printed the way the game prints it: ON the disc, over the soft dome
   the game darkens the disc's foot with so a pale number reads against gold. It lives
   inside the art box now, so disc, ring, dome and number scale as one.

   The dome is not a decoration to be sized by eye: it is a SLICE OF THE DISC. Measured
   off the asset -- 140x40, a 138px chord with a 40px sagitta -- its curve belongs to a
   circle 159 across, where the disc's own visible circle is 167. So the game lays them
   at their native sizes and the dome's arc rides just inside the rim.

   Carried over here: the dome is 140/178 = 0.787 of the disc box, and its arc centre is
   39.5 of its own pixels above its top edge, so its top sits 39.5/178 of the disc box
   below the disc's centre. The disc is 1.10 of this box, which makes the dome 86.6%
   wide with its top at 74.4%. It was 78% at 79.7%: too narrow and too low, so the arc
   missed the rim and read as a smile under the ring rather than a shadow on the disc. */
.inv-hap__ring-art .inv-hap__ring-lv{position:absolute;left:50%;top:var(--rs-lv-y,81.02%);bottom:auto;
	transform:translateX(-50%);z-index:3;
	display:flex;align-items:center;justify-content:center;
	width:var(--rs-lv,98.34%);aspect-ratio:140/40;padding-bottom:7%;
	background:url(../images/game-icons/ring-lv-band.webp) center/100% 100% no-repeat;
	white-space:nowrap;
	font-family:Rajdhani,sans-serif;font-weight:700;font-size:.72rem;color:#f6efe0;line-height:1;
	text-shadow:0 1px 3px rgba(0,0,0,.8)}
/* Nothing worn: the glyph lies on the plate at the ratio the game's own two files
   have, 97 on 169. At inset:0 it filled the plate edge to edge and read as a ring
   pressed into the socket rather than a mark of where one goes.

   margin:0 is not tidying. `.inv-hap__ring-art img` above sets `margin:-6% auto` to
   seat the WORN ring, and the glyph is an img in that same box, so it inherited the
   pair -- measured, it landed 12px right and 6px up of the plate's centre, which is
   exactly those two margins. */
.inv-hap__ring-art .inv-ring-art__glyph{inset:auto;left:var(--rs-glyph-x,12.74%);top:var(--rs-glyph-y,11.13%);
	width:var(--rs-glyph,72.99%);height:var(--rs-glyph,72.99%);margin:0}
/* The ring's skill, badged the way the game badges it: a small disc riding the upper
   right of the quality disc, its centre a hair PAST the rim so it breaks the edge.
   Measured off the game's own screen -- a quarter of the disc across, about 39 degrees
   above horizontal, which on this box is left 80% / top 1% at 27.5% wide.

   Dressed as the rings page dresses it (.inv-ring-card__skill-icon) -- a plain dark
   disc and a soft shadow -- with a hairline rim over it, half a pixel at low alpha.
   No glow, nothing thicker: the icon art carries a rim of its own already, and on a
   2x screen a whole CSS pixel is two device pixels and reads as a band.

   Kept centred where it was as it came down from 27.5% to 24%: the centre is what the
   measurement fixes, so left and top move by half the difference.

   It carries its own `position:absolute`: the ring's rule no longer reaches it, and
   that rule was where the badge had been getting positioned from -- excluding it left
   the badge in flow at the box's corner. */
.inv-hap__ring-art .inv-hap__ring-skill{position:absolute;inset:auto;left:var(--rs-skill-x,81.5%);top:var(--rs-skill-y,-3.49%);
	width:var(--rs-skill,25.61%);height:var(--rs-skill,25.61%);
	z-index:4;border-radius:50%;object-fit:cover;background:#0f1526;
	box-shadow:0 0 0 .5px rgba(240,228,200,.35),0 1px 4px rgba(0,0,0,.45)}

.inv-hap__wide{display:flex;align-items:center;justify-content:space-between;gap:6px;
	padding:10px 12px;border-radius:9px;cursor:pointer;border:1px solid rgba(255,255,255,.08);
	background:rgba(255,255,255,.04);transition:border-color .15s,background-color .15s}
.inv-hap__wide:hover{border-color:rgba(245,158,11,.45);background:rgba(245,158,11,.1)}
.inv-hap__wide span{font-family:Rajdhani,sans-serif;font-weight:700;font-size:.86rem;
	text-transform:uppercase;letter-spacing:.06em;color:#cbd5e1}
.inv-hap__wide img{width:34px;height:34px;object-fit:cover;border-radius:0}
.inv-hap__wide--talents{background:rgba(59,130,246,.1);border-color:rgba(59,130,246,.26)}
.inv-hap__wide--talents:hover{border-color:rgba(59,130,246,.6);background:rgba(59,130,246,.18)}
.inv-hap__wide--talents span{color:#93c5fd}

.inv-hap__skills{display:flex;align-items:flex-start;gap:6px;margin-top:2px;min-width:0}
.inv-hap__skills-sep{flex:0 0 1px;align-self:stretch;background:rgba(255,255,255,.1);margin:4px 2px}
/* The disc's own look — frame, icon, level badge, stars — comes from
   hero-loadout-card.css; this lays the four of them across the panel and dresses them
   the way the game dresses its row. */
.inv-hap__disc{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;
	padding:4px 2px 16px;border:0;background:none;cursor:pointer}
.inv-hap__disc-lbl{font-size:.56rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;
	color:#6b7494;text-align:center;line-height:1.2}
/* Bigger discs, the way the game ends its sheet -- the row is the widest thing on it.
   Four of them have to fit side by side, so the size follows the panel rather than being
   nailed down: 84px where there is room, a quarter of the row where there is not. */
.inv-hap__skills .inv-ls-skill-frame{width:min(84px,19vw);height:min(84px,19vw)}
@media (min-width:1000px){.inv-hap__skills .inv-ls-skill-frame{width:84px;height:84px}}

/* Pointing at a skill lit a yellow panel behind the whole disc. The game does not do
   that: it puts a glowing gold ring ON the disc and leaves everything else alone.
   ui_n_menuhero/pic_hero_xing_add is that ring -- the sprite carries its own glow, so it
   is drawn larger than the frame and nothing else is needed. */
.inv-hap__disc .inv-ls-skill-frame::after{content:'';position:absolute;left:50%;top:50%;
	width:128%;height:128%;transform:translate(-50%,-50%);z-index:3;pointer-events:none;
	opacity:0;transition:opacity .15s;
	background:url(../images/game-icons/skill-select-glow.webp) center/contain no-repeat}
.inv-hap__disc:hover .inv-ls-skill-frame::after,
.inv-hap__disc:focus-visible .inv-ls-skill-frame::after{opacity:1}
.inv-hap__disc.is-locked:hover .inv-ls-skill-frame::after{opacity:0}

/* The level in the game's diamond, at the disc's lower right rather than a pill under
   its chin. Drawn with clip-path, not a rotation: a rotated box takes its text with it.
   Two diamonds, the gold one a pixel larger, which is the rim. The badge already makes
   a stacking context (it is positioned with a z-index), so z-index:-1 keeps both of them
   behind the number and inside the badge. */
/* The game's own plate, not two clipped pseudo-elements standing in for it. The prefab
   index names it: Pic_SkillLvBG -> ui_n_menuhero/pic_n_hero_lv_006. The ladder runs
   002 blue, 003 green, 004 purple, 005 gold, 006 gold, 007 crimson -- 006 is the one
   the game puts behind a skill's level. */
/* Measured off the game's own badge: a bit under a third of the disc, tucked so its
   right edge meets the disc's and its foot clears the rim. It used to be a third again
   as big and hung outside the disc on both sides. A share rather than a fixed size, so
   it holds at every scale the disc is drawn at. */
.inv-hap__skills .inv-ls-skill-lv{left:auto;right:1%;bottom:7%;transform:none;
	display:flex;align-items:center;justify-content:center;width:29%;height:29%;padding:0;
	border:0;border-radius:0;font-size:.6rem;color:#f6e3a8;
	text-shadow:0 1px 2px rgba(0,0,0,.9);
	background:url(../images/game-icons/skill-lv-plate.webp) center/100% 100% no-repeat}
.inv-hap__skills .inv-ls-skill-lv::before,
.inv-hap__skills .inv-ls-skill-lv::after{content:none}
/* A chosen-skill slot the hero has not reached yet: the ring over a dark disc with the
   game's padlock in it, and the level it wants where the name would go. */
.inv-hap__disc.is-locked{cursor:default}
.inv-hap__disc.is-locked .inv-ls-skill-frame{border-radius:50%;
	background:radial-gradient(circle at 50% 42%,#1b2334,#0a0f1b 76%)}
.inv-hap__disc-lock{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
	z-index:1;width:34%;height:46%;opacity:.82;
	background:url(../images/game-icons/skill-lock.webp) center/contain no-repeat}
.inv-hap__disc.is-locked .inv-hap__disc-lbl{color:#6b7494}
/* The stars ride on the game's own plate -- ui_n_menuhero/pic_n_hero_kuang_05, which the
   prefab index names Pic_BgStar wherever a skill's stars are drawn. It is a gold hexagon
   outline; the dark it encloses is baked in at export so one image draws the whole plate.
   It sits UNDER the disc and overlaps its chin, which is where the game puts it. */
.inv-hap__skills .inv-ls-skill-stars{position:absolute;left:50%;bottom:-12%;
	transform:translateX(-50%);z-index:4;
	display:flex;align-items:center;justify-content:center;gap:0;margin:0;
	width:86%;height:25%;padding:0 7%;
	background:url(../images/game-icons/skill-star-plate.webp) center/100% 100% no-repeat}
/* The plate hangs past the disc, so the name below it is given room to clear. */
.inv-hap__skills .inv-hap__disc-lbl{margin-top:11px}
/* The game's skill star is a FOUR-pointed diamond (ui_n_icon/icon_n_star_08a and its
   red twin 08b), not the five-pointed character a font draws.
   GOLD IS THE BASE, NOT THE EARNED STATE: a skill with nothing invested shows five solid
   gold diamonds, and each star it gains turns one of them RED. So gold is never dimmed,
   and five red is a maxed skill. We had it backwards -- gold at a fifth of its opacity
   for "unearned", which made an untouched skill look broken. */
.inv-hap__skills .inv-ls-star{display:block;flex:0 0 auto;width:17%;height:78%;font-size:0;
	background:url(../images/game-icons/skill-star.webp) center/contain no-repeat}
.inv-hap__skills .inv-ls-star.is-on{
	background-image:url(../images/game-icons/skill-star-red.webp)}

/* ── Slot editor ──────────────────────────────────────────────────────────────
   A panel slot opens its own controls here. The controls are the page's real ones,
   moved in for the duration, so this styles a container and nothing inside it. */
.inv-hap-modal{position:fixed;inset:0;z-index:9998;display:flex;align-items:center;
	justify-content:center;padding:20px;background:rgba(8,13,26,.8);
	backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.inv-hap-modal[hidden]{display:none}
.inv-hap-modal__card{display:flex;flex-direction:column;width:100%;max-width:720px;
	max-height:calc(100vh - 40px);border-radius:14px;background:#111827;
	border:1px solid rgba(245,158,11,.28);box-shadow:0 24px 60px rgba(0,0,0,.65)}
.inv-hap-modal__head{display:flex;align-items:center;justify-content:space-between;gap:12px;
	padding:14px 18px;border-bottom:1px solid rgba(255,255,255,.07)}
.inv-hap-modal__title{margin:0;font-family:Rajdhani,sans-serif;font-weight:700;font-size:1.05rem;
	text-transform:uppercase;letter-spacing:.06em;color:#f59e0b;line-height:1.2}
.inv-hap-modal__x{padding:0 6px;border:0;background:none;cursor:pointer;color:#6b7494;
	font-size:1.6rem;line-height:1}
.inv-hap-modal__x:hover{color:#e5e7eb}
.inv-hap-modal__body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:16px 18px}
/* The moved group brings its own frame; inside the dialog it is the whole content. */
.inv-hap-modal__body > [data-section]{margin:0}
.inv-hap-modal__body .inv-subgroup-header{display:none}
.inv-hap-modal__foot{padding:12px 18px;border-top:1px solid rgba(255,255,255,.07);text-align:right}
.inv-hap-modal__done{padding:9px 22px;border:0;border-radius:9px;cursor:pointer;
	background:linear-gradient(135deg,#f59e0b,#b45309);color:#080d1a;
	font-family:Rajdhani,sans-serif;font-weight:700;font-size:.88rem;
	text-transform:uppercase;letter-spacing:.04em}
.inv-hap-modal__done:hover{background:linear-gradient(135deg,#fbbf24,#d97706)}


/* ── the talents button, as the game builds it ────────────────────────────────
   m_BtnBorn in Menu_HeroListN_UGUI, the third of the three buttons on that row:

     m_BtnBorn        245.5 x 120
       m_PicBornBg    stretch   ui_g_skillawaken/pic_skill14        the blue plate
       m_PicBornBg02  stretch   pic_equip_bg_banner_02b (01b off)   the banner over it
       Pan_Group      410 x 120 -- the lock, the label, the level

   Both plates have stretch anchors and a zero size delta, so the game SQUASHES them
   into the button: pic_equip_bg_banner_02b is 456x120, nearly twice as wide as the
   245.5 it ends up in. Ours was cropping instead (object-fit:cover), which is why the
   lettering never sat where the game's does. object-fit:fill is the game's behaviour.

   245.5/120 beside the mount's 250/120 -- the row gives them a column each. */
.inv-hap__talents{position:relative;display:block;width:100%;padding:0;border:0;
	aspect-ratio:var(--talent-btn-ar,245.5/120);
	border-radius:0;overflow:hidden;cursor:pointer;transition:filter .15s;
	background:url(../images/game-icons/talent-plate.webp) center/100% 100% no-repeat,#1b2740}
.inv-hap__talents:hover{filter:brightness(1.15)}
.inv-hap__talents img{width:100%;height:100%;object-fit:fill;display:block}
/* The banner already says TALENTS in the game's own lettering; the label stays for
   anything that reads the page rather than looks at it. */
.inv-hap__talents span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;
	overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* ── Mount row ────────────────────────────────────────────────────────────────
   Portrait, then the name, the attributes and the traits. Square-edged and
   unboxed, like everything else on the panel. */
/* ⚠ THE ROW PAINTS ABOVE WHAT IS OVER IT. The awakening plate stands 1.4 times the
   row's height and reaches past its top edge, which is how the game draws it -- but
   z-index on the button only orders it against its siblings, and the panel ABOVE this
   row paints in its own turn, straight over the part that overhangs. That is what
   looked like the badge being cut across. The row takes a stacking context of its own
   and sits above its neighbour, so the overhang shows. */
.inv-hr{margin-top:-16px;position:relative;z-index:2}
/* Mount tile beside the talents banner, as the game pairs them; talents takes the wider
   half because it carries lettering and the mount carries a portrait. */
/* Mount, then talents — and for an awakened hero an awakening slot between them, which
   is a diamond rather than a banner and so takes only the width of one. */
/* THE ROW IS m_Pan_Born, 720 x 162, and the game lays it out twice.
   With an awakening slot:  mount 0..250, awakening 260..464.5, talents 474.5..720.
   Without one, THE TALENTS BUTTON TAKES THE WHOLE REST -- 260..720, so 460 wide
   rather than 245.5. Its own label gives it away: m_LabBorn is 460x56, sized for
   the wide state, and Pan_Group inside the button is 410 on a 245.5 button.
   Ten units of gap between neighbours, which is 1.39% of the row. */
.inv-hr__top{display:grid;grid-template-columns:minmax(0,250fr) minmax(0,460fr);
	gap:1.39%;align-items:start;--talent-btn-ar:460/120}
/* Awakened: the game's own three shares. The diamond's PLATE is taller than the row
   (168 against 120) and reaches past the top and bottom edges, which is how the game
   draws it -- so nothing in this row may clip.
   It used to hang off a zero-height anchor so it would not set the row's height; it
   is a box of its own now, the same 204.5x120 the game gives it, so the three agree.) */
/* With the diamond in the middle, the talents button gives up the width it had and
   drops back to the 245.5 the game gives it there. */
.inv-hr__top{overflow:visible}
.inv-hr__top:has(.inv-hap__awk){--talent-btn-ar:245.5/120;
	grid-template-columns:minmax(0,250fr) minmax(0,204.5fr) minmax(0,245.5fr)}
.inv-hr__top > *{min-width:0}
.inv-hr__main{position:relative;display:block;width:100%;padding:0;border:0;
	background:none;cursor:pointer;text-align:left;text-decoration:none}
/* Every mount banner in the library is 550x216, so the tile takes that exact ratio.
   The art is pinned to the tile's BOTTOM-LEFT corner and scaled from there, which is the
   corner the horse's head and the frame's inner edge sit against — growing it past 100%
   gives away the top and the right, where the artwork has nothing but background.
   The height runs over the tile and the art is dropped below it — by how much depends on
   how wide the tile is, which depends on whether the row carries an awakening slot. The
   tile does not clip, so the overflow is the horse's head and ears, which belong above the
   banner rather than inside it.
   --inv-hr-art-scale overrides both axes together when a tile wants a different zoom. */
.inv-hr__art{position:relative;display:block;width:100%;aspect-ratio:550/216;overflow:visible;
	background:#0b1120}
/* DIRECT CHILD ONLY. The medallion hangs inside this box, and as a bare descendant rule
   this dragged its image along too: bottom-left anchored, absolutely positioned and
   scaled to the banner's variables, which is why the adornment sat in a corner of its
   own socket instead of in the middle of it. */
.inv-hr__art > img{position:absolute;left:0;bottom:var(--inv-hr-art-drop,-4px);z-index:1;
	width:var(--inv-hr-art-scale,100%);height:var(--inv-hr-art-scale,var(--inv-hr-art-h,128%));
	object-fit:cover;object-position:left bottom;display:block}
/* An awakened hero puts a third tile in the row, so each is narrower and the same artwork
   needs more height and a deeper drop to frame the same way. Both tuned on the real
   banners, for each of the two row shapes. */
.inv-hr__top:has(.inv-hap__awk) .inv-hr__art{--inv-hr-art-h:145%;--inv-hr-art-drop:-7px}
/* ── the game's own mount card ─────────────────────────────────────────────────
   Pan_MailBattleMount_UGUI, read out of the prefab -- the card the game prints a
   mount on with its ornament beside it, which is exactly what this tile is:

     Pan_MailBattleMount  195 x 94                     the card  (2.074:1)
       Pan_Equip          250 x 120  SCALE 0.78        = 195 x 93.6, the card itself
         m_PicHeadBgMount 440 x 120  anchor 0,0.5      pic_mount_quality11_0N
         Pic_MountMask    236 x 168  SCALE 0.85  centre offset -16,+10
           m_PicHeadMount 210 x 210  pivot 1,0  anchor 0,0  SCALE -0.96,0.96
         m_PanOrnament    256 x 256  SCALE 0.3   top-right, overhanging by 7.5

   ⚠ THE BANNER IS pic_mount_quality11, 306x83, NOT quality6. quality6 belongs to
   Pan_GLMountEquipInfo, the wide information row, and wearing it here was why the
   plate never sat: a different crop of the same medallion at a different proportion.
   This one is drawn 440x120, which comes to 343 wide on a 195 card once Pan_Equip's
   0.78 is applied -- again oversized and cropped, never stretched.

   That 0.78 carries down to the children, and so does the mask's own 0.85, so in the
   card's own pixels the mask is 156.5 x 111.4 centred at (85, 54.6) and the horse is
   210 x 0.96 x 0.85 x 0.78 = 133.7 square with its bottom-left at (6.75, -1.1):
   seven tenths of the way across, cropped top and bottom. The 0.96 belongs to this
   card -- the list card flips at a flat -1.

   Every figure below is a share of the card's HEIGHT, which is how the same three
   numbers hold at any width; container-type:size makes cqh mean this box.

   NOTHING IS STRETCHED. The quality banner is drawn at its own proportion, anchored
   left and cropped -- stretching it to the tile is what turned its medallion oval.
   And the crescent of banner showing through the saddle is not a layer: the mount
   sprite's own alpha fades it out towards its bottom and the medallion shows through. */
/* THE BOX DOES NOT CUT THE ANIMAL. The game crops the ears at the card's top edge;
   here the head is allowed to stand above it, the way this row has always let a mount
   overflow its banner. overflow:visible is what does that -- the background cannot
   spill (backgrounds never do), so only the horse rises, and the tile is raised above
   its neighbours so the head is not painted over.
   --mount-card-ar is the box's shape. The game's own card is 195/94; wider than that
   simply shows more of the banner to the right of the medallion, which is empty
   ground, and gives the head more room. */
.inv-hr__art.is-card{aspect-ratio:var(--mount-card-ar,250/120);container-type:size;
	overflow:visible;position:relative;z-index:1;
	background:var(--mount-plate) left center/auto 100% no-repeat,transparent}
.inv-hr__art.is-card > .inv-hr__mount,
.inv-hr__top:has(.inv-hap__awk) .inv-hr__art.is-card > .inv-hr__mount{
	/* 133.7/94, 6.75/94 and -1.1/94, straight out of the figures above. */
	position:absolute;left:7.18cqh;bottom:-1.17cqh;top:auto;
	width:auto;height:142.23cqh;max-width:none;object-fit:contain;
	/* THE CIRCLE THE GAME SEATS IT IN. The sprite's own alpha only steps down in a
	   straight band along its foot; what the game does is hold the animal INSIDE a
	   circle and let everything outside go, so it settles into the medallion behind
	   it and the ring reads through where the saddle was.

	   The circle is off to the upper right of the sprite, which is what keeps the
	   bite on the LOWER LEFT: the head and mane sit well inside it and are untouched
	   -- they are cropped by the card's own edge, not by this -- while the bottom-left
	   corner falls outside and dissolves.

	   The prefab names no such mask (Pic_MountMask is ui_start/white, a plain
	   rectangle), so unlike the placement this shape is matched against the game
	   rather than read from it -- every figure is a variable for that reason. It is
	   a true ellipse, taller than it is wide, which is what lets it clear the chest
	   without reaching the muzzle. Both properties carry the same numbers: tuning
	   only the unprefixed one leaves older WebKit drawing a different animal. */
	-webkit-mask-image:radial-gradient(ellipse var(--mount-fade-rx,65%) var(--mount-fade-ry,78%)
		at var(--mount-fade-x,63%) var(--mount-fade-y,31%),
		#000 var(--mount-fade-in,102%), transparent var(--mount-fade-out,109%)),
		linear-gradient(to top, transparent 0, #000 var(--mount-fade-bottom,18%));
	-webkit-mask-composite:source-in;
	        mask-image:radial-gradient(ellipse var(--mount-fade-rx,65%) var(--mount-fade-ry,78%)
		at var(--mount-fade-x,63%) var(--mount-fade-y,31%),
		#000 var(--mount-fade-in,102%), transparent var(--mount-fade-out,109%)),
		linear-gradient(to top, transparent 0, #000 var(--mount-fade-bottom,18%));
	mask-composite:intersect}
/* No container queries: the tile keeps its ratio, so a share of the height is a known
   share of the width (94/195) and the same three numbers are written against it. */
@supports not (height:1cqh){
	.inv-hr__art.is-card > .inv-hr__mount{left:3.46%;bottom:-0.56%;height:auto;width:68.6%}
}
/* The attributes ride along the tile's foot, where the name was, over a wash dark enough
   to read against any of the banner art. */
.inv-hr__stats{position:absolute;left:0;right:0;bottom:0;z-index:3;
	display:flex;flex-wrap:wrap;justify-content:center;gap:2px 10px;padding:3px 6px;
	background:linear-gradient(180deg,transparent,rgba(8,13,26,.82) 55%)}
.inv-hr__stat{display:inline-flex;align-items:center;gap:3px;color:#e5e7eb;font-size:.7rem;
	font-variant-numeric:tabular-nums;text-shadow:0 1px 3px rgba(0,0,0,.9)}
.inv-hr__stat img{width:14px;height:14px;object-fit:contain;flex:0 0 14px}
.inv-hr__stat b{font-family:Rajdhani,sans-serif;font-weight:700;color:#fff}

/* Traits sit on a dark band under the row, icons only — the game names them nowhere
   either, and at this size a name would be the whole chip. */
.inv-hr__traits{width:152px;display:flex;flex-wrap:initial;gap:2px;max-height:32px;margin-top:1px;padding:2px 2px;
	border-radius:0;background:rgba(0,0,0,.12)}
/* ⚠ THE CHIPS IN THIS BAND ARE invictus_trait_chip_html's, NOT THIS FILE'S. The
   .inv-hr__trait rules that stood here -- a square ico with the artwork hue-rotated
   per rarity -- matched no markup any more and described a model we have since left:
   the game builds a trait from a rarity DISC with a bare mark on it, and the mark is
   never recoloured. They are gone so they cannot be copied back out of here. */
.inv-hr__traits .inv-trait-chip{gap:0;transition:transform .15s}
.inv-hr__traits .inv-trait-chip__val{font-size:.53rem}
.inv-hr__traits .inv-trait-chip:hover{transform:scale(1.1)}
.inv-hr__traits .inv-trait-chip__ico{width:26px;height:26px;flex:0 0 26px}

/* The adornment rides on the mount's portrait, where the game puts it. */
.inv-hr__art{position:relative}
/* The medallion and its level both sit INSIDE the tile — the badge used to hang off the
   disc's lower edge and land on the artwork, where the number could not be read. The disc
   is lifted enough to leave the name row alone. */
/* Higher and smaller than it was: at the old size its level badge reached the attribute
   row along the tile's foot. The disc centres its art by flexbox rather than by margins —
   the maxed variant insets the image, and a margin-based inset is only ever centred
   horizontally. */
/* ⚠ THE GAME'S OWN MEASURE, not a small gold disc of our making.
   m_Pan_Born/m_PanGLMount/m_PanGLMountEquip/m_PanOrnament: 256 square at scale 0.3,
   anchored AND pivoted to the tile's top-right corner at (7.5, 7.5) -- so 76.8 units
   on a 250x120 tile, 64% of its height, overhanging the corner by 7.5 units each way
   (6.25% of the height, 3% of the width). Empty it wears pic_mount_quality3_blank
   with its swirl; filled, pic_mount_quality3_05. Same two files the band uses. */
.inv-hr__adorn{position:absolute;right:-3%;top:-6.25%;z-index:3;
	height:64%;aspect-ratio:1;width:auto;padding:0;border:0;
	display:flex;align-items:center;justify-content:center;overflow:visible;
	border-radius:0;box-shadow:none;
	background:url(../images/game-icons/mount-orn-socket.webp) center/contain no-repeat}
.inv-hr__adorn:not(.is-empty){
	background-image:url(../images/game-icons/mount-orn-socket-on.webp)}
/* m_PicOrnament is 150 of the socket's 256. */
.inv-hr__adorn.is-empty::after{content:'';width:40%;height:40%;
	background:url(../images/game-icons/mount-orn-plus.webp) center/contain no-repeat}
/* The artwork is a square with its subject drawn small and low, so fitting the whole
   square into the disc leaves it sitting in a corner. The lineup card lets the image run
   past its disc and clips it to the circle; same here — the middle of the artwork fills
   the disc, which is what reads as centred. */
/* Dead centre of the socket, and nothing else gets a say: the global `img{max-width:100%}`
   would otherwise squash the oversize crop back to the socket's width and turn a centred
   circle into an off-centre oval. */
.inv-hr__adorn img{width:58.6%;height:58.6%;max-width:none;position:static;
	object-fit:contain;object-position:center center;display:block;flex:0 0 auto;border-radius:0}
/* The game's own ornament is already cropped to its subject and centred on a
   transparent square, so it needs none of that: fit it whole, or the overscale above
   would cut its edges off. */
.inv-hr__adorn img.inv-hr__adorn-art,
.inv-hr__adorn.is-max img.inv-hr__adorn-art{width:58.6%;height:58.6%;object-fit:contain;border-radius:0}
.inv-hr__adorn-lv{position:absolute;left:50%;top:calc(100% + 1px);transform:translateX(-50%);
	padding:0 4px;border-radius:5px;background:linear-gradient(180deg,#f0c060,#d4a034);
	border:1px solid #7a5234;
	font-family:Rajdhani,sans-serif;font-style:normal;font-weight:700;font-size:.56rem;
	color:#1a1206;line-height:1.55;white-space:nowrap}

/* Maxed, in the lineup card's own colours — a maxed adornment reads the same wherever it
   is drawn. */
/* ⚠ MAXED HAS ITS OWN PLATE IN THE GAME, and we had been painting an imitation of
   it. m_PicOrnamentBG carries two: pic_mount_quality3_05, the brown one, and
   pic_mount_quality3_04, iridescent purple-green-blue -- which is where the conic
   gradient this used to draw got its colours from. So it wears the real one, and
   the glow is only the halo around it. */
.inv-hr__adorn.is-max{filter:drop-shadow(0 0 6px rgba(169,139,230,.85))}
.inv-hr__adorn.is-max:not(.is-empty){
	background-image:url(../images/game-icons/mount-orn-socket-max.webp)}
.inv-hr__adorn.is-max img{width:58.6%;height:58.6%;max-width:none;border-radius:0}
.inv-hr__adorn-lv.is-max{background:linear-gradient(180deg,#e7d9ff,#a98be6);
	border-color:#e7d9ff;color:#1a1030}

/* ── Roster beside the hero ───────────────────────────────────────────────────
   The game puts the list of heroes next to the one being worked on, and so does
   this: picking a card fills the right-hand side in place. The roster can be
   narrowed to a strip of portraits when the hero needs the room.

   Below 1000px there is not room for two columns, so the pair goes back to taking
   turns — the list, then the hero — which is what data-mobile-hidden drives. */
.inv-armoury__shell{display:grid;gap:18px}
.inv-armoury__shell > *{min-width:0}
.inv-armoury__roster{position:relative}
.inv-armoury__collapse{display:none}

/* ⚠ NONE OF THIS IS DESKTOP FURNITURE, AND ALL OF IT USED TO BE. The funnel
   button, the sheet it opens and the rule that keeps the roster's round icon OFF
   were written inside @media (min-width:1000px), so below that width:

     - the button fell back to a bare unstyled <button>, so there was nothing to
       press and the search, the sort and all three filter groups stood open inline
       above the heroes -- a screenful of controls before the first card;
     - .inv-armoury__icon and .inv-armoury__iconlv never got their display:none, so
       the battle-report icon drew ON TOP of the portrait and the card printed a
       second level-and-stars row under its own. Two cards at once, exactly as
       reported. The comment at the .is-narrow block already warned about that
       second row -- it was only ever fixed for the desktop.

   They are defaults now; only the narrow rail's own placement stays in the query. */
.inv-armoury__icon{display:none}
.inv-armoury__iconlv{display:none}
.inv-armoury__filterbtn{display:flex;align-items:center;justify-content:center;
	gap:8px;width:108px;height:24px;min-height:24px;line-height:1;
	margin:0 0 10px;padding:0;border:0;cursor:pointer;
	background:url(../images/game-icons/filter-plate.webp) center/100% 100% no-repeat}
.inv-armoury__filterbtn-funnel,.inv-armoury__filterbtn-chev{display:block;
	background-position:center;background-repeat:no-repeat;background-size:contain}
.inv-armoury__filterbtn-funnel{width:13px;height:14px;
	background-image:url(../images/game-icons/filter-funnel.webp)}
.inv-armoury__filterbtn-chev{width:13px;height:9px;
	background-image:url(../images/game-icons/chevron-down.webp)}
.inv-armoury__filterbtn[aria-expanded="true"] .inv-armoury__filterbtn-chev{
	background-image:url(../images/game-icons/chevron-up.webp)}
/* The roster filter sheet wears the same panel as the ring screen's filter
   (.inv-rings__filter-panel): square, slate, a thin gold edge -- not a rounded amber card. */
.inv-armoury__tools{display:none;position:absolute;left:0;top:40px;z-index:7;
	width:420px;max-width:calc(100vw - 32px);padding:12px 13px 13px;border-radius:0;
	background:#1b2436;border:1px solid rgba(242,200,121,.3);
	box-shadow:0 10px 30px rgba(0,0,0,.5)}
.inv-armoury__tools,.inv-armoury__tools *{border-radius:0 !important}
.inv-armoury__tools.is-open{display:block}
.inv-armoury__tools .inv-armoury__search{width:100%}

@media (min-width:1000px){
	.inv-armoury__shell{grid-template-columns:minmax(0,1fr) minmax(0,470px);align-items:start}
	/* Collapsing shrinks the ROSTER and NOTHING ELSE. The grid is left alone, so the
	   hero keeps its column and does not move: it was sliding left and widening, and
	   the thing a player is reading should not jump because the list beside it changed
	   shape. The rail hugs the left of its own column instead -- see the cap below. */
	/* Smaller in the column than they were across the whole page — the roster is a list to
	   pick from, and six small portraits read faster than two large ones. */
	.inv-armoury__cards{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
	/* The roster scrolls inside itself and the PAGE does not grow with it. Eighty-odd
	   heroes made the page several screens tall while the sheet beside it ended after
	   one, so picking the next hero meant scrolling back up past nothing. The rail is
	   capped to the viewport and sticks there; only the card list inside it moves, and
	   the search, the filters and the collapse arrow stay where the hand left them --
	   which is what makes the cap worth having. The rule does not care how big the
	   cards are, so collapsing the rail changes their size and nothing else. */
	/* With the list and the hero side by side there is nowhere to go "back" to and the
	   name is already the sheet's own heading, so the crumb row stands down -- it is
	   what a narrow screen needs, where the two take turns, not this one. The status
	   line stays: it is where a save reports itself. */
	.inv-armoury__detail .inv-armoury__back,
	.inv-armoury__detail .inv-armoury__editname{display:none}
	.inv-armoury__editbar{margin-bottom:0;min-height:0}
	/* The filter button, and what it opens.
	   With the cards full size the search and the chips are simply on show -- there is
	   room, and a control you can see beats one you have to find. Narrow, there is no
	   room for either, so they fold behind the game's own filter button and open as a
	   sheet over the rail rather than pushing the list down. */
	/* The same control whether the cards are big or small -- only where it sits changes.
	   Leaving the search and the chips inline at full size meant two different ways to
	   filter the same list, and the tab then floated over them. */
	.is-narrow .inv-armoury__filterbtn{margin-left:calc((var(--inv-rail-w) - 108px) / 2)}
	.inv-armoury__roster{position:sticky;top:calc(var(--inv-header-h, 64px) + 12px);
		display:flex;flex-direction:column;min-height:0;
		max-height:calc(100vh - var(--inv-header-h, 64px) - 24px)}
	/* min-height:0 on both, or a grid item refuses to shrink below its content and the
	   list grows the rail instead of scrolling in it. */
	/* grid-auto-rows:max-content is not a nicety. Capping the rail gives the grid a
	   definite height, and auto rows then divide it between them -- with eighty-odd
	   heroes every row came out seven pixels tall and the cards were crushed into lines,
	   art and all. Sizing rows to their content and packing them at the start is what
	   makes the box taller than itself, which is what there is to scroll. */
	.inv-armoury__cards{flex:1 1 auto;min-height:0;overflow-y:auto;
		grid-auto-rows:max-content;align-content:start;
		padding-right:6px;scrollbar-width:thin;
		scrollbar-color:rgba(245,158,11,.45) rgba(255,255,255,.05)}
	/* The list fades out at its bottom edge so it looks like it continues past it rather
	   than being cut at it -- which is what the game does, and what tells a player there
	   is more without spending a row on saying so. The mask is on the SCROLLER, so the
	   fade stays at the bottom edge while the content moves under it; on the content it
	   would scroll away. No scrollbar either: the fade is the affordance. Both sizes --
	   the big cards scroll the same list and had a bar down their edge. */
	/* ⚠ THE TOP GETS ROOM, NOT A FADE. The first row sat flush against the box's top
	   edge and looked sliced. I answered that by fading the top of the mask to match
	   the bottom -- which veiled the top row instead of freeing it, and a gradient
	   over the cards is worse than the cut it was hiding. Padding is all it wanted.
	   The bottom fade stays: that one says the list continues past the edge, which
	   is true, and nothing is cut there because the content scrolls under it. */
	.inv-armoury__cards{padding-right:0;padding-top:10px;scrollbar-width:none;
		-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 54px),transparent);
		mask-image:linear-gradient(to bottom,#000 calc(100% - 54px),transparent)}
	.inv-armoury__cards::-webkit-scrollbar{width:0;height:0}
	/* The strip the portraits sit on. SQUARE -- no rounding, no chamfer.
	   The game's own is a dark wash at 12%, which works over its bright sky and vanishes
	   over this page. Ours went the other way as a PALE wash, and that was right until a
	   video started playing behind it: then the picture came through the gaps in the
	   round portraits and bleached them, and the wash's own fade left the bottom half of
	   the rail with nothing on it. Dark and nearly opaque now, full rail width, full
	   height, and the only fade is the one at the very bottom that says the list
	   continues past the edge. */
	.inv-armoury__shell.is-narrow .inv-armoury__roster::before{content:"";position:absolute;
		left:calc((var(--inv-rail-w) - 108px) / 2);top:30px;bottom:0;width:108px;z-index:0;
		pointer-events:none;border-radius:0;
		background:rgba(9,14,26,.2);
		-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 54px),transparent);
		mask-image:linear-gradient(to bottom,#000 calc(100% - 54px),transparent)}
	.inv-armoury__shell.is-narrow .inv-armoury__cards{position:relative;z-index:1}
	/* Full strength. The portraits are what the rail is FOR; nothing behind them gets to
	   wash them out. */
	.is-narrow .inv-armoury__art.has-icon .inv-armoury__icon{opacity:1}
	.is-narrow .inv-armoury__card{opacity:1}
	.inv-armoury__cards::-webkit-scrollbar{width:8px}
	.inv-armoury__cards::-webkit-scrollbar-track{background:rgba(255,255,255,.05);border-radius:999px}
	.inv-armoury__cards::-webkit-scrollbar-thumb{background:rgba(245,158,11,.45);border-radius:999px}
	.inv-armoury__cards::-webkit-scrollbar-thumb:hover{background:rgba(245,158,11,.7)}
	/* Collapsed, the roster is the game's rail: a column of round portraits with the level
	   and the star row under each. No card frame, no name — at this size the portrait is
	   the whole identification, and the same treatment the battle reports already use. */
	/* One width for the whole rail. The list, the strip behind it and the filter button
	   above it all measure from this -- centring each in the ROSTER instead put the
	   button over empty space beside the portraits. */
	.inv-armoury__shell.is-narrow{--inv-rail-w:170px}
	.inv-armoury__shell.is-narrow .inv-armoury__cards{grid-template-columns:1fr;gap:12px;
		max-width:var(--inv-rail-w)}
	.is-narrow .inv-armoury__card{background:none;border:0;border-radius:0;box-shadow:none}
	.is-narrow .inv-armoury__card:hover{transform:none;box-shadow:none}
	.is-narrow .inv-armoury__card.is-current{box-shadow:none}
	.is-narrow .inv-armoury__art{aspect-ratio:1;border-radius:50%;width:66px;margin:0 auto;
		box-shadow:0 0 0 2px rgba(255,255,255,.14)}
	/* The round icon wins in the rail -- but it is NOT a circle. The generator draws
	   150x172: a 150px disc with a 22px bar hanging under it carrying the level and
	   the five stars. Squeezed into the rail's 66px circle it contained down to 58px
	   wide and the radius cut that bar off, so the icon sat small inside a disc and
	   the card printed a SECOND level and star row beneath it. The box therefore
	   takes the icon's own ratio, clips nothing, and the foot stands down. */
	.inv-armoury__icon{width:100%;height:100%;object-fit:contain}
	.is-narrow .inv-armoury__art.has-icon{background:none;box-shadow:none;
		border-radius:0;overflow:visible;aspect-ratio:150/172;width:72px}
	.is-narrow .inv-armoury__art.has-icon .inv-armoury__portrait{display:none}
	.is-narrow .inv-armoury__art.has-icon .inv-armoury__icon{display:block}
	.is-narrow .inv-armoury__card.is-current .inv-armoury__art{box-shadow:0 0 0 2px #f59e0b,0 0 14px rgba(245,158,11,.45)}
	/* The current hero is ringed on the DISC, not on the box. A box-shadow round the box
	   traces a rectangle, and a drop-shadow on the icon follows its whole silhouette --
	   the disc AND the wide level bar under it -- which haloes a rounded rectangle and
	   makes the portrait look boxed in. The disc is the top square of the icon (150 of
	   its 150x172), so the ring is that square, rounded. */
	.is-narrow .inv-armoury__card.is-current .inv-armoury__art.has-icon{box-shadow:none}
	.is-narrow .inv-armoury__art.has-icon{position:relative}
	.is-narrow .inv-armoury__card.is-current .inv-armoury__art.has-icon::after{content:"";
		position:absolute;left:0;top:0;width:100%;aspect-ratio:1;border-radius:50%;
		box-shadow:0 0 0 2px #f59e0b,0 0 14px rgba(245,158,11,.45);pointer-events:none;z-index:0}
	/* BEHIND the icon. The level bar and its stars are painted INTO the sprite and they
	   overlap the disc's lower edge, so a ring sitting on that edge crosses them. Under
	   the icon it still shows all the way round the disc and the stars stay clean. */
	.is-narrow .inv-armoury__art.has-icon .inv-armoury__icon{position:relative;z-index:1}
	/* ⚠ THE SPARKLES FOLLOW THE DISC. invAwkStars scatters along four straight edges,
	   which is right for a card and wrong here: the corners fall outside the round
	   portrait and the points float off the picture. The builder has a `round` mode,
	   but the host cannot know at render time which layout CSS will pick -- so the
	   clip happens here, where it is known.

	   ⚠ AND IT IS AN ELLIPSE, NOT A CIRCLE, because this box is not square: the rule
	   above gives it the icon's own 150/172 and turns overflow back on, so nothing
	   was clipping. An ellipse's two radii resolve against width and height
	   separately, so 50% and 43.6% are both 36px here and describe the disc exactly.
	   circle() would resolve one radius against the diagonal and miss. */
	.is-narrow .inv-armoury__art.has-icon .inv-awk-stars,
	.is-narrow .inv-armoury__art.has-icon .inv-awk-fx{
		clip-path:ellipse(50% 43.6% at 50% 43.6%)}
	/* The diamond's measured centre, the same two numbers the battle report row uses:
	   INVICTUS_HERO_ICON_LEVEL_POS in includes/invictus-hero-card.php. */
	.is-narrow .inv-armoury__art.has-icon .inv-armoury__iconlv{display:block;position:absolute;
		left:80.2%;top:65.5%;transform:translate(-50%,-50%);z-index:3;
		font-family:Rajdhani,Inter,sans-serif;font-weight:600;font-size:10px;line-height:1;
		color:#fff;letter-spacing:.01em;text-shadow:0 1px 2px rgba(0,0,0,.85)}
	/* The ring badge would sit on that diamond, so on an icon it goes to the other
	   side of the disc. */
	.is-narrow .inv-armoury__art.has-icon .inv-armoury__ringwrap{bottom:22%;left:0;right:auto}
	.is-narrow .inv-armoury__portrait{object-position:center 18%}
	/* A locked hero, the way the game draws one: the padlock on the portrait's lower
	   right, and the price on a bar UNDER it where the game puts its progress count --
	   not a chip floating over the face. The bar is the game's own
	   ui_n_bar/bar_n_hero_001a, the same one the unit pill uses.

	   The padlock's disc takes its gold from the game's own rarity ring (ring_gold.png,
	   mid-tone rgb(182,140,77)) rather than a colour of mine; the game has no
	   lock-on-a-disc sprite, it lays the white padlock over the portrait's own gold. */
	.is-narrow .inv-armoury__card-padlock{position:absolute;right:2%;bottom:16%;z-index:4;
		width:30%;aspect-ratio:1;border-radius:50%;
		background:radial-gradient(circle at 50% 38%,#c9a05a,#8a6730);
		box-shadow:0 0 0 1px rgba(20,12,4,.55),0 1px 4px rgba(0,0,0,.5)}
	.is-narrow .inv-armoury__card-padlock::after{content:"";position:absolute;
		left:50%;top:50%;transform:translate(-50%,-50%);width:44%;height:60%;
		background:url(../images/game-icons/card-lock.webp) center/contain no-repeat}
	/* The bar hugs the price rather than spanning three quarters of the row -- at a fixed
	   share of the card it ran wider than the portrait above it and out past the card's
	   own frame, which is not where the game's count sits. */
	.is-narrow .inv-armoury__card-lock{position:static;display:flex;align-items:center;
		justify-content:center;gap:4px;width:max-content;max-width:94%;
		margin:3px auto 0;padding:2px 14px;
		transform:none;border:0;border-radius:0;background:none;color:#e8edf8;
		font-size:.72rem;line-height:1.5;
		border-image:url(../images/game-icons/unit-pill.webp) 0 30 fill / 0 13px stretch}
	.is-narrow .inv-armoury__card.is-locked .inv-armoury__art{overflow:visible}
	/* The collapsed rail is a round portrait with no rail of its own, so the ring goes
	   back to a corner badge there -- and the badge is the SOCKET in miniature: the
	   quality disc behind and the ring on it, dressed exactly as the socket's own skill
	   badge is -- same hairline rim, same soft shadow, nothing more. `border:0` matters:
	   the base rule gives this badge a 2px gold border, and THAT was the heavy ring. It
	   sits over the
	   icon, not under it; under the icon it was a gold crescent peeking out. */
	.is-narrow .inv-armoury__ringwrap{left:0;right:auto;top:auto;bottom:22%;
		width:26px;aspect-ratio:54.4/61.6;z-index:3}
	/* No room for it on the round icon, which carries its own level. */
	.is-narrow .inv-armoury__ringlv{display:none}
	/* The bar and the chips are not gone when the rail is narrow -- they are behind the
	   filter button, and the sheet rule above both hides and opens them. Listing them
	   here as well put the hide AFTER the open at equal specificity, so the sheet never
	   showed. Only the per-card name and actions have nowhere to go. */
	.inv-armoury__shell.is-narrow .inv-armoury__cardacts{display:none}

	/* Neither column is pinned and neither has a scroll box of its own. A box around
	   eighty cards has to cut one in half at its edge; and a sticky column taller than the
	   window traps its own foot — the hero is taller than the window, so pinning it put
	   the save button out of reach. The page scrolls, both columns move, everything can be
	   reached and no card is sliced. */
	.inv-armoury__shell{align-items:start}

	/* The game puts this on a tab half-way down the right edge of the rail, with a
	   four-square glyph on it: it belongs to the list, so it rides the list's own edge
	   rather than floating above it in a corner. Sprites are the game's own --
	   ui_n_menuhero/bg_n_herolist_shouqi_01 carries the tab, and the glyph is
	   ui_g_icon/icon_g_zhankai ("expand"). */
	/* The tab is part of the rail, not a slab parked beside it. It was cut from the
	   game's own sprite -- but that sprite is the OPAQUE dark version of the strip, and
	   the strip here is a light wash (the dark one is invisible over this page), so the
	   two read as different materials sitting next to each other. Same wash, one step
	   stronger, and no left edge: it continues the strip rather than abutting it. */
	/* z-index above the hero sheet: hung off the column's outside edge it ended up
	   UNDER the sheet, which is the one thing a control to close the list must not be. */
	.inv-armoury__collapse{position:absolute;top:50%;transform:translateY(-50%);z-index:7;
		display:flex;align-items:center;justify-content:center;
		left:auto;right:0;
		width:27px;height:60px;padding:0;margin:1px;border:0;cursor:pointer;
		font-size:0;line-height:0;transition:background .15s;
		/* The game's own shape, measured off ui_n_menuhero/bg_n_herolist_shouqi_02: the
		   right edge is chamfered, reaching full width at ~18% and leaving it at 85%.
		   Not a rounded rectangle. The sprite is 42 by 95; the box here is smaller
		   because it was sized against the page, and the chamfer is what carries the
		   shape, not the pixel count.

		   The FILL is ours, and deliberately: the game's tab is a dark wash
		   (rgb 31,56,72 at ~30%) that reads as a pale slab only because a bright sky is
		   behind it. Over this page the same wash disappears, so it goes the other way --
		   the same weight the strip uses, which is what makes the two one object. */
		clip-path:polygon(0 0, 100% 18%, 100% 85%, 0 100%);
		/* The same wash as the strip it grows out of, to the value. Two shades, however
		   close, read as two objects. */
		background:rgba(9,14,26,.2)}
	.inv-armoury__collapse:hover{background:rgba(245,158,11,.22)}
	/* With the cards open the game shows the crossed swords and NOTHING else -- no tab,
	   no plate, no clip. The tab belongs to the rail; out here it was a slab with a faint
	   mark on it. Just the glyph, bigger, at full strength. */
	/* In the gap BESIDE the grid, not on top of the last column -- which is where the
	   game puts it and why the shell's gap opens up with the cards. */
	.inv-armoury__shell:not(.is-narrow){column-gap:52px}
	.inv-armoury__shell:not(.is-narrow) .inv-armoury__collapse{background:none;clip-path:none;
		width:44px;height:44px;right:-48px}
	.inv-armoury__shell:not(.is-narrow) .inv-armoury__collapse:hover{background:none}
	.inv-armoury__shell:not(.is-narrow) .inv-armoury__collapse span{width:30px;height:30px;opacity:1}
	.inv-armoury__shell:not(.is-narrow) .inv-armoury__collapse:hover span{filter:brightness(1.25)}
	.is-narrow .inv-armoury__collapse{left:calc((var(--inv-rail-w, 170px) - 104px) / 2 + 106px - 1px);
		right:auto}
	/* The glyph says what the press DOES. Small cards: the four squares, "open these out".
	   Big cards: the game's own crossed swords, "put them away" (ui_n_button/btn_n_close_01). */
	.inv-armoury__collapse span{display:block;width:17px;height:17px;
		background:url(../images/game-icons/icon-collapse.webp) center/contain no-repeat;
		transform:none;opacity:.85;transition:opacity .15s}
	.is-narrow .inv-armoury__collapse span{width:28px;height:28px;
		background-image:url(../images/game-icons/icon-expand.webp)}
	.inv-armoury__collapse:hover span{opacity:1}
	.is-narrow .inv-armoury__collapse span{transform:none}

	/* The hero column holds the panel; the editor form is hidden inside it as before. */
	.inv-armoury__cols{max-width:none}
}

@media (max-width:999px){
	.inv-armoury__panel[data-mobile-hidden]{display:none}
}

/* The card the right-hand side is showing. */
/* ⚠ THE SELECTION HUGS THE ART, NOT THE CARD BOX. It used to sit on
   .inv-armoury__card, which was the art PLUS the name line under it, so the
   highlight drew a tall box with the card floating in its top half. The art box
   is the card's own 238x360 now and there is no name line, so the outline lands
   exactly on the card's edge. */


/* At roster scale the card's furniture has to shrink with it, or the name and the level
   crowd the portrait out. */
@media (min-width:1000px){
	.inv-armoury__cards .inv-armoury__cardact{padding:4px 8px;font-size:.68rem}
	.inv-armoury__cards .inv-armoury__ringwrap{width:24px}
	.inv-armoury__cards .inv-armoury__fav{width:20px;height:20px;font-size:.7rem}
}

/* An unearned petal is drawn almost the colour of the panel it sits on, which on this
   darker ground made an un-ranked hero look like it had no star row at all. Lifted enough
   to read as empty rather than absent — scoped here, since the lineup card sits on its
   own lighter ground where the original value is right. */
.inv-hap .inv-lp-petal,
.inv-armoury__cards .inv-lp-petal{background:#3c4a63}
.inv-hap .inv-lp-petal.on,
.inv-armoury__cards .inv-lp-petal.on{background:linear-gradient(160deg,#fde68a,#f59e0b 58%,#d97706)}

/* The empty mount slot carries the game's banner, like talents. Its art is shorter and
   wider in proportion than the talents one, so it is anchored centre rather than left. */
/* The word sits at the left of this art, so a centre crop eats it the way it ate the
   talents lettering. */
/* ── the empty mount slot ─────────────────────────────────────────────────────
   OUR OWN BANNER, kept. The game's blank is pic_mount_quality11_blank, the unlit
   twin of the quality strip -- no word on it and no animal, so putting it here left
   a bare plate where this site has always had MOUNT lettered beside a horse's head.
   What WAS wrong was the box: the slot took its own height and came out shorter than
   the talents button next to it, so the row read as two different heights. It takes
   the same 250x120 the filled card does, and the picture fills it. */
.inv-hap__mountbtn{aspect-ratio:var(--mount-card-ar,250/120);background:none}
.inv-hap__mountbtn img{width:100%;height:100%;object-fit:fill;object-position:center}

/* The awakening slot: the game's diamond, with the progress read off it rather than from
   a separate bar — on an awakened hero the slot IS the statement, and a track above the
   gear was saying the same thing twice. */
/* EVERYTHING ON THIS BUTTON IS MEASURED AGAINST THE PLATE, as it is in the game:
   m_PicAwakeningBg is 168 square and every other part is a fraction of it --
   m_PicAwakening 112x92, m_ProgAwakening's Fill_Area 120x84 offset 3,-6. Sizing them
   against the BUTTON instead let them outgrow the plate, because the plate is capped
   at 104px while the button's column is wider; that is how the gauge ended up a ring
   across the helmet's face rather than a cradle under its chin. */
/* ⚠ A BOX OF ITS OWN, not a zero-height anchor. The badge used to hang off height:0
   and be centred by align-self, so the plate overflowed the row in both directions
   and whatever the panel painted above it cut its top point off. In the game it is a
   button like its neighbours -- m_BtnAwakening is 204.5x120, the same height as the
   mount card and the talents banner -- so it takes that shape and the plate sits
   inside it. */
.inv-hap__awk{position:relative;z-index:4;display:block;align-self:start;
	aspect-ratio:var(--awk-btn-ar,204.5/120);
	container-type:inline-size;--awk-plate:min(var(--awk-plate-w,82cqw),116px);
	padding:0;border:0;background:none;cursor:pointer;transition:transform .15s}
.inv-hap__awk:hover{transform:scale(1.06)}
/* The plate is 168 on a button 120 tall, so it stands TALLER than the button and its
   points reach past the top and bottom edges -- which is how the game draws it, and
   why nothing here may clip. */
.inv-hap__awk img{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
	width:auto;height:calc(var(--awk-plate) * 1);max-width:none;aspect-ratio:1;
	object-fit:contain;display:block}
/* ── the awakening slot ───────────────────────────────────────────────────────
   m_BtnAwakening, 204.5 x 120 in the game: the gold diamond pic_skill18 with the
   hero's awakening icon over it and a gauge beneath -- pic_skill20 the track,
   pic_skill19 the fill, clipped to the share that is done.

   NOT STARTED IS A STATE; CANNOT AWAKEN IS AN ABSENCE. The slot is drawn for the
   heroes the awakening system covers and for no others -- a greyed diamond on a hero
   who can never awaken says something untrue about them. For one who can and has not
   begun, the game's own word for it is a padlock, the same as on the talents button
   beside it (Pic_Suo / icon_n_lock01). */
/* The emblem on the plate, centred on it.
   ⚠ IT MUST OUT-RANK `.inv-hap__awk img`, which is a class and an element and so beat
   a lone class: the emblem was taking the plate's width, aspect and placement and
   landing off the button entirely, far too big. Written the same way the plate is --
   transform, not the translate property -- so the two share one mechanism and cannot
   drift apart.
   m_PicAwakening is 112x92 inside a 204.5x120 button, a little over half its width;
   the plate under it is drawn at 86%, so the emblem is a little over half of that. */
.inv-hap__awk img.inv-hap__awk-emblem{position:absolute;left:50%;top:50%;
	transform:translate(-50%,-50%);z-index:2;pointer-events:none;
	/* 92 of the plate's 168 -- the node's own share of it. */
	height:calc(var(--awk-plate) * var(--awk-emb-h,.548));width:auto;max-width:none;
	aspect-ratio:auto;object-fit:contain;
	/* NO FILTER AND NO CORRECTION: this is the game's own sprite, drawn as it is
	   drawn. m_PicAwakening names ui_g_skillawaken/pic_skill15 and always did -- the
	   reason it looked like a hero's portrait is that OUR COPY OF THAT SPRITE WAS
	   WRONG. Pulled from the .smash container directly it is 78x64, the helmet with
	   its fanned crown, barred visor, gorget and crossed swords, and 78/64 is the
	   112/92 the node asks for. */
	}
/* ⚠ NO GREYED-OUT, NO PADLOCK. m_BtnAwakening in Menu_HeroListN_UGUI carries the
   plate, the emblem, an activate effect and the gauge -- and no lock node. The two
   controls either side of it do have one (m_PanGLMountLock on the mount,
   m_PanSuo on the talents button, both icon_n_lock01), which is what this slot was
   wrongly copying. A hero who has not started reads 0% on a full-colour badge. */
/* THE GAUGE, at the prefab's own measure:
     m_ProgAwakening  153x153  pos 3,-6   inside the 204.5x120 button
       Fill_Area      120x84   pic_skill20   the track
         Fill         stretch  pic_skill19   the fill
   So it is 120 wide and 84 tall on a 204.5-wide button -- 58.7% of its width -- and
   its centre sits 3 right and 6 down from the button's. Those are the same units,
   so cqw carries all three.
   ⚠ BOTH SPRITES ARE 83x58. The old extraction had them at 72x47 and 94x58, two
   different shapes for one pair, which is why the rings never lined up with each
   other or with the plate (see reference_smash-extraction-is-incomplete).
   The track is drawn whole and the fill clipped from the left to --awk-pct of its
   width, which is how a Filled image reads without a second sprite. */
.inv-hap__awk-arc{position:absolute;
	left:calc(50% + var(--awk-plate) * .0179);top:calc(50% + var(--awk-plate) * .0357);
	translate:-50% -50%;width:calc(var(--awk-plate) * .714);aspect-ratio:120/84;
	z-index:2;pointer-events:none;
	background:url(../images/game-icons/awk-arc-track.webp) center/contain no-repeat}
.inv-hap__awk-arc::after{content:'';position:absolute;inset:0;
	background:url(../images/game-icons/awk-arc-fill.webp) center/contain no-repeat;
	clip-path:inset(0 calc(100% - var(--awk-pct,0) * 1%) 0 0)}
/* ── the awakening figure ─────────────────────────────────────────────────────
   The game sets it in a dark hexagonal pill in the gauge's cradle -- the same
   flat-topped shape with angled ends that the gear stars stand on, so it wears that
   sprite rather than a second copy of it.
   NINE-SLICED ACROSS ONLY: the sprite is 36 tall, so slicing every side would leave
   the middle zero pixels high and the pill would come out hollow (that is exactly
   what happened to the star bar). The caps are at the ends; only the middle gives.
   It hangs off the GAUGE'S centre, not a pixel offset from the button, so the two
   stay together at any size. */
.inv-hap__awk-pct{position:absolute;left:calc(50% + var(--awk-plate) * .0179);
	/* ⚠ CLEAR OF THE EMBLEM. The mark reaches 0.27 of the plate below its centre, so
	   at 0.20 the pill sat on the helmet's gorget. 0.32 drops it into the gauge's
	   cradle, under the emblem and inside the arc. */
	top:calc(50% + var(--awk-plate) * (.0357 + var(--awk-pct-y,.32)));
	/* ABOVE EVERYTHING ON THE BADGE. The plate, the emblem and the gauge all paint
	   under it -- the figure is the one thing that must never be crossed by the arc
	   it sits in. */
	transform:translate(-50%,-50%);z-index:9;
	min-width:calc(var(--awk-plate) * var(--awk-pct-w,.30));
	padding:var(--awk-pct-pad,2px 8px);border:0;border-radius:0;background:none;
	border-image:url(../images/game-icons/gear-star-strip.webp)
		0 var(--awk-pct-slice,18) fill / 0 var(--awk-pct-cap,12px) stretch;
	font-family:Rajdhani,sans-serif;font-style:normal;font-weight:700;
	font-size:calc(var(--awk-plate) * var(--awk-pct-size,.12));
	letter-spacing:.02em;text-align:center;
	color:var(--awk-pct-color,#f6c863);text-shadow:0 1px 2px rgba(0,0,0,.85);
	line-height:1.25;white-space:nowrap}


/* The roster could not load. Says so, and offers the one thing worth offering. */
.inv-armoury__retry{display:block;margin:8px auto 0;padding:7px 16px;border-radius:8px;
	cursor:pointer;border:1px solid rgba(245,158,11,.45);background:transparent;color:#fbbf24;
	font-family:Rajdhani,sans-serif;font-weight:700;font-size:.8rem;text-transform:uppercase;
	letter-spacing:.04em}
.inv-armoury__retry:hover{background:rgba(245,158,11,.12)}

/* A group the editor keeps hidden is still shown while it is open in this dialog: the
   player asked for it, and the reason it is hidden is explained beside it. This outranks
   the hidden attribute's own display:none, which is the point — the editor's picker
   re-applies that attribute on every re-sync and no JS can reliably out-race it. */
.inv-hap-modal__body > [data-section][hidden]{display:block !important}

/* The trait's name lives in the title and for anything reading the page, never on screen. */
.inv-hr__trait .screen-reader-text{position:absolute;width:1px;height:1px;margin:-1px;
	padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* The price rides on the save button, so it is the price of pressing it. */
.inv-armoury__save{display:inline-flex;align-items:center;justify-content:center;gap:9px}
.inv-armoury__save .inv-armoury__cost{display:inline-flex;align-items:center;gap:4px;
	padding:0;background:none;color:inherit;font-size:.95em;
	font-variant-numeric:tabular-nums;letter-spacing:0}
.inv-armoury__save .inv-armoury__cost img{width:15px;height:15px;object-fit:contain}

/* Reset empties the hero; it does not un-unlock it, so it is the plate beside, not a
   destructive red. The game's stone plate is the narrower of the pair -- 302 to the gold's
   412 -- and this one carries one short word, so it is given the narrower box too. The
   circling arrows are the game's own refresh glyph (ui_n_button/btn_n_refresh_05). */
.inv-armoury__clear{display:inline-flex;align-items:center;justify-content:center;gap:8px;
	padding:12px 24px}
.inv-armoury__clear img{width:18px;height:18px;object-fit:contain;flex:none}

/* Said at the buttons, because the status line up in the edit bar is off screen by the
   time a player has scrolled to them. Out of the row's flow: in it, the message appearing
   shoved Reset sideways, so pressing Reset moved the thing you just pressed. */
.inv-armoury__flash{position:absolute;left:0;top:calc(100% + 9px);z-index:2;
	margin:0;padding:8px 14px;border-radius:9px;
	background:rgba(34,197,94,.12);border:1px solid rgba(34,197,94,.35);
	color:#86efac;font-family:Rajdhani,sans-serif;font-weight:700;font-size:.86rem;
	letter-spacing:.02em}
.inv-armoury__flash[hidden]{display:none}

/* A hero that fights in two unit types says which set it is wearing. One type is not a
   choice, so the row only appears for the heroes that have one. */
.inv-arm-unit-pick{display:flex;align-items:center;gap:.5rem;margin:.1rem 0 .55rem}
.inv-arm-unit-pick[hidden]{display:none!important}
.inv-arm-unit-pick__cap{font-size:.62rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#6b7494}
.inv-arm-unit-pick__opts{display:flex;gap:.35rem}
.inv-arm-unit-opt{-webkit-appearance:none;appearance:none;padding:.22rem .6rem;border-radius:.4rem;
	border:1px solid rgba(255,255,255,.14);background:#111827;color:#9ca3af;cursor:pointer;
	font-family:Rajdhani,sans-serif;font-weight:700;font-size:.74rem;line-height:1.2;
	text-transform:uppercase;letter-spacing:.03em;touch-action:manipulation;
	transition:background .12s ease,border-color .12s ease,color .12s ease}
.inv-arm-unit-opt:hover{border-color:#f59e0b80;color:#e5e7eb}
.inv-arm-unit-opt.is-on{background:linear-gradient(135deg,#f59e0b,#b45309);border-color:transparent;color:#111827}


/* An empty adornment socket still draws -- as the game draws it: the stone plate
   pic_mount_quality3_blank with the gold cross btn_n_add_04 on it, which the rules
   up by .inv-hr__adorn already give it.
   ⚠ THIS BLOCK USED TO PAINT OVER THAT. It came later in the file and set a dark
   slab and a white ring on .is-empty, which covered the plate, and the markup's
   own "+" character sat beside the cross -- two pluses on a black square. The slab
   is gone and the character is hidden; the sprite is the whole of it now. */
button.inv-hr__adorn{cursor:pointer;touch-action:manipulation}
button.inv-hr__adorn:hover{filter:brightness(1.14)}
.inv-hr__adorn-plus{display:none}

/* The adornment is not solved inside the mount's dialog any more — it has its own. */
#inv-armoury-slot [data-section="mount"] .inv-adorn-block{display:none}

/* Opened from its own socket on the sheet, the block does not need a second socket
   inside the dialog — or a heading repeating the dialog's own title. */
#inv-armoury-slot .inv-adorn-block > .inv-adorn-slot,
#inv-armoury-slot .inv-adorn-block > .inv-label-sm{display:none}
#inv-armoury-slot .inv-adorn-panel{display:block!important;margin-top:0}

/* An empty gear slot wears the game's plate: the silhouette sits inside the tile the
   way a real piece does, just quieter, so a slot with nothing in it is legible as a
   slot and not as a tile whose artwork failed. */



/* ── The filter sheet ──────────────────────────────────────────────────────
   Laid out the way the game lays its own out: a gold section heading over a row of
   plain buttons three across, and a reset beside a Confirm that closes it. The buttons
   are deliberately flat and square-ish -- the pill chips read as tags, and a tag looks
   like something you have already applied rather than something you can press. */
.inv-armoury__fgroup{margin:0 0 12px}
.inv-armoury__flabel{display:block;margin:0 0 6px;font-family:Rajdhani,sans-serif;
	font-weight:700;font-size:.78rem;letter-spacing:.07em;text-transform:uppercase;color:#e8c877}
.inv-armoury__frow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.inv-armoury__fbtn{display:flex;align-items:center;justify-content:center;gap:6px;
	min-height:30px;padding:5px 8px;cursor:pointer;
	font:500 .78rem/1.1 Inter,system-ui,sans-serif;color:#dbe2f0;text-align:center;
	background:rgba(13,20,36,.72);border:1px solid rgba(255,255,255,.14);border-radius:4px}
.inv-armoury__fbtn:hover{border-color:rgba(245,158,11,.55);color:#fff}
.inv-armoury__fbtn.is-active,
.inv-armoury__fbtn[aria-pressed="true"]{border-color:#f59e0b;color:#ffdf9e;
	background:rgba(245,158,11,.16)}
.inv-armoury__fbtn .inv-chip-icon{width:16px;height:16px;object-fit:contain;flex:none}
.inv-armoury__factions{display:flex;align-items:center;justify-content:flex-end;gap:10px;
	margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.08)}
.inv-armoury__freset{width:32px;height:32px;flex:none;cursor:pointer;font-size:1rem;
	display:flex;align-items:center;justify-content:center;color:#cbd5e1;
	background:rgba(13,20,36,.72);border:1px solid rgba(255,255,255,.16);border-radius:4px}
.inv-armoury__freset:hover{color:#f59e0b;border-color:rgba(245,158,11,.6)}
.inv-armoury__fconfirm{min-width:110px;padding:8px 18px;cursor:pointer;border:0;border-radius:4px;
	font:700 .85rem Rajdhani,sans-serif;letter-spacing:.06em;text-transform:uppercase;
	color:#20160a;background:linear-gradient(180deg,#f7d98c,#d9a63f)}
.inv-armoury__fconfirm:hover{background:linear-gradient(180deg,#ffe9ab,#e8b84e)}

/* ── Advance: the rank track ──────────────────────────────────────────────────
   Five glass nodes zig-zagging across the dialog, joined by the game's own link, each
   holding the star its rank stands for. The ring is ui_g_herostar/icon_g_star_bg and the
   link icon_g_star_line; the star inside is the same base-plus-five-petals the header
   row already draws, because a petal is a POINT of the star and the game builds it the
   same way in both places.

   The track is rendered in the sheet and moved into the rank dialog when it opens. */
.inv-adv[hidden]{display:none}
.inv-adv{margin:0 0 18px}
/* Advance is a SCREEN, not a panel that opens below: the sheet stands down and the track
   takes its place in the same column, and the back arrow puts the sheet back.

   The track is DRAWN inside the sheet, because that is where the hero is known, but
   armoury.js lifts it OUT when the screen opens. So the sheet can be hidden whole --
   it no longer has to be hidden row by row, which depended on every row being a direct
   child and on surviving its own redraws with fields parked inside it. */
.inv-armoury__detail.is-advancing #inv-armoury-sheet,
.inv-armoury__detail.is-advancing .inv-armoury__actions,
.inv-armoury__detail.is-advancing .inv-armoury__editbar{display:none}
.inv-adv__head{display:flex;align-items:center;gap:12px}
/* The game's own back arrow -- ui_n_button/btn_n_backnew, the one the sheet's other
   screens already use. */
.inv-adv__back{flex:0 0 auto;width:38px;height:38px;border:0;padding:0;cursor:pointer;
	background:url(../images/game-icons/btn-back.webp) center/contain no-repeat}
.inv-adv__back:hover{filter:brightness(1.12)}
.inv-adv__title{margin:0;font-family:Rajdhani,sans-serif;font-weight:700;font-size:1.5rem;
	letter-spacing:.04em;color:#f2c879;text-transform:uppercase}
.inv-adv__rule{height:1px;margin:2px 0 2px;
	background:linear-gradient(90deg,rgba(242,200,121,0),rgba(242,200,121,.5) 12%,rgba(242,200,121,.5) 88%,rgba(242,200,121,0))}

/* Geometry, measured off the game's own screen: the discs sit about 1.6 diameters apart
   and the zig-zag drops about seven tenths of a diameter. Fixed rather than fluid,
   because the link between two nodes is a sprite stretched corner to corner of the box
   BETWEEN their centres -- it only lands on both discs if that box is a known size. */
.inv-adv__track{--d:58px;--gap:36px;--dy:40px;position:relative;
	display:flex;align-items:flex-start;justify-content:center;gap:var(--gap);
	padding:18px 0 34px;background:rgba(10,16,30,.42)}
.inv-adv__node{position:relative;flex:0 0 auto;width:var(--d);height:calc(var(--d) + var(--dy));
	border:0;background:none;padding:0;cursor:pointer}
/* Odd ranks ride high and even ones low, which is the zig-zag the game steps them in. */
.inv-adv__node:nth-child(even){margin-top:var(--dy)}
/* The link between two nodes is positioned by armoury.js, from the discs' own measured
   boxes -- not from these variables. Three attempts at pinning it with CSS arithmetic
   all drifted, because the numbers have to agree with a layout that moves; measuring the
   two circles and drawing between them cannot drift.

   icon_g_star_line is a BOWTIE: a flare at each end with a thin stem between, and the
   flares ARE the shape -- cropping them off was what first made ours read as a grey
   scratch. The export is the sprite's own bounding box, and the stem inside it runs from
   x 2 to 43 of 45 and y 6 to 20 of 27. armoury.js scales the box up by exactly those
   insets so the two flares land on the two disc rims. */
.inv-adv__link{position:absolute;z-index:0;display:block;pointer-events:none;
	background:url(../images/game-icons/rank-node-link.webp) center/100% 100% no-repeat;
	/* The game's link is lit, not drawn -- it reads as a thread of light between the two. */
	filter:brightness(1.7) drop-shadow(0 0 3px rgba(255,255,255,.45))}
.inv-adv__link.is-up{transform:scaleY(-1)}
.inv-adv__disc{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;
	width:var(--d);height:var(--d);
	background:url(../images/game-icons/rank-node-ring.webp) center/contain no-repeat}
.inv-adv__disc .inv-hap__star{width:62%;height:62%}
/* The rank the hero has reached: the game's own gold glow around its node. */
.inv-adv__node.is-now .inv-adv__disc::after{content:'';position:absolute;left:50%;top:50%;
	width:144%;height:144%;transform:translate(-50%,-50%);pointer-events:none;
	background:url(../images/game-icons/skill-select-glow.webp) center/contain no-repeat}
.inv-adv__node:hover .inv-adv__disc{filter:brightness(1.15)}
/* The name on the dark plate the game sets it on -- the same hexagon the skill stars use.
   It is wider than the disc and overlaps its chin, so it is taken out of the flow.
   A rank the hero HAS reached is written in gold and one it has not in white, which is
   how the game tells them apart at a glance. */
.inv-adv__name{position:absolute;left:50%;top:calc(var(--d) + 2px);transform:translateX(-50%);
	z-index:2;display:block;padding:3px 10px;
	font-family:Rajdhani,sans-serif;font-weight:700;font-size:.72rem;letter-spacing:.02em;
	color:#edf1fa;white-space:nowrap;
	background:url(../images/game-icons/skill-star-plate.webp) center/100% 100% no-repeat}
.inv-adv__node.is-done .inv-adv__name{color:#f2c879}

/* The slab the game sets all of this on -- it runs from under the title rule to the foot
   of the last line, so the track and the body share it with no seam between them. */
.inv-adv__body{margin-top:0;padding:18px 16px 20px;background:rgba(10,16,30,.42)}
.inv-adv__h{margin:0 0 8px;font-family:Rajdhani,sans-serif;font-weight:700;font-size:1.06rem;
	letter-spacing:.04em;color:#f2c879;text-transform:uppercase}
.inv-adv__h--unlock{margin-top:18px;padding-top:16px;
	border-top:1px solid rgba(255,255,255,.1)}
/* EFFECT is a row, not a sentence: the attribute's own icon, what it is called, and the
   points it adds out at the end in the game's green. */
.inv-adv__effect{display:flex;align-items:center;gap:9px;margin:0;
	color:#dfe5f2;font-size:.95rem;line-height:1.55}
.inv-adv__effect-ico{width:20px;height:20px;object-fit:contain;flex:0 0 auto}
.inv-adv__effect-txt{min-width:0}
.inv-adv__effect-val{margin-left:auto;color:#6ee7a0;font-weight:700;
	font-variant-numeric:tabular-nums}
.inv-adv__unlock{margin:0;color:#dfe5f2;font-size:.95rem;line-height:1.55}
/* A rank not yet reached: the game greys out what it would unlock. */
.inv-adv__unlock.is-locked{color:#8b93a8}
/* The skill the rank changes, beside its sentence the way the game sets it. */
.inv-adv__unlockrow{display:flex;align-items:flex-start;gap:14px}
.inv-adv__unlock-ico{width:56px;height:56px;flex:0 0 auto;object-fit:contain}
.inv-adv__unlockrow.is-locked .inv-adv__unlock-ico{filter:grayscale(1);opacity:.6}
@media (max-width:640px){.inv-adv__unlock-ico{width:44px;height:44px}.inv-adv__unlockrow{gap:10px}}
.inv-adv__panel[hidden]{display:none}

@media (max-width:640px){
	.inv-adv__track{--d:46px;--gap:24px;--dy:32px;padding-bottom:26px}
	.inv-adv__name{padding:2px 7px;font-size:.64rem;top:calc(var(--d) + 2px)}
}

/* ── The Advance screen's own rank control ────────────────────────────────────
   The rank section is MOVED in here, and it arrives as the builder draws it: a label,
   twenty-five clickable petals and a pair of tiny arrows. On this screen the track above
   already IS the star display, so the petals and the heading stand down and what is left
   is a stepper -- down, the count, up -- on the game's own diamond buttons
   (ui_n_button/arrow_n_btn_01a and 01b).

   display:contents on the arrows' wrapper lets the two buttons become items of the row
   itself, so they can sit either side of the count rather than stacked beside it. */
.inv-adv__controls{margin-top:18px}
.inv-adv__controls .inv-label-sm,
.inv-adv__controls .inv-rank-flowers{display:none}
.inv-adv__controls .inv-rank-picker{display:flex;align-items:center;justify-content:center;gap:20px}
.inv-adv__controls .inv-rank-step{display:contents}
.inv-adv__controls .inv-rank-step-btn{order:1;flex:0 0 auto;width:42px;height:42px;
	padding:0;border:0;border-radius:0;background:none;font-size:0;cursor:pointer;
	background-size:contain;background-position:center;background-repeat:no-repeat}
.inv-adv__controls .inv-rank-step-btn[data-dir="-1"]{order:1;
	background-image:url(../images/game-icons/btn-step-down.webp)}
.inv-adv__controls .inv-rank-label{order:2;min-width:98px;text-align:center;
	font-family:Rajdhani,sans-serif;font-weight:700;font-size:1.12rem;color:#f2c879;
	font-variant-numeric:tabular-nums}
.inv-adv__controls .inv-rank-step-btn[data-dir="1"]{order:3;
	background-image:url(../images/game-icons/btn-step-up.webp)}
.inv-adv__controls .inv-rank-step-btn:hover{filter:brightness(1.15)}
.inv-adv__controls .inv-rank-step-btn:active{transform:translateY(1px)}

/* ── The ring screen ──────────────────────────────────────────────────────────
   The game's own (Menu_EquipChoose_UGUI) is a column of rarity tiles down the left and
   the chosen ring's panel on the right. The tiles are its sprites -- ui_menuitem4/box_1a
   through box_5a, which the prefab index names m_PicItemBG -- and the gold frame on the
   chosen one is pic_n_xzk_add_yw_01 (Pic_Select). We had flat CSS colours standing in
   for all of it. */
.inv-rings[hidden]{display:none}
.inv-rings{margin:0 0 18px}
/* Three columns, as the game has them: the list, the chosen ring BIG in the middle, and
   its panel. Which it can be depends on how wide THIS PANEL is, not on the window -- the
   editor is a column inside a page that also carries a roster and a sidebar, so a
   viewport media query gave it three columns in a 470px box and squeezed the middle one
   to nothing. A container query asks the right question. */
.inv-rings{container-type:inline-size}
/* Named areas, not auto-placement: the list is one tall column beside the ring and its
   panel, and left to place itself the panel landed in a SECOND ROW under the list. */
.inv-rings__cols{display:grid;grid-template-columns:minmax(0,160px) minmax(0,1fr);gap:14px;
	grid-template-areas:"list stage" "list detail";
	align-items:start;background:rgba(10,16,30,.42);padding:14px}
.inv-rings__list{grid-area:list}
/* The ring sits in the MIDDLE of its column, not at the top of it. The row is as tall as
   the panel beside it, so the stage is stretched to that height and centres in it --
   left to size itself it hugged the artwork and the ring rode up against the title. */
.inv-rings__stage{grid-area:stage;align-self:stretch;
	display:flex;align-items:center;justify-content:center;
	min-height:0;padding:0 0 10px}
.inv-rings__detail{grid-area:detail}
.inv-rings__stage-art{max-width:100%;max-height:140px;object-fit:contain;
	filter:drop-shadow(0 6px 22px rgba(242,200,121,.26))}
@container (min-width:720px){
	.inv-rings__cols{grid-template-columns:minmax(0,176px) minmax(0,1fr) minmax(0,24rem);gap:16px;
		grid-template-areas:"list stage detail"}
	.inv-rings__stage{min-height:200px;padding:8px}
	.inv-rings__stage-art{max-height:196px}
}
.inv-rings__list{min-width:0}
.inv-rings__detail{min-width:0}
.inv-rings__empty{margin:0;color:#7c859c;font-size:.9rem}

/* The picker is MOVED in here, so these dress its own parts rather than copies. The
   pill stays -- it carries the chosen ring's LEVEL control, which is what the pane is
   drawn at -- and the tiles keep answering even when the picker has disabled them,
   because clicking another ring means swapping, not nothing. */
/* The pill is where the picker keeps the chosen ring and its level stepper, and the
   pane's own three controls drive it -- so it stays in the DOM and out of sight, the way
   the game has no second copy of what the panel already says. */
.inv-rings__list .inv-subgroup-header,
.inv-rings__list .inv-rel-pills{display:none}
.inv-rings__list .inv-ring-option.inv-ring-disabled{opacity:1;pointer-events:auto}
.inv-rings__list .inv-ring-option.inv-ring-disabled::before{filter:saturate(.45) brightness(.72)}
/* The game's filter is a pill that DROPS A PANEL -- quality chips, a reset and Confirm --
   not a text field. The picker's own search box stands down; the pill is the control. */
.inv-rings__list .inv-rel-picker{display:none}
.inv-rings__filter{position:relative;z-index:5;margin-bottom:10px}
.inv-rings__filter-btn{display:block;width:100%;padding:8px 30px 8px 32px;font-size:.84rem;
	border:0;border-radius:999px;color:#e8edf8;text-align:center;cursor:pointer;
	font-family:Inter,system-ui,sans-serif;
	background:rgba(8,13,26,.62) url(../images/game-icons/filter-funnel-w.webp) 10px 50%/15px 15px no-repeat}
.inv-rings__filter-btn::after{content:'';position:absolute;right:11px;top:13px;
	width:12px;height:12px;pointer-events:none;opacity:.8;
	background:url(../images/game-icons/chevron-down.webp) center/contain no-repeat}
.inv-rings__filter-btn:hover{background-color:rgba(8,13,26,.85)}

.inv-rings__filter-panel[hidden]{display:none}
.inv-rings__filter-panel{position:absolute;left:0;top:calc(100% + 6px);z-index:6;
	min-width:100%;width:max-content;max-width:300px;padding:12px 13px 13px;
	background:#1b2436;border:1px solid rgba(242,200,121,.3);
	box-shadow:0 10px 30px rgba(0,0,0,.5)}
.inv-rings__filter-h{margin:0 0 9px;font-family:Georgia,'Times New Roman',serif;font-weight:700;
	font-size:.9rem;letter-spacing:.03em;color:#f3e3c0;text-transform:uppercase}
.inv-rings__filter-chips{display:flex;flex-wrap:wrap;gap:6px}
.inv-rings__chip{flex:1 1 auto;min-width:78px;padding:7px 10px;cursor:pointer;
	border:1px solid rgba(255,255,255,.14);background:rgba(8,13,26,.5);
	font-family:Inter,system-ui,sans-serif;font-size:.8rem;line-height:1.2}
/* The site's one rarity palette, which is what these words mean everywhere else. */
.inv-rings__chip--legendary{color:#f59e0b}
.inv-rings__chip--epic{color:#a855f7}
.inv-rings__chip--rare{color:#3b82f6}
.inv-rings__chip[aria-pressed="true"]{border-color:currentColor;
	background:rgba(255,255,255,.08);font-weight:700}

.inv-rings__filter-foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;
	margin-top:12px;padding-top:11px;border-top:1px solid rgba(255,255,255,.1)}
/* The game's own circling arrows, the pair the Reset button wears. */
.inv-rings__filter-reset{width:30px;height:30px;flex:0 0 auto;border:0;padding:0;cursor:pointer;
	background:rgba(255,255,255,.07) url(../images/game-icons/icon-reset.webp) center/15px 15px no-repeat;
	transform:rotate(45deg)}
.inv-rings__filter-reset:hover{background-color:rgba(255,255,255,.14)}
.inv-rings__filter-ok{min-height:36px;padding:8px 22px;font-size:.86rem;
	color:#5b3b11;text-shadow:0 1px 0 rgba(255,255,255,.28);
	border-image:url(../images/game-icons/btn-plate-gold.webp) 30 fill / 13px stretch}
.inv-ring-quality-group[hidden]{display:none}
/* No bars. The game's list just runs off the bottom edge and fades, so the scroll is
   there but nothing is drawn for it -- and the last row dissolves into the panel instead
   of being cut off, which is what says there is more below. */
.inv-rings__list .inv-ring-visual-grid{margin-top:10px;max-height:430px;
	overflow-y:auto;overflow-x:hidden;scrollbar-width:none;-ms-overflow-style:none;
	-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 54px),rgba(0,0,0,0));
	mask-image:linear-gradient(to bottom,#000 calc(100% - 54px),rgba(0,0,0,0))}
.inv-rings__list .inv-ring-visual-grid::-webkit-scrollbar{width:0;height:0;display:none}
.inv-rings__list .inv-ring-grid-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
	gap:6px}
.inv-rings__list .inv-ring-quality-label{font-size:.6rem;margin:8px 0 4px}

/* The tile: the game's rarity plate with the ring drawn on it. The sprite carries its
   own margin, so the artwork is contained rather than cropped. */
.inv-ring-option{position:relative;width:100%;height:auto;aspect-ratio:1;
	border:0;border-radius:0;padding:0;overflow:visible;background:none}
.inv-ring-option::before{content:'';position:absolute;inset:0;z-index:0;
	background:url(../images/game-icons/rarity-tile/empty.webp) center/100% 100% no-repeat}
.inv-ring-option--legendary::before{background-image:url(../images/game-icons/rarity-tile/legendary.webp)}
.inv-ring-option--epic::before{background-image:url(../images/game-icons/rarity-tile/epic.webp)}
.inv-ring-option--rare::before{background-image:url(../images/game-icons/rarity-tile/rare.webp)}
.inv-ring-option img{position:relative;z-index:1;width:100%;height:100%;object-fit:contain}
.inv-ring-option:hover{transform:none;filter:brightness(1.12)}
/* Chosen: the game's gold frame over the tile, not a glow of ours. */
.inv-ring-option.inv-ring-selected{box-shadow:none;border:0}
.inv-ring-option.inv-ring-selected::after{content:'';position:absolute;inset:-2px;z-index:2;
	pointer-events:none;
	border-image:url(../images/game-icons/tile-selected.webp) 20 fill / 10px stretch}

/* The pane on the right -- the rows the game stacks, then the skill and what it does. */
.inv-rings__name{margin:0;font-family:Georgia,'Times New Roman',serif;font-weight:700;
	font-size:1.25rem;letter-spacing:.015em;color:#f3c04a;text-transform:uppercase;
	text-shadow:0 1px 2px rgba(0,0,0,.55)}
.inv-rings__rule{height:1px;margin:7px 0 12px;
	background:linear-gradient(90deg,rgba(242,200,121,.45),rgba(242,200,121,0))}
/* The game rules them off with a hairline instead of boxing each one, and only the
   Level row sits on a darker band. */
.inv-rings__rows{display:flex;flex-direction:column}
/* The rule between rows is the game's own line (ui_g_line/line_g_001 -- m_PicLine on
   this very row), which is dashed rather than solid and fades at both ends. */
.inv-rings__row{display:flex;align-items:center;justify-content:space-between;gap:12px;
	padding:9px 2px;border-bottom:0;color:#dfe5f2;font-size:.92rem;
	background:url(../images/game-icons/row-rule.webp) bottom center/100% 2px no-repeat}
.inv-rings__row:last-child{background-image:none}
.inv-rings__row:last-child{border-bottom:0}
.inv-rings__row--lv{padding:9px 10px;background:rgba(8,13,26,.45);border-bottom:0}
/* The game sets a small glyph before some of these labels. */
.inv-rings__row-lbl{min-width:0;display:inline-flex;align-items:center;gap:8px}
.inv-rings__row-ico{flex:0 0 auto;display:block;width:32px;height:32px;
	background-position:center;background-size:contain;background-repeat:no-repeat}
.inv-rings__row-ico--chance{background-image:url(../images/game-icons/icon-activation.webp)}
.inv-rings__row-val{flex:0 0 auto;font-variant-numeric:tabular-nums;color:#fff}
.inv-rings__row-val.is-gold{color:#f2c879}
.inv-rings__max{margin-left:6px;color:#f2c879;font-weight:700}
.inv-rings__row--chance{margin-top:10px}

/* The plate is the game's own -- ui_g_menuheroequip/frame_heroequip_04b, gold lattice
   with a bright rim and a chamfer at each end. It is 192x31 with a 15px chamfer, so it
   9-slices: the corners paint at 15px whatever size the plate is drawn, and only the
   lattice between stretches. We had a hand-drawn gold border. */
/* --inv-plate-pl is the left inset, and the icon and the light behind it are placed from
   it -- so changing the padding moves all three together instead of leaving the circle
   where the padding used to be. */
.inv-rings__skill{position:relative;margin-top:12px;--inv-plate-pl:8px;
	padding:8px 11px 8px var(--inv-plate-pl);
	border:0;background:none;overflow:hidden}
/* The plate FOLLOWS THE RING'S QUALITY, which is the thing I had missed: the game ships
   frame_heroequip_01a..01f, one per rarity -- grey, green, blue, purple, gold, red -- and
   draws the ring's own. A legendary's plate is gold and an epic's is purple.

   It rides on its own layer because the element above it carries the name, and the plate
   needs a rim of its own drawn over it. */
.inv-rings__skill::after{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;
	background:url(../images/game-icons/skill-plate-legendary.webp) center/100% 100% no-repeat;
	box-shadow:inset 0 0 0 1px rgba(242,200,121,.45)}
.inv-rings__skill--epic::after{background-image:url(../images/game-icons/skill-plate-epic.webp);
	box-shadow:inset 0 0 0 1px rgba(168,85,247,.45)}
.inv-rings__skill--rare::after{background-image:url(../images/game-icons/skill-plate-rare.webp);
	box-shadow:inset 0 0 0 1px rgba(59,130,246,.45)}
/* The light behind the icon FITS THE PLATE'S HEIGHT. It was drawn at its own 132px and
   only a band through its middle showed -- the circle was taller than the bar it sits
   in. Pinned top and bottom and given the sprite's aspect, it is as tall as the plate
   and no taller, and the plate clips what is left. Centred on the icon, so the two
   still move together. */
.inv-rings__skill::before{content:'';position:absolute;z-index:1;pointer-events:none;
	top:0;bottom:0;aspect-ratio:204 / 109;
	left:calc(var(--inv-plate-pl) + var(--inv-disc) / 2 + var(--inv-disc-x));
	transform:translateX(-50%);
	background:url(../images/game-icons/skill-burst.webp) center/100% 100% no-repeat;
	opacity:.85}
/* --inv-disc is the icon's size; --inv-disc-x / --inv-disc-y move it. The circle baked
   into the plate's light is placed from the same three, so the icon and the pattern
   behind it move together -- nudging one without the other is what put the circle beside
   the icon to begin with. To shift it:
   .inv-rings__skill{--inv-disc-x:4px;--inv-disc-y:-2px} */
.inv-rings__skill{--inv-disc:47px;--inv-disc-x:0px;--inv-disc-y:0px}
.inv-rings__skill-top{position:relative;z-index:2;display:flex;align-items:center;gap:9px;
	padding-left:calc(var(--inv-disc) + 9px)}
/* The icon's disc: the game's dark backing, the icon inside it, its gold rim over the
   top. All three are round, so the icon is clipped to the circle it sits in. */
/* The disc is centred on the WHOLE plate, not on the name beside it -- the plate is two
   rows, the name and the bar, and sitting in the first one left the icon riding high.
   Taken out of the flow and pinned to the plate's middle; the name row is padded to
   clear it. Moved by transform, so shifting it pushes nothing along. */
.inv-rings__skill-disc{position:absolute;left:var(--inv-plate-pl);top:50%;z-index:2;
	width:var(--inv-disc);height:var(--inv-disc);
	transform:translate(var(--inv-disc-x),calc(-50% + var(--inv-disc-y)));
	display:flex;align-items:center;justify-content:center;
	background:url(../images/game-icons/skill-disc.webp) center/contain no-repeat}
.inv-rings__skill-disc::after{content:'';position:absolute;inset:0;pointer-events:none;
	background:url(../images/game-icons/skill-disc-ring.webp) center/contain no-repeat}
/* The icon FILLS the black circle it sits in. Both sprites draw their circle at 92% of
   their own canvas -- measured, 164 of 178 -- so that is the share the icon takes, and
   the gold rim lands on its edge instead of a band of black showing between them. */
.inv-rings__skill-ico{width:92%;height:92%;object-fit:cover;border-radius:50%}
.inv-rings__skill-name{flex:1 1 auto;min-width:0;font-family:Georgia,'Times New Roman',serif;
	font-weight:700;font-size:1.02rem;line-height:1.2;color:#fdf6e6;
	text-shadow:0 1px 3px rgba(30,16,4,.85)}
/* "Details >" closes the line, as the game closes it. */
.inv-rings__skill-more{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;
	color:#f3eadb;font-size:.84rem;text-decoration:none;white-space:nowrap;
	text-shadow:0 1px 3px rgba(30,16,4,.85)}
.inv-rings__skill-more::after{content:"\203A";font-size:1.25em;line-height:1;opacity:.9}
.inv-rings__skill-more:hover{color:#fff}
/* The tier track: a rail with a pip every ten levels, filled as far as the ring has come.
   The game draws it UNDER the name across the whole plate, not as a few dots beside it. */
/* The pips are PLACED, not spread: each sits at the level it stands for as a share of
   the ring's own cap, so a 40-cap ring's four pips land at 25/50/75/100 and the rail
   between them means something. Spread evenly they lied about where a tier began.

   The rail is two of the game's sprites laid over each other -- pic_engraving_bg_01 for
   the empty track and pic_engraving_bg_01b, its red lattice twin, for what is filled.
   Both are chamfered at each end, which is why the fill is clipped by width rather than
   drawn as a block: the chamfer has to stay the sprite's. */
/* The rail starts AFTER the icon, as the game's does -- it was running the whole width
   of the plate and passing under the disc.

   DRAWN, not a stretched sprite. The game's is a flat bar: a gold hairline, a black
   trough inside it, a red fill in that, and a chevron at the right end. Stretching a
   256px sprite to whatever width the panel happens to be was both softer than the
   game's and a thing that could only ever approximate the fill; a bar that is three
   boxes fills to the exact percentage at any size. */
/* A thin rod. The diamonds are TALLER than it and sit over it, which is what makes it
   read as a bar with stars on rather than a box with dots in. */
.inv-rings__pips{position:relative;z-index:2;display:block;height:13px;
	margin:4px 8px 0 74px}
/* The track is a dark translucent rod laid on the plate -- NOT a gold-edged trough. I
   had given it a bright rim it does not have; in the game the plate shows through it and
   only the chevron at the right end gives it a shape of its own. */
.inv-rings__pip-track{position:absolute;inset:0;z-index:0;display:block;
	opacity:.8;
	background:rgba(16,9,4,.62);
	box-shadow:inset 0 3px 3px rgba(0,0,0,.3);
	clip-path:polygon(0 0,calc(100% - 4px) 0,100% 50%,calc(100% - 4px) 100%,0 100%)}
/* What is filled. A plain box inside the rod, so its width IS the percentage. */
.inv-rings__pip-rail{position:absolute;left:2px;top:5px;bottom:5px;z-index:1;display:block;
	background:linear-gradient(180deg,#f07363 0%,#e24a3a 55%,#c7342a 100%);
	box-shadow:inset 0 1px 0 rgba(255,205,186,.4)}
/* The badge at the rail's head. It hangs off the left end, over the plate, the way the
   game hangs it -- so the rail starts clear of it rather than running underneath. */
.inv-rings__pip-badge{position:absolute;left:-16px;top:50%;z-index:4;
	width:19px;height:19px;transform:translateY(-50%);pointer-events:none;
	background:url(../images/game-icons/rail-badge.webp) center/contain no-repeat;
	filter:drop-shadow(0 1px 2px rgba(0,0,0,.6))}
/* The pips are the SAME diamonds the skill row uses -- ui_n_icon/icon_n_star_08a and its
   red twin 08b. The game does not draw a second kind of star for this bar, and neither
   should we: a tier reached is the red one, a tier still to come is the gold. I had them
   as rotated CSS squares. */
.inv-rings__pip{position:absolute;top:50%;z-index:3;display:block;width:13px;height:14px;
	transform:translate(-50%,-50%);
	background:url(../images/game-icons/skill-star.webp) center/contain no-repeat;
	filter:drop-shadow(0 1px 1px rgba(0,0,0,.55))}
.inv-rings__pip.is-on{background-image:url(../images/game-icons/skill-star-red.webp)}

/* The game marks a recommended ring with its own thumbs-up (ui_g_icon/icon_g_zan_01),
   top LEFT of the tile. Ours was a text star in the corner. */
.inv-rings__list .inv-ring-rec-star{top:-10px;left:-8px;right:auto;width:44px;height:44px;z-index:2;
	font-size:0;color:transparent;
	background:url(../images/game-icons/badge-recommended.webp) center/contain no-repeat}

.inv-rings__desc{margin-top:12px;padding:12px 13px;background:rgba(8,13,26,.4);
	color:#dfe5f2;font-size:.92rem;line-height:1.6}

@media (max-width:760px){
	.inv-rings__cols{grid-template-columns:minmax(0,1fr);gap:14px}
	.inv-rings__list .inv-ring-grid-row{grid-template-columns:repeat(4,minmax(0,1fr))}
	/* Fills the phone down to the bottom nav (user 11-17: 250px showed 2.5 rows over an empty
	   screen); 265px = tab bar + title + filter + rarity label + bottom nav. */
	.inv-rings__list .inv-ring-visual-grid{max-height:max(330px,calc(100vh - var(--inv-header-h, 64px) - 265px));
		max-height:max(330px,calc(100dvh - var(--inv-header-h, 64px) - 265px))}
}

/* The pane's foot: take it off, step it down, raise it -- on the game's own two plates,
   the same pair Save and Reset wear. The game has no way DOWN because you cannot
   un-spend an upgrade; here a player is describing a build, so there is one. */
.inv-rings__acts{display:flex;align-items:center;gap:9px;margin-top:14px}
.inv-rings__acts .inv-armoury__btn{min-height:42px;padding:10px 18px;font-size:.92rem}
.inv-rings__act--up{color:#5b3b11;text-shadow:0 1px 0 rgba(255,255,255,.28);
	border-image:url(../images/game-icons/btn-plate-gold.webp) 30 fill / 15px stretch}
.inv-rings__acts .inv-armoury__clear{flex:0 0 auto}
.inv-rings__act--up{flex:1 1 auto}
.inv-rings__step{flex:0 0 auto;width:38px;height:38px;border:0;padding:0;cursor:pointer;
	background:url(../images/game-icons/btn-step-down.webp) center/contain no-repeat}
.inv-rings__step:hover{filter:brightness(1.15)}
.inv-rings__acts button:disabled{filter:grayscale(.7) opacity(.5);cursor:default}

/* What the next level would be worth, in the game's green, beside what this one is. */
.inv-rings__next{margin-left:7px;color:#6ee7a0;font-style:normal}
/* The arrow is the game's own sprite -- ui_n_menuentity/arrow_n_entitylevelup_01,
   which the prefab index names m_PicArrow1 on exactly this row -- not a glyph. */
.inv-rings__next::before{content:"";display:inline-block;width:11px;height:12px;
	margin-right:6px;vertical-align:-1px;
	background:url(../images/game-icons/arrow-next-green.webp) center/contain no-repeat}

/* The ring screen takes the whole shell. The game gives its gear screen the width of the
   display -- list, the ring itself and its panel -- and squeezed into the editor column
   beside a roster rail there is no room for the middle one. The rail stands down for as
   long as the screen is open and comes back with it. */
.inv-armoury__shell.is-screen{grid-template-columns:minmax(0,1fr)}
.inv-armoury__shell.is-screen .inv-armoury__roster,
.inv-armoury__shell.is-screen .inv-armoury__collapse{display:none}

/* ── Enhance ────────────────────────────────────────────────────────────────────
   The game's gear screen (Menu_EquipUpgrade_Hero_UGUI), laid out as the game lays it
   out: the piece INSIDE a lit disc with its gem sockets on an arc over it, the level
   and the star row beneath, the four pieces as a strip along the bottom, and the whole
   attribute table down the right.

   Nothing here is one flat picture. The aura, the disc and the piece are three layers
   (pic_heroequip_upgrade, pic_gem_01a, the piece's own icon); a socket is a plate, a
   glyph and a tier numeral; a star is a base plus up to five gold petals and five red
   ones on the same 99px canvas. That is the game's own construction, and it is why one
   of them can change colour without any of the others being recut. */
.inv-enh{container-type:inline-size}
/* ⚠ SOMETHING OUTSIDE THIS THEME CAPS EVERY IMAGE: `img{display:block;max-width:90%}`
   in a global stylesheet. max-width beats width, so every sprite on this screen was
   quietly drawn at nine tenths of the size it was given -- and because it hit all of
   them at once it looked like a layout that was merely a bit off rather than a rule
   fighting us. Every image in here is sized deliberately, against the game's own
   measurements, so the cap is lifted for this screen and the gear strip beside it
   rather than argued with one rule at a time.

   ⚠ 100%, NOT none. That global cap was also the only thing holding any image that
   had no width of its own -- lifting it entirely let a composite plate open at its
   natural 257x294 and swallow half the panel. At 100% the declared sizes are free
   (they are all well under their boxes) and anything unsized still cannot outgrow
   the box it sits in. */
.inv-enh img,
.inv-hap__gear img{max-width:100%}
/* ...and the one that had been relying on the cap gets a size of its own.
   ⚠ NOT THE NUMERAL. This is two classes and an element, so it outranks the one-class
   rule that places the mythical figure, and it was stretching that figure over the
   whole stone -- which is what put a huge II beside the gem instead of a small one on
   it. The numeral is the only other img that lands in here, so it is named out. */
.inv-enh__seated-ico > img:not(.inv-enh__sock-num){position:absolute;inset:0;
	width:100%;height:100%;object-fit:contain}

/* A PLAIN TWO-COLUMN GRID. The left column holds the orb with the piece strip under it,
   the right holds the table -- which is the game's arrangement, and the one this screen
   kept failing to reach while the pane's two halves were trapped in one wrapper. They
   are moved into their own hosts now, so nothing here depends on display:contents or on
   grid areas spanning a wrapper that may or may not collapse. */
/* No wash behind the screen. rgba(10,16,30,.42) was laying a blue cast over the hero
   art and over every layer of the orb -- the ring screen wants it, this one does not. */
.inv-enh__cols{position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:16px;
	padding:14px;align-items:start}
/* pic_heroequip_shadow_02 -- the band that runs along the FOOT of the whole screen,
   behind everything, with the piece strip standing on it. It is a 600x104 wash, so it
   stretches to whatever width the screen has. */
.inv-enh__cols::after{content:'';position:absolute;left:0;right:0;bottom:0;z-index:0;
	height:9rem;pointer-events:none;
	background:url(../images/game-icons/gear-stage-glow.webp) center bottom/100% 100% no-repeat;
	opacity:.5;
	/* It fades out towards both ends rather than stopping at an edge -- the game's band
	   has no visible start or finish, it just thins away. */
	-webkit-mask:linear-gradient(90deg,
		transparent 0%, rgba(0,0,0,.35) 7%, #000 22%, #000 78%, rgba(0,0,0,.35) 93%, transparent 100%);
	        mask:linear-gradient(90deg,
		transparent 0%, rgba(0,0,0,.35) 7%, #000 22%, #000 78%, rgba(0,0,0,.35) 93%, transparent 100%)}
.inv-enh__left,
.inv-enh__panelhost{position:relative;z-index:1}
/* THE PANEL IS A FIXED PANEL, the way the game's is: it does not grow with the
   window. Left as a free 1fr column it stretched on a wide screen and every row in
   it -- the quality plates, the gem grid, the attribute bands -- stretched with it,
   so the same screen read differently at two window sizes. The art takes whatever
   is left over, which is what the game does with it too.

   460px BECAUSE THAT IS THE HERO EDIT PANEL'S WIDTH (.inv-armoury__cols). The two sit
   in the same place on the page, so a different measure for each made the Inlay side
   visibly jump wider whenever the sidebars collapsed. In px, not rem: this is meant
   to be fixed, and rem would move it with the root font size. */
/* ⚠ END, NOT START. The panel is capped at 460 inside a 1fr track, so pinning it to
   the track's start left it floating in the middle of the screen with the whole
   remainder empty to its right. The game keeps it against the edge. */
.inv-enh__panelhost{width:100%;max-width:var(--inv-panel-w,460px);justify-self:end}
/* ⚠ A FIXED STAGE, LAID OUT LIKE THE GAME'S. The screen used to be as tall as
   whatever the right-hand panel needed, and the left column's rows were spread
   through that height -- so the orb and the gear strip slid up and down every
   time the panel changed view, and the tile you were aiming at was never twice in
   the same place.

   The game's Enhance screen is a fixed stage: the piece and its orb centred in the
   left half, the four gear tiles on the floor, the panel's own action on the floor
   opposite. Three rows here do the same -- a flexible row that centres the orb, the
   strip on the floor, and the controls under it -- and the stage takes the viewport
   so the floor is the real floor and stops moving. */
.inv-enh__cols{min-height:calc(100vh - var(--inv-header-h,64px) - 120px)}
.inv-enh__left{display:grid;grid-template-rows:1fr auto auto;gap:14px;min-width:0}
.inv-enh__stagehost{align-self:center;justify-self:center;width:100%}
.inv-enh__strip{align-self:end}
.inv-enh__panelhost{min-width:0;display:flex;flex-direction:column}
/* A VIEW FILLS THE PANEL, so its foot can sit at the foot. The two buttons were
   riding up and down with the gem list -- a short list (one rarity's worth) pulled
   them halfway up the screen, a long one pushed them down -- because they simply
   followed the last row. The game keeps them still, level with the gear strip.
   Only the view's HEIGHT is set here, not its display: all five views live in this
   host and four of them lay their contents out as blocks, so turning them into flex
   columns to solve a problem the Inlay view has would have moved the other four. */
.inv-enh__view:not([hidden]){flex:1 1 auto;min-height:0}
@container (min-width:820px){
		/* STRETCH, not start. The panel has to be as tall as the art beside it or its
	   foot has nothing to sit at the bottom of -- align-items:start let the column
	   shrink to the gem list, and DONE/INLAY came with it. Only the two-column
	   shapes stretch; stacked on a phone the panel keeps its own height. */
	.inv-enh__cols{grid-template-columns:minmax(0,46%) minmax(0,1fr);gap:22px;align-items:stretch}
}
/* For a browser without container queries, the same split off the viewport. */
@media (min-width:1100px){
		/* STRETCH, not start. The panel has to be as tall as the art beside it or its
	   foot has nothing to sit at the bottom of -- align-items:start let the column
	   shrink to the gem list, and DONE/INLAY came with it. Only the two-column
	   shapes stretch; stacked on a phone the panel keeps its own height. */
	.inv-enh__cols{grid-template-columns:minmax(0,46%) minmax(0,1fr);gap:22px;align-items:stretch}
}

.inv-enh__empty{margin:0;padding:18px 10px;text-align:center;font-size:.86rem;
	color:rgba(226,232,240,.56)}

/* ── the stage ─────────────────────────────────────────────────────────────── */
.inv-enh__stage{display:grid;justify-items:center;gap:8px;padding:10px 0 4px}
/* The sockets orbit at 44% of this box, so the box has to be the SOCKET ORBIT, not the
   disc -- at 19rem they were flung outside it. Measured: the orbit is 802px across on
   a frame whose disc is 280. */
.inv-enh__orb{position:relative;width:min(100%,27rem);aspect-ratio:1;
	display:grid;place-items:center;isolation:isolate}
/* ── the orb's layers ──────────────────────────────────────────────────────────
   STRAIGHT OUT OF menu_equipupgrade_hero_ugui, in the prefab's own paint order and at
   its own sizes. The frame is Pic_Pattern, 556 units, and everything below is a share
   of it. Unity measures +y UP and CSS measures it DOWN, so every offset is negated.

   What used to be here -- a mandala disc, a swirl mask, a ray ring -- are sprites from
   OTHER screens. None of them appears in this prefab, which is why no amount of tuning
   made the orb look right. */
/* EVERY NUMBER ON THIS ORB IS A VARIABLE, so it can be tuned against the live screen
   instead of guessed at in a file. The defaults are the prefab's own values; the lab
   panel (assets/js/gear-lab.js) writes over them and hands back the CSS to paste here.
   Anything that reads a measurement reads it from one of these. */
.inv-enh__stage{--orb-tint:#e8a23c;
	/* TUNED ON THE LIVE SCREEN (Gear Lab, 2026-10-30), not read out of the prefab. The
	   file's own values are kept beside each one: the prefab describes a 1080-unit stage
	   at the game's own proportions, and this screen is narrower and sits on a different
	   background, so several layers wanted pulling in. Where the two differ, THIS is the
	   one that was looked at. */
	--orb-piece:28.2%;      /* prefab 32.4% */
	--orb-sock:23.1%;       /* prefab 27.3%, scaled with the ring */
	--orb-sock-r:.845;
	--sock-x:0%;     --sock-y:0%;
	/* Per socket. The angles stayed within a degree of the prefab's (288.7 / 329.5 /
	   30.5 / 71.3) -- the radius is what moved: all four out to 54% from the file's
	   45.95 / 44.26, and all four the SAME, where the game staggers its outer pair.
	   Tuned against the screen, which is narrower than the game's. */
	--sock1-a:290deg; --sock1-r:54%;
	--sock2-a:330deg; --sock2-r:54%;
	--sock3-a:30deg;  --sock3-r:54%;
	--sock4-a:70deg;  --sock4-r:54%;
	--glow-w:165%;   --glow-h:139.5%;  --glow-x:-0.7%;  --glow-y:5.4%;   --glow-o:1;
	                        /* prefab 198.6 / 161.9 */
	--linea-w:84.5%; --linea-y:1.5%;   --linea-o:.33;   /* prefab 100% / 2.34% */
	--lineb-w:79.5%; --lineb-y:1.9%;   --lineb-o:1;     /* prefab 93.5% / 2.34% */
	--shadow-w:32%;  --shadow-h:11.1%; --shadow-y:15.4%; --shadow-o:.88;
	--arc-w:97%;     --arc-h:65.5%;    --arc-y:-14%;    --arc-o:.93;
	--lv-y:15%;      --lv-size:1.08rem;
	--star-y:21.9%;  --star-w:37.4%;
	--act-size:21.5%; --act-y:39.6%;   --act-gap:17.2%; --act-x:-.5%}
/* The arc takes the piece's quality colour. The glow already changes file per rarity;
   this is for the layers that are drawn white and tinted. */
.inv-enh [data-rarity="common"] .inv-enh__stage,
.inv-enh__stagehost[data-rarity="common"]{--orb-tint:#9ca3af}
.inv-enh [data-rarity="uncommon"] .inv-enh__stage,
.inv-enh__stagehost[data-rarity="uncommon"]{--orb-tint:#22c55e}
.inv-enh [data-rarity="rare"] .inv-enh__stage,
.inv-enh__stagehost[data-rarity="rare"]{--orb-tint:#4d8fd6}
.inv-enh [data-rarity="epic"] .inv-enh__stage,
.inv-enh__stagehost[data-rarity="epic"]{--orb-tint:#a263d8}
.inv-enh [data-rarity="legendary"] .inv-enh__stage,
.inv-enh__stagehost[data-rarity="legendary"]{--orb-tint:#e8a23c}
.inv-enh [data-rarity="mythical"] .inv-enh__stage,
.inv-enh__stagehost[data-rarity="mythical"]{--orb-tint:#e2492b}

/* m_PicQualityBG -- 1104x900 at (-4,-30), the soft glow that carries the rarity. Six
   files, one per quality; no tinting. */
.inv-enh__glow{position:absolute;left:50%;top:50%;z-index:0;pointer-events:none;
	/* OFFSETS BELONG TO THE PARENT, NOT THE ELEMENT. Unity places this at (-4,-30) in
	   the 556 frame; a translate percentage would resolve against this box instead,
	   which is twice as wide, and the layer landed off-centre. left/top resolve against
	   the orb, so the numbers mean what the prefab means. */
	width:var(--glow-w);height:var(--glow-h);
	left:calc(50% + var(--glow-x));top:calc(50% + var(--glow-y));translate:-50% -50%;
	opacity:var(--glow-o);
	background:url(../images/game-icons/orb-glow-legendary.webp) center/100% 100% no-repeat;
	animation:inv-enh-orbpulse 6.4s ease-in-out infinite}
.inv-enh [data-rarity="common"] .inv-enh__glow{background-image:url(../images/game-icons/orb-glow-common.webp)}
.inv-enh [data-rarity="uncommon"] .inv-enh__glow{background-image:url(../images/game-icons/orb-glow-uncommon.webp)}
.inv-enh [data-rarity="rare"] .inv-enh__glow{background-image:url(../images/game-icons/orb-glow-rare.webp)}
.inv-enh [data-rarity="epic"] .inv-enh__glow{background-image:url(../images/game-icons/orb-glow-epic.webp)}
.inv-enh [data-rarity="mythical"] .inv-enh__glow{background-image:url(../images/game-icons/orb-glow-mythical.webp)}

/* Pic_Pattern 556 at (0,-13) -- the star linework. The one thing the game turns. */
.inv-enh__lines-a{position:absolute;left:50%;top:50%;z-index:1;pointer-events:none;
	width:var(--linea-w);aspect-ratio:1;top:calc(50% + var(--linea-y));translate:-50% -50%;
	/* IT DOES NOT TURN. The linework is a static layer; what moves in the game is the
	   particle system over it. Spinning this was putting the motion on the wrong thing. */
	background:url(../images/game-icons/orb-lines-star.webp) center/contain no-repeat;
	/* The geometry reads clearly over the disc in the game; at .55 it washed out. */
	opacity:var(--linea-o)}
/* Pic_Pattern 520 at (0,-13) -- the thin ring, held still. */
.inv-enh__lines-b{position:absolute;left:50%;top:50%;z-index:2;pointer-events:none;
	width:var(--lineb-w);aspect-ratio:1;top:calc(50% + var(--lineb-y));translate:-50% -50%;
	background:url(../images/game-icons/orb-lines-ring.webp) center/contain no-repeat;
	opacity:var(--lineb-o)}
@keyframes inv-enh-spin{to{rotate:360deg}}
/* The glow's own loop. In the game this is a particle system
   (p_fx_ui_equipupgrade_item_<colour>, one per rarity) which cannot become CSS; what it
   reads as is a slow swell, so that is what this is -- and on a different period from
   the linework's turn, so the two never line up. */
@keyframes inv-enh-orbpulse{
	0%,100%{opacity:.78;scale:1}
	50%    {opacity:1;  scale:1.035}}
@media (prefers-reduced-motion:reduce){
	.inv-enh__lines-a,.inv-enh__glow{animation:none}
	.inv-enh__glow{opacity:.88}
}

/* Pic_Shadow 204x60 at (0,-97) -- the piece's own shadow, under it. */
.inv-enh__shadow{position:absolute;left:50%;top:50%;z-index:4;pointer-events:none;
	width:var(--shadow-w);height:var(--shadow-h);top:calc(50% + var(--shadow-y));translate:-50% -50%;
	background:url(../images/game-icons/orb-shadow.webp) center/100% 100% no-repeat;
	opacity:var(--shadow-o)}

/* m_PicEquip 180 -- the piece. */
.inv-enh__art{position:relative;z-index:5;width:var(--orb-piece,32.4%);height:auto;
	filter:drop-shadow(0 4px 12px rgba(0,0,0,.55))}

/* m_PicQualityBG_Gem 520x280 at (0,108) -- the fine arc the sockets hang from. It is
   520 wide against the sockets' ~250 orbit, so its ends reach just past them and it
   passes THROUGH the ring rather than over it: behind the sockets, and tinted, which is
   how the game draws it. The sprite is white, so the colour comes through a mask. */
.inv-enh__gemarc{position:absolute;left:50%;z-index:3;pointer-events:none;
	/* DELIBERATELY WIDER THAN THE PREFAB, and the only number on this screen that is.
	   The file says 520x280 at y+108, but the artwork inside that box only reaches
	   +-210 while the outer sockets sit at +-242, so the arc stopped short of the ring
	   it is meant to thread. Scaling it by 1.152 carries the ends under the sockets,
	   and the centre drops to 17.16% to keep the curve crossing at their height.
	   (Measured, not nudged: 242/210 = 1.152, and 212 - 116.6 = 95.4 of 556.) */
	width:var(--arc-w);height:var(--arc-h);top:calc(50% + var(--arc-y));translate:-50% -50%;
	background:var(--orb-tint,#e8a23c);
	-webkit-mask:url(../images/game-icons/orb-gem-arc.webp) center/100% 100% no-repeat;
	        mask:url(../images/game-icons/orb-gem-arc.webp) center/100% 100% no-repeat;
	opacity:var(--arc-o)}

/* The unit-type diamond, where the game puts it: on the disc's upper-left shoulder. */
/* The badge carries its own plate and its own edge, so it takes no shadow -- one
   under it smudged the diamond. Same sprite as the strip tile's. */
.inv-enh__unit{position:absolute;z-index:3;left:var(--unit-x,31%);top:var(--unit-y,33%);
	width:var(--unit-w,11%);height:auto}

/* ── the sockets, on an arc over the disc ──────────────────────────────────── */
/* --a is where a socket sits on the circle. The counter-rotation keeps the plate
   upright: without it every socket would lean by its own angle. */
.inv-enh__socket{position:absolute;left:50%;top:50%;z-index:6;
	/* 152 of 556, from the prefab. Each socket carries its own --r: the outer pair
	   orbits at 255.5 and the inner pair at 246.1, and the game is not symmetric about
	   the vertical -- copying it exactly is the point. */
	width:var(--orb-sock,27.3%);aspect-ratio:1;display:grid;place-items:center;
	appearance:none;border:0;background:none;padding:0;cursor:pointer;
	translate:-50% -50%;
	/* --r is the orbit radius as a share of the ORB. A translate percentage resolves
	   against the SOCKET, so it is divided by the socket's own share to convert. */
	/* --sock-x / --sock-y nudge the whole ring; they are a share of the orb, applied
	   through left/top so they do not fight the per-socket rotation below. */
	left:calc(50% + var(--sock-x,0%));top:calc(50% + var(--sock-y,0%));
	transform:rotate(var(--a,270deg))
		translate(0, calc(-1 * var(--r,45.95%) * var(--orb-sock-r,1) / 0.273))
		rotate(calc(-1 * var(--a,270deg)))}

/* FIVE LAYERS, not one picture, the way ListItem_EquipUpgradeGem stacks them:
     m_PicQualityBg  icon_gem_type_03a  the plain ring, always under
     m_PicQuality    icon_gem_type_03b/c/d  the ornament, richer as the gem is better
     m_PicShape      icon_gem_type_02a/b/c/d  the form that says WHICH gem fits
     m_PicGem        the seated gem's own art
     m_Pic_ArtFont   its numeral
   The white sprites are tinted, so here they are masks with the colour in CSS. */
.inv-enh__sock-disc,
.inv-enh__sock-ring,
.inv-enh__sock-orn,
.inv-enh__sock-plate{position:absolute;inset:0;pointer-events:none}
/* THE DISC UNDER EVERYTHING -- Pic_Frame, icon_gem_type_03_bai. It is why a socket
   reads as a hole cut in the stage rather than a badge sitting on it, and it is what
   darkens behind the gem. The atlas carries the same disc twice: _bai is white, meant
   to be tinted, and icon_gem_type_03 is the same shape pre-baked black at alpha 230 --
   which is where the 0.9 comes from. The white one is taken, so the colour stays in
   CSS and the chosen socket can deepen without a second file.
   72 of the socket's 152 = 47.4%, and our box is the 106 ring, so 68% of it. */
.inv-enh__sock-disc{inset:16%;z-index:0;background:#000;opacity:var(--sock-disc-o,.9);
	-webkit-mask:url(../images/game-icons/gem-disc.webp) center/contain no-repeat;
	        mask:url(../images/game-icons/gem-disc.webp) center/contain no-repeat}
.inv-enh__socket.is-picked{--sock-disc-o:.97}
/* THE RING CARRIES THE SEATED GEM'S QUALITY, AND NOTHING ELSE'S. On the player's own
   screen a mythical piece shows three mythical gems in red rings and its fourth,
   holding a gold gem, in a gold one -- so it is the gem's, not the gear's. EMPTY IS
   COLOURLESS (user, 30 Oct): an empty socket announces nothing, it just waits. The
   form inside never takes a colour either way; that pair was the wrong way round once. */
.inv-enh__sock-ring{background:var(--sock-q,#5d6673);
	-webkit-mask:url(../images/game-icons/gem-ring-disc.webp) center/100% 100% no-repeat;
	        mask:url(../images/game-icons/gem-ring-disc.webp) center/100% 100% no-repeat}
/* The ornament. Which of the three the game picks is not in the shipped tables, so the
   band is read off the screen: a gold gem and a mythical II BOTH wear 03d, which is why
   the top band opens at legendary rather than at mythical. Below rare there is none --
   the game's fourth state for this layer is icon_gem_type_03_transparent. */
.inv-enh__sock-orn{display:none;background:var(--sock-q,#5d6673);opacity:.92;
	-webkit-mask:var(--sock-orn) center/100% 100% no-repeat;
	        mask:var(--sock-orn) center/100% 100% no-repeat}
/* AN EMPTY SOCKET IS NOT A BARE RING. I had read the prefab's fourth state for this
   layer (icon_gem_type_03_transparent) as "nothing while empty", but the player's own
   screen shows an empty socket wearing the dotted ring -- so empty gets the first
   ornament, in the same neutral steel as the rest of it. Colour still waits for a gem;
   only the pattern is there. */
.inv-enh__socket[data-rank="0"] .inv-enh__sock-orn,
.inv-enh__socket[data-rank="1"] .inv-enh__sock-orn,
.inv-enh__socket[data-rank="2"] .inv-enh__sock-orn,
.inv-enh__socket[data-rank="3"] .inv-enh__sock-orn{display:block;
	--sock-orn:url(../images/game-icons/gem-ring-lit.webp)}
.inv-enh__socket[data-rank="4"] .inv-enh__sock-orn{display:block;
	--sock-orn:url(../images/game-icons/gem-ring-top.webp)}
.inv-enh__socket[data-rank="5"] .inv-enh__sock-orn,
.inv-enh__socket[data-rank="6"] .inv-enh__sock-orn,
.inv-enh__socket[data-rank="7"] .inv-enh__sock-orn,
.inv-enh__socket[data-rank="8"] .inv-enh__sock-orn,
.inv-enh__socket[data-rank="9"] .inv-enh__sock-orn,
.inv-enh__socket[data-rank="10"] .inv-enh__sock-orn{display:block;
	--sock-orn:url(../images/game-icons/gem-ring-orn.webp)}
/* IT DOES NOT TURN. Same lesson as the stage linework: the socket's rings are drawn
   layers and what moves in the game is the particle system elsewhere on the screen.
   Spinning this put the motion on the wrong thing twice. */
/* An empty socket is the bare ring, no ornament, no colour: a grey form with a plus
   on it, waiting. The ornament and the colour arrive with the gem. */
/* m_PicShape is 92 of the socket's 152 = 60.5%, so the plate is inset 19.75% a side. */
.inv-enh__sock-plate{inset:19.75%;
	-webkit-mask:var(--sock-shape) center/contain no-repeat;
	        mask:var(--sock-shape) center/contain no-repeat;
	/* Grey while empty; a seated gem covers it with its own art. */
	background:linear-gradient(158deg,#aeb6c2,#6f7886 52%,#424a58);
	filter:drop-shadow(0 1px 3px rgba(0,0,0,.5))}
/* THE FORM IS NOT NUMBERED THE WAY THE SOCKET IS. gemUnlock's type 1/2/3 are the
   strategy, hero and tactics gems, and the atlas letters do NOT run in that order:
   the gem pips the game prints on a gear tile show the helmet (type 1, strategy)
   wearing the SQUARE (02b), the gloves (type 2, hero) the octagon (02a) and the chest
   (type 3, tactics) the dome (02c). Writing socket-1 on the octagon is exactly how the
   helmet came to show the gloves' form, so the files now carry the atlas letter and
   the mapping is stated here once. */
.inv-enh__socket[data-type="1"]{--sock-shape:url(../images/game-icons/gem-shape-b.webp)}
.inv-enh__socket[data-type="2"]{--sock-shape:url(../images/game-icons/gem-shape-a.webp)}
.inv-enh__socket[data-type="3"]{--sock-shape:url(../images/game-icons/gem-shape-c.webp)}
/* The universal socket. icon_gem_type_02d was missing from the extracted atlas and
   its outline was derived from the inlay gem's own art; the real sprite was then found
   in the game's DOWNLOADED tree (Documents/doc/ifs/res/dynamic/puffer1), which carries
   the full module where the shipped bundle only has a bootstrap slice. It is the same
   six-pointed star, now the game's own file. */
.inv-enh__socket[data-type="4"]{--sock-shape:url(../images/game-icons/gem-shape-d.webp)}
/* Gem Attributes prints the same form beside each line, so it reads the same mapping
   rather than keeping a second copy of it. */
.inv-enh__gem[data-type="1"]{--sock-shape:url(../images/game-icons/gem-shape-b.webp)}
.inv-enh__gem[data-type="2"]{--sock-shape:url(../images/game-icons/gem-shape-a.webp)}
.inv-enh__gem[data-type="3"]{--sock-shape:url(../images/game-icons/gem-shape-c.webp)}
.inv-enh__gem[data-type="4"]{--sock-shape:url(../images/game-icons/gem-shape-d.webp)}

/* The gem's own picture, then its tier numeral in the game's art font under it. */
/* m_PicGem 80 / 152 = 52.6%. */
.inv-enh__sock-img{position:relative;z-index:2;width:43.6%;height:auto}
/* THE SEATED GEM, BUILT FROM ITS CODE -- the same two sprites the picker stacks:
   m_PicItem, the crystal cut by the socket's type and coloured by the quality, and
   m_PicIcon, the white glyph of the effect. Both carry their own margin inside a
   square canvas, so both are laid at ONE size and land where the game puts them;
   --sock-gem is that size, and it is a variable so the lab can move it.
   The crystal fills about 80% of its canvas and the old baked plate was tuned to
   43.6% of the socket, which is where 55% comes from. */
.inv-enh__sock-gem{position:absolute;left:50%;top:50%;translate:-50% -50%;z-index:2;
	width:var(--sock-gem,55%);aspect-ratio:1;pointer-events:none}
.inv-enh__sock-gem::before,
.inv-enh__sock-gem::after{content:'';position:absolute;inset:0}
/* The same two layers wherever the gem is printed small -- the pip on a gear tile and
   the plate in the Inlay band. There they fill their box; only the socket holds it to
   a share of the disc. */
.inv-gear-tile__gem .inv-enh__sock-gem,
.inv-enh__gem-ico .inv-enh__sock-gem,
.inv-enh__seated-ico .inv-enh__sock-gem{position:absolute;inset:0;width:auto;
	left:0;top:0;translate:none}
.inv-enh__gem-ico > img{position:absolute;inset:0;width:100%;height:100%;
	object-fit:contain}
.inv-enh__sock-gem::before{background:var(--gem-cry) center/contain no-repeat}
/* Same 85% as the tiles, for the same reason -- see the note there. */
.inv-enh__sock-gem::after{opacity:var(--gem-glyph-o,.85);
	background:var(--gem-glyph) center/contain no-repeat}
/* THE NUMERAL IS TWO SPRITES, like everything else here: m_Pic_ArtFontBg is a soft
   dark-red glow and m_Pic_ArtFont the figure on it (artfont_baoshi01..07 -- the game
   carries I to VII; this site's ladder stops at IV). Both are 44px and concentric, so
   the plate is painted behind the figure's own box rather than placed separately.
   m_Pic_ArtFontBg is 36 of the socket's 152 = 23.7%, which is where the size comes
   from. The prefab puts it at y -28 (18.4% below centre); on this socket it sat too
   high, so the anchor was tuned against the screen and the figure now hangs off the
   crystal's foot the way the game's does.

   THE GLOW PLATE IS NOT DRAWN. m_Pic_ArtFontBg is a soft dark-red disc and the socket
   already sits on a ring, a crystal and a tinted ornament -- a fourth soft layer under
   the figure read as a smear of shadow rather than as a plate. The figure carries its
   own glow in the sprite. */
/* Worn by the socket AND by the Inlay band's gem -- both hang it off a
   position:relative box the same way, so one rule places it in both and there is
   only ever one set of numbers to tune. */
.inv-enh__sock-num{position:absolute;z-index:3;left:50%;top:66%;
	translate:-50% calc(-50% + 18.4%);width:23.7%;height:auto;pointer-events:none}

.inv-enh__socket:not(.is-open){opacity:.5;filter:grayscale(.7);cursor:default}
.inv-enh__sock-lock{position:relative;z-index:2;width:34%;height:auto;opacity:.8}
.inv-enh__sock-at{position:absolute;bottom:-18%;left:50%;translate:-50% 0;z-index:2;
	font-size:.58rem;color:rgba(226,232,240,.7);white-space:nowrap}
/* Pic_Add is 64 of the socket's 152 = 42%; at 30% it read as a hairline. */
.inv-enh__sock-add{position:relative;z-index:2;width:42%;height:auto;opacity:.95}

/* The chosen socket wears the game's own ring -- pic_gem_01d, a drawn gold circle with
   its own soft outer halo, not a CSS border pretending to be one. */
/* icon_gem_type_03_select is 136 of 152 = 89.5%, so it sits just inside the socket. */
.inv-enh__socket.is-picked::after{content:'';position:absolute;inset:5.25%;z-index:5;
	pointer-events:none;
	background:url(../images/game-icons/gem-slot-picked.webp) center/contain no-repeat;
	filter:drop-shadow(0 0 5px rgba(243,201,105,.5))}
.inv-enh__socket.is-open:hover .inv-enh__sock-plate{filter:brightness(1.12) drop-shadow(0 1px 3px rgba(0,0,0,.5))}
.inv-enh__socket:focus-visible{outline:2px solid #f3c969;outline-offset:3px;border-radius:50%}

/* m_LabLv -- 95 below the centre of the 556 ring. */
.inv-enh__lv{position:absolute;left:50%;top:calc(50% + var(--lv-y));z-index:7;
	margin:0;translate:-50% -50%;white-space:nowrap;
	font-family:Rajdhani,system-ui,sans-serif;font-weight:700;
	font-size:var(--lv-size);letter-spacing:.03em;color:#fff;
	text-shadow:0 2px 4px rgba(0,0,0,.75),0 0 8px rgba(0,0,0,.5)}

/* ── the star row ──────────────────────────────────────────────────────────── */
/* frame_munbg_gem -- the dark chevron the stars sit on. */
/* Pan_Star -- 140 below centre, 256 wide of 556. The strip sizes itself to the stars
   inside it, so --star-w sets the stars and the plate follows. */
/* THE BAR THE GAME PUTS UNDER THE STARS: ui_n_button/btn_n_hud_yw_04, 130x36 -- a
   grey pill with angled ends. It had been carrying a 92x40 sprite that was simply the
   wrong one.
   NINE-SLICED, not stretched. The bar is wider than the sprite, and scaling the whole
   thing to fit drags the angled caps out with it; border-image holds them at their
   drawn size and stretches only the flat middle. border-width 0 so the plate paints
   inward and the stars keep their box. */
.inv-enh__starbar{position:absolute;left:50%;top:calc(50% + var(--star-y));z-index:7;
	translate:-50% -50%;width:var(--star-w);display:grid;place-items:center;
	aspect-ratio:var(--star-bar-ar,256 / 48);border:0;
	/* ⚠ SLICE HORIZONTALLY ONLY. The sprite is 36 tall, so a slice of 18 on every
	   side takes 18 off the top and 18 off the bottom and leaves the middle region
	   ZERO pixels high -- there is then nothing to stretch and the bar comes out
	   hollow through the middle. Top and bottom are 0: the caps are at the ends, and
	   only the flat middle needs to give. */
	border-image:url(../images/game-icons/gear-star-strip.webp)
		0 var(--star-bar-slice,18) fill / 0 var(--star-bar-cap,18px) stretch}
/* ⚠ A PERCENTAGE NEEDS A PARENT THAT HAS A WIDTH OF ITS OWN. .inv-enh__stars is an
   inline-flex, so it is shrink-to-fit: its width comes from its children. Sizing the
   children at 21% OF IT made that circular, the intrinsic pass counted them as zero,
   the row collapsed and the stars disappeared entirely -- the bar looked empty rather
   than broken. The row is stretched to the bar first, so 21% has the bar to measure
   against. Third time this session; the act diamonds and the gem arc were the same. */
.inv-enh__starbar .inv-enh__stars{position:relative;z-index:1;
	width:100%;justify-content:center}
.inv-enh__starbar .inv-enh__star{width:18%;height:auto;aspect-ratio:1;flex:none}
.inv-enh__stars{display:inline-flex;align-items:center;gap:2px}
.inv-enh__star{position:relative;display:inline-block;width:26px;height:26px}
.inv-enh__star img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
/* The band's own row runs bigger than a line's, the way the game sizes the two. */
.inv-enh__band--stars .inv-enh__star{width:30px;height:30px}
.inv-enh__lvrow .inv-enh__star{width:27px;height:27px}
.inv-enh__star--row{width:21px;height:21px;flex:none}

/* ── the panel ─────────────────────────────────────────────────────────────── */
.inv-enh__panel{min-width:0}
/* The name carries the rarity too: gold on a legendary piece, orange on a mythical
   one -- the same distinction the band under it makes. */
.inv-enh__title{margin:0;font-family:Rajdhani,system-ui,sans-serif;font-weight:700;
	font-size:clamp(1.05rem,3cqi,1.45rem);letter-spacing:.04em;text-transform:uppercase;
	color:#f0cf86;text-shadow:0 2px 5px rgba(0,0,0,.6)}
.inv-enh [data-rarity="mythical"] .inv-enh__title{color:#ee8a3a}
.inv-enh [data-rarity="epic"] .inv-enh__title{color:#c48ff0}
.inv-enh [data-rarity="rare"] .inv-enh__title{color:#7fb6f5}
/* The game's rule is a hairline with a small diamond at each end. */
.inv-enh__rule{position:relative;height:1px;margin:7px 0 9px;
	background:linear-gradient(90deg,rgba(242,200,121,0),rgba(242,200,121,.5) 12%,
		rgba(242,200,121,.5) 88%,rgba(242,200,121,0))}
.inv-enh__rule::before,
.inv-enh__rule::after{content:'';position:absolute;top:50%;width:5px;height:5px;
	translate:0 -50%;rotate:45deg;background:rgba(242,200,121,.65)}
.inv-enh__rule::before{left:0}
.inv-enh__rule::after{right:0}

/* The Lv + stars row is the piece's QUALITY BAND -- frame_heroequip_01a..01f, the same
   six grounds the Level view uses. It belongs to this row, not to the name above it. */
.inv-enh__lvrow{display:flex;align-items:center;gap:8px;padding:6px 11px;
	background:url(../images/game-icons/qual-band-legendary.webp) center/100% 100% no-repeat}
.inv-enh [data-rarity="rare"] .inv-enh__lvrow{background-image:url(../images/game-icons/qual-band-rare.webp)}
.inv-enh [data-rarity="epic"] .inv-enh__lvrow{background-image:url(../images/game-icons/qual-band-epic.webp)}
.inv-enh [data-rarity="legendary"] .inv-enh__lvrow{background-image:url(../images/game-icons/qual-band-legendary.webp)}
.inv-enh [data-rarity="mythical"] .inv-enh__lvrow{background-image:url(../images/game-icons/qual-band-mythical.webp)}
.inv-enh__lvrow .inv-enh__stars{margin-left:auto}
/* The same badge the strip tile and the orb wear, so the three read as one mark. It
   is a whole plate rather than an emblem, so it is given room to be one: 18px drew the
   diamond smaller than the text beside it. */
.inv-enh__lvrow-ico{width:var(--lvrow-ico,26px);height:var(--lvrow-ico,26px);
	object-fit:contain;flex:none}
.inv-enh__lvrow-lv{flex:1;min-width:0;font-family:Rajdhani,system-ui,sans-serif;
	font-weight:700;font-size:.92rem;color:#f6e7c4}

.inv-enh__h{margin:10px 0 0;padding:4px 10px;
	font-family:Rajdhani,system-ui,sans-serif;font-weight:700;font-size:.82rem;
	letter-spacing:.1em;text-transform:uppercase;color:#f0d49a;
	background:rgba(46,60,82,.55)}

.inv-enh__row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;
	align-items:center;gap:9px;padding:7px 10px;
	background:rgba(26,35,50,.5);border-bottom:1px solid rgba(255,255,255,.05)}
/* No nth-of-type striping here: the rows share the div tag with the headings and the
   gem groups between them, so it would count those too and the bands would land on the
   wrong lines. One ground plus a hairline reads as the game's table either way. */
.inv-enh__row-lbl{grid-column:2;min-width:0;font-size:.82rem;line-height:1.3;
	color:rgba(238,243,250,.94)}
.inv-enh__row-val{grid-column:3;font-family:Rajdhani,system-ui,sans-serif;font-weight:700;
	font-size:.95rem;color:#fff;white-space:nowrap}
.inv-enh__row--star .inv-enh__star{grid-column:1}
.inv-enh__row.is-locked{opacity:.45}

/* A gem's plate stands beside the one or two lines it gives, so a composite reads as
   one gem granting two things rather than as two gems. */
.inv-enh__gem{display:grid;grid-template-columns:26px minmax(0,1fr);align-items:center;
	gap:8px;background:rgba(26,35,50,.5);border-bottom:1px solid rgba(255,255,255,.05)}
.inv-enh__gem-ico{position:relative;width:26px;height:26px;margin-left:10px}
.inv-enh__gem-rows{min-width:0}
.inv-enh__gem-rows .inv-enh__row{background:none;border:0;padding-left:0}

/* ── the two (or three) action diamonds under the piece ────────────────────── */
/* Plate and icon, not one picture: icon_hero_bg_tog carries every one of them and the
   glyph on top says which. The forge only exists on a piece that can still convert. */
/* THE PLATES ARE PLACED AGAINST THE ORB, each one absolutely, not laid out in a row.
   As a flex row the row's own width was shrink-to-fit, so --act-size resolved against a
   box that the plates themselves were sizing -- circular, and the reason it took 60% to
   get a plate of ordinary size. Now every percentage here means a share of the orb.

   --act-gap is each plate's distance from the centre and --act-x shifts the pair. */
.inv-enh__acts{position:absolute;inset:0;z-index:7;pointer-events:none}
.inv-enh__act{position:absolute;left:50%;top:calc(50% + var(--act-y));
	width:var(--act-size);aspect-ratio:1;pointer-events:auto;
	display:grid;place-items:center;
	appearance:none;border:0;padding:0;cursor:pointer;
	background:url(../images/game-icons/gear-act-plate.webp) center/contain no-repeat;
	transition:filter .12s}
/* The spread goes through LEFT, not translate: a translate percentage resolves against
   the button, so --act-gap was a share of a plate rather than of the orb and it took 80%
   to move one a sixth of the way out. Through left it means what it says. */
.inv-enh__acts > .inv-enh__act{translate:-50% -50%}
.inv-enh__acts > .inv-enh__act:nth-child(1){
	left:calc(50% + var(--act-x) - var(--act-gap))}
.inv-enh__acts > .inv-enh__act:nth-child(2){
	left:calc(50% + var(--act-x) + var(--act-gap))}
.inv-enh__act:hover{filter:brightness(1.12)}
.inv-enh__act:focus-visible{outline:2px solid #f3c969;outline-offset:3px}
.inv-enh__act-ico{width:58%;height:auto}
/* Selected adds the game's gold frame OVER the blue plate -- icon_hero_bg_tog02 is an
   outline on transparent, so swapping the background for it would take the plate away
   and leave the glyph floating in a gold diamond. Three layers, not two. */
.inv-enh__act.is-on::after{content:'';position:absolute;inset:-4%;pointer-events:none;
	background:url(../images/game-icons/gear-act-plate-on.webp) center/contain no-repeat;
	filter:drop-shadow(0 0 6px rgba(243,201,105,.5))}

/* ── Inlay Gem ─────────────────────────────────────────────────────────────── */
.inv-enh__view[hidden]{display:none}
/* The seated gem reads as one band: its plate, what it gives, and the way out. */
/* Pic_Frame on Pan_EquipGemImplantDetail -- pic_gem_bg_01, the band the game puts
   behind the gem's lines: a rune circle at the left, where the stone sits, and a slow
   smoke wash across the rest. It is 500x111 and this band runs wider, so it stretches;
   the pattern is soft enough to take it, and the gradient under it carries the ends
   where the sprite has nothing left to give. */
/* A FIXED HEIGHT, not one the content sets. The band holds one line for an ordinary
   gem and two for a composite, so left to itself it changed height as the player moved
   across the list. 102px is about the sprite's own 111, so the pattern reads at its
   drawn scale and the row stops jumping. */
.inv-enh__seated{position:relative;display:grid;height:104px;
	grid-template-columns:auto minmax(0,1fr);
	align-items:center;gap:10px;padding:9px 22px 9px 10px;
	background:linear-gradient(90deg,rgba(54,74,98,.6),rgba(38,52,72,.42) 70%,rgba(38,52,72,.2))}
/* THE PATTERN IS HALF-STRENGTH, and it is a layer of its own to get there: `opacity`
   on the band would take the gem and its figures down with it, and fading a background
   image in place is not something a background shorthand can do. So the sprite moves
   to its own sheet behind the content. */
.inv-enh__seated::before{content:'';position:absolute;inset:0;z-index:0;
	pointer-events:none;opacity:var(--gem-bg-o,.3);
	background:url(../images/game-icons/gem-detail-bg.webp) center/100% 100% no-repeat}
.inv-enh__seated > *{position:relative;z-index:1}
/* Sized against the band: the game gives the stone a little under three fifths of the
   height, and the band is 102. The margin sets it over the rune circle the pattern
   draws, which sits in from the left edge. Both are variables -- this is the piece
   that has wanted nudging most. */
.inv-enh__seated-ico{position:relative;flex:none;
	width:var(--gem-ico,60px);height:var(--gem-ico,60px);
	margin-left:var(--gem-ico-x,9px)}
.inv-enh__seated-lbl{min-width:0;font-size:.86rem;color:rgba(238,243,250,.94)}
/* A chosen gem may grant TWO things -- a composite always does -- so the band holds a
   list, each line its own label and figure, the way the game stacks them. */
.inv-enh__seated-lines{display:flex;flex-direction:column;gap:2px;min-width:0}
/* THE FIGURE SITS AGAINST THE LABEL, not out at the far edge. The game writes the
   line as one sentence -- "All unit types' health +5.25%" -- and space-between pushed
   the number to the other side of a wide band, where it read as a separate column. */
.inv-enh__seated-line{display:flex;align-items:baseline;justify-content:flex-start;
	flex-wrap:wrap;gap:0 8px;min-width:0;padding:3px 0}
.inv-enh__seated-line + .inv-enh__seated-line{border-top:1px solid rgba(255,255,255,.08)}
.inv-enh__seated-line .inv-enh__seated-lbl{flex:0 1 auto}
.inv-enh__seated-val{flex:none;font-family:Rajdhani,system-ui,sans-serif;font-weight:700;
	color:#8ee6a0}
.inv-enh__seated-val:empty{display:none}
.inv-enh__seated-empty{grid-column:1 / -1;margin:0;font-size:.82rem;
	color:rgba(226,232,240,.55)}
/* IDLE. The band keeps its shape with nothing in it: the socket's own form (m_PicShape,
   the same sprite the socket wears) drawn flat and pale, and the word beside it. The
   mapping is the one stated once at the socket -- type 1 is the square, 2 the octagon,
   3 the dome, 4 the star -- read here through the same variable. */
.inv-enh__seated[data-type="1"]{--sock-shape:url(../images/game-icons/gem-shape-b.webp)}
.inv-enh__seated[data-type="2"]{--sock-shape:url(../images/game-icons/gem-shape-a.webp)}
.inv-enh__seated[data-type="3"]{--sock-shape:url(../images/game-icons/gem-shape-c.webp)}
.inv-enh__seated[data-type="4"]{--sock-shape:url(../images/game-icons/gem-shape-d.webp)}
.inv-enh__seated-idle{position:absolute;inset:6%;
	-webkit-mask:var(--sock-shape) center/contain no-repeat;
	        mask:var(--sock-shape) center/contain no-repeat;
	background:linear-gradient(158deg,#cdd4df,#9aa3b1 52%,#6f7886);opacity:.62}
.inv-enh__seated.is-idle .inv-enh__seated-lbl{color:rgba(226,232,240,.6)}
/* THE REMOVE DIAMOND IS NEVER DIMMED AND NEVER TINTED. It is the one control on this
   screen that throws something away, and the game draws it at full strength, clear of
   everything, in its own colours -- so it carries its own stacking context, no opacity
   and no filter that could shift the red. Hover lifts it with a glow instead of a
   brightness pass, which is what was washing the bar out.
   The game hangs it on the band's top-right corner; it does the same here. */
/* ONE SPRITE, NOT TWO. btn_n_cancel_02 is the game's whole control -- a near-black
   diamond with the red bar already on it -- so it is drawn as one piece instead of a
   plate with a bar laid over it. Its body ships at 204 of 255 alpha, because the game
   puts it on a lit panel; here it sits on dark art, so the alpha is lifted to full in
   the file. That is the whole point of this control reading as near-black: it throws
   something away, and a player has to see that it is there. */
.inv-enh__seated-rm{position:absolute;top:7px;right:4px;z-index:6;
	width:45px;height:45px;appearance:none;border:0;padding:0;cursor:pointer;
	display:grid;place-items:center;opacity:1;filter:none;
	background:url(../images/game-icons/btn-remove.webp) center/contain no-repeat;
	transition:transform .12s ease}
.inv-enh__seated-rm:hover{transform:scale(1.1);
	filter:drop-shadow(0 0 6px rgba(226,84,70,.75))}
.inv-enh__seated-rm:focus-visible{outline:2px solid #f3c969;outline-offset:3px}

/* The host the editor's own gem picker moves into. The panel arrives with the rarity
   and tier rows and the grid already in it; what follows dresses THAT grid as the
   game's GEMS list without replacing it, so every click still lands in the field the
   save reads.

   HOW THE GAME PRINTS A GEM -- ListItem_GemItem_UGUI, layer by layer:
     m_PicItemBG      ui_menuitem4 box_1..box_5 + box_7   the rarity tile
     m_PicItem        icon_packageitem/item_<id>          the crystal
     m_Pic_ArtFont(Bg) artfont_baoshi01..07 + _bg         the numeral, bottom left
     m_LabNum                                             the stack count, bottom right
     Pic_Frame/Pic_Equip  pic_gem_05a + pic_gem_05b       the already-inlaid badge
     m_PicCoverBG + m_RemotePicrImage                     whose hero holds it
     Pic_Select       pic_n_xzk_add_yw_01                 the chosen outline
   Six tiles for six steps: box_6 exists in the atlas and this list item never asks
   for it. The count, the inlaid badge and the hero portrait have no meaning here --
   the site plans a build, it does not keep an inventory -- so they are left out
   rather than faked. */
.inv-enh__gemhost{max-height:min(52vh,30rem);overflow:auto}

/* ONE SOCKET, ONE LIST. The editor's panel holds everything the PIECE can take --
   for boots that is three type groups at once -- and the game never shows more than
   the socket in hand accepts. data-socket-type is put on the host when a socket is
   tapped; these hide the rest. The composites are the fourth socket's alone, and on
   the fourth socket they are the only thing there. */
.inv-enh__gemhost[data-socket-type="1"] .inv-gem-type-group:not([data-type="strategy_gems"]),
.inv-enh__gemhost[data-socket-type="2"] .inv-gem-type-group:not([data-type="hero_gems"]),
.inv-enh__gemhost[data-socket-type="3"] .inv-gem-type-group:not([data-type="tactics_gems"]){display:none}
.inv-enh__gemhost:not([data-socket-type="4"]) .inv-gem-composite-section{display:none}
.inv-enh__gemhost[data-socket-type="4"] .inv-gem-type-sections,
.inv-enh__gemhost[data-socket-type="4"] .inv-gem-grid:not([data-type="composite_gems"]),
.inv-enh__gemhost[data-socket-type="4"] .inv-gem-grar-pick,
.inv-enh__gemhost[data-socket-type="4"] .inv-gem-mit-pick:not(.inv-gem-cmit-pick){display:none}
/* ...and on the fourth socket the composites' OWN pair stands down too: the ladder
   above now writes those fields, so leaving them visible put two quality pickers on
   one screen, saying the same thing twice. */
.inv-enh__gemhost[data-socket-type="4"] .inv-gem-rarity-pick,
.inv-enh__gemhost[data-socket-type="4"] .inv-gem-cmit-pick{display:none}
/* With one group showing, its heading is saying what the socket already said. */
.inv-enh__gemhost .inv-gem-type-group-label{display:none}
.inv-enh__gemhost .inv-gear-panel{display:block}
.inv-enh__gemhost .inv-gem-panel-head{display:none}

/* THE GRID. The game runs five across in a panel of its own width; this column is
   wider, so the tile is held to a size that keeps the whole list on one screen and
   the row simply takes as many as it fits. */
.inv-enh__gemhost .inv-gem-grid{display:grid;gap:6px;justify-content:space-between;
	grid-template-columns:repeat(auto-fill,minmax(58px,1fr))}
/* THE TILE. One square of the rarity's own texture with the crystal on it. The site
   picks a gem and ITS RARITY on separate rows, so a tile shows the rarity that is
   armed -- which is exactly what the player is about to seat. */
.inv-enh__gemhost .inv-gem-option{position:relative;aspect-ratio:1;width:auto;height:auto;
	min-width:0;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer;
	display:grid;place-items:center;overflow:hidden;
	background-image:var(--gem-tile,url(../images/game-icons/gem-tile-mythical.webp));
	background-size:100% 100%;background-position:center;background-repeat:no-repeat;
	box-shadow:inset 0 0 0 1px rgba(0,0,0,.35);
	transition:transform .12s ease,box-shadow .12s ease}
/* THE COMPOSITE PLATE, SIZED TO MATCH THE BUILT ONES. This is the only art still
   drawn as an image -- a composite's picture IS its rarity, one plate per step -- so
   it has to end up the same size on the tile as the crystals beside it. The plate
   fills 98.4% of its own canvas while a crystal fills 75-81% of its, so at the same
   box the plate drew a quarter too big: 79% is what puts the two at one size. No
   shadow either, for the same reason the crystals have none -- the art carries its
   own, and a second one read as a smudge. */
.inv-enh__gemhost .inv-gem-option > img{width:88%;height:88%;object-fit:contain;
	filter:none}
.inv-enh__gemhost .inv-gem-option:hover{transform:translateY(-1px);
	box-shadow:inset 0 0 0 1px rgba(255,255,255,.35),0 3px 10px rgba(0,0,0,.45)}
/* Pic_Select -- the chosen tile is ringed, not recoloured. */
.inv-enh__gemhost .inv-gem-option.is-on,
.inv-enh__gemhost .inv-gem-option[aria-pressed="true"]{
	box-shadow:inset 0 0 0 2px #f3c969,0 0 10px rgba(243,201,105,.45)}
/* THE SOCKET DECIDES, NOT THE PIECE. The editor greys every ordinary gem once the
   piece has all the ordinary gems it can hold -- right on a card that shows the whole
   piece at once, and wrong here, where the list is already narrowed to ONE socket the
   player has open. With a gem taken out of that socket the tiles stayed grey and
   looked dead, so inside this host the piece-wide gate is lifted and the only thing
   that greys a tile is the socket it would go into being occupied. */
/* AND IT MUST STILL TAKE A CLICK. The editor's rule is `opacity:.2;pointer-events:none`
   -- lifting the fade but leaving the pointer off made the tiles look alive and swallow
   every tap, which is exactly what "cannot pick a gem for an empty socket" was. */
.inv-enh__gemhost .inv-gem-option.inv-gem-disabled{filter:none;opacity:1;cursor:pointer;
	pointer-events:auto}
.inv-enh__gemhost[data-socket-filled="1"] .inv-gem-option{filter:grayscale(.65) brightness(.6);
	cursor:default}
/* The chosen tile waits for INLAY, the way the game makes you press it. */
.inv-enh__gemhost .inv-gem-option.is-chosen{
	box-shadow:inset 0 0 0 2px #f3c969,0 0 12px rgba(243,201,105,.55)}
/* The tile's colour comes off the OPTION, not off the row: the editor already stamps
   data-rarity on every plate (and on the composites' too) whenever the rarity row is
   touched, so this reads what is already there instead of keeping a second copy. */
.inv-enh__gemhost .inv-gem-option[data-rarity="common"]{--gem-tile:url(../images/game-icons/gem-tile-common.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="uncommon"]{--gem-tile:url(../images/game-icons/gem-tile-uncommon.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="rare"]{--gem-tile:url(../images/game-icons/gem-tile-rare.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="epic"]{--gem-tile:url(../images/game-icons/gem-tile-epic.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="legendary"]{--gem-tile:url(../images/game-icons/gem-tile-legendary.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="mythical"]{--gem-tile:url(../images/game-icons/gem-tile-mythical.webp)}
/* THE GEM ITSELF, IN TWO PIECES -- the way ListItem_GemItem stacks it. m_PicItem is
   the crystal, cut by the socket's type and coloured by the gem's quality; m_PicIcon
   is the white glyph of the effect over it. The editor's own plate is one baked
   mythical crystal hue-rotated for the other five, so inside this host it steps aside
   and the game's own eighteen crystals and sixteen glyphs are drawn instead. The
   plate is HIDDEN, never replaced: the editor's markup, its src and its handlers are
   left exactly as they were, and only two custom properties are added by armoury.js. */
/* ONLY where the two layers actually arrived. The plate is the fallback, so a gem
   the glyph table does not know keeps the art it always had instead of going blank. */
.inv-enh__gemhost .inv-gem-option[data-cut] > img{display:none}
/* Both sprites carry their own margin inside a square canvas, so both are laid over
   the WHOLE tile and land at the share of it the game gives them. No shadow: the
   crystal already has its own baked in, and a second one read as a smudge. */
.inv-enh__gemhost .inv-gem-option[data-cut]::before{content:'';position:absolute;
	left:50%;top:50%;translate:-50% -50%;width:88%;height:88%;pointer-events:none;
	background:var(--gem-cry) center/contain no-repeat}
/* THE GLYPH SITS IN THE STONE, NOT ON IT. A composite's plate is one baked picture
   and its emblem reads at 85% of white, tinted by the crystal under it -- measured off
   advance-mythical, whose core averages (238,211,201) over a red stone. The built gems
   draw their glyph as a separate opaque sprite, which came out as a white sticker laid
   on the gem. Taking it to the same 85% lets the crystal through by the same amount,
   and the two now read as one material. */
.inv-enh__gemhost .inv-gem-option[data-cut]::after{content:'';position:absolute;
	left:49%;top:50%;translate:-50% -50%;width:78%;height:100%;z-index:2;
	pointer-events:none;opacity:var(--gem-glyph-o,.85);
	background:var(--gem-glyph) center/contain no-repeat}
.inv-enh__gemhost .inv-gem-option[data-rarity="common"][data-cut="1"]{--gem-cry:url(../images/game-icons/gem-crystal-common-1.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="common"][data-cut="2"]{--gem-cry:url(../images/game-icons/gem-crystal-common-2.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="common"][data-cut="3"]{--gem-cry:url(../images/game-icons/gem-crystal-common-3.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="uncommon"][data-cut="1"]{--gem-cry:url(../images/game-icons/gem-crystal-uncommon-1.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="uncommon"][data-cut="2"]{--gem-cry:url(../images/game-icons/gem-crystal-uncommon-2.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="uncommon"][data-cut="3"]{--gem-cry:url(../images/game-icons/gem-crystal-uncommon-3.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="rare"][data-cut="1"]{--gem-cry:url(../images/game-icons/gem-crystal-rare-1.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="rare"][data-cut="2"]{--gem-cry:url(../images/game-icons/gem-crystal-rare-2.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="rare"][data-cut="3"]{--gem-cry:url(../images/game-icons/gem-crystal-rare-3.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="epic"][data-cut="1"]{--gem-cry:url(../images/game-icons/gem-crystal-epic-1.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="epic"][data-cut="2"]{--gem-cry:url(../images/game-icons/gem-crystal-epic-2.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="epic"][data-cut="3"]{--gem-cry:url(../images/game-icons/gem-crystal-epic-3.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="legendary"][data-cut="1"]{--gem-cry:url(../images/game-icons/gem-crystal-legendary-1.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="legendary"][data-cut="2"]{--gem-cry:url(../images/game-icons/gem-crystal-legendary-2.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="legendary"][data-cut="3"]{--gem-cry:url(../images/game-icons/gem-crystal-legendary-3.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="mythical"][data-cut="1"]{--gem-cry:url(../images/game-icons/gem-crystal-mythical-1.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="mythical"][data-cut="2"]{--gem-cry:url(../images/game-icons/gem-crystal-mythical-2.webp)}
.inv-enh__gemhost .inv-gem-option[data-rarity="mythical"][data-cut="3"]{--gem-cry:url(../images/game-icons/gem-crystal-mythical-3.webp)}

/* m_Pic_ArtFont -- the numeral, bottom left on its own plate. The editor already puts
   the figure there as .inv-gem-opt-mit and already clears it below mythical, which is
   the only band the game numbers; this only moves it to the game's corner. */
/* ...and it is the game's ART FONT, the same artfont_baoshi the socket wears, on its
   own glow plate -- not a letter in the page's typeface. The figure is handed over as
   --gem-num by armoury.js, which reads it off the text the editor already wrote; the
   text itself is hidden rather than removed, so the editor's own pass still finds it. */
/* No glow plate on a tile: m_Pic_ArtFontBg is there to lift the figure off a dark
   socket, and on a bright rarity square it only muddied it. The socket keeps it. */
.inv-enh__gemhost .inv-gem-opt-mit{position:absolute;left:30%;bottom:-4%;z-index:3;
	width:38%;height:41%;font-size:0;color:transparent;text-shadow:none}
.inv-enh__gemhost .inv-gem-opt-mit::after{content:'';position:absolute;inset:0;
	background:var(--gem-num) center/contain no-repeat}
/* ⚠ THE NUMERAL IS THE TILE'S BUSINESS, NOT THE ELEMENT'S. Only the four steps above
   mythical are numbered, so a tile at any other step cannot carry one -- whatever is
   left lying in it. Hanging this on "is there an .inv-gem-opt-mit" trusted the editor
   to have cleared that element on every path, and switching pieces found a path where
   it had not: a III stayed stamped on common grey stones. Keyed on the tile's own
   rarity it is true by construction. */
.inv-enh__gemhost .inv-gem-option:not([data-rarity="mythical"]) .inv-gem-opt-mit{display:none}

/* THE QUALITY ROW IS NAMED, NOT COLOUR-CODED. Six 10px dots ask the player to know
   the palette by heart; the game's own filter prints the word and colours the word.
   The buttons are empty in the markup and carry their name in `title`, so the label
   is that attribute -- no second copy of the six names to drift out of step. */
.inv-enh__gemhost .inv-gem-grar-pick,
.inv-enh__gemhost .inv-gem-rarity-pick{display:flex;flex-wrap:wrap;gap:5px}
.inv-enh__gemhost .inv-gem-grar-opt,
.inv-enh__gemhost .inv-gem-rarity-opt{width:auto;height:auto;flex:1 1 auto;min-width:0;
	border-radius:0;background:rgba(18,26,41,.72);
	box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);transform:none;
	display:flex;align-items:center;justify-content:center;gap:5px;
	padding:5px 6px;line-height:1;
	font:700 .72rem/1 Rajdhani,system-ui,sans-serif;letter-spacing:.03em;
	color:var(--rar-ink,#cfd7e4)}
/* The game puts its own diamond before the name -- icon_gem_quality_01..06, one per
   step. Which is which was read off the sprites rather than off the numbering: 01 is
   amber, 02 purple, 03 blue, 04 teal, 05 grey, 06 red, so the file order is NOT the
   ladder's order. */
.inv-enh__gemhost .inv-gem-grar-opt::before,
.inv-enh__gemhost .inv-gem-rarity-opt::before{content:'';flex:none;
	width:11px;height:11px;background:var(--rar-gem) center/contain no-repeat}
.inv-enh__gemhost .inv-gem-grar-opt::after,
.inv-enh__gemhost .inv-gem-rarity-opt::after{content:attr(title);min-width:0;
	white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inv-enh__gemhost .inv-gem-grar-opt:hover,
.inv-enh__gemhost .inv-gem-rarity-opt:hover{transform:none;
	box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
.inv-enh__gemhost .inv-gem-grar-opt.is-on,
.inv-enh__gemhost .inv-gem-rarity-opt.is-on{transform:none;
	background:rgba(28,40,62,.95);
	box-shadow:inset 0 0 0 1px var(--rar-ink,#f3c969),0 0 8px rgba(0,0,0,.4)}
/* The site's one rarity palette, on the ink rather than on a dot. */
.inv-enh__gemhost .inv-gem-rarity-common{--rar-ink:#9ca3af;--rar-gem:url(../images/game-icons/qual-diamond-common.webp)}
.inv-enh__gemhost .inv-gem-rarity-uncommon{--rar-ink:#22c55e;--rar-gem:url(../images/game-icons/qual-diamond-uncommon.webp)}
.inv-enh__gemhost .inv-gem-rarity-rare{--rar-ink:#3b82f6;--rar-gem:url(../images/game-icons/qual-diamond-rare.webp)}
.inv-enh__gemhost .inv-gem-rarity-epic{--rar-ink:#a855f7;--rar-gem:url(../images/game-icons/qual-diamond-epic.webp)}
.inv-enh__gemhost .inv-gem-rarity-legendary{--rar-ink:#f59e0b;--rar-gem:url(../images/game-icons/qual-diamond-legendary.webp)}
.inv-enh__gemhost .inv-gem-rarity-mythical{--rar-ink:#ef4444;--rar-gem:url(../images/game-icons/qual-diamond-mythical.webp)}

/* ── the quality ladder ────────────────────────────────────────────────────────
   One row of ten, the way the game's forge draws it: a diamond per step on its own
   dark plate, the numeral under the four above mythical, and the chosen one in the
   gold frame -- with its name written underneath, which the game's row does not do
   and this one does because ten diamonds alone ask the player to know the palette.
   The editor's own two rows are hidden; this row only forwards to them. */
/* The ladder's own palette. It sits OUTSIDE the gem host, so it cannot borrow the
   variables defined in there -- that is why the diamonds came up blank the first
   time. data-rar is this row's own attribute, so nothing of the editor's leaks in. */
.inv-enh__qual [data-rar="common"]{--rar-ink:#9ca3af;--rar-gem:url(../images/game-icons/qual-diamond-common.webp)}
.inv-enh__qual [data-rar="uncommon"]{--rar-ink:#22c55e;--rar-gem:url(../images/game-icons/qual-diamond-uncommon.webp)}
.inv-enh__qual [data-rar="rare"]{--rar-ink:#3b82f6;--rar-gem:url(../images/game-icons/qual-diamond-rare.webp)}
.inv-enh__qual [data-rar="epic"]{--rar-ink:#a855f7;--rar-gem:url(../images/game-icons/qual-diamond-epic.webp)}
.inv-enh__qual [data-rar="legendary"]{--rar-ink:#f59e0b;--rar-gem:url(../images/game-icons/qual-diamond-legendary.webp)}
.inv-enh__qual [data-rar="mythical"]{--rar-ink:#ef4444;--rar-gem:url(../images/game-icons/qual-diamond-mythical.webp)}
.inv-enh__qual{margin:0 0 10px}
.inv-enh__qual-row{display:flex;flex-wrap:wrap;gap:4px;justify-content:center}
.inv-enh__qual-step{position:relative;flex:0 0 auto;appearance:none;border:0;padding:0;
	width:34px;height:34px;cursor:pointer;display:grid;place-items:center;overflow:visible;
	background:rgba(14,21,34,.8);
	box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);
	transition:box-shadow .12s ease,transform .12s ease}
/* The swatch is a small diamond in a large empty square -- it fills 28% of its own
   89px canvas -- so the box has to run well past the plate for the diamond to read at
   a sensible size. It is centred and purely decorative, so the overflow is harmless. */
.inv-enh__qual-step::before{content:'';width:200%;height:200%;
	background:var(--rar-gem) center/contain no-repeat}
.inv-enh__qual-step::before{pointer-events:none}
.inv-enh__qual-step > i{position:absolute;left:0;right:0;bottom:1px;z-index:2;
	font:700 .54rem/1 Rajdhani,system-ui,sans-serif;font-style:normal;
	letter-spacing:.04em;color:#fff2d8;text-shadow:0 1px 2px rgba(0,0,0,.9)}
.inv-enh__qual-step:hover{transform:translateY(-1px);
	box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
.inv-enh__qual-step.is-on{box-shadow:inset 0 0 0 2px #f3c969,0 0 9px rgba(243,201,105,.45)}
.inv-enh__qual-step:focus-visible{outline:2px solid #f3c969;outline-offset:2px}
.inv-enh__qual-name{margin:6px 0 0;text-align:center;background:none;
	font:700 .74rem/1 Rajdhani,system-ui,sans-serif;letter-spacing:.06em;
	text-transform:uppercase;color:var(--rar-ink,#cfd7e4)}
/* The two the editor keeps for the same thing stand down -- this row speaks for both.
   The composite section has its own pair and keeps them: a composite is chosen on a
   different axis and that row is the only place it can be said. */
.inv-enh__gemhost .inv-gem-grar-pick,
.inv-enh__gemhost .inv-gem-mit-pick:not(.inv-gem-cmit-pick){display:none}

/* The rows above the grid keep the editor's own look; only their spacing is the
   game's, so the list sits where the game's list sits. Edge to edge: the panel they
   came from had a card's padding around it, which here just left a margin inside a
   margin. */
.inv-enh__gemhost .inv-gem-rarity-pick,
.inv-enh__gemhost .inv-gem-mit-pick{margin:0 0 10px}
.inv-enh__gemhost .inv-gem-type-group{margin-bottom:12px}
/* The picker is laid out as a narrow column on its card -- it stands beside the
   editor's socket arc there. Here it IS the column, so it takes the host's width;
   without this the grid measured a shrink-to-fit parent and came out one tile wide. */
.inv-enh__gemhost .inv-gem-picker{display:block;width:100%;max-width:none}
.inv-enh__gemhost .inv-gem-grid{width:100%}
.inv-enh__gemhost .inv-gem-picker,
.inv-enh__gemhost .inv-gem-panel,
.inv-enh__gemhost .inv-gem-type-sections,
.inv-enh__gemhost .inv-gem-composite-section{padding-left:0;padding-right:0;
	margin-left:0;margin-right:0;border:0;background:none}
/* The picker arrives whole, and it brings the editor's own socket arc and gear
   thumbnail with it. This screen draws both itself -- the orb IS that arc -- so they
   stand down here rather than being left behind in the card, where their handlers
   would have been out of reach. */
.inv-enh__gemhost .inv-gem-slots-arc,
.inv-enh__gemhost .inv-gem-gear-img,
.inv-enh__gemhost .inv-gem-panel-head{display:none}
/* PINNED, not pushed. margin-top:auto still let the pair drift whenever the column
   measured shorter than the art beside it; nailed to the view's bottom edge they
   cannot move at all, whatever the gem list is showing. The view reserves their
   height so a long list scrolls under nothing. */
.inv-enh__inlay{position:relative;padding-bottom:var(--enh-foot-h,86px)}
.inv-enh__inlay-foot{position:absolute;left:0;right:0;bottom:0;margin:0;
	display:flex;justify-content:flex-end;align-items:flex-end;gap:6px}
.inv-enh__inlaybtn[disabled]{opacity:.45;cursor:default}

/* ── a gem pip on a gear tile ──────────────────────────────────────────────────
   Two layers, the way the game prints it: m_PicBg1_N is the socket's dark silhouette
   (icon_gem_type_01a-d) and m_PicGem1_N its form over that (02a-d), filled with the
   SEATED GEM'S quality. No glyph, no numeral -- at 13px they are noise, which is what
   putting the whole crystal in here had made. An empty socket keeps the silhouette
   alone, so the row still says how many sockets the piece has. */
/* Two variables, not one: the row is tuned narrower than it is tall, so width and
   height have to move apart. */
.inv-enh__pip{position:relative;display:inline-block;flex:none;
	width:var(--pip-w,10px);height:var(--pip-h,16px)}
.inv-enh__pip::before,
.inv-enh__pip::after{content:'';position:absolute;inset:0}
/* ⚠ THE TWO SPRITES DO NOT CARRY THE SAME MARGIN, so equal boxes do not give equal
   drawings. The silhouette fills 89-98% of its own canvas; the form only 69-75% of
   its. Laid out at the same size the black backing came out at 93% of the pip and the
   coloured form at barely 51% -- a thick ring with a small stone in it, which is not
   what the game draws. The boxes are set from those fills instead -- the form's runs
   PAST the pip, which is how a sprite carrying a third of its canvas as margin ends up
   the same size as one carrying almost none. */
/* Both layers in the SAME box, sized by transform (user 2026-11-11: "heryerde ikisi de
   aynı oranda büyüyüp küçülsün"). Separate insets (4% / -9%) put the two boxes on
   different fractional pixels that rounded apart as the tile resized; a scale about the
   shared centre keeps the stone seated in its hole at every size. Same fills as before. */
.inv-enh__pip::before{inset:0;transform:scale(.92);background:var(--pip-hole) center/contain no-repeat}
.inv-enh__pip::after{inset:0;transform:scale(1.18);background:var(--pip-q,#5d6673);
	-webkit-mask:var(--pip-form) center/contain no-repeat;
	        mask:var(--pip-form) center/contain no-repeat}
.inv-enh__pip.is-empty::after{display:none}
/* Type 1 is the square, 2 the octagon, 3 the dome, 4 the star -- the mapping stated
   once at the socket, read again here. */
.inv-enh__pip[data-type="1"]{--pip-hole:url(../images/game-icons/gem-hole-b.webp);--pip-form:url(../images/game-icons/gem-shape-b.webp)}
.inv-enh__pip[data-type="2"]{--pip-hole:url(../images/game-icons/gem-hole-a.webp);--pip-form:url(../images/game-icons/gem-shape-a.webp)}
.inv-enh__pip[data-type="3"]{--pip-hole:url(../images/game-icons/gem-hole-c.webp);--pip-form:url(../images/game-icons/gem-shape-c.webp)}
.inv-enh__pip[data-type="4"]{--pip-hole:url(../images/game-icons/gem-hole-d.webp);--pip-form:url(../images/game-icons/gem-shape-d.webp)}

/* ── the piece strip ───────────────────────────────────────────────────────────
   Four of the sheet's own gear tiles, side by side under the orb. They are the same
   component the hero sheet draws, so the strip needs placing, not restyling.

   THE EDITOR'S CARDS ARE INVISIBLE HERE. They stay in the document because they hold
   the fields the save reads -- a hidden input still posts -- but every pixel of them is
   gone: the screen draws the piece, its level, its stars and its sockets itself, and a
   second copy of all four underneath was the thing that kept looking wrong.

   Their panels are hidden too. The Level and Stars views now live in the right-hand
   column with their own steppers, and the gem picker is LIFTED into the Inlay view when
   a socket is tapped -- so a panel left visible down here is the stray rarity-and-tier
   column that kept floating over the screen with nothing asking for it. */
#inv-armoury-gear-controls{position:absolute;width:1px;height:1px;overflow:hidden;
	clip-path:inset(50%);white-space:nowrap}

/* The strip borrows inv-hap__gear for its TILE rules and throws away its container
   ones: that class also draws the sheet's five-slot plate behind the row, with a fixed
   aspect ratio and a column for the ring. Four tiles, evenly, on nothing. */
/* ⚠ CENTRED ON THE BAND, NOT STUCK TO ITS TOP. The glow band behind the strip is
   .inv-enh__cols::after -- 9rem tall, anchored to the column's floor. The tiles were
   laid out with align-items:start inside a box that did not match it, so they sat
   along the band's upper edge with all the empty space beneath them. The strip is
   the band's own height now and the tiles are centred in it. */
.inv-enh__strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
	gap:9px;align-items:center;min-height:9rem;max-width:26rem;
	aspect-ratio:auto;background-image:none;margin-bottom:0;
	/* Indented from the left the way the game sets it in, clear of the screen's edge.
	   ⚠ AND CLEAR OF THE WHEEL. The row sat right under the disc wheel's lower two
	   diamonds with about ten pixels between them, so the pieces read as hanging off
	   the wheel rather than standing as their own row. --enh-strip-top is the knob. */
	padding:0;margin-left:3.5rem;margin-top:var(--enh-strip-top,2.5rem)}
/* SPECIFICITY, and it was costing two tiles. Borrowing inv-hap__gear brings its
   five-slot placement with it -- .inv-hap__gear>:nth-child(1){grid-column:2} and so on,
   which is (0,2,0). This override was (0,1,0) and lost, so four tiles were being sent to
   columns 2, 4, 5 and 6 of a four-column grid and two of them landed outside it. */
.inv-enh__strip.inv-hap__gear > *{grid-column:auto}
.inv-enh__strip .inv-hap__tile,
.inv-enh__strip .inv-gear-slot{width:100%;max-width:none;cursor:pointer}
/* The open piece wears the gold ring the game puts on it. */
.inv-enh__strip .inv-gear-slot.is-open{outline:2px solid #f3c969;outline-offset:2px}
/* The badge the game puts in the plate's corner; the sheet's tile has no unit mark. */
/* The badge is the game's whole plate now, not a bare emblem, so it carries its own
   edge and needs no shadow under it -- one added a smudge around the diamond. */
.inv-enh__tile-unit{position:absolute;z-index:4;left:3px;top:5px;width:24px;height:27px;
	object-fit:contain;pointer-events:none}


/* ── the quality band, and the before/after language ───────────────────────────
   frame_heroequip_01a..01f are the game's six quality grounds and they ARE the rarity
   ladder -- grey, green, blue, purple, gold, red, in that order, the same palette the
   gem picker and the ring plates already use. The band takes the piece's own, which is
   why a legendary piece reads gold here without anything being told twice. */
.inv-enh__band{display:flex;align-items:center;gap:6px;padding:0 2px;margin-bottom:2px;
	background:url(../images/game-icons/qual-band-legendary.webp) center/100% 100% no-repeat}
.inv-enh [data-rarity="rare"] .inv-enh__band{background-image:url(../images/game-icons/qual-band-rare.webp)}
.inv-enh [data-rarity="epic"] .inv-enh__band{background-image:url(../images/game-icons/qual-band-epic.webp)}
.inv-enh [data-rarity="legendary"] .inv-enh__band{background-image:url(../images/game-icons/qual-band-legendary.webp)}
.inv-enh [data-rarity="mythical"] .inv-enh__band{background-image:url(../images/game-icons/qual-band-mythical.webp)}
/* icon_type_107 -- the game's level diamond. */
/* A little larger than it was: at 38 the unit mark sat small against the band's
   own height and the level beside it. 44 is a nudge, not a jump. */
.inv-enh__band-ico{width:44px;height:44px;flex:none;
	background:url(../images/game-icons/icon-level-diamond.webp) center/contain no-repeat}
.inv-enh__band-lbl{flex:1;min-width:0;font-size:.9rem;color:#fff;
	text-shadow:0 1px 2px rgba(0,0,0,.5)}
.inv-enh__band-val{display:flex;align-items:center;gap:7px;
	font-family:Rajdhani,system-ui,sans-serif;font-weight:700;font-size:.95rem;color:#ffe6b4}
.inv-enh__band--stars{justify-content:center;gap:14px}

/* arrow_n_entitylevelup_01 already points RIGHT -- rotating it turned the before/after
   arrow into a down-arrow, which read as "drops to". No rotation. */
.inv-enh__arrow{display:inline-block;width:13px;height:14px;flex:none;
	background:url(../images/game-icons/arrow-up-green.webp) center/contain no-repeat}
/* The band's arrow spans a whole star row, so it is the game's long gold one. */
.inv-enh__arrow--long{width:74px;height:26px;
	background-image:url(../images/game-icons/arrow-gold-long.webp)}
.inv-enh__next{font-style:normal;color:#6ee06e}
.inv-enh__max{font-style:normal;color:rgba(255,230,180,.6);font-size:.8rem;
	text-transform:uppercase;letter-spacing:.06em}
.inv-enh__row-val{display:inline-flex;align-items:center;gap:6px}
/* The row the next notch would feed, lit the way the game lights it. */
.inv-enh__row.is-next{background:linear-gradient(90deg,rgba(46,104,60,.5),rgba(26,35,50,.5) 60%)}
.inv-enh__row-lock{width:14px;height:14px;opacity:.6}

/* ── the steppers ──────────────────────────────────────────────────────────────
   Where the game asks for materials and sells one step, this records a build, so the
   cost block is a pair of arrows -- the same control the ring screen uses. They drive
   the editor's real fields; nothing is stored here. */
/* The ring screen's .inv-rings__acts carries the plates; this only places the row. */
.inv-enh__step{display:flex;align-items:center;gap:10px;margin-top:14px}
/* TWO EQUAL PLATES, not a plate and a chevron. The ring screen pairs its Upgrade with
   a small step-down because a Remove sits beside it; here the row is only ever "more"
   or "less", so the two read as one choice and are built the same -- the game's own
   gold plate for up and its red one (btn_common_red1) for down.

   The red sprite is 222x56 against the gold's 412x100, so its 9-slice inset is cut to
   match: 17 of 56 is the same share of the edge that 30 of 100 is. */
/* The two plates must be the SAME box. Left to min-height they were not: the labels
   differ in length ("Make Mythical" against "Downgrade"), and in a narrow column the
   longer one wrapped to a second line and grew. A fixed height with the text centred
   and kept on one line makes them a pair whatever they say. */
.inv-enh__step{align-items:stretch}
.inv-enh__step .inv-rings__act{flex:1 1 0;height:44px;min-height:0;padding:0 12px;
	display:inline-flex;align-items:center;justify-content:center;
	white-space:nowrap;font-size:.88rem;letter-spacing:.04em}
/* ⚠ TRIMMED TWICE, AND THE SECOND TIME FOR THE RIGHT REASON. The first cut took
   the fully transparent margin off btn_common_red1 and left the plate at 209x55 --
   but its last five rows are the plate's SHADOW, alpha 81 down to 15, not plate.
   border-image stretches whatever is in the canvas, so those rows were drawn as if
   they were the button: beside the gold plate, which is solid to its own last row,
   the red one sat with a dead strip under it and read as the shorter of the two.
   Cut now to the solid body alone -- source rows 1-48, columns 9-213, so 205x48 --
   and the slice is 15, the same share of the height the gold plate's 30 of 100 is. */
.inv-enh__act--down{color:#ffe3da;text-shadow:0 1px 2px rgba(0,0,0,.55);
	border-image:url(../images/game-icons/btn-plate-red.webp) 15 fill / 15px stretch}
.inv-enh__act--down:hover{filter:brightness(1.12)}
/* Max sits beside Upgrade, narrower -- one short word. */
.inv-enh__step .inv-enh__act--max{flex:0 0 auto;padding:0 16px}
.inv-enh__step [data-dir]{touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.inv-enh__step-btn{width:30px;height:26px;appearance:none;border:0;cursor:pointer;
	background:rgba(60,76,102,.7);color:#f3e3bd;font-size:.7rem;line-height:1;
	transition:background .12s}
.inv-enh__step-btn:hover{background:rgba(86,106,138,.85)}
.inv-enh__step-btn:focus-visible{outline:2px solid #f3c969;outline-offset:2px}
.inv-enh__step-now{min-width:7.5rem;text-align:center;
	font-family:Rajdhani,system-ui,sans-serif;font-weight:700;font-size:.9rem;color:#f3e3bd}
.inv-enh__step-now b{color:#ffcf7a}

/* The orb carries the piece's rarity too: the game lights a legendary piece amber and
   a mythical one red, and the aura is the layer that says it. */
/* The art is gold, so legendary is the UNFILTERED state and mythical is the one that
   gets recoloured -- the reverse of how it was written first, which tinted the gold
   twice and came out brassy. */

/* The name and its take-it-off diamond share a row, the way the game pairs them. */
.inv-enh__titlerow{display:flex;align-items:center;gap:10px}
.inv-enh__titlerow .inv-enh__title{flex:1;min-width:0}
/* The game's own control: the dark diamond plate with the red bar laid on it --
   btn_type01_bg02 and icon_btntype01_delete2. Two layers, like everything else here. */
/* Same control, same single sprite. */
.inv-enh__strip-off{position:relative;z-index:6;
	width:46px;height:46px;flex:none;appearance:none;border:0;padding:0;
	cursor:pointer;display:grid;place-items:center;opacity:1;filter:none;
	background:url(../images/game-icons/btn-remove.webp) center/contain no-repeat;
	transition:transform .12s ease}
.inv-enh__strip-off:hover{transform:scale(1.08);
	filter:drop-shadow(0 0 7px rgba(226,84,70,.75))}
.inv-enh__strip-off:focus-visible{outline:2px solid #f3c969;outline-offset:3px}


/* The forge reads hotter than a plain upgrade: it is a one-way change, not a step. */
.inv-enh__act--forge{color:#2a1206;
	border-image:url(../images/game-icons/btn-plate-gold.webp) 30 fill / 15px stretch;
	filter:saturate(1.3) hue-rotate(-12deg)}
.inv-enh__act--forge:hover{filter:saturate(1.45) hue-rotate(-12deg) brightness(1.08)}

/* ── empty slots in the strip ──────────────────────────────────────────────────
   The sheet draws nothing in an empty socket on purpose: the plate behind its row
   already carries the recess. This strip has no plate behind it, so the three layers
   the game uses are drawn here instead -- frame_mailbattle_02 as the plate, the slot's
   silhouette (icon_heroequip_blank_01..04, in slot order) and btn_n_add_01_1 on top.

   The element is in the markup, not conjured from pseudo-elements on a box that the
   tile overlay sits on top of: that is what kept it invisible. */
.inv-gear-slot__blank{display:none}
.inv-enh__strip .inv-gear-slot__blank{display:block;position:absolute;inset:0;z-index:4;
	pointer-events:none;
	background:url(../images/game-icons/gear-slot-plate.webp) center/100% 100% no-repeat}
.inv-enh__strip .inv-gear-slot__blank::before{content:'';position:absolute;inset:20%;
	background:center/contain no-repeat;opacity:.45}
.inv-enh__strip .inv-gear-slot__blank[data-slot="helmet"]::before{background-image:url(../images/game-icons/gear-blank-1.webp)}
.inv-enh__strip .inv-gear-slot__blank[data-slot="gloves"]::before{background-image:url(../images/game-icons/gear-blank-2.webp)}
.inv-enh__strip .inv-gear-slot__blank[data-slot="chest"]::before{background-image:url(../images/game-icons/gear-blank-3.webp)}
.inv-enh__strip .inv-gear-slot__blank[data-slot="boots"]::before{background-image:url(../images/game-icons/gear-blank-4.webp)}
.inv-enh__strip .inv-gear-slot__blank::after{content:'';position:absolute;
	left:50%;top:50%;translate:-50% -50%;width:30%;aspect-ratio:1;opacity:.85;
	background:url(../images/game-icons/gear-slot-plus.webp) center/contain no-repeat}
/* Nothing is in it, so it has no level, no stars, no gem pips and no unit badge. */
.inv-enh__strip .inv-gear-slot.is-empty .inv-gear-tile__lv,
.inv-enh__strip .inv-gear-slot.is-empty .inv-gear-tile__gems,
.inv-enh__strip .inv-gear-slot.is-empty .inv-lp-gstars,
.inv-enh__strip .inv-gear-slot.is-empty .inv-enh__tile-unit{display:none}

/* THE LEVEL GOES INSIDE THE TILE. The sheet's strip prints it under the frame -- that
   was a deliberate choice there, to keep a gold number off gold artwork -- but on this
   screen the game puts it on the art itself, bottom-left, sitting just above the star
   band. So the room reserved underneath goes back too. */
.inv-enh__strip .inv-gear-slot{position:relative;padding-bottom:0}
.inv-enh__strip .inv-gear-tile__lv{
	left:7%;right:auto;bottom:22%;top:auto;z-index:3;
	text-align:left;font-family:Rajdhani,system-ui,sans-serif;font-weight:700;
	font-size:.92rem;letter-spacing:.01em;color:#fff;
	text-shadow:0 1px 2px rgba(0,0,0,.85),0 0 6px rgba(0,0,0,.6)}

/* ── the Equip view ────────────────────────────────────────────────────────────
   The game lists a slot's gear as a grid of plates with the level and stars on each,
   and a chosen one ringed in gold. These are copies of the editor's own options, so
   whatever that picker draws inside them comes through; this sets the grid and the
   selected ring and nothing else. */
.inv-enh__pickgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));
	gap:10px;max-height:min(44vh,22rem);overflow:auto;
	padding:12px;background:rgba(16,23,38,.5)}
/* A gear tile, the way the vault draws one: the piece on its quality plate with its
   unit emblem in the corner and its name underneath. */
.inv-enh__pick{position:relative;appearance:none;border:0;padding:0;cursor:pointer;
	background:none;display:grid;gap:4px;justify-items:center}
/* THE SAME SQUARE AS EVERYWHERE ELSE. The Equip list was still on a hand-mixed brown
   gradient while the strip and the gem grid had moved to the game's own ui_menuitem4
   tile, so one screen was printing gear two different ways. A piece is offered at
   legendary -- box_5 -- because that is the step it arrives at; mythical is forged. */
.inv-enh__pick-art{position:relative;display:block;width:100%;aspect-ratio:1;
	background:url(../images/game-icons/gem-tile-legendary.webp) center/100% 100% no-repeat;
	box-shadow:inset 0 0 0 1px rgba(0,0,0,.4)}
.inv-enh__pick-art img{position:absolute;inset:9%;width:82%;height:82%;
	object-fit:contain;display:block}
/* The badge carries its own plate, so no shadow under it, and it sits at the corner
   the strip tile puts it in rather than the opposite one. */
.inv-enh__pick-unit{position:absolute;inset:4px auto auto 4px !important;
	width:26% !important;height:26% !important;opacity:1;filter:none}
.inv-enh__pick-name{font-size:.68rem;line-height:1.2;text-align:center;
	color:rgba(230,236,245,.85);max-width:100%;
	overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inv-enh__pick-lv{position:absolute;left:5%;top:5%;
	font-family:Rajdhani,system-ui,sans-serif;font-weight:700;font-size:.7rem;color:#fff;
	text-shadow:0 1px 2px rgba(0,0,0,.85)}
.inv-enh__pick.is-on .inv-enh__pick-art{box-shadow:0 0 0 2px #f3c969,0 0 10px rgba(243,201,105,.4)}
.inv-enh__pick.is-on .inv-enh__pick-name{color:#f3e3bd}
.inv-enh__pick:hover .inv-enh__pick-art{filter:brightness(1.1)}
.inv-enh__pick:focus-visible{outline:2px solid #f3c969;outline-offset:2px}

/* AN EMPTY SOCKET IS NOT A COLOURED FORM. The ring around it IS coloured -- the piece's
   own quality, which is how the game draws it -- but the form inside stays colourless
   and takes the plus. The two were the wrong way round once; the ring is the one that
   carries quality, never the shape.

   LAST IN THE FILE AND ONE CLASS DEEPER THAN THE RARITY RULES ON PURPOSE: those are
   `.inv-enh [data-rarity] .inv-enh__sock-plate`, the same specificity, so a copy of
   this placed earlier simply lost to them. */

/* A locked socket dims the whole stack -- ring and shape together -- rather than
   recolouring either; the game greys it out and puts a padlock on it. */
.inv-enh .inv-enh__socket:not(.is-open) .inv-enh__sock-ring{background:#4a515d}
.inv-enh .inv-enh__socket:not(.is-open) .inv-enh__sock-orn{display:none}
.inv-enh .inv-enh__socket:not(.is-open) .inv-enh__sock-plate{
	background:linear-gradient(158deg,#79818e,#4b5361 52%,#2b313b)}

/* ── Gear Lab ──────────────────────────────────────────────────────────────────
   The tuning panel. It never reaches a player: enqueued only for an administrator or
   for ?gearlab=1, and it writes nothing but inline custom properties on the stage. */
.inv-gearlab__tab{position:fixed;right:0;bottom:30vh;z-index:9998;
	appearance:none;border:0;cursor:pointer;padding:8px 10px;
	font:700 .72rem/1 Rajdhani,system-ui,sans-serif;letter-spacing:.08em;
	text-transform:uppercase;color:#1b1205;background:#f3c969;
	border-radius:6px 0 0 6px;box-shadow:0 2px 10px rgba(0,0,0,.45)}
.inv-gearlab{position:fixed;right:10px;top:84px;bottom:14px;width:290px;z-index:9999;
	display:flex;flex-direction:column;
	background:rgba(10,15,26,.97);color:#e8edf6;
	box-shadow:0 10px 40px rgba(0,0,0,.6),inset 0 0 0 1px rgba(243,201,105,.3);
	border-radius:8px;font:400 .78rem/1.3 Inter,system-ui,sans-serif}
.inv-gearlab[hidden]{display:none}
.inv-gearlab__head{display:flex;align-items:center;gap:6px;padding:8px 10px;
	border-bottom:1px solid rgba(255,255,255,.1)}
.inv-gearlab__head b{flex:1;font-family:Rajdhani,system-ui,sans-serif;letter-spacing:.06em}
.inv-gearlab__head button{appearance:none;border:0;cursor:pointer;border-radius:4px;
	padding:4px 7px;font-size:.7rem;background:rgba(243,201,105,.18);color:#f3c969}
.inv-gearlab__head button:hover{background:rgba(243,201,105,.32)}
.inv-gearlab__body{flex:1;overflow:auto;padding:8px 10px}
.inv-gearlab__group{margin:10px 0 4px;font-size:.68rem;letter-spacing:.1em;
	text-transform:uppercase;color:rgba(243,201,105,.75)}
.inv-gearlab__row{display:grid;grid-template-columns:1fr;gap:3px;margin-bottom:7px}
.inv-gearlab__row span{font-size:.72rem;color:rgba(232,237,246,.8)}
.inv-gearlab__row input[type=range]{width:100%;accent-color:#f3c969}
.inv-gearlab__row input[type=number]{width:100%;background:rgba(255,255,255,.07);
	border:1px solid rgba(255,255,255,.14);border-radius:4px;color:#e8edf6;
	padding:3px 6px;font-size:.74rem}
.inv-gearlab__note{margin:0;padding:7px 10px;font-size:.68rem;
	color:rgba(232,237,246,.6);border-top:1px solid rgba(255,255,255,.1);min-height:1.6em}

/* ── the mount screen ─────────────────────────────────────────────────────────
   Menu_GLMountManage_UGUI, read out of the prefab. The game's own widths, out of a
   1920 row: the stable 400, the mount 500 square in the middle, what it gives 780.
   They are written as fr so the three keep their proportions at any size.

   ⚠ THE CONTROLS ARE THE EDITOR'S, MOVED IN. Nothing here is a copy -- the grid of
   mounts, the chosen one's banner, the three stat fields, the trait picker and the
   adornment are the very fields the save reads, lifted out of the lineup editor and
   put where the game puts them. So this stylesheet UNDRESSES them (the editor's card
   padding, its borders, its own backgrounds) rather than restyling a second set. */
/* ⚠ THE STABLE'S COLUMN IS FIXED, NOT A SHARE. As a fraction it grew whenever the
   sidebars closed, and the cards grew with it up to their cap -- so the same screen
   showed two different card sizes depending on what else was open. The stable holds
   the card's own width; the mount and the panel share whatever is left, in the
   game's own 740:780.
   ⚠ ONE WIDTH FOR EVERY RIGHT PANEL. --inv-panel-w is the gear screen's 460, which
   is the measure the player settled on, and the stable and the adornment screens
   are tied to the same variable so the three cannot drift apart again.
   The card is 215px. Measured off a full shot of the game's
   own mount screen: the card is 393px of a 2638px screen, 14.9%, and 37.8% of the
   right-hand detail panel. 280px then 248px both still read large here because our
   screen sits inside the site's rails, so the same fraction looks bigger. */
/* ⚠ BOTH SIDES HOLD THEIR SIZE; THE MIDDLE GIVES. With the panel on a fraction it
   shrank every time a rail opened and the rows started wrapping -- "Horse Strategy"
   on two lines. The game's right panel is 780 units to the card's 280, so it is
   2.786 card widths, measured the same way as everything else here. minmax lets it
   fall back gracefully on a narrow window instead of overflowing. */
/* The stable card width every mount-screen proportion is cut from (column, filter
   plate, card edges, adornment tiles). 174 since 2026-11-05; change it here only. */
.inv-mnt{--mnt-card-w:174px}
.inv-mnt__cols{display:grid;
	/* ⚠ 2.6, THE BAND'S OWN WIDTH. The game's panel is 2.786 card widths and the
	   adornment band 2.6, so the band sat inset and the two edges did not line up.
	   The band is the widest thing on this side, so the column is cut to it. */
	grid-template-columns:var(--mnt-card-w,174px) minmax(0,1fr)
		var(--inv-panel-w,460px);
	gap:1%;align-items:start;padding:4px;justify-content:space-between}
/* ⚠ THE PANEL HOLDS COLUMN THREE. With the mount gone from the middle there are
   only two children left, and the panel fell into the middle track and sat against
   the stable. The middle is meant to be empty -- that is where the game stands the
   horse -- so the panel is pinned to the right where the game keeps it. */
/* ⚠ THE STABLE'S PANEL ONLY. The adornment screen's panel wears the same class and
   has two tracks, not three, so an unscoped grid-column:3 pushed it into a third
   column that did not exist and left the list on a zero-width one. */
.inv-mnt__cols > .inv-mnt__panel{grid-column:3}
@media (max-width:1100px){.inv-mnt__cols > .inv-mnt__panel{grid-column:auto}}
@media (max-width:1100px){
	.inv-mnt__cols{grid-template-columns:minmax(0,1fr);gap:14px}
}
/* The stable. m_ListMount is a column of cards, not a grid of tiles -- one per row,
   each the 280x170 ListItem_GLMountItem. */
/* No bars. The game's stable just runs off the bottom edge and fades, so the scroll
   is there but nothing is drawn for it, and the last card dissolves into the panel
   instead of being cut off -- which is what says there is more below. Same recipe as
   the rings list. */
.inv-mnt__list{min-width:0;max-height:calc(100vh - var(--mnt-list-gap,150px));
	overflow-y:auto;overflow-x:hidden;
	scrollbar-width:none;-ms-overflow-style:none;
	/* ⚠ ROOM FOR THE FIRST HORSE'S EARS. Every card lets its picture stand 8% of its
	   height above the top edge, which is what Pic_Mask allows -- but a scroll box
	   clips at its own padding edge, so on the top card that 8% was being cut off by
	   this element and nothing else. The card is width/1.647 tall, so 8% of it is
	   .0486 of the width. */
	padding-top:calc(var(--mnt-card-w,174px) * .0686);
	/* The cap is a floor only -- sizeMountList() measures the panel and writes the
	   real one, so the two columns end on the same line. */
	-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 54px),rgba(0,0,0,0));
	mask-image:linear-gradient(to bottom,#000 calc(100% - 54px),rgba(0,0,0,0))}
.inv-mnt__list::-webkit-scrollbar{width:0;height:0;display:none}
.inv-mnt__list .inv-horse-grid{display:flex;flex-direction:column;gap:6px}
/* ⚠ THE EDITOR HIDES ITS OWN GRID once a mount is picked -- create-lineup.js puts
   .hidden on .inv-horse-grid-wrap and shows its "selected" banner instead. That is
   right in the editor and wrong here: the stable's whole left column IS that grid,
   so a hero who already had a mount opened this screen to an empty column. In here
   the grid is always open.
   ⚠ !important IS REQUIRED. create-lineup.css declares
   `.inv-horse-grid-wrap.hidden{display:none!important}`, and an important
   declaration is only beaten by another important one -- three classes against its
   two settle which. Without it this rule looked right and did nothing. */
.inv-mnt__list .inv-horse-grid-wrap.hidden{display:block!important}
/* ⚠ THE CARD STOPS AT THE GAME'S OWN SIZE. Everything on it is measured against
   its height -- the horse is 148.1cqh -- and its height came from the column's
   width, so a wider window grew the animals with it. 280x170 is what the game
   draws, and the card holds there however much room the column has. */
.inv-mnt__list .inv-horse-option{width:100%;aspect-ratio:280/170;height:auto}
.inv-mnt__list .inv-horse-grid{align-items:flex-start}
/* Pic_BlankMount, 500 square, standing in the middle. */
.inv-mnt__stage{min-width:0;display:grid;place-items:center}
.inv-mnt__stage .inv-horse-selected{max-width:none;width:100%;background:none;border:0}
.inv-mnt__stage .inv-horse-portrait{width:100%;height:auto;max-width:none}
/* Pan_Right: the name, a rule, then the rows. */
.inv-mnt__panel{min-width:0}
.inv-mnt__name{margin:0;font-family:Georgia,'Times New Roman',serif;font-weight:700;
	font-size:1.2rem;line-height:1.15;letter-spacing:.015em;color:#f3c04a;
	text-transform:uppercase;text-shadow:0 1px 2px rgba(0,0,0,.55)}
.inv-mnt__name:empty{display:none}
.inv-mnt__rule{height:1px;margin:1px 0 1px;
	background:linear-gradient(90deg,transparent,rgba(243,192,74,.38) 18%,rgba(243,192,74,.38) 82%,transparent)}
/* The editor's section arrives wearing the builder's chrome; it stands down here. */
.inv-mnt__controls .inv-subgroup-header,
.inv-mnt__controls .inv-horse-clear{display:none}
.inv-mnt__controls .inv-subgroup,
.inv-mnt__controls .inv-subgroup-body{margin:0;padding:0;border:0;background:none}

/* ── the stable's cards ───────────────────────────────────────────────────────
   ListItem_GLMountItem is 280x170 with Pan_Name, a 58-tall strip, along its foot --
   so the strip is 34% of the card. The name is drawn from the button's own title
   attribute rather than written into the markup: the grid is built by a minified
   script, and reading what is already on the element beats editing that. */
/* ⚠ SQUARE. The grid's own card carries a border-radius, and an outline follows it,
   so a chosen card came out with its corners cut. The game's stable is square-edged,
   the same decision the rings grid came to. */
.inv-mnt__list .inv-horse-option{position:relative;overflow:hidden;border-radius:0}
.inv-mnt__list .inv-horse-option::after{content:attr(title);position:absolute;
	left:0;right:0;bottom:0;height:34%;display:flex;align-items:center;
	padding:2px;box-sizing:border-box;
	background:linear-gradient(180deg,transparent,rgba(8,12,20,.72) 42%);
	font-family:Georgia,'Times New Roman',serif;font-weight:700;
	font-size:clamp(.62rem,1.5vw,.72rem);letter-spacing:.04em;text-transform:uppercase;
	color:#f0e6cf;text-shadow:0 1px 3px rgba(0,0,0,.9);
	overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
/* Pic_Select: the chosen one is ringed, not merely tinted. */
.inv-mnt__list .inv-horse-option.is-on,
.inv-mnt__list .inv-horse-option[aria-pressed="true"]{outline:2px solid rgba(246,200,99,.85);
	outline-offset:-2px}

/* ── what the mount gives ─────────────────────────────────────────────────────
   The game's rows, from the prefab:
     Temperament  ListItem_GLMountAttributeTemper  64 tall, ON ITS OWN PLATE
                  (frame_mount_04), icon on a disc at x=30, label at 64, value right
     Might/Strategy  ListItem_GLMountAttribute     72 tall, NO plate -- a rule under
                  it (ui_g_titleline_02), icon 64, label, value right
     TRAITS title ListItem_GLMountCharacterTitle   70 tall
   ⚠ Ours are EDITABLE where the game's are read-only: a lineup's mount stats are
   typed in by the player, so the right-hand side of each row carries the editor's
   own number field instead of a figure. The row is the game's; what sits at its end
   is ours because the data is. */
/* The game runs Might, then Strategy, then Armor, and puts a glyph at the head of
   each row (m_PicIcon, 64 of a 72-tall row). The form's own order is might/armor/
   strategy and must stay that way -- the field names ride on it -- so the rows are
   reordered for the eye only. The glyphs are the ones the rest of the site already
   uses for these three stats; same icons the game puts here. */
.inv-mnt__controls .inv-horse-stats{display:flex;flex-direction:column;gap:2px;margin:0}
.inv-mnt__controls .inv-horse-stat:has(.inv-horse-might){order:1}
.inv-mnt__controls .inv-horse-stat:has(.inv-horse-strategy){order:2}
.inv-mnt__controls .inv-horse-stat:has(.inv-horse-armor){order:3}
.inv-mnt__controls .inv-horse-stat:has(.inv-horse-siege){order:4}
.inv-mnt__controls .inv-horse-stat::before{content:'';flex:0 0 auto;
	width:18px;height:18px;background:center/contain no-repeat}
.inv-mnt__controls .inv-horse-stat:has(.inv-horse-might)::before{
	background-image:url(../images/game-icons/stats/might.webp)}
.inv-mnt__controls .inv-horse-stat:has(.inv-horse-strategy)::before{
	background-image:url(../images/game-icons/stats/strategy.webp)}
.inv-mnt__controls .inv-horse-stat:has(.inv-horse-armor)::before{
	background-image:url(../images/game-icons/stats/armor.webp)}
.inv-mnt__controls .inv-horse-stat:has(.inv-horse-siege)::before{
	background-image:url(../images/game-icons/stats/siege.webp)}
/* 24px (was 36), not the game's 72-tall row scaled straight across: measured on screen
   2026-11-05. Three of these rows plus the picker and the traits title have to sit in
   the fixed stage without scrolling, and at 46 they did not. The vertical padding goes
   with it -- the min-height is doing that job. */
.inv-mnt__controls .inv-horse-stat{display:flex;align-items:center;gap:10px;
	min-height:24px;padding:0 8px;font-size:.9rem;
	color:#dfe5f2}
/* 4.5rem (was 5.5em), not 7.5: measured on screen 2026-11-05, settled after a pass at 3.5. The
   game's value sits hard at the row's end and these numbers are three or four digits,
   so the wide field left a trough between label and figure and read as a form input;
   3.5 went too far the other way and clipped four digits. Centred and at weight 500,
   not right-aligned at 700 -- the figure sits in its box like the game's does rather
   than crowding the border. The vertical padding is gone: the row sets its own 46px
   min-height, so the field's padding only pushed it taller. */
.inv-mnt__controls .inv-horse-stat input{flex:0 0 4.5rem;width:4.5em;text-align:center;
	background:rgb(32 38 49 / 33%);border:1px solid rgba(255,255,255,.08);border-radius:0;
	color:#8ee6a0;font-family:Rajdhani,sans-serif;font-weight:500;font-size:.85rem;
	padding:0 4px}
.inv-mnt__controls .inv-horse-stat input::-webkit-outer-spin-button,
.inv-mnt__controls .inv-horse-stat input::-webkit-inner-spin-button{margin-left:4px}
/* The label takes the room the game gives it -- m_LabAttribute is 350 of the row.
   ⚠ NOT space-between any more: with a glyph in front, that would push the label
   into the middle of the row. Glyph and label lead, the field is pushed to the end. */
.inv-mnt__controls .inv-horse-stat{justify-content:flex-start}
.inv-mnt__controls .inv-horse-stat input{margin-left:auto}
/* ⚠ THE CLONED BLOCK BRINGS TAILWIND'S OWN SPACING WITH IT.
   The controls are the builder's `data-section="mount"` subgroup moved in whole, and
   its wrapper is `space-y-3 mt-2` -- .75rem between every child. On the game's screen
   the picker, the three stat rows and the traits title are one continuous list, so
   that gap broke it into floating slabs. .15rem closes it to a hairline and the rows'
   own border-bottom does the dividing, which is what the game does.

   Written with Tailwind's own shape (`>:not([hidden])~:not([hidden])`) and not `>*+*`
   ON PURPOSE: equal specificity would leave this to load order, and this file loading
   after output.css is not something to depend on. */
.inv-mnt__controls .space-y-3>:not([hidden])~:not([hidden]){margin-top:.05rem}
/* TRAITS, set as the game sets its title row. */
.inv-mnt__controls .inv-label-sm{margin:3px 0;font-family:Georgia,'Times New Roman',serif;
	font-weight:700;font-size:1.05rem;letter-spacing:.03em;text-transform:uppercase;
	color:#f3c04a}
.inv-mnt__controls .inv-horse-stat-hint{margin:1px 0 0;font-size:.52rem}

/* The mount standing in the middle -- Pic_BlankMount, 500 square in the game. */
.inv-mnt__art{display:block;width:100%;height:auto;max-width:none}
/* The editor's own banner is not shown: this screen draws the mount itself, and two
   pictures of the same horse on one screen is one too many. */
.inv-mnt__controls .inv-horse-selected{display:none !important}
/* Pic_Select: a light around the card you have touched, which is all a touch does --
   the hero is not on it until MOUNT. The equipped one keeps a quieter ring. */
.inv-mnt__list .inv-horse-option.is-chosen{outline:2px solid rgba(246,200,99,.95);
	outline-offset:-2px;box-shadow:0 0 0 1px rgba(0,0,0,.5),0 0 14px rgba(246,200,99,.45)}
.inv-mnt__list .inv-horse-option.is-mounted{outline:2px solid rgba(142,230,160,.6);
	outline-offset:-2px}
/* Pan_Bottom: the one button, across the foot of the panel. */
.inv-mnt__act{display:block;width:100%;max-width:none;margin-top:2px}
/* ⚠ DISMOUNT IS THE STONE PLATE, not the gold one with the colour drained out.
   The game prints it pale with dark lettering -- the same plate RESET wears here
   (btn_n_01white) -- and desaturating the gold gave a muddy gold, not stone. */
.inv-mnt__act.is-off{filter:none;color:#4a443c;
	text-shadow:0 1px 0 rgba(255,255,255,.45);
	border-image-source:url(../images/game-icons/btn-plate-stone.webp)}

/* ── the stable's card, dressed like a hero's ─────────────────────────────────
   The hero cards in the builder wash their foot with a gradient so the name reads
   off the art; the mounts get the same, and a rarity tint over the whole card so
   the band a mount belongs to is legible at a glance. The baked card already
   carries the game's own quality plate behind the horse -- this is the wash ON TOP,
   which is what makes it read in a column of fifteen. */
.inv-mnt__list .inv-horse-option::before{content:'';position:absolute;inset:0;z-index:1;
	/* ⚠ A HINT, NOT A WASH. The plate underneath already carries the mount's rarity --
	   pic_mount_quality11_0N comes tinted -- so a strong colour over it doubles up, and
	   on mythical, whose plate is red to begin with, the card came out glowing. */
	pointer-events:none;background:var(--mnt-q,transparent);
	mix-blend-mode:soft-light;opacity:var(--mnt-q-o,.3)}
.inv-mnt__list .inv-horse-option::after{z-index:2}
.inv-mnt__list .inv-horse-option[data-quality="mythical"]{--mnt-q:linear-gradient(160deg,rgba(239,68,68,.42),rgba(239,68,68,.08) 58%,transparent)}
.inv-mnt__list .inv-horse-option[data-quality="legendary"]{--mnt-q:linear-gradient(160deg,rgba(243,192,74,.42),rgba(243,192,74,.08) 58%,transparent)}
.inv-mnt__list .inv-horse-option[data-quality="epic"]{--mnt-q:linear-gradient(160deg,rgba(168,85,247,.42),rgba(168,85,247,.08) 58%,transparent)}
.inv-mnt__list .inv-horse-option[data-quality="rare"]{--mnt-q:linear-gradient(160deg,rgba(59,130,246,.42),rgba(59,130,246,.08) 58%,transparent)}
.inv-mnt__list .inv-horse-option[data-quality="uncommon"]{--mnt-q:linear-gradient(160deg,rgba(34,197,94,.42),rgba(34,197,94,.08) 58%,transparent)}
.inv-mnt__list .inv-horse-option[data-quality="common"]{--mnt-q:linear-gradient(160deg,rgba(156,163,175,.42),rgba(156,163,175,.08) 58%,transparent)}
/* The name's ground, the hero card's own recipe: a wash up from the foot. */
.inv-mnt__list .inv-horse-option::after{
	background:linear-gradient(to top,rgba(8,12,20,.94) 0%,rgba(8,12,20,.66) 50%,transparent 100%)}

/* ── the stable's card, in two layers ─────────────────────────────────────────
   The baked card crops the horse into a 194x119 box and in a column that reads as
   an animal in a crate. So the plate is the card's BACKGROUND and the horse is its
   own picture over it, at full size, free to stand past the top edge -- which is
   what the hero row does and why nothing may clip here.

   The horse is placed by the card's HEIGHT, the way the game places it, so the same
   figures hold whatever width the column has; container-type:size makes cqh mean
   this card. And it wears the hero row's own mask: an ellipse off to the upper
   right, so the chest and saddle dissolve into the plate at the lower left instead
   of ending on a hard edge. */
.inv-mnt__list .inv-horse-option.is-layered{overflow:visible;container-type:size;
	background:var(--mnt-plate) left center/auto 100% no-repeat,#111827}
/* ⚠ THE HORSE KEEPS ITS SIZE -- THE CARD CLIPS IT. Shrinking the picture to stop
   the rows reading large was the wrong end of it: it left the horse adrift in the
   middle of the plate. The game draws m_PicItem FULL SIZE and puts Pic_Mask in
   front, 236x168 at (-20,+15) on a 280x170 card, whose top edge clears the card by
   15 units -- 8% of its height -- and is flush everywhere else. So the picture is
   back at 148.1cqh and the card carries that mask: clip-path inset(-8% 0 0 0), room
   for 8% above and nothing anywhere else. The row's footprint is the card plus 8%,
   which is what it is in the game. */
.inv-mnt__list .inv-horse-option.is-layered{clip-path:inset(-8% 0 0 0)}
.inv-mnt__list .inv-horse-option.is-layered img{position:absolute;
	left:7.13cqh;bottom:-1.17cqh;top:auto;width:auto;height:148.1cqh;max-width:none;
	object-fit:contain;z-index:1;
	-webkit-mask-image:radial-gradient(ellipse var(--mount-fade-rx,65%) var(--mount-fade-ry,78%)
		at var(--mount-fade-x,63%) var(--mount-fade-y,31%),
		#000 var(--mount-fade-in,102%), transparent var(--mount-fade-out,109%)),
		linear-gradient(to top, transparent 0, #000 var(--mount-fade-bottom,18%));
	-webkit-mask-composite:source-in;
	        mask-image:radial-gradient(ellipse var(--mount-fade-rx,65%) var(--mount-fade-ry,78%)
		at var(--mount-fade-x,63%) var(--mount-fade-y,31%),
		#000 var(--mount-fade-in,102%), transparent var(--mount-fade-out,109%)),
		linear-gradient(to top, transparent 0, #000 var(--mount-fade-bottom,18%));
	mask-composite:intersect}
/* The rarity wash and the name's ground sit OVER the horse, so the name stays
   readable where the animal runs behind it. */
.inv-mnt__list .inv-horse-option.is-layered::before{z-index:2}
.inv-mnt__list .inv-horse-option.is-layered::after{z-index:3}
/* Overflowing cards must not be painted over by the one below. */
.inv-mnt__list .inv-horse-grid{position:relative}
.inv-mnt__list .inv-horse-option.is-layered{position:relative}
.inv-mnt__list .inv-horse-option.is-layered.is-chosen{z-index:4}

/* ⚠ THE MOUNT IN THE MIDDLE HOLDS ITS SIZE TOO. Pic_BlankMount is 500 square in the
   game; at width:100% it grew with the window, which is the same fault the cards
   had. It stops at 500 and stands centred in whatever room is left. */
.inv-mnt__art{display:block;width:100%;max-width:var(--mnt-art-w,500px);height:auto}
/* A soft light behind it in the mount's own band -- the glow the game puts around the
   one you are looking at. Drawn on the stage, under the art. */
.inv-mnt__stage{position:relative}
.inv-mnt__stage::before{content:'';position:absolute;left:50%;top:50%;translate:-50% -50%;
	width:min(86%,460px);aspect-ratio:1;border-radius:50%;pointer-events:none;
	background:radial-gradient(circle,var(--mnt-glow,transparent) 0%,transparent 68%);
	opacity:var(--mnt-glow-o,.5)}
.inv-mnt__stage[data-quality="mythical"]{--mnt-glow:rgba(239,68,68,.55)}
.inv-mnt__stage[data-quality="legendary"]{--mnt-glow:rgba(243,192,74,.55)}
.inv-mnt__stage[data-quality="epic"]{--mnt-glow:rgba(168,85,247,.55)}
.inv-mnt__stage[data-quality="rare"]{--mnt-glow:rgba(59,130,246,.55)}
.inv-mnt__stage[data-quality="uncommon"]{--mnt-glow:rgba(34,197,94,.5)}
.inv-mnt__stage[data-quality="common"]{--mnt-glow:rgba(156,163,175,.45)}
.inv-mnt__art{position:relative;z-index:1}

/* ── the stable's filter, and the adornment's socket ──────────────────────────
   m_PanFilter above the list, m_PanOrnament above the button. */
/* ⚠ THE LIST IS CAPPED OFF THE VIEWPORT, not off the panel. Matching the panel was
   tried and does not work: the outer grid row is auto, so the stable's fifteen
   cards set the row's height rather than the panel doing it, and the screen grew to
   two thousand pixels. The panel is itself 2000-odd tall here -- stats, traits, the
   band, the button -- so "as deep as the panel" is not what is wanted either. What
   is wanted is the stable running to the foot of the screen, which is what this is.
   --mnt-list-gap is the knob. */
.inv-mnt__left{position:relative;min-width:0;display:flex;flex-direction:column;gap:8px}
/* The stable's own filter control -- NOT the roster's. The game gives this list a
   different one: m_TogFilter in Menu_GLMountManage_UGUI, a wide chamfered plate
   (ui_n_button/btn_n_type_02a) running the width of the card column with the funnel
   icon_g_filer_01 centred on it and the chevron arrow_g_01b pinned near the right.
   Under it sits Pan_FilterNum -- frame_mount_gradient_15 with the rarity glyph
   icon_mount_17 on the left and the count on the right -- so the two stack, they do
   not sit side by side.
   Everything here is a fraction of the card's width, measured off the game: plate
   94% wide and 15.7% of the card width tall, funnel 52% of the plate's height,
   chevron 55%x29% with its centre 9.5% in from the right edge. */
/* ⚠ THE SHEET HANGS OFF THIS, NOT THE COLUMN. .inv-mnt__filter is absolute at
   top:100%, so without a positioned ancestor here it measured from .inv-mnt__left
   and dropped open under the last card instead of under the plate. */
.inv-mnt__ftop{position:relative;z-index:7;
	display:flex;flex-direction:column;align-items:stretch;gap:4px;
	width:100%;max-width:var(--mnt-card-w,174px)}
/* ⚠ TWO CLASSES, ON PURPOSE. `.is-narrow .inv-armoury__filterbtn` sets a margin-left
   to centre that button in the roster's rail, and with one class here it out-ranked
   this rule and pushed the plate off the column. */
.inv-mnt__ftop .inv-mnt__fbtn{position:relative;display:flex;align-items:center;justify-content:center;
	gap:0;width:94%;align-self:center;margin:0;
	height:calc(var(--mnt-card-w,174px) * .157);min-height:0;
	line-height:1;margin:0;padding:0;cursor:pointer;background:none;
	/* ⚠ NINE-SLICED ACROSS, NOT SCALED. btn_n_type_02a is 100x54 with a ~26px chamfer
	   at each end; stretching the whole sprite to the column's width pulled those
	   angled caps out into long shallow ramps. Only the middle may give. The cap is
	   kept in proportion to the plate's height, 26/54 of it. */
	border:0 solid transparent;
	border-left-width:calc(var(--mnt-card-w,174px) * .0756);
	border-right-width:calc(var(--mnt-card-w,174px) * .0756);
	border-image:url(../images/game-icons/mount-filter-plate.webp) 0 26 fill / 0 calc(var(--mnt-card-w,174px) * .0756) stretch}
.inv-mnt__fbtn .inv-armoury__filterbtn-funnel,
.inv-mnt__fbtn .inv-armoury__filterbtn-chev{display:block;background-position:center;
	background-repeat:no-repeat;background-size:contain}
/* ⚠ ONE FUNNEL FILE, NOT TWO. ui_g_icon/icon_g_filer_01 -- the sprite this button's
   prefab names -- and ui_g_outermarch/icon_btntype04_shaixuan, which the roster's
   button uses, are byte for byte the same drawing. So this wears the copy already on
   the page, and at 84x90 it is the sharper of the two at this size. */
.inv-mnt__fbtn .inv-armoury__filterbtn-funnel{width:auto;aspect-ratio:84/90;height:53%;
	background-image:url(../images/game-icons/filter-funnel.webp)}
.inv-mnt__fbtn[aria-expanded="true"] .inv-armoury__filterbtn-funnel{
	background-image:url(../images/game-icons/mount-filter-funnel-on.webp)}
.inv-mnt__fbtn .inv-armoury__filterbtn-chev{position:absolute;top:50%;
	right:9.5%;transform:translate(50%,-50%);
	width:auto;max-width:none;height:29%;aspect-ratio:26/20;
	background-image:url(../images/game-icons/mount-filter-chev.webp)}
.inv-mnt__fbtn[aria-expanded="true"] .inv-armoury__filterbtn-chev{
	background-image:url(../images/game-icons/mount-filter-chev-up.webp)}
/* BY QUALITY. In the game this is a wide sheet that drops over the screen, not a
   chip row tucked in the card column, so it breaks out of that column and lays the
   four tiles across. Tile is ui_g_frame/ui_g_frame_filter_02, 332x68 -- a flat slab
   with a one-pixel lighter edge, measured off the game at rgb(35,38,40) on
   rgb(56,60,60). The label carries the rarity's colour; the tile never does. */
.inv-mnt__filter{position:absolute;z-index:6;left:0;top:calc(100% + 6px);
	display:block;width:max(100%,min(620px,78vw));
	padding:10px 12px 12px;
	background:rgb(16 19 23 / 96%);border:1px solid rgba(255,255,255,.10);
	box-shadow:0 18px 40px rgba(0,0,0,.55)}
.inv-mnt__filter[hidden]{display:none}
.inv-mnt__ftitle{margin:0 0 8px;font-family:Rajdhani,sans-serif;font-weight:700;
	font-size:.8rem;letter-spacing:.07em;text-transform:uppercase;color:#f3dfa8}
.inv-mnt__ftiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
@media (max-width:860px){.inv-mnt__ftiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
.inv-mnt__fchip{display:flex;align-items:center;justify-content:center;
	min-height:0;aspect-ratio:332/68;padding:2px 6px;border-radius:0;
	border:1px solid rgb(56 60 60);background:rgb(35 38 40);cursor:pointer;
	font-family:Rajdhani,sans-serif;font-weight:600;font-size:.82rem;line-height:1.1;
	letter-spacing:.02em;text-align:center;color:#c9d3e2;
	transition:border-color .15s,background-color .15s}
.inv-mnt__fchip[data-quality="mythical"]{color:#ef6a5e}
.inv-mnt__fchip[data-quality="legendary"]{color:#f3c04a}
.inv-mnt__fchip[data-quality="epic"]{color:#b06ef0}
.inv-mnt__fchip[data-quality="rare"]{color:#5aa6f0}
.inv-mnt__fchip:hover{border-color:rgba(246,200,99,.55)}
.inv-mnt__fchip.is-on{border-color:rgba(246,200,99,.95);background:rgb(48 44 34)}
/* Pan_FilterNum: the gradient strip under the plate, 48 units to the plate's 54. */
.inv-mnt__fnum{display:flex;align-items:center;justify-content:space-between;
	width:94%;align-self:center;height:calc(var(--mnt-card-w,174px) * .14);
	padding:0 calc(var(--mnt-card-w,174px) * .035);
	/* ⚠ frame_mount_gradient_15 IS A WHITE SPRITE. It is 194x8 of pure white whose
	   alpha runs 255 / 228 / 164 / 92 from left to right, and the game tints it --
	   drawing the file as it comes gave a white band across the column. The tint,
	   measured off the game, is rgb(37,43,48); this is that colour on the sprite's
	   own alpha curve. */
	background:linear-gradient(90deg,rgba(37,43,48,.96) 0%,rgba(37,43,48,.96) 21%,
		rgba(37,43,48,.86) 46%,rgba(37,43,48,.62) 72%,rgba(37,43,48,.35) 100%);
	font-family:Rajdhani,sans-serif;font-weight:700;font-size:.78rem;color:#e8edf6}
/* ⚠ icon_mount_17 IS A FUNNEL. The prefab lists it first on m_PicFilterNum and I
   took it at its word, which put a second funnel on the strip under the one on the
   plate. The game's own screen shows the other sprite the node carries,
   icon_mount_03 -- three tiles and a star. */
.inv-mnt__fnum::before{content:'';height:52%;aspect-ratio:29/28;
	background:url(../images/game-icons/mount-count-icon.webp) center/contain no-repeat}
/* The adornment band, Pan_Ornament in Menu_GLMountManage_UGUI. Three sprites and
   nothing invented: the gold arrow banner pic_mount_06 stretched over the whole
   728x160 strip, the stone disc pic_mount_quality3_blank (with its faint swirl
   pic_mount_quality3_blankicon baked in) centred on it, and the gold cross
   btn_n_add_04 for an empty slot. The earlier band was a CSS gradient and the
   earlier "plus" was the swirl, which is why neither read as the game's.
   Proportions measured off the game: disc 70.8% of the band's height, the cross
   28.3% -- not the prefab's nominal 0.56 scale, which renders a touch large. */
/* ⚠ MEASURED IN CARD WIDTHS, like everything else here. Letting it fill the panel
   made it 156px tall -- the band is 728x160 and the card 280x170, so at the panel's
   full width it towers. Tied to the card it is 2.6 card widths across and .571 of
   one tall, which is the game's own relation between the two. */
.inv-mnt__orn{position:relative;display:grid;place-items:center;margin-top:1px;
	width:100%;aspect-ratio:728/160;
	justify-self:center;padding:0;border:0;cursor:pointer;
	background:url(../images/game-icons/mount-orn-band.webp) center/100% 100% no-repeat}
.inv-mnt__orn:hover{filter:brightness(1.06)}
/* ⚠ SHUT UNTIL THERE IS A HORSE UNDER IT. An ornament hangs ON a mount, so the
   band is not a thing you can press on an empty saddle. It stays in place rather
   than disappearing -- the player should see that the slot exists and why it is
   closed -- and says so on itself when pressed. */
.inv-mnt__orn.is-locked{cursor:default;filter:grayscale(.75) brightness(.52)}
.inv-mnt__orn.is-locked:hover{filter:grayscale(.75) brightness(.52)}
.inv-mnt__orn.is-locked .inv-mnt__ornsock{opacity:.6}
.inv-mnt__orn::after{content:attr(data-hint);position:absolute;left:50%;top:50%;
	translate:-50% -50%;pointer-events:none;opacity:0;transition:opacity .18s;
	padding:5px 12px;background:rgb(10 14 20 / 92%);
	border:1px solid rgba(246,200,99,.5);
	font-family:Rajdhani,sans-serif;font-weight:700;font-size:.86rem;
	letter-spacing:.03em;color:#f3dfa8;white-space:nowrap}
.inv-mnt__orn.is-hinting::after{opacity:1}
.inv-mnt__ornsock{height:70.8%;aspect-ratio:1;width:auto;padding:0;border:0;pointer-events:none;
	background:url(../images/game-icons/mount-orn-socket.webp) center/contain no-repeat;
	display:grid;place-items:center;transition:filter .15s}
.inv-mnt__ornsock.is-on{background-image:url(../images/game-icons/mount-orn-socket-on.webp)}
.inv-mnt__ornsock.is-on.is-max{background-image:url(../images/game-icons/mount-orn-socket-max.webp)}
.inv-mnt__ornsock:hover{filter:brightness(1.12)}
/* 28.3% of the band is 40% of the disc -- the cross is trimmed to its own ink, so
   this is the glyph itself, not a padded box. */
.inv-mnt__ornsock::after{content:'';width:40%;height:40%;
	background:url(../images/game-icons/mount-orn-plus.webp) center/contain no-repeat}
.inv-mnt__ornsock.is-on::after{display:none}
/* m_PicOrnament is 150 of the socket's 256 -- 58.6%, the same share the sheet's
   socket gives it. 92% filled the plate to its rim and read oversized. */
.inv-mnt__ornsock img{width:58.6%;height:58.6%;object-fit:contain;
	display:block;margin:0}
.inv-mnt__ornpick{margin-top:8px}


/* ── the adornment screen ─────────────────────────────────────────────────────
   Menu_GLMountOrnament_UGUI: the adornments on the left, what the chosen one is
   and does on the right. It is drawn inside the mount screen and .is-adorn is the
   only thing that says which of the two is showing -- see the note in the markup
   for why it may not be a sibling. */
.inv-mnt__adorn{display:none}
.inv-mnt.is-adorn > .inv-adv__head,
.inv-mnt.is-adorn > .inv-adv__rule,
.inv-mnt.is-adorn > .inv-mnt__cols{display:none}
.inv-mnt.is-adorn > .inv-mnt__adorn{display:block}

/* ⚠ THE GAME'S OWN RULE, read off Menu_GLMountOrnament_UGUI: m_Pan_Right is a FIXED
   780 pinned to the right, and m_PanLeft is sized -780 -- everything that is left.
   So the right panel never moves and the left simply has more or less room. Two
   tracks, not three; the panel is the second child and lands in the second.
   780 is 2.786 card widths, but the stable's panel was cut to 2.6 to line up with
   the adornment band, and the two screens have to agree, so 2.6 it is here too. */
.inv-adorn__cols{display:grid;
	grid-template-columns:minmax(0,1fr) var(--inv-panel-w,460px);
	gap:2%;align-items:start;padding:4px}
@media (max-width:1100px){
	.inv-adorn__cols{grid-template-columns:minmax(0,1fr);gap:14px}
}
/* Same list manners as the stable: no bar, and the last row dissolves. */
.inv-adorn__list{min-width:0;max-height:min(70vh,640px);overflow-y:auto;overflow-x:hidden;
	scrollbar-width:none;-ms-overflow-style:none;
	-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 54px),rgba(0,0,0,0));
	mask-image:linear-gradient(to bottom,#000 calc(100% - 54px),rgba(0,0,0,0))}
.inv-adorn__list::-webkit-scrollbar{width:0;height:0;display:none}
/* ⚠ Same !important as the stable's grid -- create-lineup.css hides this one too
   once something is picked, and an important declaration needs an important answer. */
.inv-adorn__list .inv-adornment-grid-wrap.hidden{display:block!important}
/* ⚠ THE TILE IS A FIXED SIZE AND THE ROW REFLOWS. Pan_GLMountOrnament is 150 square
   -- .536 of the 280 the card is measured in, so 115px here -- and the game fits as
   many across as the left side has room for. Four stretchy columns did the opposite:
   every tile grew with the window, which is what was asked to stop. */
.inv-adorn__list .inv-adornment-grid{display:grid;
	grid-template-columns:repeat(auto-fill,calc(var(--mnt-card-w,174px) * var(--adorn-tile,.44)));
	gap:8px;justify-content:start}
.inv-adorn__list .inv-adornment-option{width:auto;height:auto;padding:0;border:0;
	background:none;display:block;gap:0;transition:filter .15s}
/* ⚠ THE LEATHER IS A TINT, NOT A SPRITE. pic_mount_21 in the prefab is a pale ring
   watermark on white -- the brown is the game's own colour under it. These are the
   values off the game's screen: rgb(150,110,76) in the middle to rgb(92,64,46) at
   the edge. */
.inv-adorn__list .inv-adornment-option img{width:100%;height:auto;aspect-ratio:1;
	object-fit:contain;padding:11%;border:0;border-radius:0;
	background:radial-gradient(circle at 50% 42%,
		rgb(150 110 76) 0%,rgb(122 87 60) 55%,rgb(92 64 46) 100%)}
.inv-adorn__list .inv-adornment-option:hover{filter:brightness(1.1)}
.inv-adorn__list .inv-adornment-option.is-chosen img{
	box-shadow:inset 0 0 0 2px rgba(246,200,99,.95)}
.inv-adorn__list .inv-visual-icon-label,
.inv-adorn__list .inv-effect-name{display:block;font-size:.58rem;line-height:1.2;
	max-width:100%;color:#9fb0c9;text-align:center}

/* The chosen one, on the game's own brown card. */
/* ⚠ THE GAME'S SHAPE AND THE GAME'S GROUND. Measured off its own screen the card
   is 974x344 -- 2.83, a long low slab, not 16:9 and not the 2.18 guessed before.
   And the ground is not a plain wash: there is a big pale ring pattern sunk into
   the leather, which is pic_mount_21 -- the sprite that looked like nothing on its
   own because the brown under it is the game's colour, not part of the file. */
/* ⚠ IT IS A SPRITE, AND HERE IT IS: ui_g_menumount/pic_mount_18a, 500x169 -- the
   brown leather panel with the faint circle and the radiating line-work, with the
   darker band across the top where the effect's name sits. Every brown gradient
   drawn here before was an imitation of this file, which is why none of them ever
   looked right. 500/169 is 2.96, near enough the 2.83 measured off the screen that
   the sprite's own shape is the one to use. (pic_mount_18b is the same panel
   without the top band, kept as adorn-card-plain.webp.) */
.inv-adorn__stage{position:relative;display:grid;place-items:center;margin-top:10px;
	width:100%;aspect-ratio:500/169;overflow:hidden;
	background:url(../images/game-icons/adorn-card.webp) center/100% 100% no-repeat}
/* ⚠ THE RING IS NOT THE CARD'S. pic_mount_21 is what the game puts behind the
   piece in the ring ON THE HORSE -- the circular field it sits in -- and putting
   it on this slab was reading the sprite into the wrong place twice over. The
   slab's ground is the leather and nothing else. */
/* The piece is 58% of the card's height in the game; at 70% it filled the slab. */
.inv-adorn__art{position:relative;display:block;width:auto;height:58%;max-width:46%;
	object-fit:contain}
/* The pair at the foot, side by side the way the game sets them: the stone plate
   first, the gold one second. A button with nothing to do is dimmed, not hidden --
   the foot keeps its shape either way. */
.inv-adorn__foot{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.inv-adorn__foot .inv-mnt__act{width:100%;max-width:none;margin:0}
.inv-adorn__foot .inv-mnt__act:disabled{opacity:.42;cursor:default;filter:saturate(.5)}
/* The band replaces the editor's own adornment socket, so that block stands down on
   the mount screen. Its PANEL is moved to the adornment screen before this bites --
   the label and the plus plate are what is being put away, not the fields. */
.inv-mnt__controls .inv-adorn-block{display:none}
/* Moved in whole: the level slider and the effect picker, the game's right-hand side. */
.inv-adorn__side{margin-top:12px}
.inv-adorn__side .inv-adorn-panel{display:block}
/* ⚠ THE BANNER'S CHROME GOES, THE BANNER DOES NOT. The editor's chosen-adornment
   card -- portrait, name and an x -- repeats what the head and the slab above it
   already say, so none of it is drawn here. It may not be display:none'd though:
   the piece's own 1-60 slider is a CHILD of it, and so is .inv-adornment-clear,
   which is the button UNEQUIP reaches through. So the box is stripped to nothing
   and only its three ornaments are hidden. */
.inv-adorn__side .inv-adornment-selected{max-width:none;width:100%;
	display:block;padding:0;border:0;border-radius:0;background:none}
.inv-adorn__side .inv-adornment-portrait,
.inv-adorn__side .inv-adornment-name,
.inv-adorn__side .inv-adornment-clear{display:none}
.inv-adorn__side .inv-label-sm{margin:12px 0 6px;font-family:Georgia,'Times New Roman',serif;
	font-weight:700;font-size:1rem;letter-spacing:.06em;text-transform:uppercase;color:#f3c04a}
/* ⚠ THE OLD RELATION PICKER STANDS DOWN -- it is not removed. The chip with the x
   and the search box beside it are the builder's generic picker, and the grid of
   effects underneath does that job here, so two pickers were showing for one
   choice. It is hidden rather than deleted because .inv-rel-hidden lives inside
   the pills and that input is what the save reads -- a hidden input still posts
   from a display:none parent, and adornEffectChosen() still finds it. */
.inv-adorn__side .inv-effect-picker-wrap{display:none}

/* ── the level band and the three base attributes ─────────────────────────────
   m_PanProgress1 is 720x60 on pic_mount_36 with an 80-unit rank diamond at its
   left (pic_mount_quality9_04 under the numeral) and the level at its right.
   Under it the game lists what the piece gives, from Pan_List. */
.inv-adorn__lv{position:relative;display:flex;align-items:center;
	margin-top:12px;height:calc(var(--mnt-card-w,174px) * .214);padding:0 4%;
	background:url(../images/game-icons/adorn-lvband.webp) center/100% 100% no-repeat}
/* ⚠ AT THE CAP THE BAND CHANGES. The game swaps pic_mount_36 for pic_mount_29c --
   a gold-to-teal-to-lavender wash, a real picture rather than a white one -- so a
   piece at 60/60 says so by its ground rather than by its number alone. */
.inv-adorn__lv.is-max{
	background-image:url(../images/game-icons/adorn-lvband-max.webp)}
.inv-adorn__lv.is-max .inv-adorn__lvtext{color:#fff;
	text-shadow:0 1px 3px rgba(0,0,0,.55)}
.inv-adorn__lv[hidden]{display:none}
.inv-adorn__rank{flex:none;display:grid;place-items:center;
	height:86%;aspect-ratio:1;
	background:url(../images/game-icons/adorn-badge-01.webp) center/contain no-repeat;
	font-size:0}
.inv-adorn__rank[data-tier="2"]{background-image:url(../images/game-icons/adorn-badge-02.webp)}
.inv-adorn__rank[data-tier="3"]{background-image:url(../images/game-icons/adorn-badge-03.webp)}
.inv-adorn__rank[data-tier="4"]{background-image:url(../images/game-icons/adorn-badge-04.webp)}
/* ⚠ THE BAND READS AS A STEP: "Lv.2 ▸ Lv.3/20" -- where you are in the piece's
   own tan, the small green arrow (arrow_n_entitylevelup_01, 24x26, which already
   points RIGHT in the file and must not be rotated), and where the next press puts
   you, in green. */
.inv-adorn__lvtext{margin-left:auto;display:flex;align-items:center;gap:6px;
	font-family:Rajdhani,sans-serif;font-weight:700;
	font-size:1.05rem;color:#f3c04a;letter-spacing:.02em}
.inv-adorn__lvtext em{display:block;flex:none;width:13px;height:14px;
	background:url(../images/game-icons/adorn-up-arrow.webp) center/contain no-repeat}
.inv-adorn__lvtext b{font-weight:700;color:#7ee08a}
.inv-adorn__lv.is-max .inv-adorn__lvtext b{color:#fff}
.inv-adorn__attrs{margin-top:2px}
.inv-adorn__attrs[hidden]{display:none}
.inv-adorn__attr{padding:9px 2px 8px;border-bottom:1px solid rgba(255,255,255,.08)}
.inv-adorn__attr-head{display:flex;align-items:center;gap:9px}
.inv-adorn__attr-ico{flex:none;width:24px;height:24px;background:center/contain no-repeat}
.inv-adorn__attr-name{font-size:1rem;color:#e8edf6}
.inv-adorn__attr-line{margin:3px 0 0;font-size:.9rem;color:#9fb0c9}
/* The figure is the one thing a player is reading for. */
.inv-adorn__attr-val{color:#8ee6a0;font-weight:700}
/* ⚠ A SHUT LINE IS NOT A SMALL ONE. Lines two and three carry nothing until the
   piece reaches Lv.21 and Lv.41; until then the game greys the row and hangs a
   padlock on it beside the figure the line WILL start from. Drawing them lit was
   the visible half of treating all three as one straight run. */
.inv-adorn__attr.is-locked{opacity:.52}
.inv-adorn__attr.is-locked .inv-adorn__attr-val{color:#93a3bb}
.inv-adorn__attr-lock{flex:none;width:17px;height:17px;margin-left:auto;
	background:url(../images/game-icons/icon-attr-locked.webp) center/contain no-repeat}

/* ── the effect while its level is being set ──────────────────────────────────
   The game gives it a name in the band's colour, the mark on a lit diamond, and
   the five steps of the band under it -- and names no tiers, because the colour
   is the tier. Ours had four written-out quality pills and a row of pips, which
   said the same thing twice and looked nothing like it.
   A band is five levels: 1-5 rare, 6-10 epic, 11-15 legendary, 16-20 mythical. */
/* ⚠ THE SHEET AND THE PANEL WEAR IT DIFFERENTLY. On the landing the game sets the
   effect as a ROW -- heading, then a small plated mark with the name beside it and
   the band's five steps out at the right, then the sentence underneath, full width
   and flush left. The big centred diamond belongs to its own panel, not here.
   The grid is the same markup read two ways. */
.inv-adorn__fx{display:none;margin-top:2px;text-align:center}
/* A hairline over the heading and another under the block, as the game rules it
   off from the attributes above and whatever follows. */
.inv-adorn__fx-head{margin:0 0 6px;padding-top:10px;
	font-family:Georgia,'Times New Roman',serif;
	font-weight:700;font-size:1rem;letter-spacing:.06em;text-transform:uppercase;
	color:#f3c04a;text-align:left;border-top:1px solid rgba(255,255,255,.13)}
/* ⚠ WHY THIS IS CSS AND NOT THE SPRITES. m_PanGrid names three files and I tried
   to use them directly twice, which is what kept coming out wrong:
     pic_mount_quality13_bg1  108x14  PURE WHITE -- the frame, tinted at runtime
     pic_mount_quality13_bg2   97x8   PURE WHITE -- the track, likewise
     pic_mount_quality13_03-06  8x36  a hollow OUTLINE in the band's colour, with
                                      a soft glow above and below; its centre is
                                      fully transparent
   Drawn as they come, the first two give a white pill and the third gives five
   empty rings -- which is exactly what was on the screen. The game tints the two
   white ones dark and fills behind the outline. So the bar is drawn here instead,
   in the same band colours the rest of this screen uses: a dark track, five cells
   in the band, and the one the level stands on lit. The sprite ratios are kept --
   frame 156x20, cell 29 wide and 36 tall, pitch 140/5. */
/* ⚠ THE PILL BEHIND IS A SPRITE: ui_n_button/btn_n_hud_yw_04, 130x36, a dark
   chamfered slab at rgb(18,18,20) and 40% alpha -- pointed at both ends, which is
   what no amount of border-radius was going to give. The cells sit inset inside
   it, flat and wide, and the one the level stands on is brighter with a white
   outline and a small caret under it. */
/* ── the band's step bar ───────────────────────────────────────────────────────
   Rebuilt once, from the measurements, after three goes at it:

   THE SLAB is btn_n_hud_yw_04, 130x36, ratio 3.6 -- a dark chamfered plate with
   pointed ends. (m_PanGrid's own Pic_Frame, quality13_bg1, is 108x14 at 7.7:1 and
   is a different, much thinner element; against the game's own crop the cells sit
   at HALF the slab's height, which only fits the 3.6 one.)

   ⚠ WHAT EACH PIECE ACTUALLY IS. Three sprites, and I had the job of two of them
   wrong before the game's own close-up settled it:
     quality13_bg1  the slab, one rounded pill          156x20  WHITE -> a mask
     quality13_bg2  ALL FIVE cells in a single strip    140x12  WHITE -> a mask
     quality13_0N   the BRIGHT FRAME on the cell the level stands on, 03/04/05/06
                    for blue, purple, gold and red
   quality13_0N is not the cell and it is not an animation: the four are four
   COLOURS, one per band, which is why the prefab offers all four on every one of
   m_PicGrid1-5. The blink the cells do is a particle on top,
   p_fx_ui_glmountcharacter_gird_lighting_<colour>, not these files.

   ⚠ AND IT IS AUTHORED ON ITS SIDE. The canvas is 8x36 but the ink is a hollow
   rectangle 6 WIDE and 12 TALL, standing up, while the cell it has to ring lies
   down. Turned a quarter and nine-sliced at 1 it rings the box at any size; drawn
   as it ships it is a white sliver, which is what it kept coming out as.

   m_PanRefine/Pan_Top/Pan_2/Pan_Grid is 162x20 at scale 1.34. The five cells are
   measured off bg2's own ink rather than off the prefab, because that is what the
   frame has to land on: centres at 15.3, 32.6, 49.6, 67.4 and 84.3 percent, each
   15.2% wide, as tall as the track. */
.inv-adorn__fx-bar{position:relative;display:none;width:24%;top:-22px;min-width:132px;max-width:190px;
	aspect-ratio:162/20;padding:0;border-radius:0;background:none}
.inv-adorn__fx-bar::before,.inv-adorn__fx-bar::after{content:'';position:absolute;
	top:50%;left:50%;translate:-50% -50%;pointer-events:none}
.inv-adorn__fx-bar::before{width:96.3%;height:100%;background:rgb(16 13 11 / 94%);
	-webkit-mask:url(../images/game-icons/adorn-grid-frame.webp) center/100% 100% no-repeat;
	        mask:url(../images/game-icons/adorn-grid-frame.webp) center/100% 100% no-repeat}
/* The five cells are the band's colour at full strength -- the game's own close-up
   is a solid, warm red, not a wash of it over the slab. 46% read as mud beside it. */
.inv-adorn__fx-bar::after{width:86.4%;height:60%;
	background:color-mix(in srgb,var(--fx-col,#6b7280) 90%,rgb(54 26 22));
	-webkit-mask:url(../images/game-icons/adorn-grid-track.webp) center/100% 100% no-repeat;
	        mask:url(../images/game-icons/adorn-grid-track.webp) center/100% 100% no-repeat}
/* ⚠ AND THE CURRENT CELL IS LIT BY US, NOT BY quality13_0N. The sprite is a 1px
   hollow rectangle six pixels across; blown up to a cell it is a thin hard box
   that reads as a rendering fault rather than as a highlight. The game's own
   close-up is a brighter fill, a pale edge and a bloom -- which is three CSS
   declarations and looks like the screenshot, where the sprite did not. The file
   stays in the dump; nothing here loads it. */
.inv-adorn__fx-bar i{position:absolute;top:50%;translate:-50% -50%;
	width:15.2%;height:60%;border:0;border-radius:0;opacity:0;
	background:color-mix(in srgb,var(--fx-col,#6b7280) 64%,#fff)}
.inv-adorn__fx-bar i:nth-child(1){left:15.3%}
.inv-adorn__fx-bar i:nth-child(2){left:32.6%}
.inv-adorn__fx-bar i:nth-child(3){left:49.6%}
.inv-adorn__fx-bar i:nth-child(4){left:67.4%}
.inv-adorn__fx-bar i:nth-child(5){left:84.3%}
.inv-adorn__fx-bar i.cur{opacity:1;
	box-shadow:0 0 0 2px rgb(255 255 255 / 92%),
		0 0 14px 4px color-mix(in srgb,var(--fx-col,#6b7280) 85%,transparent),
		0 0 28px 8px color-mix(in srgb,var(--fx-col,#6b7280) 45%,transparent)}
/* ⚠ THE CARET IS pic_arrow_01, AND IT BELONGS TO THE DESCRIPTION BOX. It is not
   a mark on the bar: m_PanTips -- the box with pic_mount_31 and the scrolling text
   -- carries Pan_Arrow, the SAME 162x20 strip the grid uses at the same scale 1.34,
   sitting 6.5 above the box's top, and m_PicArrow_Grid rides along it to whichever
   cell is current (the prefab leaves it at +56, the fifth). So the box points up at
   the cell, and the x positions are the grid's own.
   64 at scale 0.75 = 48 drawn against the strip's 162, so 29.6% of the bar -- but
   27 of those 48 are the only inked columns, the rest is the sprite's margin. The
   file here is cut to the ink (27x21), so the BOX is the ink: 12.3% of the bar,
   four-fifths of a cell, which is what the close-up shows. */
.inv-adorn__fx-caret{position:absolute;top:94%;translate:-50% 0;
	width:12.3%;aspect-ratio:27/21;border:0;
	background:url(../images/game-icons/adorn-grid-caret.webp) center/contain no-repeat;
	left:var(--caret,50%);transition:left .16s}
/* ── THE SHEET: ONE ROW ──────────────────────────────────────────
   Under ATTRIBUTES RE-ROLL the game puts the mark, the name and the five steps on
   ONE LINE, all on the same axis, with the description under it. Ours stacked them
   -- name, then a big diamond with its rays, then the bar lower down and to the
   right -- because a rule further down set display:block on this block for BOTH
   the sheet and the panel, and block beat the grid that was meant to lay it out.
   The panel is the one that wants the big centred diamond; the sheet does not.
   ⚠ EVERY OVERRIDE HERE CARRIES :not([hidden]) so it outranks that rule. */
.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__fx:not([hidden]){
	display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto auto auto;
	column-gap:12px;row-gap:2px;align-items:center;text-align:left}
.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__fx-head{
	grid-column:1/-1;grid-row:1;margin:0}
/* The mark alone on the sheet: at 38px two stacked plates turn to mud, so it wears
   the inner one, and the two lines that run out of the diamond are a panel flourish
   that has no room on a list row. */
.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__fx-gem{
	width:38px;min-width:0;max-width:none;margin:0;
	grid-column:1;grid-row:2;filter:none;background-image:var(--fx-in,none)}
.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__fx-gem::before,
.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__fx-ray{display:none}
.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__fx-gem img{width:52%;height:52%}
.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__fx-name{
	grid-column:2;grid-row:2;margin:0;text-align:left;align-self:center}
.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__fx-bar{
	display:block;grid-column:3;grid-row:2;justify-self:end;align-self:center;
	margin:0;width:150px;min-width:0;max-width:none}
/* No caret out here -- the game hangs it off the description box in the panel, and
   on a list row it would drop into the sentence below. */
.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__fx-caret{display:none}
.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__fx-desc{
	grid-column:1/-1;grid-row:3;max-width:none;margin:6px 0 0;padding:0 0 10px;
	background:none;border:0;border-bottom:1px solid rgba(255,255,255,.13)}
/* THE PANEL keeps the big diamond and the centred column. */
.inv-mnt__adorn.is-tune[data-tune="effect"] .inv-adorn__fx-head{text-align:center}
.inv-mnt__adorn.is-tune[data-tune="effect"] .inv-adorn__fx:not([hidden]){display:block}
.inv-adorn__fx-name{margin:0 0 10px;font-family:Rajdhani,sans-serif;font-weight:700;
	font-size:1.05rem;letter-spacing:.02em;color:var(--fx-col,#c9d3e2)}
/* ⚠ THE DIAMOND IS A SPRITE. pic_mount_quality4_03..06 -- blue, purple, gold, red,
   the four bands -- with the mark at 38 of its 56, as m_PicCharacter1 sits on
   m_PicCharacterBg1. A rotated box with a gradient in it was standing in for this. */
/* ⚠ TWO PLATES, ONE INSIDE THE OTHER -- pic_mount_quality15_0N is the outer
   diamond at 139 and quality16_0N the inner at 94, both 03..06 for the four
   bands, so the inner sits at 67.6% of the outer and the mark goes in the middle
   of that. I had been using quality4, which is the small trait plate: one plate
   where the game stacks two. */
.inv-adorn__fx-gem{position:relative;display:inline-grid;place-items:center;
	width:clamp(96px,26%,136px);aspect-ratio:1;
	background:var(--fx-out,var(--fx-gem,none)) center/contain no-repeat;
	filter:drop-shadow(0 0 14px color-mix(in srgb,var(--fx-col,#6b7280) 65%,transparent))}
.inv-adorn__fx-gem::before{content:'';position:absolute;width:67.6%;height:67.6%;
	background:var(--fx-in,none) center/contain no-repeat;pointer-events:none}
/* ⚠ AND THE TWO LINES THAT RUN OUT OF IT. m_PicPatternR is quality17_0N, 248x48
   at x=+48 with pivot 0,0.5 -- it starts just outside the inner diamond and runs
   out to the right -- and m_PicPatternL is the SAME sprite at scale -1,1. Against
   Pan_Mid's 200 the pair spans 48+248 either side, so 296% x 24%, and each line is
   248 of that 592, 41.9%, hard against its end. They sit behind the diamond. */
.inv-adorn__fx-ray{position:absolute;z-index:-1;pointer-events:none;
	top:50%;left:50%;translate:-50% -50%;width:296%;height:24%;display:block}
.inv-adorn__fx-ray::before,.inv-adorn__fx-ray::after{content:'';position:absolute;
	top:0;bottom:0;width:41.9%;
	background:var(--fx-ray,none) center/100% 100% no-repeat}
.inv-adorn__fx-ray::before{left:0;scale:-1 1}
.inv-adorn__fx-ray::after{right:0}
.inv-adorn__fx-gem img{position:relative;z-index:2;width:32%;height:32%;object-fit:contain}
/* The band's colours are the site's one rarity palette. */
.inv-adorn__fx[data-band="0"]{--fx-col:#5aa6f0;--fx-out:url(../images/game-icons/adorn-fx-out-0.webp);--fx-in:url(../images/game-icons/adorn-fx-in-0.webp);--fx-gem:url(../images/game-icons/adorn-fx-gem-0.webp);--fx-step:url(../images/game-icons/adorn-step-0.webp);--fx-ray:url(../images/game-icons/adorn-fx-ray-0.webp)}
.inv-adorn__fx[data-band="1"]{--fx-col:#b06ef0;--fx-out:url(../images/game-icons/adorn-fx-out-1.webp);--fx-in:url(../images/game-icons/adorn-fx-in-1.webp);--fx-gem:url(../images/game-icons/adorn-fx-gem-1.webp);--fx-step:url(../images/game-icons/adorn-step-1.webp);--fx-ray:url(../images/game-icons/adorn-fx-ray-1.webp)}
.inv-adorn__fx[data-band="2"]{--fx-col:#f3c04a;--fx-out:url(../images/game-icons/adorn-fx-out-2.webp);--fx-in:url(../images/game-icons/adorn-fx-in-2.webp);--fx-gem:url(../images/game-icons/adorn-fx-gem-2.webp);--fx-step:url(../images/game-icons/adorn-step-2.webp);--fx-ray:url(../images/game-icons/adorn-fx-ray-2.webp)}
.inv-adorn__fx[data-band="3"]{--fx-col:#ef6a5e;--fx-out:url(../images/game-icons/adorn-fx-out-3.webp);--fx-in:url(../images/game-icons/adorn-fx-in-3.webp);--fx-gem:url(../images/game-icons/adorn-fx-gem-3.webp);--fx-step:url(../images/game-icons/adorn-step-3.webp);--fx-ray:url(../images/game-icons/adorn-fx-ray-3.webp)}
.inv-adorn__fx-desc{max-width:34em;height:160px;margin:0 auto 0;padding:3px 4px;
	background:rgb(10 14 20 / 62%);border:1px solid rgba(255,255,255,.10);
	font-size:.9rem;line-height:1.55;color:#dfe5f2;text-align:left}
.inv-adorn__fx-desc:empty{display:none}

/* ── the mount's traits, on the game's own plates ─────────────────────────────
   ListItem_GLMountCharacter stands a trait's mark on m_PicCharacterBg1, a 58-unit
   quality plate -- pic_mount_quality4_01..06, white through red -- with the mark at
   38 on top of it. Ours were small rounded thumbnails whose RARITY was carried by
   a hue-rotate on the icon itself, so every trait's artwork came out a different
   colour from the one it was drawn in.
   ⚠ NO JS FOR THIS. create-lineup.js already resolves a trait's rank to its tier
   and writes it as data-trait-tier on the thumb -- the one source, and the same one
   the battle-sim reads. Recomputing it here would have been a second ladder to
   keep in step. The plate is chosen off that attribute and the hue-rotate is taken
   back off the mark, because the plate is what carries the colour now.
   ⚠ The game also draws a five-step grid under the mark. That is a value INSIDE
   the quality and nothing in our model holds one, so it is left off rather than
   filled with a number that would be invented. */
/* ⚠ NOT A PERCENTAGE PADDING. A percentage padding resolves against the CONTAINING
   BLOCK'S WIDTH, not the element's, and this thumb is a flex item in a row some
   700px wide -- so 19% became 133px a side, the box blew out to 266px, and with
   border-box the content was squeezed to nothing: a giant plate with no mark on
   it. The inset is the plate's own 38-of-58 margin, which is 6px at this size --
   measured on screen at 5, which is where it sits. */
/* 34px, down from 46: measured on screen 2026-11-05, so the trait list fits the
   fixed stage beside the shortened stat rows. box-sizing:border-box is what makes
   the 34 the OUTER box with the padding inside it; without it the plate comes out
   44 and the row grows back. */
.inv-mnt .inv-trait-rank-thumb{box-sizing:border-box;
	width:34px;height:34px;min-width:34px;flex:0 0 34px;
	border:0;border-radius:0;object-fit:contain;padding:5px;
	background:var(--tr-gem,none) center/contain no-repeat;filter:none}
.inv-mnt .inv-trait-rank-thumb[data-trait-tier="common"]{--tr-gem:url(../images/game-icons/trait-gem-common.webp)}
.inv-mnt .inv-trait-rank-thumb[data-trait-tier="uncommon"]{--tr-gem:url(../images/game-icons/trait-gem-uncommon.webp)}
.inv-mnt .inv-trait-rank-thumb[data-trait-tier="rare"]{--tr-gem:url(../images/game-icons/trait-gem-rare.webp)}
.inv-mnt .inv-trait-rank-thumb[data-trait-tier="epic"]{--tr-gem:url(../images/game-icons/trait-gem-epic.webp)}
.inv-mnt .inv-trait-rank-thumb[data-trait-tier="legendary"]{--tr-gem:url(../images/game-icons/trait-gem-legendary.webp)}
.inv-mnt .inv-trait-rank-thumb[data-trait-tier="mythical"]{--tr-gem:url(../images/game-icons/trait-gem-mythical.webp)}
/* The row itself reads as one of the game's TRAITS lines: no card, a hairline
   between, the name leading and the rank at the end. */
.inv-mnt .inv-trait-rank-item{gap:8px;padding:0 2px;border:0;border-radius:0;
	background:none;border-bottom:1px solid rgba(255,255,255,.08)}
.inv-mnt .inv-trait-rank-name{font-size:.75rem;color:#e8edf6}
/* ⚠ "EPIC · +6.8%" STANDS DOWN. The line under it now says what the trait does
   AND carries the same figure, so this was the number twice and the rarity in a
   word the plate already gives in colour. */
.inv-mnt .inv-trait-rank-tier{display:none}
/* AND "RANK 7" WITH IT. The slider is right there and its fill shows the rank as a
   position; the effect line under the name already states what that rank gives. A
   number repeating the handle it sits next to is the third time this row said the
   same thing. Hidden, not unbuilt: create-lineup.js writes "Rank N" into this span on
   every slider move, and the builder's own trait editor still shows it. */
.inv-mnt .inv-trait-rank-val{display:none}
/* The chosen rows carry the same sentence the list below does, so a trait reads
   the same whether it is on the mount or waiting to be picked. */
.inv-mnt .inv-trait-rank-info .inv-tr-fx{margin-top:0;font-size:.62rem;
	line-height:1.4;white-space:normal}
.inv-mnt .inv-trait-rank-item{align-items:flex-start}
/* 4.5rem here, 5.5 in the builder. ⚠ The base rule lives in create-lineup.css and
   this markup comes from create-lineup.js, so the slider is SHARED -- narrowing the
   base would narrow the builder's trait editor too. Scoped, like every other value on
   this screen. */
.inv-mnt .inv-trait-rank-slider{align-self:center;width:4.5rem}
/* ⚠ A GROUND UNDER THE TRAITS, so the writing is not read off the hero behind it.
   The game lays frame_mount_gradient_02 under this block -- a 500x8 strip of pure
   WHITE whose alpha runs 255 down to 128 left to right, tinted dark at runtime,
   the same trick the stable's count strip uses. So it is that curve on the dark,
   not a flat box: heaviest where the icons are, thinning out to the right. */
.inv-mnt .inv-trait-rank-row:not(:empty){
	margin-top:1px;padding:0;gap:.1rem;height:280px;
	background:linear-gradient(90deg,rgba(14,18,25,.62) 0%,rgba(14,18,25,.50) 50%,
		rgba(14,18,25,.31) 100%)}
.inv-mnt .inv-trait-rank-item:last-child{border-bottom:0}

/* The picker, as the game lists traits: a column of rows, each the mark on its
   quality plate with the name beside it and the sentence underneath. These are the
   builder's own buttons -- its click still selects and still holds the max of
   three -- laid out differently and given the two lines. */
/* Thirty rows is a very long page, and the game does not give them one: they sit
   in a box of their own and scroll inside it. Same manners as the stable and the
   rings list -- no bar drawn, and the last row dissolves at the foot instead of
   being cut, which is what says there is more below. --tr-list-h is the knob. */
/* ⚠ ONE COLUMN. The builder's own .inv-visual-icon-grid is a wrapping flex row, so
   without nowrap and a full-width row these laid themselves out two abreast. */
.inv-mnt .inv-trait-visual-grid{display:flex;flex-direction:column;flex-wrap:nowrap;gap:0;
	margin-top:8px;align-items:stretch;
	max-height:var(--tr-list-h,340px);overflow-y:auto;overflow-x:hidden;
	scrollbar-width:none;-ms-overflow-style:none;
	-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 46px),rgba(0,0,0,0));
	mask-image:linear-gradient(to bottom,#000 calc(100% - 46px),rgba(0,0,0,0));
	background:linear-gradient(90deg,rgba(14,18,25,.62) 0%,rgba(14,18,25,.50) 50%,
		rgba(14,18,25,.31) 100%)}
.inv-mnt .inv-trait-visual-grid::-webkit-scrollbar{width:0;height:0;display:none}
/* ⚠ THE BUILDER'S OWN CAPTION STANDS DOWN. It writes the name under the icon, and
   the row writes it beside -- two of the same name on every line. Hiding it in CSS
   rather than on the element: the builder rebuilds these buttons, and a property
   set on one of them does not survive that. */
.inv-mnt .inv-trait-visual-grid .inv-visual-icon-label{display:none}
/* ⚠ THE SEARCH BOX STANDS DOWN, IT IS NOT REMOVED. The list below is the picker
   now -- thirty rows in one scrolling box -- so a search field above it is a
   second way in for the same thirty. The wrap stays in the DOM because
   .inv-rel-hidden lives in its pills and that is the field the save reads; a
   hidden input still posts from a display:none parent. */
.inv-mnt .inv-trait-picker-wrap{display:none}
/* ⚠ SQUARE. Never a rounded corner on these -- standing instruction, and the game
   has none either: every box on this screen is cut straight. */
.inv-mnt .inv-trait-visual-grid,
.inv-mnt .inv-trait-visual-grid .inv-visual-icon-btn,
.inv-mnt .inv-trait-visual-grid .inv-visual-icon-btn img,
.inv-mnt .inv-trait-rank-item,
.inv-mnt .inv-trait-rank-thumb{border-radius:0}
.inv-mnt .inv-trait-visual-grid .inv-visual-icon-btn{
	flex:0 0 auto;flex-direction:row;align-items:flex-start;gap:6px;
	width:100%;max-width:none;height:auto;
	padding:1px 2px;text-align:left;
	border-bottom:1px solid rgba(255,255,255,.07);transition:background .14s}
.inv-mnt .inv-trait-visual-grid .inv-visual-icon-btn:last-child{border-bottom:0}
.inv-mnt .inv-trait-visual-grid .inv-visual-icon-btn:hover{background:rgb(255 255 255 / 5%)}
.inv-mnt .inv-trait-visual-grid .inv-visual-icon-btn img{
	box-sizing:border-box;flex:0 0 28px;width:28px;height:28px;
	border:0;border-radius:0;object-fit:contain;padding:4px;filter:none;
	background:var(--tr-gem,none) center/contain no-repeat}
.inv-mnt .inv-trait-visual-grid .inv-visual-icon-btn[data-trait-tier="common"] img{--tr-gem:url(../images/game-icons/trait-gem-common.webp)}
.inv-mnt .inv-trait-visual-grid .inv-visual-icon-btn[data-trait-tier="uncommon"] img{--tr-gem:url(../images/game-icons/trait-gem-uncommon.webp)}
.inv-mnt .inv-trait-visual-grid .inv-visual-icon-btn[data-trait-tier="rare"] img{--tr-gem:url(../images/game-icons/trait-gem-rare.webp)}
.inv-mnt .inv-trait-visual-grid .inv-visual-icon-btn[data-trait-tier="epic"] img{--tr-gem:url(../images/game-icons/trait-gem-epic.webp)}
.inv-mnt .inv-trait-visual-grid .inv-visual-icon-btn[data-trait-tier="legendary"] img{--tr-gem:url(../images/game-icons/trait-gem-legendary.webp)}
.inv-mnt .inv-trait-visual-grid .inv-visual-icon-btn[data-trait-tier="mythical"] img{--tr-gem:url(../images/game-icons/trait-gem-mythical.webp)}
.inv-tr-row{display:block;min-width:0;flex:1 1 auto}
.inv-tr-name{display:block;font-size:.78rem;line-height:1.05;color:#e8edf6}
/* The name takes the quality's colour, the one palette the whole site uses. */
[data-trait-tier="mythical"] .inv-tr-name{color:#ef6a5e}
[data-trait-tier="legendary"] .inv-tr-name{color:#f3c04a}
[data-trait-tier="epic"] .inv-tr-name{color:#b06ef0}
[data-trait-tier="rare"] .inv-tr-name{color:#5aa6f0}
[data-trait-tier="uncommon"] .inv-tr-name{color:#6fcf7f}
[data-trait-tier="common"] .inv-tr-name{color:#c9d3e2}
.inv-tr-fx{display:block;margin-top:1px;font-size:.56rem;line-height:.85;
	color:#9fb0c9;white-space:normal}
.inv-tr-fx b{color:#8ee6a0;font-weight:700}
/* A trait that is not on the mount is dimmed, not hidden -- it is still choosable. */
.inv-mnt .inv-trait-visual-grid .inv-visual-icon-btn{opacity:.62}
.inv-mnt .inv-trait-visual-grid .inv-visual-icon-btn.inv-icon-selected{opacity:1;
	background:rgb(246 200 99 / 8%)}
.inv-adorn__fx-desc strong{color:var(--fx-col,#f3c04a);font-weight:700}

/* The written-out tiers and the editor's own captions stand down -- the diamond
   and its colour say both -- and the five steps become the game's bar. */
.inv-mnt__adorn.is-tune[data-tune="effect"] .inv-adorn__side .inv-adorn-effect-locked > .inv-label-sm,
.inv-mnt__adorn.is-tune[data-tune="effect"] .inv-adorn__side .inv-adorn-level-section > .inv-label-sm{display:none}
.inv-mnt__adorn.is-tune .inv-adorn__side .inv-adorn-qual-tabs{display:none}
.inv-mnt__adorn.is-tune .inv-adorn__side .inv-adorn-level-row{justify-content:center;gap:12px}
.inv-mnt__adorn.is-tune .inv-adorn__side .inv-adorn-kademe{display:flex;gap:4px}
/* ⚠ THE BAR IS SPRITES TOO. m_PanGrid is pic_mount_quality13_bg1 (108x14 frame)
   over bg2 (97x8 track) with five 8x36 steps drawn at 29 wide -- quality13_03..06,
   one per band. Flat coloured rectangles were standing in for all of it, and the
   flat wash painted over them took the filled ones with it, so the bar went grey. */
.inv-mnt__adorn.is-tune .inv-adorn__side .inv-adorn-kademe{
	padding:4px 5px;background:url(../images/game-icons/adorn-stepbar.webp) center/100% 100% no-repeat}
.inv-mnt__adorn.is-tune .inv-adorn__side .inv-adorn-pip{width:29px;height:16px;
	border:0;border-radius:0;background:url(../images/game-icons/adorn-steptrack.webp) center/100% 100% no-repeat}
.inv-mnt__adorn.is-tune .inv-adorn__side .inv-adorn-kademe[data-fill="1"] .inv-adorn-pip:nth-child(-n+1),
.inv-mnt__adorn.is-tune .inv-adorn__side .inv-adorn-kademe[data-fill="2"] .inv-adorn-pip:nth-child(-n+2),
.inv-mnt__adorn.is-tune .inv-adorn__side .inv-adorn-kademe[data-fill="3"] .inv-adorn-pip:nth-child(-n+3),
.inv-mnt__adorn.is-tune .inv-adorn__side .inv-adorn-kademe[data-fill="4"] .inv-adorn-pip:nth-child(-n+4),
.inv-mnt__adorn.is-tune .inv-adorn__side .inv-adorn-kademe[data-fill="5"] .inv-adorn-pip{
	background-image:var(--fx-step,none)}
/* The step being stood on is outlined, the way the game marks it. */
.inv-mnt__adorn.is-tune .inv-adorn__side .inv-adorn-kademe[data-fill="1"] .inv-adorn-pip:nth-child(1),
.inv-mnt__adorn.is-tune .inv-adorn__side .inv-adorn-kademe[data-fill="2"] .inv-adorn-pip:nth-child(2),
.inv-mnt__adorn.is-tune .inv-adorn__side .inv-adorn-kademe[data-fill="3"] .inv-adorn-pip:nth-child(3),
.inv-mnt__adorn.is-tune .inv-adorn__side .inv-adorn-kademe[data-fill="4"] .inv-adorn-pip:nth-child(4),
.inv-mnt__adorn.is-tune .inv-adorn__side .inv-adorn-kademe[data-fill="5"] .inv-adorn-pip:nth-child(5){
	box-shadow:inset 0 0 0 2px rgba(255,255,255,.92);filter:brightness(1.2)}
/* The band's colour reaches the bar, which sits outside .inv-adorn__fx. */
.inv-mnt__adorn.is-tune .inv-adorn__side{--fx-col:#6b7280}
.inv-mnt__adorn.is-tune[data-band="0"] .inv-adorn__side{--fx-col:#5aa6f0;--fx-step:url(../images/game-icons/adorn-step-0.webp);--fx-ray:url(../images/game-icons/adorn-fx-ray-0.webp)}
.inv-mnt__adorn.is-tune[data-band="1"] .inv-adorn__side{--fx-col:#b06ef0;--fx-step:url(../images/game-icons/adorn-step-1.webp);--fx-ray:url(../images/game-icons/adorn-fx-ray-1.webp)}
.inv-mnt__adorn.is-tune[data-band="2"] .inv-adorn__side{--fx-col:#f3c04a;--fx-step:url(../images/game-icons/adorn-step-2.webp);--fx-ray:url(../images/game-icons/adorn-fx-ray-2.webp)}
.inv-mnt__adorn.is-tune[data-band="3"] .inv-adorn__side{--fx-col:#ef6a5e;--fx-step:url(../images/game-icons/adorn-step-3.webp);--fx-ray:url(../images/game-icons/adorn-fx-ray-3.webp)}

/* ── picking one, and tuning the one that is on ───────────────────────────────
   Two screens in the game and two here, told apart by .is-tune on the block.
   ADORNMENT picks the piece and its effect and nothing else. ADORNMENT
   INTENSIFICATION, which is where a mount that already wears one opens, is where
   the two levels are set -- the piece's own 1-60 and the effect's 1-20. Keeping
   the levels out of the picking step is the point: choose what it is first, then
   say how far it has come. */
.inv-adorn__t-tune{display:none}
.inv-mnt__adorn.is-tune .inv-adorn__t-pick{display:none}
.inv-mnt__adorn.is-tune .inv-adorn__t-tune{display:block}
/* Tuning: the shelf goes and the mount takes its place on the left, the detail
   staying where it was on the right. Same two tracks, so the panel does not move
   between the two screens. */
.inv-mnt__adorn.is-tune .inv-adorn__list{display:none}
.inv-mnt__adorn:not(.is-tune) .inv-adorn__mount{display:none!important}
.inv-adorn__mount{position:relative;min-width:0;display:grid;place-items:center;
	align-self:stretch;padding:2px 0}
.inv-adorn__mount[hidden]{display:none}
/* ⚠ MIRRORED. The stable's art faces one way and the game stands the mount the
   other on this screen -- the same SCALE -1,1 the card's own m_PicItem carries.
   And it dissolves the way the stable's cards do rather than ending on a cut: the
   same ellipse-and-bottom-gradient pair, composited.
   ⚠ THE MASK IS NOT MIRRORED WITH IT. A mask is laid in the element's own space,
   before the transform, so the 63% that puts the fade at the lower LEFT on a card
   lands at the lower RIGHT once this one is flipped -- which is the corner that
   wanted it. The numbers are the card's, unchanged, for that reason. */
.inv-adorn__mount-art{display:block;width:100%;height:auto;max-width:none;
	object-fit:contain;transform:scaleX(-1);
	-webkit-mask-image:radial-gradient(ellipse var(--mount-fade-rx,65%) var(--mount-fade-ry,78%)
		at var(--mount-fade-x,63%) var(--mount-fade-y,31%),
		#000 var(--mount-fade-in,102%), transparent var(--mount-fade-out,109%)),
		linear-gradient(to top, transparent 0, #000 var(--mount-fade-bottom,18%));
	-webkit-mask-composite:source-in;
	        mask-image:radial-gradient(ellipse var(--mount-fade-rx,65%) var(--mount-fade-ry,78%)
		at var(--mount-fade-x,63%) var(--mount-fade-y,31%),
		#000 var(--mount-fade-in,102%), transparent var(--mount-fade-out,109%)),
		linear-gradient(to top, transparent 0, #000 var(--mount-fade-bottom,18%));
	mask-composite:intersect}
/* The piece rides on its back in a lit ring, as it does in the game. */
.inv-adorn__socket{position:absolute;top:26%;left:58%;translate:-50% -50%;
	display:grid;place-items:center;
	width:clamp(74px,24%,118px);aspect-ratio:1;
	background:url(../images/game-icons/mount-orn-socket-on.webp) center/contain no-repeat;
	filter:drop-shadow(0 0 10px rgba(246,200,99,.55))}
/* The capped piece sits on the game's iridescent plate, quality3_04 -- the same
   swap the band's socket makes, off the same class. */
.inv-adorn__socket.is-max{
	background-image:url(../images/game-icons/mount-orn-socket-max.webp);
	filter:drop-shadow(0 0 12px rgba(169,139,230,.6))}
/* The circular field behind the piece: Pic_Bg, pic_mount_21 at 244 against the
   disc's 184.3 -- it spills WELL past the rim, it is not a liner. */
.inv-adorn__socket::before{content:'';position:absolute;inset:-16.2%;pointer-events:none;
	opacity:.5;background:url(../images/game-icons/adorn-tile.webp) center/contain no-repeat}
/* ⚠ THE DISC IS 184.3 UNITS, NOT 256 -- EVERY RATIO ON THIS ELEMENT IS AGAINST
   THAT. m_PicOrnamentBG's rect is 256 but it carries scale 0.72, and the scale
   column is the one I kept skipping: 256 x 0.72 = 184.3 drawn. Its artwork fills
   90.4% of its canvas, so the disc a player sees is 166.6 units across.

   m_PicLine1 (pic_mount_22) is a lasso -- a ring with a tail -- drawn 252x336,
   pivot 1,1, at +89,+90 from the slot centre. Against 184.3 that is 136.7% x
   182.3%, right edge 98.3%, top 1.17%, which lands the ring's own centre
   (0.643, 0.270 of the file) on the socket and makes it 92.2% of this element --
   a hair outside the 90.4% disc. That is the whole point of the sprite: it rings
   the ornament. Measured against 256 it comes out smaller than the disc and
   disappears behind it; measured by eye it becomes a halo. Both are wrong. */
.inv-adorn__socket::after{content:'';position:absolute;pointer-events:none;z-index:-1;
	width:136.7%;height:182.3%;left:-38.4%;top:1.17%;opacity:.85;
	background:url(../images/game-icons/adorn-socket-lead.webp) center/100% 100% no-repeat}
.inv-adorn__badge{position:absolute;pointer-events:none;
	width:43.1%;aspect-ratio:1;left:75.5%;top:75.5%;translate:-50% -50%;
	background:url(../images/game-icons/adorn-badge-01.webp) center/contain no-repeat}
.inv-adorn__badge[data-tier="2"]{background-image:url(../images/game-icons/adorn-badge-02.webp)}
.inv-adorn__badge[data-tier="3"]{background-image:url(../images/game-icons/adorn-badge-03.webp)}
.inv-adorn__badge[data-tier="4"]{background-image:url(../images/game-icons/adorn-badge-04.webp)}
.inv-adorn__badge[hidden]{display:none}
.inv-adorn__socket-art{width:64%;height:64%;max-width:none;object-fit:contain}
.inv-adorn__socket-name{position:absolute;top:calc(26% + clamp(42px,13%,64px));left:58%;
	translate:-50% 0;white-space:nowrap;
	font-family:Georgia,'Times New Roman',serif;font-weight:700;font-size:.92rem;
	color:#f3c04a;text-shadow:0 2px 6px rgba(0,0,0,.85)}
/* Tuning shows the levels and not the shelf of effects; picking, the other way. */
.inv-mnt__adorn.is-tune .inv-adorn__side .inv-effect-visual-grid{display:none}
/* ⚠ NO SLAB ON THE TUNING SIDE. The big brown card is what the picking screen uses
   to show the piece being considered; once it is ON, the game goes straight from
   the name to the level band and the attributes -- the piece is already in the ring
   on the horse to the left, so a second portrait of it says nothing. */
.inv-mnt__adorn.is-tune .inv-adorn__stage{display:none}
.inv-mnt__adorn:not(.is-tune) .inv-adorn__side .inv-adorn-stat-level-section,
.inv-mnt__adorn:not(.is-tune) .inv-adorn__side .inv-adorn-level-section{display:none}
/* The feet. Picking has one gold button, EQUIP. Tuning has the game's own pair --
   INTENSIFY on the left for the piece's own level, EFFECT LEVEL on the right for
   its effect's -- and above them, small and on the stone plate, the two that leave:
   Unequip, and Change back to the shelf.
   ⚠ Each of the gold two will open a screen of its own; those are not drawn yet, so
   for now a press brings its own control forward and stands the other down. The
   block remembers which through data-tune. */
/* ⚠ TABS, NOT FOOT BUTTONS. m_PanTab puts these two at the TOP of the panel --
   355x60 toggles on ui_n_button/tog_n_city_01a when lit and _01b when not -- and
   the panel below them changes with the choice. They were a gold pair at the foot,
   which read as "do this now" rather than "look at this". */
/* ⚠ TWO STEPS, AS THE GAME HAS THEM. Opening on a mount that already wears one is
   the LANDING: everything the piece has, and the two jobs as buttons at the foot.
   Asking for one opens its panel, where the same two are tabs at the top. So
   data-tune absent is the landing, and present is a panel. */
.inv-adorn__tabs{display:none;grid-template-columns:1fr 1fr;gap:8px;margin:3px 0 1px}
.inv-mnt__adorn.is-tune[data-tune] .inv-adorn__tabs{display:grid}
.inv-adorn__foot--tune{display:none;grid-template-columns:1fr 1fr}
.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__foot--tune{display:grid}
/* ⚠ ALSO RESTORED. EQUIP belongs to the shelf -- it puts a piece ON. Once one is
   on there is nothing to equip, and this rule went out with the same over-greedy
   regex that took the take-off mark. Second casualty from one careless replace. */
.inv-mnt__adorn.is-tune .inv-adorn__foot--pick{display:none}
/* The editor's "ADORNMENT EFFECT" caption too: the effect's own block names it
   on every one of these views, so the heading was saying it twice. */
.inv-mnt__adorn.is-tune .inv-adorn__side .inv-adorn-effect-locked > .inv-label-sm,
.inv-mnt__adorn.is-tune .inv-adorn__side .inv-adorn-level-section > .inv-label-sm{display:none}
/* On the landing both are shown -- it is the piece's whole sheet. In a panel only
   the one asked for is. */
.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__side .inv-adorn-stat-level-section,
.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__side .inv-adorn-level-section{display:none}
/* ⚠ 60 OF 720, NOT A GUESS. m_Tog1 is 355x60 in a 720-wide panel, so a tab is
   .0833 of the panel's width tall -- 38px here. .13 was my own number and stood
   half again too tall. */
.inv-adorn__tab{min-height:0;padding:0;border:0;cursor:pointer;
	height:calc(var(--inv-panel-w,460px) * .0833);
	font-family:Georgia,'Times New Roman',serif;font-weight:700;
	font-size:1rem;letter-spacing:.04em;text-transform:uppercase;color:#cfd8e6;
	background:url(../images/game-icons/adorn-tab-off.webp) center/100% 100% no-repeat;
	transition:color .14s}
.inv-adorn__tab.is-on{color:#2a1d0c;
	background-image:url(../images/game-icons/adorn-tab-on.webp)}
.inv-adorn__tab:hover{filter:brightness(1.08)}
.inv-adorn__foot--pick{grid-template-columns:1fr}
/* ⚠ RESTORED. These sat between the two foot rules and an over-greedy regex took
   them out with the block it was replacing, so the take-off mark disappeared from
   the screen while its markup stayed in the page.
   It lives by the NAME, as the game and the gem sockets have it: the same
   diamond-with-a-minus, btn-remove.webp. */
.inv-adorn__namerow{display:flex;align-items:center;gap:10px}
.inv-adorn__namerow .inv-mnt__name{flex:1 1 auto;min-width:0;margin:0}
.inv-adorn__off{flex:none;width:34px;height:34px;appearance:none;border:0;padding:0;
	cursor:pointer;display:none;place-items:center;border-radius:0;
	background:url(../images/game-icons/btn-remove.webp) center/contain no-repeat;
	transition:transform .12s ease}
.inv-mnt__adorn.is-tune .inv-adorn__off{display:grid}
.inv-adorn__off:hover{transform:scale(1.08);
	filter:drop-shadow(0 0 7px rgba(226,84,70,.75))}
.inv-adorn__off:focus-visible{outline:2px solid #f3c969;outline-offset:3px}
/* One control at a time, the one its button asked for. */
.inv-mnt__adorn.is-tune[data-tune="effect"] .inv-adorn__side .inv-adorn-stat-level-section,
.inv-mnt__adorn.is-tune[data-tune="item"] .inv-adorn__side .inv-adorn-level-section{display:none}
/* ⚠ AND ON INTENSIFY THE SLIDER GOES AWAY ENTIRELY. The pair of plates is the
   control now; leaving the range input beside them gives the screen two ways to
   say the same thing, and the slider is the one that looks like a form. It stays
   in the page because the editor posts it -- the plates write to it. */
.inv-mnt__adorn.is-tune[data-tune="item"] .inv-adorn__side .inv-adorn-stat-level-section{display:none}
.inv-adorn__step{margin-top:14px}
.inv-adorn__step[hidden]{display:none}
/* ⚠ THE EDITOR'S OWN WIDGETS GO. Its pip row with the two blue chevrons and its
   four written-out quality tabs said what Pan_Grid and the plates now say, in
   shapes the game does not use. The hidden input stays -- the plates write to it.
   ⚠ The bar is NOT one of them: the game's RE-ROLL panel is the name, the diamond,
   this bar and the description, and nothing else. */
.inv-mnt__adorn .inv-adorn__side .inv-adorn-level-row,
.inv-mnt__adorn .inv-adorn__side .inv-adorn-qual-tabs{display:none}
.inv-mnt__adorn.is-tune[data-tune="effect"] .inv-adorn__fx-bar{display:block;
	margin:10px auto 0}

/* ⚠ THE PIECE'S FIGURES ARE NOT THE EFFECT'S. The band and the three attribute
   rows are what INTENSIFY is about, and the sheet shows them because the sheet
   shows everything; on EFFECT LEVEL they belong to the other tab and only crowd
   the one thing this panel exists for. */
.inv-mnt__adorn.is-tune[data-tune="effect"] .inv-adorn__lv,
.inv-mnt__adorn.is-tune[data-tune="effect"] .inv-adorn__attrs{display:none}

/* The level controls read as rows on this screen, not as form widgets. */
.inv-adorn__side .inv-adorn-stat-level-section,
.inv-adorn__side .inv-adorn-level-section{margin-top:14px}
.inv-adorn__side .inv-adorn-stat-level-row{display:flex;align-items:center;gap:10px}
.inv-adorn__side .inv-adorn-stat-level-slider{flex:1 1 140px;width:auto;min-width:140px}

/* ── PHONE ─────────────────────────────────────────────────────
   Both screens already fold to one column at 1100, and everything on them is sized
   in card widths or percentages, so nothing overflows at 390. What DOES go wrong is
   vertical: a column of fifteen horses, or a shelf of adornments, sized for a
   desktop viewport pushes the panel you came to use clean past the fold.

   ⚠ THE LISTS ARE CAPPED AGAINST THE VIEWPORT, NOT THE PAGE. 100vh - 150 and
   70vh were written for a side-by-side layout where the panel is never below the
   list. Stacked, they have to leave room for it. */
/* ⚠ ON A PHONE A PICKER IS TWO SCREENS, NOT TWO COLUMNS. Folded into one column
   the list and the panel become one very long page: you scroll past fifteen horses
   to reach the thing you came to press, and after pressing it you scroll back up to
   change your mind. So the phone shows the LIST first and nothing else; choosing
   swaps it for the PANEL; and the screen's own back arrow walks back to the list
   before it leaves the screen.

   One attribute does it -- data-step="act" on the column grid -- and the desktop
   never sees it, because every rule here is inside this query.

   ⚠ GEAR IS NOT ONE OF THEM. Its left column is not a list: .inv-enh__left holds
   the stage, the four-tile strip AND .inv-enh__controls, the level and star buttons
   the player presses. Hiding the left at step two takes the controls away with it,
   which is exactly what "the buttons do nothing after the first panel" was. Four
   tiles are not a list worth paging anyway, so the gear screen keeps both columns
   stacked and only these three split:
     .inv-mnt__cols     .inv-mnt__left   -> .inv-mnt__panel
     .inv-adorn__cols   .inv-adorn__list -> .inv-mnt__panel
     .inv-rings__cols   .inv-rings__list -> .inv-rings__stage + .inv-rings__detail */
@media (max-width:640px){
	.inv-mnt__cols[data-step="act"] > .inv-mnt__left,
	.inv-adorn__cols[data-step="act"] > .inv-adorn__list,
	.inv-rings__cols[data-step="act"] > .inv-rings__list{display:none}
	.inv-mnt__cols:not([data-step="act"]) > .inv-mnt__panel,
	.inv-adorn__cols:not([data-step="act"]) > .inv-mnt__panel,
	.inv-rings__cols:not([data-step="act"]) > .inv-rings__stage,
	.inv-rings__cols:not([data-step="act"]) > .inv-rings__detail{display:none}
	/* The gear panel has the whole width on a phone either way. */
	.inv-enh__panelhost{max-width:none}
	/* ⚠ AND A GEM SOCKET OPENS A SCREEN. Tapping a socket switches the panel to
	   its inlay view, which on a desktop is right there beside the piece and on a
	   phone is a pane somewhere below the fold -- the tap looked like it did
	   nothing. While the panel is on any view but attrs it IS the screen: the
	   stage, the strip and the piece's own controls page away, and the back arrow
	   comes back here before it goes anywhere else.

	   ⚠ AND IT MUST NOT PAGE AWAY .inv-enh__detail, WHICH IS WHERE THE VIEWS LIVE.
	   This rule used to list it too. But #inv-armoury-gear-detail is a SIBLING of
	   the panel and it is the element that holds every .inv-enh__view -- attrs,
	   level, stars, inlay and pick. So setting data-view to anything but attrs hid
	   the very screen it was switching to: on a phone, tapping an empty gear socket
	   asked for the Equip view and then hid it, leaving a blank page with the strip
	   and the piece already paged away. A hero with no gear could not be given any.
	   Desktop never saw it because the rule is inside the phone block. */
	.inv-enh__cols:has(> #inv-armoury-gear-panel[data-view]:not([data-view="attrs"])) > .inv-enh__left{
		display:none}

	/* ⚠ THESE CANNOT SHRINK, AND THAT IS WHY THE TAB ZOOMS OUT. A phone offers
	   pinch-zoom below 100% exactly when the layout is wider than the viewport, so
	   the zoom is the symptom and an unshrinkable row is the cause. At 358 of
	   content a pair of nowrap plates reading "Downgrade" and "Make Mythical" on
	   two 1fr tracks cannot fit, and .inv-enh__step-now holds 7.5rem open beside
	   two more buttons. Let them wrap and give up their floor. */
	.inv-enh__step{flex-wrap:wrap}
	.inv-enh__step .inv-rings__act{white-space:normal;flex:1 1 45%;min-width:0;
		font-size:.8rem;padding:0 6px}
	.inv-enh__step-now{min-width:0}
	.inv-enh__pick-name{white-space:normal;overflow-wrap:anywhere}
	.inv-enh__lv,.inv-enh__row-val,.inv-enh__sock-at{min-width:0}
	.inv-mnt__cols,.inv-adorn__cols{padding:10px;gap:10px}
	/* A cap for when the list shares the screen with the detail. */
	.inv-mnt__list{max-height:min(46vh,420px)}
	.inv-adorn__list{max-height:min(42vh,380px)}
	/* ⚠ AND THE CAP COMES OFF WHEN THE LIST IS THE ONLY THING ON SCREEN -- DECLARED
	   AFTER IT, not before. These two lines were above the caps, and at equal
	   specificity the later rule wins, so the cap stood and the list kept 46vh even
	   when it had the whole phone to itself. One and a half horse cards fitted and
	   the rest were below a fold nothing announced. */
	.inv-mnt__cols:not([data-step="act"]) .inv-mnt__list,
	.inv-adorn__cols:not([data-step="act"]) .inv-adorn__list{max-height:none}
	/* User 11-17: the stable runs to the bottom nav on every step, one small column,
	   like the ring picker (the 46vh cap left two rows over an empty screen).
	   230px = tab bar + title + filter plate + count strip + bottom nav. */
	/* ⚠ Four classes: `.inv-mnt__cols:not([data-step="act"]) .inv-mnt__list{max-height:none}`
	   above counts the attribute and out-ranked a two-class rule, so every horse showed. */
	.inv-armoury .inv-mnt__cols .inv-mnt__left .inv-mnt__list{
		max-height:max(330px,calc(100vh - var(--inv-header-h, 64px) - 230px));
		max-height:max(330px,calc(100dvh - var(--inv-header-h, 64px) - 230px));
		overflow-y:auto;
		/* the last row dissolves, as the ring picker's does: there is more below */
		-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 54px),rgba(0,0,0,0));
		mask-image:linear-gradient(to bottom,#000 calc(100% - 54px),rgba(0,0,0,0))}

	/* ⚠ AND TWO UP, NOT ONE. The grid is a single flex column with each card at
	   100% of it, so on a phone a 280/170 card came out ~230 tall and the list
	   showed one. The card is scenery plus a name; at half the width it is still
	   legible and four fit where one did. */
	/* User 11-17: ONE column of small (180px) cards down the phone -- the game's
	   stable rail, not a full-width card (that showed one horse). */
	.inv-mnt__list .inv-horse-grid{display:grid;grid-template-columns:minmax(0,180px);
		gap:8px;align-content:start}
	.inv-mnt__list .inv-horse-option{width:100%}
	/* The horse in the middle track is scenery on a desktop and a whole screenful
	   of scrolling on a phone, so it stands down and the two useful columns meet. */
	.inv-mnt__stage{display:none}
	/* The sheet's effect row has the mark, the name and the five steps across. At
	   358 of content the bar's 150 leaves the name 146 and it wraps into the mark.
	   The bar drops to its own line and takes the width it wants. */
	.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__fx:not([hidden]){
		grid-template-columns:auto minmax(0,1fr)}
	.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__fx-bar{
		grid-column:1/-1;grid-row:3;justify-self:start;width:170px;margin:4px 0 0}
	.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__fx-desc{grid-row:4}
	/* ⚠ THE HORSE COLUMN GOES, AND IT HAS TO. .inv-adorn__mount is a grid child
	   sized by its picture, and the socket inside it is absolutely placed at 26%/58%
	   of it -- so when there is no picture to load the column collapses to almost
	   nothing and the socket, with its name under it, floats out over the panel
	   below. On the phone that is the piece's own title it lands on. It is scenery
	   here anyway: the player came for the figures, and they are in the panel. */
	.inv-adorn__mount{display:none}
	/* A touch needs a bigger mark than a cursor does. */
	.inv-adorn__off{width:40px;height:40px}
	/* The two tabs are 38px tall because that is 60 of the panel's 720. At a phone's
	   width EFFECT LEVEL takes two lines and the second one was cut off, so here the
	   plate gives on height instead. */
	.inv-adorn__tab{height:auto;min-height:38px;padding:7px 4px;line-height:1.15;
		font-size:.84rem;letter-spacing:.01em}
	.inv-enh__step .inv-rings__act{font-size:.82rem;padding:0 8px}
}

/* The mount in the middle fades the same way its card does -- the chest and saddle
   dissolve at the lower left instead of ending on a hard edge. Same ellipse, same
   variables, so tuning one tunes both. */
/* ⚠ TWO MASK LAYERS, INTERSECTED. The ellipse dissolves the lower LEFT, but the foot
   of the picture still ended on a hard line where it met the plate. A second layer --
   a plain fade up from the bottom -- is composited with it (intersect, which is
   source-in on older WebKit), so whichever is more transparent wins and the animal
   melts into the ground as well as into the medallion. One variable each:
   --mount-fade-* for the ellipse, --mount-fade-bottom for how far the foot fades. */
.inv-mnt__art{
	-webkit-mask-image:radial-gradient(ellipse var(--mount-fade-rx,65%) var(--mount-fade-ry,78%)
		at var(--mount-fade-x,63%) var(--mount-fade-y,31%),
		#000 var(--mount-fade-in,102%), transparent var(--mount-fade-out,109%)),
		linear-gradient(to top, transparent 0, #000 var(--mount-fade-bottom,18%));
	-webkit-mask-composite:source-in;
	        mask-image:radial-gradient(ellipse var(--mount-fade-rx,65%) var(--mount-fade-ry,78%)
		at var(--mount-fade-x,63%) var(--mount-fade-y,31%),
		#000 var(--mount-fade-in,102%), transparent var(--mount-fade-out,109%)),
		linear-gradient(to top, transparent 0, #000 var(--mount-fade-bottom,18%));
	mask-composite:intersect}

/* Equip, before a piece has been chosen. Disabled is a state the plate has to show
   or the button reads as broken rather than as waiting. */
#inv-armoury-gear-pick-done.is-off,#inv-armoury-gear-pick-off.is-off{opacity:.45;filter:saturate(.35);cursor:default}


/* ══ ONE STAGE FOR ALL FOUR SCREENS ═══════════════════════════════════════════
   Enhance, Mount, Adornment and Rings are the same size now and never resize. What
   does not fit scrolls inside its own column instead of growing the page.

   ⚠ AND NOTHING INSIDE A COLUMN IS STRETCHED. My first attempt at this set
   align-items:stretch AND turned the panels into flex columns -- which handed the
   stretch down to their children, and Mount's DISMOUNT button grew to the full
   height of the screen as a white slab. The columns stretch, because an item has to
   fill the row before it can scroll inside it. Their contents do not: the panels
   stay ordinary blocks and everything in them keeps the height it asks for.

   min-height:0 is what makes the scroll work at all -- a grid item will not shrink
   below its content without it, so the column would push the stage taller instead. */
.inv-enh__cols,
.inv-mnt__cols,
.inv-adorn__cols,
.inv-rings__cols{
	height:calc(100vh - var(--inv-header-h,64px) - 28px);
	align-items:stretch}

.inv-mnt__cols > *,
.inv-adorn__cols > *,
.inv-rings__cols > *{
	min-height:0;overflow-y:auto;align-content:start;
	scrollbar-width:thin;scrollbar-color:rgba(245,158,11,.4) rgba(255,255,255,.05)}

/* ⚠ A PHONE GETS NO FIXED STAGE. Two columns become one there and the screen is
   already a sequence of steps, so a pinned height would cut the second step off. */
@media (max-width:640px){
	.inv-enh__cols,
	.inv-mnt__cols,
	.inv-adorn__cols,
	.inv-rings__cols{height:auto;min-height:0}
	.inv-mnt__cols > *,
	.inv-adorn__cols > *,
	.inv-rings__cols > *{overflow:visible}
}
}

/* ⚠ THE STRIP AND ITS BAND SHARE ONE ANCHOR. The band is .inv-enh__cols::after --
   9rem tall, pinned to the column's floor. The strip was a row in .inv-enh__left,
   so its box sat the cols' 14px padding PLUS the whole .inv-enh__controls row above
   that floor, and the two centre lines could never meet. Nudging it would not hold
   either: the controls row's height is not fixed.

   So the strip is pinned to the same floor with the same height. Two boxes, one
   anchor, one centre line -- the tiles land on the band's middle by construction
   rather than by arithmetic.

   The left column then keeps clear of it with padding, so the orb still centres in
   what is left instead of centring behind the strip. */
@media (min-width:641px){
	.inv-enh__strip{position:absolute;left:3.5rem;bottom:0;z-index:2;
		width:min(26rem,calc(100% - 7rem));height:9rem;min-height:0;
		margin:0;padding:0;align-items:center;
		/* Down from the band's centre line, by eye: 15px was not enough, so 40.
		   A variable rather than a number in the rule -- this has been adjusted
		   twice now and will be again. */
		transform:translateY(var(--enh-strip-drop,40px))}
	.inv-enh__left{padding-bottom:9rem}
	/* ⚠ THE STAGE KEEPS ITS ROOM WHEN IT IS EMPTY (user 2026-11-07: "gear yoksa
	   yukarı kalkıyor"). The strip is pinned to the cols' floor, and the cols are as
	   tall as the left column -- whose tallest row is the orb. An empty slot (Equip
	   view) or a pane still loading paints no orb, the column lost 446px, the floor
	   came up and the strip with it. The orb is capped at 27rem plus the stage's
	   14px padding, so reserving exactly that keeps the floor where it is whatever
	   the stage holds. */
	.inv-enh__stagehost{min-height:calc(27rem + 14px)}
}

/* ⚠ THE BACK ARROW LANDS BELOW THE HEADER, NOT UNDER IT. Opening Mount, Enhance,
   Adornment or Rings scrolls #inv-armoury-editor to block:'start', which puts its
   top edge at the viewport's top -- and the site header is sticky and sits there,
   so the first thing on the screen, the arrow that is the only way back, was
   covered. A player who did not think to scroll up had no way out.

   scroll-margin-top is the right tool: it does not move the element, it tells the
   scroll where to stop. The 12px matches the roster's own sticky offset so the two
   agree. */
#inv-armoury-editor{scroll-margin-top:calc(var(--inv-header-h,64px) + 12px)}

/* ══ MOUNT: THE TWO BUTTONS STAND STILL ═══════════════════════════════════════
   The panel scrolls now that the screen is a fixed stage, and MOUNT and the
   ornament band scrolled away with the trait list -- the two things the screen is
   for were the first to leave it. They come out of the scrolling part: the panel
   is a column, the stats and traits are the only thing that scrolls, and the two
   buttons sit on its floor.

   ⚠ THE CHILDREN ARE NOT STRETCHED. Only .inv-mnt__controls takes flex:1, so the
   buttons keep the height they ask for. Giving the panel a flex column WITHOUT
   that restraint is how DISMOUNT became a full-height white slab earlier today. */
@media (min-width:641px){
	.inv-mnt__panel{display:flex;flex-direction:column;min-height:0;overflow:hidden}
	.inv-mnt__controls{flex:1 1 auto;min-height:0;overflow-y:auto;
		scrollbar-width:thin;scrollbar-color:rgba(245,158,11,.4) rgba(255,255,255,.05)}
	.inv-mnt__orn,
	.inv-mnt__act{flex:0 0 auto}
	/* The panel is the scroller's owner now, so the stage must not scroll it too. */
	.inv-mnt__cols > .inv-mnt__panel{overflow:hidden}
}

/* ⚠ NO HORSE PICKED: DIMMED, NOT GONE. The button is already disabled in script --
   act.disabled = !card -- but nothing said so on screen, so a full-strength gold
   plate sat there refusing to be pressed. A disabled control has to look disabled
   or it reads as broken. (It is not display:none anywhere; the plate simply gave
   no sign.) */
.inv-mnt__act:disabled{opacity:.45;filter:saturate(.4);cursor:default}

/* The star band fits its column at any width (user 2026-11-06, phone): eight 30px stars,
   the 74px arrow and 14px gaps need ~420px and overflowed a phone. Sized as shares of
   the band itself, never larger than the desktop sizes. */
.inv-enh__band--stars{container-type:inline-size;gap:min(14px,2.5cqw)}
.inv-enh__band--stars .inv-enh__stars{gap:min(2px,.4cqw)}
.inv-enh__band--stars .inv-enh__star{width:min(30px,8.6cqw);height:auto;aspect-ratio:1;flex:none}
.inv-enh__band--stars .inv-enh__arrow--long{width:min(74px,13cqw);height:auto;aspect-ratio:74/26;flex:none}

/* Equip tiles are one fixed square whatever the name (user 2026-11-06): the button's
   inner grid sized its track to the name, so a long name made the art smaller. The
   track is the tile's full width; the name wraps under it. */
.inv-enh__pick{width:100%;min-width:0;grid-template-columns:100%;align-content:start}
.inv-enh__pick-art{width:100%}
.inv-enh__pick-name{width:100%;white-space:normal;overflow-wrap:anywhere}

/* ── MOUNT MANAGEMENT, closer to the game (user 2026-11-07) ──────────────────────
   Pic_BlankMount is back in the middle: the mount being looked at, facing LEFT as
   the game's model stands (our sprite is drawn facing right, the card's way, so it
   is mirrored here). Desktop only -- below 1100 the columns stack and on a phone
   they are steps, so there is no middle to stand it in. */
.inv-mnt__cols > .inv-mnt__stage{grid-column:2;align-self:center;justify-self:center;width:100%}
.inv-mnt__stage .inv-mnt__art{margin:0 auto;transform:scaleX(-1)}
@media (max-width:1100px){.inv-mnt__cols > .inv-mnt__stage{display:none}}
/* m_BtnRemove/m_PanEquiped: "In Use" and the rider's round head over the DISMOUNT
   plate's top-right corner, on frame_mount_03's dark fade. */
.inv-mnt__actwrap{position:relative;margin-top:6px}
.inv-mnt__actwrap .inv-mnt__act{margin-top:0}
.inv-mnt__inuse{position:absolute;right:2px;top:-15px;z-index:2;pointer-events:none;
	display:flex;align-items:center;gap:6px;height:28px;padding:0 0 0 22px;
	background:linear-gradient(90deg,rgba(13,23,31,0),rgba(13,23,31,.82) 28%);
	font-size:.84rem;color:#e8edf6;text-shadow:0 1px 2px #000}
.inv-mnt__inuse[hidden]{display:none}
.inv-mnt__inuse img{width:36px;height:36px;border-radius:50%;object-fit:cover;
	border:1px solid rgba(255,255,255,.55);box-shadow:0 1px 4px rgba(0,0,0,.6)}

/* ── ADORNMENT INTENSIFICATION: the sheet, INTENSIFY and RE-ROLL ─────────────────
   Read off the game's three screens and Pan_GLMountOrnamentStrengthenDetail. */
/* ATTRIBUTES RE-ROLL with the list mark at its right (it opens the effects). */
.inv-adorn__fx-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.inv-adorn__fx-list{flex:none;position:relative;width:32px;height:32px;border:0;padding:0;
	cursor:pointer;background:url(../images/game-icons/btn-diamond-dark.webp) center/contain no-repeat}
.inv-adorn__fx-list::after{content:'';position:absolute;left:31%;right:31%;top:34%;bottom:34%;
	background:linear-gradient(#e8edf6,#e8edf6) 0 0/100% 2px no-repeat,
		linear-gradient(#e8edf6,#e8edf6) 0 50%/100% 2px no-repeat,
		linear-gradient(#e8edf6,#e8edf6) 0 100%/100% 2px no-repeat}
.inv-adorn__fx-list:hover{filter:brightness(1.2)}
/* In the RE-ROLL panel the game has no heading -- the name, centred, with the list
   mark out at the right of it. */
.inv-mnt__adorn.is-tune[data-tune="effect"] .inv-adorn__fx{position:relative}
.inv-mnt__adorn.is-tune[data-tune="effect"] .inv-adorn__fx-head{position:absolute;right:0;top:0;
	margin:0;padding:0;border:0}
.inv-mnt__adorn.is-tune[data-tune="effect"] .inv-adorn__fx-head > span{display:none}
.inv-mnt__adorn.is-tune[data-tune="effect"] .inv-adorn__fx-name{margin:2px 44px 2px}
/* "Chance of tier value +1: 70%" */
.inv-adorn__fx-odds{margin:0 0 2px;font-size:.78rem;font-weight:400;color:#c9d3e2}
.inv-adorn__fx-odds[hidden]{display:none}
.inv-adorn__fx-odds u{color:#8ee6a0;text-underline-offset:3px}

/* INTENSIFY: the line the next level moves is framed, "now ▶ next". */
.inv-adorn__attr.is-next{padding-left:10px;padding-right:10px;
	border:1px solid rgba(232,237,246,.5);background:rgba(255,255,255,.05)}
.inv-adorn__attr.is-next .inv-adorn__attr-val{color:#c9d3e2;font-weight:400}
.inv-adorn__attr-arrow{display:inline-block;vertical-align:middle;width:0;height:0;margin:0 6px;
	border-left:10px solid #4ade80;border-top:7px solid transparent;border-bottom:7px solid transparent}
.inv-adorn__attr-next{color:#8ee6a0;font-weight:700}

/* Pan_Bottom: REQUIRED on the left, the hold hint over INTENSIFY on the right. */
.inv-adorn__bottom:not([hidden]){display:grid;grid-template-columns:auto minmax(0,1fr);
	gap:16px;align-items:end;margin-top:20px}
.inv-adorn__need-lbl{margin:0 0 8px;font-family:Georgia,'Times New Roman',serif;font-weight:700;
	font-size:1.05rem;letter-spacing:.04em;text-transform:uppercase;color:#f3c04a}
.inv-adorn__mats{display:flex;gap:10px;align-items:flex-start}
.inv-adorn__mats-max{font-family:Rajdhani,sans-serif;font-weight:700;color:#8ee6a0}
.inv-adorn__mat{display:inline-flex;flex-direction:column;align-items:center;gap:3px;width:58px}
.inv-adorn__mat img{display:block;width:58px;height:58px;max-width:none;object-fit:contain;
	border:1px solid rgba(255,255,255,.22);border-radius:0;background:#355c81}
.inv-adorn__mat.is-gold img{background:#97713a}
.inv-adorn__mat b{font-weight:600;font-size:.92rem;color:#e8edf6}
.inv-adorn__go{min-width:0;text-align:center}
.inv-adorn__hold{margin:0 0 8px;font-size:.92rem;color:#e8edf6}
.inv-adorn__go-row{display:flex;gap:8px;align-items:center}
.inv-adorn__intensify{flex:1 1 auto;width:auto;max-width:none;margin:0}
.inv-adorn__intensify.is-holding{filter:brightness(1.12)}
.inv-adorn__down{flex:none;width:40px;height:40px;border:0;padding:0;cursor:pointer;
	background:url(../images/game-icons/btn-remove.webp) center/contain no-repeat;
	touch-action:manipulation;-webkit-user-select:none;user-select:none}
.inv-adorn__down:disabled{opacity:.3;cursor:default}
.inv-adorn__intensify,.inv-adorn__rr-btn{touch-action:manipulation;-webkit-user-select:none;user-select:none}

/* RE-ROLL: m_Pan_Progress -- Chalcedony | the diamond button | Raw Iron, on one
   dark line, the label ribbon under the diamond and "Hold to Re-roll" under that. */
.inv-adorn__reroll:not([hidden]){position:relative;display:grid;
	grid-template-columns:1fr auto 1fr;justify-items:center;align-items:start;
	max-width:420px;margin:24px auto 0}
.inv-adorn__reroll::before{content:'';position:absolute;left:17%;right:17%;top:46px;height:12px;
	background:#0b0e12;box-shadow:0 0 0 1px rgba(255,255,255,.06)}
.inv-adorn__reroll .inv-adorn__mat{position:relative;margin-top:18px}
.inv-adorn__rr{position:relative;display:flex;width:160px;flex-direction:column;align-items:center}
.inv-adorn__rr-btn{width:100px;height:100px;border:0;padding:0;cursor:pointer;
	background:url(../images/game-icons/adorn-reroll-ico.webp) center/60% no-repeat,
		url(../images/game-icons/adorn-reroll-btn.webp) center/contain no-repeat;
	transition:filter .12s,transform .12s}
.inv-adorn__rr-btn:hover{filter:brightness(1.12)}
.inv-adorn__rr-btn:active{transform:scale(.96)}
.inv-adorn__rr-btn.is-holding{filter:brightness(1.25) drop-shadow(0 0 12px var(--fx-col,#f3c04a))}
.inv-adorn__rr-btn:disabled{filter:grayscale(.85) opacity(.5);cursor:default}
.inv-adorn__rr-lbl{position:relative;margin-top:-28px;padding:0 10px;
	background:linear-gradient(90deg,rgb(179 137 100 / 5%),#785232 18%,#754e2c 14%,rgb(162 127 96 / 4%));
	clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 50%,calc(100% - 8px) 100%,8px 100%,0 50%);
	font-family:Georgia,'Times New Roman',serif;font-weight:700;font-size:.68rem;
	letter-spacing:.04em;text-transform:uppercase;color:#edcf89;pointer-events:none}
.inv-adorn__rr-hint{margin-top:3px;font-size:.7rem;color:#7e7f81}
.inv-adorn__reroll .inv-adorn__down{position:absolute;right:0;bottom:0;width:34px;height:34px}

/* The note over the lower left of the scene, one per panel. */
.inv-adorn__tip{display:none;position:absolute;left:3%;bottom:3%;z-index:3;margin:0;
	max-width:min(430px,86%);padding:12px 16px;text-align:left;
	background:rgba(14,18,24,.74);border:1px solid rgba(255,255,255,.12);
	font-size:.92rem;line-height:1.4;color:#e8edf6}
.inv-adorn__tip em{font-style:normal;color:#f3c04a}
.inv-adorn__tip b{font-weight:400;color:#ef6a5e}
.inv-mnt__adorn.is-tune[data-tune="item"] .inv-adorn__tip[data-for="item"],
.inv-mnt__adorn.is-tune[data-tune="effect"] .inv-adorn__tip[data-for="effect"]{display:block}

/* ── Pan_Right rows, the game's way (2026-11-07, checked on staging) ───────────── */
/* The mount in the middle: the card's off-centre ellipse mask was cutting its head
   off. Here it is a whole animal, so only its feet fade into the ground, and it is
   allowed a little wider than its track. */
.inv-mnt__stage .inv-mnt__art{width:122%;max-width:none;margin:0 -11%;
	-webkit-mask-image:linear-gradient(to top,transparent 0,#000 16%);
	        mask-image:linear-gradient(to top,transparent 0,#000 16%)}
/* ListItem_GLMountAttribute: 72 tall, the mark, the name, the figure in green at
   the right, a hairline under it. Ours are entered, so the figure stays an input --
   it just stops looking like one. */
.inv-mnt__controls .inv-horse-stats{display:flex;flex-direction:column;gap:0}
.inv-mnt__controls .inv-horse-stat{min-height:42px;padding:0 4px;
	border-bottom:1px solid transparent;
	border-image:linear-gradient(90deg,rgba(255,255,255,.28),rgba(255,255,255,.12) 70%,transparent) 1;
	font-size:1.05rem}
.inv-mnt__controls .inv-horse-stat input{width:96px;height:36px;border:0;background:transparent;
	box-shadow:none;text-align:right;font-size:1.2rem;font-weight:600;color:#8ee6a0;padding:0 2px}
.inv-mnt__controls .inv-horse-stat input:focus{outline:1px solid rgba(243,192,74,.6);
	background:rgba(0,0,0,.25)}
.inv-mnt__controls .inv-horse-stat input::placeholder{color:rgba(142,230,160,.42);font-weight:400;font-size:1rem}
.inv-mnt__controls .inv-horse-stat-hint{display:none}
/* TRAITS -- ListItem_GLMountCharacterTitle, the heading alone, with the list mark. */
.inv-mnt__traits-head{display:flex;align-items:center;justify-content:space-between;
	margin:14px 0 4px;padding:0 4px;font-family:Georgia,'Times New Roman',serif;font-weight:700;
	font-size:1.15rem;letter-spacing:.04em;text-transform:uppercase;color:#f3c04a}
.inv-mnt__traits-edit.is-on{filter:brightness(1.35) drop-shadow(0 0 6px rgba(243,192,74,.6))}
/* ListItem_GLMountCharacter: the mark, the name in its quality's colour, the line it
   reads underneath, on frame_mount_gradient_02 (white, tinted dark, fading right). */
.inv-mnt__controls .inv-trait-rank-row{flex-direction:column;gap:0}
.inv-mnt__controls .inv-trait-rank-item{position:relative;align-items:center;gap:8px;height:80px;padding:6px;
	border:0;border-radius:0}
/* The divider is drawn, not a border, so it can stop 3px short of each side. */
.inv-mnt__controls .inv-trait-rank-item::after{content:'';position:absolute;left:3px;right:3px;bottom:0;
	height:1px;background:rgba(255,255,255,.1);pointer-events:none}
.inv-mnt__controls .inv-trait-rank-item:last-child::after{display:none}
.inv-mnt__controls .inv-trait-rank-thumb{width:42px;height:42px;flex:none}
.inv-mnt__controls .inv-trait-rank-info{flex:1 1 auto;min-width:0}
.inv-mnt__controls .inv-trait-rank-name{font-size:.92rem;font-weight:200;color:#e8edf6}
.inv-mnt__controls .inv-trait-rank-item .inv-tr-fx{display:block;margin-top:1px;
	font-size:.75rem;line-height:1.4;color:#c9d3e2;white-space:normal}
.inv-mnt__controls .inv-trait-rank-item .inv-tr-fx b{color:#8ee6a0;font-weight:500}
.inv-mnt__controls .inv-trait-rank-item[data-trait-tier="common"] .inv-trait-rank-name{color:#d1d5db}
.inv-mnt__controls .inv-trait-rank-item[data-trait-tier="uncommon"] .inv-trait-rank-name{color:#4ade80}
.inv-mnt__controls .inv-trait-rank-item[data-trait-tier="rare"] .inv-trait-rank-name{color:#5aa6f0}
.inv-mnt__controls .inv-trait-rank-item[data-trait-tier="epic"] .inv-trait-rank-name{color:#b06ef0}
.inv-mnt__controls .inv-trait-rank-item[data-trait-tier="legendary"] .inv-trait-rank-name{color:#f3c04a}
.inv-mnt__controls .inv-trait-rank-item[data-trait-tier="mythical"] .inv-trait-rank-name{color:#ef6a5e}
.inv-mnt__controls .inv-trait-rank-slider{flex:none;align-self:center;width:72px}
/* The thirty-trait picker opens from the list mark, or by itself when none is chosen. */
/* The picker only ever shows as the dropdown: an empty mount now has its three + slots. */
.inv-mnt__controls:not(.is-picking) .inv-horse-details-locked{display:none}
/* INTENSIFY's pair: Downgrade (red) and Intensify (gold), the gear level row's plates. */
.inv-adorn__go-row.inv-enh__step{display:flex;gap:8px;margin:0}
.inv-adorn__go-row .inv-rings__act{flex:1 1 0;width:auto}
.inv-adorn__go-row .inv-rings__act:disabled{filter:grayscale(.7) opacity(.5)}
/* RE-ROLL's Downgrade: the same red plate, on its own line under the diamond. */
.inv-adorn__rr-down.inv-enh__step{grid-column:1/-1;display:flex;justify-content:center;width:100%;margin:14px 0 0}
.inv-adorn__rr-down .inv-rings__act{flex:0 1 220px;width:auto}
.inv-adorn__rr-down .inv-rings__act:disabled{filter:grayscale(.7) opacity(.5)}

/* ── Re-roll Range box (the list mark's popup) ─────────────────────────────────── */
.inv-mnt__adorn .inv-adorn__fx{position:relative}
.inv-adorn__range{position:absolute;z-index:30;top:38px;right:0;width:min(100%,560px);
	padding:0 0 10px;text-align:left;
	background:#161c26;border:1px solid rgba(255,255,255,.12);
	box-shadow:0 10px 30px rgba(0,0,0,.6)}
.inv-adorn__range-t{margin:0;padding:10px 16px;background:rgba(0,0,0,.28);
	font-family:Georgia,'Times New Roman',serif;font-weight:700;font-size:1.15rem;color:#f0d9a8}
.inv-adorn__range-flat{margin:0;padding:14px 16px;color:#c9d3e2}
.inv-adorn__range-row{margin:0 12px;padding:10px 4px;border-bottom:1px solid rgba(255,255,255,.1)}
.inv-adorn__range-row:last-of-type{border-bottom:0}
.inv-adorn__range-row p{margin:6px 0 0;font-size:1rem;line-height:1.35;color:var(--rr-col)}
.inv-adorn__range-row p em{font-style:normal;opacity:.85}
.inv-adorn__range-row p span.is-cur{font-weight:700;text-decoration:underline;text-underline-offset:3px}
.inv-adorn__range-bar{display:inline-flex;gap:3px;padding:3px 6px;background:#0b0e12}
.inv-adorn__range-bar i{width:24px;height:8px;background:var(--rr-col)}
.inv-adorn__range-row[data-band="0"]{--rr-col:#5aa6f0}
.inv-adorn__range-row[data-band="1"]{--rr-col:#b06ef0}
.inv-adorn__range-row[data-band="2"]{--rr-col:#e0b54a}
.inv-adorn__range-row[data-band="3"]{--rr-col:#ef6a5e}
.inv-adorn__range-change{display:block;margin:8px 16px 0 auto;padding:6px 14px;border:1px solid rgba(243,192,74,.45);
	background:rgba(243,192,74,.08);color:#f3c04a;font-size:.9rem;cursor:pointer}
.inv-adorn__range-change:hover{background:rgba(243,192,74,.16)}
.inv-adorn__fx-list.is-on{filter:brightness(1.35) drop-shadow(0 0 6px rgba(243,192,74,.6))}

/* ⚠ THE TABS ARE THE GAME'S OWN SPRITES (tog_n_city_01a lit / 01b unlit, byte-for-byte
   the files we ship) -- what made them look borrowed was 100% 100% stretching: a
   174x60 plate pulled to ~230x38 squashed the end arrows and thickened the dashes.
   The game draws them nine-sliced, so the ends keep their shape at any width. Slices
   cut off the sprite: 14 rows top and bottom, 40 columns each end, drawn at the
   tab's own height ratio (38/60). */
.inv-adorn__tab{background:none;border:0;
	border-image-source:url(../images/game-icons/adorn-tab-off.webp);
	border-image-slice:14 40 fill;
	border-image-width:calc(var(--inv-panel-w,460px) * .0833 * 14 / 60) calc(var(--inv-panel-w,460px) * .0833 * 40 / 60);
	border-image-repeat:stretch;background-color:rgba(10,13,18,.55)}
.inv-adorn__tab.is-on{border-image-source:url(../images/game-icons/adorn-tab-on.webp);background-color:transparent}
/* The trait picker as a dropdown under TRAITS -- the stable filter's own panel. */
.inv-mnt__controls.is-picking .inv-horse-details-locked{position:absolute;z-index:60;
	overflow-y:auto;overscroll-behavior:contain;margin:0;padding:10px 12px 12px;
	background:rgb(16 19 23 / 97%);border:1px solid rgba(255,255,255,.10);
	box-shadow:0 18px 40px rgba(0,0,0,.55)}
/* The middle mount fits its own track exactly -- no overscan, so nothing to scroll
   sideways (user 2026-11-07: a scrollbar was showing under it). */
.inv-mnt__cols > .inv-mnt__stage{overflow:hidden;min-width:0}
.inv-mnt__stage .inv-mnt__art{width:100%;max-width:100%;height:auto;margin:0 auto}
/* ⚠ THE STABLE COLUMN DOES NOT CLIP. `.inv-mnt__cols > *` makes every column a
   scroll box, which cut the BY QUALITY dropdown off at the column's edge. The list
   inside scrolls itself (sizeMountList caps it), so the column can stay open and the
   dropdown hangs out over the middle like the game's. */
.inv-mnt__cols > .inv-mnt__left{overflow:visible;z-index:8}

/* ⚠ THE TUNING HORSE DOES NOT SCROLL (user 2026-11-07). The art was width:100% /
   height:auto, so on a short window it stood taller than the column and the column
   (a scroll box, like every .inv-adorn__cols child) let it be dragged up and down. It
   now fills the column and is cut to it -- cover, not contain, so the fade mask is
   laid on exactly the picture a player sees and the bottom still dissolves. */
.inv-adorn__cols > .inv-adorn__mount{overflow:hidden}
.inv-adorn__mount-art{position:absolute;inset:0;width:100%;height:100%;
	object-fit:cover;object-position:50% 22%}

/* ══ MOUNT: NAME AND STATS STAND STILL, ONLY THE TRAITS SCROLL (user 2026-11-07) ══
   .inv-mnt__controls was the scroller, so the three stats and the TRAITS heading
   rode away with the list. Now every wrapper down to the builder's column is a
   flex column that refuses to grow past the panel, the stats and heading keep
   their own height, and .inv-mnt__traits-scroll (armoury.js mountTraitHead) is
   the one box that scrolls -- with no bar, and a soft fade at its foot.
   ⚠ The fade is a MASK, and a mask clips fixed children too, so it comes off
   while the trait picker is open as a dropdown (.is-picking). */
@media (min-width:641px){
	.inv-mnt__controls{display:flex;flex-direction:column;overflow:hidden}
	.inv-mnt__controls > .inv-subgroup,
	.inv-mnt__controls > .inv-subgroup > .inv-subgroup-body,
	.inv-mnt__controls > .inv-subgroup > .inv-subgroup-body > .space-y-3{
		display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
	.inv-mnt__controls .inv-horse-stats,
	.inv-mnt__controls .inv-mnt__traits-head{flex:0 0 auto}
	.inv-mnt__traits-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;
		scrollbar-width:none;padding-bottom:6px;
		-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 48px),transparent);
		        mask-image:linear-gradient(to bottom,#000 calc(100% - 48px),transparent)}
	.inv-mnt__traits-scroll::-webkit-scrollbar{display:none}
	.inv-mnt__controls.is-picking .inv-mnt__traits-scroll{-webkit-mask-image:none;mask-image:none}
	.inv-mnt__traits-scroll > :first-child{margin-top:0}
	/* One scroller only: the builder's trait grid has a max-height and a bar of its
	   own, which inside this box made a list scrolling inside a list. Not while it
	   is the dropdown -- that one keeps its own height and scroll. */
	.inv-mnt__controls:not(.is-picking) .inv-mnt__traits-scroll .inv-trait-visual-grid{max-height:none;overflow:visible}
}

/* ══ MOUNT: THE EMPTY TRAIT SLOTS (user 2026-11-07) ════════════════════════════
   One row per free slot, laid out as a trait row: the game's blank plate
   (pic_mount_quality4_01) with its gold add mark (tog_g_002b) on top, 38 of 64 as
   Pic_Blank sits on Pic_BlankBg in ListItem_GLMountCharacter. Both are the
   sprites as cut; nothing here is drawn. */
.inv-mnt__trait-add{position:relative;display:flex;align-items:center;gap:8px;width:100%;
	height:80px;padding:6px;border:0;border-radius:0;background:none;cursor:pointer;text-align:left;
	color:rgba(232,237,246,.55);font:inherit;font-size:.92rem;font-weight:200}
.inv-mnt__trait-add-plate{flex:none;width:42px;height:42px;display:grid;place-items:center;
	background:url(../images/game-icons/trait-slot-plate.webp) center/contain no-repeat}
.inv-mnt__trait-add-plate::after{content:'';width:59.4%;height:59.4%;
	background:url(../images/game-icons/trait-slot-add.webp) center/contain no-repeat}
.inv-mnt__trait-add:hover,.inv-mnt__trait-add:focus-visible{color:#f3c04a;outline:0}
.inv-mnt__trait-add:hover .inv-mnt__trait-add-plate{filter:brightness(1.2)}
.inv-mnt__trait-add::after{content:'';position:absolute;left:3px;right:3px;bottom:0;
	height:1px;background:rgba(255,255,255,.1);pointer-events:none}
.inv-mnt__trait-add:last-child::after{display:none}
/* The last CHOSEN row now has slots under it, so it keeps its divider. */
.inv-mnt__controls .inv-trait-rank-item:not(:last-child)::after{display:block}
/* Shut until the hero is riding (armoury.js traitGate): dimmed, not hidden, the way
   the ornament band says it. */
.inv-mnt__trait-add:disabled,
.inv-mnt__traits-edit:disabled{opacity:.4;filter:saturate(.3);cursor:not-allowed}
.inv-mnt__trait-add:disabled:hover{color:rgba(232,237,246,.55)}
.inv-mnt__trait-add:disabled:hover .inv-mnt__trait-add-plate{filter:none}
/* The dropdown is a solid panel whatever the builder's lock says. */
.inv-mnt__controls.is-picking .inv-horse-details-locked{opacity:1}
/* The trait dropdown's anchor (armoury.js traitPopPlace). Inside the dropdown the
   builder's grid neither scrolls nor fades on its own: the panel does the scrolling,
   so nothing behind it can show through a faded foot. */
.inv-mnt__panel{position:relative}
.inv-mnt__controls.is-picking .inv-horse-details-locked .inv-trait-visual-grid{max-height:none;overflow:visible;
	-webkit-mask-image:none;mask-image:none}

/* ══ ADORNMENT SHELF TILES, FROM THE PREFAB (user 2026-11-07) ══════════════════
   ListItem_GLMountOrnamentReset / BreakBatchItem, 150 square:
   - m_PicOrnamentBG = ui_menuitem4/box_9, the tooled leather tile (the tint that
     stood in for it is gone); the piece 128 of 150 on top.
   - Pic_Select = ui_n_frame/frame_n_white_line_04, 165 round the 150 tile, a 5px
     nine-sliced line tinted the game's selection yellow, rgb(243,227,129) off its
     own screen.
   - m_PicOrnamentPoint 32 at (16,-18) from the top left; m_LabLvNum at (8,20)
     from the bottom left -- on the worn piece only (armoury.js paintAdornShelf). */
.inv-adorn__list .inv-adornment-option{position:relative}
.inv-adorn__list .inv-adornment-option img{padding:7.3%;
	background:url(../images/game-icons/adorn-box.webp) center/100% 100% no-repeat}
/* The builder's radio marks the worn piece .is-selected (and theme-accent paints it a
   red ring with !important); armoury.js marks the previewed card .is-chosen. The game
   frame goes on the previewed card, else on the worn one -- never two at once. */
.inv-adorn__list .inv-adornment-option,
.inv-themed .inv-adorn__list .inv-adornment-option.is-selected{border:0 !important;box-shadow:none !important;outline:0}
.inv-adorn__list .inv-adornment-option.is-chosen img{box-shadow:none}
.inv-adorn__list .inv-adornment-option.is-chosen::before,
.inv-adorn__list:not(:has(.is-chosen)) .inv-adornment-option.is-selected::before{content:'';position:absolute;z-index:3;pointer-events:none;
	left:-5%;top:-5%;width:110%;aspect-ratio:1;box-sizing:border-box;
	border:3px solid transparent;border-image:url(../images/game-icons/adorn-select.webp) 5 stretch}
.inv-adorn__tile-over{position:absolute;left:0;top:0;width:100%;aspect-ratio:1;pointer-events:none;z-index:2}
.inv-adorn__tile-pt{position:absolute;left:10.7%;top:12%;width:21.3%;aspect-ratio:1;translate:-50% -50%;
	background:center/contain no-repeat}
.inv-adorn__tile-pt[hidden]{display:none}
.inv-adorn__tile-pt[data-band="0"]{background-image:url(../images/game-icons/adorn-pt-0.webp)}
.inv-adorn__tile-pt[data-band="1"]{background-image:url(../images/game-icons/adorn-pt-1.webp)}
.inv-adorn__tile-pt[data-band="2"]{background-image:url(../images/game-icons/adorn-pt-2.webp)}
.inv-adorn__tile-pt[data-band="3"]{background-image:url(../images/game-icons/adorn-pt-3.webp)}
.inv-adorn__tile-lv{position:absolute;left:5.3%;bottom:13.3%;translate:0 50%;
	font-family:Inter,sans-serif;font-weight:500;font-size:.72rem;line-height:1;color:#fff;
	text-shadow:0 1px 2px rgba(0,0,0,.85)}

/* ── The sheet's effect row: the level icon + the game's size of step bar ──
   The ATTRIBUTES RE-ROLL row draws the whole effect icon, its diamond in the level
   band's colour, not the panel's two plates (armoury.js paintAdornFx). Against the
   game's ~770 panel the icon is ~56 and the bar ~150 x 12, so on ours ~0.6 of that
   the bar was a third too big. */
.inv-adorn__fx-lvicon{display:none}
.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__fx-gem{background:none;width:36px}
.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__fx-gem img{display:none}
.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__fx-gem img.inv-adorn__fx-lvicon:not([hidden]){
	display:block;width:100%;height:100%}
.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__fx-bar{width:96px}

/* ── The shelf's chosen-piece panel: Pan_Package_OrnamentBox ─────────────────
   Title on pic_n_package_01 (720x60); the card on box_9b, box_10b at the cap
   (720x270); the two tabs under it; then the list. Everything on the card is
   placed in the prefab's own units over 720x270. */
.inv-mnt__adorn:not(.is-tune) .inv-adorn__namerow{aspect-ratio:720/60;padding:0 3%;
	background:url(../images/game-icons/adorn-titlebar.webp) center/100% 100% no-repeat}
.inv-mnt__adorn:not(.is-tune) .inv-adorn__namerow .inv-mnt__name{font-size:clamp(1rem,2.2vw,1.45rem)}
.inv-mnt__adorn:not(.is-tune) .inv-adorn__namerow + .inv-mnt__rule{display:none}
.inv-adorn__stage.is-pick{aspect-ratio:720/270;margin-top:0;
	background-image:url(../images/game-icons/adorn-pick-card.webp)}
.inv-adorn__stage.is-pick.is-max{background-image:url(../images/game-icons/adorn-pick-card-max.webp)}
.inv-adorn__stage.is-pick .inv-adorn__art{position:absolute;left:50%;top:50%;translate:-50% -50%;
	width:26.7%;height:auto;max-width:none;aspect-ratio:1}
/* m_PanCharacter: y -32 of the top, 43 tall, the band frame_mount_gradient_16
   (white fading out) worn dark; the icon 58 centred at x33, the name after it. */
.inv-adorn__card-fx{position:absolute;left:0;top:11.85%;translate:0 -50%;height:15.9%;width:62%;
	display:flex;align-items:center;gap:1.2%;pointer-events:none}
.inv-adorn__card-fx::before{content:'';position:absolute;inset:0;z-index:0;
	background:rgb(20 12 8 / 55%);
	-webkit-mask:url(../images/game-icons/adorn-fxband.webp) center/100% 100% no-repeat;
	        mask:url(../images/game-icons/adorn-fxband.webp) center/100% 100% no-repeat}
.inv-adorn__card-fx img{position:relative;z-index:1;flex:none;width:13%;aspect-ratio:1;margin-left:.6%;
	object-fit:contain}
.inv-adorn__card-fx b{position:relative;z-index:1;font-family:Inter,sans-serif;font-weight:500;
	font-size:clamp(.8rem,1.6vw,1.05rem);white-space:nowrap;color:var(--fx-col,#e5e7eb);
	text-shadow:0 1px 2px rgba(0,0,0,.6)}
.inv-adorn__card-fx[data-band="0"]{--fx-col:#8ec5ff}
.inv-adorn__card-fx[data-band="1"]{--fx-col:#d3a6ff}
.inv-adorn__card-fx[data-band="2"]{--fx-col:#ffd27a}
.inv-adorn__card-fx[data-band="3"]{--fx-col:#ff9d86}
/* m_PanLv 52 at (33,33) from the bottom left, m_LabLvNum from x68. */
.inv-adorn__card-lv{position:absolute;left:0;bottom:0;width:100%;height:100%;pointer-events:none}
.inv-adorn__card-lv .inv-adorn__rank{position:absolute;left:4.58%;top:87.8%;translate:-50% -50%;
	width:7.2%;height:auto;aspect-ratio:1}
.inv-adorn__card-lv b{position:absolute;left:9.44%;top:87.4%;translate:0 -50%;
	font-family:Inter,sans-serif;font-weight:500;font-size:clamp(.85rem,1.7vw,1.1rem);color:#fff;
	text-shadow:0 1px 3px rgba(0,0,0,.7)}
/* The two tabs belong to the shelf; on the tuning side the other pair stands. */
.inv-adorn__ptabs{margin-top:8px}
.inv-mnt__adorn:not(.is-tune) .inv-adorn__ptabs{display:grid}
.inv-mnt__adorn.is-tune .inv-adorn__ptabs{display:none!important}
.inv-mnt__adorn:not(.is-tune):not([data-ptab="fx"]) .inv-adorn__side{display:none}
.inv-mnt__adorn:not(.is-tune)[data-ptab="fx"] .inv-adorn__attrs{display:none}
.inv-mnt__adorn:not(.is-tune) .inv-adorn__attrs{margin-top:6px}
/* The bag tile per troop: the game ships the leather with the mark already sunk in --
   ui_menuitem4 box_11..14 (bow, horse, spear, crossed swords) and box_15..18 the
   same on the iridescent ground, worn at the cap. box_9 is the troop-less one. */
.inv-adorn__list .inv-adornment-option[data-unit="sword"] img{background-image:url(../images/game-icons/adorn-tile-sword.webp)}
.inv-adorn__list .inv-adornment-option[data-unit="cav"] img{background-image:url(../images/game-icons/adorn-tile-cav.webp)}
.inv-adorn__list .inv-adornment-option[data-unit="pike"] img{background-image:url(../images/game-icons/adorn-tile-pike.webp)}
.inv-adorn__list .inv-adornment-option[data-unit="arch"] img{background-image:url(../images/game-icons/adorn-tile-arch.webp)}
.inv-adorn__list .inv-adornment-option.is-max[data-unit="sword"] img{background-image:url(../images/game-icons/adorn-tile-sword-max.webp)}
.inv-adorn__list .inv-adornment-option.is-max[data-unit="cav"] img{background-image:url(../images/game-icons/adorn-tile-cav-max.webp)}
.inv-adorn__list .inv-adornment-option.is-max[data-unit="pike"] img{background-image:url(../images/game-icons/adorn-tile-pike-max.webp)}
.inv-adorn__list .inv-adornment-option.is-max[data-unit="arch"] img{background-image:url(../images/game-icons/adorn-tile-arch-max.webp)}
.inv-adorn__list .inv-adornment-option[data-unit] img{background-size:100% 100%;background-position:center;background-repeat:no-repeat}

/* The attribute rows' marks: pic_mount_quality4_07, the dark diamond, with the
   white icon_type glyph on it at 38 of its 56. */
.inv-adorn__attr-ico[data-k]{width:30px;height:30px;
	background:var(--k) center/62% no-repeat,url(../images/game-icons/adorn-attr-plate.webp) center/contain no-repeat}
.inv-adorn__attr-ico[data-k="sword"]{--k:url(../images/game-icons/adorn-attr-sword.webp)}
.inv-adorn__attr-ico[data-k="cav"]{--k:url(../images/game-icons/adorn-attr-cav.webp)}
.inv-adorn__attr-ico[data-k="pike"]{--k:url(../images/game-icons/adorn-attr-pike.webp)}
.inv-adorn__attr-ico[data-k="arch"]{--k:url(../images/game-icons/adorn-attr-arch.webp)}
.inv-adorn__attr-ico[data-k="skill"]{--k:url(../images/game-icons/adorn-attr-skill.webp)}
.inv-adorn__attr-ico[data-k="dr"]{--k:url(../images/game-icons/adorn-attr-dr.webp)}
.inv-adorn__attr.is-locked .inv-adorn__attr-ico{opacity:.55}

/* The selection frame stands 5% outside the tile (Pic_Select 165 on a 150 tile);
   the list clips at its edge, so the grid keeps that much room on every side. */
.inv-adorn__list .inv-adornment-grid{padding:6px}

/* The stable's selection is the game's Pic_Select plate alone -- its own gold edge
   is the ring, so ours goes (user 2026-11-07). The plate is 296x188 on a 280x172
   card, so it stands 2.86% / 4.65% outside it; the card's clip opens that far. */
.inv-mnt__list .inv-horse-option.is-chosen{outline:0;box-shadow:none}
.inv-mnt__list .inv-horse-option.is-chosen:not(.is-layered){overflow:visible}
.inv-mnt__list .inv-horse-option.is-layered.is-chosen{clip-path:inset(-8% -4% -9% -4%)}
.inv-mnt__list .inv-horse-option .inv-mnt__sel{position:absolute;inset:-6.55% -3.45%;top:-6%;bottom:-8%;right:-3.6%;z-index:3;pointer-events:none;
	background:url(../images/game-icons/horse-select.webp) center/100% 100% no-repeat}
/* Prefab order: m_PicItemBG, then m_PanSelect, THEN the horse -- the plate is
   under the picture (user 2026-11-07), over the card's own ground. */
.inv-mnt__list .inv-horse-option.is-layered .inv-mnt__sel,
.inv-mnt__list .inv-horse-option .inv-mnt__sel{z-index:0}
.inv-mnt__list .inv-horse-option.is-chosen,
.inv-mnt__list .inv-horse-option.is-layered.is-chosen{z-index:6}

/* ══ CHOOSING = the game's Craft Adornment screen (Menu_GLMountOrnamentForge) ══
   Pan_Left: the shelf as ONE column of 135 tiles (ListItem_GLMountOrnamentForgeItem)
   -- .1875 of the 720 the right panel is drawn in. m_PanPreview: the piece 256,
   centred over the scene. Pan_Desc: 632x228 on frame_mount_14 with the lore.
   Pan_Right: title + line, the two tabs, the list, the button. */
.inv-mnt__adorn:not(.is-tune) .inv-adorn__cols{
	grid-template-columns:calc(var(--inv-panel-w,460px) * .1875 + 16px) minmax(0,1fr) var(--inv-panel-w,460px)}
.inv-mnt__adorn:not(.is-tune) .inv-adorn__list .inv-adornment-grid{
	grid-template-columns:calc(var(--inv-panel-w,460px) * .1875);gap:10px}
.inv-mnt__adorn:not(.is-tune) .inv-adorn__list .inv-visual-icon-label,
.inv-mnt__adorn:not(.is-tune) .inv-adorn__list .inv-effect-name{display:none}
.inv-adorn__preview{position:relative;min-width:0;display:none;
	grid-template-rows:1fr auto;justify-items:center;align-items:center;padding:12px 0 18px}
.inv-mnt__adorn:not(.is-tune) .inv-adorn__preview{display:grid}
.inv-adorn__pv-art{width:min(46%,300px);height:auto;aspect-ratio:1;object-fit:contain;
	filter:drop-shadow(0 18px 24px rgba(0,0,0,.55))}
.inv-adorn__pv-art[hidden]{display:none}
.inv-adorn__pv-desc{position:relative;width:min(100%,560px);padding:18px 30px 22px;text-align:center}
.inv-adorn__pv-desc[hidden]{display:none}
.inv-adorn__pv-desc::before{content:'';position:absolute;inset:0;z-index:-1;
	background:url(../images/game-icons/adorn-forge-desc.webp) center/100% 100% no-repeat;
	filter:brightness(.42);opacity:.92}
.inv-adorn__pv-title{margin:0 0 4px;font-family:Georgia,'Times New Roman',serif;font-weight:700;
	font-size:1.02rem;letter-spacing:.05em;text-transform:uppercase;color:#f3c04a}
.inv-adorn__pv-text{margin:0;font-size:1rem;line-height:1.45;color:#e6e9ef}
@media (max-width:1100px){
	.inv-mnt__adorn:not(.is-tune) .inv-adorn__cols{grid-template-columns:minmax(0,1fr)}
	.inv-mnt__adorn:not(.is-tune) .inv-adorn__list .inv-adornment-grid{
		grid-template-columns:repeat(auto-fill,calc(var(--inv-panel-w,460px) * .1875))}
	.inv-mnt__adorn:not(.is-tune) .inv-adorn__preview{display:none}
}
/* The right panel on this screen: the plain title with its line (the tuning
   screen's), no card -- the piece is in the middle now. */
.inv-mnt__adorn:not(.is-tune) .inv-adorn__namerow{aspect-ratio:auto;padding:0;background:none}
.inv-mnt__adorn:not(.is-tune) .inv-adorn__namerow + .inv-mnt__rule{display:block}
.inv-mnt__adorn:not(.is-tune) .inv-adorn__stage{display:none}
.inv-mnt__adorn:not(.is-tune) .inv-adorn__side{display:none!important}
/* SPECIAL EFFECTS: the list, one row per effect. */
.inv-adorn__fxrows{display:none}
.inv-mnt__adorn:not(.is-tune)[data-ptab="fx"] .inv-adorn__fxrows{display:block;margin-top:6px}
.inv-adorn__fxrows-head{margin:0;padding:9px 8px;text-align:center;font-size:.98rem;color:#d6dbe4;
	background:linear-gradient(90deg,transparent,rgba(0,0,0,.42) 18%,rgba(0,0,0,.42) 82%,transparent)}
.inv-adorn__fxrow{position:relative;display:block;width:100%;text-align:left;cursor:pointer;
	padding:12px 10px 13px;margin:0;border:0;border-radius:0;background:none;color:inherit;
	border-bottom:1px solid rgba(255,255,255,.1)}
.inv-adorn__fxrow:hover{background:rgba(255,255,255,.035)}
.inv-adorn__fxrow-head{display:flex;align-items:center;gap:12px}
.inv-adorn__fxrow-head img{flex:none;width:40px;height:40px;object-fit:contain}
.inv-adorn__fxrow-head b{font-family:Inter,sans-serif;font-weight:500;font-size:1.05rem;color:#fff}
.inv-adorn__fxrow-desc{display:block;margin-top:6px;font-size:.93rem;line-height:1.45;color:#c9d0db}
.inv-fxb{font-weight:400}
.inv-fxb[data-band="0"]{color:#6fb6ff}
.inv-fxb[data-band="1"]{color:#c08cff}
.inv-fxb[data-band="2"]{color:#f3c04a}
.inv-fxb[data-band="3"]{color:#ef6a5e}
/* The lit row: m_PanLight -- the light sweep (pic_mount_quality14_01b) and the
   pale frame (pic_mount_quality14_01) round the whole item. */
.inv-adorn__fxrow.is-on{background:url(../images/game-icons/adorn-fxrow-light.webp) left top/auto 100% no-repeat}
.inv-adorn__fxrow.is-on::before{content:'';position:absolute;inset:0;pointer-events:none;
	border:3px solid transparent;border-image:url(../images/game-icons/adorn-fxrow-frame.webp) 10 stretch}
/* The effect list is the panel's scrolling body; the tabs above and EQUIP
   below stay put (buttons never ride inside a scroll). */
.inv-mnt__adorn:not(.is-tune)[data-ptab="fx"] .inv-adorn__fxrows{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;-ms-overflow-style:none}
/* Scrolls, but with no bar (user 2026-11-07). */
.inv-mnt__adorn:not(.is-tune)[data-ptab="fx"] .inv-adorn__fxrows::-webkit-scrollbar{display:none;width:0;height:0}
.inv-mnt__adorn:not(.is-tune)[data-ptab="fx"] .inv-adorn__fxrows-head{position:sticky;top:0;z-index:1;background:#15191f}
.inv-mnt__adorn:not(.is-tune) .inv-adorn__foot--pick{flex:none;margin-top:auto}
/* RE-ROLL fits its panel: the panel clips (overflow:hidden), so a short screen
   cut the red Downgrade plate in half. The pane is a column that fills the panel;
   the description is the part that gives (scrolls), the step row with its
   buttons always shows whole at the foot. */
.inv-mnt__adorn.is-tune[data-tune="effect"] .inv-adorn__fx:not([hidden]){
	display:flex;flex-direction:column;align-items:center;flex:1 1 auto;min-height:0}
.inv-mnt__adorn.is-tune[data-tune="effect"] .inv-adorn__fx > *{flex:none}
.inv-mnt__adorn.is-tune[data-tune="effect"] .inv-adorn__fx > .inv-adorn__fx-head,
.inv-mnt__adorn.is-tune[data-tune="effect"] .inv-adorn__fx > #inv-armoury-adorn-fxname,
.inv-mnt__adorn.is-tune[data-tune="effect"] .inv-adorn__fx > #inv-armoury-adorn-fxodds,
.inv-mnt__adorn.is-tune[data-tune="effect"] .inv-adorn__fx > #inv-armoury-adorn-fxstep{align-self:stretch}
.inv-mnt__adorn.is-tune[data-tune="effect"] #inv-armoury-adorn-fxdesc{
	align-self:stretch;flex:0 1 auto;min-height:2.9em;overflow-y:auto;overscroll-behavior:contain}
.inv-mnt__adorn.is-tune[data-tune="effect"] #inv-armoury-adorn-fxstep{margin-top:auto;padding-top:2px}
/* The ask dialog in the game's popup look -- the same one Create Lineup uses
   (.inv-pz__ask / .inv-cl-ask in edit-troop.css): dark plate with the inset
   double rule, Georgia gold title, stone Cancel/Stay, gold confirm; a red
   confirm for leaving without saving. Square corners. */
.inv-armoury__ask{background:rgba(4,7,12,.72);backdrop-filter:none;-webkit-backdrop-filter:none;
	padding:calc(16px + env(safe-area-inset-top,0px)) 16px calc(16px + env(safe-area-inset-bottom,0px))}
.inv-armoury__ask-card{width:min(420px,100%);max-width:none;padding:22px 22px 18px;text-align:center;border-radius:0;
	background:linear-gradient(180deg,#232c3b,#161d29);border:1px solid #4a5870;
	box-shadow:inset 0 0 0 3px #121822,inset 0 0 0 4px rgba(146,164,191,.28),0 18px 40px rgba(0,0,0,.6)}
.inv-armoury__ask-title{margin:0 0 6px;font:700 1.3rem/1.2 Georgia,'Times New Roman',serif;letter-spacing:0;color:#f2d27c}
.inv-armoury__ask-text{margin:0 0 18px;font-size:.85rem;line-height:1.5;color:#9aa6bd}
.inv-armoury__ask-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.inv-armoury__ask-no,.inv-armoury__ask-yes{justify-content:center;height:44px;padding:0 10px;border-radius:0;
	border-style:solid;border-width:0;background:none;text-transform:none;letter-spacing:0;
	font:700 1.05rem/1 Georgia,'Times New Roman',serif}
.inv-armoury__ask-no{border-image:url("../images/game-icons/btn-plate-stone.webp") 30 fill / 14px stretch;color:#3d372f}
.inv-armoury__ask-no:hover{color:#3d372f;filter:brightness(1.1)}
.inv-armoury__ask-yes,.inv-armoury__ask-yes:hover{background:none;
	border-image:url("../images/game-icons/btn-plate-gold.webp") 30 fill / 14px stretch;color:#3a2606}
.inv-armoury__ask-yes:hover:not(:disabled){filter:brightness(1.1)}
.inv-armoury__ask.is-danger .inv-armoury__ask-yes{border-image:none;background:#8f1d1d;border:1px solid #d65050;color:#fff;
	box-shadow:inset 0 0 0 2px rgba(0,0,0,.35)}
.inv-armoury__ask-no,.inv-armoury__ask-yes{font-size:clamp(.82rem,3.6vw,.95rem);padding:0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ADORNMENT FITS THE SCREEN, BUTTONS ALWAYS SHOW (user 2026-11-07).
   The stage height was 100vh - header - 28 for the COLUMNS alone, so the ADORNMENT
   head row above them pushed the floor ~65px past the viewport. The whole adornment
   screen is that height now, a column, and the columns take what the head leaves.
   On the landing panel the attribute list and the re-roll summary are the parts that
   give -- each scrolls inside itself -- and INTENSIFY / RE-ROLL sit on the floor. */
@media (min-width:641px){
	.inv-mnt.is-adorn > .inv-mnt__adorn{display:flex;flex-direction:column;
		height:calc(100vh - var(--inv-header-h,64px) - 28px);
		height:calc(100dvh - var(--inv-header-h,64px) - 28px)}
	.inv-mnt.is-adorn > .inv-mnt__adorn > *{flex:none}
	.inv-mnt.is-adorn > .inv-mnt__adorn > .inv-adorn__cols{flex:1 1 auto;min-height:0;height:auto}
	.inv-mnt__adorn.is-tune:not([data-tune]) #inv-armoury-adorn-attrs,
	.inv-mnt__adorn.is-tune:not([data-tune]) #inv-armoury-adorn-fx{flex:0 1 auto;min-height:3.5em;overflow-y:auto;
		overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(245,158,11,.4) rgba(255,255,255,.05)}
	.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__foot--tune{flex:none;margin-top:auto;padding-top:10px}
	.inv-mnt__adorn.is-tune:not([data-tune]) .inv-mnt__panel > *:not(#inv-armoury-adorn-attrs):not(#inv-armoury-adorn-fx){flex-shrink:0}
}

/* Take a trait off: the game's remove diamond (btn-remove.webp, the one the gem
   sockets and the adornment name use) on the row's top right corner. */
.inv-mnt__controls .inv-trait-rank-item .inv-tr-off{position:absolute;top:4px;right:4px;z-index:2;
	width:24px;height:24px;padding:0;border:0;border-radius:0;cursor:pointer;
	background:url(../images/game-icons/btn-remove.webp) center/contain no-repeat;
	transition:transform .12s ease,filter .12s ease}
.inv-mnt__controls .inv-trait-rank-item .inv-tr-off:hover{transform:scale(1.08);filter:brightness(1.12)}
.inv-mnt__controls .inv-trait-rank-item .inv-tr-off:focus-visible{outline:2px solid #f3c969;outline-offset:2px}

/* No Edit button on owned cards, at ANY width: the card itself opens the hero (the
   stretched .inv-armoury__open link). The overlay sat over that link at inset:0/z-index:2,
   so on desktop it also swallowed the card click. Unlock stays on locked cards.
   user 2026-11-07 (phones), 2026-11-09 (desktop too -- revert ef002b9e had brought it back). */
.inv-armoury__card:not(.is-locked) .inv-armoury__cardacts{display:none!important}

/* "Hold for quick upgrade." under the gear level and adornment level buttons, the way
   the skill screen carries it (user 2026-11-07). */
.inv-hold-hint{margin:4px 0 0;text-align:center;font:400 .78rem/1.2 Inter,system-ui,sans-serif;color:#c8d0de;opacity:.85;pointer-events:none}

/* Adornment landing panel (user 2026-11-07): the attribute list stands still and shows
   in full; only the ATTRIBUTES RE-ROLL block below it scrolls, up and down, with no bar.
   The five-step tier bar sits on the effect NAME's row -- the -22px lift belongs to the
   EFFECT LEVEL panel (where the bar hangs over the box), not to this sheet row. */
@media (min-width:641px){
	.inv-mnt__adorn.is-tune:not([data-tune]) #inv-armoury-adorn-attrs{flex:none;overflow:visible;min-height:0}
	.inv-mnt__adorn.is-tune:not([data-tune]) #inv-armoury-adorn-fx{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;
		scrollbar-width:none;-ms-overflow-style:none}
}
.inv-mnt__adorn.is-tune:not([data-tune]) #inv-armoury-adorn-attrs::-webkit-scrollbar,
.inv-mnt__adorn.is-tune:not([data-tune]) #inv-armoury-adorn-fx::-webkit-scrollbar{display:none;width:0;height:0}
.inv-mnt__adorn.is-tune:not([data-tune]) .inv-adorn__fx-bar{top:0;align-self:center}

/* LOOK FIRST, WEAR SECOND (2026-11-07): the gold frame follows the ring being LOOKED AT,
   the way the game's GEAR screen frames it; the worn one gives it up while another is shown. */
#inv-armoury-rings-controls.is-previewing .inv-ring-option.inv-ring-selected::after{display:none}
#inv-armoury-rings-controls .inv-ring-option.is-previewed::after{content:'';position:absolute;inset:-2px;z-index:2;
	pointer-events:none;border-image:url(../images/game-icons/tile-selected.webp) 20 fill / 10px stretch}
#inv-armoury-rings-controls .inv-ring-option.is-previewed::before{filter:none}

/* ── HERO FILTER SHEET = the game's PopupBox_CommonFilter (user 2026-11-07) ─────────
   m_Pic_BG ui_g_frame_filter_bg (9-slice slate), section titles Lab_SortTitle/Lab_Title
   (serif gold caps), SORT rows Pan_CommonFilter_01 (ui_g_frame_filter_01 arrow plate +
   btn_tog06_check_01 diamond at x34, icon_g_duihao_01 tick when on), FILTER rows
   Pan_CommonFilter_02 (ui_g_frame_filter_02, on = 02c gold frame; m_PicType icon at x34,
   label centred), foot Pan_Btn: ui_g_frame_filter_line shade, m_BtnRefresh diamond 80 with
   icon_btntype02_chongzhi, m_BtnConfirmed gold 250x62. Square everywhere. */
#inv-armoury-tools{padding:14px 14px 0;background:none;border:12px solid transparent;
	border-image:url(../images/game-icons/filter/panel-bg.webp) 12 fill / 12px stretch;
	box-shadow:0 10px 30px rgba(0,0,0,.55);width:440px}
#inv-armoury-tools .inv-armoury__bar{margin:0 0 10px;gap:10px}
#inv-armoury-tools .inv-armoury__search{height:34px;padding:0 10px;background:#1c222c;
	border:1px solid rgba(255,255,255,.14);box-shadow:inset 0 1px 3px rgba(0,0,0,.45);color:#e5e7eb}
#inv-armoury-tools .inv-armoury__search:focus{border-color:#e2bf68}
#inv-armoury-tools .inv-armoury__count{color:#cbd5e1}
#inv-armoury-tools .inv-armoury__fgroup{margin:0 0 12px}
#inv-armoury-tools .inv-armoury__flabel{margin:0 0 7px;font-family:Georgia,'Times New Roman',serif;
	font-weight:700;font-size:1rem;letter-spacing:.02em;text-transform:uppercase;color:#ecd59a;
	text-shadow:0 1px 2px rgba(0,0,0,.6)}
#inv-armoury-tools .inv-armoury__frow{gap:8px}
/* every button: the plain plate, label centred, no web chrome */
#inv-armoury-tools .inv-armoury__fbtn{position:relative;min-height:36px;padding:0 10px;
	background:none;border:4px solid transparent;color:#f1f5f9;font-family:Inter,system-ui,sans-serif;
	font-size:.86rem;font-weight:500;box-shadow:none;
	border-image:url(../images/game-icons/filter/chip.webp) 6 fill / 4px stretch}
#inv-armoury-tools .inv-armoury__fbtn:hover{filter:brightness(1.15);color:#fff}
#inv-armoury-tools .inv-armoury__chip[aria-pressed="true"]{color:#fff;font-weight:600;
	border-image-source:url(../images/game-icons/filter/chip-on.webp)}
/* the type icon sits at the plate's left, the label stays centred (m_PicType x34) */
#inv-armoury-tools .inv-armoury__chip .inv-chip-icon{position:absolute;left:6px;top:50%;
	width:20px;height:20px;transform:translateY(-50%)}
#inv-armoury-tools .inv-armoury__chip:has(.inv-chip-icon){padding-left:28px}
/* SORT: the arrow-ended plate with the check diamond on its left */
#inv-armoury-tools .inv-armoury__sortbtn{border:0;border-image:none;padding:0 12px 0 34px;
	background:url(../images/game-icons/filter/sort.webp) center/100% 100% no-repeat}
#inv-armoury-tools .inv-armoury__sortbtn::before{content:'';position:absolute;left:6px;top:50%;
	width:24px;height:24px;transform:translateY(-50%);
	background:url(../images/game-icons/filter/diamond.webp) center/contain no-repeat}
#inv-armoury-tools .inv-armoury__sortbtn.is-active,
#inv-armoury-tools .inv-armoury__sortbtn[aria-pressed="true"]{color:#fff;background-color:transparent;
	border:0;font-weight:600}
#inv-armoury-tools .inv-armoury__sortbtn.is-active::after,
#inv-armoury-tools .inv-armoury__sortbtn[aria-pressed="true"]::after{content:'';position:absolute;
	left:10px;top:50%;width:16px;height:16px;transform:translateY(-50%);
	background:url(../images/game-icons/filter/check.webp) center/contain no-repeat}
/* the foot: the shade line across, the refresh diamond, the gold Confirm */
#inv-armoury-tools .inv-armoury__factions{position:sticky;bottom:0;margin:4px -14px 0;padding:10px 14px 12px;
	border:0;gap:12px;background:url(../images/game-icons/filter/line.webp) center top/100% 100% no-repeat}
#inv-armoury-tools .inv-armoury__freset{width:38px;height:38px;border:0;padding:0;color:transparent;
	background:url(../images/game-icons/filter/reset.webp) center/20px 20px no-repeat,
		url(../images/game-icons/filter/reset-bg.webp) center/contain no-repeat}
#inv-armoury-tools .inv-armoury__freset > span[aria-hidden]{display:none}
#inv-armoury-tools .inv-armoury__freset:hover{filter:brightness(1.2)}
#inv-armoury-tools .inv-armoury__fconfirm{min-width:132px;height:38px;padding:0 20px;
	border:0;border-radius:0;border-image:url(../images/game-icons/btn-plate-gold.webp) 30 fill / 15px;
	background:none;display:flex;align-items:center;justify-content:center;
	font-family:Georgia,'Times New Roman',serif;font-weight:700;font-size:1rem;color:#17120a}
#inv-armoury-tools .inv-armoury__fconfirm:hover{background:none;filter:brightness(1.08)}
@media (max-width:480px){#inv-armoury-tools{width:calc(100vw - 24px)}}
/* sizes off the prefab's proportions: 332x68 plates three across, the check diamond
   about the plate's height, the label one line */
#inv-armoury-tools{width:500px}
#inv-armoury-tools .inv-armoury__fbtn{min-height:40px;font-size:.92rem;white-space:nowrap}
#inv-armoury-tools .inv-armoury__fbtn span{text-transform:capitalize}
#inv-armoury-tools .inv-armoury__sortbtn{padding-left:40px}
#inv-armoury-tools .inv-armoury__sortbtn::before{left:4px;width:32px;height:32px}
#inv-armoury-tools .inv-armoury__sortbtn.is-active::after,
#inv-armoury-tools .inv-armoury__sortbtn[aria-pressed="true"]::after{left:10px;width:20px;height:20px}
/* The piece's stars sit along the tile's foot, under the level, as the game draws them.
   The artwork is laid absolutely, so a star row left in flow rose to the top, under the
   gem pips. */
.inv-hap__gear .inv-gear-tile > .inv-lp-gstars{position:absolute;left:0;right:0;bottom:0}
/* Advance: what each petal of the star gives, one row a petal, as the game's EFFECT line
   reads ("<Hero> - Might +N"). A petal the hero has reached is lit. */
.inv-adv__petals{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:3px}
.inv-adv__petal-row{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:8px;padding:5px 8px;background:#1b202b;color:#8b93a8;font-size:.85rem}
.inv-adv__petal-row.is-done{color:#dfe5f2}
.inv-adv__pstar{width:20px;height:20px;background:url(../images/game-icons/hero-star-base.webp) center/contain no-repeat}
.inv-adv__petal-vals{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;white-space:nowrap}
.inv-adv__petal-vals span{display:inline-flex;align-items:center;gap:4px}
.inv-adv__petal-vals img{width:16px;height:16px;object-fit:contain}
.inv-adv__petal-vals b{color:#6fd36f;font-weight:700}
.inv-adv__petal-row:not(.is-done) .inv-adv__petal-vals b{color:#4f9a4f}

/* Locked rings (invictus-ring-unlock.php): a padlocked tile wears its unlock price. */
.inv-ring-option{position:relative}
.inv-ring-option.is-ring-locked img{filter:grayscale(.55) brightness(.72)}
.inv-ring-lockbadge{position:absolute;left:50%;bottom:2px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:2px;padding:1px 4px;border-radius:0;background:rgba(10,12,18,.9);border:1px solid #8a6d2c;color:#f3c04a;font:700 .62rem/1 Inter,system-ui,sans-serif;white-space:nowrap;pointer-events:none}
.inv-ring-lockbadge .inv-armoury__coin{width:10px;height:10px;flex:0 0 10px;margin:0}

/* Phone backdrop (user 2026-11-14): armoury.js swaps in the 360x640 cut and marks it .is-m. */
@media (max-width:999px){
	.inv-hap__bgvid.is-m{display:block;
		-webkit-mask-image:linear-gradient(180deg,#000 55%,transparent 100%);
		mask-image:linear-gradient(180deg,#000 55%,transparent 100%)}
	.inv-armoury__backdrop:has(.is-m) + .inv-armoury__shell{position:relative;z-index:1}
}

/* ── Recommended build (My Heroes, user 2026-11-16) ── */
.inv-armoury__reco-apply{font-size:1.1rem;padding:12px 18px}
.inv-armoury__ask-parts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 20px}
.inv-armoury__ask-parts[hidden]{display:none}
.inv-armoury__ask-part{display:flex;align-items:center;gap:8px;padding:9px 10px;cursor:pointer;
	border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.03);color:#e5e7eb;font-size:.86rem}
.inv-armoury__ask-part input{accent-color:#f59e0b;width:16px;height:16px;margin:0;flex:none}
.inv-armoury__ask-part:has(input:checked){border-color:rgba(245,158,11,.55)}
@media (max-width:420px){.inv-armoury__ask-parts{grid-template-columns:1fr}}

/* ── Attribute Overview (user 2026-11-16) ─────────────────────────────────────────
   A slab under the level, in the level's own look, with the game's list button at its
   head and the four totals in miniature; open, it drops the game's overview plate:
   Might / Armor / Strategy / Siege with the per-level growth in green. */
.inv-hap__attrs-wrap{position:relative;margin-bottom:4px}
.inv-hap__attrs-btn{display:flex;align-items:center;gap:8px;width:100%;margin:0;padding:3px 6px 3px 2px;border:0;border-radius:0;
	cursor:pointer;text-align:left;background:rgb(32 38 49 / 33%);transition:background-color .15s}
.inv-hap__attrs-btn:hover,.inv-hap__attrs-btn[aria-expanded="true"]{background:rgba(245,158,11,.16)}
.inv-hap__attrs-ico{flex:none;width:30px;height:30px;
	background:url(../img/reco/list.png) center/52% no-repeat,url(../img/reco/diamond.png) center/contain no-repeat}
.inv-hap__attrs-btn[aria-expanded="true"] .inv-hap__attrs-ico{
	background:url(../img/reco/list.png) center/52% no-repeat,url(../img/reco/diamond-on.png) center/contain no-repeat}
.inv-hap__attrs-lbl{flex:none;font:500 .95rem/1 Inter,system-ui,sans-serif;color:#fff}
.inv-hap__attrs-mini{flex:1;min-width:0;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:2px 9px;
	font:600 12px/1 Inter,system-ui,sans-serif;color:#cfd5e6;font-variant-numeric:tabular-nums}
.inv-hap__attrs-mini span{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.inv-hap__attrs-mini img{width:14px;height:14px;object-fit:contain}
.inv-hap__attrs{margin-top:3px;padding:8px;background:#161b26;border:1px solid #3a4152;border-radius:0}
.inv-hap__attrs[hidden]{display:none}
.inv-hap__attr{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 8px;background:#1b202b}
.inv-hap__attr + .inv-hap__attr{margin-top:3px}
.inv-hap__attr img{width:22px;height:22px;object-fit:contain}
.inv-hap__attr-name{font:600 14px/1 Inter,sans-serif;color:#e8ebf5}
.inv-hap__attr:first-child .inv-hap__attr-name{color:#f5c76b}
.inv-hap__attr-val{font:600 13px/1 Inter,sans-serif;color:#f0f4ff;white-space:nowrap;font-variant-numeric:tabular-nums}
.inv-hap__attr-val em{font-style:normal;color:#6fd36f}
@media (max-width:420px){.inv-hap__attrs-mini{display:none}}

/* ── Attribute Overview beside the rail (user 2026-11-16) ──────────────────────────
   On a wide screen the game's list button sits at the hero's foot, just right of the
   portrait rail; the plate opens above it. Only while the rail is narrow and a sheet is
   up -- the full-size cards cover that spot, and a screen (gear, ring...) hides the rail.
   On a phone the list and the sheet take turns, so the slab stays in the sheet there. */
.inv-armoury__attrsbtn,.inv-armoury__attrsplate{display:none}
@media (min-width:1000px){
	.inv-armoury__shell.is-narrow:not(.is-screen) .inv-armoury__attrsbtn:not([hidden]){display:block}
	.inv-armoury__shell.is-narrow:not(.is-screen) .inv-armoury__attrsplate:not([hidden]){display:block}
	.inv-armoury__attrsbtn{position:absolute;z-index:8;bottom:12px;
		left:calc((var(--inv-rail-w, 170px) - 104px) / 2 + 106px + 44px);
		width:58px;height:58px;padding:0;margin:0;border:0;border-radius:0;cursor:pointer;
		background:url(../img/reco/list.png) center/52% no-repeat,url(../img/reco/diamond.png) center/contain no-repeat;
		filter:drop-shadow(0 2px 4px rgba(0,0,0,.8))}
	.inv-armoury__attrsbtn:hover,.inv-armoury__attrsbtn[aria-expanded="true"]{
		background:url(../img/reco/list.png) center/52% no-repeat,url(../img/reco/diamond-on.png) center/contain no-repeat}
	.inv-armoury__attrsplate{position:absolute;z-index:8;bottom:78px;
		left:calc((var(--inv-rail-w, 170px) - 104px) / 2 + 106px + 34px);width:330px;padding:8px;
		background:rgba(22,27,38,.95);border:1px solid #3a4152;border-radius:0;box-shadow:0 8px 24px #000}
	.inv-armoury__attrstitle{margin:0 2px 6px;font:700 17px/1.1 Cinzel,Rajdhani,serif;letter-spacing:.04em;text-transform:uppercase;color:#f0e6cc}
	/* The sheet's own slab gives way to the button on a wide screen (the hero page's
	   recommended build has no rail, so it keeps its slab). */
	.inv-armoury:not(.inv-armoury--reco) .inv-hap__attrs-wrap,
	.inv-armoury--showcase .inv-hap__attrs-wrap{display:none}
}

/* The rider's round head on the horse he is on (user 11-17, as the game's stable card):
   top right, no rim of its own (the head icon brings one; user's values 11-17). Set by markMounted(). */
.inv-mnt__list .inv-horse-option .inv-mnt__rider{position:absolute;top:1%;right:1%;z-index:5;
	width:19%;max-width:58px;aspect-ratio:1;border-radius:50%;overflow:hidden;pointer-events:none}
.inv-mnt__list .inv-horse-option .inv-mnt__rider img{position:static;width:100%;height:100%;
	object-fit:cover;object-position:center top;transform:none;max-width:none}

/* The roster is sticky (its own stacking layer), so its open filter sheet sat UNDER the hero
   panel painted after it. Lift the roster while the sheet is open (user 2026-11-18). */
.inv-armoury__roster:has(.inv-armoury__tools.is-open){z-index:30}

/* ── Ring worn by the hero (user 2026-11-20, the game's ring bag + m_PanEquiped) ──
   The wearer's round head: a gold disc behind the portrait, both cut to a circle
   with clip-path so no box corner is rounded. */
.inv-ring-head{display:inline-block;flex:none;width:36px;height:36px;padding:1px;
	background:linear-gradient(160deg,#f2d58a,#8a6d2c);clip-path:circle(50%)}
.inv-ring-head img{display:block;width:100%;height:100%;object-fit:cover;clip-path:circle(50%)}
/* On the tile: bottom-right corner, over the art, under the lock badge. */
.inv-ring-head--tile{position:absolute;right:3px;bottom:3px;z-index:3;width:36%;height:auto;aspect-ratio:1;pointer-events:none}
/* On the sheet: "Equipped" + head sitting on the action row's top-right edge. */
.inv-rings__acts{position:relative}
.inv-rings__inuse{position:absolute;right:2px;bottom:calc(100% + 4px);z-index:2;pointer-events:none;
	display:flex;align-items:center;gap:6px;height:30px;padding:0 0 0 24px;
	background:linear-gradient(90deg,rgba(13,23,31,0),rgba(13,23,31,.82) 28%);
	font-size:.84rem;color:#e8edf6;text-shadow:0 1px 2px #000}
.inv-rings__inuse[hidden]{display:none}

/* SAVED popup (armoury.js savedNotice): the ask card, centred, one gold OK. */
.inv-armoury__saved{z-index:100000;cursor:pointer}
.inv-armoury__saved .inv-armoury__ask-title{color:#9fe0a6}
.inv-armoury__saved .inv-armoury__ask-text{display:flex;align-items:center;justify-content:center;gap:6px;
	font:700 1rem/1 'Rajdhani',sans-serif;color:#f2d27c}
.inv-armoury__saved .inv-armoury__ask-text .inv-armoury__coin{width:20px;height:20px}
.inv-armoury__ask-actions.is-one{grid-template-columns:minmax(0,180px);justify-content:center}
