/* ==========================================================================
   Arena Shop for SellAuth: game-shop look (wood frames, glossy buttons, outlined type)
   Colours set in the theme editor arrive as --gold, --bg, --wood, --panel,
   --r-common ... --r-champion and, when changed, --green-top / --green-bottom.
   The bundled fonts are embedded in fonts.css.
   ========================================================================== */


:root {
  --ink: #1a1030;
  --navy-950: #081a38;
  --navy-900: #0b2347;
  --navy-800: #0f2e5c;
  --navy-700: #15407f;
  --sky: #8cc8ff;
  --wood: #8a5528;
  --wood-dark: #4f2b10;
  --wood-deep: #3a1f0b;
  --wood-d1: #5b3314;
  --wood-d2: #43230a;
  --wood-d3: #4a2810;
  --wood-d4: #3c200b;
  --wood-l1: #a5703c;
  --wood-l2: #6a3f1c;
  --panel: #0e3062;
  --panel-2: #091f44;
  --r-common: #5f86bd;
  --r-rare: #f08a1c;
  --r-epic: #9b45e6;
  --r-legendary: #19b8c9;
  --r-champion: #f5b301;
  --badge: #c8173f;
  --gold: #ffd23f;
  --bg: #1d58a5;
  --gold-deep: #f0a000;
  --green-top: #74ea5e;
  --green-bottom: #2aa31d;
  --red: #ff4d6d;
  --cream: #fff6e3;
  --text: #ffffff;
  --text-dim: #cfe1fb;
  --font-display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1100px;
}
/* Wood and panel shades follow the editor colours where the browser can mix colours */
@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --wood-dark: color-mix(in srgb, var(--wood) 57%, #000);
    --wood-deep: color-mix(in srgb, var(--wood) 42%, #000);
    --wood-d1: color-mix(in srgb, var(--wood) 64%, #000);
    --wood-d2: color-mix(in srgb, var(--wood) 49%, #000);
    --wood-d3: color-mix(in srgb, var(--wood) 54%, #000);
    --wood-d4: color-mix(in srgb, var(--wood) 44%, #000);
    --wood-l1: color-mix(in srgb, var(--wood) 82%, #ffd9a8);
    --wood-l2: color-mix(in srgb, var(--wood) 77%, #000);
    --panel-2: color-mix(in srgb, var(--panel) 66%, #000);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 55% at 50% -12%, rgba(150, 210, 255, .38), transparent 62%),
    url('quilt.svg');
  background-size: auto, 72px 72px;
}
main { flex: 1; padding-bottom: 72px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Outlined display type ---------- */
.display, .t-out {
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  letter-spacing: .01em;
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink);
  line-height: 1.08;
}
.t-out { -webkit-text-stroke-width: 4px; text-shadow: 0 2px 0 var(--ink); }

/* ---------- Wood ---------- */
.wood {
  background-color: var(--wood);
  background-image:
    linear-gradient(180deg, rgba(255, 226, 180, .24), rgba(255, 226, 180, 0) 32%, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, .2)),
    url('wood.svg');
  background-size: 100% 100%, 480px 160px;
}

/* ---------- Buttons ---------- */
.btn {
  --top: var(--green-top);
  --bottom: var(--green-bottom);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 22px;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1;
  letter-spacing: .02em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 2px 0 var(--ink);
  background: linear-gradient(180deg, var(--top), var(--bottom));
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), inset 0 -4px 0 rgba(0, 0, 0, .2), 0 4px 0 var(--ink);
  cursor: pointer;
  user-select: none;
  transition: transform .06s ease, box-shadow .06s ease;
}
.btn::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 6px; right: 6px; top: 3px;
  height: 42%;
  border-radius: 9px 9px 16px 16px;
  background: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .06));
  pointer-events: none;
}
.btn .ic { stroke-width: 3; filter: drop-shadow(0 2px 0 var(--ink)); font-size: 1.15em; }
.btn:active { transform: translateY(3px) scale(.97); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), inset 0 -4px 0 rgba(0, 0, 0, .2), 0 1px 0 var(--ink); }
.btn--blue { --top: #66c8ff; --bottom: #1b7be4; }
.btn--gold { --top: #ffe46e; --bottom: #f09e00; }
.btn--red { --top: #ff8296; --bottom: #d6214a; }
.btn--purple { --top: #c983ff; --bottom: #7a2bd0; }
.btn--wood { --top: var(--wood-l1); --bottom: var(--wood-l2); }
.btn--slate { --top: #5a6f93; --bottom: #33435f; }
.btn--sm { min-height: 44px; padding: 5px 14px; font-size: 17px; border-radius: 10px; -webkit-text-stroke-width: 3.5px; }
.btn--lg { min-height: 56px; padding: 10px 30px; font-size: 24px; border-radius: 14px; }
.btn--block { display: flex; width: 100%; }
.btn--icon { width: 48px; padding: 0; }
.btn--icon.btn--sm { width: 44px; }
.btn:disabled, .btn.is-disabled { filter: grayscale(.9) brightness(.85); cursor: not-allowed; transform: none; }
.btn-i { font-size: 26px; padding-bottom: 2px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .2);
}
.topbar__inner { display: flex; align-items: center; gap: 16px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; flex: none; }
.brand img { width: 44px; height: auto; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .3)); }
.brand__name {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold);
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 var(--ink);
  line-height: 1;
}
.nav { display: flex; gap: 10px; margin-inline: auto; }
.navbtn {
  display: inline-flex;
  text-transform: uppercase;
  align-items: center;
  min-height: 46px;
  padding: 6px 22px;
  font-family: var(--font-display);
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 2px 0 var(--ink);
  border-radius: 11px;
  background: linear-gradient(180deg, var(--wood-d1), var(--wood-d2));
  border: 3px solid var(--ink);
  box-shadow: inset 0 3px 7px rgba(0, 0, 0, .5), 0 2px 0 rgba(255, 224, 180, .25);
}
.navbtn.is-active {
  background: linear-gradient(180deg, #66c8ff, #1b7be4);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), inset 0 -4px 0 rgba(0, 0, 0, .2), 0 3px 0 var(--ink);
}
.topbar__right { display: flex; align-items: center; gap: 10px; flex: none; }
.who { display: flex; align-items: center; gap: 8px; }
.who__avatar {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  margin-left: -8px;
  border-radius: 8px;
  background: linear-gradient(#ffffff, #cfdcf0);
  border: 2px solid var(--ink);
}
.who__avatar .ic { font-size: 20px; color: #1c2a45; stroke-width: 2.6; }
.menu-toggle { display: none; }

/* ---------- Side rail (wide screens) and floating cart (small screens) ---------- */
.rail {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 40;
  transform: translateY(-40%);
  width: 108px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 8px 8px 9px;
  background: linear-gradient(180deg, #3f5679, #26364f);
  border: 3px solid var(--ink);
  border-right: 0;
  border-radius: 16px 0 0 16px;
  box-shadow: -4px 5px 0 rgba(0, 0, 0, .22);
}
.rail__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 6px;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff, #d7e2f1);
  border: 2px solid var(--ink);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08);
  color: #1c2a45;
  text-decoration: none;
  text-align: center;
  font: 900 12px/1.15 var(--font-body);
}
.rail__preview img { width: 74px; }
.rail__pay { gap: 4px; }
.rail__pay-icons { display: flex; gap: 4px; }
.rail__pay-icons span {
  display: grid; place-items: center;
  width: 26px; height: 20px;
  border-radius: 5px;
  background: #1c2a45;
  color: #fff;
  font-size: 14px;
}
.rail__cart { font-family: var(--font-display); font-size: 19px; font-weight: 400; color: #1c2a45; }
.rail__cart .ic { font-size: 30px; stroke-width: 2.6; }
.count-badge {
  position: absolute;
  top: -9px; left: -9px;
  min-width: 26px; height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--badge);
  border: 2.5px solid var(--ink);
  color: #fff;
  font: 900 13px/21px var(--font-body);
  text-align: center;
}
.floaters { position: fixed; right: 14px; bottom: 16px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.floaters .btn--icon { width: 52px; min-height: 52px; font-size: 26px; }
.fab-cart { display: none; }

/* ---------- Flash messages and toasts ---------- */
.flashes { display: grid; gap: 10px; margin-top: 18px; }
.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 3px solid var(--ink);
  font-weight: 800;
  color: #10213f;
  background: var(--cream);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .25);
}
.flash .ic { font-size: 22px; flex: none; }
.flash--success { background: #e3ffd9; }
.flash--success .ic { color: #1f8a12; }
.flash--error { background: #ffe1e6; }
.flash--error .ic { color: #c0163c; }
.flash--info { background: #e2f1ff; }
.flash--info .ic { color: #1b6fd0; }
.toast-host { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%); display: grid; gap: 8px; }
.toast { animation: toast-in .18s ease-out; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding-top: 64px; scroll-margin-top: 90px; }
.section-title { font-size: clamp(34px, 4.4vw, 46px); text-align: center; margin-bottom: 26px; }
.section-sub { text-align: center; color: var(--text-dim); margin: -14px auto 26px; max-width: 54ch; }

/* ---------- Shop frame ---------- */
.frame {
  position: relative;
  padding: 16px;
  border-radius: 20px;
  border: 4px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(255, 226, 180, .35), inset 0 -4px 0 rgba(0, 0, 0, .25), 0 7px 0 rgba(0, 0, 0, .28);
}
.frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 13px 13px, #e2b77a 0 2.5px, var(--wood-deep) 3px 4.5px, transparent 5px),
    radial-gradient(circle at calc(100% - 13px) 13px, #e2b77a 0 2.5px, var(--wood-deep) 3px 4.5px, transparent 5px),
    radial-gradient(circle at 13px calc(100% - 13px), #e2b77a 0 2.5px, var(--wood-deep) 3px 4.5px, transparent 5px),
    radial-gradient(circle at calc(100% - 13px) calc(100% - 13px), #e2b77a 0 2.5px, var(--wood-deep) 3px 4.5px, transparent 5px);
}
.frame__head { position: relative; display: flex; justify-content: center; align-items: flex-start; min-height: 64px; margin-bottom: 14px; }
.frame__head .btn--icon { position: absolute; right: 6px; top: 8px; }
.frame__inner {
  position: relative;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--wood-d3), var(--wood-d4));
  border: 3px solid var(--ink);
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, .55), 0 2px 0 rgba(255, 224, 180, .25);
}
.frame--slate .frame__inner {
  background: linear-gradient(180deg, #123873, #0c2754);
  box-shadow: inset 0 5px 12px rgba(0, 0, 0, .45), 0 2px 0 rgba(255, 224, 180, .25);
}

/* Ribbon */
.ribbon { position: relative; margin-top: -42px; text-align: center; }
.ribbon__band {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 8px 46px 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff6d82 0%, #ec3456 55%, #c91c41 100%);
  border: 3px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), inset 0 -4px 0 rgba(0, 0, 0, .18), 0 5px 0 rgba(0, 0, 0, .25);
}
.ribbon__band::before, .ribbon__band::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 14px;
  width: 46px;
  height: calc(100% - 2px);
  background: linear-gradient(180deg, #c21b3e, #9a1131);
  border: 3px solid var(--ink);
}
.ribbon__band::before { left: -34px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 34% 50%); border-radius: 4px 0 0 4px; }
.ribbon__band::after { right: -34px; clip-path: polygon(0 0, 100% 0, 66% 50%, 100% 100%, 0 100%); border-radius: 0 4px 4px 0; }
.ribbon__title { font-size: clamp(28px, 3.6vw, 40px); }
.ribbon__ends { margin-top: 8px; font: 900 15px var(--font-body); color: #fff; text-shadow: 0 2px 0 var(--ink); }
.sparkle { position: absolute; width: 20px; height: 20px; color: #fff7c2; animation: twinkle 2.6s ease-in-out infinite; pointer-events: none; }
.sparkle svg { width: 100%; height: 100%; fill: currentColor; filter: drop-shadow(0 0 4px rgba(255, 240, 160, .9)); }
.sparkle--1 { left: -14px; top: -16px; animation-delay: .2s; }
.sparkle--2 { right: -10px; top: -22px; width: 26px; height: 26px; animation-delay: 1.1s; }
.sparkle--3 { left: 22%; bottom: -12px; width: 14px; height: 14px; animation-delay: .7s; }
.sparkle--4 { right: 18%; bottom: -10px; width: 16px; height: 16px; animation-delay: 1.7s; }
@keyframes twinkle { 0%, 100% { transform: scale(.55) rotate(0deg); opacity: .5; } 50% { transform: scale(1.05) rotate(25deg); opacity: 1; } }

/* ---------- Product grid and cards ---------- */
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shelf--count-1 { grid-template-columns: minmax(0, 300px); justify-content: center; }
.shelf--count-2 { grid-template-columns: repeat(2, minmax(0, 280px)); justify-content: center; }
.shelf--count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pcard { --r: var(--r-common); position: relative; display: flex; flex-direction: column; min-width: 0; }
.pcard--r-rare, .rarity-pill--rare { --r: var(--r-rare); }
.pcard--r-epic, .rarity-pill--epic { --r: var(--r-epic); }
.pcard--r-legendary, .rarity-pill--legendary { --r: var(--r-legendary); }
.pcard--r-champion, .rarity-pill--champion { --r: var(--r-champion); }
.pcard__body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 12px 0;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 52%),
    var(--r);
  border: 4px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), inset 0 -4px 0 rgba(0, 0, 0, .2);
}
@supports (color: color-mix(in srgb, red, blue)) {
  .pcard__body {
    background:
      radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 52%),
      linear-gradient(180deg, color-mix(in srgb, var(--r) 62%, #fff) 0%, var(--r) 48%, color-mix(in srgb, var(--r) 70%, #000) 100%);
  }
}
.pcard__name { position: relative; z-index: 2; font-size: 24px; text-align: center; max-width: 100%; overflow-wrap: anywhere; padding-inline-end: 4px; }
.pcard__stage { position: relative; display: block; width: 82%; aspect-ratio: 1; margin: 2px auto 0; }
.pcard__img { position: relative; z-index: 2; width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; margin: 0; }
.pcard__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: -4px 0 12px; }
.chip {
  display: inline-block;
  padding: 3px 14px 4px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 2px 0 var(--ink);
  background: linear-gradient(180deg, #ffe46e, #f2a200);
  border: 3px solid var(--ink);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6);
}
.pcard__price {
  align-self: stretch;
  margin: auto -12px 0;
  padding: 9px 8px 11px;
  text-align: center;
  font-size: 30px;
  background: rgba(12, 10, 34, .42);
  border-top: 3px solid rgba(26, 16, 48, .55);
}
.pcard__price s { margin-right: 6px; font-size: 18px; color: #e9d4ff; -webkit-text-stroke-width: 3px; }
.pcard__actions { display: flex; align-items: center; gap: 10px; padding: 14px 2px 2px; }
.pcard__actions .btn:first-child { flex: 1; text-transform: uppercase; }
.pcard--featured .pcard__body {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 55%),
    linear-gradient(140deg, #ffb2e4 0%, #d7a8ff 24%, #a4d6ff 48%, #a2ffd0 72%, #fff09a 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), inset 0 -4px 0 rgba(0, 0, 0, .12), 0 0 0 4px #c9ffe6, 0 0 26px 6px rgba(150, 255, 205, .7);
}
.pcard--featured .pcard__price { background: rgba(60, 20, 110, .45); }
.pcard--soldout .pcard__img { filter: grayscale(.85) opacity(.7); }
.soldout-tag {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 2;
  transform: translate(-50%, -50%) rotate(-8deg);
  padding: 6px 16px;
  font-size: 24px;
  white-space: nowrap;
  background: #d6214a;
  border: 3px solid var(--ink);
  border-radius: 10px;
}

/* Corner value badge */
.tag {
  position: absolute;
  z-index: 3;
  top: -4px;
  inset-inline-end: 10px;
  padding: 3px 3px 0;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
}
.tag > span {
  display: block;
  min-width: 56px;
  padding: 7px 8px 16px;
  text-align: center;
  line-height: 1;
  background: linear-gradient(180deg, #ffe878, #f4a700);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
}
.tag b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 16px; color: #fff; -webkit-text-stroke: 3.5px var(--ink); paint-order: stroke fill; text-shadow: 0 2px 0 var(--ink); }
.tag--short b { font-size: 24px; }
.tag small { display: block; margin-top: 3px; font: 900 10px/1 var(--font-body); letter-spacing: .04em; color: #5b3200; }
.tag-room { padding-inline-end: 70px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; text-align: center; padding: 0 6px; }
.step__num {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  font-size: 32px;
  background: linear-gradient(180deg, #ffe46e, #f09e00);
  border: 4px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), 0 4px 0 var(--ink);
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(50% + 44px);
  width: calc(100% - 70px);
  border-top: 4px dashed rgba(255, 255, 255, .45);
}
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review {
  padding: 18px;
  border-radius: 16px;
  background: var(--cream);
  color: #2a1a0c;
  border: 3px solid var(--ink);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .25);
}
.stars { display: flex; gap: 2px; color: #f2a200; font-size: 20px; }
.stars .ic { fill: currentColor; stroke: var(--ink); stroke-width: 1.4; }
.stars .is-off { color: #e6d6b8; }
.review p { margin: 10px 0 12px; font-weight: 700; }
.review footer { font-size: 14px; color: #7a5a35; font-weight: 800; }
.rating-sum { display: flex; justify-content: center; align-items: center; gap: 10px; margin: -12px 0 24px; font-weight: 900; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq {
  border-radius: 14px;
  background: linear-gradient(180deg, var(--wood-d1), var(--wood-d2));
  border: 3px solid var(--ink);
  box-shadow: inset 0 2px 0 rgba(255, 224, 180, .2);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 21px;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 2px 0 var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq__plus {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(180deg, #66c8ff, #1b7be4);
  border: 3px solid var(--ink);
  font-size: 18px;
  -webkit-text-stroke: 0;
}
.faq__plus .ic { stroke-width: 3.4; }
.faq[open] .faq__plus .ic { transform: rotate(45deg); }
.faq__a { padding: 0 18px 16px; color: #ffe9cc; font-weight: 700; }
.faq__a p:last-child { margin: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 4px solid var(--ink); margin-top: auto; }
.footer__inner { display: grid; justify-items: center; gap: 14px; padding: 26px 0 22px; text-align: center; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; }
.footer__links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: #fff; text-decoration: none; font-weight: 900; text-shadow: 0 2px 0 var(--ink); }
.footer__links a:hover { text-decoration: underline; }
.footer__note { max-width: 70ch; margin: 0; font-size: 13px; color: #ffe2bd; font-weight: 700; text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }

/* ---------- Generic page pieces ---------- */
.page { padding-top: 30px; }
.page-title { font-size: clamp(36px, 4.6vw, 50px); margin-bottom: 22px; }
.backlink { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; margin-bottom: 16px; color: #fff; font-weight: 900; text-decoration: none; text-shadow: 0 2px 0 var(--ink); }
.backlink:hover { text-decoration: underline; }
.panel {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 3px solid var(--ink);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .14), 0 6px 0 rgba(0, 0, 0, .25);
}
.panel + .panel { margin-top: 18px; }
.panel__title { font-family: var(--font-display); font-size: 26px; margin-bottom: 14px; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 2px 0 var(--ink); }
.muted { color: var(--text-dim); }
.small { font-size: 14px; }
.prose { color: var(--text-dim); font-weight: 700; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin: .2em 0; }
.prose strong { color: #fff; }
.prose a { color: var(--gold); }
.prose--light { color: #2a1a0c; }
.prose--light strong { color: #000; }
.prose--light a { color: #1b6fd0; }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 900; font-size: 15px; }
.input, .field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 3px solid var(--ink);
  background: #071a38;
  color: #fff;
  font-weight: 800;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, .35);
}
.field textarea { min-height: 110px; resize: vertical; }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: #7f98c0; font-weight: 700; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible, .input:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 800; margin: 6px 0 18px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: #2aa31d; flex: none; }
.errors { margin: 0 0 16px; padding: 12px 16px 12px 34px; border-radius: 12px; background: #ffe1e6; color: #7d0b24; border: 3px solid var(--ink); font-weight: 800; }
.form-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-weight: 800; }
.form-links a { color: var(--gold); }

/* Auth */
.auth { display: grid; place-items: center; padding-top: 44px; }
.auth .panel { width: min(460px, 100%); }
.auth__crown { width: 66px; height: auto; margin: -60px auto 6px; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .3)); }
.auth h1 { font-size: 38px; text-align: center; margin-bottom: 18px; }

/* Stepper */
.stepper { display: inline-flex; align-items: stretch; }
.stepper input {
  width: 72px;
  min-height: 48px;
  text-align: center;
  border: 3px solid var(--ink);
  border-inline: 0;
  background: #071a38;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .btn { border-radius: 0; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), inset 0 -4px 0 rgba(0, 0, 0, .2); }
.stepper .btn:first-child { border-radius: 12px 0 0 12px; }
.stepper .btn:last-child { border-radius: 0 12px 12px 0; }
.stepper .btn:active { transform: none; }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.product__media .pcard__body { padding: 20px 20px 24px; }
.product__media .pcard__stage { width: 88%; }
.product__name { font-size: clamp(38px, 4.6vw, 54px); }
.product__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; margin: 12px 0 8px; }
.product__price .price { font-size: 40px; }
.product__price s { font-size: 22px; color: var(--text-dim); }
.stock { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; border: 2.5px solid var(--ink); font-size: 14px; font-weight: 900; }
.stock--ok { background: #d9ffd0; color: #14600a; }
.stock--low { background: #fff1c4; color: #7a4a00; }
.stock--out { background: #ffd6de; color: #8f0b2a; }
.lead { font-size: 18px; color: var(--text-dim); }
.buybox { margin: 20px 0 22px; padding: 18px; border-radius: 16px; background: rgba(4, 17, 38, .55); border: 3px solid var(--ink); }
.buybox__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.buybox__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: 1; }
.buybox__actions .btn { flex: 1; }

/* ---------- Cart / checkout / order ---------- */
.lines { display: grid; gap: 12px; }
.line {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 2px solid rgba(0, 0, 0, .35);
}
.line__thumb {
  width: 64px; height: 64px;
  border-radius: 12px;
  border: 3px solid var(--ink);
  background: linear-gradient(180deg, #7fa3d6, #34578c);
  padding: 4px;
  object-fit: contain;
}
.line__name { font-family: var(--font-display); font-size: 21px; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 2px 0 var(--ink); }
.line__meta { font-size: 14px; color: var(--text-dim); }
.line__total { font-family: var(--font-display); font-size: 22px; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-align: right; }
.qty-form { display: inline-flex; align-items: center; gap: 6px; }
.qty-form .qty { min-width: 34px; text-align: center; font-weight: 900; font-size: 18px; }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 3px dashed rgba(255, 255, 255, .25); }
.summary__total { font-size: 34px; }
.cart-layout { display: grid; gap: 18px; }
.empty { text-align: center; padding: 28px 10px; }
.empty img { width: 140px; margin: 0 auto 12px; }

.checkout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.checkout .panel + .panel { margin-top: 0; }
.paygrid { display: grid; gap: 10px; margin-bottom: 14px; }
.paytile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #071a38;
  border: 3px solid var(--ink);
  cursor: pointer;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, .35);
}
.paytile input { width: 20px; height: 20px; accent-color: #2aa31d; flex: none; }
.paytile__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: linear-gradient(#66c8ff, #1b7be4); border: 3px solid var(--ink); font-size: 22px; flex: none; }
.paytile b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 20px; -webkit-text-stroke: 3.5px var(--ink); paint-order: stroke fill; }
.paytile small { display: block; color: var(--text-dim); font-weight: 800; }
.paytile:has(input:checked) { background: #0f3a20; border-color: #66ff7a; box-shadow: 0 0 0 3px var(--ink), inset 0 3px 0 rgba(0, 0, 0, .3); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 14px; border-top: 3px dashed rgba(255, 255, 255, .25); }
.total-row .display { font-size: 34px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  color: #10213f;
}
.status--pending { background: #fff1c4; }
.status--review { background: #ffe2b8; }
.status--paid { background: #d8ecff; }
.status--completed { background: #d9ffd0; }
.status--cancelled, .status--refunded { background: #e8e8ee; color: #4b4f5c; }
.order-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 20px; }
.order-head .page-title { margin: 0; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.order-grid > div > .panel + .panel { margin-top: 18px; }
.deliver { padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 2px solid rgba(0, 0, 0, .35); }
.deliver + .deliver { margin-top: 12px; }
.deliver__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.keys { display: grid; gap: 8px; margin: 10px 0; }
.key {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: 12px;
  background: var(--cream);
  border: 3px solid var(--ink);
  color: #1d1306;
}
.key code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 800 16px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--text-dim); font-weight: 800; }
.kv dd { margin: 0; font-weight: 900; text-align: right; overflow-wrap: anywhere; }
.pay-again { display: flex; flex-wrap: wrap; gap: 10px; }
.notice {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  border: 2px dashed rgba(255, 255, 255, .35);
  font-weight: 800;
}
.rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-bottom: 12px; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { cursor: pointer; font-size: 34px; color: #4a5f86; line-height: 1; }
.rate label .ic { fill: currentColor; stroke: var(--ink); stroke-width: 1.4; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--gold); }
.rate input:focus-visible + label { outline: 3px solid var(--gold); border-radius: 6px; }

/* ---------- Account ---------- */
.account-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 22px; }
.account-head__avatar { width: 84px; height: 84px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(#ffffff, #cfdcf0); border: 4px solid var(--ink); box-shadow: 0 5px 0 rgba(0, 0, 0, .25); }
.account-head__avatar .ic { font-size: 46px; color: #1c2a45; stroke-width: 2.2; }
.account-head h1 { font-size: 40px; }
.account-head__meta { color: var(--text-dim); font-weight: 800; }
.account-head form { margin-left: auto; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { padding: 16px 18px; border-radius: 16px; background: linear-gradient(180deg, #ffe46e, #f2a400); border: 3px solid var(--ink); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), 0 5px 0 rgba(0, 0, 0, .25); color: #3b2200; }
.stat__value { font-family: var(--font-display); font-size: 34px; color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); line-height: 1.1; }
.stat__label { font-weight: 900; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 13px; color: var(--text-dim); font-weight: 900; padding: 8px 10px; border-bottom: 3px solid rgba(0, 0, 0, .35); }
.table td { padding: 12px 10px; border-bottom: 2px solid rgba(255, 255, 255, .08); font-weight: 800; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.code { font: 800 14px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.order-cards { display: none; }

/* ---------- Error ---------- */
.error-page { text-align: center; padding-top: 50px; }
.error-page .display { font-size: 96px; }
.error-page p { font-size: 18px; color: var(--text-dim); margin: 10px 0 24px; }

/* ---------- Terms ---------- */
.terms { max-width: 760px; margin-inline: auto; }
.terms .prose { color: #2a1a0c; }


/* ---------- Splash (title screen) ---------- */
.splash-body { background-color: #1a4f97; background-color: color-mix(in srgb, var(--bg) 90%, #000); }
.splash { position: relative; text-align: center; padding-bottom: 8px; }
.splash__hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 40px 16px clamp(170px, 40vh, 380px);
  isolation: isolate;
}
.splash__arena {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: url('arena.svg') center bottom / auto 100% no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 8%);
  pointer-events: none;
}
.splash__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 228, 130, .42), rgba(255, 228, 130, 0) 38%),
    radial-gradient(ellipse 120% 70% at 50% 115%, rgba(6, 20, 48, .75), rgba(6, 20, 48, 0) 60%);
}
.splash__rays {
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 38%;
  width: 1600px;
  height: 1600px;
  margin: -800px 0 0 -800px;
  background: repeating-conic-gradient(from 0deg, rgba(255, 242, 190, .15) 0deg 8deg, rgba(255, 242, 190, 0) 8deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 0 14%, transparent 52%);
  mask-image: radial-gradient(circle, #000 0 14%, transparent 52%);
  animation: rays 80s linear infinite;
}
@keyframes rays { to { transform: rotate(360deg); } }
.splash__inner { display: grid; justify-items: center; gap: 6px; }
.splash__crown {
  position: relative;
  width: min(200px, 46vw);
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, .28));
  animation: crown-drop .9s cubic-bezier(.18, 1.35, .4, 1) both;
}
.splash__crown img { width: 100%; }
.splash__crown::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .85) 50%, rgba(255, 255, 255, 0) 62%);
  background-size: 300% 100%;
  background-position: 150% 0;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
  animation: shine 3.4s ease-in-out 1.2s infinite;
  pointer-events: none;
}
@keyframes crown-drop { from { transform: translateY(-70px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes shine { 0% { background-position: 150% 0; } 45%, 100% { background-position: -50% 0; } }
.splash__name {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 112px);
  line-height: 1;
  color: var(--gold);
  -webkit-text-stroke: 10px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 7px 0 var(--ink);
  animation: pop .5s .3s both;
}
.splash__tag { margin: 6px 0 0; font-size: clamp(17px, 2.2vw, 22px); font-weight: 900; text-shadow: 0 2px 0 var(--ink); animation: pop .5s .45s both; }
.splash__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 26px; animation: pop .5s .6s both; }
.splash__who { margin: 14px 0 0; font-weight: 800; color: var(--text-dim); text-shadow: 0 2px 0 var(--ink); }
.splash__who strong { color: #fff; }
.splash__foot { display: grid; justify-items: center; gap: 8px; padding: 34px 16px 26px; margin-top: 56px; background: rgba(6, 20, 48, .45); border-top: 4px solid var(--ink); }

/* Trust strip and top picks under the arena */
.splash__perks { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: -54px; }
.perk {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-align: start;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 3px solid var(--ink);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .14), 0 5px 0 rgba(0, 0, 0, .3);
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease;
}
a.perk:hover { filter: brightness(1.12); transform: translateY(-2px); }
.perk__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(180deg, #ffe46e, #f09e00);
  border: 3px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), 0 3px 0 var(--ink);
}
.perk__icon .ic { stroke-width: 2.8; filter: drop-shadow(0 2px 0 var(--ink)); }
.perk__body { display: grid; gap: 2px; min-width: 0; }
.perk__title { font-size: 20px; line-height: 1.1; }
.perk__text { font-size: 14px; color: var(--text-dim); font-weight: 800; }
.splash__picks { padding-top: 70px; }
.splash__foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
.splash__foot a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: #fff; font-weight: 900; text-decoration: none; text-shadow: 0 2px 0 var(--ink); }
.splash__foot a:hover { text-decoration: underline; }
.splash__foot p { margin: 0; max-width: 64ch; font-size: 12px; font-weight: 700; color: #cfe1fb; text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
@keyframes pop { from { transform: translateY(12px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.btn--xl {
  min-height: 70px;
  min-width: 230px;
  padding: 12px 34px;
  font-size: 34px;
  border-radius: 18px;
  text-transform: uppercase;
  -webkit-text-stroke-width: 6px;
  text-shadow: 0 3px 0 var(--ink);
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, .45), inset 0 -5px 0 rgba(0, 0, 0, .2), 0 6px 0 var(--ink);
}
.btn--xl .ic { font-size: 30px; }
.btn--xl:active { transform: translateY(4px); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .45), inset 0 -5px 0 rgba(0, 0, 0, .2), 0 2px 0 var(--ink); }

/* ---------- Shop shelves ---------- */
.shop-top { padding-top: 58px; display: grid; gap: 64px; }
.ribbon--blue .ribbon__band { background: linear-gradient(180deg, #74cdff 0%, #2a8ee8 55%, #1a6dc9 100%); }
.ribbon--blue .ribbon__band::before, .ribbon--blue .ribbon__band::after { background: linear-gradient(180deg, #1a6dc9, #134f96); }
.ribbon--purple .ribbon__band { background: linear-gradient(180deg, #cf8cff 0%, #9b45e6 55%, #7a2bd0 100%); }
.ribbon--purple .ribbon__band::before, .ribbon--purple .ribbon__band::after { background: linear-gradient(180deg, #7a2bd0, #5a1aa0); }
.ribbon--green .ribbon__band { background: linear-gradient(180deg, #86ee6f 0%, #3fbf2c 55%, #2a9e1c 100%); }
.ribbon--green .ribbon__band::before, .ribbon--green .ribbon__band::after { background: linear-gradient(180deg, #2a9e1c, #1d7313); }

/* ---------- Orders on the account page ---------- */
.keylist-user { display: grid; gap: 10px; }
.keyrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 2px solid rgba(0, 0, 0, .35); }
.keyrow .line__thumb { width: 56px; height: 56px; }
.keyrow .key { margin-top: 6px; }
.keyrow__meta { font-size: 13px; color: var(--text-dim); font-weight: 800; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1340px) {
  .fab-cart { display: none !important; }
}
@media (max-width: 1339px) {
  .rail { display: none; }
  .fab-cart { display: inline-flex; }
  .footer__inner { padding-bottom: 88px; }
}
@media (max-width: 1020px) {
  .shelf, .shelf--count-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .step::after { display: none; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .product, .checkout, .order-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) {
  .navbtn { padding: 6px 14px; font-size: 18px; }
  .nav { gap: 8px; }
  .topbar .community-btn { width: 44px; padding: 0; }
  .topbar .community-btn span { display: none; }
}
@media (max-width: 1000px) {
  .topbar__right { margin-inline-start: auto; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px 18px;
    border-bottom: 4px solid var(--ink);
    background: var(--wood-d1);
    box-shadow: 0 8px 0 rgba(0, 0, 0, .25);
  }
  .nav.is-open { display: flex; }
  .navbtn { justify-content: center; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .topbar__inner { gap: 10px; min-height: 68px; }
  .brand__name { font-size: 24px; }
  .brand img { width: 38px; }
  .who__name { display: none; }
  .scroll-btn { display: none !important; }
}
@media (max-width: 640px) {
  main { padding-bottom: 96px; }
  .shop-top { padding-top: 46px; gap: 54px; }
  .btn--xl { min-width: 0; width: min(100%, 300px); font-size: 28px; min-height: 62px; }
  .splash__actions { flex-direction: column; align-items: center; width: 100%; }
  .splash__arena { height: 36%; }
  .splash__hero { padding-bottom: clamp(120px, 24vh, 200px); }
  .splash__perks { margin-top: -30px; }
  .perk__title { font-size: 18px; }
  .keyrow { grid-template-columns: 48px minmax(0, 1fr); }
  .keyrow .line__thumb { width: 48px; height: 48px; }
  .keyrow > .btn { grid-column: 2; justify-self: start; }
  .keyrow > .inv-actions { grid-column: 2; justify-content: flex-start; }
  .shelf, .shelf--count-2, .shelf--count-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shelf--count-1 { grid-template-columns: minmax(0, 1fr); }
  .pcard__body { padding: 10px 8px 0; border-width: 3px; border-radius: 13px; }
  .pcard__name { font-size: 17px; -webkit-text-stroke-width: 4px; text-shadow: 0 2px 0 var(--ink); }
  .tag-room { padding-inline-end: 54px; }
  .tag { inset-inline-end: 6px; padding: 2px 2px 0; }
  .tag > span { min-width: 40px; padding: 5px 5px 11px; }
  .tag b { font-size: 11px; -webkit-text-stroke-width: 3px; }
  .tag--short b { font-size: 16px; }
  .tag small { font-size: 8px; }
  .chip { font-size: 12px; padding: 2px 8px 3px; border-width: 2px; -webkit-text-stroke-width: 3px; }
  .pcard__chips { margin: -2px 0 8px; }
  .pcard__price { margin: auto -8px 0; padding: 6px 4px 8px; font-size: 21px; -webkit-text-stroke-width: 4px; text-shadow: 0 2px 0 var(--ink); }
  .pcard__price s { font-size: 13px; }
  .pcard__actions { gap: 6px; padding-top: 10px; }
  .pcard__actions .btn { min-height: 44px; padding: 4px 8px; font-size: 16px; border-radius: 10px; -webkit-text-stroke-width: 3.5px; }
  .pcard__actions .btn--icon { width: 44px; flex: none; }
  .pcard__actions .btn-i { font-size: 20px; }
  .soldout-tag { font-size: 15px; padding: 4px 9px; }
  .pcard--featured .pcard__body { box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), 0 0 0 3px #c9ffe6, 0 0 16px 3px rgba(150, 255, 205, .7); }
  .frame { padding: 10px; }
  .frame__inner { padding: 12px; }
  .ribbon__band { padding: 6px 26px 10px; }
  .ribbon__band::before { left: -26px; width: 36px; }
  .ribbon__band::after { right: -26px; width: 36px; }
  .frame__head .btn--icon { display: none; }
  .steps, .reviews { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 10px 12px; border-radius: 12px; }
  .stat__value { font-size: 21px; -webkit-text-stroke-width: 4px; }
  .stat__label { font-size: 12px; }
  .line { grid-template-columns: 56px 1fr; }
  .line__thumb { width: 56px; height: 56px; }
  .line__qty, .line__total { grid-column: 2; justify-self: start; text-align: left; }
  .table--orders { display: none; }
  .order-cards { display: grid; gap: 10px; }
  .account-head form { margin-left: 0; }
  .brand__name { font-size: 22px; }
  .btn--login { padding-inline: 12px; font-size: 18px; }
}

.order-card { display: grid; gap: 6px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 2px solid rgba(0, 0, 0, .35); color: #fff; text-decoration: none; }
.order-card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ==========================================================================
   Motion
   Entrance animations play on load. Groups below the fold carry .anim-hold
   (added by app.js) and start when they scroll into view.
   ========================================================================== */

/* Smooth page-to-page transitions (Chrome, Edge, Safari 18.2+; others just navigate) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root) { animation: vt-out 160ms ease-in both; }
::view-transition-new(root) { animation: vt-in 320ms cubic-bezier(.2, 1, .3, 1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
.topbar { view-transition-name: topbar; }
.brand__logo, .splash__crown { view-transition-name: crown; }
.rail { view-transition-name: rail; }
.floaters { view-transition-name: floaters; }
::view-transition-group(crown) { animation-duration: 520ms; animation-timing-function: cubic-bezier(.25, 1.15, .35, 1); }
::view-transition-group(*) { animation-duration: 420ms; animation-timing-function: cubic-bezier(.2, 1, .3, 1); }

/* Holding pattern for groups that are still off-screen */
.anim-hold, .anim-hold *, .anim-hold *::before, .anim-hold *::after { animation-play-state: paused !important; }

/* Entrance building blocks: data-anim="pop|drop|deal|rise|fade", stagger with style="--i: n" */
[data-anim] {
  animation: pop-in .5s cubic-bezier(.2, 1.3, .4, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms + var(--d, 0ms));
}
[data-anim="drop"] { animation-name: drop-in; animation-duration: .6s; }
[data-anim="deal"] { animation-name: deal-in; animation-duration: .55s; --d: 260ms; }
[data-anim="rise"] { animation-name: rise-in; animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .9, .3, 1); }
[data-anim="fade"] { animation-name: fade-in; animation-duration: .4s; animation-timing-function: ease-out; }
@keyframes pop-in { from { opacity: 0; transform: scale(.86); } }
@keyframes drop-in {
  0% { opacity: 0; transform: translateY(-34px) scale(.97); }
  60% { opacity: 1; transform: translateY(5px) scale(1.005); }
  100% { opacity: 1; transform: none; }
}
@keyframes deal-in {
  0% { opacity: 0; transform: translateY(30px) rotate(-5deg) scale(.88); }
  65% { opacity: 1; transform: translateY(-5px) rotate(1.2deg) scale(1.02); }
  100% { opacity: 1; transform: none; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes fade-in { from { opacity: 0; } }

/* Titles land with a small stamp */
.page-title, .product__name, .account-head h1, .section-title, .auth h1 { animation: stamp .5s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes stamp { from { opacity: 0; transform: scale(1.25); } }

/* Shop: ribbon unfurls after its frame lands, items pop after their card */
.ribbon__band { animation: unfurl .65s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 220ms); }
@keyframes unfurl { from { opacity: 0; transform: scaleX(.25); } }
.ribbon__ends { animation: fade-in .4s ease-out both; animation-delay: calc(var(--i, 0) * 70ms + 650ms); }
.pcard__img { animation: item-pop .6s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 480ms); }
@keyframes item-pop { 0% { opacity: 0; transform: scale(.4) translateY(14px); } 70% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: none; } }
.chip { animation: pop-in .4s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 620ms); }
.tag { animation: tag-drop .5s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 700ms); }
@keyframes tag-drop { from { transform: translateY(-120%); } }
.soldout-tag { animation: soldout-in .5s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 760ms); }
@keyframes soldout-in { from { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(1.8); } }

/* Featured card: a foil shine sweeps across every few seconds */
.pcard--featured .pcard__body::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, .55) 47%, rgba(255, 255, 255, 0) 60%);
  background-size: 260% 100%;
  background-position: 160% 0;
  animation: foil 4.5s ease-in-out 1.6s infinite;
}
@keyframes foil { 0% { background-position: 160% 0; } 35%, 100% { background-position: -60% 0; } }

/* Buttons: a light streak runs across on hover */
.btn::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .5) 45%, rgba(255, 255, 255, 0) 60%);
  background-size: 260% 100%;
  background-position: 140% 0;
  opacity: 0;
}
@media (hover: hover) {
  .btn:hover::after { animation: btn-shine .7s ease-out; }
}
@keyframes btn-shine { from { opacity: 1; background-position: 140% 0; } to { opacity: 1; background-position: -40% 0; } }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::after {
  opacity: 1;
  z-index: 1;
  inset: auto;
  top: calc(50% - 10px);
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: none;
  border: 3px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn--lg.is-loading, .btn--xl.is-loading { padding-right: 44px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Nav and brand */
.navbtn { transition: filter .15s ease, transform .1s ease; }
.navbtn:hover { filter: brightness(1.15); }
.navbtn:active { transform: translateY(2px); }
.brand:hover .brand__logo { animation: wiggle .6s ease-in-out; }
@keyframes wiggle { 20% { transform: rotate(-10deg); } 45% { transform: rotate(8deg); } 70% { transform: rotate(-4deg); } }

/* Side rail and floating buttons slide in */
.rail { animation: rail-in .6s .35s cubic-bezier(.2, 1.25, .4, 1) both; }
@keyframes rail-in { from { opacity: 0; transform: translate(115%, -40%); } }
.floaters > * { animation: pop-in .45s cubic-bezier(.2, 1.5, .4, 1) both; }
.floaters > :nth-child(2) { animation-delay: .5s; }
.floaters > :nth-child(3) { animation-delay: .58s; }
.count-badge.is-bump { animation: bump .5s cubic-bezier(.2, 1.7, .4, 1); }
@keyframes bump { 30% { transform: scale(1.6); } }

/* Messages */
.flash { animation: flash-in .45s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-12px) scale(.97); } }
.toast { animation: toast-in .35s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.9); } }

/* How it works: coins flip in, the dashed path draws between them */
.step__num { animation: coin-in .7s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--i, 0) * 160ms + 120ms); }
@keyframes coin-in { 0% { opacity: 0; transform: rotateY(100deg) scale(.5); } 60% { opacity: 1; transform: rotateY(-20deg) scale(1.1); } 100% { opacity: 1; transform: none; } }
.step:not(:last-child)::after { animation: draw .6s ease-out both; animation-delay: calc(var(--i, 0) * 160ms + 420ms); }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* FAQ opens smoothly where the browser supports it */
.faq__plus .ic { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
@supports selector(::details-content) {
  .faq { interpolate-size: allow-keywords; }
  .faq::details-content { block-size: 0; overflow: clip; transition: block-size .35s cubic-bezier(.2, .9, .3, 1), content-visibility .35s allow-discrete; }
  .faq[open]::details-content { block-size: auto; }
}

/* Checkout: the picked method's icon gives a little wiggle */
.paytile { transition: background-color .2s ease, border-color .2s ease; }
.paytile:has(input:checked) .paytile__icon { animation: wiggle .55s ease-in-out; }

/* Quantity steppers and copy buttons bounce when they change */
.stepper input.is-bump, .qty.is-bump { animation: bump .35s cubic-bezier(.2, 1.6, .4, 1); }
.btn.is-copied { animation: bump .45s cubic-bezier(.2, 1.6, .4, 1); }

/* Auth panels and the error page */
.auth .panel { animation: pop-in .5s cubic-bezier(.2, 1.3, .4, 1) both; }
.auth__crown { animation: crown-drop .8s .15s cubic-bezier(.18, 1.35, .4, 1) both; }
.error-page .display { animation: drop-in .7s cubic-bezier(.2, 1.3, .4, 1) both, wobble 2.8s 1s ease-in-out infinite; display: inline-block; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }

/* Order page: keys flip in, bigger when a payment has just landed */
.key { animation: rise-in .45s cubic-bezier(.2, .9, .3, 1) both; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
[data-celebrate] .key { animation: key-reveal .7s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--i, 0) * 140ms + 350ms); }
@keyframes key-reveal { 0% { opacity: 0; transform: perspective(600px) rotateX(-90deg); } 60% { opacity: 1; transform: perspective(600px) rotateX(12deg); } 100% { opacity: 1; transform: none; } }
.burst { position: fixed; z-index: 95; pointer-events: none; will-change: transform, opacity; }
.burst--coin { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6b0, #ffd23f 45%, #e08a00); border: 2px solid var(--ink); }
.burst--bit { width: 10px; height: 14px; border-radius: 2px; border: 2px solid var(--ink); }
.burst--star { width: 18px; height: 18px; color: #fff7c2; }
.burst--star svg { width: 100%; height: 100%; fill: currentColor; }

/* Splash extras: rising sparkles and a gentle nudge on the main button */
.splash__particles { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.splash__p { position: absolute; bottom: -20px; width: 12px; height: 12px; color: #fff3b0; opacity: 0; animation: rise-p 7s linear infinite; pointer-events: none; }
.splash__p svg { width: 100%; height: 100%; fill: currentColor; }
.splash__p:nth-child(1) { left: 8%; animation-delay: .2s; }
.splash__p:nth-child(2) { left: 22%; width: 18px; height: 18px; animation-delay: 2.4s; animation-duration: 8s; }
.splash__p:nth-child(3) { left: 36%; animation-delay: 4.1s; }
.splash__p:nth-child(4) { left: 52%; width: 9px; height: 9px; animation-delay: 1.1s; animation-duration: 6s; }
.splash__p:nth-child(5) { left: 66%; width: 16px; height: 16px; animation-delay: 3.3s; }
.splash__p:nth-child(6) { left: 80%; animation-delay: 5.2s; animation-duration: 9s; }
.splash__p:nth-child(7) { left: 92%; width: 14px; height: 14px; animation-delay: 1.8s; }
@keyframes rise-p {
  0% { opacity: 0; transform: translateY(0) rotate(0deg); }
  15% { opacity: .9; }
  80% { opacity: .6; }
  100% { opacity: 0; transform: translateY(-105vh) rotate(220deg); }
}
.splash__actions .btn--green { animation: none; }
@keyframes nudge { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.05); } 90% { transform: scale(.99); } }
.splash__actions .btn--green:active { animation: none; }
.splash__foot { animation: fade-in .6s .9s ease-out both; }

/* Account stats tick up (numbers are animated by app.js) */
.stat { animation: deal-in .55s cubic-bezier(.2, 1.3, .4, 1) both; }
.stats > :nth-child(2) { animation-delay: 80ms; }
.stats > :nth-child(3) { animation-delay: 160ms; }


/* ==========================================================================
   SellAuth theme pieces: login modal, variants, customer area, blog, legal,
   pagination, cookie banner and editor toolbar
   ========================================================================== */
[x-cloak] { display: none !important; }
#app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; overflow-x: clip; }
#app > main { flex: 1 0 auto; }
.linkbtn { background: none; border: 0; padding: 0 6px; min-height: 44px; color: var(--gold); font-weight: 900; cursor: pointer; text-decoration: underline; }
.center { text-align: center; }
.stack { display: grid; gap: 12px; }

/* Announcement bar */
.announce { background: linear-gradient(180deg, #ffe46e, #f2a400); color: var(--ink); border-bottom: 3px solid var(--ink); font-weight: 900; font-size: 14px; }
.announce__inner { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 7px 16px; text-align: center; flex-wrap: wrap; }
.announce a { color: var(--ink); }

/* Currency picker in the top bar */
.cur-select { appearance: none; -webkit-appearance: none; height: 44px; padding: 0 30px 0 12px; border-radius: 12px; border: 3px solid var(--ink); background: #3b6fb6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px; color: #fff; font-weight: 900; text-transform: uppercase; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25); cursor: pointer; }

/* Category chips above the shelves */
.cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 26px; }
.cat { padding: 8px 16px; border-radius: 999px; border: 3px solid var(--ink); background: #2b5ea7; color: #fff; font-weight: 900; text-decoration: none; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25); }
.cat:hover { background: #3a71c0; }
.cat.is-active { background: linear-gradient(180deg, #ffe46e, #f2a400); color: var(--ink); }

/* Card status pill (e.g. Available) */
.pstatus { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border-radius: 999px; border: 2.5px solid var(--ink); background: #fff; color: #10213f; font-size: 13px; font-weight: 900; }
.pstatus::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--c, #2aa31d); box-shadow: 0 0 0 2px rgba(0, 0, 0, .15); }

/* Modal (login, group contents, tickets) */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 14, 34, .72); }
.modal__card { position: relative; width: min(440px, 100%); max-height: calc(100vh - 36px); overflow: auto; animation: pop-in .38s cubic-bezier(.2, 1.3, .4, 1) both; }
.modal__card--wide { width: min(640px, 100%); }
.modal__x { position: absolute; top: 10px; inset-inline-end: 10px; width: 44px; height: 44px; border-radius: 10px; border: 3px solid var(--ink); background: #c0163c; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.modal__x .ic { font-size: 18px; }
.modal h2 { font-family: var(--font-display); font-size: 32px; text-align: center; margin: 0 0 14px; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); }
.modal .auth__crown { margin-top: -6px; }
.otp-input { width: 100%; text-align: center; letter-spacing: .5em; padding-left: .5em; font: 900 28px/1 var(--font-body); }
.modal-note { text-align: center; font-weight: 800; color: var(--text-dim); margin: 0 0 14px; }
.modal-note strong { color: #fff; overflow-wrap: anywhere; }
.form-error { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #ffe1e6; color: #7d0b24; border: 3px solid var(--ink); font-weight: 900; }
.bot-check { margin: 0 0 14px; }

/* Group contents */
.glist { display: grid; gap: 10px; }
.glist a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 2px solid rgba(0, 0, 0, .35); color: #fff; text-decoration: none; font-weight: 900; }
.glist a:hover { background: rgba(255, 255, 255, .13); }
.glist img { width: 52px; height: 52px; object-fit: contain; }

/* Product page extras */
.variants { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.variant { padding: 9px 14px; border-radius: 12px; border: 3px solid var(--ink); background: #20497f; color: #fff; font-weight: 900; cursor: pointer; text-align: left; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25); }
.variant small { display: block; font-size: 13px; color: var(--text-dim); }
.variant.is-active { background: linear-gradient(180deg, #ffe46e, #f2a400); color: var(--ink); }
.variant.is-active small { color: #5a3a00; }
.variant[disabled] { opacity: .5; cursor: not-allowed; }
.thumbs { display: flex; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 56px; height: 56px; padding: 4px; border-radius: 12px; border: 3px solid var(--ink); background: rgba(255, 255, 255, .1); cursor: pointer; }
.thumbs button.is-active { background: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.addons { display: grid; gap: 8px; margin: 0 0 14px; }
.addon { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .18); font-weight: 900; }
.deal-hint { margin: 10px 0 0; font-weight: 900; color: #a7ff94; }
.ptabs { display: grid; gap: 10px; margin-top: 18px; }
.upsells { margin-top: 34px; }

/* Cart extras */
.line__addon { grid-column: 2 / -1; font-size: 13px; color: var(--text-dim); font-weight: 800; }
.cart-msgs { display: grid; gap: 8px; margin-bottom: 14px; }

/* Pagination */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; border: 3px solid var(--ink); background: #2b5ea7; color: #fff; font-weight: 900; text-decoration: none; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25); }
.pager .is-active { background: linear-gradient(180deg, #ffe46e, #f2a400); color: var(--ink); }
.pager .is-off { opacity: .45; }

/* Customer area */
.cust { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.cust__nav { position: sticky; top: 92px; display: grid; gap: 6px; padding: 12px; }
.cust__nav a, .cust__nav button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: #fff; font-weight: 900; text-decoration: none; background: transparent; border: 0; cursor: pointer; text-align: left; position: relative; isolation: isolate; }
.cust__nav a:hover, .cust__nav button:hover { background: rgba(255, 255, 255, .08); }
.cust__nav a.is-active { background: #16345f; box-shadow: inset 4px 0 0 var(--gold); }
.cust__nav .ic { font-size: 20px; flex: none; }
.cust__who { padding: 6px 12px 10px; border-bottom: 2px solid rgba(255, 255, 255, .1); margin-bottom: 4px; font-size: 13px; color: var(--text-dim); font-weight: 800; overflow-wrap: anywhere; }
.cust__main { min-width: 0; }
.cust__main > .panel + .panel { margin-top: 18px; }
.inv-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.kv-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; font-weight: 800; }
.kv-list dt { color: var(--text-dim); }
.kv-list dd { margin: 0; overflow-wrap: anywhere; }
.copybox { display: flex; gap: 10px; align-items: center; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--cream); color: #2a1a0c; border: 3px solid var(--ink); }
.copybox code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 800 15px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.row-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.row-form .field { margin: 0; flex: 1 1 200px; }

/* Ticket thread */
.thread { display: grid; gap: 12px; margin-bottom: 18px; }
.msg { max-width: 80%; padding: 12px 14px; border-radius: 16px; border: 3px solid var(--ink); background: #eaf4ff; color: #10213f; font-weight: 700; white-space: pre-line; overflow-wrap: anywhere; }
.msg--me { justify-self: end; background: #d9ffd0; }
.msg__meta { display: block; margin-top: 6px; font-size: 12px; font-weight: 900; color: #4b5d7d; }
.msg img { max-width: 220px; border-radius: 10px; margin-top: 8px; }

/* Feedback page */
.review__reply { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #f3e6cc; font-size: 14px; }
.review__reply strong { display: block; font-size: 12px; color: #7a5a35; }
.reviews--page { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Status page */
.statuslist { display: grid; gap: 10px; }
.statusrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 2px solid rgba(0, 0, 0, .35); font-weight: 900; color: #fff; text-decoration: none; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.post-card { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: var(--cream); color: #2a1a0c; border: 3px solid var(--ink); text-decoration: none; box-shadow: 0 6px 0 rgba(0, 0, 0, .25); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 3px solid var(--ink); }
.post-card h2 { font-family: var(--font-display); font-size: 24px; color: var(--ink); }
.post-card p { margin: 0; font-weight: 700; }
.post-card time { font-size: 13px; font-weight: 900; color: #7a5a35; }
.article { max-width: 780px; margin-inline: auto; }
.article__hero { width: 100%; border-radius: 18px; border: 3px solid var(--ink); margin-bottom: 18px; }

/* Legal and long text */
.legal { max-width: 820px; margin-inline: auto; }
.legal .review { padding: 26px; }
.prose--light h1, .prose--light h2, .prose--light h3 { font-family: var(--font-display); color: var(--ink); margin: 1em 0 .4em; }
.prose--light table { border-collapse: collapse; width: 100%; }
.prose--light td, .prose--light th { border: 1px solid #d8c7a6; padding: 6px 8px; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.text-block { max-width: 820px; margin-inline: auto; text-align: center; color: var(--text-dim); font-weight: 800; white-space: pre-line; }

/* Maintenance */
.maint { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.maint .panel { width: min(440px, 100%); text-align: center; }

/* Cookie banner */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95; max-width: 560px; margin-inline: auto; padding: 16px 18px; animation: rise-in .4s cubic-bezier(.2, .9, .3, 1) both; }
.cookie p { margin: 0 0 12px; font-weight: 800; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie__opts { display: grid; gap: 6px; margin: 0 0 12px; }

/* Editor toolbar (only inside SellAuth's visual editor) */
.builder .component { position: relative; }
.builder .component:hover { outline: 3px dashed var(--gold); outline-offset: -3px; }
.builder-toolbar { position: absolute; top: 8px; right: 8px; z-index: 40; display: none; gap: 6px; }
.builder .component:hover > .builder-toolbar { display: flex; }
.builder-toolbar button { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-weight: 900; cursor: pointer; }

@media (max-width: 900px) {
  .cust { grid-template-columns: 1fr; }
  .cust__nav { position: static; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .cust__who { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .msg { max-width: 92%; }
  .glist a { grid-template-columns: 44px minmax(0, 1fr); }
  .glist a > :last-child { grid-column: 2; }
}

/* Motion for the theme pieces */
.modal__backdrop { animation: fade-in .25s ease-out both; }
.variant { transition: transform .15s ease, background-color .15s ease; }
.variant:active { transform: translateY(2px) scale(.97); }
.variant.is-active { animation: bump .35s ease-out; }
.cust__nav a.is-active { animation: rise-in .35s ease-out both; }
.post-card, .statusrow, .glist a { animation: deal-in .5s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
.msg { animation: rise-in .4s cubic-bezier(.2, .9, .3, 1) both; animation-delay: calc(var(--i, 0) * 50ms); }


/* ==========================================================================
   Arena Shop additions: rarity, chest reveal, trophy road, plan comparison
   ========================================================================== */

/* ---------- Rarity frames ---------- */
.pcard__body::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 5px;
  border-radius: 11px;
  border: 2px solid rgba(255, 255, 255, .38);
  pointer-events: none;
}
.pcard--r-rare .pcard__body::before { border-color: rgba(255, 232, 196, .7); }
.pcard--r-epic .pcard__body::before { border: 3px solid rgba(240, 214, 255, .75); }
.pcard--r-legendary .pcard__body::before {
  border: 3px solid transparent;
  background: linear-gradient(120deg, #ff8ad8, #ffe66e, #8dffb4, #7ad7ff, #c792ff, #ff8ad8) border-box;
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rainbow 6s linear infinite;
}
.pcard--r-champion .pcard__body::before { inset: 4px; border: 3px solid #ffe27a; box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--ink), inset 0 0 18px rgba(255, 226, 122, .55); }
@keyframes rainbow { to { background-position: 300% 0; } }

.pcard__rarity {
  position: relative;
  z-index: 2;
  align-self: center;
  margin: -12px 0 8px;
  padding: 3px 12px 4px;
  border-radius: 9px;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0)), var(--r);
  border: 3px solid var(--ink);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 2px 0 var(--ink);
}
.pcard--r-legendary .pcard__rarity { background: linear-gradient(100deg, #ff7fcf, #ffd34d 30%, #6cf0a0 55%, #5cc8ff 78%, #b77dff); }
.pcard--r-champion .pcard__rarity { background: linear-gradient(180deg, #fff3a8, #ffc928 50%, #d98a00); }
.pcard--featured .pcard__rarity { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 2px 0 var(--ink), 0 0 12px rgba(255, 255, 255, .8); }

.rarity-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 11px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: #eef3fb;
  color: #10213f;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.rarity-pill { --r: var(--r-common); }
.rarity-pill--rare { --r: var(--r-rare); }
.rarity-pill--epic { --r: var(--r-epic); }
.rarity-pill--legendary { --r: var(--r-legendary); }
.rarity-pill--champion { --r: var(--r-champion); }
@supports (color: color-mix(in srgb, red, blue)) {
  .rarity-pill { background: color-mix(in srgb, var(--r) 22%, #fff); }
}
.rarity-pill::before { content: ''; width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); background: var(--r); box-shadow: 0 0 0 2px var(--ink); }

/* ---------- Chest reveal: light burst, lid pop, item rises ---------- */
.pcard__burst {
  --glow: rgba(255, 250, 214, .95);
  --ray: rgba(255, 246, 196, .55);
  position: absolute;
  z-index: 0;
  inset: -14%;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--glow) 0 16%, rgba(255, 250, 214, 0) 60%),
    repeating-conic-gradient(from 0deg, var(--ray) 0deg 9deg, rgba(255, 246, 196, 0) 9deg 24deg);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 68%);
  mask-image: radial-gradient(circle, #000 18%, transparent 68%);
  opacity: 0;
  transform: scale(.9);
  transition: opacity .3s ease, transform .6s cubic-bezier(.2, 1, .3, 1);
  pointer-events: none;
  animation: burst-in .95s ease-out backwards;
  animation-delay: calc(var(--i, 0) * 70ms + 520ms);
}
@supports (color: color-mix(in srgb, red, blue)) {
  .pcard__burst {
    --glow: color-mix(in srgb, var(--r) 22%, #fffbe0);
    --ray: color-mix(in srgb, color-mix(in srgb, var(--r) 30%, #fff6c4) 70%, transparent);
  }
}
@keyframes burst-in {
  0% { opacity: 0; transform: scale(.2) rotate(-30deg); }
  45% { opacity: 1; transform: scale(1.25) rotate(0deg); }
  100% { opacity: 0; transform: scale(.9) rotate(12deg); }
}
.pcard__lid, .pcard__stage::after {
  content: '';
  position: absolute;
  z-index: 2;
  left: 8%;
  right: 8%;
  border: 4px solid var(--ink);
  background:
    linear-gradient(90deg, transparent 20%, #ffd23f 20% 31%, transparent 31% 69%, #ffd23f 69% 80%, transparent 80%),
    linear-gradient(180deg, var(--wood-l1), var(--wood) 60%, var(--wood-dark));
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, .28);
  opacity: 0;
  pointer-events: none;
}
.pcard__lid {
  z-index: 3;
  top: 22%;
  height: 32%;
  border-radius: 48% 48% 8px 8px / 70% 70% 8px 8px;
  transform-origin: 50% 100%;
  animation: lid-pop .75s cubic-bezier(.3, 1.2, .5, 1) backwards;
  animation-delay: calc(var(--i, 0) * 70ms + 220ms);
}
.pcard__stage::after {
  z-index: 1;
  top: 52%;
  height: 34%;
  border-radius: 6px 6px 14px 14px;
  animation: chest-base .8s ease-in backwards;
  animation-delay: calc(var(--i, 0) * 70ms + 220ms);
}
@keyframes lid-pop {
  0% { opacity: 1; transform: none; }
  25% { opacity: 1; transform: translateY(-4%) rotate(-4deg); }
  40% { opacity: 1; transform: translateY(-2%) rotate(4deg); }
  70% { opacity: 1; transform: translateY(-90%) rotate(-16deg) scale(.95); }
  100% { opacity: 0; transform: translateY(-150%) rotate(-24deg) scale(.8); }
}
@keyframes chest-base {
  0%, 55% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(24%) scale(.92); }
}
.pcard__stage { transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); }
.pcard__body { transition: box-shadow .25s ease; }
@media (hover: hover) {
  .pcard:hover .pcard__burst { opacity: .95; transform: scale(1.1) rotate(25deg); }
  .pcard:hover .pcard__stage { transform: translateY(-6px) scale(1.04); }
}
.pcard:focus-within .pcard__burst, .pcard:active .pcard__burst { opacity: .95; transform: scale(1.1) rotate(25deg); }
.pcard:focus-within .pcard__stage, .pcard:active .pcard__stage { transform: translateY(-6px) scale(1.04); }
.pcard__body:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; }

/* ---------- Community button ---------- */
.community-btn .ic { font-size: 20px; }
.nav-community { display: none; }
@media (max-width: 1000px) {
  .topbar .community-btn { display: none; }
  .nav-community { display: inline-flex; }
}
.footer .community-btn { margin-bottom: 4px; }

/* ---------- Trophy road reviews ---------- */
.troad { position: relative; display: grid; gap: 20px; max-width: 900px; margin: 0 auto; padding: 0; list-style: none; }
.troad::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 40px;
  inset-inline-start: calc(50% - 17px);
  width: 34px;
  border-radius: 17px;
  background: linear-gradient(90deg, #6e4a26, #9a7246 30%, #9a7246 70%, #6e4a26);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .12), 0 4px 0 rgba(0, 0, 0, .25);
  animation: road-grow 1.1s ease-out both;
}
.troad::after {
  content: '';
  position: absolute;
  top: 30px;
  bottom: 52px;
  inset-inline-start: calc(50% - 2px);
  border-inline-start: 4px dashed rgba(255, 226, 122, .85);
  animation: road-grow 1.1s .2s ease-out both;
}
@keyframes road-grow { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.troad > li { position: relative; z-index: 1; }
.troad__start, .troad__goal { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; text-align: center; }
.troad__flag {
  display: inline-block;
  padding: 6px 18px 8px;
  border-radius: 12px;
  font-size: 22px;
  background: linear-gradient(180deg, var(--green-top), var(--green-bottom));
  border: 3px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), 0 4px 0 var(--ink);
}
.troad__stop { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; }
.troad__stop > .review { grid-column: 1; grid-row: 1; }
.troad__stop--alt > .review { grid-column: 3; }
.troad__node {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe46e, #f09e00);
  border: 4px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), 0 4px 0 var(--ink);
  animation: coin-in .7s cubic-bezier(.2, 1.4, .4, 1) both;
  animation-delay: calc(var(--i, 0) * 120ms + 150ms);
}
.troad__node .ic { font-size: 30px; color: #fff6c4; }
.troad__node b {
  position: absolute;
  bottom: -8px;
  inset-inline-end: -10px;
  min-width: 26px;
  height: 26px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--badge);
  border: 2.5px solid var(--ink);
  color: #fff;
  font: 900 13px/21px var(--font-body);
  text-align: center;
}
/* Connector from the road to the review */
.troad__stop::before {
  content: '';
  position: absolute;
  top: 50%;
  inset-inline-start: calc(50% - 60px);
  width: 30px;
  border-top: 4px dashed rgba(255, 226, 122, .7);
}
.troad__stop--alt::before { inset-inline-start: calc(50% + 30px); }
.troad__chest {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(180deg, #c983ff, #7a2bd0);
  border: 4px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), 0 5px 0 var(--ink), 0 0 26px rgba(201, 131, 255, .6);
}
.troad__chest .ic { font-size: 36px; fill: #ffd23f; color: var(--ink); stroke-width: 1.6; }
.troad__goal-text { font-size: 22px; }
@keyframes goal-glow { 50% { box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), 0 5px 0 var(--ink), 0 0 40px rgba(255, 226, 122, .85); } }

/* ---------- Plan comparison ---------- */
.pass { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; padding-top: 14px; }
.pass--count-1 { grid-template-columns: minmax(0, 400px); justify-content: center; }
.pass--count-2 { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
.pass--count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tier {
  --t1: #66c8ff;
  --t2: #1b7be4;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 4px solid var(--ink);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .14), 0 6px 0 rgba(0, 0, 0, .25);
}
.tier--purple { --t1: #c983ff; --t2: #7a2bd0; }
.tier--gold { --t1: #ffe46e; --t2: #f09e00; }
.tier--green { --t1: #74ea5e; --t2: #2aa31d; }
.tier--red { --t1: #ff8296; --t2: #d6214a; }
.tier__head {
  padding: 18px 16px 16px;
  text-align: center;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, var(--t1), var(--t2));
  border-bottom: 4px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .4);
}
.tier__name { font-size: clamp(28px, 3vw, 34px); overflow-wrap: anywhere; }
.tier__price { margin-top: 6px; font-size: 24px; }
.tier__price small { font-size: 16px; }
.tier__perks { position: relative; flex: 1; display: grid; align-content: start; gap: 12px; margin: 0; padding: 20px 18px 8px; list-style: none; }
.tier__perks::before {
  content: '';
  position: absolute;
  top: 34px;
  bottom: 26px;
  inset-inline-start: 36px;
  border-inline-start: 4px dashed rgba(255, 255, 255, .22);
}
.tier__perks li { position: relative; display: flex; align-items: center; gap: 12px; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.tier__slot {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(180deg, var(--t1), var(--t2));
  border: 3px solid var(--ink);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 3px 0 var(--ink);
  font-size: 20px;
}
.tier__slot .ic { stroke: #fff; stroke-width: 3.6; filter: drop-shadow(0 1.5px 0 var(--ink)); }
.tier__btn { width: auto; margin: 14px 18px 0; }
.tier--hot { translate: 0 -8px; box-shadow: 0 0 0 4px var(--gold), 0 0 30px 6px rgba(255, 210, 63, .45), 0 6px 0 rgba(0, 0, 0, .25); }
.tier__flag {
  position: absolute;
  z-index: 2;
  top: -20px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  padding: 5px 16px 7px;
  font-size: 18px;
  white-space: nowrap;
  background: linear-gradient(180deg, #ff6d82, #c91c41);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 0 3px 0 var(--ink);
}
.tier--hot .tier__head { padding-top: 26px; }

@media (max-width: 1020px) {
  .pass, .pass--count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .pass--count-1 { grid-template-columns: minmax(0, 400px); }
}
@media (max-width: 760px) {
  .troad::before { inset-inline-start: 13px; }
  .troad::after { inset-inline-start: 28px; }
  .troad__stop { grid-template-columns: 60px minmax(0, 1fr); column-gap: 10px; }
  .troad__stop > .review, .troad__stop--alt > .review { grid-column: 2; }
  .troad__node { grid-column: 1; width: 54px; height: 54px; justify-self: start; margin-inline-start: 3px; }
  .troad__stop::before, .troad__stop--alt::before { display: none; }
  .troad__start, .troad__goal { justify-content: flex-start; }
  .troad__goal { padding-inline-start: 0; }
  .troad__chest { width: 60px; height: 60px; }
}
@media (max-width: 640px) {
  .pass, .pass--count-2, .pass--count-4 { grid-template-columns: minmax(0, 1fr); }
  .tier--hot { translate: none; }
  .pcard__rarity { font-size: 11px; padding: 2px 7px 3px; border-width: 2px; -webkit-text-stroke-width: 3px; margin-top: -9px; }
  .pcard__lid, .pcard__stage::after { border-width: 3px; }
}
@media (max-width: 400px) {
  .pcard__actions .btn:first-child { font-size: 14px; padding-inline: 6px; }
}

/* ---------- Game-card look: name banner under the art, price on a gem plate ---------- */
.pcard__body { padding-top: 16px; }
.pcard__body .pcard__name {
  align-self: stretch;
  max-width: none;
  margin: 2px -12px 0;
  padding: 6px 10px 8px;
  font-size: 22px;
  background: linear-gradient(180deg, rgba(10, 8, 30, .5), rgba(10, 8, 30, .3));
  border-block: 3px solid rgba(26, 16, 48, .55);
}
.pcard__body .pcard__rarity { margin: 8px 0 8px; }
.pcard__body .pcard__chips { margin: 0 0 10px; }
.pcard__price { margin: auto -12px 0; padding: 4px 8px 14px; background: none; border-top: 0; font-size: 26px; }
.pcard--featured .pcard__price { background: none; }
.pcard__gem {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  padding: 3px 16px 6px 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d49bff, #8a33dc 60%, #6a1fb8);
  border: 3px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .4), 0 3px 0 var(--ink);
}
.pcard__gem::before {
  content: '';
  position: absolute;
  inset-inline-start: 11px;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -7px;
  transform: rotate(45deg);
  border-radius: 3px;
  background: linear-gradient(135deg, #e6fdff, #3fd3f5 55%, #1497c4);
  border: 2px solid var(--ink);
}
.pcard__gem s { margin-right: 0; }
@media (max-width: 640px) {
  .pcard__body .pcard__name { font-size: 16px; margin-inline: -8px; padding: 4px 6px 5px; }
  .pcard__price { padding: 2px 4px 10px; font-size: 18px; }
  .pcard__gem { padding: 2px 9px 4px 22px; gap: 4px; border-width: 2px; }
  .pcard__gem::before { inset-inline-start: 7px; width: 9px; height: 9px; margin-top: -5px; }
}

/* ---------- Product page: stat bars, buy box, setup tabs ---------- */
.pstats { display: grid; gap: 10px; margin: 16px 0 6px; padding: 14px 16px; border-radius: 16px; background: rgba(4, 17, 38, .45); border: 3px solid var(--ink); }
.pstat { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-weight: 900; }
.pstat__label { font-size: 14px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }
.pstat__bar { position: relative; height: 16px; border-radius: 999px; background: #071a38; border: 2.5px solid var(--ink); overflow: hidden; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .4); }
.pstat__fill { --c: var(--gold); position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 55%), var(--c); transition: width .5s cubic-bezier(.2, 1, .3, 1); }
[dir="rtl"] .pstat__fill { inset: 0 0 0 auto; }
.pstat__value { font-size: 14px; white-space: nowrap; }
.buybox__row { display: grid; gap: 14px; align-items: stretch; }
.buybox__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.buybox__actions .buybox__buy { flex: 1.4 1 200px; }
.buybox__actions .btn--blue { flex: 1 1 160px; }
.buy-note { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-weight: 900; font-size: 14px; color: #c9ffbf; }
.buy-note .ic { flex: none; font-size: 18px; color: var(--gold); stroke-width: 2.6; }
.ptabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: -3px; }
.ptabs__tab {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 12px 12px 0 0;
  border: 3px solid var(--ink);
  border-bottom-color: transparent;
  background: var(--wood-d2);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  -webkit-text-stroke: 3.5px var(--ink);
  paint-order: stroke fill;
  cursor: pointer;
}
.ptabs__tab.is-active { background: var(--wood-d1); position: relative; z-index: 1; }
.ptabs__panel { padding: 16px 18px; border-radius: 0 14px 14px 14px; background: var(--wood-d1); border: 3px solid var(--ink); color: #ffe9cc; }
@media (max-width: 640px) {
  .pstat { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; }
  .pstat__label { font-size: 12px; }
  .pstat__value { grid-column: 2; font-size: 13px; margin-top: -6px; }
}

/* ---------- My keys: chests ---------- */
.keyrow__chest { position: relative; display: grid; place-items: center; width: 56px; height: 56px; isolation: isolate; }
.keyrow__chest img { width: 100%; height: 100%; object-fit: contain; }
.keyrow__chest.is-ready::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 122, .85), rgba(255, 226, 122, 0) 65%);
  animation: chest-glow 2.2s ease-in-out infinite;
}
.keyrow__chest.is-ready img { animation: chest-bob 2.2s ease-in-out infinite; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .3)); }
.keyrow__chest.is-locked img { filter: grayscale(.9) brightness(.8); opacity: .8; }
.keyrow__chest.is-locked::after {
  content: '';
  position: absolute;
  right: -2px;
  bottom: 2px;
  width: 18px;
  height: 14px;
  border-radius: 4px;
  background: #ffd23f;
  border: 2.5px solid var(--ink);
  box-shadow: 0 -8px 0 -3px transparent;
}
.keyrow__chest.is-locked::before {
  content: '';
  position: absolute;
  right: 1px;
  bottom: 12px;
  width: 9px;
  height: 10px;
  border: 2.5px solid var(--ink);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
@keyframes chest-glow { 50% { transform: scale(1.12); opacity: .7; } }
@keyframes chest-bob { 50% { transform: translateY(-3px) rotate(-2deg); } }
.keyrow.is-opening .keyrow__chest img { animation: chest-open .7s cubic-bezier(.3, 1.4, .5, 1) forwards; }
.keyrow.is-opening .keyrow__chest::before { animation: chest-burst .7s ease-out forwards; }
@keyframes chest-open {
  0% { transform: none; }
  25% { transform: rotate(-10deg) scale(1.05); }
  45% { transform: rotate(10deg) scale(1.1); }
  70% { transform: translateY(-8px) scale(1.35); }
  100% { transform: translateY(-4px) scale(1.25); }
}
@keyframes chest-burst { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.8); opacity: 0; } }
@media (max-width: 640px) {
  .keyrow__chest { width: 48px; height: 48px; }
}

/* ---------- Status page: arena towers ---------- */
.status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -6px 0 18px;
  padding: 12px 18px;
  border-radius: 16px;
  font-size: 24px;
  background: linear-gradient(180deg, #ffe46e, #f09e00);
  border: 3px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), 0 5px 0 rgba(0, 0, 0, .25);
}
.status-banner.is-all { background: linear-gradient(180deg, #74ea5e, #2aa31d); }
.status-banner .ic { flex: none; font-size: 30px; color: #fff; stroke-width: 2.6; filter: drop-shadow(0 2px 0 var(--ink)); }
.towers .tower { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(90px, 220px) auto; align-items: center; gap: 14px; }
.tower__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; font-size: 28px; color: #fff; background: linear-gradient(180deg, #8ea6cd, #4f6690); border: 3px solid var(--ink); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35); }
.tower__icon .ic { stroke-width: 2.4; filter: drop-shadow(0 2px 0 var(--ink)); }
.tower__name { min-width: 0; overflow-wrap: anywhere; }
.tower__hp { position: relative; height: 18px; border-radius: 999px; background: #071a38; border: 2.5px solid var(--ink); overflow: hidden; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .4); }
.tower__fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 55%), var(--c, #2aa31d); animation: hp-fill 1s cubic-bezier(.2, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 90ms + 200ms); }
[dir="rtl"] .tower__fill { inset: 0 0 0 auto; }
@keyframes hp-fill { from { width: 0; } }
@media (max-width: 640px) {
  .towers .tower { grid-template-columns: 40px minmax(0, 1fr) auto; row-gap: 8px; }
  .tower__icon { width: 40px; height: 40px; font-size: 22px; }
  .tower__hp { grid-column: 2 / -1; grid-row: 2; }
  .status-banner { font-size: 20px; }
}

/* ---------- Plans: battle-pass track ---------- */
.pass { position: relative; padding-top: 58px; }
.pass__track {
  position: absolute;
  top: 18px;
  left: 8%;
  right: 8%;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #66c8ff, #ffd23f 55%, #c983ff);
  border: 3px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), 0 3px 0 rgba(0, 0, 0, .3);
}
.tier__level {
  position: absolute;
  z-index: 3;
  top: -58px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-left: -26px;
  border-radius: 50%;
  font-size: 26px;
  background: linear-gradient(180deg, var(--t1), var(--t2));
  border: 4px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), 0 4px 0 var(--ink);
}
.tier__flag { top: -16px; left: auto; right: -12px; transform: rotate(8deg); }
.tier--hot .tier__head { padding-top: 18px; }
@media (max-width: 640px) {
  .pass { padding-top: 0; }
  .pass__track { display: none; }
  .tier__level { position: static; margin: 0 auto -18px; transform: translateY(-50%); }
  .tier { margin-top: 26px; }
  .tier__flag { right: -6px; }
}

/* ---------- Anti-bot check (SellAuth's ALTCHA widget), styled like the theme's inputs ---------- */
altcha-widget {
  --altcha-border-width: 3px;
  --altcha-border-radius: 12px;
  --altcha-color-base: #071a38;
  --altcha-color-border: var(--ink);
  --altcha-color-text: #fff;
  --altcha-color-border-focus: var(--gold);
  --altcha-color-error-text: #ffb3c1;
  --altcha-color-footer-bg: #0b2347;
  --altcha-max-width: 100%;
  display: block;
}
altcha-widget .altcha {
  width: 100%;
  max-width: 100%;
  font-family: var(--font-body);
  font-weight: 800;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, .35);
  transition: background-color .25s ease, box-shadow .25s ease;
}
altcha-widget .altcha-main { min-height: 48px; padding: 10px 14px; gap: 12px; }
altcha-widget .altcha-checkbox input { width: 22px; height: 22px; accent-color: #2aa31d; cursor: pointer; }
altcha-widget .altcha-label { color: #fff; font-weight: 900; }
altcha-widget .altcha[data-state="verified"] { background: #0f3a20; box-shadow: inset 0 3px 0 rgba(0, 0, 0, .3), 0 0 0 2px #2aa31d; }
altcha-widget .altcha[data-state="verified"] .altcha-label { color: #c9ffbf; }
altcha-widget .altcha[data-state="error"] { box-shadow: inset 0 3px 0 rgba(0, 0, 0, .3), 0 0 0 2px #ff4d6d; }
altcha-widget .altcha-error { color: #ffb3c1; font-weight: 800; }

/* ---------- Calmer details: plain labels, home stats ---------- */
.pcard__rarity {
  -webkit-text-stroke: 0;
  text-shadow: none;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .06em;
  color: #fff;
  background: #1a1636;
  border: 2px solid rgba(255, 255, 255, .35);
  box-shadow: none;
  padding: 3px 10px;
  border-radius: 999px;
}
.pcard--r-legendary .pcard__rarity, .pcard--r-champion .pcard__rarity { background: #1a1636; }
.pcard--featured .pcard__rarity { box-shadow: none; }
.chip {
  -webkit-text-stroke: 0;
  text-shadow: none;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #3b2200;
  border-width: 2px;
  padding: 3px 10px;
}
.splash__stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: -40px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 3px solid var(--ink);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .3);
  max-width: 760px;
}
.hstat { flex: 1 1 180px; display: grid; justify-items: center; gap: 2px; padding: 14px 16px; color: #fff; text-decoration: none; }
.hstat + .hstat { border-inline-start: 2px solid rgba(255, 255, 255, .1); }
a.hstat:hover { background: rgba(255, 255, 255, .06); }
.hstat__value { font-size: 28px; line-height: 1.1; }
.hstat__label { font-size: 13px; font-weight: 800; color: var(--text-dim); }
.splash__stats + .splash__perks { margin-top: 18px; }
@media (max-width: 640px) {
  .pcard__rarity { font-size: 10px; padding: 2px 7px; -webkit-text-stroke: 0; }
  .chip { font-size: 10px; padding: 2px 7px; -webkit-text-stroke: 0; }
  .splash__stats { margin-top: -24px; }
  .hstat { flex-basis: 33%; padding: 10px 6px; }
  .hstat__value { font-size: 20px; }
  .hstat__label { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* Static look: chest already open, soft light behind the item, nothing moves on hover */
  .pcard__lid, .pcard__stage::after { display: none; }
  .pcard__burst { opacity: 0; transform: none; }
  .pcard:hover .pcard__burst, .pcard:focus-within .pcard__burst { opacity: .45; transform: none; }
  .pcard:hover .pcard__stage, .pcard:focus-within .pcard__stage, .pcard:active .pcard__stage { transform: none; }
  .tier--hot { translate: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/*
Fonts: Lilita One and Nunito, bundled in fonts.css under the SIL Open Font License 1.1.
Copyright (c) 2011 Juan Montoreano (juan@remolacha.biz), with Reserved Font Names "Lilita One"
Copyright 2014 The Nunito Project Authors (https://github.com/googlefonts/nunito) Nunito-Italic[wght].ttf: Copyright 2014 The Nunito Project Authors (https://github.com/googlefonts/nunito)


This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
*/
