/* FuryMC Store
   Colors: primary #ff7a1a, secondary #e11d2a, background #120a07, surface #1e120c, text #fbe9df */

:root {
  --primary: #ff7a1a;
  --primary-2: #ff9a3c;
  --primary-deep: #e2560f;
  --secondary: #e11d2a;
  --bg: #120a07;
  --bg-2: #0c0604;
  --surface: #1e120c;
  --card-a: #2b160c;
  --card-b: #1a0d07;
  --line: rgba(255, 122, 26, .16);
  --line-strong: rgba(255, 122, 26, .38);
  --text: #fbe9df;
  --muted: #c9a796;
  --dim: #8f6f60;
  --gold: #ffc23d;
  --ok: #5ad37a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --glow: 0 6px 22px rgba(255, 106, 20, .45);
  --font: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-2);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }
svg { fill: currentColor; }

.wrap { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }

/* Background: warm fire art at the top, dark with drifting embers below */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(1200px 600px at 50% -5%, rgba(255, 98, 20, .22), transparent 60%),
  radial-gradient(900px 500px at 10% 30%, rgba(225, 29, 42, .10), transparent 60%),
  radial-gradient(900px 500px at 90% 60%, rgba(255, 122, 26, .07), transparent 60%),
  linear-gradient(180deg, #170b06 0%, #0f0704 55%, #0b0503 100%); }
.bg-art {
  position: absolute; left: 0; right: 0; top: 0; height: 620px;
  background:
    linear-gradient(180deg, rgba(18, 10, 7, 0) 0%, rgba(18, 10, 7, .2) 45%, #100804 100%),
    radial-gradient(60% 70% at 50% 25%, rgba(255, 140, 40, .35), transparent 70%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 34px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 34px),
    radial-gradient(45% 60% at 18% 35%, rgba(120, 30, 10, .55), transparent 70%),
    radial-gradient(45% 60% at 82% 30%, rgba(140, 45, 12, .5), transparent 70%),
    linear-gradient(180deg, #3d150a, #2a0f08);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  opacity: .9;
}
.bg-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(16px 16px at 12% 30%, rgba(255, 170, 60, .55), transparent 70%),
    radial-gradient(20px 20px at 82% 22%, rgba(255, 120, 30, .5), transparent 70%),
    radial-gradient(14px 14px at 70% 62%, rgba(255, 190, 80, .45), transparent 70%),
    radial-gradient(18px 18px at 25% 70%, rgba(255, 100, 20, .45), transparent 70%),
    radial-gradient(240px 160px at 50% 110%, rgba(255, 80, 10, .35), transparent 70%);
}
.bg-embers { position: absolute; inset: 0; }
.bg-embers i {
  position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%;
  background: #ffb35a; box-shadow: 0 0 8px 2px rgba(255, 130, 30, .8);
  opacity: 0; animation: ember linear infinite;
}
@keyframes ember {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: .9; }
  100% { transform: translate(var(--dx, 30px), -105vh); opacity: 0; }
}

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(16, 8, 5, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-links { display: flex; gap: 6px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: 14px; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-link svg { width: 16px; height: 16px; color: var(--primary); }
.nav-link:hover { color: var(--text); }
.nav-link.active { color: #fff; background: linear-gradient(180deg, var(--primary-2), var(--primary-deep)); box-shadow: var(--glow); }
.nav-link.active svg { color: #fff; }
.nav-burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; }
.nav-burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(255, 122, 26, .06); font-weight: 700; font-size: 13px;
}
.pill-btn svg { width: 15px; height: 15px; color: var(--primary); }
.user-btn, .cart-btn { display: inline-flex; align-items: center; gap: 10px; text-align: left; }
.user-btn img { width: 32px; height: 32px; border-radius: 8px; image-rendering: pixelated; }
.user-btn b, .cart-btn b { display: block; font-size: 13px; font-weight: 700; line-height: 1.1; }
.user-btn small, .cart-btn small { display: block; font-size: 11px; color: var(--muted); }
.cart-ico {
  position: relative; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, var(--primary-2), var(--primary-deep)); box-shadow: var(--glow);
}
.cart-ico svg { width: 17px; height: 17px; }
.cart-ico i {
  position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--secondary); color: #fff; font-size: 11px; font-style: normal;
  font-weight: 800; display: none; align-items: center; justify-content: center; border: 2px solid #1a0c07;
}
.cart-ico i.on { display: inline-flex; }

/* Hero */
.hero { position: relative; isolation: isolate; padding: 34px 0 26px; }
/* Banner art behind the hero, fading into the page like the Breeze header */
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: -70px; bottom: -140px; z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 8, 4, .35) 0%, rgba(16, 8, 4, .05) 35%, rgba(16, 8, 4, .25) 70%, #100804 100%),
    linear-gradient(90deg, rgba(16, 8, 4, .55) 0%, transparent 25%, transparent 75%, rgba(16, 8, 4, .55) 100%),
    radial-gradient(40% 55% at 50% 40%, rgba(16, 8, 4, .45), transparent 75%),
    url("hero-bg.jpg") center 45% / cover no-repeat,
    radial-gradient(60% 80% at 50% 30%, #6b1d0a, #2a0f08 80%);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
.hero { padding-top: 70px; padding-bottom: 40px; }
.hero-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.hero-side { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.hero-discord { justify-self: end; }
.hero-circle {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(180deg, var(--primary-2), var(--primary-deep));
  box-shadow: 0 0 0 6px rgba(255, 122, 26, .14), var(--glow);
  transition: transform .2s;
}
.hero-circle svg { width: 22px; height: 22px; }
.hero-circle.discord { background: linear-gradient(180deg, #ff5a52, #c4141f); box-shadow: 0 0 0 6px rgba(225, 29, 42, .16), 0 6px 22px rgba(225, 29, 42, .45); }
.hero-side:hover .hero-circle { transform: scale(1.07); }
.hero-text b { white-space: nowrap; display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; letter-spacing: .3px; }
.hero-text small { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; color: var(--muted); }
.hero-text.right { text-align: right; }
.hero-text.right b { justify-content: flex-end; }
.count {
  font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
  background: #fff; color: var(--primary-deep);
}
.hero-logo { display: flex; flex-direction: column; align-items: center; gap: 2px; transition: transform .3s; }
.hero-logo:hover { transform: translateY(-3px) scale(1.02); }
.hero-logo img { width: 118px; height: auto; filter: drop-shadow(0 10px 30px rgba(255, 90, 20, .55)); animation: float 5s ease-in-out infinite; }
.logo-word {
  font-size: 46px; font-weight: 900; letter-spacing: 2px; line-height: 1;
  color: #fff4e6;
  text-shadow: 0 3px 0 #ff7a1a, 0 6px 0 #b8410c, 0 10px 24px rgba(255, 90, 20, .6);
}
.logo-word span { color: var(--primary); text-shadow: 0 3px 0 #ffcf8a, 0 6px 0 #9b2e08, 0 10px 24px rgba(255, 90, 20, .6); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.cat-tabs {
  margin: 26px auto 0; width: max-content; max-width: 100%;
  display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgba(14, 7, 4, .75); border: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 7px 16px 7px 8px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--muted);
  transition: background .2s, color .2s;
}
.cat-tab .mini { width: 26px; height: 26px; }
.cat-tab:hover { color: var(--text); background: rgba(255, 122, 26, .08); }
.cat-tab.active { color: #fff; background: linear-gradient(180deg, var(--primary-2), var(--primary-deep)); box-shadow: var(--glow); }

/* Cards and sections */
main { min-height: 50vh; padding-bottom: 60px; }
.card {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(145deg, var(--card-a), var(--card-b));
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 200, 150, .05);
}
.card.accent-top::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 4px; border-radius: 0 0 4px 4px; background: var(--primary);
}

.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cat-card {
  min-height: 166px; padding: 0 34px; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.cat-card.wide { grid-column: 1 / -1; }
.cat-card::after {
  content: ""; position: absolute; right: -60px; top: 50%; width: 320px; height: 320px; transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(255, 122, 26, .16), transparent);
  pointer-events: none;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow), 0 0 0 1px rgba(255, 122, 26, .15), 0 10px 40px rgba(255, 90, 20, .18); }
.cat-card h2 { margin: 0; font-size: 27px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.cat-card p { margin: 6px 0 0; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.cat-card p span { transition: transform .2s; }
.cat-card:hover p span { transform: translateX(4px); }
.cat-card .art { position: relative; z-index: 1; width: 112px; height: 112px; transition: transform .35s; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }
.cat-card:hover .art { transform: rotate(-6deg) scale(1.08); }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.info-box { padding: 20px 24px; }
.info-box h4 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.info-box h4 svg { width: 16px; height: 16px; color: var(--primary); }
.info-box p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.section-title { text-align: center; margin: 54px 0 22px; }
.section-title h3 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.section-title i { display: block; width: 26px; height: 3px; margin: 8px auto 0; border-radius: 3px; background: var(--primary); }

.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.featured { padding: 20px 22px; display: flex; align-items: center; gap: 18px; }
.featured .art { width: 72px; height: 72px; flex: none; }
.featured .meta { flex: 1; min-width: 0; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  color: var(--primary-2); background: rgba(255, 122, 26, .12); border: 1px solid rgba(255, 122, 26, .25);
}
.featured h5 { margin: 7px 0 2px; font-size: 18px; font-weight: 800; }
.featured .price-line { font-size: 13px; font-weight: 700; color: var(--muted); }

.wide-box { margin-top: 22px; padding: 26px 28px; text-align: center; }
.wide-box h4 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.wide-box > p { margin: 0 auto; color: var(--muted); font-size: 14px; max-width: 560px; line-height: 1.55; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; text-align: left; }
.step { padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.step b { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.step b em { font-style: normal; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; background: linear-gradient(180deg, var(--primary-2), var(--primary-deep)); color: #fff; }
.step p { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.step code { font-family: inherit; font-weight: 700; color: var(--primary-2); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.form-box { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.form-box h4 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.form-box p { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; }
.inline-form { display: flex; gap: 10px; }
.input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--dim); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 122, 26, .18); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 14px; color: #fff; white-space: nowrap;
  background: linear-gradient(180deg, var(--primary-2), var(--primary-deep));
  box-shadow: 0 4px 0 #a83a08, var(--glow);
  transition: transform .15s, filter .2s, box-shadow .15s;
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #a83a08, var(--glow); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.ghost { background: rgba(255, 122, 26, .08); border: 1px solid var(--line-strong); box-shadow: none; color: var(--text); }
.btn.ghost:hover { background: rgba(255, 122, 26, .16); }
.btn.block { width: 100%; }
.btn.lg { height: 50px; font-size: 16px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: var(--radius-sm); flex: none;
  display: grid; place-items: center; font-weight: 800;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line); color: var(--muted);
  transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn svg { width: 16px; height: 16px; }

/* Category page */
.cat-head { padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.cat-head h1 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; }
.cat-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.cat-head .note { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; background: rgba(255, 122, 26, .1); border: 1px solid var(--line-strong); white-space: nowrap; }
.cat-head .note svg { width: 15px; height: 15px; color: var(--primary); }

.pkg-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.pkg-grid > .pkg { flex: 0 0 calc((100% - 54px) / 4); }
.pkg {
  padding: 22px 16px 16px; display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.pkg:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow), 0 12px 40px rgba(255, 90, 20, .16); }
.pkg .badges { position: absolute; top: -1px; left: -1px; display: flex; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; font-size: 10px; font-weight: 800;
  letter-spacing: .5px; text-transform: uppercase; color: #fff; background: var(--primary-deep);
}
.badge:first-child { border-radius: var(--radius) 0 8px 0; }
.badge:not(:first-child) { border-radius: 0 0 8px 0; }
.badge.red { background: var(--secondary); }
.badge.gold { background: linear-gradient(180deg, #ffd36a, #e59a12); color: #3b1c02; }
.badge.ok { background: #2f9c51; }
.pkg .art { width: 104px; height: 104px; margin: 8px 0 16px; transition: transform .35s; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .55)); }
.pkg:hover .art { transform: translateY(-4px) scale(1.06); }
.pkg h3 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.25; min-height: 40px; display: flex; align-items: center; }
.pkg .price { margin: 6px 0 16px; font-size: 14px; font-weight: 800; color: var(--primary-2); }
.pkg .price s { color: var(--dim); font-weight: 600; margin-right: 6px; }
.pkg .price small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.pkg .actions { margin-top: auto; width: 100%; display: flex; gap: 8px; }
.pkg .actions .btn { flex: 1; height: 40px; padding: 0 10px; font-size: 13px; }
.pkg .actions .icon-btn { width: 40px; height: 40px; }
.pkg.owned .btn { background: #2f9c51; box-shadow: 0 4px 0 #1f6c37; }

/* How it works page */
.page-card { padding: 30px 32px; }
.page-card h1 { margin: 0 0 6px; font-size: 26px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; }
.page-card h2 { margin: 26px 0 8px; font-size: 18px; font-weight: 800; color: var(--primary-2); }
.page-card p, .page-card li { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.page-card b { color: var(--text); }

/* Drawer */
.drawer-shade, .modal-shade {
  position: fixed; inset: 0; z-index: 60; background: rgba(5, 2, 1, .65); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.drawer-shade.on, .modal-shade.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(420px, 100%);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #1f0f08, #140904); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.drawer.on { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 19px; font-weight: 800; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--line); }
.line-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .25); border: 1px solid var(--line); margin-bottom: 10px; }
.line-item .art { width: 46px; height: 46px; flex: none; }
.line-item .li-meta { flex: 1; min-width: 0; }
.line-item b { display: block; font-size: 14px; }
.line-item small { color: var(--muted); font-size: 12px; }
.qty { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: rgba(255, 122, 26, .08); font-weight: 800; }
.qty span { min-width: 18px; text-align: center; font-weight: 700; font-size: 13px; }
.line-item .remove { color: var(--dim); font-size: 18px; padding: 6px; }
.line-item .remove:hover { color: var(--secondary); }
.totals { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 4px; }
.totals.big { font-size: 19px; font-weight: 800; margin: 8px 0 14px; }
.totals .muted { color: var(--muted); }
.empty { text-align: center; padding: 50px 10px; color: var(--muted); }
.empty .art { width: 80px; height: 80px; margin: 0 auto 14px; opacity: .8; }
.code-row { display: flex; gap: 8px; margin-bottom: 14px; }
.code-row .input { height: 40px; }
.code-row .btn { height: 40px; }
.applied { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ok); margin-bottom: 12px; }

/* Modal */
.modal-shade { display: grid; place-items: center; padding: 20px; }
.modal {
  width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  padding: 26px; border-radius: 16px;
  background: linear-gradient(160deg, #2a150b, #170a05); border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: translateY(14px) scale(.98); transition: transform .25s;
}
.modal-shade.on .modal { transform: none; }
.modal h3 { margin: 0; font-size: 22px; font-weight: 800; }
.modal .sub { margin: 4px 0 18px; color: var(--muted); font-size: 14px; }
.modal .close { position: absolute; }
.modal-top { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.modal-top .art { width: 84px; height: 84px; flex: none; }
.modal .desc { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.modal .desc strong { color: var(--text); }
.modal .desc p { margin: 0 0 10px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }
.login-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.login-head img { width: 54px; height: 54px; border-radius: 10px; image-rendering: pixelated; background: rgba(0, 0, 0, .3); }
.edition { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 4px; }
.edition button { height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(0, 0, 0, .25); font-weight: 700; font-size: 13px; color: var(--muted); }
.edition button.on { color: #fff; border-color: var(--primary); background: rgba(255, 122, 26, .15); }
.hint { font-size: 12.5px; color: var(--dim); margin-top: 8px; line-height: 1.5; }

/* Toast and loading */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 80; transform: translate(-50%, 30px);
  padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  background: #2b150b; border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100% - 40px);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(225, 29, 42, .6); }
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 80px 0; color: var(--muted); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255, 122, 26, .25); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.reveal { opacity: 0; transform: translateY(14px); animation: reveal .5s ease forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* Footer */
.footer { border-top: 1px solid var(--line); background: rgba(10, 5, 3, .7); text-align: center; }
.footer > .wrap { padding: 26px 0 18px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 14px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--primary-2); }
.footer p { margin: 4px 0; font-size: 12px; color: var(--dim); }
.tebex-bar { background: #080403; border-top: 1px solid rgba(255, 255, 255, .04); }
.tebex-bar-inner { display: flex; align-items: center; gap: 16px; padding: 10px 0; font-size: 11px; color: var(--dim); text-align: left; }
.tebex-mark { font-weight: 800; color: #cbb; letter-spacing: .5px; }
.tebex-legal { flex: 1; }
.tebex-links { display: flex; gap: 14px; }
.tebex-links a:hover { color: var(--text); }

/* Pixel art */
.art svg, svg.art { width: 100%; height: 100%; shape-rendering: crispEdges; }
.art svg.emblem { shape-rendering: geometricPrecision; overflow: visible; }
.pkg .art:has(.emblem) { width: 136px; height: 136px; margin: 0 0 12px; }
.emblem-flames { transform-origin: 60px 60px; animation: flicker 1.6s ease-in-out infinite alternate; }
.twinkle { animation: twinkle 2.2s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
.pkg .art:has(.key-art), .pkg .art:has(.chest-art), .pkg .art:has(.stars-art) { width: 124px; height: 124px; margin: 0 0 12px; }
@keyframes flicker { 0% { transform: scaleY(.94) scaleX(1); opacity: .85; } 100% { transform: scaleY(1.05) scaleX(.98); opacity: 1; } }

/* Responsive */
@media (max-width: 980px) {
  .pkg-grid > .pkg { flex-basis: calc((100% - 36px) / 3); }
  .user-btn span { display: none; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 28px); }
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute; top: 58px; left: 0; right: 0; flex-direction: column; padding: 10px 14px 14px;
    background: rgba(16, 8, 5, .97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .currency { display: none; }
  .cart-btn > span:last-child { display: none; }
  .hero { padding-top: 40px; }
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero-logo { grid-column: 1 / -1; grid-row: 1; }
  .hero-logo img { width: 84px; }
  .logo-word { font-size: 34px; }
  .hero-text b { font-size: 15px; }
  .hero-circle { width: 42px; height: 42px; }
  .cat-tabs { width: 100%; }
  .home-grid, .info-grid, .featured-grid, .two-col, .steps { grid-template-columns: 1fr; }
  .cat-card { min-height: 130px; padding: 0 22px; }
  .cat-card h2 { font-size: 22px; }
  .cat-card .art { width: 86px; height: 86px; }
  .pkg-grid { gap: 12px; }
  .pkg-grid > .pkg { flex-basis: calc((100% - 12px) / 2); }
  .pkg { padding: 18px 10px 12px; }
  .pkg .art { width: 78px; height: 78px; }
  .pkg h3 { font-size: 14px; }
  .pkg .actions .btn span { display: none; }
  .cat-head { flex-direction: column; align-items: flex-start; }
  .featured { flex-wrap: wrap; }
  .featured .btn { width: 100%; }
  .inline-form { flex-direction: column; }
  .tebex-bar-inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
