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

:root {
  color-scheme: dark;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  --bg: #0a0a0f;
  --bg-secondary: #0c1224;
  --accent: #61f4a7;
  --accent-strong: #2ff7ff;
  --accent-hot: #ffbf3c;
  --neon-purple: #b347ff;
  --neon-green: #61f4a7;
  --neon-yellow: #ffd700;
  --neon-pink: #ff69b4;
  --border: rgba(179, 71, 255, 0.4);
  --border-yellow: rgba(255, 215, 0, 0.6);
  --text-muted: rgba(97, 244, 167, 0.8);
  --text-strong: #61f4a7;
  --card-glow: rgba(179, 71, 255, 0.5);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: 
    radial-gradient(2px 2px at 20% 30%, var(--neon-yellow), transparent),
    radial-gradient(2px 2px at 60% 70%, var(--neon-pink), transparent),
    radial-gradient(1px 1px at 50% 50%, var(--neon-yellow), transparent),
    radial-gradient(1px 1px at 80% 10%, var(--neon-pink), transparent),
    radial-gradient(2px 2px at 90% 40%, var(--neon-yellow), transparent),
    radial-gradient(1px 1px at 33% 60%, var(--neon-pink), transparent),
    radial-gradient(1px 1px at 15% 80%, var(--neon-yellow), transparent),
    radial-gradient(2px 2px at 70% 20%, var(--neon-pink), transparent);
  background-size: 200% 200%;
  background-position: 0% 0%, 100% 0%, 50% 50%, 0% 100%, 100% 100%, 0% 50%, 50% 0%, 100% 50%;
  animation: stars 20s ease infinite;
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    #ff0000, #ff7f00, #ffff00, #00ff00, 
    #0000ff, #4b0082, #9400d3);
  z-index: 1000;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes stars {
  0%, 100% { background-position: 0% 0%, 100% 0%, 50% 50%, 0% 100%, 100% 100%, 0% 50%, 50% 0%, 100% 50%; }
  50% { background-position: 100% 100%, 0% 100%, 50% 50%, 100% 0%, 0% 0%, 100% 50%, 50% 100%, 0% 50%; }
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
}

.cosmic-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(36, 201, 255, 0.22), transparent 50%),
              radial-gradient(circle at 80% 0%, rgba(102, 255, 204, 0.18), transparent 45%),
              radial-gradient(circle at 60% 90%, rgba(255, 196, 50, 0.15), transparent 55%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 95%, rgba(255, 255, 255, 0.04) 95%),
                    linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, 0.04) 95%);
  background-size: 80px 80px;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.hero {
  background: rgba(10, 10, 15, 0.85);
  border: 2px solid var(--neon-purple);
  border-style: dashed;
  border-radius: 32px;
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  box-shadow: 
    0 0 20px rgba(179, 71, 255, 0.4),
    0 0 40px rgba(179, 71, 255, 0.2),
    inset 0 0 20px rgba(179, 71, 255, 0.1);
  backdrop-filter: blur(16px);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 32px;
  border: 1px solid var(--border-yellow);
  border-style: dashed;
  pointer-events: none;
  opacity: 0.8;
}

.hero-meta {
  display: flex;
  gap: 24px;
  flex: 1 1 520px;
}

.project-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px;
}

.hero-copy h1 {
  margin: 8px 0 16px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--neon-green);
  text-shadow: 
    0 0 10px rgba(97, 244, 167, 0.5),
    0 0 20px rgba(97, 244, 167, 0.3),
    0 0 30px rgba(97, 244, 167, 0.2);
  letter-spacing: 0.05em;
}

.lede-secondary {
  color: var(--neon-green);
  margin-top: 16px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  color: var(--neon-green);
  opacity: 0.9;
}

.lede {
  color: var(--neon-green);
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 500;
}

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

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--neon-purple);
  background: rgba(179, 71, 255, 0.1);
  color: var(--neon-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-link:hover {
  background: rgba(179, 71, 255, 0.25);
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(97, 244, 167, 0.4);
  transform: translateY(-2px);
}

.hero-link .link-icon {
  font-size: 1.1rem;
}

.hero-link .telegram-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  border: 1px solid var(--neon-green);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  background: rgba(97, 244, 167, 0.1);
  color: var(--neon-green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tag.hot-badge {
  background: rgba(255, 105, 180, 0.2);
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 105, 180, 0.3); }
  50% { box-shadow: 0 0 20px rgba(255, 105, 180, 0.6); }
}

.hero-cta {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.cta-text {
  color: var(--text-muted);
  margin: 0 0 18px;
}

.ghost-link {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 12px 18px;
  border-radius: 999px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.ghost-link:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ghost-link:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(97, 244, 167, 0.25);
}

.experience {
  margin-top: 48px;
  display: grid;
  gap: 32px;
}

.box-stage,
.email-panel,
.reveal-panel,
.wallet-panel,
.already-paid-panel {
  background: rgba(10, 10, 15, 0.85);
  border: 2px solid var(--neon-purple);
  border-style: dashed;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 
    0 0 20px rgba(179, 71, 255, 0.4),
    0 0 40px rgba(179, 71, 255, 0.2),
    inset 0 0 20px rgba(179, 71, 255, 0.1);
  backdrop-filter: blur(12px);
  position: relative;
}

.box-stage::before,
.email-panel::before,
.reveal-panel::before,
.wallet-panel::before,
.already-paid-panel::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 28px;
  border: 1px solid var(--border-yellow);
  border-style: dashed;
  pointer-events: none;
  opacity: 0.7;
}

.wallet-panel[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

.wallet-panel.wallet-verified {
  border-color: rgba(97, 244, 167, 0.7);
  box-shadow: 0 20px 55px rgba(97, 244, 167, 0.18);
}

.wallet-form label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.wallet-panel small {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
}

.wallet-panel .fee-note {
  margin-top: 6px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.wallet-panel .primary {
  margin-top: 18px;
}

.already-paid-panel {
  text-align: center;
  border-color: rgba(97, 244, 167, 0.5);
}

.already-paid-panel .checkmark-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #61f4a7, #2ff7ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #030510;
  font-weight: bold;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.already-paid-panel h3 {
  margin: 0 0 16px;
  font-size: 1.8rem;
  color: var(--accent);
}

.already-paid-panel .info-box {
  background: rgba(97, 244, 167, 0.1);
  border: 1px solid rgba(97, 244, 167, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  text-align: left;
}

.already-paid-panel .info-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.already-paid-panel .info-box strong {
  color: var(--accent);
}

.stage-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--neon-green);
  margin-bottom: 8px;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(97, 244, 167, 0.4);
}

h2, h3 {
  color: var(--neon-green);
  text-shadow: 0 0 10px rgba(97, 244, 167, 0.4);
}

.stage-helper,
.panel-copy {
  color: var(--neon-green);
  margin: 8px 0 24px;
  opacity: 0.9;
}

.box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.treasure-box {
  position: relative;
  background: transparent;
  padding: 40px 20px 50px;
  border: none;
  isolation: isolate;
  transition: transform 220ms ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.treasure-box .box-glow {
  position: absolute;
  inset: -10px;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 50%, rgba(179, 71, 255, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

/* Wooden Chest Body */
.treasure-box .box-body {
  width: 180px;
  height: 120px;
  margin: 0 auto;
  position: relative;
  background: 
    linear-gradient(90deg, transparent 0%, transparent 15%, #ffd700 15%, #ffd700 18%, transparent 18%, transparent 82%, #ffd700 82%, #ffd700 85%, transparent 85%),
    linear-gradient(90deg, #3d2817 0%, #5a3d26 25%, #3d2817 50%, #5a3d26 75%, #3d2817 100%),
    radial-gradient(ellipse at center, #4a3420 0%, #2d1f14 100%);
  background-size: 100% 100%, 20px 100%, 100% 100%;
  border-radius: 8px 8px 4px 4px;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.4);
  border: 3px solid #8b6914;
  overflow: hidden;
}

/* Gold Metal Bands */
.treasure-box .box-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(180deg, #ffd700 0%, #daa520 50%, #b8860b 100%);
  border-bottom: 2px solid #8b6914;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.treasure-box .box-body::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(0deg, #ffd700 0%, #daa520 50%, #b8860b 100%);
  border-top: 2px solid #8b6914;
  box-shadow: inset 0 -2px 4px rgba(255, 255, 255, 0.3);
  z-index: 1;
}

/* Glowing Interior */
.treasure-box .box-interior-glow {
  position: absolute;
  inset: 8px;
  background: radial-gradient(ellipse at center top, rgba(255, 215, 0, 0.8) 0%, rgba(255, 215, 0, 0.4) 40%, transparent 70%);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.treasure-box.is-peeking .box-interior-glow,
.treasure-box.is-open .box-interior-glow {
  opacity: 1;
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Treasure Contents */
.treasure-box .box-treasure {
  position: absolute;
  inset: 8px;
  overflow: hidden;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.treasure-box.is-peeking .box-treasure,
.treasure-box.is-open .box-treasure {
  opacity: 1;
}

/* Gold Coins */
.treasure-box .treasure-coins {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, #ffd700 3px, transparent 3px),
    radial-gradient(circle at 60% 50%, #ffd700 3px, transparent 3px),
    radial-gradient(circle at 80% 20%, #ffd700 3px, transparent 3px),
    radial-gradient(circle at 40% 70%, #ffd700 3px, transparent 3px),
    radial-gradient(circle at 70% 80%, #ffd700 3px, transparent 3px),
    radial-gradient(circle at 30% 50%, #ffd700 3px, transparent 3px),
    radial-gradient(circle at 90% 60%, #ffd700 3px, transparent 3px);
  background-size: 100% 100%;
  opacity: 0.9;
}

/* Gemstones */
.treasure-box .treasure-gems {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 25% 40%, #00ff00 4px, transparent 4px),
    radial-gradient(circle at 65% 30%, #0000ff 4px, transparent 4px),
    radial-gradient(circle at 50% 60%, #ff0000 4px, transparent 4px),
    radial-gradient(circle at 75% 50%, #9400d3 4px, transparent 4px);
  background-size: 100% 100%;
  opacity: 0.8;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

/* Pearls */
.treasure-box .treasure-pearls {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.9) 49%, rgba(255, 255, 255, 0.9) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.9) 49%, rgba(255, 255, 255, 0.9) 51%, transparent 52%);
  background-size: 30px 30px;
  background-position: 30% 50%, 70% 50%;
  opacity: 0.7;
}

/* Pepe Logo on Front of Box */
.treasure-box .box-pepe-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-image: url("../../img/logo.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 3;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
  opacity: 0.95;
}

/* Magical Lock */
.treasure-box .box-lock {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: radial-gradient(circle, #ffd700 0%, #daa520 100%);
  border-radius: 50%;
  border: 2px solid #8b6914;
  box-shadow: 
    inset 0 0 8px rgba(255, 255, 255, 0.4),
    0 0 10px rgba(0, 150, 255, 0.6);
  opacity: 0.9;
  z-index: 2;
}

.treasure-box .box-lock::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #0096ff;
  border-radius: 2px;
  box-shadow: 0 0 8px #0096ff;
}

/* Chest Lid */
.treasure-box .box-lid {
  width: 190px;
  height: 50px;
  margin: -25px auto 0;
  position: relative;
  background: 
    linear-gradient(180deg, #5a3d26 0%, #3d2817 100%),
    linear-gradient(90deg, transparent 0%, transparent 15%, #ffd700 15%, #ffd700 18%, transparent 18%, transparent 82%, #ffd700 82%, #ffd700 85%, transparent 85%);
  background-size: 100% 100%, 100% 100%;
  border-radius: 12px 12px 6px 6px;
  transform-origin: center bottom;
  transform: rotateX(0deg);
  transition: transform 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 3px solid #8b6914;
  border-bottom: none;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.5),
    0 -4px 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* Dragon Head on Lid */
.treasure-box .dragon-head {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 35px;
  background: linear-gradient(180deg, #ffd700 0%, #daa520 50%, #b8860b 100%);
  border-radius: 50% 50% 40% 40%;
  border: 2px solid #8b6914;
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.4);
}

.treasure-box .dragon-head::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 6px;
  height: 6px;
  background: #ff0000;
  border-radius: 50%;
  box-shadow: 
    0 0 8px #ff0000,
    0 0 12px #ff0000,
    -6px 0 0 #ff0000;
}

.treasure-box .dragon-head::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: #ff0000;
  border-radius: 50%;
  box-shadow: 
    0 0 8px #ff0000,
    0 0 12px #ff0000,
    6px 0 0 #ff0000;
}

/* Spilled Treasure */
.treasure-box .spilled-treasure {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 30px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.treasure-box.is-peeking .spilled-treasure,
.treasure-box.is-open .spilled-treasure {
  opacity: 1;
}

.treasure-box .spilled-coins {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 50%, #ffd700 2px, transparent 2px),
    radial-gradient(circle at 30% 60%, #ffd700 2px, transparent 2px),
    radial-gradient(circle at 50% 50%, #ffd700 2px, transparent 2px),
    radial-gradient(circle at 70% 40%, #ffd700 2px, transparent 2px),
    radial-gradient(circle at 90% 50%, #ffd700 2px, transparent 2px);
  background-size: 100% 100%;
}

.treasure-box .spilled-gems {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, #00ff00 3px, transparent 3px),
    radial-gradient(circle at 60% 50%, #0000ff 3px, transparent 3px),
    radial-gradient(circle at 80% 50%, #ff0000 3px, transparent 3px);
  background-size: 100% 100%;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5));
}

.treasure-box .box-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.treasure-box .box-sparkles::before,
.treasure-box .box-sparkles::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.9) 0%, transparent 70%);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
  animation: sparkle-float 3s ease-in-out infinite;
}

.treasure-box .box-sparkles::before {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.treasure-box .box-sparkles::after {
  top: 60%;
  right: 20%;
  animation-delay: 1.5s;
  background: radial-gradient(circle, rgba(179, 71, 255, 0.9) 0%, transparent 70%);
  box-shadow: 0 0 8px rgba(179, 71, 255, 0.8);
}

@keyframes sparkle-float {
  0%, 100% { 
    transform: translateY(0) scale(0.8); 
    opacity: 0.6; 
  }
  50% { 
    transform: translateY(-15px) scale(1.2); 
    opacity: 1; 
  }
}

.box-label {
  display: block;
  margin-top: 24px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(97, 244, 167, 0.5);
  font-size: 1.1rem;
}

.treasure-box:hover {
  transform: translateY(-8px) scale(1.02);
}

.treasure-box:hover .box-glow {
  opacity: 0.6;
}

.treasure-box:hover .box-body,
.treasure-box:hover .box-lid {
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(255, 215, 0, 0.3);
}

.treasure-box.is-dismissing {
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  pointer-events: none;
}

.treasure-box.is-selected {
  animation: selected-pulse 2s ease-in-out infinite;
}

.treasure-box.is-selected .box-glow {
  opacity: 0.8;
}

.treasure-box.is-selected .box-body,
.treasure-box.is-selected .box-lid {
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(255, 215, 0, 0.5),
    0 0 50px rgba(255, 215, 0, 0.3);
}

.treasure-box.is-selected .dragon-head::before,
.treasure-box.is-selected .dragon-head::after {
  animation: dragon-eyes-blink 3s ease-in-out infinite;
}

.treasure-box.is-selected .box-pepe-logo,
.treasure-box:hover .box-pepe-logo {
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 20px rgba(97, 244, 167, 0.6));
  animation: pepe-glow 2s ease-in-out infinite;
}

@keyframes pepe-glow {
  0%, 100% { 
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 20px rgba(97, 244, 167, 0.6));
  }
  50% { 
    filter: drop-shadow(0 0 16px rgba(255, 215, 0, 1)) drop-shadow(0 0 30px rgba(97, 244, 167, 0.8));
  }
}

@keyframes selected-pulse {
  0%, 100% { 
    transform: translateY(-8px) scale(1.02);
  }
  50% { 
    transform: translateY(-10px) scale(1.03);
  }
}

@keyframes dragon-eyes-blink {
  0%, 90%, 100% { 
    opacity: 1;
    box-shadow: 
      0 0 8px #ff0000,
      0 0 12px #ff0000;
  }
  95% { 
    opacity: 0.3;
    box-shadow: 
      0 0 4px #ff0000,
      0 0 6px #ff0000;
  }
}

.treasure-box.is-peeking .box-lid {
  transform: rotateX(-45deg);
}

.treasure-box.is-open .box-lid {
  transform: rotateX(-110deg);
}

.email-panel {
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 250ms ease, border-color 250ms ease, transform 250ms ease;
}

.email-panel.is-visible {
  opacity: 1;
  pointer-events: auto;
  border-color: rgba(255, 191, 60, 0.6);
  transform: translateY(0);
}

.box-stage.is-hidden,
.email-panel.is-hidden {
  display: none;
}

.panel-header h3 {
  margin: 4px 0;
}

.panel-header p {
  color: var(--text-muted);
  margin: 0;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.email-form label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.input-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.input-group input {
  flex: 1;
  min-width: 220px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-strong);
}

.input-group button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #010409;
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 600;
  transition: transform 120ms ease;
}

.input-group button:hover {
  transform: translateY(-2px);
}

.status-line {
  min-height: 20px;
  font-size: 0.9rem;
}

.status-success {
  color: #9df59d;
}

.status-error {
  color: #ff7d7d;
}

.reveal-panel {
  opacity: 0.25;
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease;
}

.reveal-panel.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.prize-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(20, 24, 45, 0.9), rgba(36, 41, 74, 0.85));
  margin: 24px 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.prize-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -10%, rgba(255, 191, 60, 0.35), transparent 60%);
  opacity: 0;
  transition: opacity 400ms ease;
}

.prize-card.is-hot::after {
  opacity: 1;
}

.prize-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.prize-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.prize-amount {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin: 12px 0;
}

.primary {
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  background: rgba(97, 244, 167, 0.15);
  color: var(--accent);
  border: 1px dashed rgba(97, 244, 167, 0.5);
  font-weight: 600;
  cursor: not-allowed;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.primary:not(.disabled):not(:disabled) {
  cursor: pointer;
  background: linear-gradient(135deg, rgba(97, 244, 167, 0.25), rgba(47, 247, 255, 0.2));
  border: 1px solid rgba(97, 244, 167, 0.6);
}

.primary:not(.disabled):not(:disabled):hover {
  background: linear-gradient(135deg, rgba(97, 244, 167, 0.35), rgba(47, 247, 255, 0.3));
  border-color: rgba(97, 244, 167, 0.8);
  transform: translateY(-1px);
}

.primary.disabled,
.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

#confetti-host {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.confetti-piece {
  position: absolute;
  width: 12px;
  height: 18px;
  opacity: 0.9;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  0% { transform: translateY(-10vh) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
  }

  .hero-meta {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-cta {
    align-items: center;
    text-align: center;
  }

  .box-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 32px 16px 72px;
  }

  .box-stage,
  .email-panel,
  .reveal-panel {
    padding: 24px;
  }

  .input-group {
    flex-direction: column;
    gap: 10px;
  }

  .input-group button {
    width: 100%;
  }
}

/* Existing Claims Panel */
.existing-claims-panel {
  background: rgba(6, 10, 22, 0.95);
  border: 2px solid rgba(97, 244, 167, 0.3);
  border-radius: 24px;
  padding: 32px;
  margin: 24px 0;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(97, 244, 167, 0.1) inset;
}

.existing-claims-panel .panel-header h3 {
  color: #61f4a7;
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.existing-claims-panel .panel-copy {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  line-height: 1.6;
}

.existing-claims-list {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.existing-claim-item:hover {
  border-color: rgba(97, 244, 167, 0.4) !important;
  background: rgba(97, 244, 167, 0.1) !important;
  transform: translateX(4px);
}

.existing-claims-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 768px) {
  .existing-claims-panel {
    padding: 24px;
  }
  
  .existing-claims-list {
    max-height: 300px;
  }
  
  .existing-claims-actions {
    flex-direction: column;
  }
  
  .existing-claims-actions button {
    width: 100%;
  }
}

