body.pg {
  background: radial-gradient(1200px at 25% 25%, #0c1020 0%, #06070c 80%);
  color: #f5f8ff;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  padding-top: 6rem;
}

body.pg.scroll-locked {
  overflow: hidden;
  height: 100vh;
  position: fixed;
  width: 100%;
  left: 0;
  top: 0;
}

.hidden {
  display: none !important;
}

.hero-playground {
  width: 100%;
  padding: 10rem 2rem 6rem;
  text-align: center;
  background: linear-gradient(145deg, #0c1020, #0e1830);
  background-image:
    radial-gradient(600px at 20% 30%, #00ffd1 0%, transparent 70%),
    radial-gradient(600px at 80% 70%, #00aeef 0%, transparent 70%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-playground h1 {
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  color: #00aeef;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-playground h1 span {
  color: #00ffd1;
}

.hero-playground .subtitle {
  max-width: 720px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.hero-btn {
  background: linear-gradient(135deg, #00ffd1, #00aeef);
  color: #0c1020;
  border: none;
  font-size: 1rem;
  padding: 0.85rem 2.2rem;
  border-radius: 0.75rem;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0, 255, 209, 0.3);
  transition: all 0.3s ease;
  font-weight: 600;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(0, 255, 209, 0.45);
}

.playground-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 4rem 1rem 6rem;
}

.interactive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.play-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 1.2rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.play-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.play-card h2 {
  color: #00ffd1;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-lead {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.chat-box {
  height: 200px;
  overflow-y: auto;
  border-radius: 0.9rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chat-box .msg {
  padding: 0.65rem 0.85rem;
  border-radius: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 90%;
  word-break: break-word;
}

.chat-box .msg.bot {
  background: rgba(0, 255, 209, 0.12);
  align-self: flex-start;
}

.chat-box .msg.me {
  background: rgba(0, 174, 239, 0.16);
  align-self: flex-end;
}

.command-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

.command-form input {
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1rem;
  color: inherit;
  font-size: 0.95rem;
}

.command-form input:focus {
  outline: none;
  border-color: rgba(0, 174, 239, 0.6);
}

.command-form .btn {
  border-radius: 0.9rem;
  padding: 0.75rem 1.4rem;
  font-weight: 600;
}

.status {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.token-grid {
  display: grid;
  gap: 1rem;
}

.token {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

input[type="range"] {
  width: 100%;
  accent-color: #00ffd1;
}

#trail-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9998;
}

.cursor-orb {
  position: fixed;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #00ffd1, transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 9999;
}

.trail-particle {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.9;
  transform: scale(1);
  transition: transform 0.8s ease, opacity 0.8s ease;
  filter: blur(1px);
}

.sevi-bubble {
  position: fixed;
  bottom: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #00ffd1, #00aeef);
  color: #0b0d14;
  border-radius: 1.4rem;
  padding: 0.6rem 1rem;
  box-shadow: 0 6px 20px rgba(0, 255, 209, 0.35);
  font-weight: 600;
  z-index: 12000;
  cursor: pointer;
  animation: floaty 4s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sevi-bubble.active {
  transform: scale(1.1);
}

.sevi-bubble.pulse {
  transform: scale(1.04);
  box-shadow: 0 10px 28px rgba(0, 174, 239, 0.4);
}

.sevi-face {
  font-size: 1.4rem;
}

.sevi-msg {
  font-size: 0.95rem;
}

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

.tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 13000;
}

.tooltip.show {
  opacity: 1;
  transform: translateY(-12px);
}

.palette-preview {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.palette-preview div {
  flex: 1;
  height: 38px;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.palette-preview div:hover {
  transform: scale(1.08);
}

/* --- Discovery Mode --- */
body.discovery-active .play-card {
  position: relative;
  transition: box-shadow 0.4s ease, transform 0.3s ease;
}

body.discovery-active .play-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(255, 0, 150, 0.3));
  opacity: 0;
  filter: blur(12px);
  z-index: -1;
  animation: discoveryGlow 3s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

body.discovery-active .play-card:hover::before {
  opacity: 1;
}

@keyframes discoveryGlow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.02);
  }
}

/* Floating particles effect */
body.discovery-active::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(0, 255, 255, 0.4), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(255, 0, 150, 0.4), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(0, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255, 0, 150, 0.3), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(0, 255, 255, 0.4), transparent);
  background-size: 200% 200%;
  animation: floatParticles 20s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes floatParticles {
  0%, 100% {
    background-position: 0% 0%, 100% 100%, 50% 50%, 80% 20%, 90% 60%;
  }
  50% {
    background-position: 100% 100%, 0% 0%, 50% 50%, 20% 80%, 10% 40%;
  }
}

#discover-btn {
  background: linear-gradient(90deg, var(--accent, #00ffee), var(--brand, #ff3b81));
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.25);
  transition: all 0.25s ease;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

#discover-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

#discover-btn:hover::before {
  transform: translateX(100%);
}

body.discovery-active #discover-btn {
  animation: discoveryPulse 2s ease-in-out infinite;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.5), 0 4px 20px rgba(0, 255, 255, 0.3);
}

@keyframes discoveryPulse {
  0%, 100% {
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.5), 0 4px 20px rgba(0, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 35px rgba(0, 255, 255, 0.7), 0 4px 25px rgba(255, 0, 150, 0.4);
  }
}

#discover-btn:hover {
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.45);
  transform: scale(1.05);
}

.tip-float {
  position: fixed;
  background: rgba(0, 0, 0, 0.8);
  color: #00ffee;
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
  pointer-events: none;
  z-index: 9000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tip-float.show {
  opacity: 1;
  transform: translateY(0);
}

.btn.success {
  background: #00c983;
  color: #041118;
}

.btn.warning {
  background: #ffba00;
  color: #111;
}

.btn.danger {
  background: #ff5e5e;
  color: #111;
}

.confetti {
  position: fixed;
  top: -10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: fall linear forwards;
  z-index: 9999;
  pointer-events: none;
}

.confetti:not([style*="background"]) {
  width: auto;
  height: auto;
  border-radius: 0;
}

@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

body.party {
  animation: partyBG 0.35s infinite alternate;
}

@keyframes partyBG {
  0% { background-color: rgba(0, 255, 209, 0.18); }
  100% { background-color: rgba(0, 174, 239, 0.18); }
}

@media (max-width: 768px) {
  body.pg {
    padding-top: 5rem;
  }

  .hero-playground {
    padding: 7rem 1.5rem 4.5rem;
  }

  .hero-playground h1 {
    font-size: 2.5rem;
  }

  .interactive-grid {
    grid-template-columns: 1fr;
  }

  .command-form {
    grid-template-columns: 1fr;
  }
}

/* === LIGHT THEME === */
body.pg[data-theme="light"] {
  background: linear-gradient(180deg, #fdfdfd 0%, #f3faff 30%, #eaf6ff 100%);
  color: #1a1a1a;
  --brand: #00aeef;
  --accent: #00ffd1;
}

body[data-theme="light"] header.site-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] header.site-header a {
  color: #222;
}

body[data-theme="light"] header.site-header a.active {
  color: #0077b6;
}

body[data-theme="light"] .hero-playground {
  background: linear-gradient(160deg, #eaf6ff 0%, #ffffff 80%);
  background-image:
    radial-gradient(600px at 20% 30%, rgba(0, 174, 239, 0.25) 0%, transparent 70%),
    radial-gradient(600px at 80% 70%, rgba(0, 255, 209, 0.2) 0%, transparent 70%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: #1a1a1a;
  box-shadow: inset 0 -2px 8px rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .hero-playground h1 {
  color: #0077b6;
}

body[data-theme="light"] .hero-playground h1 span {
  color: #00bfa5;
}

body[data-theme="light"] .hero-playground .subtitle {
  color: #333;
}

body[data-theme="light"] .play-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .play-card h2 {
  color: #0077b6;
}

body[data-theme="light"] .card-lead {
  color: #555;
}

body[data-theme="light"] .chat-box {
  background: #f8f8f8;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .chat-box .msg.bot {
  background: rgba(0, 174, 239, 0.15);
}

body[data-theme="light"] .chat-box .msg.me {
  background: rgba(0, 255, 209, 0.15);
}

body[data-theme="light"] .btn,
body[data-theme="light"] .hero-btn {
  background: linear-gradient(135deg, #00aeef, #00ffd1);
  color: #00333a;
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.25);
}

body[data-theme="light"] .btn:hover,
body[data-theme="light"] .hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 174, 239, 0.35);
}

body[data-theme="light"] .sevi-bubble {
  background: linear-gradient(135deg, #00aeef, #00ffd1);
  color: #00333a;
  box-shadow: 0 4px 20px rgba(0, 174, 239, 0.25);
}

body[data-theme="light"] #discover-btn {
  background: linear-gradient(90deg, #00aeef, #00ffd1);
  color: #00333a;
  box-shadow: 0 4px 16px rgba(0, 174, 239, 0.25);
}

body[data-theme="light"] .tooltip,
body[data-theme="light"] .tip-float {
  background: rgba(0, 0, 0, 0.85);
  color: #00aeef;
}

body[data-theme="light"] .btn.success {
  background: #00c983;
  color: #fff;
}

body[data-theme="light"] .btn.warning {
  background: #ffba00;
  color: #222;
}

body[data-theme="light"] .btn.danger {
  background: #ff5e5e;
  color: #fff;
}

body[data-theme="light"] footer.site-footer {
  background: rgba(255, 255, 255, 0.9);
  color: #222;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Elastic 2.0 */
#elastic-card {
  --ok: var(--brand, #00ffd1);
  --ok2: var(--accent, #00aeef);
}

#elastic-pro {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(135deg, var(--ok), var(--ok2));
  color: #062018;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  transform: translateZ(0);
  transition: transform 0.18s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

#elastic-pro:hover {
  transform: translateY(-1px) scale(1.03);
}

#elastic-pro:active {
  transform: scale(0.92);
  box-shadow: 0 0 0 10px color-mix(in oklab, var(--ok) 25%, transparent);
}

#elastic-pro.pulse {
  animation: elasticPulse 1.1s ease-in-out infinite;
}

@keyframes elasticPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

#elastic-pro .halo {
  position: absolute;
  inset: -6px;
  border-radius: 16px;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 50%, color-mix(in oklab, var(--ok) 45%, transparent), transparent);
  filter: blur(12px);
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

.elastic-ui {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.elastic-ui .bar {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.elastic-ui .fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ok), var(--ok2));
  box-shadow: 0 0 14px color-mix(in oklab, var(--ok) 40%, transparent);
  transition: width 0.08s linear;
}

/* Ripple ring on release */
.elastic-ring {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid color-mix(in oklab, var(--ok) 70%, white 10%);
  opacity: 0.9;
  transform: translate(-50%, -50%) scale(1);
  animation: elasticRing 0.6s ease-out forwards;
  filter: drop-shadow(0 0 8px color-mix(in oklab, var(--ok) 40%, transparent));
  z-index: 15000;
}

@keyframes elasticRing {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(22);
  }
}

/* Confetti */
.elastic-confetti {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: elasticFall linear forwards;
  will-change: transform, opacity;
  z-index: 14999;
}

@keyframes elasticFall {
  0% {
    transform: translateY(0) rotate(0);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(620deg);
    opacity: 0;
  }
}

/* Light theme tweaks */
body[data-theme="light"] #elastic-card .bar {
  background: #eff6ff;
  border-color: #e2e8f0;
}

body[data-theme="light"] #elastic-pro {
  color: #05343b;
  box-shadow: 0 10px 24px rgba(0, 174, 239, 0.22);
}

/* === DISCOVERIES SECTION === */
.discoveries {
  padding: clamp(4rem, 7vw, 6rem) 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.05), transparent 70%);
}

:root.light .discoveries {
  background: radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.04), transparent 70%);
}

.discoveries h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.6rem;
}

.discoveries .subtitle {
  color: color-mix(in oklab, var(--muted) 70%, var(--text));
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.discoveries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  justify-items: center;
  margin-bottom: 3rem;
}

.discoveries-activate {
  text-align: center;
  margin-top: 2rem;
}

.discoveries-activate p {
  margin-bottom: 1rem;
}

.discovery-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 340px;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}

:root.light .discovery-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.discovery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border-color: var(--brand);
}

.discovery-card h3 {
  margin-top: 0;
  color: var(--brand-2);
  font-weight: 700;
  font-size: 1.2rem;
}

.discovery-card p {
  color: color-mix(in oklab, var(--muted) 70%, var(--text));
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0.6rem 0 0;
}

/* Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

