/* The store (js/shop.js). Left: a clear window onto the game, where your hero wears what you pick.
   Right: the catalog. Cinzel for names and titles, Oswald for labels and numbers, Crimson Pro to read. */
@font-face { font-family: 'Crimson Pro'; src: url('../assets/fonts/CrimsonPro-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Crimson Pro'; src: url('../assets/fonts/CrimsonPro-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Crimson Pro'; src: url('../assets/fonts/CrimsonPro-400i.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

#hs-shop {
  --ink: #0b0908; --panel: #110e0c; --line: #2b2219; --line2: #46382a; --gold: #d9b56a; --gold2: #f3dc9c; --text: #e9dfcd; --dim: #978b78; --ember: #ff7a1e;
  position: fixed; inset: 0; z-index: 20; display: flex; font-family: Oswald, 'Arial Narrow', sans-serif; color: var(--text); user-select: none; -webkit-user-select: none;
}
#hs-shop[hidden] { display: none; }
.hs-in-store .hs-nudge { display: none; }          /* (the save nudges would sit over the store's header) */
#hs-shop button { font-family: inherit; cursor: pointer; }
#hs-shop .br { display: inline-block; width: 1.05em; height: 1.05em; margin-right: 0.28em; vertical-align: -0.16em; background: url(../assets/ui/shop/brimstone.png) center / contain no-repeat; filter: drop-shadow(0 0 3px rgba(255, 140, 40, 0.55)); }

/* ---- the stage: the game shows through */
.sh-stage { position: relative; flex: 1 1 40%; min-width: 0; cursor: grab; background: radial-gradient(ellipse 60% 55% at 50% 52%, transparent 55%, rgba(5, 4, 3, 0.55) 100%); }
.sh-stage:active { cursor: grabbing; }
.sh-stage-top { position: absolute; top: 18px; left: 22px; right: 22px; display: flex; align-items: center; gap: 12px; }
.sh-trying { font: 400 14px 'Crimson Pro', serif; font-style: italic; color: #cbbd9f; text-shadow: 0 1px 3px #000, 0 0 12px #000; }
.sh-trying b { font: 600 13px Oswald, sans-serif; font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold2); }
.sh-reset { padding: 4px 10px; font-size: 11px !important; letter-spacing: 0.12em; text-transform: uppercase; color: #cbbd9f; background: rgba(12, 10, 8, 0.8); border: 1px solid var(--line2); }
.sh-reset:hover { color: #fff; border-color: var(--gold); }
.sh-stage-hint { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(214, 200, 170, 0.55); text-shadow: 0 1px 2px #000; pointer-events: none; }

/* ---- the panel */
.sh-panel { position: relative; flex: 0 0 min(760px, 60vw); display: flex; flex-direction: column; min-height: 0; background: linear-gradient(90deg, rgba(8, 7, 6, 0.92), var(--panel) 18px), url(../assets/ui/slate.jpg) center / 640px; background-blend-mode: normal, soft-light; border-left: 1px solid var(--line2); box-shadow: -1px 0 0 #000, -30px 0 60px rgba(0, 0, 0, 0.55); animation: sh-in 0.26s cubic-bezier(.2, .9, .3, 1); }
@keyframes sh-in { from { transform: translateX(40px); opacity: 0; } }
.sh-panel::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255, 190, 110, 0.05), transparent 120px); }
.sh-head { display: flex; align-items: center; gap: 16px; padding: 16px 20px 14px 26px; border-bottom: 1px solid var(--line); }
.sh-title { flex: 1; font: 600 22px Cinzel, serif; letter-spacing: 0.08em; color: #bfae8e; }
.sh-title b { font-weight: 600; color: var(--gold2); text-shadow: 0 0 18px rgba(243, 200, 110, 0.25); }
.sh-wallet { display: flex; align-items: stretch; border: 1px solid var(--line2); background: rgba(0, 0, 0, 0.45); }
.sh-bal { display: flex; align-items: center; padding: 0 14px; font-size: 17px; font-weight: 600; letter-spacing: 0.04em; color: #fff4dc; min-width: 64px; }
.sh-get { padding: 7px 14px; font-size: 12px !important; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #231306; background: linear-gradient(#f4d489, #d9a346 60%, #a5711f); border: 0; border-left: 1px solid #000; box-shadow: inset 0 1px 0 #fff2c4; }
.sh-get:hover { filter: brightness(1.1); box-shadow: inset 0 1px 0 #fff, 0 0 16px rgba(255, 190, 80, 0.4); }
.sh-x { width: 34px; height: 34px; font-size: 15px; color: var(--dim); background: none; border: 1px solid transparent; }
.sh-x:hover { color: #fff; border-color: var(--line2); }

/* the category rail (a row of tabs on small screens) */
.sh-main { flex: 1; min-height: 0; display: flex; }
.sh-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sh-cats { flex: none; width: 168px; padding: 12px 0; border-right: 1px solid var(--line); background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.15)); overflow-y: auto; scrollbar-width: none; }
.sh-cats::-webkit-scrollbar { display: none; }
.sh-cats hr { margin: 10px 18px; border: 0; border-top: 1px solid var(--line); }
.sh-cats button { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 16px 10px 20px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; text-align: left; color: var(--dim); background: none; border: 0; }
.sh-cats button i { font-style: normal; font-size: 11px; letter-spacing: 0.04em; color: #5f5548; }
.sh-cats button:hover { color: #e8dcc4; background: rgba(255, 220, 160, 0.03); }
.sh-cats button.on { color: var(--gold2); background: linear-gradient(90deg, rgba(217, 181, 106, 0.14), transparent 85%); box-shadow: inset 2px 0 0 var(--gold); }
.sh-cats button.on i { color: #a8925e; }

.sh-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px 18px 24px; scrollbar-width: thin; scrollbar-color: #4a3a28 transparent; }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sh-feature { grid-column: 1 / -1; }
.sh-empty { grid-column: 1 / -1; padding: 50px 0; text-align: center; font: italic 400 18px 'Crimson Pro', serif; color: var(--dim); }

/* cards: the look framed on its own, then its tier, name and price on a foot below (nothing covers the art) */
.sh-card { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: left; color: inherit; background: linear-gradient(180deg, #16120e, #0d0b09); border: 1px solid var(--line); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6); transition: transform 0.16s, border-color 0.16s, box-shadow 0.2s; }
.sh-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; background: linear-gradient(90deg, transparent, var(--t) 20%, var(--t) 80%, transparent); opacity: 0.9; }
.sh-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--t) 60%, #000); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 22px color-mix(in srgb, var(--c) 22%, transparent); }
.sh-card.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 26px color-mix(in srgb, var(--c) 35%, transparent); }
.sh-frame { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(ellipse 70% 60% at 50% 48%, color-mix(in srgb, var(--c) 26%, #15100c), #0a0807 72%); }
.sh-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 -22px 26px -12px #0d0b09, inset 0 0 40px rgba(0, 0, 0, 0.35); }
.sh-art { position: absolute; inset: 0; background-image: var(--art); background-size: cover; background-position: center; transition: transform 0.4s; }
.sh-card:hover .sh-art { transform: scale(1.05); }
.sh-foot { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 7px 10px 9px; border-top: 1px solid rgba(255, 220, 160, 0.06); }
.sh-kind { display: flex; align-items: center; gap: 5px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--t); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-kind i { flex: none; width: 6px; height: 6px; transform: rotate(45deg); background: var(--t); box-shadow: 0 0 6px var(--t); }
.sh-name { font: 600 14px/1.15 Cinzel, serif; letter-spacing: 0.02em; color: #f2e7d2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-price, .sh-own, .sh-excl-p { margin-top: 2px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: #ffe7b4; }
.sh-price s { margin-right: 6px; font-size: 12px; font-weight: 500; color: #7d7163; }
.sh-own { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #9fd48a; }
.sh-own::before { content: '✓ '; }
.sh-excl-p { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #e0b4ff; }
.sh-card.owned .sh-art { filter: saturate(0.8) brightness(0.9); }
/* ribbons: a deal, a bundle's saving, a supporter exclusive; and the classes a skin fits, if not this hero's */
.sh-rib { position: absolute; top: 8px; left: 0; z-index: 2; padding: 3px 9px 3px 8px; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #fff0c8; background: linear-gradient(90deg, #b8480c, #8a2f06); clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 50%, 100% 100%, 0 100%); text-shadow: 0 1px 1px #000; }
.sh-rib-deal { background: linear-gradient(90deg, #d0302a, #8a1410); }
.sh-rib-ex { background: linear-gradient(90deg, #7a3ce0, #4a1a9a); }
.sh-unfit { position: absolute; right: 6px; bottom: 6px; z-index: 2; max-width: calc(100% - 12px); padding: 2px 6px; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #cbbd9f; background: rgba(8, 6, 5, 0.8); border: 1px solid var(--line2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* hover: embers rise from the card's foot */
.sh-card::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.25s;
  background: radial-gradient(1.5px 1.5px at 18% 80%, #ffd28a, transparent), radial-gradient(1px 1px at 42% 92%, #ffb45a, transparent), radial-gradient(1.5px 1.5px at 66% 86%, #ffe0a8, transparent), radial-gradient(1px 1px at 82% 95%, #ff9a40, transparent), radial-gradient(1px 1px at 30% 99%, #ffcf80, transparent),
    radial-gradient(ellipse 80% 45% at 50% 108%, rgba(255, 110, 30, 0.3), transparent 70%); }
.sh-card:hover::after { opacity: 1; animation: sh-embers 2.4s linear infinite; }
@keyframes sh-embers { from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; } to { background-position: 0 -120px, 0 -160px, 0 -100px, 0 -140px, 0 -180px, 0 0; } }
/* the featured banner: wide art, the words on its dark left */
.sh-big { width: 100%; aspect-ratio: 21 / 8; display: block; }
.sh-big .sh-art { background-position: right center; }
.sh-big .sh-rib { top: 12px; left: auto; right: 0; padding: 4px 10px 4px 14px; font-size: 11px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%); }
.sh-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 6, 5, 0.95) 0%, rgba(8, 6, 5, 0.72) 36%, transparent 64%); }
.sh-big .sh-text { position: absolute; left: 28px; top: 0; bottom: 0; z-index: 2; width: 46%; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.sh-big .sh-name { font-size: 28px; white-space: normal; text-shadow: 0 2px 6px #000; }
.sh-blurb { font: italic 400 16px/1.3 'Crimson Pro', serif; color: #cdbf9f; text-shadow: 0 1px 3px #000; }
.sh-big .sh-price, .sh-big .sh-own, .sh-big .sh-excl-p { margin-top: 6px; font-size: 18px; }
/* the featured page's sections */
.sh-sec { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; margin: 10px 0 -2px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.sh-sec h3 { margin: 0; font: 600 15px Cinzel, serif; letter-spacing: 0.08em; color: var(--gold2); }
.sh-sec span { font: italic 400 15px 'Crimson Pro', serif; color: var(--dim); }
.sh-sup-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sh-sup-s { display: flex; align-items: stretch; gap: 0; padding: 0; overflow: hidden; text-align: left; color: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 18%, #120e0b), #0e0b09); border: 1px solid color-mix(in srgb, var(--c) 45%, #000); transition: transform 0.16s, box-shadow 0.2s; }
.sh-sup-s:hover { transform: translateY(-2px); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 30%, transparent); }
.sh-sup-s .sh-sup-art { flex: none; width: 34%; max-width: 104px; aspect-ratio: 4 / 5; background: center / cover; }
.sh-sup-st { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 10px; --t: var(--c); }
.sh-sup-st b { font: 600 15px/1.15 Cinzel, serif; color: #f6ecd8; }
.sh-sup-st > span:last-child { font-size: 15px; font-weight: 600; color: #ffe7b4; }
/* the supporter packs page */
.sh-grid.sh-list { grid-template-columns: minmax(0, 1fr); }
.sh-sup-intro { font: italic 400 17px/1.35 'Crimson Pro', serif; color: #c9bda6; padding: 0 2px 4px; }
.sh-sup { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: start; padding: 12px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 16%, #120e0b), #0e0b09 70%); border: 1px solid color-mix(in srgb, var(--c) 50%, #000); box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.06); --t: var(--c); }
.sh-sup.owned { opacity: 0.8; }
.sh-sup .sh-sup-art { position: relative; aspect-ratio: 4 / 5; background: #0a0807 center / cover; border: 1px solid var(--line2); box-shadow: 0 0 30px color-mix(in srgb, var(--c) 25%, transparent); }
.sh-sup-n { margin: 2px 0 8px; font: 600 22px Cinzel, serif; color: #fff1d2; }
.sh-sup-l { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.sh-sup-l li { display: flex; align-items: center; gap: 8px; min-width: 0; font: 400 15px/1.2 'Crimson Pro', serif; color: #d8cbb0; }
.sh-sup-l li span { flex: none; width: 30px; height: 30px; background: #0a0807 center / cover; border: 1px solid var(--line2); }
.sh-sup-l li.ex { color: #f3e2ff; } .sh-sup-l li.ex span { border-color: #8a5ae0; box-shadow: 0 0 10px rgba(160, 100, 255, 0.4); }
.sh-sup-l li em { font: 600 9.5px Oswald, sans-serif; font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; color: #c9a0ff; }
.sh-sup-l li.inc span { background: none; border: 0; width: 30px; text-align: center; }
.sh-sup-l li.inc span::before { content: '+'; font: 600 18px Oswald; color: var(--c); }
.sh-sup-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 220, 160, 0.08); }
.sh-sup-br { font-size: 15px; font-weight: 600; letter-spacing: 0.03em; color: #ffe7b4; white-space: nowrap; }
.sh-sup-act .sh-btn { min-width: 130px; font-size: 16px !important; }
.sh-sup-link { display: block; width: 100%; margin-top: 14px; padding: 10px; font-size: 13px; letter-spacing: 0.08em; color: #e0c8ff; background: linear-gradient(90deg, rgba(122, 60, 224, 0.25), rgba(122, 60, 224, 0.08)); border: 1px solid #5a3a9a; }
.sh-sup-link:hover { color: #fff; border-color: #a070ff; }
.sh-cats button.sh-cat-sup { color: #d6b8ff; }
.sh-cats button.sh-cat-sup.on { color: #f0e0ff; background: linear-gradient(90deg, rgba(160, 100, 255, 0.18), transparent 85%); box-shadow: inset 2px 0 0 #a070ff; }

/* ---- the chosen item */
.sh-detail { display: flex; align-items: center; gap: 16px; min-height: 104px; padding: 14px 20px 16px 24px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.55)); }
.sh-d-empty { flex: 1; text-align: center; font: italic 400 16px 'Crimson Pro', serif; color: var(--dim); }
#hs-shop:not(.sh-picked) .sh-detail { min-height: 0; padding-top: 9px; padding-bottom: 10px; }
.sh-d-art { flex: none; width: 72px; height: 90px; background: #0d0b09 center / cover; border: 1px solid var(--line2); box-shadow: inset 0 2px 0 var(--t); }
.sh-d-text { flex: 1; min-width: 0; }
.sh-d-tier { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.sh-d-name { margin: 1px 0 3px; font: 600 20px Cinzel, serif; color: #f6ecd8; }
.sh-d-blurb { font: 400 16px/1.3 'Crimson Pro', serif; color: #c9bda6; }
.sh-d-incl { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.sh-d-incl span { padding: 2px 7px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #d8c79f; border: 1px solid var(--line2); background: rgba(0, 0, 0, 0.35); }
.sh-d-note { margin-top: 4px; font-size: 12px; letter-spacing: 0.04em; color: var(--dim); }
.sh-d-act { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sh-d-was { font-size: 12px; color: var(--dim); } .sh-d-was s { color: #8a7c6a; }

.sh-btn { padding: 11px 20px; font-size: 13px !important; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #d8cbb0; background: linear-gradient(#26211b, #15120f); border: 1px solid #000; box-shadow: inset 0 0 0 1px var(--line2); transition: filter 0.12s, box-shadow 0.12s; white-space: nowrap; }
.sh-btn:hover:not(:disabled) { color: #fff; box-shadow: inset 0 0 0 1px var(--gold); }
.sh-btn:disabled { opacity: 0.55; cursor: default; }
.sh-gold { color: #211205 !important; background: linear-gradient(#f6d98e, #dca94b 55%, #a8731f) !important; box-shadow: inset 0 1px 0 #fff4c8, 0 0 0 1px #000 !important; }
.sh-gold:hover:not(:disabled) { filter: brightness(1.08); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #000, 0 0 20px rgba(255, 190, 80, 0.45) !important; }
.sh-gold .br { filter: none; }

/* ---- dialogs */
.sh-modal { position: fixed; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 3, 2, 0.72); backdrop-filter: blur(3px); animation: sh-fade 0.16s ease-out; }
.sh-modal[hidden] { display: none; }
@keyframes sh-fade { from { opacity: 0; } }
.sh-dialog { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px 26px 22px; background: linear-gradient(180deg, #19140f, #0e0c0a 40%); border: 1px solid var(--line2); box-shadow: 0 0 0 3px #000, 0 24px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 215, 150, 0.08); animation: sh-pop 0.22s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes sh-pop { from { transform: translateY(10px) scale(0.97); opacity: 0; } }
.sh-dl-title { font: 600 22px Cinzel, serif; color: var(--gold2); text-align: center; }
.sh-dl-sub { margin: 4px 0 16px; text-align: center; font: 400 17px 'Crimson Pro', serif; color: #c7b99c; }
.sh-dl-sum { display: flex; justify-content: space-between; padding: 8px 2px; font-size: 14px; letter-spacing: 0.06em; color: var(--dim); border-bottom: 1px solid var(--line); }
.sh-dl-sum:first-of-type { margin-top: 16px; }
.sh-dl-sum b { font-size: 16px; color: #fbeccb; } .sh-dl-sum b.bad { color: #ff8a6a; }
.sh-dl-after { border-bottom: 0; }
.sh-dl-row { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.sh-dl-row .sh-btn { flex: 1; }

.sh-packs-dl { width: min(820px, 100%); }
.sh-starter { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; margin-bottom: 16px; padding: 10px 14px 10px 10px; text-align: left; color: inherit; background: linear-gradient(90deg, #2a1a0c, #16100b 60%); border: 1px solid #8a6a2a; box-shadow: inset 0 1px 0 rgba(255, 215, 150, 0.1), 0 0 22px rgba(255, 150, 50, 0.12); }
.sh-starter:hover { border-color: var(--gold); box-shadow: 0 0 26px rgba(255, 170, 60, 0.3); }
.sh-starter-art { flex: none; width: 64px; height: 80px; background: center 35% / cover; border: 1px solid var(--line2); }
.sh-starter-t { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.sh-starter-t .sh-pack-tag { position: static; transform: none; align-self: flex-start; }
.sh-starter-t b { font: 600 20px Cinzel, serif; color: #fff1d2; }
.sh-starter-t > span:last-child { font: 400 15px 'Crimson Pro', serif; color: #d6c7a6; }
.sh-starter .sh-pack-price { flex: none; width: 110px; margin: 0; text-align: center; }
.sh-packs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.sh-pack { position: relative; display: flex; flex-direction: column; align-items: center; padding: 14px 8px 12px; color: inherit; background: linear-gradient(180deg, #1c1611, #0f0c0a); border: 1px solid var(--line2); box-shadow: inset 0 1px 0 rgba(255, 215, 150, 0.06); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; animation: sh-pop 0.3s calc(var(--i) * 0.04s) both; }
.sh-pack:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 150, 50, 0.22); }
.sh-pack.fit { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 22px rgba(255, 180, 70, 0.3); }
.sh-pack-tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 2px 8px; font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; color: #231306; background: linear-gradient(#f4d489, #d9a346); }
.sh-pack-art { width: 100%; aspect-ratio: 1; background: center / contain no-repeat; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6)); }
.sh-pack-pts { margin-top: 6px; font-size: 22px; font-weight: 700; letter-spacing: 0.02em; color: #fff0cf; }
.sh-pack-bonus { font-size: 11px; letter-spacing: 0.04em; color: #e8a860; }
.sh-pack-price { margin-top: 10px; width: 100%; padding: 7px 0; font-size: 15px; font-weight: 600; letter-spacing: 0.06em; color: #211205; background: linear-gradient(#f6d98e, #dca94b 55%, #a8731f); box-shadow: inset 0 1px 0 #fff4c8; }
.sh-test { margin-top: 14px; padding: 8px 10px; font-size: 12px; line-height: 1.5; letter-spacing: 0.02em; color: #bfae8c; background: rgba(90, 70, 20, 0.14); border: 1px dashed #5d4a2a; text-align: center; }
.sh-test code { padding: 0 4px; font: 500 12px Oswald, monospace; color: #ffe2a0; background: rgba(0, 0, 0, 0.4); cursor: pointer; white-space: nowrap; }
.sh-test code:hover { color: #fff; outline: 1px solid var(--gold); }

.sh-checkout { width: min(460px, 100%); }
.sh-co-order { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.sh-co-art { width: 52px; height: 52px; flex: none; background: center / contain no-repeat; }
.sh-co-order > div { flex: 1; }
.sh-co-pts { font-size: 18px; font-weight: 600; color: #fff0cf; } .sh-co-bonus { font-size: 12px; color: #e8a860; }
.sh-co-order > .sh-co-total { flex: none; font-size: 20px; font-weight: 600; color: #fff; }
.sh-co-form label { display: block; margin-bottom: 12px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #b8a888; }
.sh-in { position: relative; margin-top: 5px; }
.sh-in input { display: block; box-sizing: border-box; width: 100%; padding: 11px 12px; font: 500 16px Oswald, sans-serif; letter-spacing: 0.06em; color: #fff; background: #0a0908; border: 1px solid #3d3122; border-radius: 2px; outline: none; user-select: text; -webkit-user-select: text; }
.sh-in input::placeholder { color: #5d544a; }
.sh-in input:focus { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(232, 176, 74, 0.35); }
.sh-card-in input { padding-right: 58px; }
.sh-brand { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: #8a7c66; }
.sh-brand.visa::after { content: 'VISA'; color: #d8e4ff; font-style: italic; } .sh-brand.mc::after { content: 'MASTERCARD'; font-size: 9px; color: #ffb36a; } .sh-brand.amex::after { content: 'AMEX'; color: #9ad4ff; }
.sh-co-two { display: flex; gap: 12px; } .sh-co-two label { flex: 1; }
.sh-co-err { min-height: 18px; margin: -2px 0 8px; font-size: 13px; letter-spacing: 0.02em; color: #ff8a70; }
.sh-pay { display: block; width: 100%; padding: 13px; font-size: 15px !important; }
.sh-co-safe { margin-top: 10px; text-align: center; font-size: 11px; letter-spacing: 0.04em; color: #7f7464; }
.sh-co-safe::before { content: ''; display: inline-block; width: 10px; height: 12px; margin-right: 6px; vertical-align: -2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M2.5 5V3.5a2.5 2.5 0 0 1 5 0V5' fill='none' stroke='%237f7464' stroke-width='1.4'/%3E%3Crect x='1' y='5' width='8' height='7' rx='1' fill='%237f7464'/%3E%3C/svg%3E") center / contain no-repeat; }
.sh-stripe { min-height: 180px; margin-bottom: 12px; }

.sh-bank-dl { width: min(380px, 100%); background: #f4f2ee; border-color: #c9c4ba; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8); color: #222; }
.sh-bank-head { margin: -24px -26px 18px; padding: 10px 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: #1f3a68; }
.sh-bank-t { font: 600 20px Oswald, sans-serif; color: #1a1a1a; } .sh-bank-s { margin-top: 6px; font: 400 16px 'Crimson Pro', serif; color: #444; }
.sh-bank-dl .sh-btn { color: #333; background: #fff; box-shadow: inset 0 0 0 1px #bbb; }
.sh-bank-dl .sh-gold { color: #fff !important; background: #1f3a68 !important; box-shadow: none !important; }

.sh-win { width: min(400px, 100%); text-align: center; overflow: hidden; }
.sh-won-art { width: 140px; height: 170px; margin: 0 auto 12px; background: center 35% / cover; border: 1px solid var(--line2); box-shadow: 0 0 40px color-mix(in srgb, var(--c) 45%, transparent); }
.sh-won-t { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: #9fd48a; }
.sh-won-n { margin: 4px 0 8px; font: 600 26px Cinzel, serif; color: #fff1d2; }
.sh-won-s { font: 400 16px 'Crimson Pro', serif; color: #c7b99c; }
.sh-won-br .sh-won-n { font: 700 40px Oswald, sans-serif; color: #fff1d2; text-shadow: 0 0 24px rgba(255, 170, 60, 0.5); }
.sh-won-burst { position: absolute; left: 50%; top: 30%; width: 360px; height: 360px; margin: -180px 0 0 -180px; pointer-events: none; background: radial-gradient(circle, rgba(255, 170, 60, 0.35), transparent 60%); animation: sh-burst 1.4s ease-out both; }
@keyframes sh-burst { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }

.sh-toast { position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%); z-index: 3; padding: 10px 18px; font-size: 14px; letter-spacing: 0.04em; color: #f2e6cf; background: rgba(14, 11, 9, 0.96); border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); animation: sh-pop 0.2s; }
.sh-toast.bad { color: #ffb09a; border-color: #6a3024; }

/* the stash tab editor (outside the store) */
#hs-tabedit { position: fixed; inset: 0; z-index: 21; display: flex; align-items: center; justify-content: center; background: rgba(4, 3, 2, 0.6); font-family: Oswald, sans-serif; color: #e9dfcd; --line: #2b2219; --line2: #46382a; --gold: #d9b56a; --gold2: #f3dc9c; --dim: #978b78; }
#hs-tabedit[hidden] { display: none; }
#hs-tabedit button { font-family: inherit; cursor: pointer; }
.sh-tabedit { width: min(340px, 100%); }
.sh-tabedit .sh-co-form { margin-top: 14px; }
.sh-swatches { display: flex; gap: 8px; margin-top: 6px; }
.sh-swatches button { width: 30px; height: 30px; padding: 0; background: var(--c); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.sh-swatches button.on { outline: 2px solid #fff3cf; outline-offset: 1px; }

/* ---- phones and small windows: a compact header, the catalog wide, the chosen item a sheet that slides up */
#hs-shop { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.sh-d-x { display: none; }
@media (max-width: 900px), (max-height: 520px) {
  .sh-panel { flex: 1 1 64vw; min-width: 0; }
  .sh-head { padding: 8px 10px 8px 14px; gap: 8px; }
  .sh-title { min-width: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sh-wallet { flex: none; }
  .sh-bal { padding: 0 9px; min-width: 0; font-size: 15px; }
  .sh-get { padding: 8px 10px; font-size: 11px !important; letter-spacing: 0.1em; }
  .sh-x { flex: none; width: 40px; height: 40px; font-size: 18px; }
  .sh-body { padding: 10px 10px 14px 12px; }
  .sh-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
  .sh-foot { padding: 5px 8px 7px; }
  .sh-name { font-size: 12.5px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
  .sh-price { font-size: 13px; }
  .sh-sec h3 { font-size: 13px; } .sh-sec span { font-size: 13px; }
  .sh-col { position: relative; }
  .sh-detail { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; max-height: 82%; overflow-y: auto; flex-wrap: wrap; align-items: flex-start; gap: 10px; min-height: 0; padding: 12px 12px 14px; background: linear-gradient(180deg, #1c1611, #0e0b09); border-top: 1px solid var(--gold); box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.75); transform: translateY(105%); transition: transform 0.2s ease-out; }
  #hs-shop.sh-picked .sh-detail { transform: none; }
  .sh-d-empty { display: none; }
  .sh-d-x { display: block; position: absolute; top: 4px; right: 4px; width: 38px; height: 38px; font-size: 16px; color: var(--dim); background: none; border: 0; }
  .sh-d-art { width: 64px; height: 80px; }
  .sh-d-text { flex: 1 1 180px; padding-right: 30px; }
  .sh-d-name { font-size: 17px; }
  .sh-d-blurb { font-size: 14px; }
  .sh-d-act { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
  .sh-btn { padding: 12px 16px; }
  .sh-big { aspect-ratio: 2 / 1; }
  .sh-big .sh-text { left: 16px; width: 60%; gap: 4px; }
  .sh-big .sh-name { font-size: 20px; }
  .sh-big .sh-blurb { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .sh-big .sh-price, .sh-big .sh-own { font-size: 15px; margin-top: 2px; }
  .sh-sup-row { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .sh-sup { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .sh-sup-act .sh-btn { min-width: 0; font-size: 14px !important; }
  .sh-sup-l { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sh-sup-l li { font-size: 14px; } .sh-sup-l li span { width: 24px; height: 24px; }
  .sh-sup-n { margin-bottom: 6px; font-size: 18px; }
  .sh-sup-intro { font-size: 15px; }
  .sh-packs { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  .sh-stage-top { top: 10px; left: 12px; right: 12px; flex-wrap: wrap; }
  .sh-trying { font-size: 13px; }
  .sh-stage-hint { bottom: 10px; font-size: 10px; letter-spacing: 0.16em; }
}
/* a phone on its side: the hero keeps a third of the screen, the categories a narrow column */
@media (max-height: 520px) {
  .sh-stage { flex: 0 1 30%; }
  .sh-cats { width: 112px; padding: 6px 0; }
  .sh-cats button { padding: 8px 8px 8px 12px; font-size: 11px; letter-spacing: 0.08em; }
  .sh-cats button i { display: none; }
  .sh-cats hr { margin: 6px 12px; }
}
/* narrow and tall: the categories become a row of tabs */
@media (max-width: 900px) and (min-height: 521px) {
  .sh-main { flex-direction: column; }
  .sh-cats { display: flex; width: auto; padding: 0 8px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .sh-cats hr { display: none; }
  .sh-cats button { flex: none; width: auto; padding: 13px 12px; }
  .sh-cats button i { display: none; }
  .sh-cats button.on { background: none; box-shadow: inset 0 -2px 0 var(--gold); }
  .sh-cats button.sh-cat-sup.on { box-shadow: inset 0 -2px 0 #a070ff; }
}
@media (max-width: 600px) and (orientation: portrait) { .sh-stage { display: none; } .sh-panel { flex: 1 1 100%; } .sh-title span { display: none; } }
