/* AC237/AC252: one centred overlap for item amounts and enhancement levels.
   Loaded after screen styles so callers cannot restore corner counts. */
.backpack-count,.reward-tile-count,.gemstone-count,.fund-tile-count,
 .mail-reward>b,.task-reward>b,.perk-gem-tile>b,.collection-track-reward>b,
 .gemstone-tile-mini>b,.gemstone-merge-art>div>b,.gear-tile-mini>b,
 .form-chest-choice>b,
 .collection-opening.is-single .collection-opening-card>b{
 position:absolute;top:auto;right:auto;left:50%;bottom:-3px;z-index:3;
 transform:translateX(-50%);margin:0;padding:0;border:0;border-radius:0;
 background:none;box-shadow:none;white-space:nowrap;text-align:center;
 color:var(--cream-50);font:13px/1 Lucky,system-ui;letter-spacing:0;
 -webkit-text-stroke:2.5px var(--vs-ink-text);paint-order:stroke fill;
 text-shadow:none;pointer-events:none;
}
/* Match the existing callers' specificity, including the Compact receipt. */
.backpack-slot .backpack-count,.key-offer-reward .backpack-count,
.form-chest-picker-art .backpack-count,.gear-card .gemstone-count,
.mail-reward b{left:50%;right:auto;top:auto;bottom:-3px;font-size:13px}
.gemstone-count,.gear-card .gemstone-count{font-size:10px}
.key-offer-reward .backpack-count{font-size:11.5px}
.mail-reward b,.task-reward b{left:50%;right:auto;bottom:-3px;font-size:10px}
.tasks-node .task-reward b{font-size:9px}
.fund-tile .fund-tile-count{font-size:12px}
.collection-track-reward>b{font-size:11px}
.gemstone-tile-mini>b{font-size:10px}
.gear-tile-mini>b{font-size:9px}
/* AC562 review (build 126): the reward receipt's ×N ink sits 4px clear of the tile's 3px bottom bevel (was overlapping it at -3px). */
.reward-tile-face .reward-tile-count{font-size:16px;bottom:5px}
@media(max-height:700px){.reward-tile-face .reward-tile-count{font-size:15px}}
.collection-opening.is-single .collection-opening-card{padding-bottom:32px}
.collection-opening.is-single .collection-opening-card>b{font-size:22px;order:initial;bottom:5px}
.gemstone-count.is-ready{background:none;box-shadow:none;color:#b7ff9b}
.gemstone-card,.gear-card{overflow:visible}
.gear-plus-badge{top:auto;bottom:-3px;left:50%;transform:translateX(-50%)}
/* This caller places the pill after its tile; overlap without changing its row. */
.gear-slot-pick .gear-plus-badge{position:relative;left:auto;bottom:auto;
 transform:none;margin-top:-11px;margin-bottom:8px}

/* AC235/AC326: smaller grade glyphs overlap the left frame, with the server palette.
   Inline-size containment leaves the tile's existing height/layout intact. */
.gemstone-card,.gemstone-detail-art,.gemstone-tile-mini,.gemstone-merge-art>div,
.socket-stone,.eq-gem-marker{container-type:inline-size}
.gemstone-grade,
.gemstone-detail-art .gemstone-grade,.gemstone-merge-art .gemstone-grade,
.gemstone-tile-mini .gemstone-grade,.socket-stone .gemstone-grade,
.eq-gem-marker .gemstone-grade{
 position:absolute;left:-7px;bottom:-5px;z-index:2;display:block;
 min-width:0;height:auto;padding:0;border:0;border-radius:0;box-shadow:none;
 font:clamp(8px,28cqw,48px)/1 Lucky,system-ui;font-weight:900;
 letter-spacing:-.04em;color:var(--grade-color);
 background:linear-gradient(var(--cream-200),color-mix(in srgb,var(--grade-color) 75%,white) 24%,
  var(--grade-color) 52%,color-mix(in srgb,var(--grade-color) 70%,black));
 -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
 -webkit-text-stroke:clamp(1px,2.5cqw,2.5px) var(--vs-ink);paint-order:stroke fill;
 filter:drop-shadow(0 2px 1px #17102080);pointer-events:none;
}
.gemstone-card:has(.gemstone-grade[data-grade=SS])>small{translate:0 -12px}
.gemstone-grid .gemstone-card:has(.gemstone-grade[data-grade=SS])>small{translate:0 -8px}
.gemstone-grade[data-grade=SS]{background-image:linear-gradient(var(--card-face),var(--gold-100) 22%,
 var(--grade-color) 45%,color-mix(in srgb,var(--grade-color) 70%,#ed792b) 70%,#fff0b4)}
/* AC266: solid ink keeps B's two counters clear instead of nested dark outlines. */
.gemstone-grade[data-grade=B]{background:none;-webkit-text-fill-color:var(--grade-color)}
.socket-stone .gemstone-grade,.eq-gem-marker .gemstone-grade{
 left:-1px;bottom:-2px;-webkit-text-stroke:1px var(--vs-ink)}

/* AC279: one rounded family for every grade; a failed image retains text above. */
.gemstone-grade>.gemstone-grade-glyph{display:none;position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.gemstone-grade.has-grade-art{
 width:clamp(8px,28cqw,48px);height:clamp(8px,28cqw,48px);
 background:none;-webkit-text-fill-color:transparent;-webkit-text-stroke:0;filter:none;
}
.gemstone-grade.has-grade-art[data-grade=SS]{width:clamp(12px,42cqw,72px)}
.gemstone-grade.has-grade-art>.gemstone-grade-glyph{display:block}

/* AC248: the animated layer uses the visible weapon cutout's alpha.
   Four-pixel content inset matches .eq-slot-icon.has-icon. */
.skin-shine{inset:var(--weapon-shine-inset,4px);border-radius:0;
 -webkit-mask:var(--weapon-mask) center/contain no-repeat;
 mask:var(--weapon-mask) center/contain no-repeat;mask-mode:alpha}
.gemstone-socket>.eq-slot-icon{--weapon-shine-inset:2px}

/* AC338: the canonical item cutouts point upper-right. Shine only the blade
   above its diagonal guard; the existing alpha mask still follows its outline. */
.skin-shine{clip-path:polygon(0 0,100% 0,100% 100%)}
.skin-shine .skin-spark:nth-of-type(2){top:12%;right:16%}
.skin-shine .skin-spark:nth-of-type(3){top:32%;left:54%}
.skin-shine .skin-spark:nth-of-type(4){top:23%;right:28%;bottom:auto}

/* AC344 (build 83 feedback): the diagonal above cut every blade at the tile's
   centre, so the lower blade never shone (10-19% of each blade, Moonleaf too). Each
   canonical cutout (`data-blade`, item-icons-v2 256px coordinates as % of the
   square art box) is clipped along its own guard instead: the sweep reaches the
   whole blade from tip to guard and never the guard, grip or pommel. AC690
   retraces Moonleaf's owner-picked crystal blade; its old moon disc is gone.
   Traced on each cutout's blade-side guard edge; measured by
   backend/tests/blade-shine-audit.mjs (before/after coverage, hilt unchanged). */
.skin-shine[data-blade=wood]{clip-path:polygon(-7.8% 19.9%,36.9% 51.6%,56% 65.2%,107.8% 102%,107.8% -7.8%,-7.8% -7.8%)}
.skin-shine[data-blade=rust]{clip-path:polygon(-7.8% 11.8%,34.3% 52.5%,49.4% 67.1%,91.3% 107.6%,107.8% 107.8%,107.8% -7.8%,-7.8% -7.8%)}
.skin-shine[data-blade=steel]{clip-path:polygon(-7.8% 8.1%,36.1% 51.8%,50.4% 66%,92.4% 107.8%,107.8% 107.8%,107.8% -7.8%,-7.8% -7.8%)}
.skin-shine[data-blade=tin]{clip-path:polygon(-7.8% 9.1%,37.8% 50.9%,53.3% 65.2%,99.1% 107.2%,107.8% 107.8%,107.8% -7.8%,-7.8% -7.8%)}
.skin-shine[data-blade=knight]{clip-path:polygon(30.7% -7.8%,30.7% 42.2%,30.7% 52%,31.8% 52.9%,32.2% 53.7%,33.4% 54.1%,35.7% 55.3%,41.2% 56.4%,41.4% 56.6%,44.3% 56.6%,45.9% 63.3%,47.3% 65.6%,48.6% 67.4%,50.8% 69.1%,62.5% 64.5%,107.8% 46.3%,107.8% -7.8%)}
.skin-shine[data-blade=frost]{clip-path:polygon(-7.8% 13.9%,35.2% 52.1%,54.3% 69.1%,96.8% 106.9%,107.8% 107.8%,107.8% -7.8%,-7.8% -7.8%)}
.skin-shine[data-blade=crystal]{clip-path:polygon(24.8% -7.8%,34% 43.8%,35.5% 52.5%,37.1% 54.1%,38.7% 55%,41% 55.9%,46.1% 55.9%,46.1% 55.5%,47.3% 55.5%,47.3% 60%,48.8% 64.6%,51.2% 68%,54.1% 68%,62.5% 62.5%,107.8% 33%,107.8% -7.8%)}
.skin-shine[data-blade=meteor]{clip-path:polygon(20.6% -7.8%,32.8% 43.8%,34.6% 51.2%,35% 54.7%,35.5% 55.8%,37.5% 56.1%,43% 56.2%,43.6% 55.9%,46.1% 55.7%,46.9% 55.9%,46.9% 59.6%,47.7% 62.5%,49.2% 65.6%,50.8% 67.2%,52.1% 68.2%,60.5% 62.5%,107.8% 30.6%,107.8% -7.8%)}
.skin-shine[data-blade=golden]{clip-path:polygon(12.5% -7.8%,32.8% 43%,35.5% 49.8%,37.5% 50.5%,38% 51.5%,38.5% 52%,40% 52.7%,43% 53.5%,48.8% 51.2%,50% 50.8%,51% 50.8%,51% 58.8%,52.9% 61.3%,54.1% 62.3%,55.1% 62.7%,64.5% 56.6%,107.8% 28.6%,107.8% -7.8%)}
.skin-shine[data-blade=moon]{clip-path:polygon(-7.8% 14.8%,97.7% 107.8%,107.8% 107.8%,107.8% -7.8%,-7.8% -7.8%)}
.skin-shine[data-blade=firmament]{clip-path:polygon(15.9% -7.8%,33.6% 43.8%,35.9% 50.6%,39.3% 53.9%,39.8% 54.3%,42.6% 55.1%,44.3% 54.3%,48.2% 53.1%,48.8% 53.1%,49.2% 53.5%,49.2% 54.1%,48.8% 54.5%,48.8% 56.8%,48.4% 57.2%,48.4% 59.2%,48% 59.6%,48% 60%,48.8% 60.7%,48.8% 61.1%,49.6% 61.9%,49.6% 62.3%,50.8% 63.5%,52% 64.3%,53.1% 64.6%,53.5% 65.2%,62.5% 59.4%,107.8% 30.2%,107.8% -7.8%)}
.skin-shine[data-blade=light]{clip-path:polygon(-7.8% 5.7%,37.7% 49.8%,51.4% 63%,97.4% 107.6%,107.8% 107.8%,107.8% -7.8%,-7.8% -7.8%)}
/* Build 187: the Paw Saber's and Ember Blade's icons (derived from their skins) are cut along the guard's blade side;
   the redrawn Moonblade's outline above is cut the same way, past its curved quillons. */
.skin-shine[data-blade=paw]{clip-path:polygon(-7.8% 15.2%,96.2% 107.8%,107.8% 107.8%,107.8% -7.8%,-7.8% -7.8%)}
.skin-shine[data-blade=ember]{clip-path:polygon(-7.8% 8.0%,105.4% 107.8%,107.8% 107.8%,107.8% -7.8%,-7.8% -7.8%)}
/* Owner 2026-11-21: the Moonleaf Saber was redrawn wider; its icon is derived from the skin like the two above and cut
   along the first guard row (game/art/moonleaf-saber-wide-v1/install.py prints this outline). */
.skin-shine[data-blade=moonleaf]{clip-path:polygon(-7.8% 12.9%,99.8% 107.8%,107.8% 107.8%,107.8% -7.8%,-7.8% -7.8%)}

/* Pack blades: trace the blue/silver blade beside each badge and guard. */
.skin-shine[data-blade=tester]{clip-path:polygon(-7.8% 10%,36.7% 52.3%,40.6% 53.5%,43.8% 53.5%,45.6% 54.7%,45.6% 58.2%,47.8% 60.4%,51.6% 63.7%,107.8% 107.8%,107.8% -7.8%,-7.8% -7.8%)}
.skin-shine[data-blade=founder]{clip-path:polygon(24% -7.8%,35.9% 49.6%,36.7% 53.1%,39.5% 54.1%,44.5% 54.1%,45.7% 55.5%,46.9% 60.2%,47.3% 62.1%,53.1% 62.1%,107.8% 31%,107.8% -7.8%)}

/* AC339 visual style P1 (docs/VISUAL_STYLE.md, docs/workorders/STYLE_PASS_B82.md).
   Rarity tile anatomy: ink outline, light bevel rim, saturated rarity panel with a
   top gloss band and a glow behind the art, unblurred drop. Each tile derives its
   colours from its own rarity variables, so RARITY_COLORS.md stays the palette.
   Empty tiles keep their dashed empty face: rarity is never availability. */
.gemstone-grid.gemstone-list .gemstone-card,.gemstone-merge-art>div,.gemstone-tile-mini,.gemstone-receipt-grid .gemstone-card,.gem-reveal .gemstone-card,.gear-grid .gear-card,.gemstone-detail-art:not(.is-empty){--vs-tone:var(--gem-color);--vs-tone-accent:var(--gem-accent)}
:is(.eq-scene-slots,.gear-slot-pick,.gemstone-socket,.gear-selected-art,.gear-detail-art,.gear-tile-mini,.gear-merge-path,.gear-reveal,.gear-pool-strip,.gear-pool-list,.owned-skins,.weapon-card-art,.exchange-card-art,.exchange-detail-art,.skin,.rank-loadout) .eq-slot-icon:not(.is-empty){--vs-tone:var(--tier);--vs-tone-accent:var(--tier-accent)}
.gemstone-grid.gemstone-list .gemstone-card,.gemstone-merge-art>div,.gemstone-tile-mini,.gemstone-receipt-grid .gemstone-card,.gem-reveal .gemstone-card,.gear-grid .gear-card,.gemstone-detail-art:not(.is-empty),
:is(.eq-scene-slots,.gear-slot-pick,.gemstone-socket,.gear-selected-art,.gear-detail-art,.gear-tile-mini,.gear-merge-path,.gear-reveal,.gear-pool-strip,.gear-pool-list,.owned-skins,.weapon-card-art,.exchange-card-art,.exchange-detail-art,.skin,.rank-loadout) .eq-slot-icon:not(.is-empty){
 --vs-panel-top:color-mix(in srgb,var(--vs-tone) 78%,#fff);
 --vs-panel-bottom:color-mix(in srgb,var(--vs-tone-accent) 70%,#2b1d3c);
 --vs-rim-a:color-mix(in srgb,var(--vs-tone) 28%,#fff);
 --vs-rim-b:color-mix(in srgb,var(--vs-tone-accent) 55%,#fff);
 --vs-seam:color-mix(in srgb,var(--vs-tone-accent) 50%,var(--vs-ink));
 border:var(--vs-outline) solid var(--vs-ink);
 background:
  radial-gradient(62% 50% at 50% 42%,#ffffff52,#fff0 72%) content-box,
  linear-gradient(var(--vs-panel-top),var(--vs-panel-bottom)) content-box,
  linear-gradient(135deg,var(--vs-rim-a),var(--vs-rim-b)) padding-box;
 box-shadow:0 var(--vs-drop-y) 0 var(--vs-ink);
}
/* Slot tiles and the stone detail tile: the gloss band painted in the background;
   tiles up to 64px use a 2px drop. */
.gemstone-detail-art:not(.is-empty),
:is(.eq-scene-slots,.gear-slot-pick,.gemstone-socket,.gear-selected-art,.gear-detail-art,.gear-tile-mini,.gear-merge-path,.gear-reveal,.gear-pool-strip,.gear-pool-list,.owned-skins,.weapon-card-art,.exchange-card-art,.exchange-detail-art,.skin,.rank-loadout) .eq-slot-icon:not(.is-empty){
 background:
  linear-gradient(160deg,#ffffff4d 0 18%,#fff0 19%) content-box,
  radial-gradient(62% 50% at 50% 45%,#ffffff47,#fff0 72%) content-box,
  linear-gradient(var(--vs-panel-top),var(--vs-panel-bottom)) content-box,
  linear-gradient(135deg,var(--vs-rim-a),var(--vs-rim-b)) padding-box;
 box-shadow:0 2px 0 var(--vs-ink);
}
:is(.eq-scene-slots,.gear-slot-pick,.gemstone-socket,.gear-selected-art,.gear-detail-art,.gear-tile-mini,.gear-merge-path,.gear-reveal,.gear-pool-strip,.gear-pool-list,.owned-skins,.weapon-card-art,.exchange-card-art,.exchange-detail-art,.skin,.rank-loadout) .eq-slot-icon:not(.is-empty) img{filter:drop-shadow(0 2px 0 color-mix(in srgb,var(--vs-ink) 40%,transparent))}
/* Lv5 weapon looks keep their approved gold border and glow (AC248), with the drop. */
:is(.eq-scene-slots,.gemstone-socket,.gear-selected-art,.gear-detail-art) .eq-slot-icon.is-lv5{border-color:#f0b43c;box-shadow:0 2px 0 var(--vs-ink),0 0 0 1px var(--honey-200),0 0 10px 2px #ffc64a99}
.gemstone-detail-art:not(.is-empty),.gear-detail-art .eq-slot-icon{padding:var(--vs-rim);box-shadow:0 var(--vs-drop-y) 0 var(--vs-ink)}
.gemstone-detail-art:not(.is-empty)>img{filter:drop-shadow(0 2px 0 color-mix(in srgb,var(--vs-ink) 45.1%,transparent))}
/* Cards: the rim is the padding; a seam and the gloss band sit on the panel edge.
   Both grids share the gear card's 12px radius (AC278); slot and detail tiles keep theirs. */
.gemstone-grid.gemstone-list .gemstone-card,.gemstone-merge-art>div,.gemstone-tile-mini,.gemstone-receipt-grid .gemstone-card,.gem-reveal .gemstone-card,.gear-grid .gear-card{padding:var(--vs-rim);gap:0;justify-content:flex-start;color:#fff;border-radius:var(--vs-radius)}
.gemstone-grid.gemstone-list .gemstone-card:before,.gemstone-merge-art>div:before,.gemstone-tile-mini:before,.gemstone-receipt-grid .gemstone-card:before,.gem-reveal .gemstone-card:before,.gear-grid .gear-card:before{
 content:'';position:absolute;inset:var(--vs-rim);z-index:1;pointer-events:none;
 border-radius:calc(var(--vs-radius) - var(--vs-outline) - var(--vs-rim));
 box-shadow:inset 0 0 0 1px var(--vs-seam),inset 0 2px 0 #0003;
 background:linear-gradient(160deg,#ffffff4d 0 18%,#fff0 19%);
}
.gear-grid .gear-card.is-equipped{box-shadow:0 var(--vs-drop-y) 0 var(--vs-ink)}
/* The art fills the upper panel; outlined captions stay legible on any rarity. */
.gemstone-grid.gemstone-list .gemstone-card>.gemstone-art{position:relative;z-index:1;flex:none;width:90%;height:calc(100% - 22px);min-height:0;max-height:none;margin-top:2px;transform:scale(1.08);filter:drop-shadow(0 2px 0 color-mix(in srgb,var(--vs-ink) 45.1%,transparent))}
.gear-grid .gear-card>.gear-tile{position:relative;z-index:1;width:auto;height:calc(100% - 19px);aspect-ratio:1;margin:0;padding:0;border:0;background:none;box-shadow:none}
.gear-grid .gear-card>.gear-tile img{filter:drop-shadow(0 2px 0 color-mix(in srgb,var(--vs-ink) 45.1%,transparent))}
.gemstone-grid.gemstone-list .gemstone-card>small,.gear-grid .gear-card>small{
 position:relative;z-index:3;max-width:100%;margin-top:auto;margin-bottom:9px;overflow:visible;text-overflow:clip;
 font:11px/1 Lucky,system-ui;color:#fff;-webkit-text-stroke:2.5px var(--vs-ink-text);paint-order:stroke fill;
}
.gear-grid .gear-card>small{margin-bottom:8px}
/* Quantities keep the AC237 centred bottom-edge overlap with the reference lettering. */
.gemstone-grid.gemstone-list .gemstone-card .gemstone-count{bottom:-5px;font-size:13px;-webkit-text-stroke:3px var(--vs-ink-text)}
.gear-grid .gear-card .gemstone-count{bottom:-5px;font-size:12px;-webkit-text-stroke:3px var(--vs-ink-text)}
.gear-grid .gear-card .gear-worn-mark,.gear-grid .gear-card .gear-better-mark{z-index:2;left:5px;top:4px;font-size:14px;-webkit-text-stroke:3px var(--vs-ink);paint-order:stroke fill}
/* Gemstones gear row: AC176 corner anchors stay; the marker gets the same frame. */
.gemstone-socket .socket-stone{box-sizing:border-box;width:25px;height:25px;aspect-ratio:1;display:flex;align-items:center;justify-content:center;
 border:var(--vs-outline) solid var(--vs-ink);border-radius:7px;padding:1px;
 background:linear-gradient(color-mix(in srgb,var(--gem-color) 70%,#fff),color-mix(in srgb,var(--gem-accent) 65%,#2b1d3c)) content-box,
  linear-gradient(135deg,#fff,color-mix(in srgb,var(--gem-color) 45%,#fff)) padding-box;box-shadow:0 2px 0 var(--vs-ink)}
.gemstone-socket .socket-stone:not(:has(.gemstone-art)){background:var(--ink-plum-2);color:var(--row-face)}
/* AC359: the old 21px grid track exceeded its 19px face and shifted down/right. */
.gemstone-socket .socket-stone .gemstone-art{width:20px;height:20px;flex:none;max-width:none}

/* Padlocks (AC197): the painted padlock, centred on the tile's bottom edge. */
.gear-pool-lock{left:50%;right:auto;bottom:-6px;width:13px;height:15px;margin-left:-6.5px;border:0;border-radius:0;
 background:url('/art/ui-lock-v1/padlock.png') center/contain no-repeat;filter:drop-shadow(0 1px 0 var(--vs-ink))}
#modal .avatar-lock{top:auto;bottom:-7px;width:22px;height:25px;margin:0 0 0 -11px;border-radius:0;box-shadow:none;
 background:url('/art/ui-lock-v1/padlock.png') center/contain no-repeat;filter:drop-shadow(0 2px 0 var(--vs-ink))}
#modal .avatar-lock::before,#modal .avatar-lock::after{content:none}

/* Socketed gems under Equipment gear tiles (AC339, supersedes AC195 below the tile
   only): one tan well per socket, tucked under the "+N" pill; the face stays clean. */
.eq-view .eq-scene-slots:has(.eq-socket-row){row-gap:26px}
.eq-scene-slots .eq-socket-row{position:absolute;left:50%;top:calc(100% - 1px);z-index:1;display:flex;gap:3px;transform:translateX(-50%);
 /* AC358: 19px square visible well; retain its vertical clearance and stone size. */
 padding:2.5px;border-radius:0 0 4px 4px;background:linear-gradient(#cdb488,var(--row-inset));
 box-shadow:inset 0 2px 1px color-mix(in srgb,var(--vs-ink) 18%,transparent),0 1px 0 color-mix(in srgb,var(--vs-ink) 25.1%,transparent);pointer-events:none}
.eq-scene-slots .eq-socket{display:flex;align-items:center;justify-content:center;width:14px;height:14px}
.eq-scene-slots .eq-socket img{width:17px;height:17px;max-width:none;flex:none;object-fit:contain;filter:drop-shadow(0 1px 0 color-mix(in srgb,var(--vs-ink) 60%,transparent))}
/* Visual polish r2 (findings 72/87/130): the hollow empty socket is a recessed square-cut setting (the gemstones-v2
   cut, AB09) filling the stone's 14px place, not a 9px rotated '◇' glyph. */
.eq-scene-slots .eq-socket.is-empty{width:12px;height:12px;margin:1px;border:1.5px solid #6f5639;border-radius:3.5px;background:radial-gradient(circle at 50% 35%,#c8ad80,#9c7f55);box-shadow:inset 0 1.5px 1px color-mix(in srgb,var(--vs-ink) 45%,transparent),0 .5px 0 var(--cream-50)}
.eq-scene-slots .eq-socket.is-inactive img{filter:grayscale(.75) brightness(.9) drop-shadow(0 1px 0 color-mix(in srgb,var(--vs-ink) 60%,transparent))}
/* The pill paints over the top of the well, including its 1px hard drop.
   Reserve that painted band, then centre the stone in the remaining tan space. */
.eq-scene-slots button:has(.gear-plus-badge) .eq-socket-row{padding-top:7.5px}
/* Short phones (≤ 760px, the existing short Equipment tier): the stage only fits the
   wells with 54px tiles in 64px rows, so the bottom well clears the HP/ATK/DEF pills
   and the top row clears the form tile (Compact 375×667, Mini with browser chrome). */
@media(max-height:760px){
 .eq-view .eq-scene-slots:has(.eq-socket-row){grid-template-rows:repeat(3,minmax(64px,auto));row-gap:17px}
 .eq-view .eq-scene-slots:has(.eq-socket-row) .eq-slot-icon{width:54px;height:54px}
 /* Owner 2026-11-21: the well stays square around the 54px tile (it was 70x64, so its sides read wider than on tall phones). */
 .eq-view .eq-scene-slots:has(.eq-socket-row)>button{width:64px;justify-self:center}
 .eq-view .eq-scene-slots:has(.eq-socket-row) button.gear-slot .gear-tile{width:40px;height:40px}
 .eq-scene-slots .eq-socket-row{padding:1.5px;border-bottom-left-radius:3px;border-bottom-right-radius:3px}
 .eq-scene-slots button:has(.gear-plus-badge) .eq-socket-row{padding-top:6.5px}
 .eq-scene-slots .eq-socket{width:12px;height:12px}
 .eq-scene-slots .eq-socket img{width:15px;height:15px}
 .eq-scene-slots .eq-socket.is-empty{width:11px;height:11px;margin:.5px}
}

/* AC339 P1 follow-through: the same rarity panel on preview, receipt, reveal,
   picker, Exchange, catalog and Rankings tiles. Reveal motion belongs to its
   existing transform/animation rules and is deliberately untouched here. */
.gemstone-merge-art>div,.gemstone-tile-mini,.gemstone-receipt-grid .gemstone-card,.gem-reveal .gemstone-card{position:relative;padding:var(--vs-rim);border-radius:var(--vs-radius)}
.gemstone-merge-art>div>small,.gemstone-receipt-grid .gemstone-card>small,.gem-reveal .gemstone-card>small{position:relative;z-index:3;color:#fff;font:11px/1.3 Lucky,system-ui;-webkit-text-stroke:2.5px var(--vs-ink-text);paint-order:stroke fill}
/* Receipt captions wrap only between words; a long word is fitted separately. */
.gem-reveal .gemstone-card>small,.gemstone-receipt-grid .gemstone-card>small,.gear-results-grid .gear-reveal>small,.gear-results-grid .gear-reveal>b{flex:none;min-height:0;max-width:calc(100% - 4px);padding:1.5px 2px;margin:0;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:manual;text-align:center}
/* AC362: the rim is always 3px, independent of the caption reserve. Flex gives
   art only the space left by complete, non-shrinking Lucky lines and stroke. */
.gem-reveal .gemstone-card,.gem-results-grid.single .gear-draw-card{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:var(--vs-rim);gap:2px}
.gem-reveal .gemstone-card>.gemstone-art,.gem-reveal .gear-draw-card>.gear-tile{flex:1 1 0;min-height:0}
.gear-results-grid .gear-reveal>b,.gear-results-grid .gear-reveal>small{color:#fff;font:10px/1.3 Lucky,system-ui;-webkit-text-stroke:2.5px var(--vs-ink-text);paint-order:stroke fill}
.gear-results-grid.single .gear-reveal>b,.gear-results-grid.single .gear-reveal>small{font-size:13px}
.gemstone-merge-art>div>img,.gemstone-tile-mini>img,.gemstone-receipt-grid .gemstone-card>.gemstone-art,.gem-reveal .gemstone-card>.gemstone-art{position:relative;z-index:1;filter:drop-shadow(0 2px 0 color-mix(in srgb,var(--vs-ink) 45.1%,transparent))}
.gemstone-merge-art>div>img{width:90%;height:84px}
.gemstone-receipt-grid.single .gemstone-card>.gemstone-art{flex:1 1 0;min-height:0;height:auto;max-height:none}
.gemstone-merge-art>div>b,.gemstone-receipt-grid .gemstone-count{bottom:-5px;font-size:13px;-webkit-text-stroke:3px var(--vs-ink-text)}
/* AC575 (b127): the merge receipt's ×N sits inside the card, its ink 4px clear of the 3px bottom rim (never across the border), at 15px. */
.gemstone-receipt-grid .gemstone-card>.gemstone-count{bottom:5px;font-size:15px}
.gem-reveal .gemstone-card>.gemstone-art{width:90%;height:auto;max-height:none}
/* Gear draw faces carry both the rarity and slot labels in their existing rows. */
.gem-reveal .gear-draw-card>.gear-tile{border:0;background:none;box-shadow:none;padding:0;width:90%;height:auto;aspect-ratio:auto;margin:0}
.gem-results-grid.single .gear-draw-card{gap:0}
.gem-results-grid.single .gear-draw-card>.gear-tile{width:90%}
.gem-reveal .gear-draw-card>small:first-of-type{color:#fff}
/* Multi-result rows stay adjacent so art keeps at least its pre-AC362 size.
   Single draws and single merge receipts retain their full-ink layout. */
.gem-results-grid:not(.single) .gear-draw-card,.gear-results-grid:not(.single) .gear-reveal{gap:0}
.gem-results-grid:not(.single) .gear-draw-card>small,
.gear-results-grid:not(.single) .gear-reveal>b,.gear-results-grid:not(.single) .gear-reveal>small{box-sizing:border-box;width:100%;max-width:100%;padding:0 1.25px;line-height:1.2}
.gear-results-grid:not(.single) .gear-reveal>b,.gear-results-grid:not(.single) .gear-reveal>small{white-space:nowrap}
/* The injected CJK faces need one extra ink row for their 2.5px outline. */
.gem-results-grid:not(.single) .gear-draw-card>small:is(:lang(ja),:lang(ko),:lang(zh)),
.gear-results-grid:not(.single) .gear-reveal>:is(b,small):is(:lang(ja),:lang(ko),:lang(zh)){line-height:1.3}
/* AC388 supersedes only Gear caption spacing; complete AC362 ink/rim stays. */
.gem-results-grid.single .gear-draw-card>small,.gear-results-grid.single .gear-reveal>b,.gear-results-grid.single .gear-reveal>small{padding-block:0;line-height:1}
/* The 3px tile drop keeps 4px of clear space above the first caption row; the rows themselves stay adjacent. */
.gear-results-grid.single .gear-reveal>b{margin-top:2px}
.gear-results-grid.single .gear-reveal>small{margin-top:-2px}
/* Reserve the bottom stroke/descenders without reopening the inter-line gap. */
.gear-results-grid.single .gear-reveal>small,.gem-results-grid.single .gear-draw-card>small:last-of-type{margin-bottom:1px}
/* Latin multi-draw spacing releases more height than this complete-ink reserve. */
.gem-results-grid:not(.single) .gear-draw-card>small:last-of-type:not(:lang(pl),:lang(ja),:lang(ko),:lang(zh)){margin-bottom:1px}
.gem-results-grid:not(.single) .gear-draw-card>small,.gear-results-grid:not(.single) .gear-reveal>b,.gear-results-grid:not(.single) .gear-reveal>small{line-height:1.1;line-height:round(nearest,1.1em,1px)}
/* Fitted English words need one less line row; Polish accents keep their reserve. */
.gem-results-grid:not(.single) .gear-draw-card>small[style*="font-size"]:not(:lang(pl),:lang(ja),:lang(ko),:lang(zh)){line-height:1}
.gem-results-grid.single .gear-draw-card>small:lang(pl),.gear-results-grid.single .gear-reveal>:is(b,small):lang(pl),.gem-results-grid:not(.single) .gear-draw-card>small:lang(pl),.gear-results-grid:not(.single) .gear-reveal>:is(b,small):lang(pl){line-height:1.2}
.gem-results-grid.single .gear-draw-card>small:lang(pl),.gear-results-grid.single .gear-reveal>:is(b,small):lang(pl){line-height:1.25}
.gem-reveal .gear-draw-card>small:is(:lang(ja),:lang(ko),:lang(zh)),.gear-results-grid .gear-reveal>:is(b,small):is(:lang(ja),:lang(ko),:lang(zh)){line-height:1.3}
:is(.owned-skins,.weapon-card-art,.exchange-card-art,.exchange-detail-art,.skin,.rank-loadout) .eq-slot-icon.is-lv5{border-color:#f0b43c;box-shadow:0 2px 0 var(--vs-ink),0 0 0 1px var(--honey-200),0 0 10px 2px #ffc64a99}
.fund-tile-lock{filter:drop-shadow(0 2px 0 var(--vs-ink))}

/* AC339 P2: outlined light rows on a brown well. Existing row dimensions,
   virtual-list spacing, targets and state semantics remain authoritative. */
#online .star-chapter-row,.star-track-row,.training-step,.training-step.current,.training-step.done,
.mail-row,.mail-row.is-read,.rank-row,.task-row,.task-row.is-claimable,.task-row.is-claimed{
 border:var(--vs-outline) solid var(--vs-ink);border-radius:8px;
 background:var(--row-face);box-shadow:0 var(--vs-drop-y) 0 var(--vs-ink);color:var(--text-on-cream);
}
.task-row.is-locked{opacity:1}
.star-chapter-list,.star-track-rows,.training-scroll,.rank-list,.inbox-list,.tasks-list{background:#5a4030}
/* Inset icon panels stay within the existing columns. Highlighted values sit on
   the row face or use the light green on their existing dark progress bar. */
.task-icon,.mail-envelope,.training-step>img,.rank-row>img{border-radius:6px;background:var(--row-inset);box-shadow:inset 0 1px 0 color-mix(in srgb,var(--vs-ink) 25.1%,transparent)}
.task-icon>img,.task-icon>svg{width:36px;height:36px}
.mail-envelope img{width:40px;height:40px}
.mail-envelope:before{content:none}
.training-step{grid-template-columns:30px 36px minmax(0,1fr) auto}
.training-step>img{width:36px;height:36px;padding:2px}
.rank-row{grid-template-columns:28px 36px minmax(0,1fr) auto}
.rank-row>img{width:36px;height:36px;padding:2px}
.mail-head b,.mail-row.is-read .mail-head b,.task-copy b,.task-row.is-claimed .task-copy b,
.training-step span>b,.training-step span small,.mail-head small,.star-track-state{color:var(--text-on-cream)}
.rank-person small{opacity:1}
.star-reward-item>b,.training-step>strong,.rank-row>strong{color:var(--vs-good);font-weight:800}
.task-bar small{color:#b7ff9b;font-weight:800}
.rank-row.is-you{border-color:var(--vs-ink);background:#4e4036;color:var(--cream-250)}
.rank-row.is-you>strong{color:#b7ff9b}
/* AC339 follow-up: Training, Tasks and Inbox keep their existing state faces.
   Star Quest has one face, as in the base. The base claimed Task title misses
   4.5:1 on #e4dccb, so its fill is darkened without changing opacity or size. */
.training-step.current{
 background:linear-gradient(110deg,#ffe2a0,var(--gold-50));
 box-shadow:inset 0 1px var(--cream-350),0 var(--vs-drop-y) 0 var(--vs-ink);
}
.task-row.is-claimable{
 background:linear-gradient(var(--cream-250),#ffe9b0);
 box-shadow:0 var(--vs-drop-y) 0 var(--vs-ink),0 0 0 2px #ffe08a88;
}
.training-step.done{background:#f1ecd4}
.training-step.done>img{filter:saturate(.3)}
.task-row.is-claimed{background:#e4dccb}
.task-row.is-claimed .task-copy b{color:#695e4e}
.task-row.is-locked{background:#e0ddd6;opacity:1}
.task-row.is-locked .task-copy b{color:#695e4e}
.task-row.is-locked .task-icon>img,.task-row.is-locked .task-icon>svg{filter:grayscale(1)}
.mail-row.is-read{background:#ece2cc}
.mail-row.is-read .mail-head b{color:#5f513f}
/* P2.4: existing section labels on tan bars. Visual polish r2 (findings 72): the 10px ink four-point star read as a
   stray '+' bullet beside painted art, so the bar carries the label alone. */
.gear-fact>small,.gemstone-comparison-stone>small,.gemstone-help h2,.gear-pool-list h2{
 padding:3px 6px;border-radius:6px;background:#dcc5a0;color:var(--text-on-cream);
}
/* P2.5/6: separate the unchanged header layer; currency boxes may overflow only
   vertically. Horizontal icon columns and plus clearance keep TOP_BAR_COLLECTOR. */
#online #profile{box-shadow:0 2px 0 var(--vs-ink),0 5px 0 color-mix(in srgb,var(--vs-ink) 25.1%,transparent)}
/* The shallow bar ends before the identity plaque and the 44px header target.
   Its shadow belongs to that painted edge, not to the target box bottom. */
#online:not(.story-mode) #profile{--vs-header-bar-height:36px;box-shadow:none}
#online:not(.story-mode) #profile::after{content:'';position:absolute;z-index:-1;pointer-events:none;left:0;right:0;top:var(--vs-header-bar-height);height:5px;background:linear-gradient(var(--vs-ink) 0 2px,transparent 2px);box-shadow:inset 0 -3px 0 color-mix(in srgb,var(--vs-ink) 25.1%,transparent)}
/* AC342 owner revision, 2026-10-09: an 18px dark face on every phone.
   Borders sit outside that face; targets remain 44px. Opaque art including its ink rim
   is 1.15–1.35x the face and straddles its own capsule's left edge. */
#online #profile{--wallet-face:18px;--wallet-gem-gap:12.5px;--wallet-coin-gap:12.25px}
#online #profile :is(.energy-pill,.gem-pill,.coin-pill){overflow:visible;position:relative;column-gap:0}
#online #profile .energy-pill{grid-template-columns:max-content;min-width:44px;padding:0 7px 0 13px;margin-left:5.5px;justify-content:start}
#online #profile .energy-pill::before{top:12px;bottom:12px;right:var(--wallet-target-spare,0px)}
#online #profile :is(.gem-pill,.coin-pill){gap:0;height:20px;margin-top:12px;padding-inline:6px;border-radius:999px}
/* AC367: balanced value padding; a short Energy face ends inside its 44px target. */
#online #profile .energy-pill .energy-value{min-width:0;text-align:left}
/* AC369 supersedes the AC355 short-name floor: 128px on Home when room allows; the identity can shrink for long balances. */
#online #profile .profile-card{width:min(max(var(--profile-natural-width,0px),var(--profile-minimum-width,0px)),var(--profile-available-width,100%));min-width:min(max(min(calc(89.25px + var(--header-gutter)),var(--profile-natural-width,0px)),var(--profile-minimum-width,0px)),var(--profile-available-width,100%));max-width:var(--profile-available-width,100%);padding-right:4.25px}
#online #profile .profile-tools{margin-left:0}
#online #profile .gem-pill{margin-left:calc(var(--wallet-gem-gap) - 3px);padding-left:14.5px}
#online #profile .coin-pill{margin-left:calc(var(--wallet-coin-gap) - 3px);padding-left:13.75px}
#online #profile .energy-pill .energy-value,#online #profile :is(.gem-pill,.coin-pill)>b{font-size:13px;line-height:1;font-weight:800}
#online #profile :is(.energy-pill,.gem-pill,.coin-pill) .wallet-icon{position:absolute;left:0;top:50%;display:block;flex:none;width:0px;height:var(--wallet-face);background:none;border:0;padding:0;border-radius:0;box-shadow:none;transform:translateY(-50%)}
#online #profile .wallet-icon img{position:absolute;left:0;right:auto;top:50%;width:24px;height:24px;max-width:none;margin:0;aspect-ratio:1;object-fit:contain;transform:translate(-50%,-50%);transform-origin:center}
#online #profile .energy-pill .wallet-icon img{left:1.5px}
#online #profile .gem-pill .wallet-icon img{width:24px;height:24px;aspect-ratio:auto;object-fit:contain;filter:drop-shadow(0 -2.25px 0 var(--vs-ink)) drop-shadow(0 2.25px 0 var(--vs-ink))}
#online #profile .wallet-icon .wallet-plus{position:absolute;z-index:2;left:-.5px;right:auto;bottom:-2px;display:grid;place-items:center;width:12px;height:12px;min-width:0;padding:0;border:1px solid var(--vs-ink);border-radius:4px;background:linear-gradient(#b9ed63,#73bb30);box-shadow:0 1px var(--vs-ink);color:transparent;font:900 13px/1 Arial,sans-serif;pointer-events:auto}
/* AC403: geometric ink is centred in the green face independently of font metrics;
   6px arms leave whole-pixel 2px margins in the 10px face, so no engine rounds one side. */
#online #profile .wallet-icon .wallet-plus::after{content:"";position:absolute;inset:0;background:linear-gradient(var(--vs-ink),var(--vs-ink)) center/6px 2px no-repeat,linear-gradient(var(--vs-ink),var(--vs-ink)) center/2px 6px no-repeat;pointer-events:none}
/* P2.7: static gloss on the painted faces, never on their stationary hit box.
   One rounded rectangle composites the 70% white glint once per pixel.
   Tiers, lower lips and all label/price-face tokens remain unchanged. */
#online .secondary:before,#modal .secondary:before,#error .secondary:before,#tabs .bottom-tab:before,.collection-tabs button:before{
 background:linear-gradient(#ffffff1f 0 45%,#fff0 45%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='3'%3E%3Crect width='8' height='3' rx='1.5' fill='%23ffffffb3'/%3E%3C/svg%3E") 8px 5px/8px 3px no-repeat,linear-gradient(var(--small-top),var(--small-bottom) 90%);
}
#online button.primary,#modal button.primary{
 background:linear-gradient(#ffffff1f 0 45%,#fff0 45%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='3'%3E%3Crect width='8' height='3' rx='1.5' fill='%23ffffffb3'/%3E%3C/svg%3E") 24px 10px/8px 3px no-repeat,linear-gradient(var(--bt-top),var(--bt-face) 65%,var(--bt-low));background-clip:padding-box;
}
/* The highlight belongs to the rounded face; a separate pseudo-element crossed tall pills' borders. */
#online button.primary::before,#modal button.primary::before{content:none}
/* AC637 supersedes P2.8: gemstone headings use the shared AC536 rules, without a plate. */
#modal .gear-detail-title h1{color:#fff;-webkit-text-stroke:3px var(--vs-ink-text);paint-order:stroke fill;filter:drop-shadow(0 1px var(--vs-ink-text))}
.gear-detail-hero{border-color:var(--vs-ink);background:linear-gradient(color-mix(in srgb,var(--gem-color) 78%,#fff),color-mix(in srgb,var(--gem-accent) 70%,#2b1d3c))}
.gear-detail-title small{color:#fff;-webkit-text-stroke:2px var(--vs-ink-text);paint-order:stroke fill;font-weight:800}
/* P2.9: shared neutral item tiles keep their cream face and empty-state face. */
.backpack-slot:not(.is-empty){border:var(--vs-outline) solid var(--vs-ink);box-shadow:inset 0 2px var(--cream-50),inset 0 -3px #a77b43,0 var(--vs-drop-y) 0 var(--vs-ink)}
/* AC477 (build 109): the shared claimable item tile, opt-in per caller (the Moonleaf draw
   track first). Only a reward the server says is reached and unclaimed wears it, never a
   paid offer. It takes the Perks fund tiles' claim language: a gold face and rim inside the
   ink outline, a warm halo that breathes, a gentle 2px bob, and the attention "!" from the
   badge table. Reduced motion keeps the halo still and lit. The bob uses `translate`, so the
   shared press transform still applies. */
.backpack-slot.is-claimable:not(.is-empty){border-color:#fff3a8;background:radial-gradient(circle at 50% 36%,var(--card-face),#ffd77d 56%,#f0a23a);box-shadow:0 0 0 2px var(--vs-ink),inset 0 2px var(--card-face),inset 0 -3px #c97a2a,0 var(--vs-drop-y) 0 2px var(--vs-ink);animation:claim-ready-bob 1.6s ease-in-out infinite}
.backpack-slot.is-claimable:not(.is-empty)::after{content:'';position:absolute;inset:-3px;border-radius:14px;box-shadow:0 0 11px 4px #ffd34d;opacity:.45;pointer-events:none;animation:claim-ready-glow 1.6s ease-in-out infinite alternate}
@keyframes claim-ready-bob{0%,100%{translate:0 0}50%{translate:0 -2px}}
@keyframes claim-ready-glow{from{opacity:.45}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.backpack-slot.is-claimable:not(.is-empty),.backpack-slot.is-claimable:not(.is-empty)::after{animation:none}.backpack-slot.is-claimable:not(.is-empty)::after{opacity:.9}}


/* The milestone icon gets its inset panel without moving its numeric threshold
   off the row face or changing AC337's content-sized row. */
.star-track-at .chapter-star-art{width:36px;height:36px;padding:3px;border-radius:6px;background:var(--row-inset);box-shadow:inset 0 1px 0 color-mix(in srgb,var(--vs-ink) 25.1%,transparent)}
.star-track-at{gap:3px}
.star-track-row{grid-template-columns:64px minmax(0,1fr) 88px}

/* Merge quantities use the same AC237 bottom anchor as the grid and receipt. */
.gemstone-tile-mini>b,.gear-tile-mini>b{left:50%;right:auto;top:auto;bottom:-5px;transform:translateX(-50%);padding:0;background:none;border:0;color:#fff;font:12px/1 Lucky,system-ui;-webkit-text-stroke:3px var(--vs-ink-text);paint-order:stroke fill}
.gear-reveal>b,.gear-reveal>small{color:#fff;font-family:Lucky,system-ui;-webkit-text-stroke:2.5px var(--vs-ink-text);paint-order:stroke fill}
.training-number{color:var(--text-on-cream);background:var(--row-inset)}
/* Completion is not a gain: retain the base green badge/Trained cue and mute
   spent cost. The fills are darker than the base to meet body contrast. */
.training-step.done .training-number{color:var(--cream-50);background:#426331}
.training-step.done span small{color:#3e652e;font-weight:750}
.training-step.done>strong{color:#695e4e;font-weight:400}
/* The legacy Looks catalog gets the same contained catalog scroll as Exchange. */
#online:has(#content>.catalog>.skin){height:100dvh;min-height:0;max-height:100dvh;margin:0 auto;display:flex;flex-direction:column;border:0;border-radius:0;overflow:hidden}
#online:has(#content>.catalog>.skin) #profile{flex:none}
#content:has(.catalog>.skin){flex:1;display:flex;flex-direction:column;min-height:0}
.catalog:has(>.skin){flex:1;min-height:0;overflow-y:auto;padding-bottom:6px}

/* Section-bar padding replaces the odds heading margin on short help sheets. */
@media(max-height:730px){.gemstone-help .gemstone-odds h2{margin-bottom:0}#modal .gem-chest-help .gemstone-odds{padding:6px 10px}}

/* The unread marker stays red; its white punctuation uses the shared ink stroke. */
.mail-row .mail-alert{-webkit-text-stroke:1px var(--vs-ink-text);paint-order:stroke fill}

.gemstone-tile-mini{box-shadow:0 2px 0 var(--vs-ink)}
:is(.weapon-card-art,.skin,.exchange-detail-art) .eq-slot-icon:not(.is-empty),.gear-results-grid.single .gear-reveal .eq-slot-icon{box-shadow:0 var(--vs-drop-y) 0 var(--vs-ink)}
:is(.weapon-card-art,.skin,.exchange-detail-art) .eq-slot-icon.is-lv5{box-shadow:0 var(--vs-drop-y) 0 var(--vs-ink),0 0 0 1px var(--honey-200),0 0 10px 2px #ffc64a99}

/* AC369: the existing rename action retains a complete 44px target. */
#online #profile .profile-name-button{min-width:44px}

/* AC645: one shared inner clip for animated art over a stationary tile ring.
   Independent side insets preserve the complete border even at fractional grid widths. */
.ui-tile-content-clip{inset:var(--tile-top,2px) var(--tile-right,2px) var(--tile-bottom,2px) var(--tile-left,2px)!important;border-radius:calc(var(--tile-radius,10px) - max(var(--tile-top,2px),var(--tile-left,2px)))!important;overflow:hidden;isolation:isolate}

/* AC663: every full gemstone tile centres its art, independently of its rarity /
   stack label. The absolute pill straddles the same bottom edge as item amounts. */
:is(.gemstone-grid.gemstone-list,.gemstone-receipt-grid,.gem-reveal) .gemstone-card>.gemstone-art,
.gemstone-detail-art>.gemstone-art{position:absolute;left:50%;top:50%;width:90%;height:90%;min-height:0;max-height:none;margin:0;transform:translate(-50%,-50%);object-fit:contain;flex:none}
:is(.gemstone-grid.gemstone-list,.gemstone-receipt-grid,.gem-reveal) .gemstone-card>.gemstone-rarity,
.gemstone-detail-art>.gemstone-rarity{position:absolute;left:50%;top:auto;bottom:-7px;z-index:3;display:flex;align-items:center;justify-content:center;gap:5px;width:max-content;max-width:calc(100% + 4px);min-height:0;margin:0;padding:2px 5px;border:1.5px solid var(--vs-ink);border-radius:7px;background:color-mix(in srgb,var(--gem-accent) 65%,#2b1d3c);box-shadow:0 1px var(--vs-ink);transform:translateX(-50%);color:#fff;font:11px/1 Lucky,system-ui;-webkit-text-stroke:2px var(--vs-ink-text);paint-order:stroke fill;white-space:nowrap;overflow:visible;pointer-events:none}
.gemstone-card>.gemstone-rarity>.gemstone-count{position:static;transform:none;inset:auto;margin:0;padding:0;font:inherit;font-size:13px;white-space:nowrap}
/* Visual polish (layout): a pill whose word and count cannot share one line at the 10px floor
   (fitGemstoneRarityPills) stacks the count above the word instead of shrinking it further. */
.gemstone-rarity.is-stacked{flex-direction:column;gap:1px;padding:1px 4px}
.gemstone-rarity.is-stacked>.gemstone-count{order:-1}
.gemstone-detail-art{position:relative}
/* Socket markers use the same border pill at their icon tier. Reserve enough
   inset for the longest rarity word to stay inside its equipment tile. */
.gemstone-socket .socket-stone{right:14px}
.gemstone-socket .socket-stone>.gemstone-art{position:absolute;left:50%;top:50%;margin:0;transform:translate(-50%,-50%)}
.gemstone-socket .socket-stone>.gemstone-rarity{position:absolute;left:50%;bottom:-5px;z-index:3;width:max-content;margin:0;padding:1px 3px;border:1px solid var(--vs-ink);border-radius:4px;transform:translateX(-50%);background:color-mix(in srgb,var(--gem-accent) 65%,#2b1d3c);color:#fff;font:7px/1 Lucky,system-ui;-webkit-text-stroke:1.5px var(--vs-ink-text);paint-order:stroke fill;white-space:nowrap}
.gemstone-merge-art>div>.gemstone-art{position:absolute;left:50%;top:50%;width:90%;height:90%;margin:0;transform:translate(-50%,-50%);object-fit:contain}
.gemstone-merge-art>div>.gemstone-rarity{position:absolute;left:50%;bottom:-7px;z-index:3;display:flex;align-items:center;gap:5px;width:max-content;max-width:100%;margin:0;padding:2px 5px;border:1.5px solid var(--vs-ink);border-radius:7px;transform:translateX(-50%);background:color-mix(in srgb,var(--gem-accent) 65%,#2b1d3c);color:#fff;font:10px/1 Lucky,system-ui;-webkit-text-stroke:2px var(--vs-ink-text);paint-order:stroke fill;white-space:nowrap}
.gemstone-merge-art>div>.gemstone-rarity>.gemstone-count{position:static;transform:none;inset:auto;margin:0;padding:0;font:inherit;font-size:13px}
/* Absolute contents leave the merge preview's square tile to define its size. */
.gemstone-merge-art>div{aspect-ratio:1}

.gemstone-receipt-grid .gemstone-card>.gemstone-rarity>.gemstone-count{font-size:15px}

/* Narrow merge receipts keep their established 15px quantity above the rarity
   within one border pill, leaving the gem's centre clear. */
.gemstone-receipt-grid:not(.single) .gemstone-card>.gemstone-rarity{flex-direction:column;gap:1px;padding:1px 2px}
.gemstone-receipt-grid:not(.single) .gemstone-card>.gemstone-rarity>.gemstone-count{order:-1}
/* Visual polish r2 (finding 258): merge receipts keep the stone clear. The count is a corner chip, the
   rarity pill sits below the tile edge, and the highest class made carries a soft rarity glow. */
.gemstone-receipt.is-merged .gemstone-receipt-grid{row-gap:16px;padding-top:6px}
.gemstone-receipt.is-merged .gemstone-receipt-grid .gemstone-card>.gemstone-rarity{bottom:-10px;flex-direction:row;padding:1px 4px}
.gemstone-receipt-grid .gemstone-card>.gem-merge-count{position:absolute;top:-7px;right:-6px;z-index:4;min-width:22px;box-sizing:border-box;padding:1px 5px;border:1.5px solid var(--vs-ink);border-radius:9px;background:#2b2235;color:#fff;font:13px/1.25 Lucky,system-ui;text-align:center;-webkit-text-stroke:0;pointer-events:none}
.gemstone-receipt-grid .gemstone-card[data-merge-top]{box-shadow:0 var(--vs-drop-y) 0 var(--vs-ink),0 0 0 2px color-mix(in srgb,var(--gem-accent) 70%,#fff),0 0 18px 5px color-mix(in srgb,var(--gem-color) 65%,transparent)}

/* b161: a common inset for the single gear and gemstone reveal artwork. */
.gem-results-grid.single .gem-reveal :is(.gemstone-card>.gemstone-art,.gear-draw-card>.gear-tile){width:70%}
.gem-results-grid.single .gem-reveal .gemstone-card>.gemstone-art{height:70%}

/* AC897 (owner 2026-11-17, build 217; round 2 "lepiej pod katem spacingu"): a compact, clearer Equipment → Gemstones.
   Stones say what they do in Equipment's stat language (the HP / ATK / DEF pill icons with the bonus), the gear row draws
   each item as on Equipment (rarity tile, tan socket well, the chip the item gets), the collection is four compact
   columns like Gear and sorts by rarity or by stat, and the Standard stone sits on a cool silver panel. Presentation
   only; docs/GEMSTONES.md → AC897.
   Spacing scale (round 2), one set of values for the whole screen:
   - page margin: #content's existing side padding (12px; 10px at ≤730px of height); every block starts at it;
   - --gem-gap 8px: between the blocks of the screen, between the controls of a row, between collection tiles in both
     directions and as the collection well's inner padding;
   - --gem-pad 8px (6px at ≤730px): inside item cards, above the icon, between the socket and the chip, below the chip;
   - tiles: 4px inside their 3px rim, 3px from a stone to its chip;
   - detail sheet: 12px between groups (8px at ≤730px), 8px inside a column. */
:is(#gemstone-eq-body,.gemstone-detail){--gem-gap:8px;--gem-pad:8px;--gem-icon:40px;--gem-well-in:16px;--gem-well-pad:3px;--gem-well-art:20px;--gem-chip-h:16px;--gem-tile-h:78px;--gem-art:44px;--gem-tile-pad:4px;--gem-chip-gap:3px}
#online.gemstones-view #content:has(>#gemstone-eq-body){row-gap:var(--gem-gap,8px)}
#gemstone-eq-body{gap:var(--gem-gap)}
.gem-stat-chip{display:inline-flex;align-items:center;justify-content:center;gap:2px;white-space:nowrap;line-height:1}
.gem-stat-chip>img{flex:none;width:15px;height:15px;object-fit:contain;filter:drop-shadow(0 1px 0 color-mix(in srgb,var(--vs-ink) 55%,transparent))}
.gem-stat-chip>b{font:13px/1 Lucky,system-ui;color:#fff;-webkit-text-stroke:2.5px var(--vs-ink-text);paint-order:stroke fill}
.gem-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* Heading: title, the sort pair, (?). */
.gemstone-heading>div:first-child{flex:1 1 auto;min-width:0}
/* The pair's 2px ink edge is a spread shadow, so each face keeps its full 44px target inside the 44px heading row. */
.gemstone-heading>.gem-sort{display:flex;flex:none;gap:0;min-width:0;height:44px;margin:2px;border-radius:11px;overflow:hidden;background:linear-gradient(#ead9be,#b99572);box-shadow:0 0 0 2px #514148,0 5px 0 var(--panel-night)}
.gem-sort-face{position:relative;display:grid;place-items:center;flex:none;width:52px;height:44px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:inset 0 2px var(--cream-200);color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.gem-sort-face+.gem-sort-face{border-left:2px solid #514148}
.gem-sort-face[aria-pressed=true]{background:linear-gradient(var(--active-top),var(--active-bottom));box-shadow:inset 0 2px var(--active-shine),inset 0 -3px var(--active-lip)}
.gem-sort-art{display:flex;align-items:center;justify-content:center;transition:scale var(--tap-t,.12s ease-out)}
.gem-sort-face:active>.gem-sort-art,.gem-sort-face.is-pressed>.gem-sort-art{scale:.92}
.gem-sort-art>img{flex:none;object-fit:contain;filter:drop-shadow(0 1px 0 color-mix(in srgb,var(--vs-ink) 55%,transparent))}
.gem-sort-art.is-rarity>img{width:20px;height:20px}
.gem-sort-art.is-rarity>img+img{margin-left:-9px}
.gem-sort-art.is-stat>img{width:15px;height:15px}
.gem-sort-art.is-stat>img+img{margin-left:-1px}
@media(prefers-reduced-motion:reduce){.gem-sort-art{transition:none}}

/* Gear row: each item card is icon, socket well, chip, evenly spaced; the selected (honey) card keeps the same layout. */
.gemstone-sockets{gap:var(--gem-gap);padding:0}
.gemstone-sockets .gemstone-socket{justify-content:flex-start;gap:0;min-height:0;padding:var(--gem-pad) 3px}
.gemstone-sockets .gemstone-socket>.eq-slot-icon{position:relative;z-index:1;flex:none;width:var(--gem-icon);height:var(--gem-icon)}
.gemstone-socket>.eq-slot-icon[data-tier=great]{--tier:var(--rarity-great)}
.gemstone-socket>.eq-slot-icon[data-tier=rare]{--tier:var(--rarity-rare)}
.gemstone-socket>.eq-slot-icon[data-tier=epic]{--tier:var(--rarity-epic)}
.gemstone-socket>.eq-slot-icon[data-tier=legendary]{--tier:var(--rarity-legendary);--tier-accent:var(--rarity-legendary-accent)}
.gemstone-socket>.eq-slot-icon[data-tier=mythic]{--tier:var(--rarity-mythic)}
.gemstone-socket>.eq-slot-icon[data-tier=transcendent]{--tier:var(--rarity-transcendent);--tier-accent:var(--rarity-transcendent-accent)}
/* The Equipment socket well (VISUAL_STYLE → Socketed gems): a tan plate hanging from the tile's bottom edge, its stone
   centred, a little larger than on Equipment because the stones are this screen's subject. */
.gemstone-socket>.socket-stone.gem-socket-well{position:relative;inset:auto;z-index:0;box-sizing:content-box;flex:none;display:flex;align-items:center;justify-content:center;
 width:var(--gem-well-in);height:var(--gem-well-in);margin:0;padding:var(--gem-well-pad);border:0;border-radius:0 0 5px 5px;background:linear-gradient(#cdb488,var(--row-inset));
 box-shadow:inset 0 2px 1px color-mix(in srgb,var(--vs-ink) 18%,transparent),0 1px 0 color-mix(in srgb,var(--vs-ink) 25.1%,transparent)}
.gemstone-socket>.socket-stone.gem-socket-well>.gemstone-art{position:static;width:var(--gem-well-art);height:var(--gem-well-art);max-width:none;flex:none;margin:0;transform:none;object-fit:contain;filter:drop-shadow(0 1px 0 color-mix(in srgb,var(--vs-ink) 60%,transparent))}
.gemstone-socket>.socket-stone.gem-socket-well.is-inactive>.gemstone-art{filter:grayscale(.75) brightness(.9) drop-shadow(0 1px 0 color-mix(in srgb,var(--vs-ink) 60%,transparent))}
.gemstone-socket>.socket-stone.gem-socket-well.is-empty:before{content:'';width:calc(var(--gem-well-in) - 2px);height:calc(var(--gem-well-in) - 2px);box-sizing:border-box;border:1.5px solid #6f5639;border-radius:4px;background:radial-gradient(circle at 50% 35%,#c8ad80,#9c7f55);box-shadow:inset 0 1.5px 1px color-mix(in srgb,var(--vs-ink) 45%,transparent),0 .5px 0 var(--cream-50)}
.gemstone-socket>.gem-socket-chip{flex:none;height:var(--gem-chip-h);margin-top:var(--gem-pad)}
.gemstone-socket>.gem-socket-chip>b{font-size:14px}
.gemstone-socket>.gem-socket-chip>img{width:16px;height:16px}
.gemstone-socket>.gem-socket-chip.is-empty>b{font-size:17px}
.gemstone-socket:not(.is-active)>.gem-socket-chip:not(.is-empty){filter:grayscale(.85)}
.gemstone-socket:disabled>.gem-socket-chip{visibility:hidden}

/* Summary row: Equipment's stat pills with the stones' total and Merge all, one height (the 32px compact face), one gap. */
.gemstone-collection .gemstone-active-bonuses.gemstone-summary{display:flex;align-items:center;justify-content:stretch;gap:var(--gem-gap);min-height:44px;padding:0;border:0;border-radius:0;background:none}
.gemstone-summary>.gemstone-totals{display:flex;flex:1 1 0;min-width:0;margin:0;gap:var(--gem-gap)}
.gemstone-summary>.gemstone-totals>div{flex:1 1 auto;box-sizing:border-box;height:32px;gap:3px;padding:0 6px;min-width:0;border-radius:16px}
.gemstone-summary>.gemstone-totals img{width:19px;height:21px}
.gemstone-summary>.gemstone-totals b{font:17px/1 Lucky,system-ui;white-space:nowrap}
#online .gemstone-summary>.gemstone-merge-all.button-compact{flex:none;width:auto;min-width:96px;margin:0;padding:4px 12px;min-height:44px}

/* Collection: four compact columns, row gap = column gap = well padding. In a tile the stone and its chip are one centred
   group (equal air above and below, so every chip of a row sits on one baseline); the count is inside the top-right
   corner, where Gear tiles keep their marks. */
#online .gemstone-grid.gemstone-list.is-compact{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:auto;align-content:start;gap:var(--gem-gap);margin:0;padding:var(--gem-gap)}
#online .gemstone-grid.gemstone-list.is-compact>:is(.gem-grid-card,.grid-ghost){box-sizing:border-box;height:var(--gem-tile-h);min-height:0}
#online .gemstone-grid.gemstone-list.is-compact>.gemstone-card.gem-grid-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--gem-chip-gap);padding:calc(var(--vs-rim) + var(--gem-tile-pad))}
#online .gemstone-grid.gemstone-list.is-compact>.gemstone-card.gem-grid-card>.gemstone-art{position:relative;inset:auto;z-index:1;flex:none;width:var(--gem-art);height:var(--gem-art);max-height:none;min-height:0;margin:0;transform:none}
#online .gemstone-grid.gemstone-list.is-compact>.gemstone-card.gem-grid-card>.gem-tile-stat{position:relative;z-index:3;flex:none;height:15px}
#online .gemstone-grid.gemstone-list.is-compact>.gemstone-card.gem-grid-card>.gem-tile-count{position:absolute;inset:auto;top:calc(var(--vs-rim) + 3px);right:calc(var(--vs-rim) + 4px);z-index:4;margin:0;padding:0;transform:none;background:none;border:0;box-shadow:none;font:12px/1 Lucky,system-ui;color:#fff;-webkit-text-stroke:3px var(--vs-ink-text);paint-order:stroke fill}
#online .gemstone-grid.gemstone-list.is-compact>.gemstone-card.gem-grid-card>.gem-tile-count.is-ready{color:#b7ff9b}
/* Sort by stat: each stat group opens a new row under its Equipment stat icon and a hairline. */
#online .gemstone-grid.gemstone-list.is-compact>.gem-group-head{grid-column:1/-1;display:flex;align-items:center;gap:var(--gem-gap);height:18px;padding:0 2px}
#online .gemstone-grid.gemstone-list.is-compact>.gem-group-head>img{flex:none;width:18px;height:18px;object-fit:contain;filter:drop-shadow(0 1px 0 color-mix(in srgb,var(--vs-ink) 55%,transparent))}
#online .gemstone-grid.gemstone-list.is-compact>.gem-group-head:after{content:'';flex:1;height:2px;border-radius:1px;background:#5b4e6380}

/* Variant C (review only, GEMSTONE_COLLECTION_LAYOUT.mode='matrix'): 3 stats × 7 rarities. */
#online .gemstone-matrix{display:flex;flex-direction:column;gap:var(--gem-gap);flex:none;padding:var(--gem-gap)}
.gem-matrix-row{display:flex;flex-direction:column;gap:4px}
.gem-matrix-head{display:flex;align-items:center;gap:var(--gem-gap);height:18px;padding:0 2px}
.gem-matrix-head>img{flex:none;width:18px;height:18px;object-fit:contain}
.gem-matrix-head:after{content:'';flex:1;height:2px;border-radius:1px;background:#5b4e6380}
.gem-matrix-cells{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.gem-matrix-cell{position:relative;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;height:62px;min-width:0;margin:0;padding:2px;border-radius:9px;color:#fff}
button.gem-matrix-cell{--vs-tone:var(--gem-tone,var(--gem-color));--vs-tone-accent:var(--gem-tone-accent,var(--gem-accent));border:var(--vs-outline) solid var(--vs-ink);
 background:linear-gradient(160deg,#ffffff4d 0 18%,#fff0 19%) content-box,linear-gradient(color-mix(in srgb,var(--vs-tone) 78%,#fff),color-mix(in srgb,var(--vs-tone-accent) 70%,#2b1d3c)) content-box,linear-gradient(135deg,color-mix(in srgb,var(--vs-tone) 28%,#fff),color-mix(in srgb,var(--vs-tone-accent) 55%,#fff)) padding-box;
 box-shadow:0 2px 0 var(--vs-ink)}
.gem-matrix-cell>.gemstone-art{flex:none;width:32px;height:32px;object-fit:contain;filter:drop-shadow(0 2px 0 color-mix(in srgb,var(--vs-ink) 45%,transparent))}
.gem-matrix-cell>b{font:11px/1 Lucky,system-ui;white-space:nowrap}
.gem-matrix-bonus{-webkit-text-stroke:2.5px var(--vs-ink-text);paint-order:stroke fill}
.gem-matrix-count{position:absolute;top:-6px;right:-5px;z-index:2;min-width:18px;box-sizing:border-box;padding:1px 4px;border:1.5px solid var(--vs-ink);border-radius:8px;background:#2b2235;color:#fff;font:11px/1.2 Lucky,system-ui;text-align:center}
.gem-matrix-count.is-ready{color:#b7ff9b}
.gem-matrix-cell.is-missing{border:1.5px dashed color-mix(in srgb,var(--gem-color) 55%,#5b4e63);background:color-mix(in srgb,var(--gem-color) 12%,#2a2431);color:color-mix(in srgb,var(--gem-color) 55%,#8a7f92)}
.gem-matrix-cell.is-held{outline:3px solid var(--active-bottom);outline-offset:1px}
.gem-matrix-get{display:flex;justify-content:center}
#online .gem-matrix-get>.secondary{width:80%;margin:0;min-height:var(--tier-full-h);font-size:var(--tier-full-fs)}

@media(max-height:730px){
 :is(#gemstone-eq-body,.gemstone-detail){--gem-pad:6px;--gem-icon:34px;--gem-well-in:14px;--gem-well-pad:2.5px;--gem-well-art:18px;--gem-chip-h:15px;--gem-tile-h:70px;--gem-art:38px}
 .gem-matrix-cell{height:56px}
 .gem-matrix-cell>.gemstone-art{width:28px;height:28px}
}

/* Detail: every column reads label, stone, its stat, an optional note, its action; the arrow between the stones says
   "this goes in there"; one scale (12px between groups, 8px inside a column). */
#modal .gemstone-detail{--cmp-art-h:100px;--cmp-label-h:26px;--cmp-gap:8px;gap:12px}
#modal .gemstone-comparison{grid-template-columns:minmax(0,136px) 28px minmax(0,136px);justify-content:center;column-gap:16px;align-items:start}
/* The selected stone is the slotted one: no arrow is drawn, and the Selected column keeps its own track (it used to
   fall into the 28px arrow track, which squeezed Merge to 44px and its label out of the button). */
#modal .gemstone-comparison.is-same>.gemstone-comparison-stone:last-child{grid-column:3}

#modal .gemstone-comparison-stone{gap:var(--cmp-gap)}
#modal .gemstone-comparison-stone>small{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;height:var(--cmp-label-h);min-height:0;padding-block:0}
#modal .gemstone-comparison-stone>small.gem-detail-item{gap:4px;padding-left:4px}
#modal .gemstone-comparison-stone>small.gem-detail-item>.eq-slot-icon{flex:none;display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
#modal .gem-detail-item>.eq-slot-icon img{width:100%;height:100%;object-fit:contain}
#modal .gem-detail-item>.eq-slot-icon .skin-level-pips{display:none}
#modal .gemstone-comparison-stone>.gemstone-detail-art{flex:none;margin-bottom:4px}
#modal .gemstone-comparison .gemstone-detail-bonus{display:flex;align-items:center;justify-content:center;height:30px;min-height:0;line-height:1}
/* The empty slot's "No stone" stays one line in its column. */
#modal .gemstone-comparison [data-socket-id=""] .gemstone-detail-bonus{font-size:16px;white-space:nowrap}
.gemstone-detail-bonus>.gem-stat-chip.is-detail{gap:5px}
.gemstone-detail-bonus>.gem-stat-chip.is-detail>img{width:26px;height:26px}
.gemstone-detail-bonus>.gem-stat-chip.is-detail>b{font:27px/1.1 Lucky,system-ui;color:#65472c;-webkit-text-stroke:0}
#modal .gem-cmp-note{display:none}
#modal .gemstone-comparison.has-note .gem-cmp-note{display:flex;align-items:center;justify-content:center;height:24px}
#modal .gem-cmp-note>.gemstone-status-chip{margin:0;padding:2px 9px 2px 5px;font-size:12px;border-width:1.5px;box-shadow:none}
#modal .gem-cmp-note>.gemstone-status-chip>.ui-icon{width:15px;height:15px}
#modal .gem-cmp-arrow{align-self:start;justify-self:center;width:28px;height:28px;margin-top:calc(var(--cmp-label-h) + var(--cmp-gap) + var(--cmp-art-h) / 2 - 14px)}
#modal .gemstone-detail>.gem-detail-free{margin:0}
#modal .gemstone-detail .gem-reroll-row{display:flex;justify-content:center;width:100%;margin:0}
#modal .gemstone-comparison .gemstone-comparison-stone>:is(.gemstone-tile-action,.gemstone-tile-action-space){margin:0}
#modal .gemstone-detail .gem-reroll-row .gem-reroll-open.button-compact{width:auto;min-height:44px;padding:4px 16px;gap:8px;font-size:16px}
/* The same full 44px face as Remove / Replace above it (visual polish r2), so the sheet has one secondary size. */
#modal .gemstone-detail .gem-reroll-row .gem-reroll-open.button-compact:before{inset:0}
#modal .gemstone-detail .gem-reroll-open.button-compact>.button-label+.gemstone-price{padding:2px 6px;font-size:13px}
#modal .gemstone-detail .gem-reroll-open.button-compact .reroll-scroll-art{width:18px;height:18px}
@media(max-height:730px){#modal .gemstone-detail{--cmp-art-h:76px;gap:8px}}

/* Standard: the silver panel tones from gemstoneFrame() (presentation only, gemstone tiles only). */
.gemstone-grid.gemstone-list .gemstone-card,.gemstone-merge-art>div,.gemstone-tile-mini,.gemstone-receipt-grid .gemstone-card,.gem-reveal .gemstone-card,.gemstone-detail-art:not(.is-empty){--vs-tone:var(--gem-tone,var(--gem-color));--vs-tone-accent:var(--gem-tone-accent,var(--gem-accent))}
