/* ==========================================================================
   Winx Club Fairy Diary Demo — "Nuit d'Alfea, éclat de foil"
   ========================================================================== */

:root {
  --night: #1B0B3A;
  --night-2: #26124F;
  --night-deep: #12062B;
  --violet: #5C268C;
  --lilac: #CEBAF0;
  --rose: #FCD6EA;
  --magenta: #E4087F;
  --magenta-hover: #C90770;
  --lime: #D9E01B;
  --gold: #E8C46A;
  --ivory: #FBF7FF;

  --dash-ink: #1B0B3A;
  --dash-muted: #4C3773;
  --dash-border: rgba(27, 11, 58, 0.12);
  --dash-track: rgba(92, 38, 140, 0.12);

  --hairline-gold: rgba(232, 196, 106, 0.42);
  --hairline-lilac: rgba(206, 186, 240, 0.18);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--font-sans);
  line-height: 1.45;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 75% 55% at 50% 0%, rgba(92, 38, 140, 0.36) 0%, transparent 72%),
    radial-gradient(ellipse 55% 45% at 88% 82%, rgba(228, 8, 127, 0.09) 0%, transparent 70%),
    var(--night);
  color: var(--ivory);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Subtle film grain */
.grain-layer {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.serif {
  font-family: var(--font-serif);
}

.mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   Page Shell & Top Bar
   ========================================================================== */

.page-shell {
  min-height: 100dvh;
  max-width: 1520px;
  margin: 0 auto;
  padding: 10px 28px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline-lilac);
}

.top-bar__brand {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--lilac);
  white-space: nowrap;
}

.top-bar__title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--ivory);
  text-align: center;
}

.top-bar__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.top-bar__date {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  white-space: nowrap;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.lang-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--lilac);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 8px;
  min-height: 30px;
  border-radius: 6px;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.lang-btn[aria-pressed="true"] {
  color: var(--ivory);
  background: rgba(92, 38, 140, 0.55);
  border-color: var(--hairline-gold);
}

@media (hover: hover) and (pointer: fine) {
  .lang-btn:hover {
    color: var(--ivory);
  }
}

.lang-sep {
  color: rgba(206, 186, 240, 0.45);
  font-size: 0.72rem;
}

.lang-switch--mobile {
  display: none;
}

/* ==========================================================================
   3-Column Stage
   ========================================================================== */

.stage-grid {
  display: grid;
  grid-template-columns: minmax(275px, 0.94fr) 390px minmax(335px, 1.08fr);
  gap: 24px;
  align-items: stretch;
  flex: 1 1 auto;
}

.stage-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.col-eyebrow {
  margin: 0 0 8px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lilac);
}

/* ==========================================================================
   Column 01 — PLV Counter Display Mockup
   ========================================================================== */

.plv-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: center;
  gap: 10px;
}

.plv-stand {
  position: relative;
  background:
    radial-gradient(circle at 50% 18%, rgba(92, 38, 140, 0.5), transparent 64%),
    linear-gradient(175deg, var(--night-2) 0%, var(--night) 58%, var(--night-deep) 100%);
  border: 1px solid rgba(232, 196, 106, 0.58);
  border-radius: 20px;
  padding: 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  box-shadow: 0 22px 48px rgba(7, 2, 19, 0.48);
}

.plv-stand::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 14px;
  border: 1px solid rgba(232, 196, 106, 0.18);
  pointer-events: none;
}

.plv-stand__top {
  text-align: center;
  position: relative;
  z-index: 1;
}

.plv-logo-wrap {
  width: 108px;
  aspect-ratio: 600 / 343;
  margin: 0 auto 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plv-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -8px -18px;
  background: radial-gradient(ellipse at center, rgba(252, 214, 234, 0.24) 0%, transparent 72%);
  pointer-events: none;
}

.plv-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
}

.plv-edition {
  margin: 0 0 4px;
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.plv-headline {
  margin: 0 0 4px;
  font-size: clamp(1.5rem, 2.1vw, 1.92rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ivory);
}

.plv-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--rose);
  font-weight: 500;
}

.plv-stand__media {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(232, 196, 106, 0.22);
}

.plv-box-stage {
  position: relative;
  width: min(176px, 62%);
  aspect-ratio: 900 / 836;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plv-box-glow {
  position: absolute;
  inset: 12% 8% 4%;
  background: radial-gradient(circle, rgba(206, 186, 240, 0.24) 0%, transparent 72%);
  filter: blur(12px);
  pointer-events: none;
}

.plv-box-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
}

.plv-qr-pad {
  background: #FFFFFF;
  padding: 10px;
  border-radius: 12px;
  width: 146px;
  flex-shrink: 0;
  border: 1px solid rgba(232, 196, 106, 0.72);
  box-shadow: 0 8px 20px rgba(8, 3, 22, 0.35);
}

.plv-qr-code {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plv-qr-code svg {
  width: 100%;
  height: 100%;
  display: block;
}

.plv-qr-fallback {
  color: var(--night);
  font-size: 0.68rem;
  line-height: 1.35;
  word-break: break-all;
  text-align: center;
  padding: 4px;
}

.plv-caption {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--lilac);
}

/* ==========================================================================
   Column 02 — Modern Phone Frame & App Shell
   ========================================================================== */

.col-phone {
  align-items: center;
}

.col-phone .col-eyebrow {
  width: 100%;
  max-width: 390px;
}

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 390px;
  height: clamp(640px, calc(100dvh - 134px), 780px);
  background: var(--night);
  border-radius: 44px;
  border: 2px solid rgba(232, 196, 106, 0.45);
  box-shadow:
    inset 0 0 0 4px #100626,
    0 28px 60px rgba(7, 2, 19, 0.62);
  padding: 12px 10px 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.phone-notch {
  position: relative;
  z-index: 6;
  width: 110px;
  height: 22px;
  margin: 0 auto 6px;
  border-radius: 999px;
  background: #0D0420;
  border: 1px solid rgba(206, 186, 240, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}

.phone-speaker {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: rgba(206, 186, 240, 0.24);
}

.phone-cam {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #5C268C, #14082E);
}

.phone-screen {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 32px;
  background:
    radial-gradient(ellipse 85% 45% at 50% 0%, rgba(92, 38, 140, 0.34) 0%, transparent 65%),
    var(--night);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(206, 186, 240, 0.28) transparent;
}

.phone-screen::-webkit-scrollbar {
  width: 4px;
}

.phone-screen::-webkit-scrollbar-thumb {
  background: rgba(206, 186, 240, 0.28);
  border-radius: 4px;
}

/* App Header inside Phone */
.app-header {
  position: sticky;
  top: 0;
  z-index: 12;
  padding: 10px 14px 9px;
  background: rgba(27, 11, 58, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline-lilac);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.app-header__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.app-header__logo {
  width: 46px;
  height: 27px;
  object-fit: contain;
  flex-shrink: 0;
}

.app-header__subtitle {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--lilac);
  white-space: nowrap;
}

.app-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.album-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--hairline-gold);
  background: rgba(38, 18, 79, 0.8);
  color: var(--ivory);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: transform 150ms var(--ease-out), border-color 150ms ease;
}

.album-pill:active {
  transform: scale(0.97);
}

.album-pill:disabled {
  cursor: default;
  opacity: 0.86;
  transform: none;
}

.plv-arrival-badge {
  align-self: flex-start;
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(217, 224, 27, 0.14);
  border: 1px solid rgba(217, 224, 27, 0.55);
  color: var(--lime);
}

/* ==========================================================================
   App Stage & Screen Transitions
   ========================================================================== */

.app-stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 20px;
  position: relative;
}

.screen {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 14px;
}

.screen--entering {
  animation: screenIn 240ms var(--ease-out) both;
}

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

.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 10px 6px 4px;
  margin: -6px 0;
  background: transparent;
  border: none;
  color: var(--lilac);
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 8px;
  transition: color 150ms ease, transform 150ms var(--ease-out);
}

.btn-back:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .btn-back:hover {
    color: var(--ivory);
  }
}

.step-title {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.55rem, 4.5vw, 1.95rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ivory);
}

.step-sub {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--lilac);
}

/* Primary & Secondary Buttons */
.btn-primary {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: var(--magenta);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  transition: transform 140ms var(--ease-out), background-color 150ms ease;
}

.btn-primary:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--magenta-hover);
  }
}

.btn-secondary {
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid var(--hairline-gold);
  border-radius: 14px;
  background: var(--night-2);
  color: var(--ivory);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 140ms var(--ease-out), border-color 150ms ease, background-color 150ms ease;
}

.btn-secondary:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    border-color: var(--gold);
    background: rgba(92, 38, 140, 0.45);
  }
}

.btn-ghost-link {
  background: transparent;
  border: none;
  color: var(--lilac);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 10px 14px;
  min-height: 44px;
  align-self: center;
  transition: color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn-ghost-link:hover {
    color: var(--ivory);
  }
}

/* ==========================================================================
   Step 0 — Welcome
   ========================================================================== */

.welcome-screen {
  justify-content: space-between;
  text-align: center;
  padding-top: 6px;
}

.welcome-hero {
  position: relative;
  width: min(230px, 68%);
  aspect-ratio: 900 / 836;
  margin: 8px auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-hero__glow {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(206, 186, 240, 0.34) 0%, rgba(232, 196, 106, 0.14) 45%, transparent 74%);
  filter: blur(16px);
  pointer-events: none;
}

.welcome-hero__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  animation: gentleFloat 4.4s ease-in-out infinite;
}

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

.welcome-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.welcome-meta {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

.welcome-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   Step 1 — Fairy Selection (3x2 UGR Grid)
   ========================================================================== */

.fairy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.fairy-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 8px;
  min-height: 44px;
  background: var(--night-2);
  border: 1px solid var(--hairline-lilac);
  border-radius: 14px;
  transition: transform 150ms var(--ease-out), border-color 150ms ease, background-color 150ms ease;
}

.fairy-tile:active {
  transform: scale(0.96);
}

.fairy-tile.is-selected {
  border-color: var(--gold);
  background: rgba(92, 38, 140, 0.52);
}

@media (hover: hover) and (pointer: fine) {
  .fairy-tile:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
  }
}

.fairy-tile__img-wrap {
  width: 100%;
  aspect-ratio: 420 / 589;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fairy-tile__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fairy-tile__name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ivory);
}

/* ==========================================================================
   Step 2 — Age Selection
   ========================================================================== */

.age-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.age-tile {
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  background: var(--night-2);
  border: 1px solid var(--hairline-lilac);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  text-align: left;
  transition: transform 140ms var(--ease-out), border-color 150ms ease, background-color 150ms ease;
}

.age-tile:active {
  transform: scale(0.97);
}

.age-tile.is-selected {
  border-color: var(--gold);
  background: rgba(92, 38, 140, 0.52);
}

@media (hover: hover) and (pointer: fine) {
  .age-tile:hover {
    border-color: var(--gold);
    background: rgba(92, 38, 140, 0.36);
  }
}

.age-tile__label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ivory);
}

.age-tile__sub {
  font-size: 0.82rem;
  color: var(--rose);
}

/* ==========================================================================
   Step 3 — CSS Foil Booster Pack
   ========================================================================== */

.booster-screen {
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.booster-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
  perspective: 900px;
}

.booster-glow {
  position: absolute;
  width: 240px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(206, 186, 240, 0.28) 0%, rgba(232, 196, 106, 0.12) 48%, transparent 74%);
  filter: blur(20px);
  pointer-events: none;
}

.booster-pack {
  position: relative;
  width: min(220px, 66vw);
  aspect-ratio: 220 / 320;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  border-radius: 6px;
  filter: drop-shadow(0 18px 28px rgba(7, 2, 19, 0.55));
}

.booster-pack.is-opening .booster-body {
  transform: translateY(4px) scale(0.99);
}

.booster-pack.is-opening .booster-cards-peek {
  opacity: 1;
  transform: translateY(-14px);
}

/* Top & Bottom Crimped Seals */
.booster-crimp {
  position: relative;
  height: 22px;
  flex-shrink: 0;
  background-color: #2A1356;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(251, 247, 255, 0.14) 0px,
      rgba(251, 247, 255, 0.14) 2px,
      rgba(15, 6, 36, 0.55) 2px,
      rgba(15, 6, 36, 0.55) 5px
    ),
    linear-gradient(135deg, #210E47 0%, #5C268C 48%, #26124F 100%);
  border-left: 1px solid rgba(232, 196, 106, 0.5);
  border-right: 1px solid rgba(232, 196, 106, 0.5);
}

.booster-crimp--top {
  border-top: 1px solid rgba(232, 196, 106, 0.6);
  clip-path: polygon(
    0% 100%, 0% 18%,
    3% 0%, 6% 18%, 9% 0%, 12% 18%, 15% 0%, 18% 18%, 21% 0%, 24% 18%, 27% 0%, 30% 18%,
    33% 0%, 36% 18%, 39% 0%, 42% 18%, 45% 0%, 48% 18%, 51% 0%, 54% 18%, 57% 0%, 60% 18%,
    63% 0%, 66% 18%, 69% 0%, 72% 18%, 75% 0%, 78% 18%, 81% 0%, 84% 18%, 87% 0%, 90% 18%,
    93% 0%, 96% 18%, 100% 0%, 100% 100%
  );
  transform-origin: left bottom;
  transition: transform 380ms var(--ease-out), opacity 340ms ease;
  z-index: 4;
}

.booster-crimp--top.is-torn {
  transform: translate(48px, -46px) rotate(22deg);
  opacity: 0;
}

.booster-crimp--bottom {
  border-bottom: 1px solid rgba(232, 196, 106, 0.6);
  clip-path: polygon(
    0% 0%, 100% 0%, 100% 82%,
    97% 100%, 94% 82%, 91% 100%, 88% 82%, 85% 100%, 82% 82%, 79% 100%, 76% 82%, 73% 100%,
    70% 82%, 67% 100%, 64% 82%, 61% 100%, 58% 82%, 55% 100%, 52% 82%, 49% 100%, 46% 82%,
    43% 100%, 40% 82%, 37% 100%, 34% 82%, 31% 100%, 28% 82%, 25% 100%, 22% 82%, 19% 100%,
    16% 82%, 13% 100%, 10% 82%, 7% 100%, 4% 82%, 0% 100%
  );
}

/* Interactive Tear Strip along the top seam */
.booster-tear-zone {
  position: absolute;
  top: -10px;
  left: -8px;
  right: -8px;
  height: 52px;
  z-index: 6;
  touch-action: none;
  display: flex;
  align-items: center;
}

.booster-tear-line {
  position: absolute;
  left: 8px;
  top: 31px;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--magenta) 100%);
  box-shadow: 0 0 8px rgba(232, 196, 106, 0.7);
  pointer-events: none;
}

.booster-tear-guide {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 31px;
  height: 1px;
  border-top: 1px dashed rgba(232, 196, 106, 0.55);
  pointer-events: none;
}

.booster-cards-peek {
  position: absolute;
  top: 18px;
  left: 16px;
  right: 16px;
  height: 26px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--rose) 0%, var(--magenta) 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  opacity: 0;
  transform: translateY(0);
  transition: transform 360ms var(--ease-out), opacity 220ms ease;
  z-index: 2;
  pointer-events: none;
}

/* Main Metallic Foil Body */
.booster-body {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  padding: 18px 16px;
  background:
    linear-gradient(
      125deg,
      #1B0B3A 0%,
      #3B1876 28%,
      #5C268C 48%,
      #2A1154 70%,
      #160832 100%
    );
  border-left: 1px solid rgba(232, 196, 106, 0.55);
  border-right: 1px solid rgba(232, 196, 106, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 280ms var(--ease-out);
  z-index: 3;
}

/* Subtle gold hairline frame inside foil pack */
.booster-body::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(232, 196, 106, 0.55);
  pointer-events: none;
  z-index: 2;
}

/* Slow metallic light sweep */
.booster-body::after {
  content: "";
  position: absolute;
  inset: -40% -70%;
  background: linear-gradient(
    108deg,
    transparent 38%,
    rgba(251, 247, 255, 0.08) 46%,
    rgba(232, 196, 106, 0.22) 50%,
    rgba(251, 247, 255, 0.08) 54%,
    transparent 62%
  );
  transform: translateX(-45%);
  animation: foilSweep 4.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes foilSweep {
  0%, 15% {
    transform: translateX(-50%);
  }
  65%, 100% {
    transform: translateX(50%);
  }
}

.booster-edition {
  position: relative;
  z-index: 3;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  line-height: 1.35;
}

.booster-logo-wrap {
  position: relative;
  z-index: 3;
  width: 78%;
  aspect-ratio: 600 / 343;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booster-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -10px -16px;
  background: radial-gradient(ellipse at center, rgba(252, 214, 234, 0.25) 0%, transparent 72%);
  pointer-events: none;
}

.booster-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
}

.booster-count {
  position: relative;
  z-index: 3;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--ivory);
  padding: 4px 10px;
  border: 1px solid rgba(232, 196, 106, 0.45);
  border-radius: 999px;
  background: rgba(27, 11, 58, 0.68);
}

.booster-hints {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.booster-instruction {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ivory);
}

.booster-alt {
  margin: 0;
  font-size: 0.78rem;
  color: var(--lilac);
}

/* ==========================================================================
   Step 4 — Card Reveal, 3D Flip & Realistic Foil Holo
   ========================================================================== */

.reveal-screen {
  justify-content: space-between;
  gap: 10px;
}

.reveal-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.reveal-counter {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--lilac);
}

.btn-see-all {
  border: 1px solid var(--hairline-lilac);
  background: var(--night-2);
  color: var(--ivory);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 12px;
  min-height: 36px;
  border-radius: 999px;
  transition: transform 140ms var(--ease-out), border-color 150ms ease;
}

.btn-see-all:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .btn-see-all:hover {
    border-color: var(--gold);
  }
}

.reveal-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 0;
}

.card-aura {
  position: absolute;
  width: 240px;
  height: 320px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(206, 186, 240, 0.25) 0%, transparent 72%);
  filter: blur(24px);
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 350ms ease, background 350ms ease;
}

.card-aura--UGR {
  background: radial-gradient(circle, rgba(232, 196, 106, 0.56) 0%, rgba(232, 196, 106, 0.14) 52%, transparent 74%);
  opacity: 1;
}

.card-aura--UR {
  background: radial-gradient(circle, rgba(228, 8, 127, 0.52) 0%, rgba(252, 214, 234, 0.16) 52%, transparent 74%);
  opacity: 1;
}

.card-aura--SSR {
  background: radial-gradient(circle, rgba(206, 186, 240, 0.58) 0%, rgba(92, 38, 140, 0.2) 52%, transparent 74%);
  opacity: 1;
}

.card-aura--AR,
.card-aura--TR,
.card-aura--FR {
  background: radial-gradient(circle, rgba(252, 214, 234, 0.52) 0%, rgba(206, 186, 240, 0.15) 52%, transparent 74%);
  opacity: 1;
}

/* 3D Perspective + Tilt Shell + Flipper */
.card-perspective {
  position: relative;
  width: min(214px, 58vw);
  aspect-ratio: 420 / 589;
  perspective: 1000px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  touch-action: pan-y;
}

.card-stack-shadow {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: rgba(252, 214, 234, 0.08);
  border: 1px solid rgba(252, 214, 234, 0.16);
  transform: translate(6px, 6px);
  pointer-events: none;
}

.card-tilt-shell {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.card-tilt-shell.is-anticipating {
  animation: fifthTremor 0.9s ease-in-out infinite;
}

@keyframes fifthTremor {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  20% {
    transform: translate3d(-1.5px, 0, 0) rotate(-0.7deg);
  }
  40% {
    transform: translate3d(1.5px, -1px, 0) rotate(0.7deg);
  }
  60% {
    transform: translate3d(-1px, 1px, 0) rotate(-0.5deg);
  }
  80% {
    transform: translate3d(1px, 0, 0) rotate(0.5deg);
  }
}

.card-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease-out);
}

.card-flipper.is-flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-face--front {
  transform: rotateY(180deg);
  isolation: isolate;
}

.card-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Realistic Foil Overlay for SSR / UR / UGR / AR */
.holo-foil {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  opacity: 0.72;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.holo-foil__bands {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    118deg,
    rgba(255, 224, 152, 0.36) 0%,
    rgba(252, 214, 234, 0.34) 6%,
    rgba(196, 234, 255, 0.30) 12%,
    rgba(206, 186, 240, 0.36) 18%,
    rgba(255, 224, 152, 0.36) 24%
  );
  background-size: 240% 240%;
  background-position: var(--holo-x, 50%) var(--holo-y, 50%);
  mix-blend-mode: color-dodge;
  opacity: 0.34;
}

.holo-foil--UGR .holo-foil__bands {
  background-image: repeating-linear-gradient(
    115deg,
    rgba(232, 196, 106, 0.45) 0%,
    rgba(255, 242, 196, 0.42) 6%,
    rgba(252, 214, 234, 0.32) 12%,
    rgba(206, 186, 240, 0.30) 18%,
    rgba(232, 196, 106, 0.45) 24%
  );
  opacity: 0.42;
}

.holo-foil--UR .holo-foil__bands {
  opacity: 0.38;
}

.holo-foil__specular {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 150px at var(--spot-x, 50%) var(--spot-y, 45%),
    rgba(255, 252, 244, 0.48) 0%,
    rgba(232, 196, 106, 0.16) 38%,
    transparent 74%
  );
  mix-blend-mode: overlay;
  opacity: 0.88;
}

/* Card Info & Badges */
.reveal-meta {
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.reveal-hint {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rose);
}

.reveal-rarity-hint {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.reveal-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}

.reveal-card-name {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.05;
  color: var(--ivory);
}

.badge-new {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--night);
}

.badge-fairy {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--night);
}

.rarity-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline-lilac);
  background: var(--night-2);
  color: var(--lilac);
}

.rarity-pill--UGR {
  border-color: var(--gold);
  color: var(--gold);
}

.rarity-pill--UR {
  border-color: var(--magenta);
  color: var(--rose);
}

.rarity-pill--SSR {
  border-color: var(--lilac);
  color: var(--ivory);
}

.rarity-pill--AR,
.rarity-pill--TR,
.rarity-pill--FR {
  border-color: rgba(252, 214, 234, 0.5);
  color: var(--rose);
}

/* 5-Card Thumbnail Tray */
.reveal-tray {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding-top: 6px;
}

.tray-slot {
  position: relative;
  aspect-ratio: 420 / 589;
  border-radius: 8px;
  border: 1px solid var(--hairline-lilac);
  background: rgba(38, 18, 79, 0.45);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms var(--ease-out), border-color 160ms ease;
}

.tray-slot.is-revealed {
  animation: trayDock 260ms var(--ease-out) both;
}

.tray-slot.is-active {
  border-color: var(--gold);
  transform: translateY(-3px);
}

@keyframes trayDock {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tray-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tray-slot__placeholder {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(206, 186, 240, 0.45);
}

.tray-slot__dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  border: 1.5px solid var(--night);
}

/* ==========================================================================
   Step 5 — Album (94 Cards)
   ========================================================================== */

.album-screen {
  gap: 12px;
}

.album-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.album-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.album-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--night-2);
  border: 1px solid var(--hairline-lilac);
  overflow: hidden;
}

.album-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--magenta) 0%, var(--gold) 100%);
  transition: width 360ms var(--ease-out);
}

.album-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill {
  border: 1px solid var(--hairline-lilac);
  background: var(--night-2);
  color: var(--lilac);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 6px 9px;
  min-height: 32px;
  border-radius: 999px;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.filter-pill.is-active {
  background: var(--magenta);
  border-color: var(--magenta);
  color: #FFFFFF;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.album-slot {
  position: relative;
  aspect-ratio: 420 / 589;
  border-radius: 7px;
  border: 1px solid rgba(206, 186, 240, 0.14);
  background: rgba(18, 6, 43, 0.65);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.album-slot.is-owned {
  border-color: rgba(232, 196, 106, 0.45);
  background: transparent;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), border-color 140ms ease;
}

.album-slot.is-owned:active {
  transform: scale(0.95);
}

.album-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.album-slot--missing img {
  opacity: 0.24;
  filter: saturate(0.25) brightness(0.62);
}

.album-slot__code {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  line-height: 1.15;
  color: var(--lilac);
  pointer-events: none;
}

.album-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.album-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--lilac);
  text-align: center;
}

/* Album Card Inspector Modal inside Phone */
.card-modal {
  position: absolute;
  inset: 12px 10px 10px;
  border-radius: 32px;
  z-index: 40;
  background: rgba(12, 4, 28, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.card-modal[hidden] {
  display: none;
}

.card-modal__inner {
  width: min(260px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.card-modal__face {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
}

.card-modal__face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-modal__code {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--lilac);
}

/* ==========================================================================
   Step 6 — Stores Near You
   ========================================================================== */

.stores-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline-lilac);
}

.store-row {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline-lilac);
  padding: 13px 8px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  text-align: left;
  transition: background-color 150ms ease;
}

.store-row.is-selected {
  background: rgba(92, 38, 140, 0.34);
}

.store-row__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.store-row__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ivory);
}

.store-row__dist {
  font-size: 0.74rem;
  color: var(--lilac);
}

.store-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.store-badge--lime {
  background: var(--lime);
  color: var(--night);
}

.store-badge--gold {
  background: var(--gold);
  color: var(--night);
}

.store-badge--muted {
  background: var(--night-2);
  border: 1px solid var(--hairline-lilac);
  color: var(--lilac);
}

.stores-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 4px;
}

/* Toast inside Phone */
.app-toast {
  position: sticky;
  bottom: 12px;
  z-index: 30;
  margin: 0 12px 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--ivory);
  color: var(--night);
  border: 1px solid var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 12px 28px rgba(7, 2, 19, 0.5);
  animation: toastIn 220ms var(--ease-out) both;
}

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

/* ==========================================================================
   Column 03 — Light Retail Dashboard
   ========================================================================== */

.dash-card {
  flex: 1 1 auto;
  background: var(--ivory);
  color: var(--dash-ink);
  border-radius: 20px;
  border: 1px solid rgba(232, 196, 106, 0.5);
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 22px 48px rgba(7, 2, 19, 0.36);
}

.dash-stores {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  background: rgba(92, 38, 140, 0.07);
  padding: 4px;
  border-radius: 11px;
}

.store-tab {
  border: none;
  background: transparent;
  color: var(--dash-muted);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 8px 6px;
  min-height: 36px;
  border-radius: 8px;
  transition: background-color 150ms ease, color 150ms ease;
}

.store-tab.is-active {
  background: var(--night);
  color: var(--ivory);
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--dash-border);
}

.dash-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-kpi__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dash-muted);
}

.dash-kpi__val {
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--dash-ink);
  transition: color 220ms ease;
}

.dash-conversion {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(92, 38, 140, 0.06);
}

.dash-conversion__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dash-ink);
}

.dash-conversion__val {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--violet);
}

.dash-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-section__title {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dash-muted);
}

.dash-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-bar-row {
  display: grid;
  grid-template-columns: 96px 1fr 38px;
  align-items: center;
  gap: 8px;
}

.dash-bar-row__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dash-ink);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}

.dash-bar-row__sub {
  flex-basis: 100%;
  line-height: 1.2;
  font-size: 0.67rem;
  font-weight: 500;
  color: var(--dash-muted);
}

.dash-bar-track {
  height: 7px;
  border-radius: 999px;
  background: var(--dash-track);
  overflow: hidden;
}

.dash-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--violet);
  transition: width 360ms var(--ease-out), background-color 260ms ease;
}

.dash-bar-fill--accent {
  background: var(--magenta);
}

.dash-bar-row__pct {
  font-size: 0.74rem;
  font-weight: 700;
  text-align: right;
  color: var(--dash-ink);
}

.dash-disclaimer {
  margin: 0;
  padding-top: 6px;
  border-top: 1px solid var(--dash-border);
  font-size: 0.72rem;
  color: var(--dash-muted);
}

/* Magenta live update flash */
.is-flashing {
  animation: magentaFlash 680ms var(--ease-out);
}

.dash-bar-fill.is-flashing {
  animation: magentaBarFlash 680ms var(--ease-out);
}

@keyframes magentaFlash {
  0% {
    color: var(--magenta);
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes magentaBarFlash {
  0% {
    background-color: var(--magenta);
  }
}

.dash-bar-fill--accent.is-flashing {
  animation: magentaAccentBarFlash 680ms var(--ease-out);
}

@keyframes magentaAccentBarFlash {
  0% {
    background-color: var(--gold);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.page-footer {
  padding-top: 6px;
  border-top: 1px solid rgba(206, 186, 240, 0.14);
  text-align: center;
}

.page-footer p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(206, 186, 240, 0.78);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* 900px – 1099px: Phone + Dashboard on top, PLV below */
@media (max-width: 1099px) {
  .stage-grid {
    grid-template-columns: minmax(340px, 390px) minmax(320px, 1fr);
    gap: 20px;
  }

  .col-phone {
    grid-column: 1;
    grid-row: 1;
  }

  .col-dash {
    grid-column: 2;
    grid-row: 1;
  }

  .col-plv {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .plv-stand__media {
    flex-direction: row;
    justify-content: center;
    gap: 28px;
  }

  .plv-box-stage {
    width: 190px;
    margin: 0;
  }
}

/* < 900px: Fullscreen Mobile App Only (no phone frame, no side columns) */
@media (max-width: 899px) {
  .card-modal {
    position: fixed;
    inset: 0;
    border-radius: 0;
  }
  .page-shell {
    padding: 0;
    gap: 0;
  }

  .top-bar,
  .col-plv,
  .col-dash,
  .col-phone .col-eyebrow,
  .phone-notch {
    display: none;
  }

  .stage-grid {
    display: block;
  }

  .col-phone {
    width: 100%;
  }

  .phone-frame {
    max-width: 500px;
    height: auto;
    min-height: calc(100dvh - 54px);
    margin: 0 auto;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }

  .phone-screen {
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }

  .lang-switch--mobile {
    display: inline-flex;
  }

  .page-footer {
    padding: 12px 16px 18px;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

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

  .welcome-hero__img,
  .booster-body::after,
  .card-tilt-shell.is-anticipating {
    animation: none !important;
  }

  .card-flipper {
    transition: none !important;
  }

  .card-tilt-shell {
    transform: none !important;
  }
}

/* finitions Gencode : titres équilibrés */
h1, h2, h3 { text-wrap: balance; }
