:root {
  color-scheme: dark;
  --bg: #07080d;
  --surface: #0d111a;
  --surface-2: #121826;
  --ink: #f7f7fb;
  --muted: #a4afbf;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(16, 22, 33, 0.92);
  --red: #dc2626;
  --red-dark: #991b1b;
  --green: #0f8f55;
  --royal-green: #18b36b;
  --valentino-purple: #7b1fa2;
  --purple-soft: #c084fc;
  --slate: #0f172a;
  --slate-2: #1e293b;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.light-mode {
  color-scheme: light;
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #e5e7eb;
  --panel: #ffffff;
  --green: #16a34a;
  --royal-green: #0f8f55;
  --valentino-purple: #7b1fa2;
  --purple-soft: #8b5cf6;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.theme-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 60;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 11, 18, 0.72);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
}

body.light-mode .theme-toggle {
  background: rgba(255, 255, 255, 0.86);
  color: #111827;
  border-color: rgba(15, 23, 42, 0.12);
}

body.gate-active {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.landing-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(220, 38, 38, 0.26), transparent 31%),
    linear-gradient(135deg, #020617 0%, #111827 46%, #450a0a 100%);
  transition: opacity 0.55s var(--ease-out), visibility 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.landing-gate.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  pointer-events: none;
}

.landing-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 68%);
  animation: gridPan 14s linear infinite;
}

.welcome-video {
  position: absolute;
  right: clamp(-190px, -8vw, -42px);
  bottom: clamp(48px, 7vh, 92px);
  z-index: 1;
  width: min(980px, 86vw);
  max-height: 78vh;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: drop-shadow(0 34px 54px rgba(0, 0, 0, 0.46));
  animation: videoSettle 0.8s var(--ease-out) both, videoPresence 4.4s ease-in-out 0.8s infinite;
}

.enter-store-banner {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: clamp(10px, 2vw, 18px);
  min-height: 100vh;
  padding: clamp(22px, 6vw, 80px);
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(69, 10, 10, 0.18), rgba(255, 255, 255, 0.12) 48%, rgba(69, 10, 10, 0.2)),
    linear-gradient(135deg, #ef4444, #dc2626 42%, #991b1b);
  color: #ffffff;
  box-shadow: none;
  clip-path: inset(46% 100% 46% 0 round 0);
  opacity: 0;
  text-align: center;
  transform: none;
  animation: enterBannerDeploy 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

.enter-store-banner:hover {
  box-shadow: none;
  filter: saturate(1.05) brightness(1.02);
  transform: none;
}

.enter-store-banner::before {
  content: "";
  position: absolute;
  inset: clamp(14px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.34);
  pointer-events: none;
}

.enter-store-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 36%, rgba(255, 255, 255, 0.2), transparent 22%),
    radial-gradient(circle at 82% 64%, rgba(123, 31, 162, 0.22), transparent 28%);
  pointer-events: none;
}

.banner-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0.46;
  transform: translateY(-100%);
  animation: bannerScan 2.3s linear 2s infinite;
}

.enter-store-banner .landing-kicker,
.enter-store-banner strong {
  position: relative;
  z-index: 1;
}

.enter-store-banner .landing-kicker {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(12px, 2vw, 18px);
}

.enter-store-banner strong {
  color: white;
  font-size: clamp(54px, 14vw, 188px);
  line-height: 0.82;
  text-shadow: 0 12px 38px rgba(69, 10, 10, 0.52);
}

.landing-object {
  position: relative;
  display: grid;
  place-items: center;
  width: min(440px, 82vw);
  aspect-ratio: 1;
  border: 0;
  background: transparent;
  box-shadow: none;
  perspective: 1100px;
}

.landing-object:hover {
  transform: scale(1.02);
  box-shadow: none;
  filter: none;
}

.character-stage {
  position: relative;
  width: min(1180px, 96vw);
  aspect-ratio: 1320 / 508;
  height: auto;
  max-height: 88vh;
  margin: auto;
}

.stage-light {
  position: absolute;
  bottom: 6%;
  left: 50%;
  width: 520px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(123, 31, 162, 0.28), transparent 70%);
  transform: translateX(-50%);
  filter: blur(4px);
  animation: stagePulse 4s ease-in-out infinite;
}

.character-wrap {
  position: absolute;
  left: 7%;
  bottom: -4%;
  width: min(290px, 38vw);
  max-height: 94%;
  transform-origin: bottom center;
  animation: characterEnter 0.85s var(--ease-out) both, characterIdle 4s ease-in-out 0.9s infinite;
}

.intro-character {
  display: block;
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.46));
}

.gag-device {
  position: absolute;
  left: 36%;
  top: 39%;
  width: min(390px, 54vw);
  height: 160px;
  transform-origin: 20% 72%;
  animation: gagKick 3.2s ease-in-out 0.75s infinite;
}

.gag-body {
  position: absolute;
  left: 4%;
  top: 48%;
  width: 112px;
  height: 38px;
  border-radius: 10px 14px 12px 10px;
  background: linear-gradient(180deg, #e5e7eb, #475569 45%, #111827);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.gag-body::before {
  content: "";
  position: absolute;
  left: 12px;
  bottom: -10px;
  width: 38px;
  height: 24px;
  border: 5px solid #111827;
  border-radius: 4px 4px 18px 18px;
}

.gag-handle {
  position: absolute;
  left: 40px;
  top: 78px;
  width: 42px;
  height: 72px;
  border-radius: 9px 9px 14px 14px;
  background: linear-gradient(90deg, #020617, #1f2937);
  transform: rotate(-8deg);
}

.gag-barrel {
  position: absolute;
  left: 107px;
  top: 60px;
  width: 132px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d1d5db, #f8fafc, #9ca3af);
}

.gag-burst {
  position: absolute;
  left: 215px;
  top: 44px;
  width: 58px;
  height: 58px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 22%, rgba(220, 38, 38, 0.7) 23% 44%, transparent 45%);
  clip-path: polygon(50% 0, 61% 34%, 96% 22%, 70% 50%, 100% 78%, 62% 66%, 50% 100%, 38% 66%, 0 78%, 30% 50%, 4% 22%, 39% 34%);
  transform: scale(0);
  animation: muzzlePop 3.2s ease-in-out 0.75s infinite;
}

.gag-banner {
  position: absolute;
  left: 232px;
  top: 25px;
  width: min(330px, 44vw);
  height: 106px;
  transform-origin: left center;
  animation: bannerShoot 3.2s var(--ease-out) 0.75s infinite;
}

.banner-rod {
  position: absolute;
  left: -8px;
  top: 2px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), #fca5a5, var(--red));
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.26);
}

.banner-cloth {
  position: absolute;
  left: 10px;
  top: 12px;
  display: grid;
  place-items: center;
  width: calc(100% - 16px);
  height: 92px;
  padding: 14px;
  border-radius: 6px 6px 12px 12px;
  background:
    radial-gradient(circle at 24% 18%, rgba(192, 132, 252, 0.24), transparent 28%),
    linear-gradient(135deg, #f8fafc, #fee2e2 58%, #fecaca);
  color: #111827;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.24);
  transform-origin: top left;
  animation: bannerWave 1.1s ease-in-out 1.25s infinite;
}

.banner-cloth::before {
  content: "";
  position: absolute;
  inset: 12px;
  background: white;
  clip-path: polygon(8% 42%, 29% 34%, 22% 10%, 45% 27%, 58% 4%, 65% 31%, 94% 24%, 73% 48%, 92% 75%, 62% 66%, 51% 96%, 40% 66%, 10% 78%, 28% 52%);
  opacity: 0.96;
}

.banner-cloth .landing-kicker,
.banner-cloth strong,
.banner-cloth small {
  position: relative;
  z-index: 1;
}

.banner-cloth strong {
  font-size: clamp(24px, 4vw, 42px);
  line-height: 0.9;
}

.character-stage {
  overflow: visible;
}

.character-stage .character-wrap {
  left: auto;
  right: clamp(-36px, -3vw, 10px);
  bottom: -1%;
  width: min(620px, 78vw);
  max-height: 92%;
  animation: characterEnterRight 1.05s var(--ease-out) both, characterReadyBob 3.6s ease-in-out 1.1s infinite;
}

.character-stage .intro-character {
  max-height: min(620px, 76vh);
}

.character-stage .gag-device {
  left: clamp(28px, 8vw, 96px);
  top: clamp(230px, 36vh, 330px);
  width: min(390px, 56vw);
  height: 138px;
  transform-origin: right center;
  animation: gagKickLeft 3s ease-in-out 1.15s infinite;
}

.character-stage .gag-body,
.character-stage .gag-body::before,
.character-stage .gag-handle,
.character-stage .gag-barrel {
  display: none;
}

.character-stage .gag-burst {
  left: 248px;
  top: 8px;
  width: 66px;
  height: 66px;
  animation: muzzlePop 3s ease-in-out 1.15s infinite;
}

.character-stage .gag-banner {
  left: 0;
  top: 14px;
  width: min(330px, 54vw);
  height: 104px;
  transform-origin: right center;
  animation: bannerShootLeft 3s var(--ease-out) 1.15s infinite;
}

.character-stage .banner-rod {
  left: auto;
  right: -5px;
}

.character-stage .banner-cloth {
  left: 0;
  width: calc(100% - 14px);
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, #ef4444, #dc2626 52%, #991b1b);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 24px 58px rgba(220, 38, 38, 0.38);
  animation: bannerWave 1.05s ease-in-out 1.65s infinite;
}

.character-stage .banner-cloth::before {
  background: rgba(255, 255, 255, 0.14);
  opacity: 1;
}

.character-stage .banner-cloth .landing-kicker,
.character-stage .banner-cloth small {
  color: rgba(255, 255, 255, 0.82);
}

.character-stage .banner-cloth strong {
  color: #ffffff;
  font-size: clamp(34px, 6vw, 64px);
  letter-spacing: 0;
  text-shadow: 0 3px 14px rgba(69, 10, 10, 0.48);
}

.landing-kicker {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 8%, rgba(123, 31, 162, 0.16), transparent 32%),
    radial-gradient(circle at 92% 16%, rgba(24, 179, 107, 0.12), transparent 30%),
    linear-gradient(180deg, var(--bg), #090b12 64%, #07080d);
  overflow: hidden;
}

body.light-mode .site-shell {
  background: #fafafa;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-layer span {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.11), transparent 66%);
  filter: blur(6px);
  animation: drift 18s ease-in-out infinite;
}

.ambient-layer span:nth-child(1) {
  top: 120px;
  left: -80px;
}

.ambient-layer span:nth-child(2) {
  top: 42%;
  right: -120px;
  animation-delay: -6s;
  animation-duration: 22s;
}

.ambient-layer span:nth-child(3) {
  bottom: 120px;
  left: 30%;
  animation-delay: -12s;
  animation-duration: 24s;
}

.topbar {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 20%, #374151 42%, #dc2626 100%);
  border-bottom: 1px solid rgba(220, 38, 38, 0.3);
}

.topbar-pattern,
.footer-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23dc2626' fill-opacity='0.07'%3E%3Cpath d='M40 10l10 10-10 10-10-10z'/%3E%3Cpath d='M40 50l10 10-10 10-10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.55;
}

.topbar-glow {
  position: absolute;
  top: 0;
  right: 20%;
  width: 300px;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.2) 0%, rgba(139, 69, 19, 0.1) 50%, transparent 70%);
}

.topbar-spin {
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(220, 38, 38, 0.05) 90deg, transparent 180deg);
  animation: spin 20s linear infinite;
  pointer-events: none;
}

.suit {
  position: absolute;
  color: #dc2626;
  text-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
  opacity: 0.24;
  animation: float 8s ease-in-out infinite;
}

.suit-spade {
  top: 15px;
  left: 12%;
  font-size: 20px;
}

.suit-diamond {
  right: 15%;
  bottom: 15px;
  font-size: 18px;
  animation-duration: 6s;
  animation-direction: reverse;
}

.topbar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand,
.store-pill,
.cart-button {
  animation: dropIn 0.7s var(--ease-out) both;
}

.store-pill {
  animation-delay: 0.08s;
}

.cart-button {
  animation-delay: 0.14s;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
}

.brand span,
.footer h2,
.copyright span {
  background: linear-gradient(135deg, #ffffff 0%, #ff6b6b 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand span {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: white;
  font-weight: 900;
  letter-spacing: 0;
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(15, 23, 42, 0.95)),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25), transparent 32%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.brand-mark.small {
  width: 56px;
  height: 56px;
}

.nav-actions,
.toolbar-actions,
.social-links,
.policy-links,
.payment-cards {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.store-pill {
  padding: 6px 14px;
  border: 1px solid rgba(220, 38, 38, 0.5);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.4) 0%, rgba(239, 68, 68, 0.3) 100%);
  color: #fecaca;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.cart-button,
button,
.file-button {
  min-height: 44px;
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.92), rgba(239, 68, 68, 0.82));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.18);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), filter 0.18s var(--ease-out);
}

button,
.file-button {
  padding: 10px 14px;
}

.cart-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 18px;
}

button:hover,
.file-button:hover,
.cart-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(220, 38, 38, 0.22);
  filter: brightness(1.03);
}

button:active,
.file-button:active,
.cart-button:active {
  transform: translateY(0) scale(0.98);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  filter: grayscale(0.4);
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #111827;
  color: white;
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 80px;
}

.store-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 42px;
  min-height: 330px;
  text-align: left;
}

.hero-copy {
  max-width: 640px;
}

.reveal {
  animation: riseIn 0.9s var(--ease-out) both;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.store-heading h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.94;
  letter-spacing: 0;
  color: var(--ink);
}

.store-heading p {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-showcase {
  position: relative;
  min-height: 310px;
  perspective: 1000px;
}

.showcase-card {
  position: absolute;
  min-width: 190px;
  aspect-ratio: 0.78;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  animation: cardFloat 7s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

.showcase-flip {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showcase-card.flipped .showcase-flip {
  transform: rotateY(180deg);
}

.showcase-face {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  border-radius: 16px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 20px 70px rgba(15, 23, 42, 0.18);
}

.showcase-face.front {
  background: #120208;
  border: 1px solid rgba(220, 38, 38, 0.55);
}

.showcase-face.front img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
}

.reveal-hint {
  position: relative;
  z-index: 1;
  justify-self: center;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(8, 2, 6, 0.72);
  border: 1px solid rgba(220, 38, 38, 0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(2px);
  pointer-events: none;
  animation: revealHintPulse 2.4s ease-in-out infinite;
}

@keyframes revealHintPulse {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

.showcase-face.back {
  transform: rotateY(180deg);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.54)),
    radial-gradient(circle at 28% 18%, rgba(220, 38, 38, 0.22), transparent 42%);
}

.showcase-face.back::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(220, 38, 38, 0.2), transparent 56%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.1), transparent);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.showcase-face.back span,
.showcase-face.back strong {
  position: relative;
  z-index: 1;
}

.showcase-face.back span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.showcase-face.back strong {
  color: var(--red);
  font-size: 36px;
  line-height: 1;
}

.card-a {
  top: 10px;
  left: 12%;
  transform: rotate(-8deg);
}

.card-b {
  top: 68px;
  right: 8%;
  transform: rotate(7deg);
  animation-delay: -2s;
}

.card-c {
  bottom: 4px;
  left: 30%;
  transform: rotate(-2deg);
  animation-delay: -4s;
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  animation: riseIn 0.8s var(--ease-out) 0.08s both;
  position: sticky;
  top: 12px;
  z-index: 8;
  backdrop-filter: blur(14px);
}

.search-wrap {
  display: grid;
  gap: 6px;
  min-width: min(420px, 100%);
}

.filter-wrap {
  display: grid;
  gap: 8px;
}

.filter-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.category-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.category-chip {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: none;
  font-size: 12px;
}

.category-chip.active {
  border-color: rgba(220, 38, 38, 0.5);
  background: var(--red);
  color: white;
}

.drop-board {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.drop-feature,
.drop-stat {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.drop-feature {
  min-height: 220px;
  padding: 24px;
  background:
    radial-gradient(circle at 88% 20%, rgba(220, 38, 38, 0.18), transparent 28%),
    linear-gradient(135deg, #111827, #1f2937 54%, #7f1d1d);
  color: white;
}

.drop-feature::after {
  content: "";
  position: absolute;
  right: -56px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  animation: slowSpin 18s linear infinite;
}

.drop-label {
  color: #fecaca;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.drop-feature h2 {
  max-width: 540px;
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 0.98;
}

.drop-feature p {
  max-width: 540px;
  margin: 0 0 24px;
  color: #cbd5e1;
  line-height: 1.55;
}

.drop-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.drop-row strong {
  color: #fecaca;
  font-size: 34px;
}

.drop-stat {
  display: grid;
  align-content: end;
  min-height: 220px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(220, 38, 38, 0.12), transparent 40%),
    var(--panel);
}

.drop-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.drop-stat strong {
  margin-top: 10px;
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
}

.drop-stat small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.drop-stat.hot strong {
  color: var(--red);
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 10px 12px;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

button.secondary,
.file-button {
  background: linear-gradient(135deg, rgba(123, 31, 162, 0.9), rgba(17, 24, 39, 0.95));
  border-color: rgba(192, 132, 252, 0.32);
}

button.ghost {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.editor-panel {
  margin-bottom: 32px;
  padding: 18px;
  border: 1px solid rgba(220, 38, 38, 0.24);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel-head,
.editor-products-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.panel-head h2,
.editor-products-head h3 {
  margin: 0;
}

.panel-head span {
  color: var(--muted);
  font-size: 12px;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.product-editor-list {
  display: grid;
  gap: 12px;
}

.product-editor-card {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr 0.5fr 0.5fr 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

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

.product-card {
  position: relative;
  overflow: visible;
  transform-origin: center top;
  animation: productIn 0.62s var(--ease-out) both;
  perspective: 1200px;
  transition: transform 0.25s var(--ease-out), filter 0.25s var(--ease-out);
}

.product-card:hover {
  transform: translateY(-6px);
}

.playing-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 0.72;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.25s var(--ease-out);
}

.playing-card:hover {
  box-shadow: none;
  filter: saturate(1.08);
}

.product-card.flipped .playing-card {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.card-front {
  background:
    radial-gradient(circle at 22% 16%, rgba(220, 38, 38, 0.18), transparent 28%),
    linear-gradient(145deg, var(--surface), var(--surface-2));
}

.card-back {
  place-items: center;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 10px;
  padding: 22px;
  background:
    radial-gradient(circle at 30% 22%, rgba(192, 132, 252, 0.24), transparent 34%),
    radial-gradient(circle at 78% 74%, rgba(24, 179, 107, 0.22), transparent 30%),
    linear-gradient(145deg, #111827, #450a0a 64%, #09090b);
  color: white;
  text-align: center;
  transform: rotateY(180deg);
}

.card-front::before,
.card-back::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(220, 38, 38, 0.42);
  border-radius: 6px;
  pointer-events: none;
}

.card-front::after,
.card-back::after {
  content: "";
  position: absolute;
  inset: -40% -70%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-45%) rotate(8deg);
  opacity: 0;
  transition: opacity 0.2s var(--ease-out), transform 0.6s var(--ease-out);
  pointer-events: none;
}

.product-card:hover .card-face {
  border-color: rgba(220, 38, 38, 0.25);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.product-card:hover .card-front::after,
.product-card:hover .card-back::after {
  opacity: 1;
  transform: translateX(45%) rotate(8deg);
}

.product-media {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.card-corner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  width: max-content;
  color: var(--red);
  line-height: 1;
}

.card-corner strong {
  font-size: 30px;
  font-weight: 900;
}

.card-corner small {
  max-width: 104px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-corner.bottom {
  justify-self: end;
  justify-items: end;
  transform: rotate(180deg);
}

.jester-burst {
  position: absolute;
  inset: 34px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.13), transparent 34%),
    conic-gradient(from 8deg, rgba(220, 38, 38, 0.9), rgba(123, 31, 162, 0.7), rgba(24, 179, 107, 0.68), rgba(220, 38, 38, 0.9));
  clip-path: polygon(50% 0, 58% 32%, 90% 12%, 70% 44%, 100% 50%, 70% 56%, 90% 88%, 58% 68%, 50% 100%, 42% 68%, 10% 88%, 30% 56%, 0 50%, 30% 44%, 10% 12%, 42% 32%);
  opacity: 0.52;
  animation: slowSpin 18s linear infinite;
}

.joker-label,
.card-back strong,
.back-price,
.back-stock,
.flip-hint {
  position: relative;
  z-index: 1;
}

.joker-label {
  color: #fecaca;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card-back strong {
  align-self: end;
  font-size: clamp(19px, 2.2vw, 30px);
  line-height: 1.05;
}

.back-price {
  color: #fecaca;
  font-size: 32px;
  font-weight: 900;
}

.back-stock {
  color: var(--royal-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-stock.low,
.back-stock.out {
  color: #fecaca;
}

.flip-hint {
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 800;
}

.product-card.added {
  animation: addPulse 0.6s var(--ease-out);
}

.product-image,
.placeholder-image {
  transition: transform 0.45s var(--ease-out), filter 0.45s var(--ease-out);
}

.product-card:hover .product-image,
.product-card:hover .placeholder-image {
  transform: scale(1.04);
}

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

.placeholder-image {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.85), transparent 26%),
    linear-gradient(135deg, #f8fafc, #e2e8f0 46%, #cbd5e1);
  color: #334155;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  overflow: hidden;
}

.placeholder-image span {
  display: grid;
  place-items: center;
  width: 70%;
  aspect-ratio: 1;
  border: 2px solid rgba(51, 65, 85, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 30px rgba(220, 38, 38, 0.08);
  animation: slowSpin 14s linear infinite;
}

.stock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 16px;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stock-badge.out {
  background: #111827;
}

.product-info {
  padding: 16px 0;
}

.product-info h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
}

.price {
  margin-bottom: 4px;
  color: var(--red);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 1px 2px rgba(220, 38, 38, 0.1);
  transition: transform 0.25s var(--ease-out);
}

.product-card:hover .price {
  transform: translateX(2px);
}

.stock-line {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stock-line.low,
.stock-line.out {
  color: var(--red);
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.product-actions button {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
}

.footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #450a0a 100%);
  color: #e2e8f0;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  text-align: center;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
}

.footer p {
  max-width: 520px;
  margin: 0 0 30px;
  color: #cbd5e1;
  line-height: 1.6;
}

.policy-links {
  justify-content: center;
  margin-bottom: 24px;
  color: #cbd5e1;
  font-size: 14px;
}

.policy-links a {
  text-decoration: none;
}

.policy-links span {
  color: #475569;
}

.payment-block {
  margin-bottom: 24px;
}

.payment-label {
  margin-bottom: 14px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.payment-cards {
  justify-content: center;
}

.payment-cards span {
  min-width: 84px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.social-links {
  justify-content: center;
  margin-bottom: 32px;
}

.social-links a {
  padding: 10px 20px;
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.3) 0%, rgba(239, 68, 68, 0.2) 100%);
  color: white;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.2);
}

.footer-rule {
  width: 120px;
  height: 2px;
  margin-bottom: 30px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent 0%, #dc2626 50%, transparent 100%);
}

.copyright {
  color: #e2e8f0;
  font-size: 14px;
}

dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.4);
}

dialog[open] {
  animation: dialogIn 0.22s var(--ease-out);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.62);
}

.product-dialog,
.cart-dialog {
  width: min(760px, calc(100vw - 28px));
  background: var(--panel);
  color: var(--ink);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 999px;
  background: #111827;
}

.dialog-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 24px;
}

.dialog-copy h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.dialog-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.cart-dialog {
  padding: 24px;
}

.cart-dialog h2 {
  margin: 0 0 16px;
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.cart-total {
  margin-top: 16px;
  color: var(--red);
  font-size: 28px;
  font-weight: 900;
  text-align: right;
}

.cart-note {
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 10px;
  background: #111827;
  color: white;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.3);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
}

.toast.show {
  animation: toastIn 2.2s var(--ease-out);
}

.template-switcher {
  position: sticky;
  top: 0;
  z-index: 12;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(220, 38, 38, 0.22), rgba(7, 8, 13, 0.94) 18%, rgba(7, 8, 13, 0.94) 82%, rgba(220, 38, 38, 0.2)),
    rgba(7, 8, 13, 0.96);
  backdrop-filter: blur(18px);
}

.template-switcher-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  min-height: 82px;
  margin: 0 auto;
  padding: 14px 24px;
}

.template-switcher-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--red) 52%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--red) 18%, rgba(255, 255, 255, 0.04));
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--red) 14%, transparent);
}

.template-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(146px, 1fr));
  gap: 10px;
  width: min(820px, 100%);
}

.template-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-items: start;
  column-gap: 10px;
  row-gap: 2px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--red) 34%, rgba(255, 255, 255, 0.2));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--red) 16%, rgba(255, 255, 255, 0.04)), rgba(255, 255, 255, 0.035)),
    #101116;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  text-align: left;
}

.template-option::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 8px 0 0 8px;
  background: var(--red);
}

.template-version {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--red);
  color: white;
  font-size: 13px;
  font-weight: 950;
}

.template-option strong {
  font-size: 15px;
  line-height: 1.1;
}

.template-caption {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-option.active {
  border-color: color-mix(in srgb, var(--red) 72%, white);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--red) 46%, transparent), rgba(255, 255, 255, 0.08)),
    var(--surface-2);
  box-shadow: 0 16px 38px color-mix(in srgb, var(--red) 34%, transparent);
  transform: translateY(-1px);
}

.template-option.active::after {
  content: "ACTIVE";
  position: absolute;
  top: -9px;
  right: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.standard-site.template-obsidian {
  --bg: #050506;
  --surface: #0c0c0e;
  --surface-2: #151418;
  --panel: rgba(13, 13, 16, 0.92);
  --ink: #f5f2eb;
  --muted: #9b958c;
  --line: rgba(245, 242, 235, 0.12);
  --red: #d6b45f;
  --red-dark: #7c5e1d;
  --green: #a8d672;
  --royal-green: #d6b45f;
  background:
    linear-gradient(90deg, rgba(214, 180, 95, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 24% 16%, rgba(214, 180, 95, 0.14), transparent 28%),
    #050506;
  background-size: 96px 96px, auto, auto;
}

.standard-site.template-neon {
  --bg: #03040a;
  --surface: #070817;
  --surface-2: #10112a;
  --panel: rgba(8, 10, 28, 0.9);
  --ink: #f2fbff;
  --muted: #9fa7bd;
  --line: rgba(50, 255, 226, 0.18);
  --red: #ff2f92;
  --red-dark: #961156;
  --green: #32ffe2;
  --royal-green: #32ffe2;
  --purple-soft: #8b5cf6;
  background:
    linear-gradient(135deg, rgba(50, 255, 226, 0.08), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(255, 47, 146, 0.16), transparent 30%),
    #03040a;
}

.standard-site.template-blackletter {
  --bg: #070203;
  --surface: #100608;
  --surface-2: #1b0b10;
  --panel: rgba(18, 5, 9, 0.92);
  --ink: #fff5ee;
  --muted: #b99ea6;
  --line: rgba(255, 245, 238, 0.13);
  --red: #e11d48;
  --red-dark: #7f1028;
  --green: #c7b55b;
  --royal-green: #c7b55b;
  background:
    radial-gradient(circle at 18% 18%, rgba(225, 29, 72, 0.18), transparent 28%),
    linear-gradient(180deg, #070203, #140609 58%, #070203);
}

.standard-site.template-industrial {
  --bg: #090a0a;
  --surface: #111312;
  --surface-2: #191c1a;
  --panel: rgba(18, 20, 19, 0.94);
  --ink: #ecebe3;
  --muted: #a5a197;
  --line: rgba(236, 235, 227, 0.14);
  --red: #f97316;
  --red-dark: #9a3412;
  --green: #84cc16;
  --royal-green: #f97316;
  background:
    repeating-linear-gradient(90deg, rgba(249, 115, 22, 0.045) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 36px),
    #090a0a;
}

.standard-site.template-obsidian .topbar,
.standard-site.template-obsidian .footer {
  background:
    linear-gradient(135deg, #050506, #12100b 56%, #3a2f14),
    radial-gradient(circle at 78% 0%, rgba(214, 180, 95, 0.22), transparent 38%);
  border-color: rgba(214, 180, 95, 0.24);
}

.standard-site.template-neon .topbar,
.standard-site.template-neon .footer {
  background:
    linear-gradient(135deg, #03040a, #10112a 48%, #470a36),
    radial-gradient(circle at 82% 14%, rgba(50, 255, 226, 0.3), transparent 34%);
  border-color: rgba(50, 255, 226, 0.28);
}

.standard-site.template-blackletter .topbar,
.standard-site.template-blackletter .footer {
  background:
    linear-gradient(135deg, #070203, #1b0b10 48%, #59091d),
    radial-gradient(circle at 18% 12%, rgba(225, 29, 72, 0.28), transparent 36%);
  border-color: rgba(225, 29, 72, 0.28);
}

.standard-site.template-industrial .topbar,
.standard-site.template-industrial .footer {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 16px),
    linear-gradient(135deg, #090a0a, #191c1a 52%, #4a2508);
  border-color: rgba(249, 115, 22, 0.28);
}

.standard-site.template-neon .brand span,
.standard-site.template-neon .footer h2,
.standard-site.template-neon .copyright span {
  background: linear-gradient(135deg, #32ffe2, #ff2f92);
  background-clip: text;
  -webkit-background-clip: text;
}

.standard-site.template-blackletter .brand span,
.standard-site.template-blackletter .footer h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.standard-site.template-industrial .brand-mark,
.standard-site.template-industrial .playing-card,
.standard-site.template-industrial .card-face,
.standard-site.template-industrial .toolbar,
.standard-site.template-industrial .drop-feature,
.standard-site.template-industrial .drop-stat,
.standard-site.template-industrial .template-option {
  border-radius: 2px;
}

.standard-site.template-neon .card-front {
  background:
    linear-gradient(90deg, rgba(50, 255, 226, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 47, 146, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 22% 16%, rgba(255, 47, 146, 0.25), transparent 28%),
    linear-gradient(145deg, var(--surface), var(--surface-2));
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.standard-site.template-blackletter .card-front {
  background:
    radial-gradient(circle at 24% 18%, rgba(225, 29, 72, 0.2), transparent 30%),
    linear-gradient(145deg, #100608, #210811);
}

.standard-site.template-industrial .card-front {
  background:
    repeating-linear-gradient(135deg, rgba(249, 115, 22, 0.07) 0 1px, transparent 1px 12px),
    linear-gradient(145deg, var(--surface), var(--surface-2));
}

.standard-site.template-obsidian .drop-feature {
  background:
    radial-gradient(circle at 88% 20%, rgba(214, 180, 95, 0.2), transparent 28%),
    linear-gradient(135deg, #070707, #17130c 56%, #4a3812);
}

.standard-site.template-neon .drop-feature {
  background:
    radial-gradient(circle at 88% 20%, rgba(50, 255, 226, 0.24), transparent 28%),
    radial-gradient(circle at 28% 80%, rgba(255, 47, 146, 0.22), transparent 34%),
    linear-gradient(135deg, #070817, #19134a 56%, #610a40);
}

.standard-site.template-blackletter .drop-feature {
  background:
    radial-gradient(circle at 88% 20%, rgba(225, 29, 72, 0.26), transparent 28%),
    linear-gradient(135deg, #0b0305, #240812 56%, #5f0f25);
}

.standard-site.template-industrial .drop-feature {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, #101211, #242822 56%, #63300a);
}

.standard-site.template-neon .card-face,
.standard-site.template-neon .toolbar,
.standard-site.template-neon .drop-feature,
.standard-site.template-neon .drop-stat {
  box-shadow: 0 18px 46px rgba(50, 255, 226, 0.08), 0 0 0 1px rgba(255, 47, 146, 0.08);
}

.standard-site.template-blackletter .store-heading h1 {
  font-family: Georgia, "Times New Roman", serif;
}

.standard-site.template-industrial .store-heading h1,
.standard-site.template-industrial .brand span,
.standard-site.template-industrial .template-option strong {
  text-transform: uppercase;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(34px, -28px, 0) scale(1.08); }
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes productIn {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cardFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes addPulse {
  0% { transform: translateY(-6px) scale(1); }
  45% { transform: translateY(-8px) scale(1.025); filter: saturate(1.22); }
  100% { transform: translateY(-6px) scale(1); }
}

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

@keyframes toastIn {
  0% { opacity: 0; transform: translateY(18px); }
  12%, 82% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

@keyframes gridPan {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(72px, 72px, 0); }
}

@keyframes videoSettle {
  from { opacity: 0; transform: translate3d(70px, 0, 0) scale(0.98); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes videoPresence {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes enterBannerDeploy {
  0% {
    opacity: 0;
    clip-path: inset(48% 100% 48% 0 round 0);
  }
  28% {
    opacity: 1;
    clip-path: inset(46% 18% 46% 0 round 0);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0 round 0);
  }
}

@keyframes bannerScan {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

@keyframes stagePulse {
  0%, 100% { opacity: 0.62; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.92; transform: translateX(-50%) scale(1.08); }
}

@keyframes characterEnter {
  from { opacity: 0; transform: translate3d(60px, 0, 0) scale(0.96); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes characterIdle {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes characterEnterRight {
  0% { opacity: 0; transform: translate3d(42vw, 0, 0) scale(0.97); }
  72% { opacity: 1; transform: translate3d(-10px, 0, 0) scale(1); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes characterReadyBob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

@keyframes gagKick {
  0%, 16%, 100% { transform: rotate(0deg); }
  22% { transform: rotate(-4deg) translateX(-3px); }
  28% { transform: rotate(1deg); }
}

@keyframes gagKickLeft {
  0%, 16%, 100% { transform: rotate(0deg); }
  22% { transform: rotate(4deg) translateX(4px); }
  30% { transform: rotate(-1deg); }
}

@keyframes muzzlePop {
  0%, 16%, 30%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  20% { opacity: 1; transform: scale(1.05) rotate(16deg); }
  24% { opacity: 0.55; transform: scale(0.72) rotate(28deg); }
}

@keyframes bannerShoot {
  0%, 17% { opacity: 0; transform: scaleX(0.05) translateX(-24px); }
  26%, 88% { opacity: 1; transform: scaleX(1) translateX(0); }
  100% { opacity: 1; transform: scaleX(1) translateX(0); }
}

@keyframes bannerShootLeft {
  0%, 17% { opacity: 0; transform: scaleX(0.05) translateX(100px); }
  28%, 88% { opacity: 1; transform: scaleX(1) translateX(0); }
  100% { opacity: 1; transform: scaleX(1) translateX(0); }
}

@keyframes bannerWave {
  0%, 100% { transform: skewY(0deg) translateY(0); }
  50% { transform: skewY(-1.8deg) translateY(2px); }
}

@media (max-width: 1050px) {
  .product-grid,
  .editor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-editor-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .drop-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .drop-feature {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .welcome-video {
    right: -250px;
    bottom: 82px;
    width: 840px;
    max-width: none;
  }

  .enter-store-banner strong {
    font-size: clamp(52px, 20vw, 104px);
  }

  .topbar-inner,
  .template-switcher-inner,
  .toolbar,
  .panel-head,
  .editor-products-head {
    align-items: stretch;
    flex-direction: column;
  }

  .brand span {
    font-size: 20px;
  }

  .nav-actions {
    justify-content: space-between;
  }

  .template-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .store-heading h1 {
    font-size: 34px;
  }

  .store-heading {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: left;
  }

  .hero-showcase {
    min-height: 230px;
  }

  .showcase-card {
    min-width: 150px;
  }

  .product-grid,
  .editor-grid,
  .product-editor-card,
  .dialog-product,
  .drop-board {
    grid-template-columns: 1fr;
  }

  .toolbar {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

body.motion-off *,
body.motion-off *::before,
body.motion-off *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

@media (max-width: 520px) {
  .main {
    padding: 44px 14px 64px;
  }

  .topbar-inner {
    height: auto;
    padding: 14px;
  }

  .template-switcher-inner {
    padding: 12px 14px;
  }

  .template-option {
    min-height: 44px;
    padding: 8px 10px;
  }

  .product-grid {
    gap: 18px;
  }
}

/* ============================================================
   Animated landing v2 — clean character + gun-deployed ENTER flag
   (overrides earlier experimental .character-stage / banner rules)
   ============================================================ */
.character-stage {
  position: relative;
  margin: auto;
  width: min(1180px, 96vw);
  height: auto;
  aspect-ratio: 992 / 512;
  max-height: 86vh;
  overflow: visible;
  z-index: 1;
  pointer-events: none; /* clicks pass through except the flag */
}

.character-stage .welcome-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 30px 52px rgba(0,0,0,0.55));
  transform: scale(1.18);
  animation: none;
}

.muzzle-flash {
  display: none;
}

.gun-flag {
  position: absolute;
  top: 32%;
  left: 2%;
  width: 30%;
  height: 26%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: none;
  z-index: 4;
}

.character-stage.fired .gun-flag {
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.flag-pole,
.flag-cloth {
  display: none;
}

.character-stage.fired .gun-flag::after {
  content: "";
  position: absolute;
  inset: -2%;
  border-radius: 14px;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(220,38,38,0.0);
  animation: flagInvite 1.9s ease-in-out infinite;
}
@keyframes flagInvite {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.0); }
  50%      { box-shadow: 0 0 38px 6px rgba(220,38,38,0.35); }
}
.gun-flag:focus-visible {
  outline: 2px solid rgba(255,255,255,0.82);
  outline-offset: 6px;
}

body.motion-off .character-stage .welcome-video,
body.motion-off .muzzle-flash,
body.motion-off .flag-pole,
body.motion-off .flag-cloth,
body.motion-off .flag-shine,
body.motion-off .gun-flag::after {
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .character-stage.fired .gun-flag::after { animation: none; }
}
