/* ==========================================================================
   MYMÜSLIXX GACHA CONFIGURATOR & CINEMATIC EXPERIENCE
   Walther-Lehmkuhl-Schule Neumünster // LF6 / LS6.1 // Can
   ========================================================================== */

/* --- FONTS --- */
@font-face {
  font-family: "American Purpose Casual 01";
  src: url("assets/American Purpose Casual 01.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "American Purpose Casual 02";
  src: url("assets/American Purpose Casual 02.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Myriad Pro";
  src: url("assets/MYRIADPRO-REGULAR.OTF") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Myriad Pro";
  src: url("assets/MYRIADPRO-SEMIBOLDIT.OTF") format("opentype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Myriad Pro";
  src: url("assets/MYRIADPRO-BOLDIT.OTF") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Myriad Pro";
  src: url("assets/MyriadPro-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* --- ROOT VARIABLES --- */
:root {
  /* Brand Colors */
  --c-peach: #ee9570;
  --c-honey: #f5a83c;
  --c-terracotta: #ea633f;
  --c-teal: #56a3a1;
  --c-petrol: #003144;
  --c-dark: #0b1216;
  --c-paper: #fdf7f2;
  --c-cream-card: #ffffff;
  --c-text-main: #111111;
  --c-text-muted: #555555;
  --c-border: rgba(0, 49, 68, 0.12);

  /* Rarity Colors */
  --rarity-gray: #a0a0a0;
  --rarity-green: #2ecc71;
  --rarity-blue: #00c3ff;
  --rarity-gold: #ffb700;
  --rarity-prismatic-1: #ff007a;
  --rarity-prismatic-2: #7928ca;
  --rarity-prismatic-3: #00dfd8;

  /* Active Rarity Theme */
  --theme-rarity: var(--rarity-gray);
  --theme-rarity-glow: rgba(160, 160, 160, 0.4);

  /* Pointer tracking vars */
  --mx: 0;
  --my: 0;
  --bg-shift-x: 0px;
  --bg-shift-y: 0px;

  /* Typo Stack */
  --font-display: "American Purpose Casual 01", "Arial Black", Impact, sans-serif;
  --font-sub: "American Purpose Casual 02", "Arial Black", sans-serif;
  --font-body: "Myriad Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background-color: var(--c-dark);
  font-family: var(--font-body);
  color: var(--c-text-main);
  -webkit-font-smoothing: antialiased;
}

body.site-shell {
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
  background: var(--c-dark);
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   1. SUPREME FULL-PRINT LOGO GRID BACKGROUND (Pure DOM/CSS)
   ========================================================================== */
.supreme-bg-grid {
  position: fixed;
  inset: -15%;
  width: 130%;
  height: 130%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translate3d(var(--bg-shift-x), var(--bg-shift-y), 0) rotate(-10deg);
  opacity: 0.82;
  transition: transform 120ms ease-out;
  will-change: transform;
}

.supreme-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
  width: 100%;
  height: 100%;
  user-select: none;
}

.supreme-tile {
  position: relative;
  height: 120px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.015);
}

.supreme-tile.tile-boxlogo {
  background: var(--c-terracotta);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(234, 99, 63, 0.25);
}

.supreme-tile.tile-boxlogo .tile-text {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: 1.55rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
}

.supreme-tile.tile-logo .tile-img {
  max-width: 150px;
  max-height: 52px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.45;
}

.supreme-tile.tile-aehre .tile-img {
  max-width: 90px;
  max-height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.35;
}

.supreme-tile.tile-aehre .tile-sub {
  font-family: var(--font-sub);
  color: var(--c-honey);
  font-size: 0.85rem;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

.supreme-tile.tile-blume .tile-img {
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  opacity: 0.55;
}

.supreme-tile.tile-statement {
  border: 1px dashed rgba(86, 163, 161, 0.3);
}

.supreme-tile.tile-statement .tile-text {
  font-family: var(--font-display);
  color: var(--c-teal);
  font-size: 1.25rem;
  opacity: 0.55;
  text-align: center;
}

.supreme-ambient-sheen {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 500px at calc(50% + var(--mx) * 500px) calc(50% + var(--my) * 350px), rgba(245, 168, 60, 0.12), transparent 70%);
  pointer-events: none;
}

.supreme-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(11, 18, 22, 0.72) 10%, rgba(11, 18, 22, 0.96) 95%);
  pointer-events: none;
}

/* ==========================================================================
   2. SITE HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 36px;
  background: rgba(11, 18, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo-link {
  display: block;
  text-decoration: none;
}

.brand-logo-img {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform 200ms ease;
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-tagline {
  font-family: var(--font-sub);
  color: var(--c-peach);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 180ms ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  background: var(--c-terracotta);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(234, 99, 63, 0.35);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gacha-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--theme-rarity);
  box-shadow: 0 0 16px var(--theme-rarity-glow);
  color: #ffffff;
  cursor: pointer;
  transition: all 200ms ease;
}

.gacha-status-pill:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.pill-glow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--theme-rarity);
  box-shadow: 0 0 8px var(--theme-rarity);
}

.pill-label {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.pill-gamble-badge {
  font-family: var(--font-display);
  font-size: 0.76rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--c-honey);
  color: var(--c-petrol);
  letter-spacing: 0.5px;
}

.cart-quick-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #ffffff;
  border-radius: 999px;
  color: var(--c-petrol);
  font-weight: 700;
}

.cart-weight {
  font-size: 0.84rem;
  color: var(--c-teal);
  border-right: 1px solid rgba(0, 49, 68, 0.2);
  padding-right: 8px;
}

.cart-price {
  font-size: 1.05rem;
  font-family: var(--font-display);
}

/* ==========================================================================
   3. STAGE & PREVIEW COLUMN
   ========================================================================== */
.configurator-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px 32px 80px;
}

.stage-banner {
  background: linear-gradient(135deg, rgba(0, 49, 68, 0.85) 0%, rgba(234, 99, 63, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 28px 36px;
  margin-bottom: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.banner-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-honey);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.kicker-icon {
  width: 20px;
  height: 20px;
}

.banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.banner-desc {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.45;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(360px, 440px) 1fr;
  gap: 36px;
  align-items: start;
}

.preview-column {
  position: sticky;
  top: 100px;
}

.preview-card-sticky {
  background: var(--c-paper);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  perspective: 1200px;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.preview-badge {
  font-family: var(--font-display);
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--c-petrol);
  color: #ffffff;
  letter-spacing: 0.5px;
}

.preview-switchers {
  display: flex;
  background: rgba(0, 49, 68, 0.08);
  padding: 3px;
  border-radius: 999px;
}

.view-btn {
  border: 0;
  background: transparent;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  color: var(--c-petrol);
  cursor: pointer;
}

.view-btn.active {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.packaging-canvas-wrap {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: visible;
}

/* ==========================================================================
   4. FULL 3D FOIL CANISTER PACKAGING (Universal Component)
   ========================================================================== */
.canister-stage-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.canister-stage-wrap.hidden {
  display: none;
}

.foil-canister {
  position: relative;
  width: 220px;
  height: 328px;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--mx, 0) * 16deg)) rotateX(calc(var(--my, 0) * -12deg));
  transition: transform 100ms ease-out, filter 300ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: none !important;
  margin: 0 auto;
}

.canister-lid {
  width: 220px;
  height: 30px;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, #f0f0f0 0%, #bdbdbd 45%, #7e7e7e 85%, #555555 100%);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9), 0 3px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 3;
}

.canister-body {
  position: relative;
  width: 220px;
  height: 286px;
  border-radius: 0 0 16px 16px;
  background: #c5b49f; /* Kraft Default */
  box-shadow: inset 22px 0 32px rgba(0, 0, 0, 0.35), inset -22px 0 32px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 300ms ease, box-shadow 300ms ease;
  z-index: 2;
}

.canister-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.4) 0%, transparent 40%, rgba(255, 255, 255, 0.2) 60%, transparent 100%);
  pointer-events: none;
  opacity: 0.6;
}

.canister-label {
  position: relative;
  z-index: 2;
  width: 174px;
  background: #ffffff;
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.label-logo {
  max-width: 130px;
  height: auto;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.label-custom-name {
  font-family: var(--font-display);
  color: var(--c-petrol);
  font-size: 1.05rem;
  line-height: 1.15;
  margin-bottom: 6px;
  word-wrap: break-word;
}

.label-meta {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  line-height: 1.25;
  margin-bottom: 8px;
}

.label-rarity-tag {
  display: inline-block;
  font-family: var(--font-sub);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--theme-rarity);
  color: #ffffff;
  letter-spacing: 0.5px;
}

.canister-base {
  width: 202px;
  height: 12px;
  margin: 0 auto;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #444444 0%, #222222 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.canister-floor-shadow {
  width: 190px;
  height: 16px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.08) 45%, transparent 70%);
  border-radius: 50%;
  margin: 10px auto 0 auto;
  pointer-events: none;
  z-index: 1;
}

/* RARITY FOIL BODY STYLES (Applies to ALL canisters) */
.foil-canister.rarity-gray .canister-body,
.canister-mini.rarity-gray .mini-body {
  background: #c8b7a6;
}

.foil-canister.rarity-green .canister-body,
.canister-mini.rarity-green .mini-body {
  background: linear-gradient(135deg, #1e824c 0%, #2ecc71 50%, #27ae60 100%);
  box-shadow: inset 15px 0 25px rgba(0, 0, 0, 0.35), inset -15px 0 25px rgba(0, 0, 0, 0.35), 0 0 30px rgba(46, 204, 113, 0.45);
}

.foil-canister.rarity-blue .canister-body,
.canister-mini.rarity-blue .mini-body {
  background: linear-gradient(135deg, #0984e3 0%, #00cec9 50%, #74b9ff 100%);
  box-shadow: inset 15px 0 25px rgba(0, 0, 0, 0.35), inset -15px 0 25px rgba(0, 0, 0, 0.35), 0 0 30px rgba(0, 206, 201, 0.5);
}

.foil-canister.rarity-gold .canister-body,
.canister-mini.rarity-gold .mini-body {
  background: linear-gradient(135deg, #b8860b 0%, #ffd700 50%, #d4af37 100%);
  box-shadow: inset 15px 0 25px rgba(0, 0, 0, 0.35), inset -15px 0 25px rgba(0, 0, 0, 0.35), 0 0 36px rgba(255, 215, 0, 0.6);
}

.foil-canister.rarity-prismatic .canister-body,
.canister-mini.rarity-prismatic .mini-body {
  background: linear-gradient(135deg, #ff007a, #7928ca, #0070f3, #00dfd8, #ff007a);
  background-size: 300% 300%;
  animation: rainbowShift 5s ease infinite;
  box-shadow: inset 15px 0 25px rgba(0, 0, 0, 0.35), inset -15px 0 25px rgba(0, 0, 0, 0.35), 0 0 44px rgba(255, 0, 122, 0.65);
}

@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==========================================================================
   MINI-CANISTERS (Used in Gamble Selection Cards)
   ========================================================================== */
.canister-mini {
  position: relative;
  width: 66px;
  height: 106px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

.mini-lid {
  width: 66px;
  height: 10px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #eaeaea 0%, #999999 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  position: relative;
  z-index: 2;
}

.mini-body {
  position: relative;
  width: 66px;
  height: 90px;
  border-radius: 0 0 6px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 6px 0 10px rgba(0,0,0,0.3), inset -6px 0 10px rgba(0,0,0,0.3);
  overflow: hidden;
}

.mini-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0.4) 0%, transparent 50%, rgba(255,255,255,0.3) 100%);
  pointer-events: none;
}

.mini-label {
  position: relative;
  z-index: 2;
  width: 50px;
  background: #ffffff;
  border-radius: 4px;
  padding: 4px 2px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.mini-logo {
  max-width: 38px;
  height: auto;
  display: block;
  margin: 0 auto 2px;
}

.mini-tag {
  display: block;
  font-family: var(--font-sub);
  font-size: 0.52rem;
  color: var(--c-petrol);
  line-height: 1;
}

.mini-base {
  width: 60px;
  height: 4px;
  background: #333333;
  border-radius: 0 0 3px 3px;
}

/* ==========================================================================
   ROLLING & REVEAL CANISTER STYLES IN GACHA
   ========================================================================== */
.rolling-canister-wrap,
.reveal-canister-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto 26px auto;
  perspective: 1000px;
  position: relative;
  width: 100%;
  overflow: visible;
}

.reveal-canister-container::before {
  content: '';
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--reveal-glow, rgba(234, 99, 63, 0.12)) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(16px);
}

.foil-canister.rolling-pack {
  width: 220px;
  height: 328px;
  margin: 0 auto;
  box-shadow: none !important;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.2));
  animation: rollShake 0.18s infinite alternate ease-in-out;
  z-index: 2;
}

@keyframes rollShake {
  0% { transform: scale(1.04) rotate(-3deg); }
  100% { transform: scale(1.04) rotate(3deg); }
}

.foil-canister.reveal-canister {
  width: 220px;
  height: 328px;
  margin: 0 auto;
  transform: scale(1.08) rotateY(calc(var(--mx, 0) * 14deg)) rotateX(calc(var(--my, 0) * -10deg));
  box-shadow: none !important;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.24));
  z-index: 2;
}

/* Bowl Visualizer */
.bowl-visualizer {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: #ffffff;
  border: 12px solid #eae2d6;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), inset 0 10px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bowl-visualizer.hidden {
  display: none;
}

.bowl-content {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdf5e6;
}

.bowl-layer.base-layer {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--c-honey);
  text-align: center;
  opacity: 0.8;
}

.bowl-toppings-layer {
  position: absolute;
  inset: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.bowl-topping-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--c-terracotta);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Live Nutrition Dock */
.nutrition-dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #ffffff;
  padding: 14px 10px;
  border-radius: 16px;
  border: 1px solid rgba(0, 49, 68, 0.08);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dock-val {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--c-petrol);
  line-height: 1;
  margin-bottom: 4px;
}

.dock-lbl {
  font-size: 0.68rem;
  color: var(--c-text-muted);
  font-weight: 600;
}

/* ==========================================================================
   STEPS COLUMN (Right Panels)
   ========================================================================== */
.steps-column {
  min-width: 0;
}

.step-panel {
  display: none;
  background: var(--c-cream-card);
  border-radius: 24px;
  padding: 36px 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.step-panel.active {
  display: block;
}

.step-header {
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(0, 49, 68, 0.1);
  padding-bottom: 20px;
}

.step-counter {
  font-family: var(--font-sub);
  color: var(--c-terracotta);
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  display: block;
}

.step-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--c-petrol);
  line-height: 1.1;
  margin-bottom: 8px;
}

.step-subtitle {
  color: var(--c-text-muted);
  font-size: 1.05rem;
}

.selection-group {
  margin-bottom: 28px;
}

.group-legend {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--c-petrol);
  margin-bottom: 14px;
}

.option-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.choice-card {
  border: 2px solid rgba(0, 49, 68, 0.12);
  border-radius: 16px;
  padding: 20px;
  background: var(--c-paper);
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  position: relative;
  transition: all 180ms ease;
}

.choice-card:hover {
  border-color: var(--c-terracotta);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.choice-card.active {
  border-color: var(--c-terracotta);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(234, 99, 63, 0.16);
}

.choice-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(0, 49, 68, 0.3);
  margin-top: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms ease;
}

.choice-card.active .choice-radio {
  border-color: var(--c-terracotta);
  background: var(--c-terracotta);
}

.choice-card.active .choice-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}

.choice-info {
  flex: 1;
}

.choice-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--c-petrol);
  margin-bottom: 4px;
  line-height: 1.15;
}

.choice-desc {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.35;
}

.choice-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-sub);
  font-size: 0.68rem;
  color: var(--c-teal);
  background: rgba(86, 163, 161, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
}

.choice-price {
  position: absolute;
  top: 14px;
  right: 14px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--c-terracotta);
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab-btn {
  border: 0;
  background: var(--c-paper);
  color: var(--c-petrol);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 180ms ease;
  white-space: nowrap;
  border: 1px solid rgba(0, 49, 68, 0.08);
}

.tab-btn:hover {
  background: rgba(0, 49, 68, 0.06);
}

.tab-btn.active {
  background: var(--c-petrol);
  color: #ffffff;
}

.toppings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.topping-card {
  background: var(--c-paper);
  border: 1px solid rgba(0, 49, 68, 0.1);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 180ms ease;
  position: relative;
}

.topping-card:hover {
  border-color: var(--c-terracotta);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.topping-card.selected {
  border-color: var(--c-terracotta);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(234, 99, 63, 0.12);
}

.topping-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.topping-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--c-petrol);
  line-height: 1.15;
}

.topping-price {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--c-terracotta);
  white-space: nowrap;
}

.topping-desc {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.35;
  margin-bottom: 12px;
}

.topping-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 49, 68, 0.08);
}

.topping-portion-label {
  font-size: 0.78rem;
  color: var(--c-teal);
  font-weight: 600;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 49, 68, 0.2);
  background: #ffffff;
  color: var(--c-petrol);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 150ms ease;
}

.step-btn:hover:not(:disabled) {
  background: var(--c-terracotta);
  color: #ffffff;
  border-color: var(--c-terracotta);
}

.step-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.step-count {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 18px;
  text-align: center;
}

/* ==========================================================================
   PERSONALISIERUNG & RARITY CARD
   ========================================================================== */
.input-with-preview {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input.text-input {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  border: 2px solid rgba(0, 49, 68, 0.18);
  border-radius: 12px;
  color: var(--c-petrol);
  background: var(--c-paper);
  transition: all 200ms ease;
}

.form-input.text-input:focus {
  outline: none;
  border-color: var(--c-terracotta);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(234, 99, 63, 0.15);
}

.input-char-counter {
  position: absolute;
  right: 16px;
  font-size: 0.82rem;
  color: var(--c-text-muted);
}

.rarity-display-card {
  background: linear-gradient(135deg, rgba(0, 49, 68, 0.05) 0%, rgba(245, 168, 60, 0.08) 100%);
  border: 2px solid var(--theme-rarity);
  border-radius: 18px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 10px 30px var(--theme-rarity-glow);
}

.rarity-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rarity-badge-current {
  font-family: var(--font-display);
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--theme-rarity);
  color: #ffffff;
  letter-spacing: 0.5px;
}

.reroll-btn {
  border: 0;
  background: #ffffff;
  color: var(--c-petrol);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 180ms ease;
}

.reroll-btn:hover {
  background: var(--c-honey);
  transform: scale(1.03);
}

.rarity-card-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--c-petrol);
  margin-bottom: 6px;
}

.rarity-card-desc {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  margin-bottom: 14px;
}

.rarity-perk-badge {
  display: inline-block;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--c-teal);
  background: rgba(86, 163, 161, 0.12);
  padding: 4px 12px;
  border-radius: 6px;
}

/* ==========================================================================
   FORM & CHECKOUT (LF6)
   ========================================================================== */
.order-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-fieldset {
  border: 1px solid rgba(0, 49, 68, 0.15);
  border-radius: 16px;
  padding: 24px 28px;
  background: var(--c-paper);
}

.fieldset-legend {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--c-petrol);
  padding: 0 10px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-petrol);
}

.required-mark {
  color: var(--c-terracotta);
  font-weight: 700;
}

.form-input {
  padding: 12px 16px;
  border: 1.5px solid rgba(0, 49, 68, 0.2);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--c-text-main);
  background: #ffffff;
  transition: all 180ms ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--c-terracotta);
  box-shadow: 0 0 0 3px rgba(234, 99, 63, 0.15);
}

.form-input.textarea {
  resize: vertical;
}

.form-error {
  font-size: 0.78rem;
  color: var(--c-terracotta);
  display: none;
}

.form-group.has-error .form-error {
  display: block;
}

.form-group.has-error .form-input {
  border-color: var(--c-terracotta);
  background: #fff5f5;
}

.order-summary-box {
  background: #ffffff;
  border: 1px solid rgba(0, 49, 68, 0.12);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.96rem;
  color: var(--c-text-muted);
}

.summary-line strong {
  color: var(--c-petrol);
}

.summary-line.discount-line strong.text-green {
  color: #27ae60;
  font-size: 1.05rem;
}

.summary-line.hidden {
  display: none;
}

.summary-divider {
  height: 1px;
  background: rgba(0, 49, 68, 0.1);
  margin: 14px 0;
}

.summary-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-petrol);
}

.total-price-tag {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--c-terracotta);
}

.step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 49, 68, 0.08);
}

.footer-summary-hint {
  font-size: 0.88rem;
  color: var(--c-teal);
  font-weight: 600;
}

.symbol-pct {
  font-family: var(--font-body);
  font-weight: 700;
  display: inline-block;
}

.btn-primary {
  border: 0;
  background: var(--c-terracotta);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.08rem;
  padding: 14px 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(234, 99, 63, 0.35);
  transition: all 180ms ease;
}

.btn-primary:hover {
  background: #f0542c;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(234, 99, 63, 0.45);
}

.btn-secondary {
  border: 1.5px solid rgba(0, 49, 68, 0.2);
  background: transparent;
  color: var(--c-petrol);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 180ms ease;
}

.btn-secondary:hover {
  background: rgba(0, 49, 68, 0.06);
}

.submit-order-btn {
  background: var(--c-petrol);
  box-shadow: 0 12px 28px rgba(0, 49, 68, 0.35);
}

.submit-order-btn:hover {
  background: #002230;
}

/* ==========================================================================
   GACHA MACHINE MODAL WINDOW
   ========================================================================== */
.gacha-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(11, 18, 22, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 250ms ease;
}

.gacha-modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.gacha-modal-window {
  width: 100%;
  max-width: 900px;
  background: #ffffff;
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.gacha-subview {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gacha-subview.hidden {
  display: none;
}

.gacha-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(234, 99, 63, 0.1);
  color: var(--c-terracotta);
  font-family: var(--font-sub);
  font-size: 0.88rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.gacha-brand-icon {
  width: 18px;
  height: 18px;
}

.gacha-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: var(--c-petrol);
  line-height: 1.1;
  margin-bottom: 10px;
}

.gacha-subtitle {
  max-width: 640px;
  font-size: 1.02rem;
  color: var(--c-text-muted);
  line-height: 1.45;
  margin-bottom: 28px;
}

/* 5 Gamble Prediction Cards with Mini Canisters */
.gamble-options-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 30px;
}

.gamble-card {
  border: 2px solid rgba(0, 49, 68, 0.12);
  border-radius: 18px;
  padding: 16px 8px 14px;
  background: var(--c-paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: all 200ms ease;
}

.gamble-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.gamble-card.active {
  border-color: var(--c-terracotta);
  background: #ffffff;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 34px rgba(234, 99, 63, 0.25);
}

.gamble-rate {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--c-text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.gamble-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--c-petrol);
  margin-bottom: 4px;
}

.gamble-desc {
  font-size: 0.72rem;
  color: var(--c-text-muted);
  text-align: center;
}

.gamble-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.btn-hero-gacha {
  font-size: 1.2rem;
  padding: 16px 44px;
}

.btn-skip {
  border: 0;
  background: transparent;
  color: var(--c-text-muted);
  font-size: 0.88rem;
  text-decoration: underline;
  cursor: pointer;
}

/* Rolling Stage */
.rolling-stage {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.roulette-ticker {
  height: 48px;
  width: 320px;
  border-radius: 999px;
  background: rgba(0, 49, 68, 0.06);
  border: 2px solid rgba(0, 49, 68, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--c-petrol);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.rolling-status-text {
  font-family: var(--font-sub);
  font-size: 1.15rem;
  color: var(--c-terracotta);
  letter-spacing: 2px;
}

/* Reveal Stage */
.reveal-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
}

.reveal-result-banner {
  margin-bottom: 16px;
}

.jackpot-tag {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: #27ae60;
  letter-spacing: 1px;
}

.normal-tag {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--c-petrol);
}

.reveal-summary-text {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  max-width: 520px;
  line-height: 1.4;
  margin-bottom: 28px;
}

.btn-claim-pack {
  font-size: 1.15rem;
  padding: 16px 40px;
}

/* ==========================================================================
   ORDER SUCCESS MODAL
   ========================================================================== */
.order-success-modal {
  position: fixed;
  inset: 0;
  z-index: 9995;
  background: rgba(11, 18, 22, 0.94);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.order-success-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.success-window {
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border-radius: 28px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.success-flower {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--c-petrol);
  margin-bottom: 8px;
}

.success-desc {
  color: var(--c-text-muted);
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 24px;
}

.pickup-pass-card {
  background: var(--c-paper);
  border: 2px dashed rgba(0, 49, 68, 0.25);
  border-radius: 18px;
  padding: 20px 24px;
  text-align: left;
  margin-bottom: 28px;
}

.pass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 49, 68, 0.12);
  padding-bottom: 10px;
  margin-bottom: 14px;
  font-family: var(--font-sub);
  font-size: 0.86rem;
  color: var(--c-teal);
}

.pass-id {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--c-terracotta);
}

.pass-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--c-text-muted);
}

.pass-row strong {
  color: var(--c-petrol);
}

.pass-price-row {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 49, 68, 0.12);
}

.pass-total {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--c-terracotta);
}

.pass-barcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 49, 68, 0.12);
}

.barcode-lines {
  width: 220px;
  height: 38px;
  background: repeating-linear-gradient(90deg, #111 0px, #111 2px, transparent 2px, transparent 5px, #111 5px, #111 8px, transparent 8px, transparent 10px);
  margin-bottom: 4px;
}

.barcode-number {
  font-family: monospace;
  font-size: 0.78rem;
  letter-spacing: 2px;
}

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Site Footer */
.site-footer {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 36px;
  background: rgba(11, 18, 22, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-col strong {
  color: #ffffff;
  font-size: 0.92rem;
}

.footer-col.text-right {
  text-align: right;
}

.footer-motto {
  font-family: var(--font-sub);
  color: var(--c-honey);
  font-size: 0.88rem;
}

/* Breakpoints */
@media (max-width: 1024px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .preview-column {
    position: static;
  }
  .packaging-canvas-wrap {
    height: 300px;
  }
  .foil-canister {
    transform: scale(0.9);
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }
  .site-nav {
    overflow-x: auto;
    width: 100%;
    justify-content: flex-start;
  }
  .configurator-stage {
    padding: 16px 16px 60px;
  }
  .stage-banner {
    padding: 20px;
  }
  .option-grid-2 {
    grid-template-columns: 1fr;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .gamble-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gamble-card.rarity-prismatic {
    grid-column: 1 / -1;
  }
  .step-panel {
    padding: 24px 20px;
  }
  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-col.text-right {
    text-align: center;
  }
}
