/* ══════════════════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════════════════ */
:root {
  /* Core palette (Pastel & Soft) */
  --clr-primary:      #ff7aa2;
  --clr-primary-deep: #e84a7e;
  --clr-accent:       #a0c4ff;
  --clr-warm:         #ffd6a5;
  --clr-green:        #34d399;

  /* Surfaces */
  --clr-bg:      #f8f9fa;
  --clr-surface: #ffffff;
  --clr-glass:   #ffffff; /* Clay is opaque, not glass */

  /* Text */
  --clr-ink:       #4a4e69;
  --clr-ink-mid:   #9a8c98;
  --clr-ink-faint: #c9ada7;

  /* Gradients */
  --grad-bg:      linear-gradient(135deg, #ffe5ec 0%, #e0eaf5 100%);
  --grad-primary: linear-gradient(135deg, #ffb3c6, #ff8fab);
  --grad-shop-action: linear-gradient(135deg, #9f6bff, #8157ff);
  --grad-warm:    linear-gradient(135deg, #ffd6a5, #ffb3c6);

  /* Shadows (Soft & Premium depth, no white glow) */
  --shadow-card: 0 8px 24px rgba(74, 78, 105, 0.12), 
                 0 2px 6px rgba(74, 78, 105, 0.06);
                 
  --shadow-lift: 0 16px 36px rgba(74, 78, 105, 0.18), 
                 0 4px 12px rgba(74, 78, 105, 0.08);
                 
  --shadow-sm:   0 3px 8px rgba(74, 78, 105, 0.08);

  --shadow-pill: 0 4px 12px rgba(74, 78, 105, 0.08);
  --topbar-control-height: 46px;
  --topbar-control-radius: 18px;

  /* Radii (Very soft, rounded corners) */
  --r-card: 16px;
  --r-pill: 100px;
  --r-lg:   24px;
  --r-md:   16px;
  --r-sm:   12px;

  /* Typography */
  --ff-display: 'Quicksand', sans-serif;
  --ff-body:    'Nunito', sans-serif;
  --ff-cat:     'Quicksand', sans-serif;

  /* Safe areas (iOS notch / home bar) */
  --safe-top:    max(env(safe-area-inset-top),    12px);
  --safe-bottom: max(env(safe-area-inset-bottom), 16px);

  /* Easing */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ══════════════════════════════════════════════════════════
   RESET
══════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-family: var(--ff-body);
  background: var(--clr-bg);
  color: var(--clr-ink);
  user-select: none;
  -webkit-user-select: none;
}

img { display: block; max-width: 100%; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ══════════════════════════════════════════════════════════
   APP SHELL
══════════════════════════════════════════════════════════ */
#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: 430px;
  margin: 0 auto;
  background: var(--clr-bg);
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════
   SPLASH / LOADING SCREEN
══════════════════════════════════════════════════════════ */
.app-splash {
  position: absolute;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--grad-bg);
  opacity: 1;
  transition: opacity 0.4s var(--ease-smooth);
}

.app-splash--hidden {
  opacity: 0;
  pointer-events: none;
}

.app-splash-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  color: var(--clr-primary);
  background: radial-gradient(circle at 50% 45%, #fff 0%, #ffe5ec 70%, transparent 100%);
  box-shadow: 0 0 0 rgba(255, 122, 162, 0.35);
  animation: app-splash-glow 1.8s var(--ease-smooth) infinite;
}

.app-splash-mark svg {
  filter: drop-shadow(0 2px 6px rgba(255, 122, 162, 0.35));
}

.app-splash-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-splash-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-primary);
  animation: app-splash-bounce 1.2s ease-in-out infinite;
}

.app-splash-dots span:nth-child(2) { animation-delay: 0.15s; }
.app-splash-dots span:nth-child(3) { animation-delay: 0.3s; }

.app-splash-text {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--clr-ink-mid);
  letter-spacing: 0.02em;
}

@keyframes app-splash-glow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 122, 162, 0.35);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 24px 6px rgba(255, 122, 162, 0.25);
  }
}

@keyframes app-splash-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40%           { transform: translateY(-8px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .app-splash-mark,
  .app-splash-dots span {
    animation: none;
  }
}

/* ══════════════════════════════════════════════════════════
   SCREENS
══════════════════════════════════════════════════════════ */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(28px) scale(0.97);
  transition:
    opacity    0.34s var(--ease-smooth),
    transform  0.34s var(--ease-smooth);
  will-change: opacity, transform;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* ══════════════════════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════════════════════ */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(var(--safe-top) + 4px) 18px 10px;
  flex-shrink: 0;
  z-index: 10;
}
.top-bar--game { padding-inline: 14px; }
.top-bar--decks { position: relative; }
.top-bar--shop { position: relative; }

.top-bar-left-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.top-bar-control {
  min-height: var(--topbar-control-height);
  border-radius: var(--topbar-control-radius);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-pill);
  transition:
    transform 0.18s var(--ease-spring),
    box-shadow 0.18s var(--ease-smooth),
    border-color 0.18s var(--ease-smooth),
    background 0.18s var(--ease-smooth),
    color 0.18s var(--ease-smooth);
}

.top-bar-control:focus-visible {
  outline: none;
  border-color: rgba(255, 122, 162, 0.58);
  box-shadow:
    0 0 0 4px rgba(255, 179, 198, 0.34),
    var(--shadow-pill);
}

.top-bar-control:not(:disabled):active {
  transform: scale(0.94);
}

.top-bar-control:disabled {
  cursor: default;
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════
   COINS PILL
══════════════════════════════════════════════════════════ */
.coins-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 78px;
  padding: 0 16px 0 12px;
  border-radius: var(--topbar-control-radius);
  transition: transform 0.2s var(--ease-spring), border-color 0.2s, padding 0.2s;
}
.coin-icon { width: 22px; height: 22px; color: var(--clr-warm); fill: var(--clr-warm); }
.coin-value {
  font-family: var(--ff-display);
  font-size: 16px;
  color: var(--clr-primary-deep);
  min-width: 18px;
  text-align: left;
}
.coins-pill.pop { animation: coinPop 0.38s var(--ease-spring) forwards; }

/* VIP and Weekly Pass coins-pill styles */
.coin-icon--vip {
  display: none !important;
}

.coin-icon--vip-status {
  display: none !important;
  width: 55px;
  height: 50px;
  max-width: none;
  object-fit: contain;
}

.coins-pill--vip .coin-icon--default,
.coins-pill--weekly-pass .coin-icon--default {
  display: none !important;
}

.coins-pill--vip .coin-icon--vip,
.coins-pill--weekly-pass .coin-icon--vip {
  display: inline-block !important;
}

#decks-coins-pill.coins-pill--vip .coin-icon--vip {
  display: none !important;
}

#decks-coins-pill.coins-pill--vip .coin-icon--vip-status {
  display: inline-block !important;
}

.coins-pill--vip .coin-value {
  display: none !important;
}

.coins-pill--vip {
  padding: 0 !important;
  width: var(--topbar-control-height) !important;
  min-width: 0 !important;
  height: var(--topbar-control-height) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  border: 1.5px solid var(--clr-warm) !important;
  background: var(--clr-surface) !important;
}

#decks-coins-pill.coins-pill--vip {
  overflow: visible;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none;
}

.coins-pill--weekly-pass {
  border: 1.5px dashed var(--clr-warm) !important;
  background: var(--clr-surface) !important;
  padding: 0 14px 0 10px !important;
}

.coins-pill--weekly-pass .coin-value {
  display: inline-block !important;
  color: var(--clr-primary-deep);
  font-size: 14px;
  font-weight: 700;
}

.top-bar-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#shop-coins-pill {
  min-width: 78px;
}

#btn-open-shop[hidden] {
  display: none !important;
}

.top-menu-wrap {
  position: relative;
}

.top-menu-wrap.open .icon-btn--menu {
  background: linear-gradient(180deg, rgba(255, 245, 248, 0.98), rgba(255, 232, 239, 0.98));
  border-color: rgba(255, 179, 198, 0.9);
}

.top-menu-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 24px));
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 246, 249, 0.97));
  border: 1px solid rgba(255, 228, 236, 0.92);
  box-shadow: 0 22px 44px rgba(74, 78, 105, 0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 30;
  transform-origin: top right;
  animation: topMenuIn 0.22s var(--ease-out) forwards;
}

.top-menu-popover[hidden] {
  display: none;
}

.top-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--clr-ink);
  background: rgba(255, 255, 255, 0.72);
  transition:
    transform 0.16s var(--ease-spring),
    background 0.16s var(--ease-smooth),
    color 0.16s var(--ease-smooth);
}

.top-menu-item[hidden] {
  display: none;
}

.top-menu-item:hover,
.top-menu-item:focus-visible {
  background: rgba(255, 240, 245, 0.96);
  color: var(--clr-primary-deep);
  outline: none;
}

.top-menu-item:active {
  transform: scale(0.97);
}

.top-menu-item:disabled {
  opacity: 1;
  cursor: default;
}

.top-menu-item:disabled:hover,
.top-menu-item:disabled:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  color: var(--clr-ink);
}

.top-menu-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  background: linear-gradient(180deg, rgba(255, 214, 225, 0.56), rgba(255, 246, 249, 0.96));
  flex-shrink: 0;
}

.top-menu-item-icon svg {
  width: 18px;
  height: 18px;
}

.top-menu-item-copy {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.top-menu-item-title,
.top-menu-item-value {
  font-family: var(--ff-display);
  font-size: 15px;
  font-weight: 700;
}

.top-menu-item-title {
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-menu-item-value {
  color: var(--clr-ink-mid);
  flex-shrink: 0;
}

.top-menu-chevron {
  color: var(--clr-ink-mid);
  transition: transform 0.2s var(--ease-spring), color 0.2s var(--ease-smooth);
  flex-shrink: 0;
}

.top-menu-item--language[aria-expanded="true"] .top-menu-chevron {
  transform: rotate(180deg);
  color: var(--clr-primary-deep);
}

.top-menu-language-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 2px 2px 4px;
}

.top-menu-language-list[hidden] {
  display: none;
}

.top-menu-language-option {
  min-height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--clr-ink-mid);
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.16s var(--ease-spring), background 0.16s var(--ease-smooth), color 0.16s var(--ease-smooth);
}

.top-menu-language-option:hover,
.top-menu-language-option:focus-visible {
  background: rgba(255, 240, 245, 0.96);
  color: var(--clr-primary-deep);
  outline: none;
}

.top-menu-language-option:active {
  transform: scale(0.96);
}

.top-menu-language-option.active {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 143, 171, 0.25);
}

.top-menu-item--danger {
  color: #cb587b;
}

.top-menu-item--danger .top-menu-item-icon {
  color: #cb587b;
  background: linear-gradient(180deg, rgba(255, 223, 232, 0.72), rgba(255, 243, 246, 0.98));
}


/* ══════════════════════════════════════════════════════════
   LANGUAGE SELECTOR
   ══════════════════════════════════════════════════════════ */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--clr-surface);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  padding: 6px 12px;
  border: none;
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-ink-mid);
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.lang-dropdown-trigger:hover {
  color: var(--clr-primary-deep);
}

.lang-dropdown-trigger:active {
  transform: scale(0.95);
}

.lang-dropdown-trigger .chevron-icon {
  width: 12px;
  height: 12px;
  color: var(--clr-ink-mid);
  transition: transform 0.25s var(--ease-spring);
}

.lang-dropdown.open .lang-dropdown-trigger .chevron-icon {
  transform: rotate(180deg);
}

.lang-dropdown-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px) scale(0.95);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s var(--ease-spring), opacity 0.25s;
  z-index: 100;
  min-width: 68px;
}

.lang-dropdown.open .lang-dropdown-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.lang-dropdown-option {
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-ink-mid);
  padding: 8px 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s var(--ease-smooth);
  width: 100%;
}

.lang-dropdown-option:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--clr-primary-deep);
}

.lang-dropdown-option.active {
  background: var(--grad-primary);
  color: #ffffff;
}

.lang-dropdown-option:active {
  transform: scale(0.92);
}

/* ══════════════════════════════════════════════════════════
   ICON BUTTONS
   ══════════════════════════════════════════════════════════ */
.icon-btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  flex-shrink: 0;
  background: var(--clr-surface);
  box-shadow: var(--shadow-sm);
  border: none;
  color: var(--clr-ink);
  transition: transform 0.15s var(--ease-spring), opacity 0.15s;
}
.icon-btn .nav-icon { width: 26px; height: 26px; stroke-width: 2.5; }
.icon-btn:active { transform: scale(0.90); }

.icon-btn.top-bar-control {
  width: var(--topbar-control-height);
  height: var(--topbar-control-height);
  color: var(--clr-ink);
}

.icon-btn.top-bar-control:active {
  transform: scale(0.94);
}

.icon-btn--shuffle {
  color: var(--clr-accent);
}

/* ══════════════════════════════════════════════════════════
   SCREEN TITLE
══════════════════════════════════════════════════════════ */
.screen-title {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--clr-ink);
  text-align: center;
  flex: 1;
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════════════
   SCROLL AREA
══════════════════════════════════════════════════════════ */
.scroll-area {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 16px calc(var(--safe-bottom) + 20px);
  overscroll-behavior: contain;
}
.scroll-area::-webkit-scrollbar { width: 3px; }
.scroll-area::-webkit-scrollbar-thumb {
  background: hsla(342, 50%, 78%, 0.4);
  border-radius: 3px;
}

/* ══════════════════════════════════════════════════════════
   MENU SCREEN
══════════════════════════════════════════════════════════ */
.menu-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 85% 60% at 50% 25%,
    hsla(342, 75%, 88%, 0.75),
    transparent 70%
  );
  pointer-events: none;
}

.menu-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  gap: 28px;
}

.menu-illustration-wrap {
  width: 82%;
  max-width: 310px;
  position: relative;
}

.menu-illustration {
  width: 100%;
  filter: drop-shadow(0 18px 36px hsla(342, 60%, 50%, 0.24));
  animation: floatIllustration 6s ease-in-out infinite;
}

.menu-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

/* Menu title */
.menu-title {
  font-family: var(--ff-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: 6px;
  text-align: center;
  text-shadow:
    0 2px 0 hsla(342, 80%, 40%, 0.15),
    0 6px 20px hsla(342, 80%, 60%, 0.28);
}

/* CTA pill buttons */
.cta-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  padding: 17px 32px;
  border-radius: var(--r-pill);
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1.5px;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.cta-pill--primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 4px 12px hsla(342, 85%, 60%, 0.25);
}
.cta-pill--primary:active  { transform: scale(0.95); box-shadow: none; }
.cta-pill--outline {
  background: transparent;
  border: 2.5px solid hsla(342, 65%, 75%, 0.5);
  color: var(--clr-primary-deep);
}
.cta-pill--outline:active { transform: scale(0.97); }

/* Shop icon button */
.icon-btn--shop {
  color: var(--clr-primary);
}

.menu-footer {
  padding-bottom: calc(var(--safe-bottom) + 12px);
  display: flex;
  justify-content: center;
}
.ukraine-badge { height: 36px; object-fit: contain; opacity: 0.65; }

/* ══════════════════════════════════════════════════════════
   QOTD BANNER
══════════════════════════════════════════════════════════ */
.qotd-banner {
  background: var(--clr-surface);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring);
}
.qotd-banner:active { transform: scale(0.97); }
.qotd-header {
  margin-bottom: 12px;
}
.qotd-title {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--clr-ink-mid);
}
.qotd-question {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--clr-ink);
  line-height: 1.3;
}

/* ══════════════════════════════════════════════════════════
   DECK SELECT SCREEN
══════════════════════════════════════════════════════════ */
.section-animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 450ms cubic-bezier(0.25, 1, 0.5, 1), transform 450ms cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}
.section-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

.decks-group-title {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 700;
  color: #1a2a47; /* darker blue ink */
  margin-top: 10px;
  margin-bottom: 12px;
  text-align: left;
}

.decks-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-padding-left: 18px;
  scroll-padding-right: 18px;
  padding-left: 18px;
  padding-right: 18px;
  padding-bottom: 12px;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  margin-left: -18px;
  margin-right: -18px;
  /* hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.decks-slider::-webkit-scrollbar {
  display: none;
}

.deck-card {
  --scroll-scale: 1;
  --scroll-opacity: 1;
  flex: 0 0 240px;
  height: 175px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1.5px solid transparent;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  cursor: pointer;
  /* Apply continuous JS updates without transition delay */
  transform: scale(var(--scroll-scale));
  opacity: var(--scroll-opacity);
  /* Keep transition for active press and box-shadow */
  transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s, background-color 0.2s;
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
}

/* Thematic Background Colors (Semi-transparent for glassmorphism overlay) */
.deck-card--warmup { background-color: rgba(255, 218, 204, 0.8); }
.deck-card--fun    { background-color: rgba(226, 240, 239, 0.8); }
.deck-card--life   { background-color: rgba(255, 229, 236, 0.8); }
.deck-card--deep   { background-color: rgba(252, 228, 179, 0.8); }
.deck-card--think  { background-color: rgba(229, 240, 250, 0.8); }
.deck-card--love   { background-color: rgba(240, 230, 255, 0.8); }
.deck-card--default { background-color: rgba(238, 241, 246, 0.8); }
.deck-card--sunrise { background-color: rgba(255, 224, 189, 0.86); }
.deck-card--sky { background-color: rgba(223, 243, 255, 0.86); }
.deck-card--forest { background-color: rgba(223, 247, 232, 0.86); }
.deck-card--berry { background-color: rgba(249, 215, 232, 0.86); }
.deck-card--lemon { background-color: rgba(255, 242, 184, 0.86); }
.deck-card--aqua { background-color: rgba(216, 247, 243, 0.86); }
.deck-card--orchid { background-color: rgba(234, 220, 255, 0.86); }
.deck-card--sand { background-color: rgba(244, 234, 219, 0.86); }
.deck-card--slate { background-color: rgba(226, 232, 240, 0.86); }

.deck-card:active { transform: scale(calc(var(--scroll-scale) * 0.95)); }


.deck-card--locked { 
  /* Keep full opacity for text readability and color consistency */
}

.deck-card-top {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
}

.deck-card-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.deck-card-icon {
  width: 22px; height: 22px;
  color: var(--clr-ink);
  stroke-width: 2;
}

.deck-info { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; margin-top: 12px; }
.deck-name {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 700;
  color: #1a2a47;
  margin-bottom: 4px;
  line-height: 1.2;
}
.deck-desc {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 12px;
  color: #3b4b6b;
  opacity: 0.8;
  line-height: 1.35;
  padding-right: 45px;
}

.deck-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  background: white;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.deck-badge--free { color: #ff4d6d; }
.deck-badge--price { color: #ff4d6d; }
.deck-badge .badge-star { width: 12px; height: 12px; fill: currentColor; }
.deck-badge .coin-icon { width: 12px; height: 12px; color: var(--clr-warm); fill: var(--clr-warm); }

/* Deck card progress bar */
.deck-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: rgba(74, 78, 105, 0.08);
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}
.deck-progress-fill {
  height: 100%;
  background: var(--clr-primary-deep);
  border-radius: 0 0 20px 20px;
  transition: width 0.4s var(--ease-smooth);
}
.deck-progress-label {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--clr-ink);
  opacity: 0.4;
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════════════
   GAME SCREEN — PROGRESS
══════════════════════════════════════════════════════════ */
.progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.progress-track {
  width: 100%;
  height: 5px;
  background: var(--clr-ink-faint);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--r-pill);
  transition: width 0.4s var(--ease-smooth);
  box-shadow: 0 0 6px hsla(342, 80%, 60%, 0.45);
  min-width: 4px;
}
.progress-label {
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 11px;
  color: var(--clr-ink-mid);
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════════════
   GAME SCREEN — CARD STAGE
══════════════════════════════════════════════════════════ */
.card-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12px 16px;
  perspective: 1200px;
}

/* The Card */
.card {
  width: 100%;
  max-width: 330px;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  /* Soft diagonal sheen over the flat theme colour — reads as printed stock */
  background-image: linear-gradient(158deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0) 52%);
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(74, 78, 105, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  cursor: grab;
  touch-action: none;
  will-change: transform;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--clr-surface);
  transition: box-shadow 0.25s;
  outline: none;
  position: absolute;
}
.card:focus-visible {
  box-shadow: var(--shadow-lift), 0 0 0 3px var(--clr-primary);
}
.card:active { cursor: grabbing; }

/* Stacked Deck Styles */
/* No opacity on the stack — a card must never show the question behind it */
#main-card { z-index: 6; }
#bg-card-1 { z-index: 5; pointer-events: none; }
#bg-card-2 { z-index: 4; pointer-events: none; }
#bg-card-3 { z-index: 3; pointer-events: none; }

.card-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Badge pinned to the top, question centred in whatever is left — the
     composition no longer shifts with question length. */
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  height: 100%;
  padding: 10px 10px;
  /* Transparent — lets the card gradient show through */
  background: transparent;
}

.card-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  font-family: var(--ff-cat);
  font-size: 11.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  border: none;
  /* Default colors — overridden per category */
  background: hsla(342, 70%, 94%, 0.9);
  color: var(--clr-primary-deep);
  border-color: hsla(342, 60%, 80%, 0.5);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.cat-badge-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5px;
  color: inherit;
}

.card-question {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: clamp(16px, 4.8vw, 23px);
  line-height: 1.45;
  color: var(--clr-ink);
  text-align: center;
  width: 100%;
  /* Comfortable measure — long questions no longer read as a wall */
  max-width: 21ch;
  margin: auto 0;
  text-wrap: balance;
  word-wrap: break-word;
}

/* Card animation states */

/* Next button: the card peels up off the stack, then flies away left.
   Mirror of the rewind entrance, which arrives and lands on top.
   Duration is mirrored by CardRenderer.THROW_MS. */
@keyframes card-throw-left {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    animation-timing-function: cubic-bezier(0.3, 0.02, 0.42, 1);
  }
  26% {
    transform: translate(10px, -20px) rotate(-2.5deg) scale(1.05);
    animation-timing-function: cubic-bezier(0.48, 0.04, 0.72, 0.46);
  }
  100% {
    transform: translate(-135vw, 70px) rotate(-24deg) scale(0.9);
  }
}
.card--throwing {
  animation: card-throw-left 560ms forwards;
  box-shadow: 0 26px 52px rgba(74, 78, 105, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.card--snap {
  transition: transform var(--card-snap-duration, 0.45s) var(--card-snap-ease, var(--ease-spring)),
    opacity var(--card-snap-duration, 0.45s) ease-out !important;
}
/* Card picked up by the pointer — reads as lifted off the stack */
.card--lifted {
  box-shadow: 0 20px 44px rgba(74, 78, 105, 0.26), 0 4px 12px rgba(74, 78, 105, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .card, .card--snap { transition-duration: 0.01ms !important; }
  .card--throwing { animation-duration: 0.01ms !important; }
}

/* ══════════════════════════════════════════════════════════
   GAME SCREEN — FOOTER
══════════════════════════════════════════════════════════ */
.game-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px calc(var(--safe-bottom) + 18px);
  gap: 14px;
}

.nav-btn {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--clr-surface);
  border: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s;
  flex-shrink: 0;
  color: var(--clr-primary-deep);
}
.nav-btn .nav-icon { width: 26px; height: 26px; stroke-width: 2.5; }
.nav-btn:active { transform: scale(0.90); box-shadow: none; }

/* "Next" is the action played hundreds of times per session — it outranks
   everything else in the footer. */
.nav-btn--fwd {
  width: 68px; height: 68px;
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 10px 24px rgba(198, 106, 138, 0.34), 0 2px 6px rgba(33, 39, 74, 0.12);
}
.nav-btn--fwd .nav-icon { width: 34px; height: 34px; }

/* "Back" stays available but quiet */
#btn-prev { color: var(--clr-ink-mid); }

.game-feedback-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-btn--feedback {
  width: 46px;
  height: 46px;
  color: var(--clr-ink-mid);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(214, 220, 232, 0.9);
  box-shadow: 0 12px 28px rgba(33, 39, 74, 0.08);
}

.nav-btn--feedback .nav-icon {
  width: 21px;
  height: 21px;
  stroke-width: 2.25;
}

/* Report is used once in a hundred cards — ghost button, not a peer of like */
.nav-btn--feedback-report {
  width: 38px;
  height: 38px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  opacity: 0.55;
}
.nav-btn--feedback-report .nav-icon { width: 18px; height: 18px; }
.nav-btn--feedback-report.is-active { opacity: 1; box-shadow: none; }

.nav-btn--feedback:disabled {
  opacity: 0.58;
  cursor: wait;
}

.nav-btn--feedback.is-active {
  box-shadow: 0 14px 28px rgba(33, 39, 74, 0.12);
}

.nav-btn--feedback-report.is-active {
  color: #9a5b10;
  background: #fff1df;
  border-color: #f3d1a3;
}

.nav-btn--feedback-dislike.is-active {
  color: #a64848;
  background: #fdeaea;
  border-color: #f0c1c1;
}

.nav-btn--feedback-like.is-active {
  color: #3d7f54;
  background: #ebf7ef;
  border-color: #bfdcc8;
}

.nav-btn--feedback.is-pending {
  transform: scale(0.96);
}

@media (max-width: 520px) {
  .game-footer {
    gap: 10px;
    padding-inline: 14px;
  }

  .game-feedback-actions {
    gap: 8px;
  }

  .nav-btn {
    width: 48px;
    height: 48px;
  }

  .nav-btn--fwd {
    width: 62px;
    height: 62px;
  }

  .nav-btn--feedback {
    width: 42px;
    height: 42px;
  }

  .nav-btn--feedback-report {
    width: 36px;
    height: 36px;
  }
}

/* ══════════════════════════════════════════════════════════
   SHOP SCREEN
══════════════════════════════════════════════════════════ */
.shop-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 18px calc(var(--safe-bottom) + 28px);
}
.shop-section {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 34px;
  box-shadow: 0 18px 40px rgba(228, 170, 121, 0.14);
}
.shop-section--full-access {
  min-height: 338px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: stretch;
  gap: 12px;
  padding: 26px 26px 22px;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.98), transparent 26%),
    radial-gradient(circle at 88% 74%, rgba(255, 194, 207, 0.34), transparent 26%),
    linear-gradient(135deg, #fff3e6 0%, #fff8ef 26%, #ffeacf 56%, #fff4ea 100%);
}
.shop-section--full-access::after {
  display: none;
  content: none;
}
.shop-section--weekly {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr) 210px;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 18% 62%, rgba(173, 120, 255, 0.18), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.9), transparent 20%),
    linear-gradient(135deg, #efe6ff 0%, #f6efff 48%, #fdf6ff 100%);
}
.shop-section--coins {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.shop-section--ad {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background:
    radial-gradient(circle at 14% 32%, rgba(184, 158, 255, 0.18), transparent 18%),
    linear-gradient(135deg, #fff4dd 0%, #fff9ef 100%);
  box-shadow: 0 16px 34px rgba(228, 170, 121, 0.14);
}
.shop-section-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.shop-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 16px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  color: white;
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(255, 89, 143, 0.2);
}
.shop-badge svg {
  width: 16px;
  height: 16px;
  stroke-width: 3;
  fill: currentColor;
}
.shop-badge--pink {
  background: var(--grad-primary);
}
.shop-badge--violet {
  background: var(--grad-shop-action);
}
.shop-section-title {
  font-family: var(--ff-display);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #0f3558;
}
.shop-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.shop-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(15, 53, 88, 0.92);
  font-family: var(--ff-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.32;
}
.shop-benefits li::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  background: url("assets/images/shop-ref/benefit-check-pink.png") center / contain no-repeat;
}
.shop-benefits svg {
  width: 18px;
  height: 18px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6e98, #ff4a80);
  color: white;
  stroke-width: 4;
  flex-shrink: 0;
  box-shadow: 0 6px 12px rgba(255, 92, 143, 0.28);
}
.shop-price-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.shop-price {
  color: #ff4c82;
  font-family: var(--ff-display);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}
.shop-old-price {
  color: rgba(76, 103, 131, 0.55);
  font-family: var(--ff-body);
  font-size: 17px;
  font-weight: 800;
  text-decoration: line-through;
}
.shop-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.shop-hero-visual {
  position: relative;
  min-height: 286px;
}
.shop-spark,
.shop-heart,
.shop-crown-visual,
.shop-cushion,
.coin-pack-stack,
.coin-pack-shine,
.shop-ad-icon,
.shop-weekly-calendar,
.shop-weekly-infinity {
  position: absolute;
  display: block;
}
.shop-spark {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.92);
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}
.shop-spark--1 {
  top: 16px;
  right: 76px;
}
.shop-spark--2 {
  top: 58px;
  right: 20px;
  width: 10px;
  height: 10px;
}
.shop-heart {
  display: grid;
  place-items: center;
  color: #ffb048;
}
.shop-heart svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke-width: 2.2;
}
.shop-heart--1 {
  top: 48px;
  left: 28px;
  transform: rotate(-14deg);
}
.shop-heart--2 {
  top: 118px;
  left: 12px;
  transform: rotate(14deg);
}
.shop-cushion {
  inset: auto 14px 8px auto;
  width: 230px;
  height: 138px;
  border-radius: 40px;
  background: linear-gradient(180deg, #ffbfd0, #ff8aac 72%, #ff7ca3 100%);
  box-shadow:
    0 24px 34px rgba(242, 134, 172, 0.24),
    inset 0 -14px 24px rgba(187, 44, 101, 0.12),
    inset 0 14px 18px rgba(255, 255, 255, 0.42);
}
.shop-cushion::before,
.shop-cushion::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 34px;
  border: 3px solid rgba(255, 198, 79, 0.75);
}
.shop-cushion::after {
  inset: auto 24px 18px 24px;
  height: 10px;
  border-width: 0 0 4px;
  border-radius: 0;
}
.shop-cushion-core {
  position: absolute;
  inset: 14px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.32), transparent 28%),
    radial-gradient(circle at 64% 62%, rgba(255, 255, 255, 0.16), transparent 30%);
}
.shop-cushion-tassel {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd884, #dd9519);
  box-shadow: 0 8px 12px rgba(180, 116, 18, 0.26);
}
.shop-cushion-tassel::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  width: 8px;
  height: 18px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #efbf57, #c57d18);
}
.shop-cushion-tassel--tl { left: 10px; top: -2px; }
.shop-cushion-tassel--tr { right: 10px; top: -2px; }
.shop-cushion-tassel--bl { left: 10px; bottom: -8px; }
.shop-cushion-tassel--br { right: 10px; bottom: -8px; }
.shop-crown-visual {
  left: 74px;
  top: 18px;
  width: 162px;
  height: 118px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 42%),
    linear-gradient(135deg, #ffcc57 0%, #ffad2c 52%, #de7f0d 100%);
  box-shadow:
    0 20px 28px rgba(205, 120, 20, 0.22),
    inset 0 8px 14px rgba(255, 248, 223, 0.42),
    inset 0 -14px 16px rgba(160, 83, 0, 0.16);
  transform: rotate(12deg);
  clip-path: polygon(7% 62%, 15% 24%, 29% 48%, 41% 14%, 50% 44%, 62% 8%, 72% 44%, 84% 20%, 92% 62%, 88% 86%, 12% 86%);
}
.shop-crown-visual svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 112px;
  height: 112px;
  color: rgba(255, 232, 165, 0.72);
  stroke-width: 1.8;
}
.shop-crown-gem {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #ff7cbc, #e3337d);
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 3px;
  box-shadow: 0 0 0 3px rgba(255, 226, 167, 0.55);
}
.shop-weekly-visual {
  position: relative;
  min-height: 176px;
}
.shop-weekly-cloud {
  position: absolute;
  bottom: 18px;
  left: 8px;
  width: 72px;
  height: 24px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.8);
  filter: blur(0.2px);
}
.shop-weekly-cloud::before,
.shop-weekly-cloud::after {
  content: "";
  position: absolute;
  bottom: 8px;
  background: inherit;
  border-radius: 50%;
}
.shop-weekly-cloud::before {
  left: 10px;
  width: 28px;
  height: 28px;
}
.shop-weekly-cloud::after {
  left: 30px;
  width: 34px;
  height: 34px;
}
.shop-weekly-cloud--2 {
  left: 94px;
  bottom: 10px;
  width: 56px;
  opacity: 0.86;
}
.shop-weekly-infinity {
  left: 8px;
  top: 20px;
  width: 148px;
  height: 102px;
  color: #8c5cff;
  filter: drop-shadow(0 18px 24px rgba(140, 92, 255, 0.22));
}
.shop-weekly-infinity svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.8;
}
.shop-weekly-calendar {
  right: 4px;
  bottom: 16px;
  width: 88px;
  height: 96px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f8f5ff);
  box-shadow: 0 18px 26px rgba(140, 92, 255, 0.18);
}
.shop-weekly-calendar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 28px;
  border-radius: 24px 24px 14px 14px;
  background: linear-gradient(135deg, #ab7aff, #825bff);
}
.shop-weekly-rings,
.shop-weekly-rings::before {
  content: "";
  position: absolute;
  top: 10px;
  width: 10px;
  height: 16px;
  border: 4px solid #7d55fb;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.shop-weekly-rings {
  left: 18px;
}
.shop-weekly-rings::before {
  left: 32px;
}
.shop-weekly-date {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-top: 18px;
  font-family: var(--ff-display);
  font-size: 54px;
  font-weight: 900;
  color: #835aff;
}
.shop-section-cta {
  position: relative;
  z-index: 1;
  min-height: 72px;
  padding: 0 30px;
  border-radius: var(--r-pill);
  background: var(--grad-shop-action);
  color: white;
  font-family: var(--ff-body);
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 18px 28px rgba(129, 87, 255, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: end;
  justify-self: stretch;
}
.shop-section-cta svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke-width: 2.2;
}
.shop-section-cta--soft {
  min-height: 66px;
  justify-self: end;
  padding-inline: 40px;
  background: var(--grad-shop-action);
  color: #fff;
  box-shadow: 0 16px 26px rgba(129, 87, 255, 0.22);
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.coin-pack-card {
  min-width: 0;
  min-height: 278px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 16px 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 210, 145, 0.6), transparent 34%),
    linear-gradient(180deg, #fffaf3 0%, #fff6eb 100%);
  border-radius: 30px;
  box-shadow: 0 18px 38px rgba(228, 170, 121, 0.14);
  color: #0f3558;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.coin-pack-card:active {
  transform: scale(0.97);
  box-shadow: none;
}
.coin-pack-name {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}
.coin-pack-name small {
  font-size: 0.88em;
  font-weight: 800;
}
.coin-pack-visual {
  position: relative;
  width: 100%;
  height: 132px;
}
.coin-pack-price {
  width: 100%;
  padding: 14px 10px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, #ffffff, #fff8f2);
  color: #ff4c82;
  font-family: var(--ff-body);
  font-size: 18px;
  font-weight: 800;
  box-shadow: inset 0 -2px 5px rgba(255, 211, 146, 0.28);
}
.coin-pack-stack {
  border-radius: 50% / 24%;
  background:
    linear-gradient(180deg, #fff4c7 0%, #ffc341 18%, #ffb331 44%, #d97706 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 245, 192, 0.9),
    inset 0 -3px 0 rgba(152, 78, 3, 0.3),
    0 10px 16px rgba(207, 130, 24, 0.18);
}
.coin-pack-stack::before,
.coin-pack-stack::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: inherit;
}
.coin-pack-stack::before {
  top: 14%;
  width: 62%;
  height: 24%;
  background: rgba(255, 244, 196, 0.7);
}
.coin-pack-stack::after {
  bottom: 12%;
  width: 58%;
  height: 20%;
  background: rgba(210, 122, 11, 0.18);
}
.coin-pack-stack--main {
  left: 50%;
  bottom: 10px;
  width: 84px;
  height: 102px;
  transform: translateX(-50%);
}
.coin-pack-stack--side {
  bottom: 6px;
  width: 54px;
  height: 54px;
}
.coin-pack-stack--side-a {
  left: 14px;
}
.coin-pack-stack--side-b {
  right: 12px;
}
.coin-pack-pile--small .coin-pack-stack--side-b,
.coin-pack-pile--medium .coin-pack-stack--side-b {
  display: none;
}
.coin-pack-pile--small .coin-pack-stack--main {
  width: 70px;
  height: 88px;
}
.coin-pack-pile--small .coin-pack-stack--side-a {
  left: 22px;
  width: 46px;
  height: 46px;
}
.coin-pack-pile--medium .coin-pack-stack--main {
  width: 78px;
  height: 96px;
}
.coin-pack-pile--large .coin-pack-stack--main {
  width: 88px;
  height: 108px;
}
.coin-pack-pile--large .coin-pack-stack--side-a {
  left: 6px;
  width: 58px;
  height: 58px;
}
.coin-pack-pile--large .coin-pack-stack--side-b {
  right: 6px;
  width: 62px;
  height: 70px;
}
.coin-pack-shine {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #ffd35a, #fff4be);
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
}
.coin-pack-shine--1 {
  left: 18px;
  top: 22px;
}
.coin-pack-shine--2 {
  right: 16px;
  top: 34px;
}
.shop-ad-icon {
  position: relative;
  width: 96px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #9f74ff, #7c55ff);
  box-shadow: 0 18px 30px rgba(132, 88, 255, 0.22);
}
.shop-ad-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffc84a, #ffab26);
  box-shadow: 0 10px 16px rgba(223, 142, 20, 0.24);
}
.shop-ad-icon svg {
  position: absolute;
  left: 28px;
  top: 21px;
  width: 28px;
  height: 28px;
  color: white;
  fill: currentColor;
}
.shop-ad-icon b {
  position: absolute;
  right: 5px;
  bottom: 7px;
  z-index: 1;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 18px;
  font-weight: 900;
}
.shop-ad-banner {
  width: auto;
  text-align: left;
}
.shop-ad-copy {
  flex: 1;
  min-width: 0;
}
.shop-ad-copy .shop-section-title {
  display: block;
  font-size: 24px;
}
.shop-section-desc,
.shop-ad-copy .shop-section-desc {
  display: block;
  margin-top: 8px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.36;
  color: rgba(61, 80, 107, 0.72);
}
.shop-ad-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 0 20px 0 44px;
  border-radius: var(--r-pill);
  background: var(--grad-shop-action);
  color: white;
  font-family: var(--ff-body);
  font-size: 17px;
  font-weight: 850;
  box-shadow: 0 16px 28px rgba(129, 87, 255, 0.24);
  flex-shrink: 0;
  text-align: center;
  line-height: 1.15;
  box-sizing: border-box;
}
.shop-ad-cta-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}
.shop-ad-cta-icon svg {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.shop-ad-loader { display: none !important; }

/* Loading State */
.shop-ad-banner.is-loading {
  opacity: 0.8;
}

.shop-ad-banner.is-loading .shop-ad-play {
  display: none !important;
}

.shop-ad-banner.is-loading .shop-ad-loader {
  display: block !important;
  animation: shopAdSpin 0.9s linear infinite;
}

@keyframes shopAdSpin {
  to { transform: rotate(360deg); }
}
.shop-ad-banner:disabled {
  opacity: 0.68;
  cursor: default;
}

@media (max-width: 360px) {
  .shop-layout { padding-inline: 14px; }
  .shop-section--full-access {
    padding-inline: 18px;
  }
  .shop-section--weekly {
    padding-inline: 18px;
  }
  .shop-section-cta--soft {
    min-height: 58px;
    padding-inline: 26px;
  }
  .shop-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .shop-section--full-access {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .shop-hero-visual {
    min-height: 248px;
  }
  .shop-section-cta {
    justify-self: stretch;
  }
  .shop-section--weekly {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .shop-section-cta--soft {
    justify-self: stretch;
  }
  .shop-grid {
    grid-template-columns: 1fr;
  }
  .coin-pack-card {
    min-height: 238px;
  }
  .shop-section--ad {
    flex-direction: column;
    align-items: stretch;
  }
  .shop-ad-cta {
    width: 100%;
  }
}

/* Final shop layout aligned to reference */
.shop-layout {
  gap: 16px;
  padding: 0 0 max(var(--safe-bottom), 8px);
}
#screen-shop .scroll-area {
  padding-bottom: 0;
}
.shop-section {
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(226, 180, 128, 0.17);
}
.shop-section--full-access,
.shop-section--weekly {
  overflow: hidden;
}
.shop-section--full-access {
  display: block;
  min-height: 223px;
  padding: 12px 16px 12px;
  background:
    radial-gradient(circle at 26% 12%, rgba(255, 255, 255, 0.92), transparent 24%),
    radial-gradient(circle at 82% 74%, rgba(255, 210, 221, 0.32), transparent 26%),
    linear-gradient(135deg, #fff5ea 0%, #ffe9c8 48%, #fff2e8 100%);
}
.shop-hero-copy {
  position: relative;
  z-index: 2;
  width: 188px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.shop-section--full-access .shop-section-copy {
  position: static;
  padding-right: 0;
}
.shop-section--full-access .shop-badge {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  margin-bottom: 0;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 9.5px;
  transform: none;
  box-shadow: 0 8px 16px rgba(255, 83, 137, 0.22);
}
.shop-section--full-access .shop-section-title {
  margin-top: 38px;
  font-size: 22px;
  line-height: 1.02;
  letter-spacing: 0;
  font-family: var(--ff-body);
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}
.shop-section--full-access .shop-benefits {
  gap: 7px;
  margin-top: 14px;
}
.shop-section--full-access .shop-benefits li {
  gap: 7px;
  font-size: 10.5px;
  font-family: var(--ff-body);
  font-weight: 700;
  line-height: 1.22;
}
.shop-section--full-access .shop-benefits li::before {
  flex-basis: 15px;
  width: 15px;
  height: 15px;
}
.shop-section--full-access .shop-benefits svg {
  display: none;
}
.shop-section--full-access .shop-price-row {
  margin-top: auto;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  padding-bottom: 13px;
  max-width: 150px;
}
.shop-section--full-access .shop-price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 29px;
  font-family: var(--ff-body);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--clr-primary);
}
.shop-price-value {
  font-weight: 700;
}
.shop-price-currency {
  font-size: 0.58em;
  font-weight: 650;
  margin-left: 1px;
}
.shop-section--full-access .shop-old-price {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-size: 16px;
  line-height: 1;
  color: #9aa2ae;
  font-weight: 500;
  letter-spacing: 0;
}
.shop-old-price-currency {
  font-size: 0.78em;
  font-weight: 500;
}
.shop-hero-visual {
  position: absolute;
  left: 50.63%;
  top: 0;
  width: 49.37%;
  height: 76.45%;
  min-height: 0;
  display: block;
  z-index: 1;
  pointer-events: none;
}
.shop-visual-img {
  display: block;
  width: 100%;
  height: auto;
}
.shop-visual-img--hero {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  transform: none;
}
.shop-section--full-access .shop-section-cta {
  position: absolute;
  right: 17px;
  bottom: 15px;
  width: 180px;
  min-height: 38px;
  padding-inline: 14px;
  border-radius: 14px;
  font-size: 15px;
  background: var(--grad-primary);
  box-shadow: 0 12px 24px rgba(255, 74, 128, 0.18);
  z-index: 2;
}
.shop-section--full-access .shop-section-cta svg {
  width: 21px;
  height: 21px;
}
.shop-section--weekly {
  display: block;
  min-height: 138px;
  padding: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(191, 155, 255, 0.18), transparent 22%),
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.82), transparent 18%),
    linear-gradient(135deg, #eee4ff 0%, #f4efff 52%, #f8f2ff 100%);
}
.shop-weekly-visual {
  position: absolute;
  left: 12px;
  top: 22px;
  width: 170px;
  height: 112px;
  min-height: 0;
  display: block;
}
.shop-visual-img--weekly {
  width: 100%;
  max-width: none;
  transform: none;
}
.shop-section--weekly .shop-section-copy {
  position: static;
  margin-left: 0;
  margin-right: 0;
  padding-top: 0;
  z-index: 2;
}
.shop-section--weekly .shop-badge {
  position: absolute;
  left: 16px;
  top: 14px;
  z-index: 5;
  margin-bottom: 0;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 9.5px;
  box-shadow: 0 8px 16px rgba(136, 88, 255, 0.2);
}
.shop-section--weekly .shop-section-title {
  position: absolute;
  left: 181px;
  top: 19px;
  max-width: 178px;
  overflow: visible;
  font-size: 15px;
  line-height: 1.02;
  font-family: var(--ff-body);
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}
.shop-section--weekly .shop-benefits {
  position: absolute;
  left: 198px;
  top: 50px;
  width: 176px;
  gap: 4px;
  margin-top: 0;
}
.shop-section--weekly .shop-benefits li {
  gap: 7px;
  font-size: 9px;
  line-height: 1.22;
  max-width: 176px;
  overflow: visible;
  white-space: nowrap;
}
.shop-section--weekly .shop-benefits li::before {
  flex-basis: 14px;
  width: 14px;
  height: 14px;
  background-image: url("assets/images/shop-ref/benefit-check-violet.png");
}
.shop-section--weekly .shop-benefits span {
  display: block;
  max-width: 150px;
  overflow: visible;
  white-space: nowrap;
}
.shop-section--weekly .shop-benefits svg {
  display: none;
}
.shop-section--weekly .shop-price-row {
  position: absolute;
  left: 181px;
  bottom: 16px;
  margin-top: 0;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.shop-section--weekly .shop-price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 22px;
  font-family: var(--ff-body);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--clr-primary);
}
.shop-section--weekly .shop-old-price {
  font-size: 14px;
  line-height: 1;
  color: rgba(94, 82, 132, 0.54);
  font-weight: 700;
}
.shop-section--weekly .shop-section-cta {
  position: absolute;
  right: 12px;
  bottom: 16px;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 14px;
  background: var(--grad-shop-action);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(129, 87, 255, 0.28);
  z-index: 2;
}
.shop-section--weekly .shop-section-cta svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
}
.shop-section--weekly .shop-price-row {
  right: 62px;
}
.shop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.coin-pack-card {
  position: relative;
  min-height: 143px;
  gap: 6px;
  padding: 12px 9px 9px;
  border-radius: 15px;
  box-shadow: 0 14px 28px rgba(226, 180, 128, 0.16);
}
.coin-pack-multiplier {
  position: absolute;
  top: 34px;
  right: 4px;
  z-index: 2;
  min-width: 52px;
  padding: 3px 5px 4px;
  border: 1px solid rgba(129, 87, 255, 0.22);
  border-radius: 8px 8px 8px 3px;
  background: linear-gradient(145deg, #ffffff, #f1eaff);
  color: #6f45d9;
  font-family: var(--ff-body);
  line-height: 1;
  text-align: center;
  transform: rotate(3deg);
  box-shadow: 0 6px 12px rgba(113, 72, 208, 0.16);
  pointer-events: none;
}
.coin-pack-multiplier strong,
.coin-pack-multiplier small {
  display: block;
}
.coin-pack-multiplier strong {
  font-size: 12px;
  font-weight: 900;
}
.coin-pack-multiplier small {
  margin-top: 2px;
  font-size: 7px;
  font-weight: 800;
  white-space: nowrap;
}
.shop-free-divider {
  height: 1px;
  margin: 0 18px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(129, 87, 255, 0.42) 22%,
    rgba(129, 87, 255, 0.42) 78%,
    transparent
  );
}
.coin-pack-name {
  font-size: 14px;
  line-height: 1.1;
  font-family: var(--ff-body);
  font-weight: 900;
}
.coin-pack-name small {
  display: inline;
  margin-top: 0;
  font-size: 0.78em;
}
.coin-pack-visual {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.coin-pack-art {
  max-width: 90%;
  max-height: 100%;
  object-fit: contain;
}
.coin-pack-price {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  width: 86%;
  min-height: 26px;
  padding: 4px 6px;
  border-radius: 7px;
  font-size: 15px;
  font-family: var(--ff-body);
  font-weight: 700;
  line-height: 1;
  color: var(--clr-primary);
}
.coin-pack-price-value {
  font-weight: 700;
}
.coin-pack-price-currency {
  font-size: 0.72em;
  font-weight: 650;
  margin-left: 1px;
}
.shop-section--ad {
  display: grid;
  min-height: 78px;
  grid-template-columns: 72px minmax(0, 1fr) 52px;
  gap: 10px;
  padding: 8px 10px 8px 6px;
  align-items: center;
}
.shop-ad-icon {
  position: relative;
  width: 72px;
  height: 60px;
  flex: 0 0 72px;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.shop-ad-icon::after,
.shop-ad-icon b,
.shop-ad-icon svg {
  display: none;
}
.shop-visual-img--ad {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto;
  object-fit: contain;
}
.shop-ad-copy {
  min-width: 0;
}
.shop-ad-copy .shop-section-title {
  font-size: 14px;
  line-height: 1.08;
  font-family: var(--ff-body);
  font-weight: 800;
  white-space: normal;
  overflow-wrap: anywhere;
}
.shop-section-desc,
.shop-ad-copy .shop-section-desc {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.22;
}
.shop-ad-cta {
  position: relative;
  justify-self: end;
  width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 14px;
  font-size: 0;
  line-height: 0;
  color: #ffffff;
  background: var(--grad-shop-action);
  box-shadow: 0 12px 22px rgba(129, 87, 255, 0.2);
  overflow: hidden;
}
.shop-ad-cta svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.shop-ad-cta-icon {
  position: static;
  transform: none !important;
  width: 18px;
  height: 18px;
}
.shop-ad-play {
  transform: translateX(1px);
}
.shop-ad-cta::before {
  content: none;
}
.shop-section--bug-report {
  min-height: 78px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 6px;
  border: 0;
  background: linear-gradient(135deg, #fff8f1 0%, #fff2e8 100%);
  box-shadow: none;
}
.shop-bug-report-icon {
  position: relative;
  width: 72px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  color: #ff4f86;
  background: none;
  box-shadow: none;
}
.shop-bug-report-icon::before {
  content: '';
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 7px 16px rgba(255, 75, 131, 0.1);
}
.shop-bug-report-icon svg {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  stroke-width: 2.15;
}
.shop-bug-report-copy {
  min-width: 0;
}
.shop-bug-report-copy .shop-section-title,
.shop-bug-report-copy .shop-section-desc {
  display: block;
}
.shop-bug-report-copy .shop-section-title {
  color: #0f3558;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.08;
  white-space: normal;
  overflow-wrap: anywhere;
}
.shop-bug-report-copy .shop-section-desc {
  margin-top: 4px;
  color: rgba(61, 80, 107, 0.72);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.22;
}
.shop-bug-report-cta {
  position: relative;
  justify-self: end;
  width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: var(--grad-shop-action);
  box-shadow: 0 12px 22px rgba(129, 87, 255, 0.2);
  font-size: 0;
  font-weight: 850;
  line-height: 0;
  box-sizing: border-box;
}
.shop-bug-report-cta:active {
  transform: scale(0.96);
}
.shop-bug-report-cta svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.shop-bug-report-cta .telegram-icon {
  transform: none;
  stroke: none !important;
  stroke-width: 0 !important;
}
.shop-thanks {
  text-align: center;
  padding: 8px 18px 4px;
  color: #153653;
}
.shop-thanks-line {
  width: 62px;
  height: 3px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4d84, #a46dff);
}
.shop-thanks strong {
  display: block;
  color: #123455;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.18;
}
.shop-thanks p {
  max-width: 340px;
  margin: 6px auto 0;
  color: rgba(54, 76, 104, 0.66);
  font-family: var(--ff-body);
  font-size: 11.4px;
  font-weight: 600;
  line-height: 1.45;
}
.shop-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 14px;
  padding: 10px 18px 4px;
}
.shop-footer-link {
  min-height: 40px;
  padding: 8px 6px;
  color: rgba(54, 76, 104, 0.55);
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Exact reference skin: bitmap card art from the provided mockup, with live hit-zones kept in place. */
.shop-section--full-access {
  height: 244px;
  border: 0;
  background: url("assets/images/shop-ref/exact/full-access-bg.png") center / 100% 100% no-repeat;
  box-shadow: none;
}
.shop-section--weekly {
  height: 151px;
  border: 0;
  background: url("assets/images/shop-ref/exact/weekly-bg.png") center / 100% 100% no-repeat;
  box-shadow: none;
}
.shop-section--full-access,
.shop-section--weekly {
  width: 100%;
  text-align: left;
  transition: transform 0.15s var(--ease-spring);
}
.shop-section--full-access:active,
.shop-section--weekly:active {
  transform: scale(0.98);
}
.coin-pack-card {
  min-height: 143px;
  border: 0;
  box-shadow: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 214, 162, 0.42), transparent 36%),
    linear-gradient(180deg, #fffaf3 0%, #fff4e8 100%);
}
.coin-pack-card:nth-child(1) {
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 221, 167, 0.34), transparent 30%),
    linear-gradient(180deg, #fffaf3 0%, #fff4e8 100%);
}
.coin-pack-card:nth-child(2) {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 220, 160, 0.32), transparent 30%),
    linear-gradient(180deg, #fffaf3 0%, #fff4e8 100%);
}
.coin-pack-card:nth-child(3) {
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 218, 156, 0.34), transparent 32%),
    linear-gradient(180deg, #fffaf3 0%, #fff4e8 100%);
}
.shop-section--ad {
  height: 78px;
  min-height: 0;
  border: 0;
  background:
    radial-gradient(circle at 86% 50%, rgba(255, 224, 185, 0.34), transparent 28%),
    linear-gradient(180deg, #fffaf3 0%, #fff4e8 100%);
  box-shadow: none;
}
.shop-section--full-access .shop-section-cta,
.shop-section--weekly .shop-section-cta,
.coin-pack-price,
.shop-ad-cta {
  box-shadow: 0 12px 24px rgba(129, 87, 255, 0.18);
}
@media (max-width: 820px) {
  .shop-section--full-access {
    height: 244px;
  }
  .shop-hero-visual {
    min-height: 0;
  }
  .shop-section--weekly {
    height: 151px;
  }
  .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .coin-pack-card {
    min-height: 143px;
  }
}
@media (max-width: 390px) {
  .shop-section--full-access .shop-section-title {
    font-size: 22px;
  }
  .shop-section--weekly .shop-section-title {
    font-size: 15px;
  }
  .coin-pack-name {
    font-size: 14px;
  }
  .coin-pack-price {
    font-size: 15px;
  }
}

/* ══════════════════════════════════════════════════════════
   RESULTS SCREEN
══════════════════════════════════════════════════════════ */
.results-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 72% 50% at 50% 38%,
    hsla(342, 70%, 88%, 0.9), transparent);
  pointer-events: none;
}
.results-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 28px calc(var(--safe-bottom) + 32px);
  gap: 14px;
  text-align: center;
  position: relative;
}
.results-emoji {
  font-size: 76px;
  line-height: 1;
  animation: resultsBounce 0.75s var(--ease-spring) 0.15s both;
}
.results-title {
  font-family: var(--ff-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--clr-ink);
  animation: fadeUp 0.45s var(--ease-out) 0.35s both;
}
.results-subtitle {
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--clr-ink-mid);
  animation: fadeUp 0.45s var(--ease-out) 0.48s both;
}
.results-reward {
  background: var(--clr-surface);
  border-radius: var(--r-lg);
  padding: 14px 22px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  animation: fadeUp 0.45s var(--ease-out) 0.58s both;
}
.results-reward-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.results-reward-label {
  font-family: var(--ff-body);
  font-weight: 300;
  color: var(--clr-ink-mid);
  font-size: 14px;
}
.results-reward-value {
  font-family: var(--ff-display);
  font-size: 22px;
  color: var(--clr-warm);
}
.results-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  animation: fadeUp 0.45s var(--ease-out) 0.68s both;
}

/* ══════════════════════════════════════════════════════════
   PILL BUTTONS (Results & Modal)
══════════════════════════════════════════════════════════ */
.pill-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--r-lg);
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.15s var(--ease-spring), opacity 0.15s;
}
.pill-btn:active { transform: scale(0.97); opacity: 0.85; }

.pill-btn--primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 6px 20px hsla(342, 80%, 60%, 0.38);
}
.pill-btn--outline {
  background: transparent;
  border: 2px solid var(--clr-ink-faint);
  color: var(--clr-ink-mid);
}

/* ══════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: hsla(240, 20%, 10%, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  animation: modalBgIn 0.18s ease-out forwards;
}
.modal-overlay[hidden] { display: none; }

.modal-box {
  background: var(--clr-surface);
  border-radius: 26px;
  padding: 30px 26px 26px;
  width: 100%;
  max-width: 350px;
  box-shadow: 0 36px 80px hsla(0,0%,0%,0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  will-change: transform, opacity;
  animation: modalBoxIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.modal-icon { font-size: 50px; line-height: 1; }
.modal-title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--clr-ink);
}
.modal-message {
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--clr-ink-mid);
  text-align: center;
  line-height: 1.55;
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}
.modal-btn {
  width: 100%;
  padding: 15px;
  border-radius: var(--r-md);
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 700;
  transition: transform 0.15s var(--ease-spring), opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.modal-btn:active { transform: scale(0.97); opacity: 0.85; }
.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.modal-btn--primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 4px 14px hsla(342, 80%, 60%, 0.38);
}
.modal-btn--cancel {
  background: var(--clr-ink-faint);
  color: var(--clr-ink-mid);
}

/* ══════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 86px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  max-width: 380px;
  width: 90%;
}
.toast {
  background: var(--clr-ink);
  color: white;
  border-radius: var(--r-pill);
  padding: 11px 20px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 14px;
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.35;
  box-shadow: 0 8px 28px hsla(0,0%,0%,0.22);
  animation: toastIn 0.32s var(--ease-spring) forwards;
}
.toast--success { background: var(--clr-green); }
.toast--error   { background: hsl(0, 72%, 52%); }
.toast--coin    { background: var(--clr-warm); }
.toast.hiding   { animation: toastOut 0.24s var(--ease-smooth) forwards; }

/* ══════════════════════════════════════════════════════════
   CATEGORY BADGE THEMES
══════════════════════════════════════════════════════════ */
.badge--life   { background: hsla(342,65%,93%,0.9); color: hsl(342,75%,42%); border-color: hsla(342,55%,78%,0.5); }
.badge--warmup { background: hsla(28, 80%,92%,0.9); color: hsl(28, 78%,42%); border-color: hsla(28, 60%,78%,0.5); }
.badge--think  { background: hsla(270,55%,93%,0.9); color: hsl(270,55%,46%); border-color: hsla(270,45%,80%,0.5); }
.badge--deep   { background: hsla(210,65%,92%,0.9); color: hsl(210,65%,42%); border-color: hsla(210,50%,80%,0.5); }
.badge--fun    { background: hsla(150,50%,92%,0.9); color: hsl(150,52%,38%); border-color: hsla(150,45%,78%,0.5); }
.badge--love   { background: hsla(0,  70%,92%,0.9); color: hsl(0,  68%,46%); border-color: hsla(0,  55%,80%,0.5); }
.badge--default{ background: hsla(342,45%,93%,0.9); color: hsl(342,55%,46%); border-color: hsla(342,40%,82%,0.5); }
.badge--sunrise{ background: hsla(27, 92%,90%,0.9); color: hsl(24,80%,36%); border-color: hsla(27,70%,72%,0.5); }
.badge--sky    { background: hsla(199,90%,93%,0.9); color: hsl(201,80%,34%); border-color: hsla(199,70%,78%,0.5); }
.badge--forest { background: hsla(141,60%,92%,0.9); color: hsl(139,65%,30%); border-color: hsla(141,50%,76%,0.5); }
.badge--berry  { background: hsla(331,76%,92%,0.9); color: hsl(332,72%,39%); border-color: hsla(331,60%,78%,0.5); }
.badge--lemon  { background: hsla(48,94%,88%,0.9); color: hsl(38,82%,31%); border-color: hsla(48,70%,70%,0.5); }
.badge--aqua   { background: hsla(174,70%,92%,0.9); color: hsl(176,70%,30%); border-color: hsla(174,55%,75%,0.5); }
.badge--orchid { background: hsla(263,85%,93%,0.9); color: hsl(262,68%,42%); border-color: hsla(263,60%,78%,0.5); }
.badge--sand   { background: hsla(34,52%,91%,0.9); color: hsl(22,65%,32%); border-color: hsla(34,42%,75%,0.5); }
.badge--slate  { background: hsla(214,32%,91%,0.9); color: hsl(215,32%,32%); border-color: hsla(214,24%,76%,0.5); }

/* ══════════════════════════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════
   CARD GRADIENT THEMES — one per question category
   Each category gets a unique pastel gradient background
══════════════════════════════════════════════════════════ */
.card--life    { background-color: #ffe6e6; }
.card--warmup  { background-color: #fff0db; }
.card--think   { background-color: #f1e6ff; }
.card--deep    { background-color: #e6f4ff; }
.card--fun     { background-color: #e6ffe6; }
.card--love    { background-color: #ffe6eb; }
.card--default { background-color: #f5e6ff; }
.card--sunrise { background-color: #ffe0bd; }
.card--sky { background-color: #dff3ff; }
.card--forest { background-color: #dff7e8; }
.card--berry { background-color: #f9d7e8; }
.card--lemon { background-color: #fff2b8; }
.card--aqua { background-color: #d8f7f3; }
.card--orchid { background-color: #eadcff; }
.card--sand { background-color: #f4eadb; }
.card--slate { background-color: #e2e8f0; }

@keyframes floatIllustration {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes coinPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.28); }
  70%  { transform: scale(0.94); }
  100% { transform: scale(1); }
}

@keyframes enterRight {
  from { opacity: 0; transform: translateX(55px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}

@keyframes enterLeft {
  from { opacity: 0; transform: translateX(-55px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}

@keyframes resultsBounce {
  from { opacity: 0; transform: scale(0.2) rotate(-20deg); }
  65%  { transform: scale(1.18) rotate(8deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes modalBgIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalBoxIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px) scale(0.88); }
  to   { opacity: 1; transform: none; }
}

@keyframes toastOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(6px) scale(0.94); }
}
@keyframes topMenuIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════
   DESKTOP: show as phone frame
   ══════════════════════════════════════════════════════════ */
@media (min-width: 440px) {
  body {
    background: hsl(238, 18%, 10%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
  }
  #app {
    height: min(100vh, 900px);
    border-radius: 36px;
  }
}

/* ══════════════════════════════════════════════════════════
   ADMIN TESTING TOOLS MENU STYLES
   ══════════════════════════════════════════════════════════ */
.admin-testing-btn {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: opacity 0.3s, transform 0.2s, background-color 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.admin-testing-btn:not([hidden]) {
  display: flex;
}
.admin-testing-btn:hover {
  background: rgba(239, 68, 68, 0.85);
  transform: scale(1.05);
}
.admin-testing-btn:active {
  transform: scale(0.95);
}
.admin-testing-btn i {
  width: 22px;
  height: 22px;
}

.admin-testing-dialog {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(20, 20, 28, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  border-radius: 24px;
  padding: 0;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 10000;
  
  opacity: 0;
  transform: scale(0.92) translateY(20px);
  transition: opacity 0.3s, transform 0.3s, display 0.3s allow-discrete, overlay 0.3s allow-discrete;
}

.admin-testing-dialog[open] {
  opacity: 1;
  transform: scale(1) translateY(0);

  @starting-style {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
}

.admin-testing-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0);
  transition: display 0.3s allow-discrete, overlay 0.3s allow-discrete, background-color 0.3s ease-out;
}

.admin-testing-dialog[open]::backdrop {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  
  @starting-style {
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-testing-dialog {
    transform: none !important;
    transition-duration: 0.1s;
  }
  .admin-testing-dialog[open] {
    @starting-style {
      transform: none !important;
    }
  }
}

.admin-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.admin-dialog-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  font-family: var(--ff-display);
}

.admin-close-btn {
  color: rgba(255, 255, 255, 0.6) !important;
  background: transparent !important;
  border: none !important;
  width: 32px;
  height: 32px;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-close-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.admin-dialog-content {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-dialog-content::-webkit-scrollbar {
  width: 6px;
}
.admin-dialog-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}
.admin-dialog-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.admin-fieldset {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0;
  background: rgba(255, 255, 255, 0.01);
}

.admin-fieldset legend {
  font-size: 13px;
  font-weight: 700;
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--ff-display);
}

.admin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.admin-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  padding: 6px 10px;
  font-size: 14px;
  outline: none;
  width: 80px;
  transition: border-color 0.2s;
}

.admin-input:focus {
  border-color: rgba(239, 68, 68, 0.5);
}

.admin-help-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.admin-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.admin-toggle-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.admin-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.admin-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.admin-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 24px;
}

.admin-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.admin-switch input:checked + .admin-slider {
  background-color: #ef4444;
}

.admin-switch input:focus + .admin-slider {
  box-shadow: 0 0 1px #ef4444;
}

.admin-switch input:checked + .admin-slider:before {
  transform: translateX(20px);
}

.admin-decks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-deck-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-deck-name {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
}

/* Explicit button styling for admin testing menu to prevent black text/wrong sizes */
.admin-testing-dialog .pill-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  height: auto !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background-color 0.2s, border-color 0.2s, transform 0.1s !important;
  cursor: pointer !important;
  font-family: var(--ff-display) !important;
  box-shadow: none !important;
}

.admin-testing-dialog .pill-btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.admin-testing-dialog .pill-btn:active {
  transform: scale(0.96) !important;
}

.admin-testing-dialog .pill-btn.pill-btn--outline {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.admin-testing-dialog .pill-btn.pill-btn--outline:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}

.admin-fieldset legend {
  font-size: 13px;
  font-weight: 700;
  padding: 0 8px;
  color: #ffffff !important;
  font-family: var(--ff-display);
}

.admin-toggle-label, .admin-dialog-content label {
  color: #ffffff !important;
}

/* ═══════════════════════════════════════════════════════════════
   PURCHASE SUCCESS ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */


/* 2. Button absorb pulse */
.button-absorb-pulse {
  animation: absorb-pulse 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes absorb-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* 3. Starburst Explosion */
.purchase-particle {
  position: fixed;
  left: 0; top: 0;
  pointer-events: none;
  z-index: 10005;
  border-radius: 50%;
  background: var(--clr-warm);
  box-shadow: 0 0 8px var(--clr-warm);
  animation: particle-burst var(--duration, 1.5s) cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.purchase-particle.star {
  background: #fff;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  box-shadow: none;
  border-radius: 0;
}

@keyframes particle-burst {
  0% { transform: translate(-50%, -50%) scale(0.5) rotate(0deg); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.2) rotate(var(--rot)); opacity: 0; }
}

/* 4. Floating Text */
.purchase-success-text {
  position: fixed;
  left: 0; top: 0;
  pointer-events: none;
  z-index: 10006;
  font-family: var(--ff-primary);
  font-size: 16px;
  font-weight: 700;
  color: var(--clr-ink);
  text-align: center;
  width: 260px;
  margin-left: -130px; /* center horizontally since left is 0 but translated to x */
  background: var(--clr-surface);
  padding: 12px 20px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.05);
  animation: float-up-text 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes float-up-text {
  0% { transform: translate(var(--startX), var(--startY)) scale(0.5); opacity: 0; }
  10% { transform: translate(var(--startX), calc(var(--startY) - 20px)) scale(1.1); opacity: 1; }
  20% { transform: translate(var(--startX), calc(var(--startY) - 20px)) scale(1); opacity: 1; }
  80% { transform: translate(var(--startX), calc(var(--startY) - 60px)) scale(1); opacity: 1; }
  100% { transform: translate(var(--startX), calc(var(--startY) - 80px)) scale(0.8); opacity: 0; }
}



