/* ==========================================================================
   PETALBUM — Premium Collectibles Design System
   Neon lime + violet · dark & light themes
   ========================================================================== */

:root {
  --font-display: 'Archivo Black', 'Plus Jakarta Sans', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  /* --- Dark theme (default) --- */
  --bg: #05070c;
  --bg-2: #0a0e17;
  --surface: #0e1322;
  --surface-2: #131a2e;

  --ink: #f5f1e8;
  --ink-rgb: 245, 241, 232;
  --muted: #8b93a7;
  --muted-2: #565e73;

  --accent: #a3e635;
  --accent-light: #d3ff5c;
  --accent-deep: #65a30d;
  --accent-rgb: 163, 230, 53;

  --accent-2: #7c5cff;
  --accent-2-light: #a78bfa;
  --accent-2-rgb: 124, 92, 255;

  --line: rgba(245, 241, 232, 0.08);
  --line-strong: rgba(245, 241, 232, 0.16);
  --accent-line: rgba(163, 230, 53, 0.45);

  --grad-btn: linear-gradient(135deg, var(--accent-light), var(--accent) 45%, var(--accent-deep));
  --grad-text: linear-gradient(92deg, var(--accent-light), var(--accent-2-light) 55%, var(--accent));
  --grad-text-a: var(--accent-light);
  --grad-text-b: var(--accent-2-light);
  --grad-text-c: var(--accent);

  /* Instagram gradient strips */
  --ig-gradient: linear-gradient(120deg, #feda75, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5);

  /* Pack stays dark in both themes (product shot) */
  --pack-accent: #a3e635;
  --pack-accent-2: #ffd84d;
  --pack-accent-rgb: 163, 230, 53;
  --pack-accent-2-rgb: 255, 216, 77;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

/* --- Light theme overrides --- */
html[data-theme="light"] {
  --bg: #f4f2ec;
  --bg-2: #ece9e2;
  --surface: #ffffff;
  --surface-2: #f7f5f0;

  --ink: #16181f;
  --ink-rgb: 22, 24, 31;
  --muted: #5b6375;
  --muted-2: #9aa1b3;

  --accent: #65a30d;
  --accent-light: #84cc16;
  --accent-deep: #3f6212;
  --accent-rgb: 101, 163, 13;

  --accent-2: #6d4dff;
  --accent-2-light: #8b6dff;
  --accent-2-rgb: 109, 77, 255;

  --line: rgba(22, 24, 31, 0.1);
  --line-strong: rgba(22, 24, 31, 0.18);
  --accent-line: rgba(101, 163, 13, 0.45);

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
}

/* Smooth color transition during theme switch */
html.theme-anim,
html.theme-anim * {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease,
    box-shadow 0.4s ease, opacity 0.4s ease !important;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
}

/* Film-grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

html[data-theme="light"] body::after {
  opacity: 0.04;
  mix-blend-mode: multiply;
}

::selection {
  background: var(--accent);
  color: #121408;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #26304a;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-deep);
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(22, 24, 31, 0.25);
}

html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.hidden {
  display: none !important;
}

section[id] {
  scroll-margin-top: 96px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   TYPOGRAPHY HELPERS
   ========================================================================== */

.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(var(--accent-rgb), 0.65);
}

@supports not (-webkit-text-stroke: 1px #fff) {
  .text-outline {
    color: rgba(var(--accent-rgb), 0.45);
  }
}

.gradient-text {
  background: linear-gradient(92deg, var(--grad-text-a), var(--grad-text-b) 55%, var(--grad-text-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.mono-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

html[data-theme="light"] .mono-eyebrow {
  color: var(--accent-deep);
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* ==========================================================================
   TICKER
   ========================================================================== */

.ticker {
  position: relative;
  z-index: 90;
  overflow: hidden;
  background: var(--ig-gradient);
  background-size: 250% 100%;
  animation: ig-slide 14s linear infinite;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.ticker-sep {
  color: #ffffff;
  font-size: 10px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

@keyframes ig-slide {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

html[data-theme="light"] .site-header {
  background: rgba(244, 242, 236, 0.82);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--grad-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #171103;
  box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.35);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.34em;
  color: var(--accent);
  margin-top: 4px;
}

html[data-theme="light"] .brand-tag {
  color: var(--accent-deep);
}

.main-nav {
  display: none;
  align-items: center;
  gap: 34px;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::after {
  width: 100%;
}

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

.progress-pill {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.07);
  border: 1px solid var(--accent-line);
}

.progress-pill-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.progress-pill-value {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  min-width: 58px;
  text-align: right;
}

html[data-theme="light"] .progress-pill-value {
  color: var(--accent-deep);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(var(--ink-rgb), 0.05);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: rgba(var(--accent-rgb), 0.08);
  transform: translateY(-1px);
}

/* Theme toggle icons: moon visible in dark, sun visible in light */

/* Theme toggle icons: moon visible in dark, sun visible in light */
.theme-icon-moon { display: block; }
.theme-icon-sun { display: none; }

html[data-theme="light"] .theme-icon-moon { display: none; }
html[data-theme="light"] .theme-icon-sun { display: block; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: 16px;
  padding: 15px 30px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease-out);
  text-decoration: none;
  text-transform: uppercase;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-sm {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 11px 18px;
  border-radius: 12px;
}

.btn-lg {
  font-size: 1rem;
  padding: 18px 38px;
  border-radius: 18px;
}

.btn-block {
  width: 100%;
}

.btn-accent,
.btn-primary {
  background: var(--grad-btn);
  color: #121408;
  box-shadow: 0 10px 34px rgba(var(--accent-rgb), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-accent:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(var(--accent-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  filter: brightness(1.06);
}

.btn-accent:active,
.btn-primary:active {
  transform: translateY(0);
}

.btn:disabled,
.btn:disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: saturate(0.4);
  box-shadow: none;
}

/* Hero CTA attention pulse */
@keyframes cta-pulse {
  0%, 100% {
    box-shadow: 0 10px 34px rgba(var(--accent-rgb), 0.3), 0 0 0 0 rgba(var(--accent-rgb), 0.5);
  }
  50% {
    box-shadow: 0 10px 34px rgba(var(--accent-rgb), 0.3), 0 0 0 16px rgba(var(--accent-rgb), 0);
  }
}

.hero-ctas .btn-accent:not(:disabled) {
  animation: cta-pulse 2.4s ease-in-out infinite;
}

.packs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  height: 27px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(18, 20, 8, 0.16);
  border: 1px solid rgba(18, 20, 8, 0.28);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.btn-ghost,
.btn-secondary {
  background: rgba(var(--ink-rgb), 0.04);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover,
.btn-secondary:hover {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: var(--accent-line);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(64px, 9vw, 116px) 0 56px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 620px;
  background: radial-gradient(closest-side, rgba(var(--accent-2-rgb), 0.22), transparent 70%);
  pointer-events: none;
}

html[data-theme="light"] .hero::before {
  background: radial-gradient(closest-side, rgba(var(--accent-2-rgb), 0.13), transparent 70%);
}

.hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.07);
}

html[data-theme="light"] .hero-eyebrow {
  color: var(--accent-deep);
}

.eyebrow-icon {
  width: 14px;
  height: 14px;
}

.hero-title {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 5.6rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.hero-title .line {
  display: block;
}

.hero-sub {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 560px;
  line-height: 1.7;
}

.hero-ctas {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-num .suffix {
  color: var(--accent);
  font-size: 0.68em;
}

.stat-label {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---- Pack Shrine (hero right) ---- */

.shrine {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 40px 0 10px;
}

.shrine-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, 90vw);
  height: min(460px, 90vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-2-rgb), 0.38), rgba(var(--accent-rgb), 0.2) 52%, transparent 72%);
  filter: blur(12px);
  animation: glow-pulse 5.5s ease-in-out infinite;
  pointer-events: none;
}

html[data-theme="light"] .shrine-glow {
  background: radial-gradient(circle, rgba(var(--accent-2-rgb), 0.2), rgba(var(--accent-rgb), 0.12) 52%, transparent 72%);
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.07); }
}

.shrine-wrap {
  position: relative;
  width: min(300px, 74vw);
  will-change: transform;
}

.shrine-card {
  position: absolute;
  width: 58%;
  border-radius: 16px;
  border: 2px solid var(--line-strong);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.65);
  z-index: 1;
}

html[data-theme="light"] .shrine-card {
  border: 2px solid rgba(22, 24, 31, 0.3);
  box-shadow: 0 26px 60px rgba(22, 24, 31, 0.25);
}

.shrine-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.shrine-card.card-left {
  top: 4%;
  left: -52%;
  transform: rotate(-9deg);
}

.shrine-card.card-right {
  bottom: 3%;
  right: -52%;
  transform: rotate(8deg);
}

.shrine-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  animation: hint-bounce 2.4s ease-in-out infinite;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(6px); opacity: 1; }
}

.float-chip {
  position: absolute;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 10px 15px;
  border-radius: 12px;
  background: rgba(10, 14, 23, 0.88);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  animation: float-y 6s ease-in-out infinite;
  white-space: nowrap;
}

html[data-theme="light"] .float-chip {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 30px rgba(22, 24, 31, 0.18);
  color: var(--accent-deep);
}

.chip-a {
  top: 6%;
  left: -14%;
}

.chip-b {
  bottom: 12%;
  right: -12%;
  animation-delay: 1.5s;
  color: var(--accent-2-light);
  border-color: rgba(var(--accent-2-rgb), 0.5);
}

html[data-theme="light"] .chip-b {
  color: var(--accent-2);
}

.float-chip.packs-empty {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.55);
}

html[data-theme="light"] .float-chip.packs-empty {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.5);
}

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

/* ---- The Pack (CSS art — always dark, product shot) ---- */

.pack-3d {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 300 / 440;
  border-radius: 26px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  cursor: pointer;
  border: none;
  background: none;
  color: #f5f1e8;
  transition: transform 0.4s var(--ease-out);
}

.pack-3d::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: linear-gradient(160deg, #1d1349 0%, #2c1b68 35%, #181040 70%, #261952 100%);
  border: 2.5px solid var(--pack-accent);
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.65), 0 0 48px rgba(var(--pack-accent-rgb), 0.22), inset 0 0 46px rgba(var(--accent-2-rgb), 0.24);
  transition: box-shadow 0.4s var(--ease-out);
}

.pack-3d::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 21px;
  background: repeating-linear-gradient(135deg, rgba(var(--pack-accent-rgb), 0.055) 0 14px, transparent 14px 30px);
  pointer-events: none;
}

.pack-3d:hover {
  transform: translateY(-6px);
}

.pack-3d:hover::before {
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 64px rgba(var(--pack-accent-rgb), 0.34), inset 0 0 46px rgba(var(--accent-2-rgb), 0.28);
}

.pack-3d > * {
  position: relative;
  z-index: 2;
}

.pack-shine {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.pack-shine::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -80%;
  width: 60%;
  height: 220%;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.17) 50%, transparent 70%);
  transform: rotate(18deg);
  animation: shine-sweep 3.6s var(--ease-out) infinite;
}

@keyframes shine-sweep {
  0%, 52% { left: -80%; }
  82%, 100% { left: 150%; }
}

.pack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pack-edition {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--pack-accent);
  border: 1px solid rgba(var(--pack-accent-rgb), 0.45);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(var(--pack-accent-rgb), 0.08);
}

.pack-star {
  width: 19px;
  height: 19px;
  color: var(--pack-accent-2);
  filter: drop-shadow(0 0 8px rgba(var(--pack-accent-2-rgb), 0.6));
}

.pack-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: auto 0;
}

.pack-paw {
  width: 78px;
  height: 78px;
  color: var(--pack-accent);
  opacity: 0.95;
  filter: drop-shadow(0 0 22px rgba(var(--pack-accent-rgb), 0.55));
}

.pack-brand {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.pack-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--pack-accent);
}

.pack-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(245, 241, 232, 0.78);
  border-top: 1px solid rgba(var(--pack-accent-rgb), 0.45);
  padding-top: 14px;
}

.pack-sm {
  width: min(230px, 58vw);
  padding: 18px;
  border-radius: 20px;
}

.pack-sm::before {
  border-radius: 20px;
}

.pack-sm::after {
  border-radius: 16px;
}

.pack-sm .pack-paw { width: 52px; height: 52px; }
.pack-sm .pack-brand { font-size: 1.45rem; }
.pack-sm .pack-sub { font-size: 7.5px; }
.pack-sm .pack-edition { font-size: 8px; padding: 5px 10px; }
.pack-sm .pack-foot { font-size: 7.5px; padding-top: 10px; }

.pack-static {
  cursor: default;
  pointer-events: none;
}

.pack-static:hover {
  transform: none;
}

/* Pack empty state (no packs left) */
.pack-3d.pack-empty {
  cursor: default;
}

.pack-3d.pack-empty::before {
  filter: grayscale(0.45) brightness(0.65);
  border-color: rgba(140, 140, 140, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.pack-3d.pack-empty:hover {
  transform: none;
}

.pack-3d.pack-empty:hover::before {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.pack-3d.pack-empty .pack-shine::before {
  animation: none;
}

/* ==========================================================================
   VERB MARQUEE
   ========================================================================== */

.verb-marquee {
  margin: 48px 0 8px;
  padding: 24px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.35);
  background: var(--ig-gradient);
  background-size: 250% 100%;
  animation: ig-slide 14s linear infinite;
  overflow: hidden;
  transform: rotate(-1.1deg) scale(1.02);
  box-shadow: 0 18px 60px rgba(150, 47, 191, 0.25);
}

.verb-track {
  display: flex;
  width: max-content;
  animation: verb-scroll 30s linear infinite;
}

.verb-group {
  display: flex;
  align-items: center;
}

.verb-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding-right: 30px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.verb-item.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
}

.verb-sep {
  padding-right: 30px;
  color: #ffffff;
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

@keyframes verb-scroll {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

.section-head {
  max-width: 660px;
  margin-bottom: 60px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--accent);
  text-transform: uppercase;
}

html[data-theme="light"] .section-eyebrow {
  color: var(--accent-deep);
}

.section-eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.section-sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 580px;
}

.section-sub.center {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   COLLECTIONS CAROUSEL
   ========================================================================== */

.collections {
  padding: clamp(64px, 8vw, 110px) 0 20px;
}

.collections-head {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

/* ==========================================================================
   PAPER ALBUM SPREADS
   ========================================================================== */

.album-spread {
  max-width: 1280px;
  margin: 0 auto clamp(64px, 8vw, 96px);
  padding: 0 clamp(20px, 4vw, 40px);
}

.spread-cover {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  padding: 20px 28px;
  border-radius: 20px 20px 0 0;
  position: relative;
  overflow: hidden;
}

.album-spread[data-collection="brasil"] .spread-cover { background: linear-gradient(120deg, #16a34a, #047857); }
.album-spread[data-collection="savana"] .spread-cover { background: linear-gradient(120deg, #f59e0b, #c2410c); }
.album-spread[data-collection="dinossauros"] .spread-cover { background: linear-gradient(120deg, #84cc16, #4d7c0f); }

.spread-page-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.3);
  user-select: none;
}

.spread-icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.spread-titles {
  flex: 1;
  min-width: 200px;
}

.spread-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.spread-sub {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.spread-progress {
  width: 100%;
  max-width: 330px;
}

.spread-progress .cover-progress-head {
  margin-bottom: 8px;
}

.spread-progress .mono-label {
  color: rgba(255, 255, 255, 0.85);
}

.spread-progress .mono-val {
  color: #ffffff;
}

.spread-progress .progress-track {
  height: 10px;
  background: rgba(0, 0, 0, 0.28);
}

.spread-progress .progress-fill {
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.75));
}

/* The paper page */
.spread-page {
  position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(90, 70, 30, 0.028) 0 1px, transparent 1px 26px),
    radial-gradient(130% 100% at 28% 0%, #fbf7ec, #f1e9d6);
  border: 1px solid rgba(120, 90, 40, 0.2);
  border-radius: 0 0 22px 22px;
  padding: clamp(24px, 3.5vw, 42px);
  box-shadow: 0 42px 90px rgba(0, 0, 0, 0.45), 0 10px 26px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.album-spread:hover .spread-page {
  transform: translateY(-5px);
  box-shadow: 0 56px 110px rgba(0, 0, 0, 0.5), 0 14px 34px rgba(0, 0, 0, 0.35);
}

/* Inner margin frame (double line, like real albums) */
.spread-page::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(120, 90, 40, 0.25);
  border-radius: 14px;
  pointer-events: none;
}

/* Dog-ear page fold */
.spread-page::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  background: linear-gradient(315deg, #e9dfc6 0 48%, #d9cba6 48% 52%, transparent 52%);
  border-radius: 0 0 0 14px;
  box-shadow: -6px 6px 16px rgba(60, 45, 10, 0.16);
  z-index: 2;
}

/* Sticker slots grid */
.album-slots {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
}

.album-slot {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  border: 2px dashed rgba(120, 90, 40, 0.3);
  background: radial-gradient(65% 60% at 50% 45%, rgba(120, 90, 40, 0.05), transparent 72%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.album-slot:hover {
  border-color: rgba(120, 90, 40, 0.5);
  background: radial-gradient(65% 60% at 50% 45%, rgba(120, 90, 40, 0.09), transparent 72%);
}

.slot-num {
  position: absolute;
  top: 6px;
  left: 8px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: rgba(120, 90, 40, 0.55);
  pointer-events: none;
}

.slot-watermark {
  width: 55%;
  height: 55%;
  color: rgba(120, 90, 40, 0.16);
  pointer-events: none;
}

.slot-watermark svg {
  width: 100%;
  height: 100%;
}

/* Pasted sticker */
.album-slot.owned {
  border: 2px solid rgba(120, 90, 40, 0.55);
  background: #ffffff;
  box-shadow: 0 7px 18px rgba(60, 40, 10, 0.24), 0 1px 3px rgba(60, 40, 10, 0.2);
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.album-slot.owned:hover {
  transform: translateY(-4px) scale(1.06);
  z-index: 3;
  box-shadow: 0 16px 30px rgba(60, 40, 10, 0.32), 0 2px 5px rgba(60, 40, 10, 0.25);
}

.album-slot.owned .slot-num {
  color: rgba(60, 40, 10, 0.75);
}

.slot-sticker {
  width: 100%;
  height: 100%;
  padding: 5px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-sticker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* Shared progress pieces (spreads + album modal) */
.cover-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}

.mono-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.08);
  overflow: hidden;
}

.progress-fill {
  position: relative;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-light));
  transition: width 0.7s var(--ease-out);
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
  animation: bar-shine 2.6s linear infinite;
}

@keyframes bar-shine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 80px clamp(20px, 4vw, 40px) 36px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.footer-desc {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 340px;
}

.footer-col-title {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--accent);
  text-transform: uppercase;
}

html[data-theme="light"] .footer-col-title {
  color: var(--accent-deep);
}

.footer-link {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--ink);
}

.footer-mega {
  margin-top: 72px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 13.5vw, 10.8rem);
  line-height: 0.95;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--ink-rgb), 0.13);
  user-select: none;
  pointer-events: none;
}

.footer-bottom {
  max-width: 1280px;
  margin: 28px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  text-transform: uppercase;
}

/* ==========================================================================
   MOBILE NAV
   ========================================================================== */

.mobile-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(5, 7, 12, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line-strong);
  justify-content: space-around;
  align-items: center;
  height: 68px;
  padding: 0 8px;
}

html[data-theme="light"] .mobile-nav {
  background: rgba(244, 242, 236, 0.94);
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  padding: 6px 10px;
  transition: color 0.2s;
}

.mobile-nav-link svg {
  width: 21px;
  height: 21px;
}

.mobile-nav-link:hover {
  color: var(--accent);
}

.mobile-nav-link:disabled {
  opacity: 0.4;
  cursor: default;
}

.mobile-nav-cta {
  color: var(--accent);
}

html[data-theme="light"] .mobile-nav-cta {
  color: var(--accent-deep);
}

.mobile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  margin-left: 3px;
  border-radius: 999px;
  background: var(--accent);
  color: #121408;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  vertical-align: 1px;
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 5, 10, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.pack-modal-content,
.album-modal-content,
.detail-modal-content,
.confirm-modal-content {
  position: relative;
  width: 100%;
  max-width: 940px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(170deg, #101627, #0a0e17 60%);
  border: 1px solid var(--accent-line);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 44px 120px rgba(0, 0, 0, 0.85), 0 0 64px rgba(var(--accent-rgb), 0.08);
}

html[data-theme="light"] .pack-modal-content,
html[data-theme="light"] .album-modal-content,
html[data-theme="light"] .detail-modal-content,
html[data-theme="light"] .confirm-modal-content {
  background: linear-gradient(170deg, #ffffff, #f7f5f0 60%);
  box-shadow: 0 40px 90px rgba(22, 24, 31, 0.28), 0 0 64px rgba(var(--accent-rgb), 0.1);
}

.album-modal-content {
  max-width: 1060px;
  display: flex;
  flex-direction: column;
}

.detail-modal-content {
  max-width: 420px;
  text-align: center;
  padding: 34px 30px;
}

.confirm-modal-content {
  max-width: 480px;
  text-align: center;
  padding: 40px 36px;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(var(--ink-rgb), 0.07);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.5);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-top: 18px;
}

.modal-desc {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.modal-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
}

.modal-icon svg {
  width: 28px;
  height: 28px;
}

.modal-icon-violet {
  color: var(--accent-2-light);
  border-color: rgba(var(--accent-2-rgb), 0.45);
  background: rgba(var(--accent-2-rgb), 0.1);
}

.modal-icon-red {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.1);
}

html[data-theme="light"] .modal-icon-red {
  color: #b91c1c;
}

.modal-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- Pack opening modal ---- */

.pack-stage-opening {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 12px 0 24px;
}

.stage-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(var(--accent-rgb), 0.2);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

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

.reveal-head {
  text-align: center;
  margin-bottom: 26px;
}

.stage-title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.stage-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- Revealed cards ---- */

.revealed-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin: 6px 0 24px;
}

.revealed-card-item {
  width: 160px;
  height: 235px;
  perspective: 1000px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  animation: cardPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes cardPopIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

html[data-theme="light"] .card-inner {
  box-shadow: 0 12px 30px rgba(22, 24, 31, 0.3);
}

.revealed-card-item.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 18px;
  overflow: hidden;
}

.card-face-front {
  background:
    repeating-linear-gradient(135deg, rgba(var(--accent-rgb), 0.05) 0 12px, transparent 12px 26px),
    linear-gradient(135deg, #1e1b4b, #312e81);
  border: 3px solid var(--pack-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--pack-accent);
  font-weight: 900;
  box-shadow: inset 0 0 22px rgba(var(--pack-accent-rgb), 0.3);
}

.card-face-back {
  background: #0f172a;
  border: 3px solid var(--pack-accent);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  padding: 10px;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 24px rgba(var(--pack-accent-rgb), 0.3);
}

.card-img-wrap {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(var(--pack-accent-rgb), 0.3);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.status-badge.new {
  background: #10b981;
  color: white;
}

.status-badge.rep {
  background: var(--pack-accent);
  color: #121408;
}

/* ---- Pack summary ---- */

.pack-summary-box {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--accent-line);
  border-radius: 22px;
  padding: 28px;
  text-align: center;
}

html[data-theme="light"] .pack-summary-box {
  background: rgba(255, 255, 255, 0.92);
}

.summary-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.summary-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.summary-pills {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.summary-pill {
  padding: 9px 20px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.pill-new {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

html[data-theme="light"] .pill-new {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

.pill-rep {
  background: rgba(var(--accent-rgb), 0.18);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
}

html[data-theme="light"] .pill-rep {
  color: var(--accent-deep);
}

.summary-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- Album modal ---- */

.album-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.album-icon {
  font-size: 2.6rem;
  line-height: 1;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}

html[data-theme="light"] .album-icon {
  filter: none;
}

.album-head-copy {
  flex: 1;
  min-width: 180px;
}

.album-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.pct-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.15);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}

html[data-theme="light"] .pct-badge {
  color: var(--accent-deep);
}

.filter-tabs {
  display: flex;
  gap: 4px;
  background: rgba(var(--ink-rgb), 0.05);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
}

.filter-tab {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 9px 16px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-tab:hover {
  color: var(--ink);
}

.filter-tab.active {
  background: var(--accent) !important;
  color: #121408 !important;
  border-color: var(--accent) !important;
  font-weight: 700 !important;
}

.album-progress {
  margin: 18px 0 22px;
  height: 9px;
}

.album-grid-scroll {
  overflow-y: auto;
  flex: 1;
  padding: 2px 2px 8px;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 16px;
}

.sticker-tile {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: all 0.25s ease;
  aspect-ratio: 0.75;
}

.sticker-tile.owned {
  border-color: var(--accent-line);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.1), var(--surface) 55%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 16px rgba(var(--accent-rgb), 0.16);
}

html[data-theme="light"] .sticker-tile.owned {
  box-shadow: 0 6px 18px rgba(22, 24, 31, 0.12), 0 0 16px rgba(var(--accent-rgb), 0.18);
}

.sticker-tile.owned:hover {
  transform: translateY(-5px) scale(1.04);
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6), 0 0 26px rgba(var(--accent-rgb), 0.32);
}

html[data-theme="light"] .sticker-tile.owned:hover {
  box-shadow: 0 14px 30px rgba(22, 24, 31, 0.2), 0 0 26px rgba(var(--accent-rgb), 0.35);
}

.sticker-tile.locked .tile-img-box img {
  filter: brightness(0.12) blur(3px) grayscale(1);
}

html[data-theme="light"] .sticker-tile.locked .tile-img-box img {
  filter: brightness(0.85) blur(3px) grayscale(1);
}

.tile-num-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--pack-accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  z-index: 10;
}

html[data-theme="light"] .tile-num-badge {
  background: rgba(22, 24, 31, 0.85);
  color: var(--accent-light);
}

.tile-img-box {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.tile-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
}

html[data-theme="light"] .tile-lock-overlay {
  color: rgba(22, 24, 31, 0.45);
}

.lock-icon {
  font-size: 1.6rem;
}

.lock-qmark {
  font-size: 0.8rem;
  font-weight: 900;
  margin-top: 2px;
}

/* ---- Sticker detail ---- */

.detail-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  border: 3px solid var(--pack-accent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 44px rgba(var(--pack-accent-rgb), 0.28);
}

html[data-theme="light"] .detail-frame {
  box-shadow: 0 24px 60px rgba(22, 24, 31, 0.25), 0 0 44px rgba(var(--pack-accent-rgb), 0.3);
}

.detail-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.14) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: detail-sheen 4.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes detail-sheen {
  0%, 55% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}

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

/* ---- Share preview ---- */

.share-preview {
  margin: 22px 0;
  padding: 18px;
  border-radius: 16px;
  background: rgba(var(--ink-rgb), 0.06);
  border: 1px solid var(--line-strong);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--accent);
  white-space: pre-wrap;
  word-break: break-word;
}

html[data-theme="light"] .share-preview {
  color: var(--accent-deep);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (min-width: 640px) {
  .progress-pill {
    display: flex;
  }
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }

  .mobile-nav {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .album-slots {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 72px;
  }

  .shrine-card.card-left {
    left: -24%;
  }

  .shrine-card.card-right {
    right: -24%;
  }

  .float-chip.chip-a {
    left: -8%;
  }

  .float-chip.chip-b {
    right: -6%;
  }

  .pack-modal-content,
  .album-modal-content {
    padding: 22px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .verb-track,
  .ticker,
  .verb-marquee,
  .pack-shine::before,
  .progress-fill::after,
  .detail-frame::after,
  .spinner,
  .shrine-glow,
  .float-chip,
  .shrine-hint,
  .hero-ctas .btn-accent {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ==================== GOOGLE AUTH AREA (PETALBUM) ==================== */
.album-auth-area {
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-google {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .4);
  background: rgba(255, 255, 255, .06);
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  transition: all .2s ease;
}
.auth-google:hover { background: rgba(255, 255, 255, .12); border-color: rgba(163, 230, 53, .6); }
.auth-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(163, 230, 53, .5);
}
.auth-logout {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(244, 63, 94, .4);
  background: rgba(244, 63, 94, .08);
  color: inherit;
  text-decoration: none;
  transition: all .2s ease;
}
.auth-logout:hover { background: rgba(244, 63, 94, .18); }
