/* MCWARS store (store.mcwars.net + #/store). Same premium look as site.css: glass surfaces, thin borders, rounded
   corners, pill buttons, Manrope + Sora. The animated background comes from fx.js. The stats pages live in site.css. */
:root {
  --bg: #07060a;
  --panel: rgba(20, 16, 25, .78);
  --card: rgba(13, 10, 17, .7);
  --chip: rgba(255, 255, 255, .06);
  --sline: rgba(255, 255, 255, .08);
  --sline-2: rgba(255, 255, 255, .14);
  --fg: #f5f0f7;
  --muted: #a69fb0;
  --sdim: #756d80;
  --accent: #ff3ea0;
  --accent-hi: #ff62b4;
  --accent-dark: #a0175e;
  --accent-text: #ff7cc2;
  --accent-soft: rgba(255, 62, 160, .12);
  --violet: #8b5cf6;
  --gold: #f6b91d;
  --silver: #c9ced8;
  --bronze: #cd7f32;
  --blurple: #5865f2;
  --blurple-dark: #3640b5;
  --sale: #ff3ea0;
  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-disp: "Sora", "Manrope", system-ui, sans-serif;
  --s-ease: cubic-bezier(.16, 1, .3, 1);
  --s-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -28px rgba(0, 0, 0, .85);
  color-scheme: dark;
}

/* pill buttons: soft gradient face, light sheen on hover, slight lift, gentle press */
.btn3d, .b3d {
  --face: linear-gradient(135deg, #ff5cb0, #ff2f95); --glow: rgba(255, 62, 160, .85); --ink: #fff;
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--face); color: var(--ink); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; cursor: pointer; text-decoration: none;
  padding: 10px 22px; letter-spacing: -.005em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 12px 26px -14px var(--glow);
  transition: transform .3s var(--s-ease), box-shadow .3s, filter .2s, background-color .2s;
}
.btn3d::after, .b3d::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent); transform: skewX(-18deg); transition: left .7s var(--s-ease);
}
.btn3d:hover, .b3d:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 18px 34px -14px var(--glow); color: var(--ink); }
.btn3d:hover::after, .b3d:hover::after { left: 120%; }
.btn3d:active, .b3d:active { transform: translateY(0) scale(.985); }
.btn3d svg, .b3d svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn3d.discord, .b3d.blurple { --face: linear-gradient(135deg, #6b77ff, #5865f2); --glow: rgba(88, 101, 242, .85); }
.b3d.dark { --face: rgba(255, 255, 255, .06); --glow: transparent; --ink: var(--fg); border-color: var(--sline-2); box-shadow: none; }
.b3d.dark::after { display: none; }
.b3d.dark:hover { --face: rgba(255, 255, 255, .1); box-shadow: none; }
.b3d[disabled] { opacity: .55; cursor: wait; transform: none; }

.site-toast, .store-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; max-width: calc(100% - 32px);
  background: rgba(24, 19, 30, .96); color: var(--fg); font-family: var(--font-ui); font-weight: 600; font-size: 14px;
  border: 1px solid rgba(255, 62, 160, .35); border-radius: 999px; padding: 11px 20px; text-align: center;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8), 0 0 0 4px rgba(255, 62, 160, .06);
}
.store-toast.bad { border-color: rgba(226, 67, 75, .6); color: #ffd4d6; }

* { box-sizing: border-box; }
html { background: var(--bg); }
body.store-mode {
  background: transparent; color: var(--fg); font-family: var(--font-ui); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); }
button { font: inherit; color: inherit; }
body.store-mode .topbar, body.store-mode .search, body.store-mode .footer { display: none !important; }
body.store-mode .site { max-width: none; padding: 0; gap: 0; }
.shop { min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font-ui); line-height: 1.5; }
.swrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.muted { color: var(--muted); }

.sale-strip {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center;
  background: linear-gradient(90deg, #ff2f95, #ff5cb0, #ff2f95); color: #fff; font-weight: 600; font-size: 13.5px; padding: 9px 16px;
}
.sale-strip svg { width: 17px; height: 17px; fill: currentColor; }
.sale-strip b { letter-spacing: .04em; }
.sale-strip .sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }

/* header */
.sh-top {
  margin: 12px auto 0; width: calc(100% - 24px); max-width: 1280px; border-radius: 24px;
  background: rgba(13, 10, 17, .62); border: 1px solid var(--sline);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 20px 44px -20px rgba(0, 0, 0, .8);
}
.sh-row { display: flex; align-items: center; gap: 22px; padding-block: 22px; flex-wrap: wrap; }
.sh-logo { display: flex; align-items: center; gap: 14px; background: none; border: 0; padding: 0; cursor: pointer; }
.sh-crystal { width: 64px; height: 64px; filter: drop-shadow(0 0 18px rgba(255, 62, 160, .45)); transition: transform .5s var(--s-ease), filter .3s; }
.sh-word { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sh-word img { height: 40px; width: auto; }
.sh-word small { font-weight: 700; font-size: 11px; letter-spacing: .5em; color: var(--muted); padding-left: 3px; }
.sh-logo:hover .sh-crystal { transform: rotate(-8deg) scale(1.05); filter: drop-shadow(0 0 24px rgba(255, 62, 160, .6)); }
.sh-div { width: 1px; height: 56px; background: linear-gradient(transparent, var(--sline-2), transparent); }
.sh-spacer { flex: 1; }
.ppill {
  display: flex; align-items: center; gap: 14px; flex: 1 1 240px; max-width: 320px;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--sline); border-radius: 18px; padding: 10px 16px 10px 10px; color: var(--fg);
  cursor: pointer; text-decoration: none; text-align: left; transition: border-color .25s, background-color .25s, transform .3s var(--s-ease);
}
.ppill:hover { border-color: rgba(255, 62, 160, .4); background: rgba(255, 62, 160, .06); color: var(--fg); transform: translateY(-2px); }
.ppill.dc { justify-content: flex-end; padding: 10px 10px 10px 16px; }
.ppill.dc:hover { border-color: rgba(88, 101, 242, .5); background: rgba(88, 101, 242, .08); }
.ppill-ic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.ppill-ic svg { width: 22px; height: 22px; fill: currentColor; }
.ppill-ic.pink { background: linear-gradient(135deg, #ff5cb0, #ff2f95); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 22px -10px rgba(255, 62, 160, .9); }
.ppill-ic.blurple { background: linear-gradient(135deg, #6b77ff, #5865f2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 22px -10px rgba(88, 101, 242, .9); }
.ppill-ic.bare { width: auto; height: auto; color: var(--accent); }
.ppill-ic.bare svg { width: 16px; height: 16px; }
.ppill-tx { display: flex; flex-direction: column; gap: 1px; }
.ppill-tx.right { text-align: right; }
.ppill-tx b { font-family: var(--font-disp); font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.ppill-tx small { font-size: 12px; font-weight: 600; color: var(--muted); }
.ppill-tx small.ok { color: var(--accent-text); }
.ppill.small { flex: none; padding: 9px 16px; gap: 12px; border-radius: 999px; }
.ppill.small .ppill-tx b { font-size: 14.5px; }

.sh-nav { border-top: 1px solid var(--sline); }
.sh-nav-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.sh-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.sh-tabs::-webkit-scrollbar { display: none; }
.navl {
  flex: none; font-size: 14px; font-weight: 600; color: var(--muted);
  background: none; border: 0; border-radius: 999px; padding: 0 16px; min-height: 40px; cursor: pointer; transition: color .2s, background-color .2s;
}
.navl:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }
.navl.on { color: #fff; background: rgba(255, 62, 160, .16); box-shadow: inset 0 0 0 1px rgba(255, 62, 160, .38); }
.sh-acts { display: flex; align-items: center; gap: 8px; flex: none; }
.uchip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 42px; background: rgba(255, 255, 255, .04); border: 1px solid var(--sline);
  border-radius: 999px; padding: 4px 14px 4px 5px; font-weight: 600; font-size: 14px; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.uchip:hover { border-color: var(--sline-2); background: rgba(255, 255, 255, .07); }
.uchip img { width: 30px; height: 30px; border-radius: 50%; image-rendering: pixelated; }
.uchip span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uchip svg { width: 14px; height: 14px; color: var(--muted); fill: currentColor; }
.uchip.login { padding-left: 14px; }
.uchip.login svg { width: 16px; height: 16px; color: var(--fg); }
.cartbtn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; color: #fff; border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(135deg, #ff5cb0, #ff2f95); border-radius: 999px; padding: 0 18px; font-weight: 700; font-size: 14px; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 24px -12px rgba(255, 62, 160, .9); transition: transform .3s var(--s-ease), box-shadow .3s;
}
.cartbtn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 14px 30px -12px rgba(255, 62, 160, 1); }
.cartbtn svg { width: 18px; height: 18px; fill: currentColor; }
.cartbtn em { font-style: normal; background: rgba(22, 3, 14, .4); color: #fff; font-size: 11.5px; min-width: 20px; height: 20px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

/* main */
.s-main { flex: 1; display: flex; flex-direction: column; gap: 24px; padding-block: 40px 64px; }
.s-h1 { margin: 0; font-family: var(--font-disp); font-size: 44px; font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.s-head { display: flex; flex-direction: column; gap: 10px; }
.cat-desc { max-width: 720px; }
.cat-desc p { margin: 0 0 6px; }
.blk {
  background: var(--panel); border: 1px solid var(--sline); border-radius: 22px; box-shadow: var(--s-shadow);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.blk h2 { margin: 0; font-family: var(--font-disp); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.blk p { margin: 0; color: #d6cfdb; }
.blk p.muted { color: var(--muted); }
.blk .b3d { align-self: flex-start; }
.grid-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.grid-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 18px; }
.cat {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 140px; text-align: left;
  background: var(--panel); border: 1px solid var(--sline); border-radius: 22px; padding: 24px 26px; cursor: pointer; box-shadow: var(--s-shadow);
  transition: border-color .3s, transform .45s var(--s-ease), box-shadow .45s var(--s-ease);
}
.cat::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6; transition: opacity .4s;
  background: radial-gradient(70% 120% at 100% 50%, rgba(255, 62, 160, .16), transparent 60%);
}
.cat:hover { border-color: rgba(255, 62, 160, .34); transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(255, 62, 160, .5), var(--s-shadow); }
.cat:hover::before { opacity: 1; }
.cat-tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cat-tx b { font-family: var(--font-disp); font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.cat-tx em { font-style: normal; color: var(--accent-text); font-weight: 700; font-size: 13.5px; margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; }
.cat-tx em::after { content: "\2192"; transition: transform .3s var(--s-ease); }
.cat:hover .cat-tx em::after { transform: translateX(4px); }
.cat-art { width: 84px; height: 84px; object-fit: contain; flex: none; border-radius: 14px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); transition: transform .5s var(--s-ease); }
.cat:hover .cat-art { transform: scale(1.06) rotate(-3deg); }
.cat-art.letter { display: grid; place-items: center; font-size: 40px; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); border-radius: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps li span:last-child { padding-top: 4px; }
.step { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--accent-soft); border: 1px solid rgba(255, 62, 160, .25); color: var(--accent-text); font-weight: 700; font-size: 13.5px; display: flex; align-items: center; justify-content: center; }
.act-card h2 { font-size: 17px; }
.act-top { display: flex; align-items: center; gap: 14px; }
.act-top img { border-radius: 12px; image-rendering: pixelated; }
.act-top div { display: flex; flex-direction: column; gap: 2px; }
.act-top b { font-size: 18px; }
.act-top span { color: var(--muted); }
.act-recent { display: flex; flex-wrap: wrap; gap: 8px; }
.act-recent img { border-radius: 9px; image-rendering: pixelated; }
/* sale bits (shown only while Tebex really discounts packages) */
.sale-box { display: flex; align-items: center; gap: 18px; background: var(--panel); border: 1px solid rgba(255, 62, 160, .45); border-radius: 20px; padding: 16px 18px; }
.sale-off { display: flex; align-items: center; gap: 8px; color: var(--accent-text); }
.sale-off b { font-family: var(--font-disp); font-size: 40px; line-height: 1; font-weight: 600; }
.sale-off span { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; line-height: 1.2; }
.sale-timer { display: flex; flex-direction: column; gap: 6px; }
.sale-timer small { color: var(--muted); font-size: 12px; }
.cd { display: flex; gap: 6px; }
.cd-box { min-width: 50px; background: rgba(255, 255, 255, .05); border: 1px solid var(--sline); border-radius: 12px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; }
.cd-box b { font-size: 20px; font-variant-numeric: tabular-nums; }
.cd-box small { font-size: 10px; color: var(--muted); }

.empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 56px 24px; color: var(--muted);
  background: var(--panel); border: 1px solid var(--sline); border-radius: 22px; box-shadow: var(--s-shadow);
}
.empty b { font-family: var(--font-disp); color: var(--fg); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }

/* packages */
.grid-pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.pkg {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  background: var(--panel); border: 1px solid var(--sline); border-radius: 22px; box-shadow: var(--s-shadow); padding: 26px 20px 20px;
  transition: transform .45s var(--s-ease), border-color .3s, box-shadow .45s var(--s-ease);
}
.pkg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 55% at 50% 0%, rgba(255, 62, 160, .16), transparent 70%); opacity: .7; transition: opacity .4s; }
.pkg:hover { transform: translateY(-4px); border-color: rgba(255, 62, 160, .3); box-shadow: 0 30px 60px -30px rgba(255, 62, 160, .5), var(--s-shadow); }
.pkg:hover::before { opacity: 1; }
.pkg.on-sale { border-color: rgba(255, 62, 160, .45); }
.pkg-sale { position: absolute; top: 14px; right: 14px; font-size: 12.5px; font-weight: 700; background: linear-gradient(135deg, #ff5cb0, #ff2f95); color: #fff; border-radius: 999px; padding: 4px 10px; }
.pkg-media { width: 132px; height: 132px; display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; }
.pkg-media img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .55)); transition: transform .5s var(--s-ease); }
.pkg:hover .pkg-media img { transform: translateY(-4px) scale(1.05) rotate(-2deg); }
.pkg-letter { width: 110px; height: 110px; display: grid; place-items: center; font-size: 50px; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); border-radius: 24px; }
.pkg-name { margin: 0; font-family: var(--font-disp); font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; }
.price b { font-family: var(--font-disp); font-size: 20px; font-weight: 600; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.price del { color: var(--sdim); font-size: 14px; }
.per { font-size: 13px; font-weight: 600; color: var(--muted); }
.pkg-actions { display: flex; gap: 10px; width: 100%; margin-top: auto; padding-top: 6px; }
.pkg-actions .b3d { flex: 1; font-weight: 700; min-height: 46px; }
.infob {
  flex: none; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--sline); border-radius: 50%; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s;
}
.infob:hover { border-color: rgba(255, 62, 160, .45); color: var(--accent-text); background: rgba(255, 62, 160, .07); }
.infob svg { width: 18px; height: 18px; fill: currentColor; }
.b3d { font-family: var(--font-ui); font-size: 14.5px; font-weight: 700; min-height: 46px; }
.b3d.big { width: 100%; min-height: 52px; font-size: 15.5px; }

/* drawer (cart) */
.shop-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(4, 3, 6, .66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.drawer {
  position: fixed; top: 10px; right: 10px; bottom: 10px; z-index: 71; width: min(440px, calc(100% - 20px)); display: flex; flex-direction: column; overflow: hidden;
  background: rgba(18, 14, 23, .97); border: 1px solid var(--sline-2); border-radius: 24px; box-shadow: -30px 0 80px rgba(0, 0, 0, .6); animation: drawerIn .4s var(--s-ease);
}
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--sline); }
.drawer-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--font-disp); font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.drawer-head h2 svg { width: 20px; height: 20px; fill: var(--accent); }
.x { font-size: 13px; color: var(--muted); background: var(--chip); border: 1px solid var(--sline); border-radius: 50%; width: 34px; height: 34px; cursor: pointer; flex: none; transition: color .2s, background-color .2s; }
.x:hover { color: #fff; background: rgba(255, 62, 160, .5); }
.cart-lines { flex: 1; overflow-y: auto; padding: 4px 22px; }
.cline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--sline); }
.cline img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.cl-tx { flex: 1; min-width: 0; }
.cl-tx b { font-size: 15px; overflow-wrap: anywhere; }
.cl-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.summary { display: flex; flex-direction: column; gap: 14px; padding: 18px 22px 22px; border-top: 1px solid var(--sline); background: rgba(255, 255, 255, .02); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; }
.sum-total span { color: var(--muted); font-weight: 600; }
.sum-total b { font-family: var(--font-disp); font-size: 26px; font-weight: 600; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.deliver { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--sline); padding-top: 12px; }
.deliver small { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.deliver div { display: flex; align-items: center; gap: 10px; }
.deliver img { border-radius: 7px; image-rendering: pixelated; }
.deliver b { font-size: 16px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.coupons { display: flex; flex-wrap: wrap; gap: 6px; }
.coupon { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent-text); border-radius: 999px; padding: 4px 8px 4px 12px; font-weight: 700; font-size: 13px; }
.coupon button { background: none; border: 0; color: inherit; cursor: pointer; }
.field { display: flex; gap: 10px; align-items: flex-start; }
.field .name-in { flex: 1; min-width: 0; }
.field .b3d { flex: none; }
.name-in {
  font: inherit; font-size: 15px; font-weight: 500; color: var(--fg); background: rgba(255, 255, 255, .04); border: 1px solid var(--sline-2);
  border-radius: 999px; padding: 10px 18px; min-height: 46px; width: 100%; outline: none; transition: border-color .2s, box-shadow .2s;
}
.name-in:focus { border-color: rgba(255, 62, 160, .55); box-shadow: 0 0 0 4px rgba(255, 62, 160, .12); }
.name-in::placeholder { color: var(--sdim); font-weight: 400; }
.hint { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 30px; color: var(--muted); }
.cart-empty svg { width: 52px; height: 52px; fill: rgba(255, 255, 255, .14); }
.cart-empty p { margin: 0; }
.link { font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0; padding: 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .25); }
.link:hover { color: var(--fg); }

/* modals */
.modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 72; width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto;
  background: rgba(18, 14, 23, .98); border: 1px solid var(--sline-2); border-radius: 26px; box-shadow: 0 40px 100px rgba(0, 0, 0, .7);
  padding: 32px 28px 26px; display: flex; flex-direction: column; gap: 16px; animation: modalIn .4s var(--s-ease);
}
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)) scale(.98); } }
.modal-bar { position: absolute; top: 0; left: 15%; right: 15%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.modal > .x { position: absolute; top: 14px; right: 14px; }
.modal h2 { margin: 0; font-family: var(--font-disp); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.modal p { margin: 0; }
.login-modal { text-align: center; align-items: stretch; }
.login-logo { width: 72px; height: 72px; align-self: center; filter: drop-shadow(0 0 18px rgba(255, 62, 160, .45)); }
.login-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.modal-head { display: flex; align-items: center; gap: 16px; padding-right: 30px; }
.modal-head img { width: 76px; height: 76px; object-fit: contain; flex: none; }
.modal-head .price { justify-content: flex-start; }
.chat-preview { display: flex; flex-direction: column; gap: 6px; }
.chat-preview small { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--sdim); }
.chat-preview div { display: flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .45); border: 1px solid var(--sline); border-radius: 12px; padding: 9px 12px; font-weight: 600; }
.chat-preview img { image-rendering: pixelated; border-radius: 3px; }
.chat-preview i { color: #aaa; font-style: normal; }
.modal-body { color: #d6cfdb; overflow-wrap: anywhere; }
.modal-body p { margin: 0 0 8px; }
.modal-body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.modal-body img { max-width: 100%; height: auto; }

/* store footer */
.s-foot { border-top: 1px solid var(--sline); }
.s-foot .swrap { padding-block: 26px 24px; display: flex; flex-direction: column; gap: 18px; }
.sf-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sf-links { display: flex; flex-wrap: wrap; gap: 8px; }
.fbtn { font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; border: 1px solid var(--sline); background: rgba(255, 255, 255, .03); border-radius: 999px; padding: 8px 16px; transition: color .2s, border-color .2s; }
.fbtn:hover { color: var(--fg); border-color: var(--sline-2); }
.sf-line { border-top: 1px solid var(--sline); }
.sf-fine { margin: 0; font-size: 12.5px; color: var(--sdim); max-width: 760px; }
.s-foot .infob { width: 44px; height: 44px; }

@media (max-width: 900px) {
  .sh-div, .sh-spacer { display: none; }
  .sh-row { justify-content: center; padding-block: 20px; gap: 12px; }
  .sh-logo { width: 100%; justify-content: center; }
  .ppill { max-width: none; }
}
@media (max-width: 560px) {
  .sh-top { width: calc(100% - 20px); margin-top: 10px; border-radius: 22px; }
  .swrap { padding-inline: 14px; }
  .sh-tabs { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .sh-crystal { width: 50px; height: 50px; }
  .sh-word img { height: 32px; }
  .ppill { padding: 8px 12px 8px 8px; gap: 12px; }
  .ppill.dc { padding: 8px 8px 8px 12px; }
  .ppill-ic { width: 40px; height: 40px; border-radius: 12px; }
  .ppill-tx b { font-size: 15px; }
  .sh-nav-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .sh-acts { justify-content: space-between; }
  .uchip { flex: 1; min-width: 0; }
  .navl { padding: 0 13px; font-size: 13.5px; min-height: 38px; }
  .s-main { padding-block: 26px 48px; gap: 18px; }
  .s-h1 { font-size: 34px; }
  .grid-two, .grid-cats { grid-template-columns: 1fr; }
  .cat { min-height: 116px; padding: 20px; }
  .cat-tx b { font-size: 21px; }
  .cat-art { width: 66px; height: 66px; }
  .blk { padding: 22px 20px; }
  .sale-box { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .grid-pkgs { grid-template-columns: 1fr; }
  .modal { padding: 28px 18px 20px; }
  .field { flex-wrap: wrap; }
  .field .b3d { flex: 1 1 100%; }
  .drawer-head, .cart-lines, .summary { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn3d, .b3d, .cat, .pkg, .ppill, .drawer, .modal, .cat-art, .pkg-media img, .shop-backdrop { transition: none; animation: none; }
}
