/* ═══════════════════════════════════════════════════════════════
   REINO DOS SEMEADORES — Dark Edition
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Backgrounds */
  --bg:          #0B0F0D;
  --bg-raised:   #111917;
  --surface:     #182018;
  --surface-2:   #1E2820;

  /* Borders */
  --border:      rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.05);

  /* Text */
  --text:        #EDE5D4;
  --text-dim:    rgba(237, 229, 212, 0.55);
  --text-faint:  rgba(237, 229, 212, 0.32);

  /* Gold */
  --gold:        #C8923A;
  --gold-light:  #E4B264;
  --gold-glow:   rgba(200, 146, 58, 0.16);

  /* Accent (default: verde) — sobrescrito por [data-accent] */
  --accent:          #35885E;
  --accent-light:    #52A87A;
  --accent-rgb:      53, 136, 94;
  --accent-light-rgb: 82, 168, 122;

  /* Green = aliases do acento (compatibilidade — seguem a cor escolhida) */
  --green:       var(--accent);
  --green-light: var(--accent-light);
  --green-dim:   rgba(var(--accent-rgb), 0.14);
  --green-glow:  rgba(var(--accent-rgb), 0.22);

  /* Accents */
  --clay:        #A06242;
  --water:       #4A8EA8;

  /* Shadows */
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-md: 0 12px 40px rgba(0,0,0,0.45);
  --shadow-lg: 0 28px 80px rgba(0,0,0,0.55);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  /* Fonts */
  --font-serif: Lora, Georgia, 'Times New Roman', serif;
  --font-sans:  Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Cores de acento (escolhidas pelo usuário) ──────────────── */
[data-accent="azul"] {
  --accent:           #3A7CA5;
  --accent-light:     #5BA3CE;
  --accent-rgb:       58, 124, 165;
  --accent-light-rgb: 91, 163, 206;
}
[data-accent="dourado"] {
  --accent:           #C8923A;
  --accent-light:     #E4B264;
  --accent-rgb:       200, 146, 58;
  --accent-light-rgb: 228, 178, 100;
}
[data-accent="roxo"] {
  --accent:           #7E57C2;
  --accent-light:     #9E7BD8;
  --accent-rgb:       126, 87, 194;
  --accent-light-rgb: 158, 123, 216;
}
[data-accent="terracota"] {
  --accent:           #B0623F;
  --accent-light:     #CE7E5A;
  --accent-rgb:       176, 98, 63;
  --accent-light-rgb: 206, 126, 90;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input { font: inherit; }
button { border: 0; cursor: pointer; background: none; color: inherit; }
p, h1, h2, h3, h4 { margin: 0; }
blockquote { margin: 0; }
.is-hidden { display: none !important; }

.eyebrow {
  margin: 0;
  color: var(--green-light);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── App shell ──────────────────────────────────────────────── */
.app-shell { position: relative; min-height: 100dvh; }

/* ═══════════════════════════════════════════════════════════════
   WELCOME SCREEN
   ═══════════════════════════════════════════════════════════════ */
.welcome-screen {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
  overflow: hidden;
}

/* Illustrated garden panel */
.welcome-visual {
  position: relative;
  overflow: hidden;
}

.welcome-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 72% 22%, rgba(255,215,80,0.35), transparent 22%),
    linear-gradient(165deg, #0a1a0f 0%, #112a18 30%, #1e4a28 55%, #2e6030 70%, #3a7038 100%);
}

.welcome-sun {
  position: absolute;
  top: 12%;
  right: 20%;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff7c0, #f0c040);
  box-shadow: 0 0 0 16px rgba(240,192,64,0.1), 0 0 60px rgba(255,210,60,0.4), 0 0 120px rgba(255,180,30,0.2);
  animation: sunPulse 5s ease-in-out infinite;
}

.welcome-ground {
  position: absolute;
  inset: auto -4% 0;
  height: 42%;
  border-radius: 55% 55% 0 0;
  background: linear-gradient(175deg, #244a28, #183020, #0c1a0e);
}

.welcome-tree {
  position: absolute;
  left: 50%;
  bottom: 36%;
  width: 220px;
  height: 310px;
  transform: translateX(-50%);
}

.welcome-tree::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 28px;
  height: 55%;
  border-radius: 14px;
  background: linear-gradient(90deg, #2a1608, #4a2c14, #1e1006);
  transform: translateX(-50%);
}

.welcome-tree::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8%;
  width: 96%;
  height: 62%;
  border-radius: 50% 50% 48% 52%;
  background:
    radial-gradient(circle at 30% 44%, rgba(160,220,120,0.4) 0 18%, transparent 19%),
    radial-gradient(circle at 70% 36%, rgba(130,196,96,0.3) 0 22%, transparent 23%),
    linear-gradient(148deg, #2a7030, #1c5224, #367840);
  box-shadow: inset 0 -20px 44px rgba(16,48,24,0.4), 0 0 30px rgba(40,100,50,0.2);
  transform: translateX(-50%);
  animation: treeBreathe 7s ease-in-out infinite;
}

.welcome-tree span {
  position: absolute;
  left: 50%;
  top: 36%;
  width: 160px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 200, 80, 0.05);
  transform: translateX(-50%) rotate(-8deg);
}

/* Gradient overlay so text stays readable */
.welcome-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(11,15,13,0.98) 0%,
    rgba(11,15,13,0.7) 35%,
    transparent 65%
  );
  z-index: 1;
}

/* Left copy column */
.welcome-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 52px 52px 52px 48px;
}

.brand-mark {
  width: 72px;
  height: 72px;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: rgba(var(--accent-rgb), 0.1);
  stroke: var(--green-light);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 18px rgba(var(--accent-light-rgb), 0.25));
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--text);
}

.welcome-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.55;
}

blockquote {
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: var(--gold-glow);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--gold-light);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
}

.profile-form { display: grid; gap: 10px; max-width: 420px; }
.profile-form label { color: var(--text-dim); font-size: 0.82rem; font-weight: 800; }

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

input {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 200ms, box-shadow 200ms;
}

input::placeholder { color: var(--text-faint); }

input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.profile-form button[type="submit"] {
  border-radius: var(--r-sm);
  padding: 0 22px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
  min-height: 50px;
  white-space: nowrap;
  transition: background 200ms, transform 120ms;
}

.profile-form button[type="submit"]:hover { background: var(--green-light); }
.profile-form button[type="submit"]:active { transform: scale(0.97); }

/* ═══════════════════════════════════════════════════════════════
   GAME SCREEN
   ═══════════════════════════════════════════════════════════════ */
.game-screen {
  display: block;
  min-height: 100dvh;
  padding-bottom: 80px;
}

/* ─── Garden Hero ────────────────────────────────────────────── */
.garden-hero {
  position: relative;
  width: 100%;
  min-height: 58dvh;
  background: #080e0a;
  overflow: hidden;
}

.garden {
  width: 100%;
  min-height: 58dvh;
  display: block;
}

.garden-svg {
  width: 100%;
  min-height: 58dvh;
  display: block;
}

/* Top HUD */
.garden-hud-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 28px;
  background: linear-gradient(to bottom, rgba(8,14,10,0.75) 0%, transparent 100%);
  pointer-events: none;
}

.hud-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8,14,10,0.65);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.hud-pill strong { color: var(--text); font-size: 0.88rem; font-weight: 900; }
.hud-unit { color: var(--text-faint); font-size: 0.72rem; font-weight: 800; }

.hud-pill-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.hud-weather {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8,14,10,0.65);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 800;
}

/* Bottom gradient floor */
.garden-floor {
  position: absolute;
  bottom: 0; left: 0; right: 0;
}

.garden-floor-inner {
  padding: 0 18px 18px;
  display: grid;
  gap: 8px;
  background: linear-gradient(to top,
    rgba(8,14,10,1) 0%,
    rgba(8,14,10,0.96) 30%,
    rgba(8,14,10,0.8) 60%,
    transparent 100%
  );
  padding-top: 56px;
}

.floor-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.floor-row h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  margin-top: 4px;
}

.floor-blessing {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 520px;
}

.phase-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.phase-name-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green-dim);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  color: var(--green-light);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.phase-pct-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phase-hint-text {
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 800;
}

.phase-pct {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.phase-track {
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 999px;
  overflow: hidden;
}

.phase-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.accent-picker {
  display: flex;
  gap: 14px;
  padding: 4px 2px;
}
.accent-swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sw);
  border: 2px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.accent-swatch:hover { transform: scale(1.08); }
.accent-swatch.is-active {
  border-color: var(--text);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--sw);
}
.accent-swatch.is-active::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.reset-zone {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.reset-danger-btn {
  padding: 10px 24px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(180, 60, 60, 0.35);
  background: rgba(180, 60, 60, 0.08);
  color: rgba(210, 90, 90, 0.75);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms, border-color 180ms, color 180ms;
  letter-spacing: 0.02em;
}

.reset-danger-btn:hover {
  background: rgba(180, 60, 60, 0.16);
  border-color: rgba(180, 60, 60, 0.6);
  color: rgba(220, 100, 100, 1);
}

.reset-warning {
  font-size: 0.72rem;
  color: var(--text-faint);
  text-align: center;
}

/* reset-btn (legacy, kept for safety) */
.reset-btn {
  display: none;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-faint);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  transition: color 180ms, background 180ms;
}

.reset-btn:hover { color: var(--text-dim); background: rgba(255,255,255,0.1); }

/* ─── Content Area ───────────────────────────────────────────── */
.content-area {
  padding: 22px 16px 12px;
  display: grid;
  gap: 24px;
}

.tab-panel {
  display: grid;
  gap: 14px;
  animation: panelIn 260ms ease both;
}

/* ─── Section Heading ────────────────────────────────────────── */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.section-heading span {
  color: var(--text-faint);
  font-size: 0.75rem;
  font-weight: 800;
}

/* ─── Card Base ──────────────────────────────────────────────── */
.mission-card,
.daily-card,
.attribute-card,
.phase-card,
.profile-card {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.mission-card, .daily-card {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.mission-title { display: grid; gap: 4px; }
.mission-title h4 { font-size: 1.18rem; font-weight: 800; color: var(--text); margin: 0; }
.daily-card h4 { font-size: 1.18rem; font-weight: 800; color: var(--text); margin: 4px 0 0; }

.daily-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.daily-state {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--green-light);
  background: var(--green-dim);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.daily-card.is-completed {
  border-color: rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.04);
}

.daily-reference {
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.mission-text { color: var(--text-dim); line-height: 1.6; font-size: 0.95rem; }

.verse {
  padding: 13px 16px;
  border-left: 3px solid var(--gold);
  background: var(--gold-glow);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.93rem;
  line-height: 1.55;
}

.daily-question {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.14);
}

.daily-question strong {
  color: var(--green-light);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.daily-question p { color: var(--text); line-height: 1.5; font-size: 0.95rem; }

.reward-row, .mission-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.reward {
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--gold-light);
  background: var(--gold-glow);
  border: 1px solid rgba(200,146,58,0.18);
  font-size: 0.8rem;
  font-weight: 800;
}

.mission-actions button {
  width: 100%;
  border-radius: var(--r-md);
  min-height: 52px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
  font-size: 0.95rem;
  transition: background 200ms, transform 130ms;
}

.mission-actions button:hover { background: var(--green-light); }
.mission-actions button:active { transform: scale(0.98); }
.mission-actions button:disabled {
  background: rgba(255,255,255,0.06);
  color: var(--text-faint);
  cursor: default;
  transform: none;
}

/* Compartilhar — botão secundário (ghost) */
.mission-actions .daily-share-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  font-weight: 700;
}
.mission-actions .daily-share-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.daily-share-btn svg { flex: none; }

.devflow-share-btn {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.13s ease;
}
.devflow-share-btn:hover { background: rgba(255, 255, 255, 0.1); }
.devflow-share-btn:active { transform: scale(0.98); }
.devflow-share-btn svg { flex: none; }

/* Progress bar (generic) */
.progress-wrap { display: grid; gap: 8px; }

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-label span { color: var(--text-dim); font-size: 0.78rem; font-weight: 800; }
.progress-label strong { color: var(--text); font-weight: 900; }

.progress-bar {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width 300ms ease;
}

.compact-progress { padding: 0; }

/* ─── Achievements ───────────────────────────────────────────── */
.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.achievement-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.achievement-group-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 4px;
  color: var(--gold);
}

.achievement-group-label span {
  font-size: 0.7rem;
  color: var(--text-faint);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.achievement {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s, opacity 0.2s;
}

.achievement.is-unlocked {
  border-color: color-mix(in srgb, var(--gold) 35%, transparent);
  background: color-mix(in srgb, var(--gold) 5%, var(--surface));
}

.achievement-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 1.3rem;
  background: var(--surface2);
  border: 1px solid var(--border);
}

.achievement.is-unlocked .achievement-icon {
  background: color-mix(in srgb, var(--gold) 15%, var(--surface2));
  border-color: color-mix(in srgb, var(--gold) 40%, transparent);
}

.achievement-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.achievement strong { font-size: 0.88rem; color: var(--text); line-height: 1.3; }
.achievement span { color: var(--text-faint); font-size: 0.75rem; line-height: 1.4; }
.achievement.is-unlocked span { color: var(--gold); font-weight: 700; }

.achievement.is-locked { opacity: 0.4; }

/* ─── Journal List ───────────────────────────────────────────── */
.journal-list, .annual-list {
  display: grid;
  gap: 8px;
  max-height: 480px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.journal-day {
  display: block;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.journal-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 38px;
}

.journal-day strong { display: block; font-size: 0.86rem; color: var(--text); }
.journal-day-head > div p { margin: 2px 0 0; color: var(--text-dim); font-size: 0.88rem; }
.journal-day-status { flex-shrink: 0; color: var(--text-faint); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; white-space: nowrap; }

.journal-day.is-completed { border-color: rgba(var(--accent-rgb), 0.28); background: rgba(var(--accent-rgb), 0.04); }
.journal-day.is-locked { opacity: 0.38; }
.journal-day.is-expandable .journal-day-head { cursor: pointer; }
.journal-day.is-expandable:hover { border-color: rgba(var(--accent-rgb), 0.45); }
.journal-expand-icon { display: inline-block; margin-left: 5px; font-size: 1rem; transition: transform 180ms ease; }
.journal-day.is-open .journal-expand-icon { transform: rotate(90deg); }

.journal-day-expanded {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.journal-day-expanded[hidden] { display: none; }
.journal-expanded-ref {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
.journal-expanded-reflection {
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.65;
  margin: 0;
}
.journal-expanded-section {
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  border: 1px solid var(--border);
}
.journal-expanded-section strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.journal-expanded-section p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
}
/* Note section (view + edit) */
.journal-note-section.has-note { border-color: rgba(var(--accent-rgb), 0.3); background: var(--green-dim); }
.journal-note-section.has-note .journal-note-head strong { color: var(--green-light); }
.journal-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.journal-note-head strong { margin-bottom: 0; }
.journal-note-edit-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--green-light);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 2px 4px;
}
.journal-note-edit-btn:hover { color: var(--text); }
.journal-note-text { font-size: 0.92rem; line-height: 1.55; margin: 0; color: var(--text); font-style: italic; }
.journal-note-text.is-empty { color: var(--text-faint); }

.journal-note-input {
  width: 100%;
  min-height: 96px;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.55;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  transition: border-color 180ms ease;
}
.journal-note-input::placeholder { color: var(--text-faint); }
.journal-note-input:focus { border-color: var(--green); }
.journal-note-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}
.journal-note-cancel, .journal-note-save {
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid var(--border);
}
.journal-note-cancel { background: none; color: var(--text-dim); }
.journal-note-cancel:hover { color: var(--text); }
.journal-note-save { background: var(--green); color: #fff; border-color: var(--green); }
.journal-note-save:hover { background: var(--green-light); }

/* ─── Annual Journey ─────────────────────────────────────────── */
.annual-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.annual-summary article {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.annual-summary span { color: var(--text-faint); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }
.annual-summary strong { font-size: 1.5rem; font-weight: 900; color: var(--text); }

.journey-path {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 7px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.path-node {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--text-faint);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 0.68rem;
  font-weight: 900;
}

.path-node.is-open { color: var(--green-light); background: var(--green-dim); border-color: rgba(var(--accent-rgb), 0.3); }
.path-node.is-done { color: #fff; background: linear-gradient(135deg, var(--gold), var(--clay)); border-color: transparent; box-shadow: 0 3px 10px rgba(200,146,58,0.25); }
.path-node.is-current { outline: 2px solid rgba(var(--accent-rgb), 0.4); outline-offset: 2px; }

.annual-week {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.annual-week-main { display: grid; gap: 6px; min-width: 0; }
.annual-week-main strong { font-size: 0.96rem; color: var(--text); }
.annual-week-main p { color: var(--text-dim); font-size: 0.86rem; line-height: 1.4; }
.annual-week-side { display: grid; align-content: space-between; justify-items: end; gap: 8px; min-width: 66px; flex-shrink: 0; }
.annual-week-side span { color: var(--text-faint); font-size: 0.7rem; font-weight: 900; text-transform: uppercase; }
.annual-week-side strong { color: var(--gold); font-size: 0.95rem; }

.annual-week.is-completed { border-color: rgba(var(--accent-rgb), 0.28); }
.annual-week.is-locked { opacity: 0.38; }

/* ─── Profile ────────────────────────────────────────────────── */
.profile-card { padding: 22px; display: grid; gap: 18px; }

.profile-card h4 {
  font-family: var(--font-serif);
  margin: 4px 0 6px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}

.profile-card p { color: var(--text-dim); line-height: 1.5; font-size: 0.92rem; }

.profile-stats { display: grid; gap: 8px; }
.profile-stats span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.88rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.profile-stats span:last-child { border-bottom: none; padding-bottom: 0; }
.profile-stats strong { color: var(--text); }

.items-list { display: grid; gap: 7px; }

.item-pill {
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--gold-light);
  background: var(--gold-glow);
  border: 1px solid rgba(200,146,58,0.14);
  font-size: 0.84rem;
  font-weight: 800;
}

/* ─── Attributes ─────────────────────────────────────────────── */
.attribute-grid { display: grid; gap: 10px; }

.attribute-card { padding: 14px 16px; display: grid; gap: 10px; }

.attribute-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.attribute-top strong { font-size: 0.93rem; color: var(--text); }
.attribute-top span { color: var(--gold); font-weight: 900; font-size: 0.88rem; }

/* ─── Phase List ─────────────────────────────────────────────── */
.phase-list { display: grid; gap: 8px; }

.phase-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
}

.phase-card > div { min-width: 0; }
.phase-card strong { color: var(--text); font-size: 0.96rem; }
.phase-card p { color: var(--text-dim); font-size: 0.86rem; line-height: 1.4; margin-top: 3px; }
.phase-card > span { flex-shrink: 0; color: var(--text-faint); font-size: 0.75rem; font-weight: 800; }
.phase-card.is-current { border-color: rgba(var(--accent-rgb), 0.35); background: rgba(var(--accent-rgb), 0.05); }

/* ═══════════════════════════════════════════════════════════════
   BOTTOM NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  height: 72px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(11,15,13,0.94);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-faint);
  border-radius: var(--r-sm);
  margin: 8px 3px;
  transition: color 200ms, background 200ms;
  position: relative;
}

.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }

.nav-item span {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-item:hover { color: var(--text-dim); }
.nav-item.is-active { color: var(--green-light); }

/* Active indicator dot */
.nav-item.is-active::before {
  content: "";
  position: absolute;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 8px var(--green-glow);
}

/* ═══════════════════════════════════════════════════════════════
   REWARD TOAST
   ═══════════════════════════════════════════════════════════════ */
.reward-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 60;
  max-width: min(90vw, 360px);
  border-radius: 999px;
  padding: 12px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--gold));
  box-shadow: var(--shadow-md);
  font-weight: 900;
  font-size: 0.9rem;
  opacity: 0;
  transform: translate(-50%, 10px) scale(0.96);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.reward-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* ═══════════════════════════════════════════════════════════════
   DEVOTIONAL FLOW
   ═══════════════════════════════════════════════════════════════ */
.devflow {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}

.devflow[hidden] { display: none; }

.devflow-bg {
  position: absolute;
  inset: 0;
  background: rgba(4,7,5,0.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.devflow-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 490px);
  max-height: calc(100dvh - 32px);
  border-radius: var(--r-xl);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.devflow-header {
  display: grid;
  grid-template-columns: 40px 1fr 64px;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border-soft);
}

.devflow-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-faint);
  background: rgba(255,255,255,0.05);
  font-size: 0.82rem;
  transition: background 180ms, color 180ms;
}

.devflow-close:hover { background: rgba(255,255,255,0.1); color: var(--text-dim); }

.devflow-progress {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.devflow-dot {
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  transition: background 280ms, width 280ms;
}

.devflow-dot.is-active { background: var(--green); width: 34px; }
.devflow-dot.is-done   { background: var(--gold); }

.devflow-label {
  justify-self: end;
  color: var(--text-faint);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.devflow-stage {
  overflow-y: auto;
  padding: 28px 24px;
  display: grid;
  align-content: start;
  gap: 18px;
  animation: panelIn 240ms ease both;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.step-verse    { background: linear-gradient(160deg, rgba(200,146,58,0.05) 0%, transparent 60%); }
.step-reflect  { background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.06) 0%, transparent 60%); }
.step-question { background: linear-gradient(160deg, rgba(74,142,168,0.06) 0%, transparent 60%); }
.step-mission  { background: linear-gradient(160deg, rgba(104,100,168,0.06) 0%, transparent 60%); }
.step-complete {
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.08) 0%, transparent 60%);
  text-align: center;
  align-content: center;
  min-height: 280px;
}

.devflow-verse-icon { font-size: 2rem; line-height: 1; }

.devflow-verse-ref {
  color: var(--clay);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.devflow-verse-text {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3.5vw, 1.42rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
  color: var(--gold-light);
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}

.devflow-scripture {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.devflow-scripture-text {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}
.devflow-scripture-source {
  display: block;
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.devflow-body-label {
  color: var(--green-light);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: -6px;
}

.devflow-body-text { color: var(--text-dim); font-size: 1rem; line-height: 1.65; margin: 0; }

.devflow-question-box {
  padding: 18px;
  border-radius: var(--r-md);
  background: rgba(74,142,168,0.07);
  border: 1px solid rgba(74,142,168,0.16);
}

.devflow-question-box p {
  font-family: var(--font-serif);
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

.devflow-pause-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ─── Devflow: Caderno step ──────────────────────────────────── */
.devflow-note-prompt {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--green-dim);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--accent);
}

.devflow-note-input {
  width: 100%;
  min-height: 130px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-raised);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.97rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  transition: border-color 180ms ease;
}
.devflow-note-input::placeholder { color: var(--text-faint); }
.devflow-note-input:focus { border-color: var(--accent); }

.devflow-skip-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 0.82rem;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}
.devflow-skip-btn:hover { color: var(--text-dim); }

.devflow-mission-box {
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--green-dim);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.devflow-mission-box p {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
}

.devflow-complete-icon {
  font-size: 3.6rem;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
  animation: celebratePop 500ms cubic-bezier(0.34,1.56,0.64,1) both;
}

.devflow-complete-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.devflow-complete-sub {
  color: var(--text-dim);
  font-size: 0.93rem;
  line-height: 1.55;
  margin: 0 0 18px;
}

.devflow-rewards { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.devflow-footer {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border-soft);
}

.devflow-btn {
  border-radius: var(--r-md);
  min-height: 50px;
  font-weight: 800;
  font-size: 0.93rem;
  transition: transform 130ms ease, opacity 130ms ease;
}

.devflow-btn:active { transform: scale(0.97); }

.devflow-back {
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  font-size: 1.1rem;
  border: 1px solid var(--border);
}

.devflow-back:hover { background: rgba(255,255,255,0.09); }

.devflow-next {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.28);
}

.devflow-next:hover { background: var(--green-light); }

.devflow-next.is-finish {
  background: linear-gradient(135deg, var(--gold), var(--clay));
  box-shadow: 0 8px 22px rgba(200,146,58,0.28);
}

/* ═══════════════════════════════════════════════════════════════
   PHASE CELEBRATION
   ═══════════════════════════════════════════════════════════════ */
.phase-celebrate {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  background: rgba(4,7,5,0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.phase-celebrate[hidden] { display: none; }

.phase-celebrate-inner {
  display: grid;
  gap: 12px;
  text-align: center;
  padding: 40px 32px;
  border-radius: var(--r-xl);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  max-width: 300px;
  box-shadow: var(--shadow-lg);
}

.phase-celebrate-icon {
  font-size: 4rem;
  line-height: 1;
  animation: celebratePop 600ms cubic-bezier(0.34,1.56,0.64,1) both;
}

.phase-celebrate-inner h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-light);
  margin: 0;
}

.phase-celebrate-inner > p { color: var(--text-dim); }
.phase-celebrate-inner .devflow-next { margin-top: 8px; }

/* ═══════════════════════════════════════════════════════════════
   OS MARCOS — milestone timeline + celebration
   ═══════════════════════════════════════════════════════════════ */
.milestone-intro {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: -4px 0 14px;
}

.milestone-timeline {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  margin-bottom: 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.milestone-timeline::-webkit-scrollbar { height: 4px; }
.milestone-timeline::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.milestone-node {
  flex: 0 0 auto;
  width: 118px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  padding: 16px 10px 14px;
  border-radius: var(--r-md);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.milestone-node-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 2px;
}

.milestone-node-title {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.25;
}
.milestone-node-phase {
  font-size: 0.62rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
}
.milestone-node-week {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.milestone-node.is-done {
  border-color: var(--gold);
  box-shadow: 0 0 22px -8px var(--gold);
}
.milestone-node.is-done .milestone-node-badge {
  border-color: var(--gold);
  box-shadow: 0 0 16px -4px var(--gold);
}
.milestone-node.is-done .milestone-node-title { color: var(--gold-light); font-weight: 700; }

.milestone-node.is-next { border-color: var(--green-light); }
.milestone-node.is-next .milestone-node-badge {
  border-color: var(--green-light);
  color: var(--green-light);
}

.milestone-node.is-locked { opacity: 0.48; }
.milestone-node.is-locked .milestone-node-title { color: var(--text-faint); }

.milestone-celebrate {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: grid;
  place-items: center;
  background: rgba(4,7,5,0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}
.milestone-celebrate[hidden] { display: none; }

.milestone-celebrate-inner {
  display: grid;
  gap: 10px;
  text-align: center;
  padding: 44px 32px;
  border-radius: var(--r-xl);
  background: var(--bg-raised);
  border: 1px solid var(--gold);
  max-width: 320px;
  box-shadow: 0 0 60px -12px var(--gold), var(--shadow-lg);
}

.milestone-celebrate-trophy {
  font-size: 4.4rem;
  line-height: 1;
  animation: celebratePop 600ms cubic-bezier(0.34,1.56,0.64,1) both;
}

.milestone-celebrate-inner h3 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0;
}

.milestone-celebrate-phase {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--gold);
  margin: 0;
}

.milestone-celebrate-inner > p:not(.milestone-celebrate-phase) {
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

.milestone-celebrate-bonus {
  display: inline-block;
  margin: 4px auto 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--green-light);
  font-size: 0.82rem;
  font-weight: 800;
}

.milestone-celebrate-inner .devflow-next { margin-top: 10px; }

/* ═══════════════════════════════════════════════════════════════
   TUTORIAL / GUIA
   ═══════════════════════════════════════════════════════════════ */
.section-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tutorial-help-btn {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tutorial-help-btn:hover {
  color: var(--green-light);
  border-color: var(--green-light);
}
.tutorial-help-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e24b4a;
  border: 2px solid var(--bg);
}
.tutorial-help-badge[hidden] { display: none; }

.tutorial {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4,7,5,0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}
.tutorial[hidden] { display: none; }

.tutorial-shell {
  width: 100%;
  max-width: 360px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

.tutorial-header {
  display: flex;
  justify-content: flex-end;
  padding: 12px 12px 0;
}
.tutorial-close {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 1rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.tutorial-close:hover { color: var(--text); }

.tutorial-stage {
  padding: 4px 28px 8px;
  text-align: center;
  overflow-y: auto;
}

.tutorial-icon {
  font-size: 3.4rem;
  line-height: 1;
  margin: 8px 0 16px;
  animation: celebratePop 500ms cubic-bezier(0.34,1.56,0.64,1) both;
}

.tutorial-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}
.tutorial-body {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}
.tutorial-body strong { color: var(--green-light); font-weight: 700; }

.tutorial-gardens {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 6px 0 18px;
}
.tutorial-garden {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.tutorial-garden-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.tutorial-garden-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}
.tutorial-garden span {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.tutorial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 22px;
}
.tutorial-dots {
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.tutorial-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: width 0.2s ease, background 0.2s ease, border-radius 0.2s ease;
}
.tutorial-dot.is-active {
  width: 18px;
  border-radius: 4px;
  background: var(--green-light);
}
.tutorial-back {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
}
.tutorial-back:hover { color: var(--text); border-color: var(--text-faint); }
.tutorial-next {
  flex: 0 0 auto;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}
.tutorial-next:hover { background: var(--green-light); }

/* ═══════════════════════════════════════════════════════════════
   AVATARES
   ═══════════════════════════════════════════════════════════════ */
.user-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--green);
  box-shadow: 0 0 14px -4px var(--green);
  line-height: 1;
  flex: 0 0 auto;
}
.greeting-avatar {
  width: 46px;
  height: 46px;
  font-size: 1.5rem;
  background: rgba(0,0,0,0.28);
}
.profile-avatar {
  width: 64px;
  height: 64px;
  font-size: 2.1rem;
}

.profile-card {
  grid-template-columns: auto 1fr;
  align-items: center;
}
.profile-card .profile-stats { grid-column: 1 / -1; }

.avatar-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 12px;
}
.avatar-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  border-radius: var(--r-md);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.1s ease;
}
.avatar-option:hover:not(.is-locked) { border-color: var(--green-light); }
.avatar-option:active:not(.is-locked) { transform: scale(0.96); }
.avatar-option-emoji {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 1.5rem;
  line-height: 1;
}
.avatar-option-name {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.2;
}
.avatar-option.is-active {
  border-color: var(--green);
  background: var(--green-dim);
}
.avatar-option.is-active .avatar-option-emoji {
  border-color: var(--green);
  box-shadow: 0 0 12px -3px var(--green);
}
.avatar-option.is-active .avatar-option-name { color: var(--green-light); }
.avatar-option.is-locked {
  cursor: default;
  opacity: 0.55;
}
.avatar-option.is-locked .avatar-option-emoji {
  font-size: 1.1rem;
  color: var(--text-faint);
}

/* ═══════════════════════════════════════════════════════════════
   IDIOMA / LANGUAGE
   ═══════════════════════════════════════════════════════════════ */
.welcome-lang {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}
.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.welcome-lang .lang-flag {
  padding: 7px 12px;
  font-size: 1.1rem;
}
.lang-flag:hover { color: var(--text); border-color: var(--text-faint); }
.lang-flag.is-active {
  border-color: var(--gold);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--gold);
}
.lang-picker {
  display: flex;
  gap: 12px;
}
.lang-picker .lang-flag { flex: 1; }

/* ═══════════════════════════════════════════════════════════════
   UTILITIES & ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
.xp-pop {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  color: var(--gold-light);
  font-weight: 900;
  font-size: 1.25rem;
  text-shadow: 0 0 20px rgba(200,146,58,0.6);
  animation: xpFloat 1.2s ease-out both;
}

@keyframes sunPulse {
  0%, 100% { box-shadow: 0 0 0 16px rgba(240,192,64,0.1), 0 0 60px rgba(255,210,60,0.4), 0 0 120px rgba(255,180,30,0.2); }
  50%       { box-shadow: 0 0 0 24px rgba(240,192,64,0.07), 0 0 80px rgba(255,210,60,0.55), 0 0 160px rgba(255,180,30,0.3); }
}

@keyframes treeBreathe {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%       { transform: translateX(-50%) scale(1.012); }
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes celebratePop {
  from { transform: scale(0.3) rotate(-10deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes xpFloat {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-80px) scale(1.35); }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .game-screen {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    grid-template-rows: 1fr auto;
    min-height: 100dvh;
    padding-bottom: 0;
  }

  .garden-hero {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 100dvh;
    position: sticky;
    top: 0;
    height: 100dvh;
  }

  .garden, .garden-svg { min-height: 100dvh; height: 100dvh; }

  .content-area {
    grid-column: 2;
    grid-row: 1;
    overflow-y: auto;
    max-height: calc(100dvh - 72px);
    padding: 24px 20px 12px;
  }

  .bottom-nav {
    grid-column: 2;
    grid-row: 2;
    position: static;
    height: 72px;
  }

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

  .welcome-screen { grid-template-columns: 0.9fr 1.1fr; }
}

@media (max-width: 480px) {
  .welcome-screen {
    grid-template-columns: 1fr;
  }

  .welcome-visual {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.35;
  }

  .welcome-overlay {
    background: linear-gradient(to bottom,
      rgba(11,15,13,0.5) 0%,
      rgba(11,15,13,0.92) 60%,
      rgba(11,15,13,0.98) 100%
    );
  }

  .welcome-content {
    position: relative;
    z-index: 1;
    padding: 52px 24px 40px;
    min-height: 100dvh;
    align-content: end;
    gap: 18px;
    padding-bottom: 48px;
  }

  h1 { font-size: 3rem; }


  .journey-path { grid-template-columns: repeat(7, 1fr); }

  .annual-week {
    flex-direction: column;
  }

  .annual-week-side {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-width: unset;
    justify-items: start;
  }
}

/* ─── Conta / Sincronização ─────────────────────────────────── */
.account-panel {
  margin-bottom: 8px;
}

.account-desc {
  margin: 0 0 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border-radius: 14px;
  padding: 12px 18px;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.account-btn:active {
  transform: scale(0.98);
}
.account-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.account-google {
  width: 100%;
  color: #1f1f1f;
  background: #fff;
  border: 1px solid #fff;
}
.account-google:hover {
  background: #f3f3f3;
}

.account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.account-id {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.account-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.account-id strong {
  display: block;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
}

.account-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--text-dim);
}

.account-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
}
.account-dot.is-ok {
  background: var(--accent-light);
}
.account-dot.is-syncing {
  background: var(--gold-light);
  animation: account-pulse 1s ease-in-out infinite;
}
.account-dot.is-error {
  background: #d9685a;
}

@keyframes account-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.account-signout {
  flex: none;
  font-size: 0.82rem;
  padding: 8px 14px;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
}
.account-signout:hover {
  color: var(--text);
  border-color: var(--text-faint);
}

.account-delete {
  display: block;
  margin: 12px auto 0;
  font: inherit;
  font-size: 0.8rem;
  color: #d9685a;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}
.account-delete:hover {
  color: #e8796b;
}
.account-delete:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* Recuperar conta na tela de boas-vindas */
.welcome-restore {
  display: none; /* revelado pelo sync.js quando pronto */
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.welcome-or {
  position: relative;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.welcome-or::before,
.welcome-or::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38px;
  height: 1px;
  background: var(--border);
}
.welcome-or::before { right: calc(100% + 12px); }
.welcome-or::after { left: calc(100% + 12px); }

.welcome-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1f1f1f;
  background: #fff;
  border: none;
  border-radius: 14px;
  padding: 12px 20px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, background 0.2s ease;
}
.welcome-google-btn:hover { background: #f3f3f3; }
.welcome-google-btn:active { transform: scale(0.98); }
.welcome-google-btn:disabled { opacity: 0.6; cursor: progress; }

/* Lembrete diário (push) */
.notif-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.notif-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.notif-text strong {
  font-size: 0.9rem;
}
.notif-text span {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-dim);
}

.notif-hint {
  margin: 8px 2px 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-faint);
}

/* Switch acessível */
.switch {
  flex: none;
  position: relative;
  width: 46px;
  height: 27px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
.switch.is-on {
  background: var(--accent);
}
.switch.is-on::after {
  transform: translateX(19px);
}
.switch.is-busy {
  opacity: 0.6;
  cursor: progress;
}
.switch:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Link da Política de Privacidade (rodapé do Perfil) */
.privacy-link {
  text-align: center;
  margin: 22px 0 4px;
}
.privacy-link a {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.18s ease;
}
.privacy-link a:hover {
  color: var(--text);
}

/* ─── Tutorial de instalação (PWA) ──────────────────────────── */
.welcome-install {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 16px auto 0;
  font: inherit;
  font-size: 0.82rem;
  color: var(--text-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.18s ease;
}
.welcome-install:hover { color: var(--text); }
.welcome-install svg { flex: none; }

.install-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.install-overlay.is-hidden { display: none; }
.install-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.install-sheet {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  padding: 26px 22px 32px;
  box-shadow: var(--shadow-md);
  animation: install-up 0.28s ease;
}
@keyframes install-up {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@media (min-width: 560px) {
  .install-overlay { align-items: center; }
  .install-sheet { border-radius: 22px; border-bottom: 1px solid var(--border); }
}
.install-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 50%;
}
.install-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.install-head { text-align: center; margin-bottom: 16px; }
.install-logo { font-size: 1.8rem; }
.install-head h3 {
  font-family: "Lora", serif;
  font-size: 1.2rem;
  margin: 6px 0 4px;
  color: var(--text);
}
.install-sub { font-size: 0.85rem; color: var(--text-dim); margin: 0; line-height: 1.5; }
.install-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
}
.install-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.22);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.install-ico { flex: none; color: var(--gold-light); display: flex; }
.install-txt { font-size: 0.88rem; color: var(--text); line-height: 1.4; }
.install-now {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 6px;
  padding: 13px;
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: var(--green);
  border: none;
  border-radius: 14px;
  cursor: pointer;
}
.install-now:hover { background: var(--green-light); }
.install-now-hint { text-align: center; font-size: 0.76rem; color: var(--text-faint); margin: 0 0 10px; }
.install-or {
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 8px 0 2px;
}
.install-inapp { text-align: center; padding: 8px 4px; }
.install-inapp-ico { color: var(--gold-light); display: inline-flex; }
.install-inapp p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.55; margin: 12px 0 16px; }
.install-copy {
  font: inherit;
  font-size: 0.85rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 18px;
  cursor: pointer;
}
.install-copy:hover { background: rgba(255, 255, 255, 0.05); }
