:root {
  --bg: #fffefb;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #f97316;
  --primary-weak: #fde8d7;
  --ring: rgba(249, 115, 22, 0.35);
  --card: #fff;
  --shadow: 0 10px 26px rgba(17, 24, 39, 0.1);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(900px 520px at 85% -10%, var(--primary-weak) 0%, transparent 60%), var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.wrap {
  max-width: 520px;
  padding: 18px clamp(16px, 4vw, 28px) 28px;
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 12px;
  margin: 20px 0 10px;
  text-align: center;
  place-items: center;
}

h1 {
  font-size: clamp(22px, 5vw, 26px);
  line-height: 1.15;
  margin: 4px 0 2px;
  letter-spacing: -0.3px;
  color: var(--primary);
}

.lead {
  color: var(--muted);
  font-size: clamp(15px, 3.6vw, 18px);
  max-width: 58ch;
  margin: 0 auto;
  font-weight: 700;
  display: inline-block;
}

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

.btn,
.btn2 {
  appearance: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 800;
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 17px;
  min-height: 52px;
  color: #0b0f14;
  text-align: center;
}

.btn {
  background: var(--primary);
}

.btn2 {
  background: #31aa96;
}

.btn[disabled],
.btn2[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.section {
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 14px;
  margin-top: 12px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  color: var(--text);
  margin: 2px 0 12px;
  text-align: center;
}

.auth-copy {
  margin: 0 0 14px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form + .auth-form {
  margin-top: 6px;
}

.auth-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.auth-input {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  background: #fff;
  color: var(--text);
}

.auth-input:focus {
  outline: 3px solid var(--ring);
  outline-offset: 1px;
}

.auth-input--code {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 900;
}

.auth-btn {
  width: 100%;
}

.auth-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.soft {
  background: #fafaf9;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}

.stats-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.stat-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #fafaf9;
}

.list-item .sub {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.section--warm,
.energy-card {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.12), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.card-btn {
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
  box-shadow: var(--shadow);
  min-height: 92px;
}

.card-btn .eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 900;
}

.card-btn .title {
  font-size: 18px;
}

.card-btn .kicker {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.card-btn--mint {
  background: linear-gradient(180deg, rgba(49, 170, 150, 0.16), rgba(255, 255, 255, 0.92));
  border-color: rgba(49, 170, 150, 0.22);
}

.hero-full {
  width: 100%;
}

.badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  width: 100%;
}

.badge-img {
  width: 200px;
  height: auto;
  display: block;
}

.badge-fallback {
  font-size: 44px;
  line-height: 1;
}

.energy-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  color: #2f6f67;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.06);
}

.sparkle {
  font-size: 16px;
  line-height: 1;
}

.energy-card {
  width: 100%;
  max-width: 520px;
  border-radius: 22px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow);
  text-align: center;
  margin: 8px 0 8px;
}

.energy-state {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.2px;
}

.energy-description {
  margin: 8px 0 12px;
  color: #4a4a4a;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.45;
}

.energy-intro {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
}

.energy-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.energy-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: left;
}

.action-icon {
  font-size: 20px;
  line-height: 1;
  width: 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.action-text {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.35;
  color: #3f3f3f;
}

.carte-block {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.carte-visuel {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carte-visuel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carte-overlay {
  position: absolute;
  inset: 10% 8% 10% 8%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  font-size: clamp(16px, 4.5vw, 22px);
  font-weight: 800;
  line-height: 1.35;
  color: #0b0f14;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  padding: 12px;
}

.mood-choices {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.mood-btn {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mood-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.mood-hint,
.mood-status {
  margin-top: 10px;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
}

.mood-hint {
  color: var(--muted);
}

.mood-status {
  color: #2f6f67;
  min-height: 18px;
}

.quote {
  font-weight: 800;
  text-align: center;
  line-height: 1.5;
}

.author {
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 254, 251, 0.92);
  backdrop-filter: blur(2px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.loading-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

.loading-card {
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
  text-align: center;
  max-width: 420px;
  width: calc(100% - 32px);
}

.spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto 10px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.hidden {
  display: none !important;
}

footer {
  margin: 26px 0 8px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

footer img {
  display: block;
  margin: 0 auto;
  max-width: 220px;
  height: auto;
}

@media (max-width: 380px) {
  .stats-2col {
    grid-template-columns: 1fr;
  }
}
