/* Shop window, 3rd design (js/shop.js, owner 2026-11-24): stone game window + a RED panel inside whose palette is taken
   from the loading screen (img/loading-bg-nobar.jpg: near-black sky, blood-red glow #8e0f14 -> #d41a22, ember orange,
   silver / gold highlights). The loading art itself is the faint texture under the panel. */
.shop3 {
  --sx-ink: #0e0304; --sx-deep: #1a0506; --sx-wine: #3a080b; --sx-red: #8e0f14; --sx-hot: #d41a22; --sx-glow: #ff3b30;
  --sx-gold: #f5c84c; --sx-gold2: #e29a1a; --sx-text: #f6eeee; --sx-mute: #c8a3a3; --sx-line: rgba(255, 92, 80, .18);
}
/* flow layout inside the panel (#stage div is absolute by default) */
#stage .shx .sx-list div, #stage .shx .sx-list img, #stage .shx .sx-rail div, #stage .shx .sx-hero div, #stage .shx .sx-hero img,
#stage .shop-buy div, #stage .shop-buy img { position: relative; }
#stage .shop-buy .b3 { position: absolute; }
#stage .shop-buy .b3 div { position: absolute; }

/* ---- the red panel */
.shop3 .shx { overflow: hidden; border-radius: 4px; border: 1px solid #050101;
  background:
    radial-gradient(90% 60% at 50% -8%, rgba(212, 26, 34, .42), transparent 62%),
    radial-gradient(45% 45% at 100% 100%, rgba(255, 96, 40, .13), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(212, 26, 34, .16), transparent 70%),
    linear-gradient(180deg, rgba(38, 6, 8, .86), rgba(12, 2, 3, .93)),
    #120405 url(../img/loading-bg-nobar.jpg) center 35% / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 70, 60, .14), inset 0 0 40px rgba(0, 0, 0, .55); }
/* fine diagonal grain over the whole panel */
.shop3 .shx::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 5px); }

/* ---- hero strip */
.shop3 .sx-hero { display: flex; align-items: center; gap: 14px; padding: 0 16px 0 10px; box-sizing: border-box; z-index: 1;
  background: linear-gradient(90deg, rgba(160, 16, 22, .55), rgba(90, 8, 12, .25) 45%, rgba(0, 0, 0, .15));
  border-bottom: 1px solid var(--sx-line); box-shadow: 0 1px 0 rgba(0, 0, 0, .6); }
.shop3 .sx-heroart { width: 70px; height: 55px; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.shop3 .sx-herotext { flex: none; }
.shop3 .sx-kicker { color: #ff6a5e; font: 700 11px/1 MyriadPro, Tahoma, sans-serif; letter-spacing: 2px; text-transform: uppercase; }
.shop3 .sx-title { color: #fff; font: 700 26px/1 MyriadPro, Tahoma, sans-serif; margin-top: 3px; letter-spacing: .5px;
  text-shadow: 0 0 14px rgba(255, 50, 40, .55), 0 2px 2px rgba(0, 0, 0, .7); }
.shop3 .sx-steps { flex: 1; display: flex; justify-content: center; gap: 18px; min-width: 0; color: #ead6d6;
  font: 12px/1 MyriadPro, Tahoma, sans-serif; white-space: nowrap; }
.shop3 .sx-steps span { display: flex; align-items: center; gap: 6px; }
.shop3 .sx-steps i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .45); border: 1px solid rgba(245, 200, 76, .55); color: var(--sx-gold); font-weight: 700; font-size: 11px; }
.shop3 .sx-hero.narrow .sx-steps { gap: 12px; font-size: 11px; }
.shop3 .sx-hero.short .sx-heroart { width: 54px; height: 43px; }
.shop3 .sx-hero.short .sx-title { font-size: 22px; }
.shop3 .sx-hero.short .sx-dc { height: 36px; }
.shop3 .sx-dc { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; height: 40px; padding: 0 12px;
  border-radius: 6px; background: rgba(0, 0, 0, .42); border: 1px solid rgba(255, 255, 255, .09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.shop3 .sx-dc span { color: var(--sx-mute); font: 10px/1 MyriadPro, Tahoma, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.shop3 .sx-dc b { color: #fff; font: 700 16px/1.1 MyriadPro, Tahoma, sans-serif; margin-top: 3px; user-select: text; }

/* ---- category rail */
.shop3 .sx-rail { box-sizing: border-box; padding: 10px 0; display: flex; flex-direction: column; gap: 2px; z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .3)); border-right: 1px solid var(--sx-line); overflow: hidden; }
.shop3 .sx-cat { flex: none; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px 0 16px; cursor: pointer;
  color: #dcc4c4; font: 14px/1 MyriadPro, Tahoma, sans-serif; transition: background .12s, color .12s; }
.shop3 .sx-cat:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.shop3 .sx-cat.on { color: #fff; font-weight: 700; background: linear-gradient(90deg, rgba(212, 26, 34, .85), rgba(142, 15, 20, .35) 85%, transparent);
  box-shadow: inset 3px 0 0 var(--sx-gold); }
.shop3 .sx-cic { display: flex; width: 16px; height: 16px; flex: none; opacity: .8; }
.shop3 .sx-cat.on .sx-cic { opacity: 1; color: var(--sx-gold); }
.shop3 .sx-cname { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop3 .sx-cn { color: var(--sx-mute); font-size: 11px; font-weight: 400; min-width: 18px; text-align: right; }
.shop3 .sx-cat.on .sx-cn { color: rgba(255, 255, 255, .75); }
.shop3 .sx-railnote { margin: auto 12px 2px; padding: 10px 10px 9px; border-radius: 6px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .06);
  color: var(--sx-mute); font: 11px/1.35 MyriadPro, Tahoma, sans-serif; white-space: normal; }
.shop3 .sx-railnote b { display: block; color: #fff; font-size: 12px; margin-bottom: 3px; }
@media (max-height: 640px) { .shop3 .sx-railnote { display: none; } }

/* ---- offer list */
.shop3 .sx-list { overflow-x: hidden; overflow-y: auto; box-sizing: border-box; padding: 4px 16px 0 18px; z-index: 1;
  scrollbar-width: thin; scrollbar-color: #9b1d22 rgba(0, 0, 0, .35); }
.shop3 .sx-list::-webkit-scrollbar { width: 10px; }
.shop3 .sx-list::-webkit-scrollbar-track { background: rgba(0, 0, 0, .35); }
.shop3 .sx-list::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #b3242a, #7d1015); border-radius: 5px; border: 2px solid rgba(0, 0, 0, .35); }
.shop3 .sx-list::-webkit-scrollbar-thumb:hover { background: linear-gradient(90deg, #d23138, #96161c); }
.shop-empty { color: #e8caca; padding: 20px; font: 14px MyriadPro, Tahoma, sans-serif; }
.shop3 .sx-sec { padding-top: 14px; }
.shop3 .sx-sechead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.shop3 .sx-sectitle { color: #fff; font: 700 18px/1 MyriadPro, Tahoma, sans-serif; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); white-space: nowrap; }
.shop3 .sx-secsub { color: var(--sx-mute); font: 12px/1 MyriadPro, Tahoma, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.shop3 .sx-secline { flex: 1; min-width: 20px; height: 1px; align-self: center; background: linear-gradient(90deg, rgba(255, 92, 80, .4), transparent); }
.shop3 .sx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 12px; }
.shop3 .sx-end { height: 18px; }

/* ---- offer card */
.shop3 .sx-card { display: flex; flex-direction: column; align-items: center; height: 214px; box-sizing: border-box; padding: 0 12px 12px; cursor: pointer;
  border-radius: 8px; border: 1px solid rgba(255, 110, 95, .16); overflow: hidden;
  background: linear-gradient(180deg, rgba(74, 12, 15, .78) 0%, rgba(34, 6, 8, .9) 55%, rgba(18, 4, 5, .94) 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.shop3 .sx-card:hover { transform: translateY(-3px); border-color: rgba(255, 120, 100, .55);
  box-shadow: 0 12px 22px rgba(0, 0, 0, .5), 0 0 22px rgba(220, 30, 30, .28), inset 0 1px 0 rgba(255, 255, 255, .1); }
.shop3 .sx-card:active { transform: translateY(-1px); transition-duration: .05s; }
.shop3 .sx-card.hot-gold { border-color: rgba(245, 200, 76, .45); }
.shop3 .sx-card.hot-gold:hover { border-color: rgba(245, 200, 76, .8); }
.shop3 .sx-art { flex: none; width: calc(100% + 24px); height: 98px; display: flex; align-items: center; justify-content: center; margin: 0 -12px 4px;
  background: radial-gradient(closest-side at 50% 58%, rgba(255, 60, 48, .32), rgba(255, 60, 48, .08) 70%, transparent); pointer-events: none; }
.shop3 .sx-img { max-width: 140px; max-height: 84px; object-fit: contain; transition: transform .18s ease; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .55)); }
.shop3 .sx-img.k-crystals { max-height: 80px; }
.shop3 .sx-img.k-premium { max-width: 118px; }
.shop3 .sx-img.k-goldboxes, .shop3 .sx-img.k-containers { max-height: 86px; }
.shop3 .sx-card:hover .sx-img, .shop3 .sx-card:hover .sx-art svg { transform: scale(1.06); }
.shop3 .sx-art svg { display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); transition: transform .18s ease; }
.shop3 .sx-amt { display: flex; align-items: center; gap: 5px; color: #fff; font: 700 26px/1 MyriadPro, Tahoma, sans-serif; white-space: nowrap;
  text-shadow: 0 2px 3px rgba(0, 0, 0, .6); pointer-events: none; }
.shop3 .sx-amt img { width: 20px; height: 20px; top: -1px; }
.shop3 .sx-amt.name { font-size: 21px; }
.shop3 .sx-unit { color: #ead2d2; font: 13px/1 MyriadPro, Tahoma, sans-serif; margin-top: 5px; white-space: nowrap; pointer-events: none; }
.shop3 .sx-meta { color: var(--sx-mute); font: 11px/1 MyriadPro, Tahoma, sans-serif; margin-top: 6px; height: 11px; white-space: nowrap; pointer-events: none; }
.shop3 .sx-meta.good { color: var(--sx-gold); }
/* price = the gold button at the bottom of every card */
.shop3 .sx-buy { margin-top: auto; align-self: stretch; height: 34px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #6e3f04; background: linear-gradient(180deg, #ffe58e 0%, #f7c443 45%, #dc9315 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(120, 60, 0, .35), 0 2px 4px rgba(0, 0, 0, .45);
  color: #3a1a00; font: 700 16px/1 MyriadPro, Tahoma, sans-serif; letter-spacing: .3px; pointer-events: none; transition: filter .12s; }
.shop3 .sx-buy span { top: 1px; text-shadow: 0 1px 0 rgba(255, 240, 190, .6); }
.shop3 .sx-card:hover .sx-buy { filter: brightness(1.08) saturate(1.1); }
.shop3 .sx-card:active .sx-buy { filter: brightness(.92); box-shadow: inset 0 2px 3px rgba(120, 60, 0, .45); }
/* ribbons ("Best value" / "Popular" / "Best deal"): top-left tag */
.shop3 .sx-ribbon { position: absolute !important; left: 0; top: 10px; z-index: 2; padding: 4px 10px 3px 9px; border-radius: 0 4px 4px 0;
  font: 700 10px/1 MyriadPro, Tahoma, sans-serif; letter-spacing: 1px; text-transform: uppercase; box-shadow: 0 2px 4px rgba(0, 0, 0, .45); pointer-events: none; }
.shop3 .sx-ribbon.gold { background: linear-gradient(180deg, #ffe07a, #e5a224); color: #3a1a00; }
.shop3 .sx-ribbon.red { background: linear-gradient(180deg, #f2443c, #b3141b); color: #fff; }

/* Bundles: one wide card */
.shop3 .sx-bundle { grid-column: 1 / -1; flex-direction: row; align-items: center; height: 132px; padding: 0 18px 0 14px; gap: 14px;
  border-color: rgba(245, 200, 76, .5);
  background: radial-gradient(60% 120% at 0% 50%, rgba(255, 70, 50, .32), transparent 70%),
    linear-gradient(100deg, rgba(110, 16, 20, .9), rgba(46, 8, 10, .92) 55%, rgba(80, 40, 6, .75)); }
.shop3 .sx-bundle .sx-art { flex: 0 1 120px; min-width: 64px; width: auto; height: 100%; margin: 0; background: none; }
.shop3 .sx-bundle .sx-img { max-width: 100%; max-height: 96px; }
.shop3 .sx-bmain { flex: none; pointer-events: none; }
.shop3 .sx-bkicker { color: var(--sx-gold); font: 700 12px/1 MyriadPro, Tahoma, sans-serif; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.shop3 .sx-bamt { display: flex; align-items: center; gap: 6px; color: #fff; font: 700 38px/1 MyriadPro, Tahoma, sans-serif; text-shadow: 0 2px 4px rgba(0, 0, 0, .6); white-space: nowrap; }
.shop3 .sx-bamt img { width: 28px; height: 28px; }
.shop3 .sx-bplus { flex: 1; display: flex; flex-direction: column; gap: 10px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .12); min-width: 0; overflow: hidden; pointer-events: none; }
.shop3 .sx-bitem { display: flex; align-items: center; gap: 8px; color: #ead2d2; font: 14px/1 MyriadPro, Tahoma, sans-serif; white-space: nowrap; }
.shop3 .sx-bitem b { color: #fff; font-size: 17px; }
.shop3 .sx-bico { flex: none; width: 96px; height: 28px; display: flex; align-items: center; justify-content: center; }
.shop3 .sx-bico img { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.shop3 .sx-bico .prem { width: 52px; height: 28px; }
.shop3 .sx-bico.sups { gap: 2px; }
.shop3 .sx-bico.sups img { width: 18px; height: 18px; }
.shop3 .sx-list { container-type: inline-size; }
@container (max-width: 800px) { .shop3 .sx-bundle .sx-bico { display: none; } }
.shop3 .sx-bundle .sx-buy { flex: none; margin: 0; align-self: center; width: 136px; height: 42px; font-size: 20px; }

/* Promo codes card */
.shop3 .sx-promo { grid-column: 1 / -1; flex-direction: row; height: 74px; padding: 0 16px; gap: 16px; align-items: center; }
.shop3 .sx-ptag { flex: none; width: 92px; height: 38px; border-radius: 5px; display: flex; align-items: center; justify-content: center;
  border: 1px dashed rgba(245, 200, 76, .7); background: rgba(0, 0, 0, .4); color: var(--sx-gold); font: 700 18px/1 MyriadPro, Tahoma, sans-serif;
  letter-spacing: 2px; transform: rotate(-4deg); pointer-events: none; }
.shop3 .sx-ptext { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; pointer-events: none; }
.shop3 .sx-ptext b { color: #fff; font: 700 16px/1 MyriadPro, Tahoma, sans-serif; }
.shop3 .sx-ptext span { color: var(--sx-mute); font: 12px/1.2 MyriadPro, Tahoma, sans-serif; }
.shop3 .sx-promo .sx-buy { flex: none; margin: 0; align-self: center; width: 130px; }

/* ---- footer on the stone frame: the Promo code box (promo-box.js) */
.shop3 .shop-promo { left: 16px; bottom: 21px; right: 130px; height: 30px; }
.shop3 .shop-promo .sp-label { color: #fff; font-size: 13px; }
.shop3 .shop-promo .sp-code { width: 170px; height: 28px; padding: 0 10px; background: #160405; border: 1px solid #7a1e22; border-radius: 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .8); color: #fff; font: 700 13px MyriadPro, Tahoma, sans-serif; outline: none; }
.shop3 .shop-promo .sp-code:focus { border-color: #e0413a; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .8), 0 0 0 2px rgba(224, 65, 58, .25); }
.shop3 .shop-promo .sp-code::placeholder { color: #7d5a5a; }
.shop3 .shop-promo .sp-btn { height: 28px; box-sizing: border-box; padding: 0 18px; display: flex; align-items: center; cursor: pointer; border-radius: 4px;
  border: 1px solid #4a0608; background: linear-gradient(180deg, #e0373a, #a3121a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 1px 2px rgba(0, 0, 0, .5);
  color: #fff; font: 700 13px MyriadPro, Tahoma, sans-serif; text-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
.shop3 .shop-promo .sp-btn:hover { background: linear-gradient(180deg, #f04a4c, #b8161f); }
.shop3 .shop-promo .sp-btn:active { background: linear-gradient(180deg, #a3121a, #c8262c); }

/* ---- "How to buy" dialog: same red panel */
.dialoglayer.shop-buylayer { z-index: 22; }
.shop3 .sb-panel { border-radius: 4px; border: 1px solid #050101;
  background: radial-gradient(90% 70% at 50% -10%, rgba(212, 26, 34, .45), transparent 65%), linear-gradient(180deg, #2a0709, #110304);
  box-shadow: inset 0 0 0 1px rgba(255, 70, 60, .14), inset 0 0 30px rgba(0, 0, 0, .5); }
.shop-buy { color: #ead2d2; font: 13px/1.35 MyriadPro, Tahoma, sans-serif; white-space: normal; }
.shop-buy > div { margin-bottom: 10px; }
.shop-buy .sb-head { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 92, 80, .2); }
.shop-buy .sb-art { flex: none; width: 96px; height: 70px; display: flex; align-items: center; justify-content: center; }
.shop-buy .sb-art .sx-art { width: 96px; height: 70px; margin: 0; background: radial-gradient(closest-side, rgba(255, 60, 48, .3), transparent); }
.shop-buy .sb-art .sx-img { max-width: 92px; max-height: 64px; }
.shop-buy .sb-art svg { width: 72px; height: 64px; }
.shop-buy .sb-headtext { flex: 1; min-width: 0; }
.shop-buy .sb-title { color: #fff; font-size: 21px; font-weight: 700; line-height: 1.1; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.shop-buy .sb-what { color: var(--sx-gold); font-size: 12px; margin-top: 4px; }
.shop-buy .sb-price { flex: none; padding: 7px 12px 6px; border-radius: 6px; border: 1px solid #6e3f04; color: #3a1a00; font: 700 17px/1 MyriadPro, Tahoma, sans-serif;
  background: linear-gradient(180deg, #ffe58e, #f7c443 45%, #dc9315); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.shop-buy b { color: #fff; }
.shop-buy .sb-dc { color: var(--sx-gold) !important; }
.shop-buy .sb-row { height: 42px; border-radius: 6px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .08); }
.shop-buy .sb-dclabel { position: absolute; left: 12px; top: 15px; color: var(--sx-mute); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.shop-buy .sb-handle { position: absolute; left: 76px; top: 10px; color: #fff; font: 700 21px/1 MyriadPro, Tahoma, sans-serif; user-select: text; }
.shop-buy .sb-nick { color: #ead2d2; }
.shop-buy .sb-nick b { color: #fff; user-select: text; }
.shop-buy .sb-note { color: var(--sx-mute); font-size: 11px; margin-bottom: 0; }
