* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --header-h: 68px;

  --bg: #141414;
  --bg-soft: #181818;
  --card: #1c1c1c;
  --card-2: #222;
  --raise: #2a2a2a;

  --line: rgba(255, 255, 255, 0.09);
  --line-mid: rgba(255, 255, 255, 0.16);
  --line-hi: rgba(255, 255, 255, 0.28);

  --text: #f4f4f4;
  --mute: #a3a3a3;
  --dim: #7a7a7a;

  --accent: #ececec;
  --accent-2: #ffffff;
  --accent-dim: rgba(255, 255, 255, 0.12);
  --accent-line: rgba(255, 255, 255, 0.28);

  --chrome: #f2f3f4;
  --danger: #ffb4b4;

  /* Staff CSS still reads these names. Mapped to chrome, not gold. */
  --gold: var(--accent);
  --gold-2: var(--accent-2);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;

  --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 40px 90px rgba(0, 0, 0, 0.55);
  --sheen: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --ring: 0 0 0 3px rgba(255, 255, 255, 0.16);

  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 540px at 50% -180px, rgba(255, 255, 255, 0.08), transparent 72%),
    linear-gradient(rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.038) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
}

::selection { background: #fff; color: #111; }

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.26); background-clip: content-box; }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  color: #fff;
}

/* Header ------------------------------------------------------------------ */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 14, 14, 0.82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.nav {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand img {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.14));
}

nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
  /* min-width lets the row shrink instead of pushing the header wider than
     the viewport, which is what makes the scrolling nav work on phones. */
  flex: 0 1 auto;
  min-width: 0;
}

nav a {
  position: relative;
  color: var(--mute);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 13px;
  border-radius: 8px;
  transition: color 0.18s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 6px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

nav a:hover, nav a.on { color: var(--accent-2); }
nav a:hover::after, nav a.on::after {
  opacity: 1;
  transform: scaleX(1);
  background: var(--accent);
}

.live {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--mute);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4b4f54;
}

.live.ok {
  color: #fff;
  border-color: var(--line-mid);
}

.live.ok i {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 0 12px var(--accent);
}

/* Buttons ---------------------------------------------------------------- */

.cart-btn, .btn, .ghost, .item .add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease, transform 0.12s ease;
}

.btn, .item .add {
  background: var(--chrome);
  color: #0a0b0c;
  box-shadow: var(--sheen);
}

.btn:hover, .item .add:hover {
  background: #fff;
  box-shadow: 0 10px 26px rgba(255, 255, 255, 0.12);
}

.btn:active, .ghost:active, .cart-btn:active, .item .add:active { transform: translateY(1px); }

.ghost, .cart-btn {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border-color: var(--line-mid);
}

.ghost:hover, .cart-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-hi);
}

.item .add, .item .view {
  width: auto;
  margin-top: 0;
  height: 40px;
  padding: 0 16px;
  flex-shrink: 0;
}

.cart-count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--chrome);
  color: #0a0b0c;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.cart-count.pop { animation: cart-pop 0.35s ease; }

@keyframes cart-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 76px 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 300px at 82% 18%, rgba(255, 255, 255, 0.08), transparent 70%),
    linear-gradient(100deg, transparent 55%, rgba(255, 255, 255, 0.022));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6.2vw, 68px);
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--text);
  margin: 18px 0 18px;
  max-width: 100%;
  overflow-wrap: break-word;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 {
    background: linear-gradient(180deg, #ffffff 26%, #b8b8b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.lead {
  max-width: 58ch;
  color: var(--mute);
  font-size: 17px;
  font-weight: 400;
  margin: 0 0 30px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn, .hero-actions .ghost { height: 48px; padding: 0 24px; }

.hero-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-md), var(--sheen);
}

.hero-panel h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--mute);
}

.hero-panel h2::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
}

.stats li {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 15px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.stats b {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  margin-bottom: 3px;
}

.active {
  color: var(--dim);
  font-size: 13px;
  min-height: 18px;
  margin-top: 14px;
}

/* Category tiles --------------------------------------------------------- */

.shop-cats { padding: 40px 0 8px; }

.cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cat-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  min-height: 190px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sheen);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-tile:hover {
  border-color: var(--line-hi);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--sheen);
}

.cat-tile::after {
  content: "";
  position: absolute;
  right: -26px;
  top: -34px;
  width: 190px;
  height: 190px;
  background: url("../assets/logo.png") center/contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.cat-tile:hover::after { opacity: 0.14; transform: scale(1.04); }

.cat-kicker, .shop-kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.cat-tile h2 {
  font-size: 26px;
  letter-spacing: 0.02em;
  margin: 12px 0 10px;
  color: #fff;
}

.cat-tile p {
  color: var(--mute);
  font-size: 15px;
  line-height: 1.55;
  max-width: 380px;
}

.cat-meta {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  transition: transform 0.2s ease;
}

.cat-tile:hover .cat-meta { transform: translateX(4px); }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0 8px;
}

.trust-strip div {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--r-md);
  padding: 16px 17px;
  transition: border-color 0.2s ease;
}

.trust-strip div:hover { border-color: var(--line-mid); }

.trust-strip b {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.trust-strip span { color: var(--dim); font-size: 13px; line-height: 1.5; }

/* Filter bar ------------------------------------------------------------- */

.catbar {
  position: sticky;
  top: var(--header-h);
  z-index: 15;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 14, 14, 0.88);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.catbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 62px;
}

.catbar a, .subcats button {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--mute);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  padding: 9px 15px;
  border-radius: 999px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.catbar a:hover, .subcats button:hover {
  color: #fff;
  border-color: var(--line-mid);
  background: rgba(255, 255, 255, 0.07);
}

.catbar a.on, .subcats button.is-on {
  color: #0a0b0c;
  background: var(--chrome);
  border-color: var(--chrome);
}

.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

#catbarLinks { display: contents; }

/* Catalog ---------------------------------------------------------------- */

.shop { padding: 44px 0 88px; }

.shop-block { margin-top: 56px; }

.shop-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

body:not([data-page="home"]) .shop-head {
  justify-content: flex-end;
  margin-bottom: 14px;
}

.shop-lead {
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.55;
  margin-top: 8px;
  max-width: 54ch;
}

#productCount, #countCoins, #countRanks {
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-top: 6px;
  white-space: nowrap;
}

.items,
body:not([data-page="home"]) .items,
body[data-page="home"] .items-ranks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

body[data-page="home"] .items-dayone {
  grid-template-columns: 1fr;
}

body[data-page="home"] .items-dayone .item {
  min-height: 200px;
}

body[data-page="home"] .items-dayone .thumb {
  flex-basis: 260px;
  width: 260px;
  min-height: 200px;
}

body[data-page="home"] .items-dayone .thumb .rank-icon {
  height: 148px;
}

body[data-page="home"] .items-dayone .thumb.supporter {
  background:
    radial-gradient(circle at 50% 42%, rgba(232, 168, 72, 0.18), transparent 62%),
    linear-gradient(180deg, #1e1e1e, #121212);
}

.item {
  position: relative;
  background: #161616;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 176px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.item:hover {
  border-color: var(--line-hi);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.item.featured { border-color: var(--accent-line); }

.thumb {
  position: relative;
  overflow: hidden;
  flex: 0 0 210px;
  width: 210px;
  min-height: 176px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
}

.thumb-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
  height: 100%;
  width: 100%;
}

.thumb.supporter .thumb-art::before {
  content: "";
  position: absolute;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
}

.thumb.coins {
  background:
    radial-gradient(circle at 50% 42%, rgba(212, 175, 90, 0.16), transparent 62%),
    linear-gradient(180deg, #1e1e1e, #121212);
}

.thumb.supporter {
  background:
    radial-gradient(circle at 50% 42%, var(--accent-dim), transparent 62%),
    linear-gradient(180deg, #1e1e1e, #121212);
}

.thumb.coins img {
  height: 128px;
  width: auto;
  filter: drop-shadow(0 10px 18px rgba(80, 50, 10, 0.4));
}

.thumb .rank-icon {
  position: relative;
  z-index: 1;
  height: 114px;
  width: auto;
  filter: drop-shadow(0 8px 16px rgba(8, 16, 28, 0.5));
}

.coin-amt, .rank-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.coin-amt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  margin: 0;
  font-size: 20px;
  color: var(--accent-2);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.coin-lbl, .rank-lbl, .type-tag { display: none; }

.rank-name {
  display: block;
  font-size: 23px;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 16px;
}

.item-body {
  position: relative;
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.perk-tag {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--dim);
  text-transform: uppercase;
}

.badge {
  display: none;
}

.item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 120px 8px 0;
  line-height: 1.25;
}

.item p {
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.includes {
  list-style: none;
  color: var(--mute);
  font-size: 13px;
  margin: 0 0 14px;
  padding: 0;
  line-height: 1.45;
  flex: 1;
}

.includes li {
  position: relative;
  padding: 0 0 6px 16px;
}

.includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 1px;
  background: var(--accent);
}

.item-row { display: none; }

.item-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.price {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  white-space: nowrap;
}

/* How it works + FAQ ----------------------------------------------------- */

.how, .faq { margin-top: 72px; }

h2 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.steps div {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
}

.steps span {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-mid);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.steps p { color: var(--mute); font-size: 14.5px; line-height: 1.6; }

.faq details {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-bottom: 8px;
  transition: border-color 0.2s ease;
}

.faq details:hover { border-color: var(--line-mid); }
.faq details[open] { background: rgba(255, 255, 255, 0.035); }

.faq summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  color: var(--mute);
}

.faq details[open] summary::after { content: "\2013"; }

.faq p {
  color: var(--mute);
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.65;
}

.faq a { color: #fff; text-underline-offset: 3px; }

.hint, .empty { color: var(--dim); font-size: 13.5px; line-height: 1.6; margin: 8px 0 12px; }

.cart-bottom .btn { width: 100%; }

/* Footer ----------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.72);
  padding: 44px 0 30px;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { height: 36px; opacity: 0.95; }

.foot-brand strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 4px;
}

.foot-brand a { color: var(--dim); font-size: 13px; text-decoration: none; }
.foot-brand a:hover { color: #fff; }

.pay { display: flex; gap: 8px; }

.pay span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.legal a { color: var(--mute); }

/* Cart + modals ---------------------------------------------------------- */

#cart, #modal, #added, #view { position: fixed; inset: 0; z-index: 40; }

#cart {
  background: rgba(4, 5, 6, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
}

#modal, #added, #view {
  background: rgba(4, 5, 6, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 16px;
}

#cart[hidden], #modal[hidden], #added[hidden], #view[hidden] { display: none; }

.cart-panel {
  width: min(420px, 100%);
  height: 100%;
  margin-left: auto;
  background: var(--bg-soft);
  border-left: 1px solid var(--line-mid);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  animation: slide-in 0.24s ease;
}

@keyframes slide-in {
  from { transform: translateX(24px); opacity: 0.6; }
  to { transform: translateX(0); opacity: 1; }
}

.cart-top, .cart-bottom, .cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.cart-top {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 12px;
}

.cart-top .ghost { height: 36px; padding: 0 14px; }

.cart-bottom {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.cart-bottom p { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--mute); }
.cart-bottom .hint { display: block; }

.cart-bottom b {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.cart-line {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  gap: 12px;
}

.cart-line > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.cart-line button {
  background: rgba(255, 255, 255, 0.05);
  color: var(--mute);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.cart-line button:hover { color: #fff; border-color: var(--line-hi); }

#cartItems { flex: 1; overflow-y: auto; }

.modal-box {
  width: min(430px, calc(100% - 24px));
  background: linear-gradient(180deg, #15171b, #0d0e11);
  border: 1px solid var(--line-mid);
  border-radius: var(--r-lg);
  padding: 28px;
  text-align: center;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-lg), var(--sheen);
  animation: pop-in 0.2s ease;
}

@keyframes pop-in {
  from { transform: translateY(8px) scale(0.985); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-box p { font-size: 14.5px; color: var(--mute); line-height: 1.6; }

.added-box h2 {
  font-size: 24px;
  letter-spacing: 0.02em;
  margin: 0;
  color: #fff;
}

.added-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.added-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.view-box {
  text-align: left;
  width: min(460px, calc(100% - 24px));
  max-height: min(86vh, 720px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.view-box h2 {
  font-size: 24px;
  letter-spacing: 0.02em;
  margin: 0;
  color: #fff;
}

.view-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  overflow: auto;
  min-height: 0;
}

.view-list li {
  position: relative;
  padding: 9px 0 9px 16px;
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.45;
  border-top: 1px solid var(--line);
}

.view-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.view-box .added-price,
.view-box .added-actions {
  flex-shrink: 0;
}

.view-box h2 {
  font-size: 24px;
  letter-spacing: 0.02em;
  margin: 0;
  color: #fff;
}

.view-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.view-list li {
  position: relative;
  padding: 9px 0 9px 16px;
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.45;
  border-top: 1px solid var(--line);
}

.view-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.checkout-box { text-align: left; width: min(470px, calc(100% - 24px)); }
.checkout-box h2 { font-size: 20px; margin: 0; }
.checkout-form { display: grid; gap: 14px; }

.checkout-form label {
  display: grid;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.checkout-form input {
  height: 46px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-mid);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.checkout-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: var(--ring);
}

.checkout-form .btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.checkout-form .btn:disabled:hover { background: var(--chrome); }

.checkout-err {
  margin: 0;
  font-size: 13.5px;
  color: var(--danger);
  background: rgba(255, 120, 120, 0.07);
  border: 1px solid rgba(255, 140, 140, 0.26);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  text-align: left;
}

.checkout-err[hidden] { display: none; }

.discord-who { font-size: 14.5px; color: #fff; margin: 0; }

#discordGate, #discordSigned { display: grid; gap: 10px; }
#discordGate[hidden], #discordSigned[hidden] { display: none; }
#discordLogin { text-align: center; text-decoration: none; }

/* Status pages ----------------------------------------------------------- */

.status-page { padding: 72px 0 120px; max-width: 780px; }
.status-page h1 { margin: 16px 0 14px; }

.redeem-box {
  margin: 30px 0;
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  box-shadow: var(--sheen);
}

.redeem-box p { color: var(--mute); margin-top: 10px; font-size: 14px; line-height: 1.6; }

.redeem-code {
  margin: 14px 0 18px;
  font-family: var(--font-mono);
  font-size: clamp(20px, 3.6vw, 30px);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #fff;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.22);
  word-break: break-all;
}

.order-list { display: grid; gap: 14px; margin-top: 30px; }

.order-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: var(--sheen);
}

.order-card h2 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.order-card .muted, .muted { color: var(--mute); font-size: 14px; line-height: 1.6; }
.order-card .redeem-code { font-size: 21px; margin: 16px 0 14px; }
.order-card p + p { margin-top: 6px; }

.account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
}

.copy-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.copy-row .btn, .copy-row .ghost { height: 40px; padding: 0 16px; }

.status-wait {
  color: var(--mute);
  animation: soft-pulse 1.8s ease-in-out infinite;
}

@keyframes soft-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .items, body:not([data-page="home"]) .items, body[data-page="home"] .items-ranks { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .thumb { flex-basis: 176px; width: 176px; }
  .thumb.coins img { height: 112px; }
  .thumb .rank-icon { height: 98px; }
  body[data-page="home"] .items-dayone { grid-template-columns: 1fr; }
  body[data-page="home"] .items-dayone .thumb { flex-basis: 200px; width: 200px; }
}

@media (max-width: 860px) {
  .live { display: none; }
  .cart-btn { flex: 0 0 auto; }
  nav {
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  nav::-webkit-scrollbar { display: none; }
  nav a { padding: 10px 10px; font-size: 10px; letter-spacing: 0.12em; }
  nav a::after { left: 10px; right: 10px; }
}

@media (max-width: 680px) {
  :root { --header-h: 60px; }
  .wrap, .nav { padding-left: 18px; padding-right: 18px; }
  .cats, .items, body:not([data-page="home"]) .items, body[data-page="home"] .items-ranks, .trust-strip { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 44px; }
  .hero-panel { padding: 20px; }
  h1 { font-size: 34px; }
  .lead { font-size: 15.5px; }
  .cat-tile { padding: 24px; min-height: 0; }
  .cat-tile p, .item p { overflow-wrap: break-word; }
  .item { min-height: 156px; }
  .thumb { flex-basis: 148px; width: 148px; min-height: 156px; }
  .thumb.coins img { height: 96px; }
  .thumb .rank-icon { height: 86px; }
  body[data-page="home"] .items-dayone .item { min-height: 176px; }
  body[data-page="home"] .items-dayone .thumb { flex-basis: 156px; width: 156px; min-height: 176px; }
  body[data-page="home"] .items-dayone .thumb .rank-icon { height: 108px; }
  .item h3 { margin-right: 96px; font-size: 16px; }
  .item-foot { flex-wrap: wrap; }
  .item-actions { width: 100%; justify-content: flex-end; }
  .status-page { padding: 48px 0 90px; }
  .added-actions { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .cart-btn { padding: 0 13px; }
  .foot, .legal { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .item:hover, .cat-tile:hover { transform: none; }
}
