/* Supply (Gage 10-28, js/supply.js): one compact card per offer, a price button on each, the details in a sheet. */
.so { display: grid; gap: 8px; padding-bottom: 8px; }
.so-sec { display: grid; gap: 8px; }
.so-sec > .kit-h { margin: 10px 3px 0; }
.so-sec > .kit-h small { margin-left: auto; font: 400 12px var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }

.so-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin: 3px; padding: 8px 8px 8px 8px; background: var(--panel);
  box-shadow: 0 -3px 0 0 var(--line), 0 3px 0 0 var(--line), -3px 0 0 0 var(--line), 3px 0 0 0 var(--line); }
.so-main { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; min-height: 56px; margin: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; }
.so-art { display: grid; place-items: center; width: 56px; height: 56px; }
.so-art .art, .so-art img, .so-art svg, .so-art canvas, .so-art .wi { width: 56px; height: 56px; object-fit: contain; }
.so-art canvas { image-rendering: auto; }
.so-text { display: grid; gap: 2px; min-width: 0; }
.so-text b { font: 400 21px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #fff; display: flex; align-items: center; gap: 6px; }
.so-text b .ea-mark { width: 20px; height: 20px; flex: none; }
.so-badge { display: block; font: 400 12px/1.1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.so-badge.so-best, .tag.so-best { color: #1a1305; background: var(--gold); padding: 1px 6px; width: fit-content; }
.so-pitch { display: block; font-size: 12.5px; line-height: 1.25; color: #d8d2c6; }
.so-note { display: block; font-size: 11.5px; line-height: 1.2; color: var(--muted); }
.so-price { align-self: center; min-width: 88px; min-height: 48px; margin: 3px; padding: 0 10px; }
.so-price small { font: 400 13px var(--display); opacity: .85; }
.so-price del { opacity: .55; font-size: 15px; }
.so-status { background: var(--panel-2); color: #e6dfd0; }
.so-status[disabled] { opacity: .6; }
.so-price[disabled] { opacity: .55; }

/* the kits: red, the first thing a new player sees */
.so-kit { background: linear-gradient(115deg, #2a0c0e, var(--panel) 70%); box-shadow: 0 -3px 0 0 var(--red), 0 3px 0 0 var(--red), -3px 0 0 0 var(--red), 3px 0 0 0 var(--red); }
.so-kit .so-badge { color: #ff8f84; }
/* Field Marshal: the gold membership card */
.so-marshal { background: linear-gradient(135deg, #2b2207, #120e05 62%, #2b2207); box-shadow: 0 -3px 0 0 #f2c14e, 0 3px 0 0 #f2c14e, -3px 0 0 0 #f2c14e, 3px 0 0 0 #f2c14e; }
.so-marshal .so-text b { color: #f2c14e; text-shadow: 2px 2px 0 #000; font-size: 24px; letter-spacing: .08em; }
.so-marshal .so-pitch { color: #e8d9a8; }
.so-marshal .so-badge { color: #fff; }
.so-marshal.on .so-text b::after { content: '★'; }
.so-marshal .so-art .wi { color: #f2c14e; }
.so-pass { background: linear-gradient(115deg, #1b1a12, var(--panel) 70%); }
.so-pass .so-badge { color: #f2c14e; }
.so-pass.so-owned, .so-owned { opacity: .96; }
.collection-card { background: linear-gradient(135deg, #2a2215, var(--panel) 70%); box-shadow: 0 -3px 0 0 var(--gold), 0 3px 0 0 var(--gold), -3px 0 0 0 var(--gold), 3px 0 0 0 var(--gold); }
.so-card.collection-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
/* The collection card outside Supply (the "Not enough" sheet's hero) titles in the display face like Supply's own card (it fell back to
   the bold system face; UI consistency 11-04). */
.collection-card h3 { display: flex; align-items: center; gap: 6px; font: 400 27px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #fff; }
/* Legacy is cosmetic: a gold display case, scoped to this Supply card. */
.so-legacy { position:relative; isolation:isolate; overflow:hidden; background:linear-gradient(135deg,#2c2414,#080a0d 65%) padding-box,linear-gradient(135deg,#f7de91,#73521b,#f7de91) border-box; border:2px solid transparent; box-shadow:inset 0 0 0 3px #080a0d; }
.so-legacy::before { content:""; position:absolute; inset:6px; border:1px solid #bf934c; clip-path:polygon(0 0,12% 0,12% 2%,2% 2%,2% 18%,0 18%,0 0,100% 0,100% 18%,98% 18%,98% 2%,88% 2%,88% 0,100% 0,100% 100%,88% 100%,88% 98%,98% 98%,98% 82%,100% 82%,100% 100%,0 100%,0 82%,2% 82%,2% 98%,12% 98%,12% 100%,0 100%); pointer-events:none; }
.so-legacy::after { content:""; position:absolute; inset:-50%; background:linear-gradient(110deg,transparent 42%,#fbd98b18 50%,transparent 58%); transform:translateX(-70%); animation:legacy-shine 9s ease-in-out infinite; pointer-events:none; z-index:-1; }
@keyframes legacy-shine { 0%,65% { transform:translateX(-70%); } 100% { transform:translateX(70%); } }
.so-legacy .so-badge,.so-legacy .so-text b { color:#f4d387; }
.so-legacy .so-note { color:#c8b991; }
.so-legacy .so-main { grid-template-columns:minmax(0,1fr); }
.so-legacy .so-art { width:100%; height:auto; }
/* the pack's four vehicles, two by two: the S18 and the XB-70 Valkyrie, then the Maus and Conquest (Gage 11-16) */
.so-legacy-hero { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; gap:4px; }
.so-legacy .so-art .so-legacy-hero canvas { aspect-ratio:1.65; }
/* the pack's cover (Gage 11-03): landscape key art across the top of the card and the sheet, in a gold frame with a gold plate */
.so-legacy-cover,.lg-cover { position:relative; display:block; width:100%; aspect-ratio:2.15; overflow:hidden; background:#0b0c10; border:1px solid #b18a45; box-shadow:0 0 0 1px #080a0d,0 6px 18px #0008; }
.so-legacy-cover { margin:0 0 8px; }
.so-legacy-cover img,.lg-cover img { display:block; width:100%; height:100%; object-fit:cover; object-position:50% 46%; }
.so-legacy-cover::after,.lg-cover::after { content:""; position:absolute; inset:4px; border:1px solid #e2bd6e; box-shadow:inset 0 0 18px #000a; pointer-events:none; }
.so-legacy-cover small,.lg-cover small { position:absolute; left:50%; bottom:9px; transform:translateX(-50%); padding:3px 10px 2px calc(10px + .22em); font:12px var(--display); letter-spacing:.22em; text-transform:uppercase; white-space:nowrap; color:#2a1c06; background:linear-gradient(180deg,#ffe9a8,#d9a648 55%,#f6d488); border:1px solid #7a5a1c; box-shadow:0 2px 10px #0009; }
.lg-cover { aspect-ratio:3; margin:0 -42px 8px 0; width:calc(100% + 42px); }
@media(max-width:350px) { .so-legacy-cover small,.lg-cover small { font-size:10px; letter-spacing:.16em; } }
.so-legacy-hero>span { min-width:0; text-align:center; }
.so-legacy-hero small { display:block; padding:0 0 7px; font:13px var(--display); color:#d7c49d; text-transform:uppercase; }
.so-legacy .so-art canvas { width:100%; height:auto; aspect-ratio:1.1; min-width:0; }
.so-legacy-rewards { grid-column:1/-1; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; padding:8px 12px 12px; }
.so-legacy-rewards>div { min-width:0; padding:6px 2px; text-align:center; border:1px solid #b18a454d; background:#080a0d99; }
.so-legacy-rewards canvas,.so-legacy-rewards .art { display:block; width:100%; max-width:80px; height:60px; margin:auto; }
.so-legacy-rewards small { display:block; font-size:11px; color:#edd8a5; }
.so-legacy-rewards p { grid-column:1/-1; text-align:center; color:#c8b991; font-size:11px; margin:4px 0 0; }
.so-premium { padding:12px; border:1px solid #9d7c3e; background:linear-gradient(#251f13,#101113); display:grid; gap:14px; }
.so-premium>h3 { color:var(--gold); margin:0; text-transform:uppercase; letter-spacing:2px; }
.so-footer { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; text-align:center; }
#so-coins,#so-gems { scroll-margin-top:16px; }
@media(prefers-reduced-motion:reduce) { .so-legacy::after { animation:none; display:none; } }
.so-cv { width: 56px; height: 56px; display: block; }
.so-chest { box-shadow: 0 -3px 0 0 var(--gold), 0 3px 0 0 var(--gold), -3px 0 0 0 var(--gold), 3px 0 0 0 var(--gold); }

/* the daily deal keeps its own card; it sits in the stack like the others */
.so-deal .deal { margin: 3px; }

/* gems: the largest pack is the anchor */
.so-gem-anchor { background: linear-gradient(135deg, #07272b, var(--panel) 70%); box-shadow: 0 -3px 0 0 var(--cyan), 0 3px 0 0 var(--cyan), -3px 0 0 0 var(--cyan), 3px 0 0 0 var(--cyan); padding: 12px 8px; }
.so-gem-anchor .so-main { grid-template-columns: 72px minmax(0, 1fr); }
.so-gem-anchor .so-art, .so-gem-anchor .so-art .art, .so-gem-anchor .so-art img { width: 72px; height: 72px; }
.so-gem-anchor .so-text b { font-size: 30px; color: var(--cyan); }
.so-gem-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
/* data-n: how many packs sit under the anchor (only packs Apple lists show; four if the held $49.99 pack goes on sale) */
.so-gem-row[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } .so-gem-row[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.so-gem-row[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
@media (max-width: 400px) { .so-gem-row[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.so-gem { position: relative; display: grid; justify-items: center; gap: 2px; margin: 3px; padding: 14px 4px 6px; background: var(--panel); text-align: center; min-width: 0;
  box-shadow: 0 -3px 0 0 var(--line), 0 3px 0 0 var(--line), -3px 0 0 0 var(--line), 3px 0 0 0 var(--line); }
.so-gem .art { width: 44px; height: 44px; }
.so-gem b { font: 400 24px/1 var(--display); color: var(--cyan); }
.so-gem small { min-height: 28px; color: var(--muted); font-size: 11px; line-height: 1.2; }
.so-gem .btn { width: calc(100% - 6px); min-height: 40px; font-size: 18px; margin: 3px; padding: 0 4px; }
.so-gem .tag { position: absolute; top: 2px; right: 2px; font-size: 10px; }

/* the sheet */
.offer-sheet { display: grid; gap: 10px; text-align: center; }
.offer-sheet .os-hero { display: grid; place-items: center; min-height: 96px; }
.offer-sheet .os-hero .art, .offer-sheet .os-hero img, .offer-sheet .os-hero svg { width: 96px; height: 96px; object-fit: contain; }
.os-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.os-cv { width: 100%; height: 96px; display: block; background: #0d0d0e; }
.os-tag { font: 400 14px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.os-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; text-align: left; }
.os-list li { padding: 7px 10px; background: #1a1918; font-size: 14px; color: #e8e1d3; }
.os-list li small { color: var(--muted); font-size: 12px; }
.sheet-box .os-worth { color: var(--gold); font: 400 17px var(--display); letter-spacing: .04em; text-transform: uppercase; }
/* warm gunmetal and a brass label like the other sheets (it was slate with a cyan title; cyan marks gems only). UI consistency 11-04 */
.os-odds { text-align: left; padding: 8px 10px; background: #171310; box-shadow: inset 0 0 0 2px #4a3d2b; }
.os-odds > b { display: block; font: 400 16px var(--display); letter-spacing: .06em; text-transform: uppercase; color: #e6c783; margin-bottom: 4px; }
.sheet-box .os-fine { font-size: 12px; line-height: 1.4; color: var(--muted); }
.offer-sheet .actions .btn.primary { flex: 1.4; }

/* Legacy inspection: one scroll area, exact contents, and a purchase footer above the safe area. */
.sheet-box.legacy-showroom { width:min(680px,100%); max-height:calc(100dvh - max(16px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom))); padding:14px; display:grid; grid-template-rows:auto minmax(0,1fr) auto; gap:10px; overflow:hidden; text-align:center; border:2px solid #b18a45; background:#111416 url('../assets/ui/command-etch.svg') center/cover; box-shadow:inset 0 0 0 3px #080a0d,0 14px 55px #0009; }
.sheet-box.legacy-showroom { position:relative; }
.legacy-showroom>.sheet-x { position:absolute; top:12px; right:12px; float:none; margin:0; }
.lg-head { padding:0 42px 0 0; text-align:left; }
.legacy-showroom .lg-head h2 { margin:4px 0; font-size:clamp(21px,5vw,29px); }
.lg-head>span { font-size:11px; color:#c9c1ad; }
.lg-scroll { min-height:0; overflow:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
.lg-stage { position:relative; height:clamp(160px,24dvh,260px); overflow:hidden; border:1px solid #68717a; background:radial-gradient(ellipse at center,#53606a40,transparent 70%),repeating-linear-gradient(0deg,transparent 0 23px,#bdc5cb0b 24px),repeating-linear-gradient(90deg,transparent 0 23px,#bdc5cb0b 24px),#0e1318; box-shadow:inset 0 0 0 3px #080b0e; }
#lg-model { display:block; width:100%; height:100%; touch-action:none; cursor:grab; }
#lg-model:active { cursor:grabbing; }
#lg-model[hidden],#lg-currency[hidden] { display:none; }
#lg-currency { height:100%; display:grid; place-items:center; }
#lg-currency .art { width:140px; height:140px; filter:drop-shadow(0 0 20px #54d4fb40); }
.lg-corner { position:absolute; bottom:8px; left:10px; font:10px var(--display); letter-spacing:.12em; color:#b1b6bc; pointer-events:none; }
.lg-caption { display:grid; gap:3px; padding:6px 0; }
.lg-caption h3 { margin:0; color:#f1d79e; font:21px var(--display); }
.lg-caption small { color:#bac2c6; font-size:11px; }
.lg-controls { display:flex; gap:6px; align-items:stretch; justify-content:center; }
.lg-controls .btn { margin:0; min-width:0; min-height:42px; padding:7px 9px; display:inline-flex; gap:5px; align-items:center; justify-content:center; font-size:13px; }
.lg-controls .ic { width:19px; height:19px; flex-shrink:0; }
.lg-controls [hidden],.lg-zoom[hidden] { display:none; }
.lg-zoom { display:flex; gap:12px; align-items:center; justify-content:center; padding:4px 8px; min-height:44px; font:13px var(--display); color:#c2c8ca; }
.lg-zoom input { min-width:0; width:min(75%,260px); height:36px; accent-color:#caa55c; }
.lg-fine { padding:5px 2px 8px; color:#bfb08d; text-align:left; font:12px var(--display); }
.lg-fine summary { cursor:pointer; min-height:30px; display:list-item; }
.lg-items { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; padding:4px 0 8px; }
.lg-items button { position:relative; display:grid; grid-template-rows:62px auto; min-width:0; padding:4px; color:#ded7c9; border:1px solid #655b43; background:linear-gradient(145deg,#262c30,#111416); box-shadow:inset 0 0 0 2px #0c0e10; cursor:pointer; }
.lg-items button[aria-pressed=true] { color:#fff1c9; border-color:#edc36d; box-shadow:inset 0 0 0 2px #9a7635,0 0 12px #dbb15720; }
.lg-items canvas { display:block; width:100%; height:62px; }
.lg-items button>span { font:12px/1.25 var(--display); overflow-wrap:anywhere; padding:3px 1px; }
.lg-items .lg-gems { grid-column:1/-1; grid-template-columns:34px auto; grid-template-rows:34px; align-items:center; justify-content:center; gap:8px; }
.lg-gems .art { width:32px; height:32px; }
.lg-footer.actions { margin:0; padding:10px 0 0; border-top:1px solid #8e7446; display:flex; flex-wrap:wrap; gap:8px; }
.lg-footer .btn { margin:0; min-height:44px; min-width:0; flex:1; }
.lg-footer .btn.primary { flex:1.4; }
.lg-restore { display:block; flex-basis:100%; border:0; background:transparent; color:#c5b68f; font:11px var(--body); padding:3px; min-height:44px; cursor:pointer; }
.legacy-showroom .os-fine { font-size:11px; color:#aeb5b6; line-height:1.35; margin:8px 0 0; }
@media(max-width:350px) { .sheet-box.legacy-showroom { padding:10px; } .lg-items canvas { height:52px; } .lg-items button { grid-template-rows:52px auto; } .lg-controls .btn { padding:6px; font-size:12px; } }

/* the Supreme picks screen */
.picks-screen { display: grid; gap: 10px; max-height: calc(100dvh - 24px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pk-head { display: flex; align-items: center; gap: 10px; text-align: left; }
.pk-head .ea-mark { width: 34px; height: 34px; flex: none; }
.pk-head h2 { font-size: 34px; }
.pk-head p { margin-top: 2px; font-size: 13px; }
.pk-slots { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pk-slot { position: relative; display: flex; align-items: stretch; background: var(--panel); box-shadow: 0 -3px 0 0 var(--line), 0 3px 0 0 var(--line), -3px 0 0 0 var(--line), 3px 0 0 0 var(--line); margin: 3px; }
.pk-slot.empty { background: repeating-linear-gradient(135deg, #171615 0 8px, #1c1b19 8px 16px); box-shadow: 0 -3px 0 0 #5a4d36, 0 3px 0 0 #5a4d36, -3px 0 0 0 #5a4d36, 3px 0 0 0 #5a4d36; }
.pk-slot.filled { box-shadow: 0 -3px 0 0 var(--gold), 0 3px 0 0 var(--gold), -3px 0 0 0 var(--gold), 3px 0 0 0 var(--gold); }
.pk-slot.locked { opacity: .85; background: #17140c; }
.pk-main { flex: 1; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 64px; padding: 4px 8px 4px 4px; border: 0; background: none; color: inherit; text-align: left; font: inherit; }
.pk-cv { width: 64px; height: 56px; display: block; background: #0d0d0e; }
.pk-plus { width: 64px; height: 56px; display: grid; place-items: center; font: 400 40px/1 var(--display); color: #8f7b52; border: 2px dashed #5a4d36; }
.pk-name { display: grid; gap: 2px; min-width: 0; }
.pk-name b { font: 400 20px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-name small { color: var(--muted); font-size: 12px; }
.pk-slot.filled .pk-name small { color: var(--gold); }
.pk-clear { width: 48px; border: 0; background: #241e18; color: #e8d9a8; display: grid; place-items: center; }
.pk-lock { width: 40px; display: grid; place-items: center; color: #8f7b52; }
.pk-lock .wi, .pk-lock svg { width: 20px; height: 20px; }
.sheet-box .pk-count { color: #e8e1d3; font-size: 14px; text-align: center; }
.sheet-box .pk-count b { color: var(--gold); font-weight: 600; }
.sheet-box .pk-fine { font-size: 12px; color: var(--muted); text-align: center; }
.picks-picker .pk-head .btn { min-height: 40px; flex: none; }
.pk-cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.pk-cats::-webkit-scrollbar { display: none; }
.pk-cat { flex: none; min-height: 40px; padding: 0 12px; background: var(--panel-2); color: #e6dfd0; font: 400 17px var(--display); letter-spacing: .04em; text-transform: uppercase; border: 0; box-shadow: inset 0 0 0 2px var(--line); }
.pk-cat small { font: 400 13px var(--display); color: var(--muted); margin-left: 3px; }
.pk-cat.on { background: #3a2c0c; color: #ffe08a; box-shadow: inset 0 0 0 2px var(--gold); }
.pk-items { max-height: 52dvh; overflow-y: auto; padding: 2px; }
.pk-items .item { color: inherit; border: 0; }
.pk-items .item.taken { opacity: .45; }
@media (max-width: 360px) { .so-price { min-width: 76px; } .so-text b { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .so-card, .pk-slot { transition: none; } }

/* Hold the Line packs in one row inside Supply */
#so-hold .hold-pack-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
#so-hold .hold-pack-options .btn { flex-direction: column; gap: 2px; min-height: 56px; margin: 3px; padding: 0 4px; font-size: 18px; }
#so-hold .hold-pack-options .btn span { font-size: 15px; }
.picks-screen .actions .btn { font-size: 19px; padding: 0 8px; }

/* Field Marshal at the Supreme owner price (Gage 10-28): the tag, "Your price", the plan label and the switch box */
.so-marshal.so-own .so-badge { color: #1a1305; background: #f2c14e; padding: 1px 6px; width: fit-content; }
.cmd-yours { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; margin: 10px 0 2px; padding: 8px 10px; background: #2b2207; box-shadow: 0 -3px 0 0 #f2c14e, 0 3px 0 0 #f2c14e, -3px 0 0 0 #f2c14e, 3px 0 0 0 #f2c14e; }
.cmd-yours .tag { background: #f2c14e; color: #000; font-size: 14px; }
.cmd-yours b { font: 400 24px/1 var(--display); letter-spacing: .04em; color: #f2c14e; text-transform: uppercase; }
.cmd-yours small { grid-column: 1 / -1; font-size: 12.5px; color: #e8d9a8; }
.cmd-plan .cmd-own { font: 400 12px/1 var(--display); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: #f2c14e; }
.cmd-switch { margin: 8px 0; padding: 10px; background: #17140c; box-shadow: 0 -3px 0 0 #f2c14e, 0 3px 0 0 #f2c14e, -3px 0 0 0 #f2c14e, 3px 0 0 0 #f2c14e; }
.cmd-switch > b { font: 400 22px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: #f2c14e; }
.cmd-switch p { margin: 6px 0 4px; font-size: 13.5px; line-height: 1.3; color: #e8d9a8; }
.cmd-switch .cmd-plans { margin-top: 18px; }

.referral-commander { color:#f4d387; text-shadow:0 0 10px #dbb45b66; animation:commander-glint 3s ease-in-out infinite; }
@keyframes commander-glint { 50% { color:#fff0b3; text-shadow:0 0 15px #f3cf7a; } }
@media(prefers-reduced-motion:reduce) { .referral-commander { animation:none; } }

.so-premium .so-card { grid-template-columns:minmax(0,1fr); }
.so-premium .so-card .so-price { justify-self:end; }
/* Supreme's contents live in its details sheet; the shelf stays a compact offer. */
.so-premium .so-supreme { padding:9px; gap:5px; }
.so-supreme .so-main { grid-template-columns:40px minmax(0,1fr); gap:8px; min-height:40px; }
.so-supreme .so-art,.so-supreme .so-art .art,.so-supreme .so-art img { width:40px; height:40px; }
.so-supreme .so-text b { font-size:19px; letter-spacing:.025em; }
.so-supreme .so-text b .ea-mark { display:none; }
.so-supreme .so-badge { font-size:10px; letter-spacing:.05em; }
.so-supreme .so-price { min-height:40px; margin:0; }
.so-legacy-hero { position:relative; background:radial-gradient(ellipse at 50% 75%,#78859330,transparent 68%),repeating-linear-gradient(0deg,transparent 0 23px,#b9c5cb0b 24px),repeating-linear-gradient(90deg,transparent 0 23px,#b9c5cb0b 24px); border-bottom:1px solid #b18a454d; }
.so-legacy .so-art canvas { aspect-ratio:1.1; }

/* ---------- three short pages (Gage 11-03): Item Shop | Premium | Gems & Spins, one sticky switch ---------- */
.so-tabs { position: sticky; top: 0; z-index: 4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 4px; padding: 4px;
  background: linear-gradient(180deg, #1d1a16, #121110); border: 1px solid #8a72545e; box-shadow: 0 3px 0 #070807, inset 0 1px #f2d9a91c; }
.so-tabs button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 44px; padding: 0 4px;
  font: 400 18px var(--display); letter-spacing: .05em; text-transform: uppercase; color: #a49a8e; transition: color .2s; white-space: nowrap; }
.so-tabs button span { overflow: hidden; text-overflow: ellipsis; }
.so-tabs button[aria-selected="true"] { color: #fff; text-shadow: 1px 2px #5d1417; }
.so-tabs .wi, .so-tabs .art, .so-tabs .ea-mark { width: 20px; height: 20px; flex: none; }
.so-tabs button:active { transform: translateY(1px); }
.so-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 2); transition: transform .32s cubic-bezier(.3,1.4,.5,1), background .2s;
  background: linear-gradient(100deg, #b5232a, #e23a36 55%, #b31f27); border: 1px solid #ffb294; box-shadow: 0 3px #5e171b, inset 0 1px #ffd9b65c; }
.so-thumb::after { content: ''; position: absolute; inset: 3px; border: 1px dashed #ffe0c040; }
.so[data-page="premium"] .so-thumb { transform: translateX(100%); background: linear-gradient(100deg, #8a6418, #e0b24a 55%, #8a6418); border-color: #ffe7a6; box-shadow: 0 3px #4a3609, inset 0 1px #fff3c45c; }
.so[data-page="premium"] .so-tabs button[aria-selected="true"] { color: #1a1305; text-shadow: 0 1px #fff2c2; }
.so[data-page="gems"] .so-thumb { transform: translateX(200%); background: linear-gradient(100deg, #0d5f69, #22a9b8 55%, #0d5f69); border-color: #a6f3ff; box-shadow: 0 3px #073840, inset 0 1px #d6fbff5c; }
.so[data-page="gems"] .so-tabs button[aria-selected="true"] { text-shadow: 1px 2px #073840; }
.so-page { display: grid; gap: 8px; animation: so-page-in .22s ease-out; }
.so-page[hidden] { display: none; }
@keyframes so-page-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 430px) { .so-tabs .wi, .so-tabs .art, .so-tabs .ea-mark { display: none; } .so-tabs button { font-size: 17px; letter-spacing: .03em; } }
@media (max-width: 360px) { .so-tabs button { font-size: 15px; gap: 4px; letter-spacing: .02em; } .so-tabs .wi, .so-tabs .art, .so-tabs .ea-mark { width: 16px; height: 16px; } }
@media (prefers-reduced-motion: reduce) { .so-thumb { transition: none; } .so-page { animation: none; } }

/* the creator code, one slim row at the top of the Item Shop */
#tab-shop .creator-code-card { margin: 0 3px; padding: 8px 10px; gap: 8px; flex-wrap: nowrap; }
#tab-shop .creator-code-card .wi { width: 26px; height: 26px; }
#tab-shop .creator-code-card > div { flex: 1 1 auto; min-width: 0; gap: 8px; }
#tab-shop .creator-code-card > div > span { display: grid; gap: 2px; min-width: 0; }
#tab-shop .creator-code-card h3 { display: block; margin: 0; padding: 0; border: 0; font-size: 17px; line-height: 1; }
#tab-shop .creator-code-card h3::after, #tab-shop .creator-code-card h3::before { display: none; }
#tab-shop .creator-code-card small { display: block; font-size: 11.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tab-shop .creator-code-card .cc-actions { flex-wrap: nowrap; gap: 4px; }
#tab-shop .creator-code-card .cc-actions .btn { min-height: 40px; padding: 0 10px; font-size: 15px; }
@media (max-width: 400px) { #tab-shop .creator-code-card { flex-wrap: wrap; } #tab-shop .creator-code-card .cc-actions { width: 100%; } #tab-shop .creator-code-card .cc-actions .btn { flex: 1; } }

/* The Item Shop's two shelves (Gage 11-03, build 119): eight item plates each, 4 x 2. Each is a plate (plates.css): the kind on
   its strip, the picture filling a 3:2 box, the rarity pips and word, the name, the price. For coins sits on steel; For gems is
   the premium shelf, a gold-framed case with violet light and a gem price. Locked items keep their colour, with a level stamp. */
.so-item-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.so-item { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; min-width: 0; min-height: 48px; margin: 0; padding: 0 0 5px; overflow: hidden; color: inherit; font: inherit; text-align: center; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--spin-color) 60%, #24201b);
  background:
    linear-gradient(var(--spin-color), var(--spin-color)) 3px 20px / 7px 2px no-repeat, linear-gradient(var(--spin-color), var(--spin-color)) 3px 20px / 2px 7px no-repeat,
    linear-gradient(var(--spin-color), var(--spin-color)) calc(100% - 3px) 20px / 7px 2px no-repeat, linear-gradient(var(--spin-color), var(--spin-color)) calc(100% - 3px) 20px / 2px 7px no-repeat,
    radial-gradient(ellipse at 50% 34%, color-mix(in srgb, var(--spin-color) 22%, transparent), transparent 68%),
    linear-gradient(170deg, #241e19, #12100e);
  box-shadow: inset 0 0 0 2px var(--plate-ink, #0c0b0a), 0 3px 0 #070605; transition: transform .12s, filter .12s; }
.so-item:active { transform: translateY(2px); filter: brightness(1.12); }
.so-item:focus-visible { outline: 2px solid #f2c84b; outline-offset: 1px; }
.so-item .rp-top { gap: 3px; min-height: 17px; padding: 1px 4px 1px 5px; }
.so-item .rp-kind { font-size: 10px; line-height: 1.35; letter-spacing: .05em; }
.so-item .rp-pips { gap: 1.5px; }
.so-item .rp-pips i { width: 4px; height: 4px; }
.so-item-pic { position: relative; display: block; margin: 3px 4px 0; aspect-ratio: 3 / 2; }
.so-item-pic canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.so-item-lv { position: absolute; right: 0; bottom: 0; display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 1px 3px; font: 400 12px/1 var(--display); font-style: normal; letter-spacing: .04em; color: #f1e6cd; background: #0c0b0ad9; border: 1px solid #ae977080; }
.so-item-lv .wi { width: 10px; height: 10px; }
.so-item-rar { display: block; min-width: 0; margin: 4px 3px 0; overflow: hidden; white-space: nowrap; font: 400 9px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--spin-color); }
.so-item-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; align-self: start; margin: 3px 4px 0; font: 400 13.5px/1.05 var(--display); letter-spacing: .02em; text-transform: uppercase; color: #fbf4e4; overflow-wrap: anywhere; text-shadow: 1px 1px #0009; }
.so-item-price { display: flex; align-items: center; justify-content: center; gap: 3px; margin: 4px 4px 0; padding: 3px 0 2px; font: 400 15px/1 var(--display); font-style: normal; color: #ffe08a; background: #0c0b0a; border: 1px solid #ffffff1a; }
.so-item-price .art { width: 14px; height: 14px; }
.so-item-price .art img { width: 100%; height: 100%; object-fit: contain; }
.so-item.locked .so-item-price { color: #cfc6b4; }
/* For gems: the premium case */
.so-shelf-gems { position: relative; gap: 6px; margin-top: 8px; padding: 6px 7px 9px; border: 1px solid #c9a24a;
  background: radial-gradient(120% 80% at 50% 0%, #3b2252, transparent 62%), linear-gradient(180deg, #211829, #110c15 72%);
  box-shadow: inset 0 0 0 3px #0b080e, inset 0 0 0 4px #c9a24a55, 0 3px 0 #070605; }
.so-shelf-gems > .kit-h { margin: 2px 2px 0; color: #f4d387; text-shadow: 1px 2px #000; }
.so-shelf-gems > .kit-h small { color: #c8b8d8; }
.so-shelf-note { margin: -2px 2px 0; font-size: 12px; line-height: 1.2; color: #d9c9e8; }
.so-prem-tag { flex: none; padding: 2px 6px 1px; font: 400 12px/1.15 var(--display); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: #1a1305; text-shadow: none; background: linear-gradient(90deg, #f7de91, #c99a3c); }
.so-shelf-gems .so-item { border-color: color-mix(in srgb, var(--spin-color) 45%, #c9a24a);
  background:
    linear-gradient(#e9c46a, #e9c46a) 3px 20px / 7px 2px no-repeat, linear-gradient(#e9c46a, #e9c46a) 3px 20px / 2px 7px no-repeat,
    linear-gradient(#e9c46a, #e9c46a) calc(100% - 3px) 20px / 7px 2px no-repeat, linear-gradient(#e9c46a, #e9c46a) calc(100% - 3px) 20px / 2px 7px no-repeat,
    radial-gradient(ellipse at 50% 36%, color-mix(in srgb, var(--spin-color) 34%, transparent), transparent 70%),
    linear-gradient(170deg, #2a1d33, #120c16);
  box-shadow: inset 0 0 0 2px #0b080e, inset 0 0 0 3px #c9a24a3d, 0 0 9px color-mix(in srgb, var(--spin-color) 30%, transparent), 0 3px 0 #070605; }
.so-shelf-gems .so-item-price { color: #f1e2ff; background: linear-gradient(#2c1a3b, #150d1d); border-color: #c9a24a66; }
.so-shelf-gems .so-item::after { content: ""; position: absolute; inset: -40% -60%; background: linear-gradient(115deg, transparent 44%, #ffe9b31f 50%, transparent 56%); transform: translateX(-60%); animation: so-item-shine 7s ease-in-out infinite; pointer-events: none; }
.so-shelf-gems .so-item:nth-child(2n)::after { animation-delay: 1.6s; }
.so-shelf-gems .so-item:nth-child(3n)::after { animation-delay: 3.1s; }
@keyframes so-item-shine { 0%, 70% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
@media (prefers-reduced-motion: reduce) { .so-shelf-gems .so-item::after { animation: none; display: none; } }
@media (max-width: 370px) {
  .so-item-grid { gap: 4px; }
  .so-item .rp-top { justify-content: center; padding: 2px 3px; }
  .so-item .rp-kind { font-size: 9px; letter-spacing: .03em; }
  .so-item .rp-top .rp-pips { display: none; }
  .so-item-rar { font-size: 8px; letter-spacing: .02em; }
  .so-item-name { font-size: 12px; }
  .so-item-price { font-size: 13.5px; gap: 2px; }
  .so-item-price .art { width: 12px; height: 12px; }
  .so-shelf-gems { padding: 5px 5px 8px; }
}

/* Gems & Spins: the wheels as compact rows, the picture filling its box, no empty frames (Gage 11-03: "not big empty boxes") */
#tab-shop .spin-supplies { padding: 0; }
#tab-shop .spin-supplies .supply-section-head { margin: 0 0 4px; }
#tab-shop .spin-supplies .supply-section-head h3 { display: none; }
#tab-shop .spin-supplies .supply-section-head:not(:has(button)) { display: none; }
#tab-shop .spin-supply-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; justify-items: stretch; }
#tab-shop .spin-supply { display: grid; grid-template-columns: 74px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; justify-items: start; column-gap: 8px; row-gap: 2px;
  width: 100%; min-height: 0; margin: 0; padding: 6px 8px 6px 4px; text-align: left; box-sizing: border-box; }
#tab-shop .spin-supply > canvas { grid-row: 1 / 3; width: 74px; height: 74px; max-width: none; }
#tab-shop .spin-supply > b { align-self: end; padding-right: 30px; font: 400 18px/1 var(--display); }
#tab-shop .spin-supply > small { align-self: start; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; font-size: 12px; color: #c9bc98; }
#tab-shop .spin-supply > strong { position: absolute; top: 5px; right: 6px; min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center; font: 400 17px/1 var(--display); }
#tab-shop .spin-help { margin: 4px 0 0; }
#tab-shop .spin-help summary { min-height: 40px; }
@media (max-width: 350px) { #tab-shop .spin-supply-grid { grid-template-columns: minmax(0, 1fr); } }

/* crates: two compact tiles, picture left, name and price right */
#tab-shop .supply-crate-store { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0; background: none; box-shadow: none; border: 0; margin: 6px 0 0; }
#tab-shop .supply-crate-store > .line-item { display: grid; grid-template-columns: 58px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; justify-items: start; column-gap: 8px; row-gap: 4px; padding: 6px 8px 6px 4px; text-align: left; }
#tab-shop .supply-crate-store > .line-item > .art { grid-row: 1 / 3; width: 58px; height: 58px; }
#tab-shop .supply-crate-store > .line-item > span { align-self: end; font: 400 17px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; color: #f1e6c8; }
#tab-shop .supply-crate-store > .line-item > .btn { align-self: start; min-height: 36px; margin: 0; padding: 0 10px; }
#tab-shop .crate-odds { margin-top: 4px; padding: 6px 8px; gap: 2px; font-size: 11.5px; }
#tab-shop .crate-odds > b { font-size: 13px; }
#tab-shop .crate-odds p { margin: 0; }

/* Premium: the gold header carries the mark */
.so-premium > h3 { display: flex; align-items: center; gap: 8px; font: 400 20px/1 var(--display); }
.so-premium > h3 .ea-mark { width: 22px; height: 22px; }
#so-currency, #so-purchases, #so-items { scroll-margin-top: 56px; }
#so-coins, #so-gems { scroll-margin-top: 60px; }

/* Hold the Line inside Premium: one compact card, the three packs in one row */
#tab-shop .hold-card { padding: 10px; gap: 6px 10px; grid-template-columns: 44px minmax(0, 1fr); }
#tab-shop .hold-card .hold-ic, #tab-shop .hold-card .hold-ic svg { width: 44px; height: 44px; }
#tab-shop .hold-card p { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#tab-shop .hold-card .hc-free { grid-column: 1 / -1; }
#tab-shop .hold-card .hold-pack-options { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
#tab-shop .hold-card .hold-pack-options .btn { grid-column: auto; width: auto; min-width: 0; min-height: 52px; margin: 0; }
/* Legacy: the words sit inside the frame, not on it */
#tab-shop .so-legacy .so-text { padding: 2px 12px 0; }
#tab-shop .so-legacy > .so-price { margin: 0 12px 4px; }

/* Frontline Tees: three tee-art tiles (tap: all six) and one clear button, framed like the other shop cards */
.so-merch-card { display: grid; gap: 8px; margin: 3px; padding: 8px; background: var(--panel); box-shadow: 0 -3px 0 0 var(--line), 0 3px 0 0 var(--line), -3px 0 0 0 var(--line), 3px 0 0 0 var(--line); }
.merch-car { position: relative; display: grid; gap: 6px; }
.merch-view { position: relative; aspect-ratio: 1312 / 1199; background: #12110f; overflow: hidden; }
/* Keep every slide laid out. display:none makes WKWebView skip the file request, so a
   bundled photo still reports naturalWidth 0. Hidden slides stay in the same box. */
.merch-slide { position: absolute; inset: 0; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; visibility: hidden; }
.merch-slide.on { visibility: visible; }
.merch-slide img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.merch-slide figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 4px 2px 0; }
.merch-slide b { font: 400 14px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.merch-slide small { color: #c9bc98; font-size: 12px; }
.merch-nav { position: absolute; top: 38%; width: 36px; height: 36px; background: #0e0d0ccc; color: #f3ede2; box-shadow: 0 2px 0 #000; }
.merch-nav.prev { left: 6px; } .merch-nav.next { right: 6px; }
.merch-nav.prev::before, .merch-nav.next::before { content: ''; display: block; width: 8px; height: 8px; margin: 0 auto; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.merch-nav.prev::before { transform: rotate(-135deg); } .merch-nav.next::before { transform: rotate(45deg); }
.merch-dots { display: flex; justify-content: center; gap: 6px; }
.merch-dots button { width: 10px; height: 10px; background: #3a342c; box-shadow: inset 0 0 0 1px #000; }
.merch-dots button[aria-current="true"] { background: #e8dcc4; }
.so-merch-shelf { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; transition: transform .12s, filter .12s; }
.so-merch-shelf:active { transform: translateY(2px); filter: brightness(1.08); }
.so-merch-tile { display: grid; gap: 3px; min-width: 0; }
.so-merch-tile img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #ece8df; box-shadow: inset 0 0 0 1px #00000022; }
.so-merch-tile small { font: 400 13px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: #e8dcc4; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-merch-more { position: absolute; right: 4px; top: 4px; padding: 2px 6px; font: 400 14px/1 var(--display); font-style: normal; color: #fff; background: #000c; }
.so-merch-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.so-merch-txt { display: grid; gap: 2px; min-width: 0; }
.so-merch-txt b { font: 400 19px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.so-merch-txt small { font-size: 12px; line-height: 1.25; color: #c9bc98; }
.so-merch-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; margin: 0; padding: 0 14px; font-size: 19px; white-space: nowrap; }
.so-merch-cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.so-merch-cta[disabled] { opacity: 1; color: #c9bc98; background: #24201a; box-shadow: inset 0 0 0 1px #6f5a35; }
.merch-sheet { display: grid; gap: 10px; text-align: center; max-height: calc(100dvh - 24px); overflow-y: auto; }
.merch-sheet > p { margin: 0; font-size: 13px; color: #d8d2c6; }
.merch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.merch-grid figure { margin: 0; display: grid; gap: 4px; }
.merch-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border: 2px solid #6f5a35; background: #ece8df; }
.merch-grid figcaption { display: grid; gap: 1px; }
.merch-grid b { font: 400 15px/1.05 var(--display); letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.merch-grid small { font-size: 11px; color: var(--muted); }
@media (max-width: 360px) { .merch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .so-merch-row { grid-template-columns: minmax(0, 1fr); } .so-merch-cta { justify-content: center; } }
/* boosters: two compact tiles, like the crates */
#tab-shop #so-boosters > .card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 0; background: none; border: 0; box-shadow: none; }
#tab-shop #so-boosters .line-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; justify-items: start; column-gap: 8px; row-gap: 4px; margin: 3px; padding: 6px 8px 6px 6px; border: 0;
  background: var(--panel); box-shadow: 0 -3px 0 0 var(--line), 0 3px 0 0 var(--line), -3px 0 0 0 var(--line), 3px 0 0 0 var(--line); }
#tab-shop #so-boosters .line-item > .art { grid-row: 1 / 3; width: 44px; height: 44px; }
#tab-shop #so-boosters .line-item > span { align-self: end; font: 400 16px/1.05 var(--display); text-transform: uppercase; letter-spacing: .03em; color: #f1e6c8; }
#tab-shop #so-boosters .line-item > .btn { align-self: start; min-height: 36px; margin: 0; padding: 0 10px; }

/* ---------- the Supreme deal (Gage 11-03: "pictures and little words ... the absolute best deal of their life") ---------- */
.so-premium .so-dealcard { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 10px 10px; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 50% 0%, #6b4a1640, transparent 60%), linear-gradient(160deg, #2b2111, #0f0e0b 70%);
  box-shadow: 0 -3px 0 0 #f2c14e, 0 3px 0 0 #f2c14e, -3px 0 0 0 #f2c14e, 3px 0 0 0 #f2c14e, inset 0 0 0 3px #0b0a07; }
.so-dealcard::after { content: ''; position: absolute; inset: -40%; z-index: -1; background: linear-gradient(110deg, transparent 44%, #ffe2a020 50%, transparent 56%); animation: legacy-shine 7s ease-in-out infinite; pointer-events: none; }
.so-dealcard .dl-main { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); min-height: 0; }
.so-dealcard .so-badge { color: #f2c14e; font-size: 12px; letter-spacing: .1em; }
.dl-title { display: flex; align-items: center; gap: 8px; font: 400 25px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #fff; text-shadow: 2px 2px 0 #000; }
.dl-title .ea-mark { width: 24px; height: 24px; flex: none; }
.dl-stamp { position: absolute; top: 14px; right: -38px; z-index: 2; width: 170px; padding: 4px 0; transform: rotate(32deg); text-align: center; font: 400 12px/1.05 var(--display); letter-spacing: .1em; text-transform: uppercase;
  color: #1a1305; background: linear-gradient(90deg, #d79d2c, #ffe08a, #d79d2c); box-shadow: 0 2px 0 #5b3f0c; }
.deal-stack { display: grid; grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) 14px minmax(0, 1fr); align-items: stretch; gap: 2px; }
.dl-plus { align-self: center; justify-self: center; font: 400 22px/1 var(--display); font-style: normal; color: #f2c14e; }
.dl-tile { display: grid; justify-items: center; align-content: start; gap: 2px; min-width: 0; padding: 6px 2px 7px; text-align: center; background: #0d0c0a; box-shadow: inset 0 0 0 1px #8a6d3299; }
.dl-pic { position: relative; display: grid; place-items: center; width: 100%; height: 54px; }
.dl-pic .art, .dl-pic img, .dl-pic svg, .dl-pic .wi { width: 54px; height: 54px; object-fit: contain; }
.dl-tile b { font: 400 25px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.dl-tile small { font: 400 12px/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #e8d9a8; }
.dl-tile i { font-style: normal; font-size: 11px; line-height: 1.15; color: #b9a978; }
.dl-tile i del { color: #b9a978; opacity: .8; }
.dl-free { box-shadow: inset 0 0 0 2px #5fd068; background: radial-gradient(ellipse at 50% 30%, #2f7a3333, transparent 70%), #0d0c0a; }
.dl-free b { color: #7cf08a; text-shadow: 0 0 12px #5fd06866; }
.dl-loyal { box-shadow: inset 0 0 0 2px #f2c14e; background: radial-gradient(ellipse at 50% 30%, #f2c14e26, transparent 70%), #0d0c0a; }
.dl-loyal b { color: #ffe08a; }
.dl-inf { position: absolute; right: 6px; bottom: -2px; font: 400 26px/1 var(--display); font-style: normal; color: #ffe08a; text-shadow: 2px 2px 0 #000, 0 0 8px #f2c14e88; }
.dl-buy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.dl-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.dl-price del { font: 400 18px var(--display); color: #a49a8e; }
.dl-price b { font: 400 34px/1 var(--display); color: #ffe08a; text-shadow: 2px 2px 0 #000; }
.dl-price em { font: 400 14px/1 var(--display); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #1a1305; background: #7cf08a; padding: 3px 6px; }
.so-dealcard:not(.intro) .dl-price em { background: none; color: #c8b991; padding: 0; letter-spacing: .04em; }
.so-dealcard .so-price { min-width: 120px; min-height: 52px; font-size: 22px; }
.os-deal { position: relative; overflow: hidden; padding: 10px 2px 2px; }
.os-deal .dl-stamp { top: 10px; right: -44px; }
.deal-stack.big .dl-pic { height: 64px; } .deal-stack.big .dl-pic .art, .deal-stack.big .dl-pic img, .deal-stack.big .dl-pic svg { width: 64px; height: 64px; }
.os-list li b { color: #ffe08a; font-weight: 600; }
@media (max-width: 360px) { .dl-tile b { font-size: 20px; } .dl-tile small { font-size: 10.5px; } .dl-pic, .dl-pic .art, .dl-pic img, .dl-pic svg { height: 44px; } .dl-pic .art, .dl-pic img, .dl-pic svg { width: 44px; } .dl-price b { font-size: 28px; } .so-dealcard .so-price { min-width: 96px; font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .so-dealcard::after { animation: none; display: none; } }
/* the loyalty price on the pass card, and the Home reminder in the grace days */
.so-pass.so-loyal { box-shadow: 0 -3px 0 0 #f2c14e, 0 3px 0 0 #f2c14e, -3px 0 0 0 #f2c14e, 3px 0 0 0 #f2c14e; }
.loyal-nudge { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; margin: 0 0 6px; padding: 6px 10px; border: 0; text-align: left; color: inherit; font: inherit;
  background: linear-gradient(100deg, #3a2c0c, #17140c); box-shadow: inset 0 0 0 2px #f2c14e, 0 3px 0 #070807; }
.loyal-nudge .art, .loyal-nudge svg { width: 36px; height: 36px; }
.loyal-nudge b { display: block; font: 400 17px/1.05 var(--display); text-transform: uppercase; letter-spacing: .04em; color: #ffe08a; }
.loyal-nudge small { font-size: 12px; color: #e8d9a8; }
.loyal-nudge em { font: 400 20px var(--display); font-style: normal; color: #1a1305; background: #f2c14e; padding: 4px 8px; }
/* the stamp: a full-width gold bar across the top of the card, never clipped */
.so-dealcard .dl-stamp, .os-deal .dl-stamp { position: static; display: block; width: auto; margin: -12px -10px 0; padding: 5px 8px; transform: none; font-size: 15px; letter-spacing: .14em; box-shadow: 0 2px 0 #5b3f0c; }
.so-dealcard .dl-stamp::before, .so-dealcard .dl-stamp::after, .os-deal .dl-stamp::before, .os-deal .dl-stamp::after { content: '★'; margin: 0 8px; font-size: 12px; vertical-align: 1px; }
.os-deal .dl-stamp { margin: 0 0 8px; }
.so-pass.so-loyal .so-badge.so-best { color: #1a1305; }
/* Legacy: a gold price plate on the black-and-gold case (orchestrator: the ultimate status symbol, no red) */
#tab-shop .so-legacy > .so-price.primary { background: linear-gradient(180deg, #ffe7a3, #d9a441 55%, #a8741f); color: #1a1305; text-shadow: 0 1px #fff2c2; border-color: #5b3f0c; box-shadow: 0 4px 0 #4a3209, inset 0 1px #fff7d6; }
#tab-shop .so-legacy > .so-price.primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #4a3209, inset 0 1px #fff7d6; }

/* The creator code as a field ticket (Gage 11-03: "make the creator code box look better"): a stamp, the collection's name, the
   code on a chip, and the actions behind a dashed perforation. */
#tab-shop .creator-code-card.cc-ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0; margin: 0 3px; padding: 0; border: 0; overflow: hidden;
  background: radial-gradient(circle at 0 50%, transparent 7px, #0000 7.5px), linear-gradient(100deg, #2b2215, #17140f 62%, #1d1810);
  box-shadow: inset 0 0 0 1px #c79a3f, inset 0 0 0 3px #0b0a07, 0 3px 0 #070807; }
#tab-shop .cc-ticket::before, #tab-shop .cc-ticket::after { content: ''; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--bg, #0f0f10); box-shadow: inset 0 0 0 1px #c79a3f; }
#tab-shop .cc-ticket::before { left: -7px; } #tab-shop .cc-ticket::after { right: -7px; }
#tab-shop .cc-ticket .cc-info { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 10px 10px 16px; }
#tab-shop .cc-stamp { display: grid; place-items: center; flex: none; width: 40px; height: 40px; transform: rotate(-6deg); background: #b3221f; box-shadow: inset 0 0 0 2px #0b0a07, inset 0 0 0 3px #e25a4f, 0 2px 0 #050505; }
#tab-shop .cc-stamp .wi { width: 22px; height: 22px; filter: brightness(0) invert(1); }
#tab-shop .cc-info > span { display: grid; gap: 1px; min-width: 0; }
#tab-shop .cc-eye { font: 400 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #d6b25e; }
#tab-shop .cc-name { font: 400 19px/1.05 var(--display); letter-spacing: .03em; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tab-shop .cc-sub { font-size: 12px; color: #c9bc98; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tab-shop .cc-code { font: 400 13px/1 var(--display); font-style: normal; letter-spacing: .08em; color: #1a1305; background: #e2c26e; padding: 1px 5px; }
#tab-shop .cc-ticket .cc-actions { display: grid; gap: 6px; align-self: stretch; align-content: center; padding: 8px 14px 8px 12px; border-left: 2px dashed #c79a3f66; width: auto; flex-wrap: nowrap; }
#tab-shop .cc-ticket .cc-actions .btn { min-height: 36px; padding: 0 12px; font-size: 15px; width: 100%; }
#tab-shop .cc-ticket .cc-actions .btn.ghost { color: #e2c26e; box-shadow: inset 0 0 0 1px #c79a3f88; background: none; }
@media (max-width: 400px) { #tab-shop .creator-code-card.cc-ticket { flex-wrap: nowrap; } #tab-shop .cc-ticket .cc-actions { width: auto; } }
/* coins: two compact tiles like the boosters, no paragraph (Gage 11-03: "a bit more compact") */
#tab-shop #so-coins > .note { display: none; }
#tab-shop #so-coins > .card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 0; background: none; border: 0; box-shadow: none; }
#tab-shop #so-coins .line-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; justify-items: start; column-gap: 8px; row-gap: 4px; margin: 3px; padding: 6px 8px 6px 6px; border: 0; background: var(--panel); box-shadow: 0 -3px 0 0 var(--line), 0 3px 0 0 var(--line), -3px 0 0 0 var(--line), 3px 0 0 0 var(--line); }
#tab-shop #so-coins .line-item > .art { grid-row: 1 / 3; width: 44px; height: 44px; }
#tab-shop #so-coins .line-item > span { align-self: end; font: 400 16px/1.05 var(--display); text-transform: uppercase; color: #f1e6c8; }
#tab-shop #so-coins .line-item > .btn { align-self: start; min-height: 36px; margin: 0; padding: 0 10px; }

/* The official seal (Gage 11-03): a red-ink rubber stamp, double ring, tilted, a little worn; on the Store card it overlaps the
   card's top edge, elsewhere it heads the sheet. Static (no motion), so calm needs nothing. */
.dl-seal { display: flex; justify-content: center; margin: -6px 0 6px; pointer-events: none; }
.dl-seal .ds-ring { position: relative; display: grid; justify-items: center; gap: 1px; padding: 7px 18px 6px; color: #d42a24; transform: rotate(-4deg);
  border: 3px solid currentColor; outline: 1.5px solid currentColor; outline-offset: 3px; border-radius: 6px; background: #fff3e40a; text-shadow: 0 0 1px #d42a2466;
  -webkit-mask-image: radial-gradient(circle at 20% 30%, #000 60%, #0009 61%, #000 75%), repeating-linear-gradient(115deg, #000 0 7px, #000d 7px 9px); mask-image: radial-gradient(circle at 20% 30%, #000 60%, #0009 61%, #000 75%), repeating-linear-gradient(115deg, #000 0 7px, #000d 7px 9px); -webkit-mask-composite: source-in; mask-composite: intersect; }
.dl-seal b { font: 400 30px/0.95 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.dl-seal strong { font: 400 20px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.dl-seal small { margin-top: 3px; padding-top: 3px; border-top: 1.5px solid currentColor; font: 400 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; }
.so-dealcard .dl-seal { margin: 2px 0 6px; } .so-dealcard .dl-seal .ds-ring { background: #1a1410; }
.os-deal .dl-seal { margin: 0 0 8px; }
.welcome-sheet .ws-seal { margin: 0 0 6px; }
@media (max-width: 359px) { .dl-seal b { font-size: 25px; } .dl-seal strong { font-size: 17px; } }
.dl-seal .ds-clock { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; padding: 3px 8px 2px; color: #fff4e4; background: #d42a24; }
.dl-seal .ds-clock em { font: 400 11px/1 var(--display); font-style: normal; letter-spacing: .18em; text-transform: uppercase; }
.dl-seal .ds-clock i { font: 400 19px/1 var(--display); font-style: normal; letter-spacing: .06em; font-variant-numeric: tabular-nums; }

/* Gage 11-03: "the best deal thing should have a star on it, and some flashy lights, and in gold": gold foil, a star at its head,
   and marquee bulbs chasing around the frame (still under reduced motion). */
.dl-seal .ds-ring { color: #f6c84c; border-color: #f6c84c; outline-color: #f6c84c; background: linear-gradient(170deg, #3a2a0c, #1b1306); padding-top: 16px; text-shadow: 0 1px 0 #6b4a10, 0 0 10px #f6c84c66; -webkit-mask-image: none; mask-image: none; box-shadow: 0 0 18px #f6c84c55, inset 0 0 12px #f6c84c33; }
.dl-seal .ds-ring::before { content: ''; position: absolute; inset: -10px; border-radius: 12px; padding: 5px; pointer-events: none;
  background: radial-gradient(circle, #fffbe6 0 1.6px, #f6c84c 2.4px, transparent 3.4px) 0 0 / 12px 12px, radial-gradient(circle, #c8901e 0 1.4px, transparent 2.6px) 6px 6px / 12px 12px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: ds-chase .7s steps(2) infinite; }
@keyframes ds-chase { to { background-position: 12px 0, 18px 6px; } }
.dl-seal .ds-star { position: absolute; top: -15px; left: 50%; width: 30px; height: 30px; margin-left: -15px; fill: #ffe08a; stroke: #6b4a10; stroke-width: 1.2; filter: drop-shadow(0 0 6px #ffd36ecc); }
.dl-seal small { border-top-color: #f6c84c; }
.dl-seal .ds-clock { color: #1a1208; background: linear-gradient(180deg, #ffe08a, #d9a441); }
@media (prefers-reduced-motion: reduce) { .dl-seal .ds-ring::before { animation: none; } }

/* Commander's Legacy at half price for Supreme owners (Gage 11-03). */
.so-half { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 8px; font: 400 14px/1.1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #1a1208; background: linear-gradient(180deg, #ffe08a, #d9a441); }
.so-half .kit-mark, .so-half svg { width: 16px; height: 16px; }
.so-legacy.half .so-badge { color: #1a1208; background: #ffd36e; }
.so-legacy .so-price del { margin-right: 6px; font-size: .8em; opacity: .75; }

/* The Commander's Legacy pack emblem (Gage 11-03), pinned on the card's top-left corner. */
.lg-badge { position: absolute; top: 8px; left: 8px; z-index: 3; width: 54px; height: 61px; filter: drop-shadow(0 3px 0 #000) drop-shadow(0 0 8px #d9a44166); pointer-events: none; }
.lg-badge svg { width: 100%; height: 100%; }
.lg-badge.big { position: static; display: inline-block; width: 64px; height: 72px; }
@media (max-width: 359px) { .lg-badge { width: 44px; height: 50px; } }
.lg-head .lg-head-badge { float: left; margin: 0 10px 0 0; width: 52px; height: 59px; }

/* The Supreme card's showcase (Gage 11-03): vehicles in 3D, then every perk as a picture tile, discounts struck through. */
.sp-show { display: grid; gap: 8px; width: 100%; margin-top: 6px; }
.sp-hero { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; height: 92px; padding: 2px; background: radial-gradient(ellipse 70% 90% at 50% 70%, #f0c87024, transparent 70%), #0d0b08; border: 1px solid #5a4b3955; }
.sp-hero > span { position: relative; min-width: 0; display: grid; grid-template-rows: 1fr auto; text-align: center; }
.sp-hero canvas { width: 100%; height: 100%; min-height: 0; }
.sp-hero small { font: 400 11px/1.1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #e8d6a8; }
.sp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.sp-tile { position: relative; display: grid; justify-items: center; gap: 1px; min-width: 0; padding: 6px 3px 5px; text-align: center; background: linear-gradient(180deg, #221b12, #120f0b); border: 1px solid #6b5636; }
.sp-pic { display: grid; place-items: center; height: 30px; } .sp-pic > *, .sp-pic img, .sp-pic svg { max-height: 30px; max-width: 40px; } .sp-pic .wi { width: 24px; height: 24px; }
.sp-pic .lg-badge.mini { position: static; width: 26px; height: 30px; filter: none; }
.sp-tile b { font: 400 17px/1 var(--display); letter-spacing: .03em; color: #ffd36e; text-transform: uppercase; }
.sp-tile small { font-size: 10.5px; line-height: 1.15; color: #d9cdb8; }
.sp-tile i { font-style: normal; font-size: 10px; color: #9be07a; } .sp-tile i del { color: #9a8f7c; }
@media (max-width: 359px) { .sp-tile b { font-size: 15px; } .sp-hero { height: 78px; } }
.sp-pic { position: relative; } .sp-pic .dl-inf { position: absolute; right: -10px; bottom: -2px; top: auto; left: auto; font-size: 14px; }

/* Always available (Gage 11-04): what the Locker used to sell, one category at a time in a row you swipe, after Featured. */
.so-always-tabs { display: flex; gap: 4px; margin: 6px 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.so-always-tabs::-webkit-scrollbar { display: none; }
.so-always-tabs button { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 40px; margin: 0; padding: 0 10px; background: #22241e; border: 1px solid #5b4e3a; color: #d8cfbf; font: 400 14px var(--display); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.so-always-tabs button .wi { width: 16px; height: 16px; }
.so-always-tabs button.on { background: #89282c; border-color: #f3aa7c; color: #fff; }
.so-always-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 18px) / 4); gap: 6px; padding-bottom: 3px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.so-always-row::-webkit-scrollbar { display: none; }
.so-always-row > .so-item { scroll-snap-align: start; }
#so-always { scroll-margin-top: 76px; } /* clear of the sticky Item Shop | Store tabs when the Locker's card scrolls here */
.so-featured > .so-featured-h { margin: 12px 3px 0; }
.so-featured > .so-shelf-coins > .kit-h { margin-top: 4px; font-size: 16px; }
.so-featured > .so-shelf-gems > .kit-h { font-size: 16px; }
@media (max-width: 370px) { .so-always-row { gap: 4px; grid-auto-columns: calc((100% - 12px) / 4); } }
