* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
  height: 100vh;
  font-family: 'Space Grotesk', sans-serif;
  cursor: default;
}

/* ================= EXPERIENCE LAYER ================= */

#experience-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: #ffffff;
}

#banner {
  position: relative;
  width: 100%;
  text-align: center;
  z-index: 2;
}

#banner img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  /* Empêche le highlight bleu au clic */
  user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
  pointer-events: none;
}

/* Text container — always above capsules */
#textContainer {
  position: fixed;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(20px, 3.5vw, 52px);
  font-weight: 600;
  text-align: center;
  color: #111;
  z-index: 30;
  width: 90%;
  max-width: 90vw;
  min-height: 60px;
  pointer-events: none;
  white-space: normal;
  word-break: break-word;
}

/* OVERDOSE≠FUN final reveal */
.overdose-word {
  font-size: clamp(28px, 6vw, 90px);
  font-weight: 700;
  letter-spacing: 3px;
  vertical-align: baseline;
}

.notfun-word {
  font-size: clamp(14px, 2.8vw, 42px);
  font-weight: 600;
  margin-left: 6px;
  letter-spacing: 1px;
  vertical-align: middle;
  opacity: 0.9;
}

.green-dot {
  color: #19c37d;
  margin-right: 10px;
  font-weight: 700;
}

/* ================= CAPSULES ================= */

#capsule-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;          /* below text (30), above banner (2) */
}

.capsule {
  position: fixed;      /* viewport-relative, no parent offset issues */
  width: clamp(105px, 7vw, 140px);
  pointer-events: none;
  /* initial transition from banner → target */
  transition:
    top 1.2s cubic-bezier(.22, 1, .36, 1),
    left 1.2s cubic-bezier(.22, 1, .36, 1),
    transform 1.1s cubic-bezier(.22, 1, .36, 1);
}

/* ================= PLATFORM LAYER ================= */

#platform-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  /* starts completely hidden via clip-path */
  clip-path: circle(0% at 100% 100%);
  transition: clip-path 1.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

/* ================= HEADER ================= */

.platform-header {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  flex-wrap: nowrap;
  gap: 10px;
}

/* Logo Solana — taille de référence */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-container img {
  height: clamp(20px, 4vw, 27px);
  width: auto;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  object-fit: contain;
  display: block;
}

/* Logo Ethereum — +20% soit 32 × 1.2 = 38px */
body.eth-theme .logo-container img {
  height: clamp(24px, 5vw, 38px);
}

/* Switch icon ⇄ */
.switch-icon {
  font-size: 22px;
  font-weight: 700;
  opacity: 0.55;
  cursor: pointer;
  user-select: none;
  line-height: 1;
  transition: opacity 0.2s ease, transform 0.35s ease;
}

.switch-icon:hover {
  opacity: 1;
  transform: rotate(180deg);
}

body.solana-theme .switch-icon {
  color: #14F195;
}

body.eth-theme .switch-icon {
  color: #1a3a8f;
}

/* ================= CONNECT WALLET ================= */

.connect-btn {
  padding: 8px 12px;
  border-radius: 12px;
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(11px, 2vw, 14px);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ================= LAUNCH CARD ================= */

.launch-card {
  width: min(520px, 92vw);
  padding: clamp(24px, 5vw, 50px);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.4s ease;
  position: relative;
  z-index: 2;
  max-height: 90vh;
  overflow-y: auto;
}

.launch-card h2 {
  font-size: 28px;
  font-weight: 700;
}

.subtitle {
  opacity: 0.7;
  font-size: 14px;
  margin-bottom: 8px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 13px;
  opacity: 0.7;
  font-weight: 500;
}

.launch-card input {
  padding: 14px;
  border-radius: 10px;
  outline: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  padding: 16px;
  border-radius: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
}

/* ================= SOLANA THEME ================= */

body.solana-theme #platform-layer {
  background:
    radial-gradient(circle at 20% 30%, rgba(153, 69, 255, 0.4), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(20, 241, 149, 0.4), transparent 40%),
    linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  background-size: 200% 200%;
  color: white;
  animation: solanaGlow 6s infinite alternate ease-in-out;
}

@keyframes solanaGlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

body.solana-theme .launch-card {
  background: linear-gradient(145deg, rgba(20, 20, 30, 0.95), rgba(30, 20, 50, 0.9));
  box-shadow:
    0 0 60px rgba(153, 69, 255, 0.3),
    inset 0 0 40px rgba(20, 241, 149, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.solana-theme input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

body.solana-theme input:focus {
  border: 1px solid #14F195;
  box-shadow: 0 0 12px rgba(20, 241, 149, 0.6);
}

body.solana-theme .primary-btn {
  background: linear-gradient(90deg, #9945FF, #14F195);
  color: black;
}

body.solana-theme .connect-btn {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ================= ETHEREUM THEME ================= */

body.eth-theme #platform-layer {
  background:
    radial-gradient(circle at 25% 30%, rgba(200, 215, 240, 0.55), transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(98, 126, 234, 0.45), transparent 45%),
    linear-gradient(135deg, #4a5a72, #5a7898, #2a55a8);
  background-size: 200% 200%;
  color: white;
  animation: ethGlow 10s infinite alternate ease-in-out;
}

@keyframes ethGlow {
  0%   { background-position: 0% 40%; }
  100% { background-position: 100% 60%; }
}

body.eth-theme .launch-card {
  background: linear-gradient(145deg, rgba(30, 35, 50, 0.95), rgba(20, 25, 40, 0.9));
  box-shadow:
    0 0 60px rgba(80, 120, 255, 0.25),
    inset 0 0 40px rgba(120, 130, 150, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.eth-theme input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

body.eth-theme input:focus {
  border: 1px solid #627EEA;
  box-shadow: 0 0 12px rgba(98, 126, 234, 0.6);
}

body.eth-theme .primary-btn {
  background: linear-gradient(90deg, #627EEA, #3b82f6);
  color: white;
}

body.eth-theme .connect-btn {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

  /* Banner centré au milieu de l'écran comme sur desktop */
  #experience-layer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #banner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Texte Daily Dose bien visible */
  #textContainer {
    top: 3%;
    font-size: clamp(18px, 5vw, 32px);
    white-space: normal;
    width: 90%;
    max-width: 90vw;
  }

  /* OVERDOSE≠FUN adapté mobile */
  .overdose-word {
    font-size: clamp(24px, 8vw, 48px);
  }

  .notfun-word {
    font-size: clamp(12px, 4vw, 24px);
  }

  /* Header mobile */
  .platform-header {
    top: 14px;
    left: 16px;
    right: 16px;
  }

  /* Card mobile */
  .launch-card {
    width: 92vw;
    padding: 24px 20px;
    gap: 12px;
  }

  .launch-card h2 {
    font-size: 22px;
  }
}