/* Shop: three fixed columns and an always-present footer. Tokens only. */
.shop {
  position: absolute;
  left: 50%;
  top: 128px;
  transform: translateX(-50%);
  zoom: var(--ui-scale);
  width: 1360px; /* the battlefield shows at its sides (Opus, round 10) */
  max-width: calc(100vw / var(--ui-scale) - 32px);
  /* 830 px where the window fits the 1000 px design height (1516x820 unchanged), taller as the window grows past it, up
     to 930 px at 1080p, where 830 cut the parts row in half over bare battlefield (Opus, round 4). It ends 22 px above
     the screen edge there; the max-height keeps 20 px (times the scale) at any size, and ::before and ::after follow
     at inset 0. */
  height: clamp(830px, calc(830px + 1.25 * (100vh / var(--ui-scale) - 1000px)), 930px);
  max-height: calc(100vh / var(--ui-scale) - 148px);
  display: grid;
  grid-template-columns: 236px 1fr 360px;
  grid-template-rows: 1fr 52px;
  z-index: var(--z-overlay);
  /* The combat console's frame (hud.css .combat), drawn by ::before and ::after: 18 px cut top corners, a double steel
     inset and the gold edge along the top (UI council round 2). It replaces the kit panel's own steel, trim and 4 px
     steps; the top padding keeps the trim's 3 px, so the columns sit where they did. */
  background: none;
  border-top: none;
  box-shadow: none;
  clip-path: none;
  padding-top: 3px;
  isolation: isolate;
}
.shop::before, .shop::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.shop::before {
  background: var(--steel);
  box-shadow: inset 0 0 0 1px var(--steel-dark), inset 0 0 0 3px var(--steel-line);
  clip-path: polygon(0 18px, 18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px));
}
.shop::after {
  background: var(--trim);
  clip-path: polygon(0 18px, 18px 0, calc(100% - 18px) 0, 100% 18px, 100% 21px, calc(100% - 18px) 3px, 18px 3px, 0 21px);
}
/* The kill feed and chat lines (chat.css, z-index 45) drew over the open shop (screenshot 10, round 1), then, under it,
   were cut mid-word by its edge ("Ranger killed Ra", round 6). They are hidden while it is open; an open chat, where you
   are typing, stays on top and shows them. */
body:has(#shop:not([hidden])) .player-chat:not(.expanded) { z-index: calc(var(--z-overlay) - 1); visibility: hidden; }
/* "Your core is under attack" drew over the shop's tabs (UI council round 3, hud.css .core-alert). It stays visible,
   because it says to leave the shop, and sits just above the open shop's top edge (128 px, scaled like the shop),
   between it and the top bar. */
body:has(#shop:not([hidden])) .core-alert { top: calc(128px * var(--ui-scale)); transform: translate(-50%, calc(-100% - 4px * var(--ui-scale))); }
/* The open shop's alert is one line (code review, round 3). At 14 px with 2 px padding it read as a small red line
   (Opus, round 6): it is 16 px bold with a 2 px top trim on the panel's opaque steel, so the world's health bars never
   show through it. Its 2 px padding keeps it 22 px tall, and its gap to the shop scales with the HUD, so it fits between
   the top bar and the shop at every HUD scale s: the room is 124s px less the top bar, which ends at 66s px, or 18 + 32s
   px below s = 0.53, where the kills' digits set its height. That is 24.7 px at 0.465, the smallest (the 26 px alert
   with a 4 px gap covered 3.4 px of the top bar there), 48.2 px at 0.82 and 58 px at 1 (code review, 2026-11-08). */
body:has(#shop:not([hidden])) .core-alert { font-size: var(--t-s); line-height: 1; padding: 2px var(--s3); border-top-width: 2px; background: var(--steel); }
/* Reading text never under 14 px on screen: the shop's zoom took the purchase lines and the card lines to 11-13 px on a
   1516x820 page (UI council round 2). They wrap rather than shrink; the cap holds them inside their boxes at the
   smallest HUD scales. */
/* Each minimum holds down to the lowest ui-scale, 0.465 (window fit 0.62 x HUD size 75%), so the cap is minimum / 0.465. */
.shop :is(.buyline .why, .rec-select > .sm, .shop-note, .owned-copies) { font-size: clamp(var(--t-xs), calc(14px / var(--ui-scale)), 31px); line-height: 1.35; }
.shop .rec-select > .sm { font-size: clamp(var(--t-s), calc(14px / var(--ui-scale)), 31px); }
/* The same 14 px minimum for the selected item's stats, its before and after lines, its passive and the hint under Buy,
   and every tile's name and price: at 1516x820 they read 13 px beside the protected card text (GPT-6.1 Sol, round 3). */
.shop :is(.detail .stat, .impact .sm, .detail .passive .sm, .buyline .shop-tip, .tile .nm, .tile .price) {
  font-size: clamp(var(--t-s), calc(14px / var(--ui-scale)), 31px);
  line-height: 1.3;
}
.shop-note { margin: 0; }
.shop-col { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3); border-right: 2px solid var(--line); min-height: 0; overflow: hidden; }
.shop-col.quick { overflow-y: auto; }
/* Its last row clears the bottom fade (overlays.css, the same 24 px fade as the other columns), so nothing ends cut at
   the panel edge (UI council round 3: the hint under the recipe was cut). */
.shop-col.detail-col { border-right: none; overflow-y: auto; padding-bottom: 48px; }
/* The last row, names and prices too, clears the column's bottom fade (Grok, rounds 4 and 5). */
.shop-col.browse { overflow-y: auto; padding-bottom: 72px; }
.shop h4 { margin: 0; }
/* Boots, the Anvil and the stars: the left column never runs off the bottom. */
.quickgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s1) var(--s2); }
.quickgrid .tile { width: auto; }
/* Boots and the Anvil are one row each, icon, name, price, so the name is the scan line (Grok, rounds 6 and 7; the
   Anvil read only "500", UI council 2026-11-08). */
.quickgrid.rows { grid-template-columns: 1fr; gap: var(--s1); }
.quickgrid.rows .tile { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: var(--s2); width: auto; }
/* A name wraps rather than being cut when the floor makes it wide at small HUD scales (code review, round 3). */
.quickgrid.rows .tile .nm { order: 2; text-align: left; height: auto; color: var(--text); min-width: 0; overflow: visible; white-space: normal; overflow-wrap: anywhere; }
.quickgrid.rows .tile .price { order: 3; }
/* A pair of boots says what sets it apart on a second, dim line under its name and price, its icon beside both (Sol and
   Opus, round 6: seven rows of a name and "1,100"). The rows grow and the column scrolls; the Anvil's row has none. */
.quickgrid.rows.boots .tile > .slot { grid-area: 1 / 1 / 3 / 2; align-self: center; }
.quickgrid.rows.boots .tile > .nm { grid-area: 1 / 2; }
.quickgrid.rows.boots .tile > .price { grid-area: 1 / 3; }
.quickgrid.rows.boots .tile > .benefit { grid-area: 2 / 2 / 3 / 4; text-align: left; }
/* A locked tile stays recognisable: the lock badge is the signal (kit.css draws it near black, which turned the Boots
   column and an owned Spellpiercing into black squares, UI council 2026-11-08). An owned item never looks dead. */
.shop .slot.locked > img { filter: grayscale(0.8) brightness(0.7); }
.shop .slot.locked.ownedpart > img { filter: none; }
.full-build .b-rec { display: none; }
.shop-tip { margin: 0; }
/* Browse tiles get room for their names (GPT-6.1 Sol, round 7: small wrapped names were hard to scan). */
.shop-col.browse :is(.buildrow, .recs) .tile { width: 100px; }
.shop-col.browse .tile .nm { height: auto; min-height: 2.6em; overflow: visible; overflow-wrap: anywhere; }
/* Other starters: each says its main benefit under its name (GPT-6.1 Sol, round 2, asked twice). */
.starters .tile .nm { color: var(--text); }
.tile .benefit { font-size: clamp(var(--t-xs), calc(14px / var(--ui-scale)), 31px); line-height: 1.3; color: var(--text-dim); text-align: center; }
/* The Full build's tiles say their headline stats too (Opus, round 6: comparing the six took six clicks). Every tile
   keeps the line, so the row's names and stats start level. */
.full-build .tile .benefit { min-height: 1.3em; }
/* What the gold build star means, beside the tiles that carry it (both judges, round 2); the star itself has a tip. */
.legend-head { justify-content: space-between; }
.star-legend {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  margin-left: auto;
  font-family: var(--font-body);
  font-size: clamp(var(--t-xs), calc(13px / var(--ui-scale)), 28px);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-dim);
}
.star-legend .ico { width: 14px; height: 14px; vertical-align: 0; color: var(--you); }
/* The Anvil and Night Lord's stars line up with Your items above them. */
.quickgrid.extras { grid-template-columns: repeat(3, 56px); justify-content: space-between; justify-items: center; gap: var(--s2); }
.inv6 { display: grid; grid-template-columns: repeat(3, 56px); gap: var(--s2); justify-content: space-between; }
.searchbar { gap: var(--s3); }
.searchbox { flex: 1; display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); color: var(--text-dim); }
.searchbox.active { border-color: var(--you); color: var(--text); }
.searchbox input { flex: 1; background: transparent; border: none; outline: none; font-family: var(--font-body); font-size: var(--t-m); color: var(--text); }
.recommended { gap: var(--s2); }
.recs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
/* One card (the Best start) spans the row (Opus and GPT-6.1 Sol, round 4: two thirds of the pane sat empty). */
.recs > .rec:only-child { grid-column: 1 / -1; }
.rec {
  border: 2px solid var(--line);
  background: var(--bg-1);
  padding: var(--s2);
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  align-items: flex-start;
  color: var(--text);
  text-align: left;
}
.rec:is(:hover, .virtual-hover) { border-color: var(--text-dim); }
/* The card selects; its own Buy, always at its foot, buys (real-screen walk 4 of the launch integration). */
.rec-select { display: flex; flex-direction: column; gap: var(--s1); align-items: flex-start; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rec-buy { align-self: stretch; margin-top: auto; }
/* Selected, not bought: a quiet gold border and a gold left accent, so Buy stays the strongest gold (GPT-6.1 Sol, round 9). */
.rec.sel { border-color: var(--you-deep); box-shadow: inset 3px 0 0 var(--you); }
.rec .top { gap: var(--s2); }
.rec .nm { font-weight: 700; font-size: var(--t-m); }
.rec .price { font-weight: 700; font-size: var(--t-m); color: var(--you); }
/* Stat names in full ("Ability power + Magic penetration") wrap inside the card rather than run out of it. */
.rec .chip { white-space: normal; }
/* One rule for a price you cannot pay yet, on tiles, rows and Buy next cards: dim at regular weight; gold is what you can
   buy (UI council round 3: bold dim tile prices read as bright as names, the cards used the faint colour). */
.shop :is(.tile.poor, .rec.poor) .price { color: var(--text-dim); font-weight: 400; }
.buildrow { display: flex; gap: var(--s2); flex-wrap: wrap; }
.browse-split { display: grid; grid-template-columns: 170px 1fr; gap: var(--s3); min-height: 0; }
.filters { display: flex; flex-direction: column; gap: 2px; }
.filters .f {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s1) var(--s2);
  font-size: var(--t-s);
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
}
.filters .f:is(:hover, .virtual-hover) { border-color: var(--line-strong); }
.filters .f.on { border-color: var(--you); background: var(--you-soft); }
/* The filter the search text names ("mana"): its words in light gold, no box, so the only boxed row is a filter you set
   (Opus, round 4: the box and gold edge read as set). */
.filters .f.named:not(.on) { color: var(--you-light); }
/* Tracks as wide as a browse tile, so All items' tiles never overlap (independent review, round 8). */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: var(--s2) var(--s1); align-content: start; }
.grid .tile { width: auto; }
.tierhead { grid-column: 1 / -1; display: flex; align-items: center; font-weight: 700; font-size: var(--t-xs); color: var(--text-dim); letter-spacing: 0.12em; border-bottom: 1px solid var(--line); padding: var(--s1) 0; margin-top: var(--s1); }
.grid-empty { grid-column: 1 / -1; }
.detail { gap: var(--s2); padding: 0; }
.buildsinto { gap: var(--s1); flex-wrap: wrap; min-height: 0; }
/* The recipe as a tree: each part's own parts sit under it, joined by 2px moonsteel lines, 12px between branches
   (UI council 2026-11-08: three centred rows did not say which parts make which). */
.tree { display: flex; justify-content: center; }
.rtree { display: flex; flex-direction: column; align-items: center; }
.rtree > .kids { position: relative; display: flex; justify-content: center; padding-top: 8px; }
.rtree > .kids::before,
.rtree > .kids > .rtree::after { content: ""; position: absolute; top: 0; left: calc(50% - 1px); height: 8px; border-left: 2px solid var(--line-strong); }
.rtree > .kids > .rtree { position: relative; padding: 8px 4px 0; }
.rtree > .kids > .rtree::before { content: ""; position: absolute; top: 0; left: 0; right: 0; border-top: 2px solid var(--line-strong); }
.rtree > .kids > .rtree:first-child::before { left: calc(50% - 1px); }
.rtree > .kids > .rtree:last-child::before { right: calc(50% - 1px); }
.rtree > .kids > .rtree:only-child::before { display: none; }
.tree { position: relative; }
.tree .node { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tree .node .prices { display: flex; flex-direction: column; align-items: center; }
/* A part's name, then its price, then the line under it ("includes 150 to combine" or "Will buy"): never under 14 px
   on screen, about 18 px apart (GPT-6.1 Sol, round 5: 13 px at 1516x820). The cap is minimum / 0.465. */
.tree .node :is(.pline, .sub, .nodename) { font-size: clamp(var(--t-xs), calc(14px / var(--ui-scale)), 31px); line-height: 1.3; }
/* A line another node at the same depth draws stays, blank, so the lines there share baselines and the parts under
   them start level (round 4). */
.tree .node .line { min-height: 1.3em; }
/* Under a part, the only line is "Will buy": its combine cost is in its tip (both judges, round 6: "includes 150 to
   combine" on every node was too much text), so a middle part keeps one line for it, drawn or blank. */
.tree .node:not(.top) .sub { max-width: 150px; text-align: center; }
.tree .node .pline { white-space: nowrap; }
.tree .node b { color: var(--you); }
.tree .node.have b { color: var(--owned); }
/* What combining costs is part of the price above it, so it is quieter than the price (Sol, round 4). */
.tree .node .combine { color: var(--text-dim); }
/* The item's own price and "includes 1,150 to combine" sit beside its icon, to its right, rather than adding two lines
   to the tree's height; the icon stays centred over its parts (round 4). */
/* The top node is a three-column grid: its icon centred over its parts, the prices in the right column. The row is as
   tall as the taller of the two, so wrapped prices at small HUD scales push the parts down rather than overlap them
   (code review, round 4). */
.tree .node.top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: var(--s2); width: 100%; }
.tree .node.top > :first-child { grid-column: 2; }
.tree .node.top > .prices {
  grid-column: 3;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  text-wrap: balance;
}
/* The parts the Buy button buys: a light gold outline and "Will buy" under the price, so the button, the preview and
   the tree read as one purchase (UI council rounds 2 and 3: "Buying" in place of the price read as in progress). */
.tree .slot.buying { outline: 2px solid var(--you-light); outline-offset: 1px; }
.tree .node .mark { font-weight: 700; color: var(--you-light); }
/* A part's name, the width of two parts' icons at most, so four parts fit the column at 1516x820. Whetstone, Moss Stone
   and Vampire Fang wrap there, which puts that part's price a line below its neighbours'. */
.tree .node.leaf .nodename { max-width: 76px; }
/* A middle part's name has half the column (every recipe has two parts): every middle part's name keeps one line at
   1516x820 at 14 px (the longest, Moonwoven Shroud, is 148 px), so the prices under them stay level (round 5). */
.tree .node:not(.leaf, .top) .nodename { max-width: 150px; }
.tree .node .nodename {
  max-width: 112px;
  color: var(--text-dim);
  text-align: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.buyline { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s2) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* One line, at least 16 px on screen (UI council round 3: "Buy another Tome of Wisdom · 2,900" wrapped). The cap keeps
   "Buy another · 3,200" inside the column at the smallest HUD scale, where it reads 14 px. Only a parts buy may wrap: it
   names parts the heading does not. */
/* The short whole-item labels ("Buy another · 2,900") fit one line at 1080p and 1516x820. Below about HUD scale 0.6 the
   16 px floor no longer fits on one line, so the label breaks evenly there rather than shrinking (code review,
   round 3). */
.buyline .btn.primary { font-size: clamp(var(--t-m), calc(16px / var(--ui-scale)), 35px); padding: var(--s2) var(--s4); white-space: normal; text-wrap: balance; }
.buyline .btn.primary.wraps { white-space: normal; }
/* The name takes the column's whole width and the price sits under it, so a two-word name breaks between its words, not
   beside the price (Tyler, 2026-10-27: "the item name in the shop's detail panel wraps awkwardly"). */
.detail-name { flex-direction: column; align-items: flex-start; gap: 2px; }
.detail-name h3 { text-wrap: balance; line-height: 1.15; }
.detail-price { align-items: baseline; gap: var(--s3); }
.impact { display: flex; flex-direction: column; gap: 2px; padding-top: var(--s2); border-top: 1px solid var(--line); }
.shopfoot { grid-column: 1 / -1; border-top: 2px solid var(--line); display: flex; align-items: center; gap: var(--s4); padding: 0 var(--s3); }
.shopfoot .gold { font-weight: 700; font-size: var(--t-l); color: var(--you); display: flex; align-items: center; gap: var(--s2); }
/* Under the 1800x1000 design size the 14 px reading floors grow in the shop's own pixels and the recipe's parts ran
   out of the detail column at 1516x820 (both judges, round 4). Tighter gaps and smaller recipe icons there; no
   reading text shrinks. */
@media (max-width: 1799px), (max-height: 999px) {
  .shop .detail { gap: 6px; }
  .shop .impact { padding-top: 6px; }
  .shop .buyline { padding: 6px 0; }
  .shop .tree .slot { width: 40px; height: 40px; }
  /* The leaves at 36 px and the column's foot at 40 px, which still clears its 24 px fade, so the Tome's tree, its
     leaves' prices and "Will buy" fit the column at 1516x820 without scrolling (round 6: they were below the fold). */
  .shop .tree .node.leaf > .slot { width: 36px; height: 36px; }
  .shop .shop-col.detail-col { padding-bottom: 40px; }
  .shop .tree .node.top > .slot { width: 56px; height: 56px; }
  .shop .tree .rtree > .kids,
  .shop .tree .rtree > .kids > .rtree { padding-top: 6px; }
  .shop .tree .rtree > .kids::before,
  .shop .tree .rtree > .kids > .rtree::after { height: 6px; }
}
/* A search result's matched stat, under its name ("+600 mana"): the row grows rather than the name shrinking. */
.tile .stat-match { color: var(--text); }

/* Close, at the shop's top right on every screen, where a panel's close is looked for (Tyler, 2026-11-18: "The close
   button is not in the right place"). The selected item's name and price keep clear of it. */
.shop-close { position: absolute; top: 12px; right: 22px; z-index: 2; }
.shop .detail-col > .detail > .detail-name { padding-right: 104px; }

/* A touch page (shop_phone.rs): no left column. Buy next and every item as icons, then the detail; your items sit in
   the foot. A mouse's instructions ("Right-click...") do not apply. */
html.touch .shop { grid-template-columns: minmax(0, 1fr) 360px; }
html.touch .shop .mouse-tip { display: none; }
html.touch .shop .key { display: none; }
/* A tap leaves a mouse's hover tip open over the shop; the detail column already says what it says. */
html.touch body:has(#shop:not([hidden])) > .tip[role="tooltip"] { display: none !important; }
.phone-browse { display: flex; flex-direction: column; gap: var(--s2); }
.phone-next { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s2); }
.phone-card.rec { display: grid; grid-template-columns: 1fr; width: 176px; gap: var(--s1); padding: var(--s1); }
.phone-card .rec-select { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s2); }
.phone-card .col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.phone-card .tag { font-size: var(--t-xs); color: var(--you-light); }
.phone-card .nm { font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
html.touch .shop .phone-card .rec-buy { min-height: 44px; }
.phone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: var(--s2) var(--s1); }
.phone-browse .tile { width: auto; min-width: 44px; }
.phone-browse .tile .price { line-height: 1.2; }
.phone-browse .tile .nm { display: none; }
/* The stat filters stay at the column's top while the items scroll under them. */
.phone-filters { position: sticky; top: calc(-1 * var(--s3)); z-index: 1; display: flex; gap: var(--s1); overflow-x: auto; scrollbar-width: none; padding: var(--s1) 0; background: var(--steel); border-bottom: 1px solid var(--line); }
.phone-filters .pf { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); min-width: 44px; height: 44px; padding: 0 var(--s2); color: var(--text); background: var(--bg-1); border: 2px solid var(--line); font: 700 var(--t-xs)/1 var(--font-body); }
.phone-filters .pf .ico { width: 22px; height: 22px; }
.phone-filters .pf.on { border-color: var(--you); background: var(--you-soft); color: var(--you-light); }
.shopfoot .foot-line { min-width: 0; }
html.touch .shopfoot .inv6 { grid-template-columns: repeat(6, 44px); gap: var(--s1); justify-content: start; }

/* A phone on its side: the shop is the whole screen, laid out in the phone's own CSS px (zoom 1). The shop's tokens
   shrink to a phone's sizes; --ui-scale, which only sets the reading floors in here (14 px / scale), puts them at
   12 px, a phone menu's size. */
@media (orientation: landscape) and (max-width: 1099.98px) {
  html.touch .shop {
    --ui-scale: 1.167;
    --t-xs: 11px; --t-s: 12px; --t-name: 13px; --t-m: 13px; --t-l: 16px; --t-xl-sm: 18px; --t-xl: 20px;
    --s2: 6px; --s3: 8px; --s4: 10px; --s5: 14px;
    zoom: 1; inset: 0; transform: none; width: auto; height: auto; max-width: none; max-height: none;
    grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: minmax(0, 1fr) 52px;
  }
  html.touch .shop .shop-close { top: 8px; right: 12px; min-height: 44px; min-width: 72px; }
  html.touch .shop .detail-col > .detail > .detail-name { padding-right: 84px; }
  html.touch .shop :is(.buyline .btn.primary, .shopfoot .btn) { min-height: 44px; }
  html.touch .shop .shop-col.browse { padding-bottom: 32px; }
  html.touch .shop .shop-col.detail-col { padding-bottom: 32px; }
  html.touch .shop .shopfoot { gap: var(--s3); padding: 0 var(--s2); }
  html.touch .shop .shopfoot .gold { font-size: var(--t-l); }
  html.touch .shop .tree .slot { width: 36px; height: 36px; }
  html.touch .shop .tree .node.top > .slot { width: 44px; height: 44px; }
  /* The open shop's core alert: over the shop's top edge, clear of Close. */
  html.touch body:has(#shop:not([hidden])) .core-alert { top: 4px; transform: translateX(-50%); }
}
