
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #050505;
  --bg-2: #141210;
  --card: rgba(16, 15, 12, 0.86);
  --card-strong: rgba(10, 9, 7, 0.97);
  --card2: #18160f;
  --text: #fbf9f2;
  --muted: #a8a392;
  --primary: #ffd400;
  --primary2: #ffe34d;
  --primary3: #fff6b8;
  --accent: #ffe34d;
  --green: #ffd400;
  --border: rgba(255, 212, 0, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  --radius: 20px;
  --font-display: "Rajdhani", "Chakra Petch", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

:root {
  --mouse-x: 50%;
  --mouse-y: 50%;
  --scroll-depth: 0px;
  --scroll-tilt: 0deg;
}

body {
  position: relative;
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 18%, transparent),
      color-mix(in srgb, var(--bg) 78%, transparent)),
    linear-gradient(135deg, rgba(10, 8, 2, 0.5), rgba(2, 2, 2, 0.55));
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 212, 0, 0.05), transparent 48%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08) 30%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 212, 0, 0.025) 0px,
    rgba(255, 212, 0, 0.025) 1px,
    transparent 1px,
    transparent 48px
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.bg-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  border-radius: 50%;
  opacity: 0.75;
  animation: drift 18s ease-in-out infinite alternate;
  transform: translate3d(0, calc(var(--scroll-depth) * -0.18), 0);
}

.bg-glow.one {
  width: 46vw;
  height: 46vw;
  left: calc(var(--mouse-x) - 26vw);
  top: calc(var(--mouse-y) - 22vw);
  background: rgba(255, 212, 0, 0.16);
}

.bg-glow.two {
  width: 40vw;
  height: 40vw;
  right: calc(15vw - (var(--mouse-x) * 0.15));
  top: calc(18vh - (var(--mouse-y) * 0.08));
  background: rgba(255, 170, 0, 0.12);
  animation-duration: 22s;
}

.bg-glow.three {
  width: 32vw;
  height: 32vw;
  left: calc(10vw + (var(--mouse-x) * 0.06));
  bottom: calc(4vh - (var(--mouse-y) * 0.05));
  background: rgba(255, 230, 80, 0.10);
  animation-duration: 26s;
}

.navbar,
.hero,
.features,
.store,
footer {
  position: relative;
  z-index: 1;
}

@keyframes floatGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -20px, 0) scale(1.08);
  }
  100% {
    transform: translate3d(-12px, 16px, 0) scale(0.96);
  }
}

button,
input {
  font: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
}

[hidden] {
  display: none !important;
}

button {
  cursor: pointer;
}

/* NAVBAR */

.navbar {
  min-height: 80px;
  padding: 0 6%;
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 5, 4, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-style: italic;
}

.logo span {
  color: var(--primary2);
  text-shadow: 0 0 18px rgba(255, 212, 0, 0.4);
}

.logo .logo-main {
  color: inherit;
  text-shadow: none;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-family: var(--font-display);
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.25s ease, transform 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--text);
}

.logo {
  color: inherit;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 11px 16px;
  border-radius: 10px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nav-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,212,0,0.5);
  box-shadow: 0 12px 24px rgba(255,212,0,0.12);
}

.announcement {
  position: relative;
  z-index: 101;
  padding: 9px 6%;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  color: #111;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.announcement[hidden] {
  display: none;
}

.announcement a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-contacts {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-nav {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--primary2);
}

.contact-nav svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

/* NAVBAR 3D */

/* Logo: extruded letters that tilt toward the pointer. */
.logo {
  display: inline-block;
  transform: perspective(500px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}

.logo.is-tilting {
  transition: transform 0.12s ease-out;
}

.logo .logo-main {
  text-shadow:
    0 1px 0 #d6d0bc,
    0 2px 0 #bab39c,
    0 3px 0 #9d967f,
    0 4px 0 #7f7963,
    0 7px 12px rgba(0,0,0,0.65);
}

.logo span:not(.logo-main) {
  text-shadow:
    0 1px 0 #e6bd00,
    0 2px 0 #c9a200,
    0 3px 0 #a98800,
    0 4px 0 #886d00,
    0 7px 12px rgba(0,0,0,0.65),
    0 0 22px rgba(255,212,0,0.35);
}

/* Menu links: raised keys that flip up on hover; the current page is a lit gold key. */
.nav-links {
  gap: 8px;
  perspective: 600px;
}

.nav-links a {
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), color 0.25s ease, background 0.25s ease, box-shadow 0.35s ease, border-color 0.25s ease;
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover {
  color: var(--text);
  border-color: rgba(255,212,0,0.3);
  background: linear-gradient(180deg, rgba(255,212,0,0.14), rgba(255,212,0,0.03));
  box-shadow: 0 4px 0 rgba(110,88,0,0.6), 0 14px 22px rgba(0,0,0,0.45);
  transform: translateY(-3px) rotateX(16deg);
}

.nav-links a.active {
  color: #141109;
  border-color: rgba(255,240,170,0.5);
  background: linear-gradient(180deg, #ffe970, var(--primary) 55%, #d6aa00);
  box-shadow:
    0 4px 0 #8a6d00,
    0 12px 24px rgba(255,212,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.6);
  text-shadow: 0 1px 0 rgba(255,245,190,0.6);
}

.nav-links a.active:hover {
  box-shadow:
    0 5px 0 #8a6d00,
    0 16px 30px rgba(255,212,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.nav-links a:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(110,88,0,0.6), 0 4px 10px rgba(0,0,0,0.4);
  transition-duration: 0.08s;
}

/* Admin and contact buttons: chunky keys with a visible edge that press down when clicked. */
.nav-btn {
  clip-path: none;
  border: 1px solid rgba(255,212,0,0.22);
  border-radius: 11px;
  background: linear-gradient(180deg, #24211a, #110f0a);
  box-shadow:
    0 4px 0 #040302,
    0 4px 0 1px rgba(255,212,0,0.16),
    0 12px 20px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.nav-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255,212,0,0.55);
  box-shadow:
    0 7px 0 #040302,
    0 7px 0 1px rgba(255,212,0,0.35),
    0 18px 28px rgba(0,0,0,0.5),
    0 0 22px rgba(255,212,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.nav-btn:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #040302,
    0 1px 0 1px rgba(255,212,0,0.2),
    0 4px 10px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transition-duration: 0.08s;
}

.contact-nav svg {
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.7));
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}

.contact-nav:hover svg {
  transform: scale(1.14) rotate(-8deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a:hover,
  .nav-btn:hover {
    transform: none;
  }
}

@media (max-width: 650px) {
  .nav-actions,
  .nav-contacts {
    gap: 6px;
  }

  .contact-nav {
    width: 36px;
    height: 36px;
  }
}

/* HERO */

.hero {
  position: relative;
  padding: 18px 6% 10px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 560px;
  max-width: 1180px;
  margin: 0 auto;
  perspective: 1400px;
}

.poster-rail {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding-top: 50px;
  padding-left: 8px;
}

.poster-feature {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(255,212,0,0.08), transparent 55%),
    linear-gradient(180deg, rgba(22,20,13,0.94), rgba(9,8,6,0.96));
  border: 1px solid rgba(255,212,0,0.18);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  padding: 12px 14px;
  color: #f4f1e8;
  box-shadow: 0 14px 28px rgba(0,0,0,0.4);
  transform-style: preserve-3d;
  transform:
    translateZ(var(--lift, 0px))
    rotateX(var(--tilt-x, 0deg))
    rotateY(calc(var(--rail-angle, 0deg) + var(--tilt-y, 0deg)));
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), border-color 0.3s ease, box-shadow 0.4s ease;
}

.poster-feature.is-tilting {
  transition: transform 0.12s ease-out, border-color 0.3s ease, box-shadow 0.4s ease;
}

.poster-feature:hover {
  --lift: 30px;
  border-color: rgba(255,212,0,0.5);
  border-left-color: var(--primary);
  box-shadow: 0 26px 44px rgba(0,0,0,0.55), 0 0 28px rgba(255,212,0,0.16);
}

.poster-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 0%), rgba(255,230,120,0.2), transparent 65%);
  opacity: 0;
  transform: translateZ(1px);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.poster-feature.is-tilting::before {
  opacity: 1;
}

.poster-feature::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  opacity: 0.4;
  transform: translateZ(20px);
  transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
  pointer-events: none;
}

.poster-feature:hover::after {
  opacity: 1;
  width: 16px;
  height: 16px;
}

@media (min-width: 1001px) {
  .poster-rail {
    transform-style: preserve-3d;
  }

  .poster-feature {
    --rail-angle: 18deg;
    transform-origin: right center;
  }

  .poster-feature:hover {
    --rail-angle: 0deg;
  }
}

.poster-feature .icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--primary2), var(--primary) 55%, #c9a300);
  color: #111;
  box-shadow: 0 10px 18px rgba(255,212,0,0.22), inset 0 1px 0 rgba(255,255,255,0.5);
  transform: translateZ(32px);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
}

.poster-feature:hover .icon {
  transform: translateZ(48px) rotate(-8deg);
  box-shadow: 0 16px 24px rgba(255,212,0,0.32), inset 0 1px 0 rgba(255,255,255,0.5);
}

.poster-feature .icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.poster-feature-text {
  transform: translateZ(18px);
}

.poster-rail.reveal-ready .poster-feature {
  opacity: 0;
}

.poster-rail.reveal-ready .poster-feature.is-visible {
  animation: railEnter 0.8s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--i, 0) * 110ms);
}

@keyframes railEnter {
  from {
    opacity: 0;
    translate: -46px 0;
    rotate: y -40deg;
  }
  to {
    opacity: 1;
    translate: 0 0;
    rotate: y 0deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poster-rail.reveal-ready .poster-feature {
    opacity: 1;
  }

  .poster-rail.reveal-ready .poster-feature.is-visible {
    animation: none;
  }
}

.poster-feature strong,
.poster-feature span {
  display: block;
  text-transform: uppercase;
  line-height: 1.1;
}

.poster-feature strong {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #f5d35f;
}

.poster-feature span {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.07em;
}

.poster-scene {
  position: relative;
  z-index: 1;
  min-height: 510px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 28px 16px;
  background: #0a0907;
  border: 1px solid rgba(255,212,0,0.22);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,212,0,0.08), 0 0 60px rgba(255,212,0,0.06);
  transform:
    translate3d(0, calc(var(--scroll-depth) * -0.08), 0)
    rotateX(calc(var(--scroll-tilt) + var(--tilt-x, 0deg)))
    rotateY(var(--tilt-y, 0deg));
  transform-origin: center center;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.poster-scene.is-tilting {
  transition: transform 0.12s ease-out;
}

.poster-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.poster-bg-image {
  position: absolute;
  inset: 0;
  background: var(--hero-bg, url('hero-bg.jpg')) center center / cover no-repeat;
  transform: translate3d(calc(var(--pointer-x, 0) * -36px), calc(var(--pointer-y, 0) * -24px), 0) scale(1.1);
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.poster-scene.is-tilting .poster-bg-image {
  transition: transform 0.12s ease-out;
}

.poster-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 42% 55% at 50% 42%, rgba(0,0,0,0.6), transparent 72%),
    linear-gradient(180deg, rgba(5,4,2,0.12) 0%, rgba(5,4,2,0.22) 45%, rgba(5,4,2,0.78) 100%);
}

.poster-embers {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transform: translateZ(28px);
  background-image:
    radial-gradient(circle, rgba(255,205,70,0.95) 0 1.5px, transparent 2.5px),
    radial-gradient(circle, rgba(255,170,30,0.75) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255,225,130,0.6) 0 1px, transparent 2px);
  background-size: 190px 230px, 130px 170px, 250px 210px;
  background-position: 0 0, 40px 60px, 90px 20px;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 85%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 85%, transparent);
  animation: embersRise 16s linear infinite;
}

@keyframes embersRise {
  to {
    background-position: 0 -230px, 40px -110px, 90px -190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poster-embers {
    animation: none;
  }
}

.poster-scene.no-embers .poster-embers {
  display: none;
}

.hero.no-rail {
  grid-template-columns: minmax(0, 1fr);
}

.hero.no-rail .poster-rail {
  display: none;
}

.poster-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 0%), rgba(255, 230, 120, 0.16), transparent 55%);
  opacity: 0;
  transform: translateZ(1px);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.poster-scene.is-tilting::after {
  opacity: 1;
}

.poster-brand { transform: translateZ(60px); }
.poster-slogan { transform: translateZ(80px) rotate(8deg); }
.poster-title { transform: translateZ(70px) rotate(-2deg); }
.poster-bottom { transform: translateZ(55px); }

.poster-brand,
.poster-slogan,
.poster-title,
.poster-cta {
  position: relative;
  z-index: 1;
}

.poster-brand {
  position: absolute;
  top: 28px;
  left: 26px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(17, 20, 28, 0.72);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 20px;
  font-weight: 900;
  color: #f1c531;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

.poster-slogan {
  position: absolute;
  top: 32px;
  right: 28px;
  font-size: 22px;
  font-weight: 900;
  color: #f3c52a;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.35);
  font-style: italic;
}

.poster-title {
  font-family: var(--font-display);
  margin-top: 40px;
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  line-height: 0.7;
  text-shadow: 6px 6px 0 rgba(0,0,0,0.35);
  font-style: italic;
}

.poster-title .c2k {
  display: block;
  font-size: clamp(78px, 9vw, 200px);
  color: #f4f0ea;
  text-shadow:
    0 0 0 rgba(0,0,0,0),
    8px 8px 0 rgba(0,0,0,0.16),
    0 0 18px rgba(255,244,166,0.25);
  -webkit-text-stroke: 4px rgba(250, 200, 35, 0.78);
}

.poster-title .store {
  display: block;
  font-size: clamp(38px, 6vw, 110px);
  color: #f0c62d;
  -webkit-text-stroke: 2px rgba(0,0,0,0.2);
}

.poster-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 32px;
}

.poster-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  padding: 16px 22px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(180deg, #f5d65d, #ddb61d);
  color: #111;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 16px 28px rgba(255,212,0,0.34);
  cursor: pointer;
  text-decoration: none;
  transform: skewX(-8deg);
}

.poster-cta span {
  display: inline-block;
  transform: skewX(8deg);
}

.hero-meta {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
}

.hero-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.hero-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(255,212,0,0.4);
  background: rgba(255,212,0,0.06);
}

.hero-stat strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.hero-stat span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #111;
  box-shadow: 0 16px 32px rgba(255,212,0,0.28);
}

.secondary-btn {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  color: var(--text);
}

.hero-card {
  display: none;
}

/* FEATURES */

.features {
  padding: 10px 6% 70px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  perspective: 1100px;
}

.features:empty {
  display: none;
}

.feature {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,212,0,0.07), transparent 42%),
    linear-gradient(180deg, rgba(22,20,13,0.96), rgba(9,8,6,0.98));
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  padding: 30px 24px 28px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.4);
  transform-style: preserve-3d;
  transform: translateY(var(--lift, 0px)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), border-color 0.3s ease, box-shadow 0.4s ease;
}

.feature.is-tilting {
  transition: transform 0.12s ease-out, border-color 0.3s ease, box-shadow 0.4s ease;
}

.feature:hover {
  --lift: -8px;
  border-color: rgba(255,212,0,0.5);
  border-left-color: var(--primary);
  box-shadow: 0 34px 60px rgba(0,0,0,0.6), 0 0 44px rgba(255,212,0,0.14);
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 0%), rgba(255,230,120,0.16), transparent 60%);
  opacity: 0;
  transform: translateZ(1px);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature.is-tilting::before {
  opacity: 1;
}

.feature::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  opacity: 0.45;
  transform: translateZ(30px);
  transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
  pointer-events: none;
}

.feature:hover::after {
  opacity: 1;
  width: 28px;
  height: 28px;
}

.feature-index {
  position: absolute;
  right: 18px;
  bottom: 4px;
  font-family: var(--font-display);
  font-size: 84px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,212,0,0.2);
  transform: translateZ(12px);
  transition: -webkit-text-stroke-color 0.3s ease;
  pointer-events: none;
  user-select: none;
}

.feature:hover .feature-index {
  -webkit-text-stroke-color: rgba(255,212,0,0.45);
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--primary2), var(--primary) 55%, #c9a300);
  color: #111;
  box-shadow: 0 16px 26px rgba(255,212,0,0.22), inset 0 1px 0 rgba(255,255,255,0.5);
  transform: translateZ(55px);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
}

.feature:hover .feature-icon {
  transform: translateZ(75px) rotate(-6deg);
  box-shadow: 0 24px 34px rgba(255,212,0,0.32), inset 0 1px 0 rgba(255,255,255,0.5);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  font-family: var(--font-display);
  margin-bottom: 8px;
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transform: translateZ(38px);
}

.feature p {
  position: relative;
  color: var(--muted);
  line-height: 1.6;
  max-width: 30ch;
  transform: translateZ(22px);
}

.category-tile {
  display: flex;
  flex-direction: column;
}

.category-tile-image {
  margin: -30px -24px 20px;
  height: 170px;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,212,0,0.1), #0c0b08);
  transform: translateZ(36px);
}

.category-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.category-tile:hover .category-tile-image img {
  transform: scale(1.06);
}

.category-tile p {
  max-width: none;
  margin-bottom: 18px;
}

.category-tile .link-button {
  width: 100%;
  margin-top: auto;
  transform: translateZ(30px);
}

.category-tile .link-button:hover {
  transform: translateZ(30px) translateY(-2px);
}

.reveal-ready .feature {
  opacity: 0;
}

.reveal-ready .feature.is-visible {
  animation: featureEnter 0.8s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--i, 0) * 120ms);
}

@keyframes featureEnter {
  from {
    opacity: 0;
    translate: 0 46px;
    rotate: x 24deg;
  }
  to {
    opacity: 1;
    translate: 0 0;
    rotate: x 0deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .feature {
    opacity: 1;
  }

  .reveal-ready .feature.is-visible {
    animation: none;
  }
}

/* STORE */

.store {
  padding: 70px 6%;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-header h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 32px;
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  box-shadow: 0 0 14px rgba(255, 212, 0, 0.5);
  flex: 0 0 auto;
}


.search {
  width: 300px;
  max-width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: white;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.search:focus {
  border-color: rgba(255,212,0,0.7);
  box-shadow: 0 0 0 4px rgba(255,212,0,0.10);
  transform: translateY(-1px);
}

/* CATEGORIES */

.categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.catalog-filters {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(180px, 220px) minmax(240px, 1fr);
  gap: 12px;
  margin: -12px 0 30px;
  max-width: 820px;
}

.catalog-filter {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  outline: none;
}

.catalog-filter:focus {
  border-color: rgba(255,212,0,0.7);
  box-shadow: 0 0 0 4px rgba(255,212,0,0.10);
}

select.catalog-filter option {
  background: #121212;
  color: var(--text);
}

.item-filter-wrap {
  position: relative;
}

.item-filter-wrap .catalog-filter {
  padding-right: 46px;
}

.filter-search-button {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.filter-search-button::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  left: 7px;
  top: 6px;
  border: 2px solid var(--primary2);
  border-radius: 50%;
}

.filter-search-button::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  left: 17px;
  top: 19px;
  background: var(--primary2);
  transform: rotate(45deg);
  transform-origin: left center;
}

@media(max-width: 650px) {
  .catalog-filters {
    grid-template-columns: 1fr;
    margin-top: -12px;
  }
}

.category {
  font-family: var(--font-display);
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  transition: all 0.25s ease;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
}

.category.active,
.category:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #111;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(255,212,0,0.22);
  transform: translateY(-1px);
}

/* PRODUCTS */

.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product {
  position: relative;
  background: linear-gradient(180deg, rgba(20,18,13,0.97), rgba(10,9,7,0.97));
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: none;
  animation: cardReveal 0.42s ease both;
}

.product::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}

.product:hover::before {
  opacity: 1;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,0.025);
  grid-column: 1 / -1;
}

.product:hover {
  transform: translateY(-4px);
  border-color: rgba(255,212,0,.45);
  box-shadow: none;
}

.product-image {
  height: 180px;
  background: linear-gradient(135deg, rgba(255,212,0,0.10), rgba(10,9,7,0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #111;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product--cheats .product-image {
  overflow: hidden;
}

.product--cheats .product-image img {
  animation: macroEspPan 16s ease-in-out infinite alternate;
}

@keyframes macroEspPan {
  from {
    transform: scale(1.04) translate3d(-1%, 0, 0);
  }
  to {
    transform: scale(1.13) translate3d(1%, -1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product--cheats .product-image img {
    animation: none;
  }
}

.product-info {
  padding: 20px 18px 18px;
}

.product-category {
  color: var(--primary3);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
}

.product h3 {
  font-family: var(--font-display);
  margin: 8px 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.product-description {
  color: var(--muted);
  font-size: 13px;
  min-height: 38px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.details-button {
  font-family: var(--font-display);
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}

.details-button:hover {
  border-color: rgba(255,212,0,0.5);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}

.price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.stock {
  margin-left: auto;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-tiers {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.price-tier {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.price-tier strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--primary2);
  letter-spacing: -0.01em;
}

.stock.sold {
  color: #ff8585;
}

.add-cart {
  font-family: var(--font-display);
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #111;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.add-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(255,212,0,0.22);
}

.add-cart:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.product-contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.product-contact-links .add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin-top: 0;
  padding: 10px 6px;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
}

/* STORE CARDS (3D) */

#productGrid {
  perspective: 1400px;
}

.product.product-3d {
  display: flex;
  flex-direction: column;
  overflow: visible;
  border: 1px solid rgba(255,212,0,0.16);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255,212,0,0.08), transparent 40%),
    linear-gradient(180deg, #17150e, #0a0907);
  box-shadow: 0 18px 36px rgba(0,0,0,0.45);
  transform-style: preserve-3d;
  transform: translateY(var(--lift, 0px)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), border-color 0.3s ease, box-shadow 0.4s ease;
  animation: none;
}

.product.product-3d.is-tilting {
  transition: transform 0.12s ease-out, border-color 0.3s ease, box-shadow 0.4s ease;
}

.product.product-3d:hover {
  --lift: -10px;
  transform: translateY(var(--lift, 0px)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  border-color: rgba(255,212,0,0.55);
  box-shadow: 0 40px 70px rgba(0,0,0,0.65), 0 0 50px rgba(255,212,0,0.16);
}

.product.product-3d::before {
  left: 22px;
  right: 22px;
  border-radius: 0 0 4px 4px;
  transform: translateZ(2px);
}

/* Glare that follows the pointer */
.product.product-3d::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 0%), rgba(255,230,120,0.16), transparent 60%);
  opacity: 0;
  transform: translateZ(1px);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.product.product-3d.is-tilting::after {
  opacity: 1;
}

.product-3d .product-image {
  position: relative;
  height: 200px;
  margin: 10px 10px 0;
  overflow: hidden;
  border: 1px solid rgba(255,212,0,0.2);
  border-radius: 13px;
  box-shadow: 0 18px 30px rgba(0,0,0,0.5);
  transform: translateZ(40px);
  transition: box-shadow 0.4s ease, border-color 0.3s ease;
}

.product-3d:hover .product-image {
  border-color: rgba(255,212,0,0.5);
  box-shadow: 0 26px 40px rgba(0,0,0,0.6), 0 0 26px rgba(255,212,0,0.18);
}

.product-3d .product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 32%, transparent 62%, rgba(8,7,5,0.7) 100%);
  pointer-events: none;
}

.product-3d .product-image img {
  transition: scale 0.6s cubic-bezier(.2,.8,.2,1);
}

.product-3d:hover .product-image img {
  scale: 1.08;
}

.product-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 6px 10px;
  border: 1px solid rgba(255,212,0,0.4);
  border-radius: 99px;
  background: rgba(10,9,7,0.78);
  backdrop-filter: blur(6px);
  color: var(--primary2);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-chip.stock {
  left: auto;
  right: 10px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: rgba(126,217,155,0.4);
  color: var(--green);
}

.product-chip.stock::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: stockPulse 2s ease-out infinite;
}

.product-chip.stock.sold {
  border-color: rgba(255,133,133,0.4);
  color: #ff8585;
}

.product-chip.stock.sold::before {
  animation: none;
}

@keyframes stockPulse {
  0% { box-shadow: 0 0 0 0 rgba(126,217,155,0.55); }
  100% { box-shadow: 0 0 0 7px rgba(126,217,155,0); }
}

.product-3d .product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 18px;
  transform: translateZ(22px);
  transform-style: preserve-3d;
}

.product-3d h3 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(255,212,0,0.18);
}

.product-3d .product-description {
  min-height: 0;
}

.product-3d .price-tiers {
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding-top: 0;
  border-top: 0;
}

.product-3d .price-tier {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px;
  border: 1px solid rgba(255,212,0,0.16);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,212,0,0.07), rgba(255,212,0,0.02));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.product-3d .price-tier:hover {
  border-color: rgba(255,212,0,0.55);
  background: rgba(255,212,0,0.12);
  transform: translateZ(10px) translateY(-2px);
}

.product-3d .price-tier strong {
  font-size: 19px;
}

.product-3d .price-row {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255,212,0,0.16);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,212,0,0.07), rgba(255,212,0,0.02));
}

.product-3d .price {
  color: var(--primary2);
  font-size: 28px;
}

.product-actions {
  margin-top: auto;
  padding-top: 16px;
  transform: translateZ(14px);
}

.product-3d .details-button {
  margin-top: 0;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.product-3d .details-button:hover {
  background: rgba(255,212,0,0.08);
  color: var(--primary2);
}

.product-3d .product-contact-links {
  margin-top: 10px;
}

.reveal-ready .product-3d {
  opacity: 0;
}

.reveal-ready .product-3d.is-visible {
  animation: featureEnter 0.7s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .product-3d {
    opacity: 1;
  }

  .reveal-ready .product-3d.is-visible,
  .product-chip.stock::before {
    animation: none;
  }
}

/* PRODUCT MODAL */

.product-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.78);
}

.product-modal.show {
  display: flex;
}

.product-modal-content {
  width: min(980px, 100%);
  max-height: 94vh;
  overflow-y: auto;
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  position: relative;
  font-size: 13px;
  animation: detailModalEnter 0.24s ease-out both;
}

.product-modal-content h2 {
  margin: 7px 36px 0 0;
  font-size: 20px;
  line-height: 1.3;
}

.product-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: 22px;
  min-height: 0;
}

.product-modal-copy {
  min-width: 0;
}

@keyframes detailModalEnter {
  from { opacity: 0; transform: translateY(10px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.product-modal-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  min-width: 0;
  max-height: calc(94vh - 180px);
  overflow-y: auto;
  padding-right: 8px;
}

.product-modal-gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #050505;
  animation: detailImageEnter 0.32s ease-out both;
  transition: transform .22s ease;
}

.product-modal-gallery img:hover {
  transform: scale(1.01);
}

@keyframes detailImageEnter {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}

.product-modal-gallery a {
  display: block;
  min-width: 0;
}

.product-modal-price {
  font-family: var(--font-display);
  color: var(--primary2);
  margin: 14px 0;
  font-size: 26px;
  font-weight: 800;
}

.product-modal-price.has-tiers {
  font-size: initial;
  font-weight: initial;
}

.product-modal-price .price-tiers {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.product-modal-price .price-tier {
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.product-modal-price .price-tier strong {
  font-size: 19px;
}

.product-modal-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.product-modal-gallery:empty {
  display: none;
}

@media(max-width: 650px) {
  .product-modal { padding: 10px; }
  .product-modal-content { padding: 20px 14px; overflow-y: auto; }
  .product-modal-layout { grid-template-columns: 1fr; gap: 16px; }
  .product-modal-gallery { max-height: none; overflow: visible; padding-right: 0; }
}

@media(prefers-reduced-motion: reduce) {
  .product-modal-content,
  .product-modal-gallery img {
    animation: none;
    transition: none;
  }
}

.product-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 28px;
}

/* FOOTER */

footer {
  position: relative;
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding: 40px 6%;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 6%;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

footer strong {
  font-family: var(--font-display);
  color: var(--primary2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 18px;
}

.footer-support {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-support a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-support a:hover {
  color: var(--primary2);
}

/* MOBILE */

@media(max-width: 1000px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    grid-template-columns: 1fr;
  }

  /* Banner first, then the trust badges as a compact 2x2 grid instead of a tall stack. */
  .poster-scene {
    order: 1;
  }

  .poster-rail {
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 4px 0 0;
  }

  .navbar {
    padding-top: 10px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 6px;
    padding: 6px 0 14px;
  }
}

@media(max-width: 650px) {
  .products {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    width: 100%;
  }

  .hero {
    min-height: 0;
    padding-top: 14px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .poster-scene {
    min-height: 400px;
    padding: 18px 16px 16px;
    border-radius: 24px;
  }

  .poster-brand {
    top: 16px;
    left: 16px;
    padding: 8px 12px;
    font-size: 16px;
  }

  .poster-slogan {
    top: 18px;
    right: 18px;
    font-size: 17px;
  }

  /* The generic .store section rule pads this span by 70px; keep the title tight on phones. */
  .poster-title .store {
    padding: 0;
    margin-top: 10px;
  }

  .poster-bottom {
    margin-top: 22px;
  }

  .poster-cta {
    width: 100%;
    min-width: 0;
    padding: 14px 18px;
    font-size: 18px;
  }

  .poster-feature {
    gap: 9px;
    padding: 10px;
  }

  .poster-feature .icon {
    width: 30px;
    height: 30px;
  }

  .poster-feature strong {
    font-size: 11px;
  }

  .poster-feature span {
    font-size: 10px;
  }
}

/* PAGE HEADER (store + support) */

.page-hero {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 6% 30px;
  text-align: center;
}

/* 3D EMBLEM (support 24/7 coin, store controller badge) */

.emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: max-content;
  margin: 0 auto 30px;
  perspective: 900px;
}

.emblem-orb {
  position: relative;
  width: 150px;
  height: 150px;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}

.emblem.is-tilting .emblem-orb {
  transition: transform 0.12s ease-out;
}

/* Glow on its own layer behind the coin; a box-shadow on the 3D face gets clipped square. */
.emblem-orb::before {
  content: "";
  position: absolute;
  inset: -36px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,212,0,0.32), transparent 66%);
  transform: translateZ(-20px);
  pointer-events: none;
}

.emblem-coin {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: coinSway 6s ease-in-out infinite;
}

/* Stacked discs give the coin real thickness as it turns. */
.emblem-layer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #a88600, #5c4700);
  transform: translateZ(calc(var(--z) * 1px));
}

.emblem-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,0.65), transparent 34%),
    linear-gradient(145deg, #ffe970, var(--primary) 48%, #c99f00);
  box-shadow:
    inset 0 0 0 5px rgba(255,248,200,0.35),
    inset 0 0 0 11px rgba(0,0,0,0.12),
    inset 0 -10px 22px rgba(120,80,0,0.45);
  color: #141109;
  transform: translateZ(16px);
}

.emblem-face svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 0 rgba(255,245,190,0.55));
}

.emblem-face strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 0 rgba(255,245,190,0.6);
}

.emblem-ring {
  position: absolute;
  inset: -24px;
  border: 2px solid rgba(255,212,0,0.55);
  border-top-color: transparent;
  border-bottom-color: rgba(255,212,0,0.15);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255,212,0,0.18);
  animation: ringOrbit 5s linear infinite;
}

.emblem-ring.two {
  inset: -38px;
  border-color: rgba(255,227,77,0.25);
  border-left-color: transparent;
  animation-duration: 8s;
  animation-direction: reverse;
}

.emblem-shadow {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -34px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,212,0,0.35), transparent 70%);
  filter: blur(4px);
  animation: coinShadow 6s ease-in-out infinite;
}

.emblem-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 9px 16px;
  border: 1px solid rgba(126,217,155,0.35);
  border-radius: 99px;
  background: rgba(10,9,7,0.75);
  color: #e9f7ee;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.emblem-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  animation: onlinePulse 1.8s ease-out infinite;
}

@keyframes coinSway {
  0%, 100% { transform: translateY(0) rotateY(-28deg); }
  50% { transform: translateY(-10px) rotateY(28deg); }
}

@keyframes coinShadow {
  0%, 100% { opacity: 1; transform: scaleX(1); }
  50% { opacity: 0.55; transform: scaleX(0.8); }
}

@keyframes ringOrbit {
  from { transform: rotateX(72deg) rotateZ(0deg); }
  to { transform: rotateX(72deg) rotateZ(360deg); }
}

@keyframes onlinePulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  100% { box-shadow: 0 0 0 9px rgba(74,222,128,0); }
}

@media (max-width: 650px) {
  .emblem-orb {
    width: 120px;
    height: 120px;
  }

  .emblem-face svg {
    width: 36px;
    height: 36px;
  }

  .emblem-face strong {
    font-size: 24px;
  }

  .emblem-status {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .emblem-coin,
  .emblem-ring,
  .emblem-shadow,
  .emblem-dot {
    animation: none;
  }

  .emblem-ring {
    transform: rotateX(72deg);
  }
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: rgba(255, 212, 0, 0.06);
  color: var(--primary2);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 900;
  font-style: italic;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(255, 212, 0, 0.15);
}

.page-hero p {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.page-hero + .store {
  padding-top: 10px;
}

.store-toolbar {
  flex-wrap: wrap;
  align-items: center;
}

.store-toolbar .categories {
  margin-bottom: 0;
}

/* BUTTON LINKS */

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #111;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(255, 212, 0, 0.25);
}

/* FEATURED PRODUCTS (home) */

.featured {
  position: relative;
  z-index: 1;
  padding: 10px 6% 50px;
}

.featured .section-header {
  align-items: center;
}

.featured .products {
  perspective: 1100px;
}

/* SUPPORT */

.support-section {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 6% 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  perspective: 1100px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-card .feature-icon svg {
  fill: currentColor;
  stroke: none;
}

.contact-card p {
  overflow-wrap: anywhere;
}

.contact-card .link-button {
  margin-top: auto;
  transform: translateZ(30px);
}

.contact-card .link-button:hover {
  transform: translateZ(30px) translateY(-2px);
}

.contact-card .contact-url {
  margin: 4px 0 22px;
  color: var(--muted);
  font-size: 14px;
  transform: translateZ(22px);
}

.faq {
  margin-top: 60px;
}

.faq .section-header {
  justify-content: center;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(22, 20, 13, 0.94), rgba(9, 8, 6, 0.96));
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item[open],
.faq-item:hover {
  border-color: rgba(255, 212, 0, 0.45);
  border-left-color: var(--primary);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 28px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-wrap;
}

.empty-note {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

/* ACCOUNTS PAGE */

.accounts-count {
  color: var(--muted);
  font-size: 14px;
}

.pagination-wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 18px 4px 8px;
  margin-top: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.page-button {
  flex: 0 0 auto;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-weight: 800;
  font-family: var(--font-display);
}

.page-button.active,
.page-button:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border-color: transparent;
  color: #111;
}

.page-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.page-ellipsis {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 40px;
  color: var(--muted);
}

/* Full-screen account details */

.account-fullscreen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--bg);
  overflow-y: auto;
}

.account-fullscreen.show {
  display: block;
}

.account-fullscreen-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 16px 6%;
  background: rgba(6, 5, 4, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.account-fullscreen-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.account-fullscreen-back:hover {
  border-color: rgba(255,212,0,0.5);
}

.account-fullscreen-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.account-fullscreen-body {
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px 4% 0;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.account-fullscreen-media img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #050505;
  display: block;
}

.account-fullscreen-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

.account-fullscreen-gallery:empty {
  display: none;
}

.account-fullscreen-gallery img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #050505;
  display: block;
}

.account-fullscreen-description {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px 4% 60px;
  border-top: 1px solid var(--border);
  margin-top: 28px;
}

.account-fullscreen-description .product-modal-description {
  padding-top: 20px;
  border-top: none;
}

.product-modal-code {
  color: var(--muted);
  margin-top: 6px;
  font-size: 12px;
}

.product-modal-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.product-modal-meta-item {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}

.product-modal-meta-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
}

.product-modal-meta-item strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

@media(max-width: 900px) {
  .account-fullscreen-body {
    grid-template-columns: 1fr;
  }
}

/* ACCOUNTS SHOWCASE (3D ring) */

.accounts-showcase {
  --card-w: 150px;
  --card-h: 205px;
  --radius: 250px;
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 6% 40px;
  overflow-x: clip;
}

.showcase-stage {
  position: relative;
  height: calc(var(--card-h) + 110px);
  perspective: 1100px;
  perspective-origin: 50% 30%;
}

.showcase-ring {
  position: absolute;
  top: 30px;
  left: 50%;
  width: var(--card-w);
  height: var(--card-h);
  margin-left: calc(var(--card-w) / -2);
  transform-style: preserve-3d;
  animation: showcaseSpin 32s linear infinite;
}

.showcase-stage:hover .showcase-ring {
  animation-play-state: paused;
}

.showcase-card {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: none;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--i) * 60deg)) translateZ(var(--radius));
  cursor: pointer;
}

.showcase-card.is-empty {
  cursor: default;
}

.showcase-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,212,0,0.4);
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 18px 34px rgba(0,0,0,0.55);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.showcase-front {
  background: #0c0b08;
}

.showcase-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.5s cubic-bezier(.2,.8,.2,1);
}

.showcase-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,240,170,0.22) 45%, transparent 60%), linear-gradient(180deg, transparent 55%, rgba(5,4,2,0.85));
  pointer-events: none;
}

.showcase-card:not(.is-empty):hover .showcase-front {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 24px 44px rgba(0,0,0,0.6), 0 0 34px rgba(255,212,0,0.35);
}

.showcase-card:not(.is-empty):hover .showcase-front img {
  scale: 1.08;
}

.showcase-price {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 1;
  translate: -50% 0;
  padding: 6px 12px;
  border-radius: 99px;
  background: linear-gradient(180deg, #ffe970, var(--primary) 55%, #d6aa00);
  box-shadow: 0 3px 0 #8a6d00, 0 8px 16px rgba(0,0,0,0.5);
  color: #141109;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.showcase-back,
.showcase-card.is-empty .showcase-front {
  background:
    radial-gradient(circle at 50% 40%, rgba(255,212,0,0.28), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,212,0,0.06) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, #1c190f, #0a0907);
}

.showcase-back {
  transform: rotateY(180deg);
}

.showcase-face b {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  font-style: italic;
  color: var(--primary2);
  text-shadow: 0 1px 0 #c9a200, 0 2px 0 #a98800, 0 3px 0 #886d00, 0 6px 12px rgba(0,0,0,0.6), 0 0 20px rgba(255,212,0,0.35);
}

.showcase-card.is-empty .showcase-front b {
  animation: showcasePulse 1.6s ease-in-out infinite;
}

.showcase-floor {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(680px, 92%);
  height: 90px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,212,0,0.28), rgba(255,212,0,0.06) 45%, transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(255,212,0,0.12);
  transform: perspective(600px) rotateX(70deg);
  pointer-events: none;
}

.showcase-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 24px auto 0;
  perspective: 800px;
}

.showcase-stat {
  padding: 16px 12px;
  border: 1px solid rgba(255,212,0,0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, #1d1a11, #0d0c08);
  box-shadow: 0 5px 0 #050403, 0 5px 0 1px rgba(255,212,0,0.14), 0 16px 26px rgba(0,0,0,0.45);
  text-align: center;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.3s ease;
}

.showcase-stat:hover {
  border-color: rgba(255,212,0,0.55);
  transform: translateY(-4px) rotateX(12deg);
}

.showcase-stat strong {
  display: block;
  color: var(--primary2);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  text-shadow: 0 2px 0 #8a6d00, 0 0 18px rgba(255,212,0,0.3);
}

.showcase-stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes showcaseSpin {
  from { transform: rotateX(-6deg) rotateY(0deg); }
  to { transform: rotateX(-6deg) rotateY(-360deg); }
}

@keyframes showcasePulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* 3D loader shown while a page of accounts is fetched */
.accounts-loader {
  gap: 22px;
  align-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.loader-cube {
  position: relative;
  width: 46px;
  height: 46px;
  transform-style: preserve-3d;
  animation: loaderCube 2.4s cubic-bezier(.6,.1,.4,.9) infinite;
}

.loader-cube i {
  position: absolute;
  inset: 0;
  border: 2px solid var(--primary);
  border-radius: 6px;
  background: rgba(255,212,0,0.12);
  box-shadow: inset 0 0 14px rgba(255,212,0,0.35);
}

.loader-cube i:nth-child(1) { transform: translateZ(23px); }
.loader-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(23px); }
.loader-cube i:nth-child(3) { transform: rotateY(90deg) translateZ(23px); }
.loader-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(23px); }
.loader-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(23px); }
.loader-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(23px); }

@keyframes loaderCube {
  0% { transform: rotateX(-25deg) rotateY(0deg); }
  50% { transform: rotateX(-25deg) rotateY(180deg); }
  100% { transform: rotateX(-25deg) rotateY(360deg); }
}

@media (max-width: 650px) {
  .accounts-showcase {
    --card-w: 112px;
    --card-h: 155px;
    --radius: 180px;
    padding-bottom: 28px;
  }

  .showcase-stats {
    gap: 8px;
  }

  .showcase-stat {
    padding: 12px 6px;
  }

  .showcase-stat strong {
    font-size: 21px;
  }

  .showcase-stat span {
    font-size: 10px;
  }

  .showcase-face b {
    font-size: 30px;
  }

  .showcase-price {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-ring {
    animation: none;
    transform: rotateX(-6deg);
  }

  .loader-cube,
  .showcase-card.is-empty .showcase-front b {
    animation: none;
  }
}

.accounts-showcase + .store {
  padding-top: 24px;
}

/* Store emblem: hexagon version of the 3D coin */
.emblem.is-hex .emblem-layer,
.emblem.is-hex .emblem-face {
  border-radius: 0;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
}

.emblem.is-hex .emblem-face {
  box-shadow:
    inset 0 0 0 6px rgba(255,248,200,0.3),
    inset 0 -14px 24px rgba(120,80,0,0.45);
}

.emblem.is-hex .emblem-face svg {
  width: 54px;
  height: 54px;
}

.emblem.is-hex .emblem-face strong {
  font-size: 22px;
}

/* STORE CATEGORY ICONS (3D) */

.category-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
  perspective: 1000px;
}

.category-icons:empty {
  display: none;
}

.category-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 12px 18px;
  border: 1px solid rgba(255,212,0,0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,212,0,0.12), transparent 60%),
    linear-gradient(180deg, #1a170f, #0b0a07);
  box-shadow: 0 6px 0 #050403, 0 6px 0 1px rgba(255,212,0,0.12), 0 18px 30px rgba(0,0,0,0.45);
  color: var(--text);
  font: inherit;
  transform-style: preserve-3d;
  transform: translateY(var(--lift, 0px)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), border-color 0.3s ease, box-shadow 0.35s ease;
}

.category-icon.is-tilting {
  transition: transform 0.12s ease-out, border-color 0.3s ease, box-shadow 0.35s ease;
}

.category-icon:hover {
  --lift: -6px;
  border-color: rgba(255,212,0,0.5);
  box-shadow: 0 10px 0 #050403, 0 10px 0 1px rgba(255,212,0,0.3), 0 26px 40px rgba(0,0,0,0.55), 0 0 30px rgba(255,212,0,0.14);
}

.category-icon.active {
  border-color: var(--primary);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,212,0,0.28), transparent 65%),
    linear-gradient(180deg, #2a2412, #0f0d08);
  box-shadow: 0 6px 0 #8a6d00, 0 18px 34px rgba(0,0,0,0.5), 0 0 34px rgba(255,212,0,0.22);
}

.category-icon:active {
  --lift: 3px;
  transition-duration: 0.08s;
}

/* Extruded gold icon block that floats above the tile */
.category-icon-cube {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,0.6), transparent 38%),
    linear-gradient(145deg, #ffe970, var(--primary) 50%, #c99f00);
  box-shadow:
    0 2px 0 #c9a200,
    0 4px 0 #a98800,
    0 6px 0 #886d00,
    0 8px 0 #6b5500,
    0 16px 24px rgba(0,0,0,0.55),
    0 0 26px rgba(255,212,0,0.25),
    inset 0 -6px 12px rgba(120,80,0,0.35);
  color: #141109;
  transform: translateZ(40px) rotateX(10deg);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}

.category-icon:hover .category-icon-cube,
.category-icon.active .category-icon-cube {
  transform: translateZ(56px) rotateX(10deg) rotateY(-14deg) translateY(-4px);
}

.category-icon-cube svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 0 rgba(255,245,190,0.6));
}

.category-icon strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translateZ(24px);
}

.category-icon.active strong {
  color: var(--primary2);
}

.category-icon-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateZ(16px);
}

.reveal-ready .category-icon {
  opacity: 0;
}

.reveal-ready .category-icon.is-visible {
  animation: featureEnter 0.7s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}

#productGrid {
  scroll-margin-top: 130px;
}

@media (max-width: 650px) {
  .category-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .category-icon {
    padding: 18px 8px 14px;
  }

  .category-icon-cube {
    width: 54px;
    height: 54px;
  }

  .category-icon-cube svg {
    width: 27px;
    height: 27px;
  }

  .category-icon strong {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .category-icon {
    opacity: 1;
  }

  .reveal-ready .category-icon.is-visible {
    animation: none;
  }
}
