/* ============================================================
   GUIDAX — Identidade visual (baseada nos mockups)
   ============================================================ */
:root {
  --navy-900: #081026;
  --navy-800: #0B1B3F;
  --navy-700: #12245A;
  --navy-600: #1A3273;

  --blue-600: #0B63E5;
  --blue-500: #1E6FEB;
  --blue-100: #E3EDFD;

  --gold-500: #F0B429;
  --gold-300: #FFD86B;

  --green-500: #22A954;
  --green-100: #E3F6EA;
  --orange-500: #F59E0B;
  --orange-100: #FEF3DC;
  --red-500: #E5484D;
  --purple-500: #8B5CF6;
  --purple-100: #F0E9FE;

  --bg: #F4F6FB;
  --card: #FFFFFF;
  --line: #E6EBF4;

  --text-strong: #0E2A66;
  --text: #33456B;
  --text-soft: #7A88A8;

  --radius: 18px;
  --shadow: 0 2px 10px rgba(14, 42, 102, .06);

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Regra global: qualquer elemento com .hidden some da tela.
   (A ausência desta regra fazia as páginas se empilharem.) */
.hidden { display: none !important; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
}

h1, h2, h3, .focus-title { font-family: var(--font-display); color: var(--text-strong); }

button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: 242px;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #DCE4F5;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.sidebar-logo { text-align: center; margin-bottom: 18px; }
.logo-img { width: 170px; max-width: 100%; display: block; margin: 0 auto; }
.logo-tagline {
  display: block;
  font-size: 9px;
  letter-spacing: 2.4px;
  color: var(--gold-500);
  font-weight: 800;
  margin-top: 4px;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 9px 12px;
  margin-bottom: 16px;
}
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.profile-info { flex: 1; min-width: 0; }
.profile-info strong { display: block; color: #fff; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-info span { font-size: 12px; color: #9FB0D6; }
.profile-logout {
  margin-left: auto; flex-shrink: 0;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: none; border-radius: 9px; cursor: pointer;
  background: rgba(255,255,255,.07); color: #9FB0D6;
  transition: background .15s, color .15s;
}
.profile-logout svg { width: 18px; height: 18px; }
.profile-logout:hover { background: rgba(229,72,77,.22); color: #fff; }

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #C7D3EE;
  font-weight: 700;
  font-size: 14.5px;
  padding: 10px 14px;
  border-radius: 12px;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active {
  background: linear-gradient(90deg, var(--blue-600), #2E86FF);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 99, 229, .45);
}
.nav-icon { width: 19px; height: 19px; display: inline-flex; }
.nav-icon svg { width: 100%; height: 100%; }
.nav-item .nav-icon { color: var(--gold-500); }
.nav-item.active .nav-icon { color: #fff; }

.guidax-tip {
  margin-top: auto;
  background: #F2F6FF;
  color: var(--text-strong);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 12.5px;
  position: relative;
  z-index: 2;
}
.guidax-tip strong { color: var(--blue-600); display: block; margin-bottom: 3px; font-size: 13px; }

.mascot-slot { text-align: center; margin-top: -6px; z-index: 1; }
.mascot-slot img { width: 190px; max-width: 100%; display: block; margin: 0 auto; }

/* ============================================================
   ÁREA PRINCIPAL / TOPBAR
   ============================================================ */
.main { flex: 1; padding: 26px 30px 40px; min-width: 0; }

/* Menu mobile (hambúrguer + drawer) — escondidos no desktop */
.nav-toggle { display: none; }
.nav-backdrop { display: none; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.greeting h1 { font-size: 30px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.greeting .sun { width: 28px; height: 28px; color: var(--gold-500); display: inline-flex; }
.greeting p { color: var(--text-soft); font-weight: 600; margin-top: 2px; }

.topbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.icon-btn {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-strong);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.icon-btn svg { width: 21px; height: 21px; }
.badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--red-500); color: #fff;
  font-size: 11px; font-weight: 800;
  min-width: 19px; height: 19px;
  border-radius: 50%;
  display: grid; place-items: center;
}

.date-chip, .orb-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 14px;
  box-shadow: var(--shadow);
}
.date-chip svg { width: 22px; height: 22px; color: var(--blue-600); }
.date-chip small { display: block; color: var(--text-soft); font-weight: 700; font-size: 11.5px; }
.date-chip strong { color: var(--text-strong); font-size: 14.5px; }

.orb-img { width: 42px; height: 42px; object-fit: contain; }
.orb-info strong { display: block; color: var(--text-strong); font-size: 13.5px; }
.orb-info small { color: var(--text-soft); font-weight: 700; font-size: 11.5px; }
.orb-bar { width: 90px; height: 6px; background: var(--line); border-radius: 99px; margin-top: 3px; }
.orb-bar-fill { height: 100%; width: 0%; border-radius: 99px;
  background: linear-gradient(90deg, var(--blue-500), #59A1FF); transition: width .4s; }

/* ============================================================
   GRID E CARDS
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}
.grid.hidden { display: none; }
.col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.card-head.compact { align-items: center; }
.card-head h2 { font-size: 18.5px; }
.card-head p { font-size: 12.5px; color: var(--text-soft); font-weight: 600; }
.see-all { margin-left: auto; color: var(--blue-600); font-weight: 800; font-size: 12.5px; white-space: nowrap; }

.card-badge {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
}
.card-badge svg { width: 20px; height: 20px; }
.card-badge.green { background: var(--green-100); color: var(--green-500); }
.card-badge.blue { background: var(--blue-100); color: var(--blue-600); }
.card-badge.gold { background: #FDF3D7; color: var(--gold-500); }

.card-footer-btn {
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: #F8FAFE;
  color: var(--blue-600);
  font-weight: 800;
  font-size: 13.5px;
  border-radius: 12px;
  padding: 11px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.card-footer-btn svg { width: 15px; height: 15px; }
.card-footer-btn:hover { background: var(--blue-100); }

/* ============================================================
   HÁBITOS
   ============================================================ */
.habit-list { display: flex; flex-direction: column; }
.habit {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.habit:last-child { border-bottom: none; }

.habit-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: #F2F6FF; color: var(--blue-600);
  display: grid; place-items: center; flex-shrink: 0;
}
.habit-icon svg { width: 22px; height: 22px; }

.habit-info { flex: 1; min-width: 0; }
.habit-info strong { display: block; color: var(--text-strong); font-size: 14.5px; }
.habit-info small { color: var(--text-soft); font-weight: 600; font-size: 12px; }

.time-pill {
  font-weight: 800; font-size: 13px;
  padding: 5px 12px; border-radius: 99px;
  border: 1.5px solid;
}
.time-pill.done { color: var(--green-500); border-color: #BFE8CD; background: var(--green-100); }
.time-pill.pending { color: var(--orange-500); border-color: #F8DFAE; background: var(--orange-100); }

.check-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid #D4DCEC; background: #fff;
  display: grid; place-items: center; color: transparent;
  transition: all .15s;
  flex-shrink: 0;
}
.check-btn svg { width: 16px; height: 16px; }
.check-btn.done { background: var(--green-500); border-color: var(--green-500); color: #fff; }

/* ============================================================
   MISSÕES
   ============================================================ */
.mission-list { display: flex; flex-direction: column; }
.mission {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.mission:last-child { border-bottom: none; }

.mission-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: #FDF3D7; color: var(--gold-500);
  display: grid; place-items: center; flex-shrink: 0;
}
.mission-icon svg { width: 22px; height: 22px; }

.mission-info { flex: 1; min-width: 0; }
.mission-info strong { display: block; color: var(--text-strong); font-size: 14.5px; }
.mission-info small { color: var(--text-soft); font-weight: 600; font-size: 12px; }

.mission-time { font-weight: 800; color: var(--text-strong); font-size: 14px; }

.play-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--blue-500); background: #fff; color: var(--blue-500);
  display: grid; place-items: center;
  transition: all .15s;
  flex-shrink: 0;
}
.play-btn svg { width: 15px; height: 15px; }
.play-btn:hover { background: var(--blue-500); color: #fff; }
.play-btn.done { border-color: var(--green-500); background: var(--green-500); color: #fff; }

/* ============================================================
   FOCO DE AGORA
   ============================================================ */
#card-focus { min-height: 170px; }
.focus-title { font-size: 18.5px; margin-bottom: 10px; }
.focus-empty { color: var(--text-soft); font-weight: 600; font-size: 13.5px; padding: 14px 4px; }
.focus-empty svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--blue-500); }

.focus-active { display: flex; gap: 16px; align-items: center; }
.focus-ring { position: relative; width: 128px; height: 128px; flex-shrink: 0; }
.focus-ring svg.ring { width: 128px; height: 128px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 9; }
.ring-fg { fill: none; stroke: var(--blue-500); stroke-width: 9; stroke-linecap: round;
  transition: stroke-dashoffset .5s linear; }
.focus-time {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.focus-time strong { font-family: var(--font-display); font-size: 25px; color: var(--text-strong); }
.focus-time small { font-size: 10.5px; color: var(--text-soft); font-weight: 700; }

.focus-details { flex: 1; }
.focus-details .f-name { display: flex; align-items: center; gap: 8px;
  color: var(--text-strong); font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.focus-details .f-name svg { width: 19px; height: 19px; color: var(--blue-600); }
.focus-details p { font-size: 12.5px; color: var(--text-soft); font-weight: 600; margin-bottom: 12px; }

.focus-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  border-radius: 11px; font-weight: 800; font-size: 13px;
  padding: 9px 14px; border: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn svg { width: 14px; height: 14px; }
.btn.primary { background: var(--blue-600); color: #fff; }
.btn.primary:hover { background: var(--blue-500); }
.btn.outline { background: #fff; border: 1.5px solid var(--line); color: var(--blue-600); }
.btn.outline:hover { background: var(--blue-100); }

/* ============================================================
   SONHOS
   ============================================================ */
.dreams-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dream {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 10px; text-align: center;
}
.dream-thumb {
  width: 100%; aspect-ratio: 1; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  color: var(--gold-300);
  display: grid; place-items: center; margin-bottom: 8px;
}
.dream-thumb svg { width: 34px; height: 34px; }
.dream small { display: block; font-size: 11px; font-weight: 700; color: var(--text); line-height: 1.3; min-height: 28px; }
.dream .progress-line { margin-top: 7px; }
.dream .pct { font-size: 10.5px; color: var(--text-soft); font-weight: 800; }

.dream.add {
  display: grid; place-items: center;
  border-style: dashed; color: var(--text-soft);
  font-weight: 700; font-size: 12px; cursor: pointer;
}
.dream.add .plus {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px dashed #C4CFE5; color: var(--blue-500);
  display: grid; place-items: center; margin: 0 auto 6px;
}
.dream.add .plus svg { width: 17px; height: 17px; }

.progress-line { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; background: var(--blue-500); }
.progress-fill.green { background: var(--green-500); }
.progress-fill.gold { background: var(--gold-500); }
.progress-fill.purple { background: linear-gradient(90deg, #7C3AED, #A78BFA); }

/* ============================================================
   SEMANA (MEUS HÁBITOS)
   ============================================================ */
.week-row { display: flex; justify-content: space-between; padding: 4px 8px; }
.week-day { text-align: center; }
.week-day span { display: block; font-weight: 800; color: var(--text-strong); font-size: 13.5px; margin-bottom: 8px; }
.week-dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
}
.week-dot svg { width: 15px; height: 15px; }
.week-dot.done { background: var(--green-500); }
.week-dot.partial { background: var(--gold-500); }
.week-dot.none { background: #fff; border: 2px solid #D4DCEC; }

/* ============================================================
   CONQUISTAS
   ============================================================ */
.ach-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ach { text-align: center; }
.ach-medal {
  width: 62px; height: 62px; margin: 0 auto 7px;
  display: grid; place-items: center;
  color: #fff;
  clip-path: polygon(50% 0%, 81% 9%, 98% 35%, 98% 65%, 81% 91%, 50% 100%, 19% 91%, 2% 65%, 2% 35%, 19% 9%);
}
.ach-medal svg { width: 26px; height: 26px; }
.ach-medal.gold { background: linear-gradient(160deg, #F7C948, #DE911D); }
.ach-medal.green { background: linear-gradient(160deg, #57C983, #199847); }
.ach-medal.blue { background: linear-gradient(160deg, #4C9AFF, #0B63E5); }
.ach-medal.purple { background: linear-gradient(160deg, #A78BFA, #7C3AED); }
.ach strong { display: block; font-size: 11.5px; color: var(--text-strong); line-height: 1.25; }
.ach small { font-size: 10.5px; color: var(--text-soft); font-weight: 700; }

/* ============================================================
   BIBLIOTECA / ARTEFATOS
   ============================================================ */
.library-preview, .next-artifact { display: flex; gap: 14px; align-items: center; }
.artefact-thumb {
  width: 86px; height: 108px; object-fit: cover;
  border-radius: 12px; flex-shrink: 0;
  border: 2px solid var(--gold-500);
  background: var(--navy-700);
}
.artefact-thumb.locked { border-color: #C4CFE5; filter: grayscale(.4); }
.library-preview small, .next-artifact small { color: var(--text-soft); font-weight: 700; font-size: 11.5px; display: block; }
.library-preview strong { color: var(--text-strong); font-size: 15.5px; }
.library-preview p { font-size: 12.5px; color: var(--text); font-weight: 600; margin: 3px 0 8px; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 800;
  padding: 4px 10px; border-radius: 99px;
}
.tag svg { width: 12px; height: 12px; }
.tag.done { background: var(--green-100); color: var(--green-500); }
.tag.purple { background: var(--purple-100); color: var(--purple-500); margin: 4px 0 8px; }

.ss-missing { font-family: var(--font-display); font-size: 22px; color: var(--purple-500); display: block; }
.progress-label { margin-top: 4px; }

/* ============================================================
   RADAR
   ============================================================ */
#radar { display: block; width: 100%; height: auto; }
.radar-legend {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  justify-content: center; margin-top: 6px;
  font-size: 10.5px; font-weight: 700; color: var(--text-soft);
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.dot.g { background: var(--green-500); }
.dot.b { background: var(--blue-500); }
.dot.y { background: var(--gold-500); }
.dot.r { background: var(--red-500); }

/* ============================================================
   PÁGINA MISSÕES (Sprint 2)
   ============================================================ */
.missions-card { padding: 20px 20px 14px; }

.missions-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 14px; flex-wrap: wrap; margin-bottom: 16px;
}

.tabs { display: flex; align-items: center; gap: 22px; border-bottom: 2px solid var(--line); margin-bottom: 14px; }
.tab {
  background: none; border: none;
  font-weight: 800; font-size: 14px; color: var(--text-soft);
  padding: 8px 2px 11px; margin-bottom: -2px;
  border-bottom: 3px solid transparent;
  white-space: nowrap; flex-shrink: 0;
}
.tab.active { color: var(--blue-600); border-bottom-color: var(--blue-600); }
.tab:hover { color: var(--text-strong); }

.filters-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.search-box {
  flex: 1; min-width: 220px;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 0 12px; background: #F8FAFE;
}
.search-box svg { width: 16px; height: 16px; color: var(--text-soft); }
.search-box input {
  flex: 1; border: none; background: none; outline: none;
  font-family: inherit; font-weight: 600; font-size: 13.5px;
  color: var(--text-strong); padding: 11px 0;
}
.select {
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--text-strong);
  font-family: inherit; font-weight: 700; font-size: 13px;
  padding: 10px 12px; outline: none;
}

.missions-body { display: flex; gap: 16px; align-items: flex-start; }
.missions-table-wrap { flex: 1; min-width: 0; overflow-x: auto; }

.missions-table { width: 100%; border-collapse: collapse; }
.missions-table th {
  text-align: left; font-size: 11px; letter-spacing: .8px;
  color: var(--text-soft); font-weight: 800;
  padding: 10px 10px; background: #F5F8FD;
}
.missions-table th:first-child { border-radius: 10px 0 0 10px; }
.missions-table th:last-child { border-radius: 0 10px 10px 0; }
.missions-table td {
  padding: 12px 10px; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 600; vertical-align: middle;
}
.missions-table tr.selected td { background: var(--blue-100); }
.missions-table tr:hover td { background: #F5F8FD; cursor: pointer; }
.missions-table tr.selected:hover td { background: var(--blue-100); }

.m-cell { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.m-cell .mission-icon { width: 36px; height: 36px; }
.m-cell .mission-icon svg { width: 19px; height: 19px; }
.m-cell strong { display: block; color: var(--text-strong); font-size: 13.5px; }
.m-cell small { color: var(--text-soft); font-size: 11.5px; }

.cat-tag {
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 99px;
  white-space: nowrap;
}
.cat-Cognitiva { background: var(--green-100); color: var(--green-500); }
.cat-Criativa { background: var(--purple-100); color: var(--purple-500); }
.cat-Corporal { background: var(--blue-100); color: var(--blue-600); }
.cat-Responsabilidade { background: var(--orange-100); color: var(--orange-500); }

.diff { white-space: nowrap; }
.diff small { display: block; color: var(--text); font-weight: 700; font-size: 11.5px; margin-bottom: 3px; }
.diff-dots { display: flex; gap: 3px; }
.diff-dot { width: 9px; height: 9px; border-radius: 50%; background: #E2E8F4; }
.diff-dot.on-easy { background: var(--green-500); }
.diff-dot.on-med { background: var(--orange-500); }
.diff-dot.on-hard { background: var(--red-500); }

.status-tag {
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 99px;
  white-space: nowrap;
}
.st-andamento { background: var(--blue-100); color: var(--blue-600); }
.st-concluida { background: var(--green-100); color: var(--green-500); }
.st-pausada { background: var(--orange-100); color: var(--orange-500); }
.st-arquivada { background: #EEF1F7; color: var(--text-soft); }
.st-nao { background: #EEF1F7; color: var(--text-soft); }

.row-actions { display: flex; gap: 5px; }
.mini-btn {
  width: 30px; height: 30px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  display: grid; place-items: center;
}
.mini-btn svg { width: 14px; height: 14px; }
.mini-btn:hover { background: var(--blue-100); color: var(--blue-600); }
.mini-btn.danger:hover { background: #FDEBEC; color: var(--red-500); }

/* Botão "+ Novo" no cabeçalho de um card */
.card-head .add-mini {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: var(--blue-600); font-weight: 800; font-size: 12.5px;
}
.card-head .add-mini:hover { text-decoration: underline; }

/* Mini-ações (editar/apagar) que aparecem num item de lista */
.icon-mini {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  border: none; background: none; color: var(--text-soft); cursor: pointer;
  display: grid; place-items: center; opacity: .55; transition: opacity .15s, background .15s;
}
.icon-mini svg { width: 14px; height: 14px; }
.habit:hover .icon-mini { opacity: 1; }
.icon-mini:hover { background: var(--blue-100); color: var(--blue-600); opacity: 1; }

/* Estado vazio dentro de uma lista (ex.: nenhum hábito ainda) */
.empty-hint {
  list-style: none; padding: 18px 14px; text-align: center;
  font-size: 12.5px; font-weight: 600; color: var(--text-soft); line-height: 1.5;
}
.empty-hint b { color: var(--blue-600); }

.table-count { font-size: 12px; color: var(--text-soft); font-weight: 700; margin-top: 12px; }

/* Painel de detalhes */
.mission-details {
  width: 280px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 14px;
  padding: 16px;
  position: sticky; top: 20px;
}
.mission-details.hidden { display: none; }
.md-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.md-head .mission-icon { width: 44px; height: 44px; }
.md-head strong { color: var(--text-strong); font-size: 15px; display: block; }
.md-head small { color: var(--text-soft); font-size: 12px; }
.md-close { margin-left: auto; background: none; border: none; color: var(--text-soft); font-size: 18px; }
.md-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; color: var(--text-soft);
}
.md-row > :last-child { color: var(--text-strong); }
.md-section { margin-top: 12px; }
.md-section h4 { font-size: 12px; color: var(--text-soft); letter-spacing: .5px; margin-bottom: 4px; }
.md-section p { font-size: 12.5px; color: var(--text); font-weight: 600; }
.md-reward {
  margin-top: 12px; display: flex; gap: 8px; align-items: center;
  background: #FDF3D7; border-radius: 12px; padding: 10px 12px;
  font-weight: 800; color: #8a6410; font-size: 13px;
}
.md-btns { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.md-btns .btn { flex: 1; justify-content: center; font-size: 12.5px; padding: 9px 8px; }
.btn.danger-outline { background: #fff; border: 1.5px solid #F6C7C9; color: var(--red-500); }
.btn.danger-outline:hover { background: #FDEBEC; }

/* Rodapé de estatísticas */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 18px;
}
.stat-box {
  border-radius: 14px; padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
}
.stat-box .s-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; }
.stat-box .s-icon svg { width: 20px; height: 20px; }
.stat-box strong { font-family: var(--font-display); font-size: 21px; display: block; line-height: 1.1; }
.stat-box small { font-weight: 700; font-size: 12px; }
.stat-blue { background: var(--blue-100); color: var(--blue-600); }
.stat-green { background: var(--green-100); color: var(--green-500); }
.stat-orange { background: var(--orange-100); color: var(--orange-500); }
.stat-purple { background: var(--purple-100); color: var(--purple-500); }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(8, 16, 38, .5);
  display: grid; place-items: center;
  padding: 20px;
}
.modal-backdrop.hidden { display: none; }
.modal {
  background: #fff; border-radius: 20px;
  padding: 24px; width: 100%; max-width: 520px;
  box-shadow: 0 20px 60px rgba(8,16,38,.3);
}
.modal h2 { font-size: 21px; margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12px; font-weight: 800; color: var(--text-soft);
}
.form-grid .span2 { grid-column: 1 / -1; }
.form-grid input, .form-grid select {
  border: 1px solid var(--line); border-radius: 11px;
  padding: 10px 12px; font-family: inherit;
  font-weight: 700; font-size: 13.5px; color: var(--text-strong);
  outline: none; background: #fff;
}
.form-grid input:focus, .form-grid select:focus { border-color: var(--blue-500); }
.modal-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

@media (max-width: 1100px) {
  .mission-details { display: none; }
  .mission-details.hidden { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   PÁGINA JORNADA (Sprint 3)
   ============================================================ */
.journey-grid { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.journey-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.journey-side { display: flex; flex-direction: column; gap: 18px; }
.journey-bottom { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }

/* Cenário do caminho de níveis */
.journey-scene {
  border-radius: 14px;
  min-height: 240px;
  background:
    radial-gradient(ellipse at 20% 110%, rgba(34, 169, 84, .25), transparent 45%),
    radial-gradient(ellipse at 85% -10%, rgba(240, 180, 41, .3), transparent 40%),
    linear-gradient(180deg, #BFD9FF 0%, #E6F0FF 55%, #F4E9FF 100%);
  position: relative;
  padding: 30px 20px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.journey-path {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; position: relative; z-index: 1;
}
.journey-path::before {
  content: '';
  position: absolute; left: 4%; right: 4%; top: 50%;
  height: 7px; margin-top: -22px;
  background: linear-gradient(90deg, var(--gold-300), #fff);
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(222, 145, 29, .35);
  z-index: -1;
}
.j-node { text-align: center; width: 110px; }
.j-dot {
  width: 52px; height: 52px; border-radius: 50%;
  margin: 0 auto 10px;
  display: grid; place-items: center;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(14, 42, 102, .25);
  color: #fff;
}
.j-dot svg { width: 22px; height: 22px; }
.j-dot.done { background: var(--green-500); }
.j-dot.current {
  background: radial-gradient(circle at 35% 30%, #4C9AFF, var(--blue-600));
  outline: 4px solid rgba(30, 111, 235, .3);
  transform: scale(1.15);
}
.j-dot.locked { background: #AEB9CF; }
.j-label {
  background: #fff; border-radius: 10px;
  padding: 6px 8px;
  box-shadow: 0 2px 8px rgba(14, 42, 102, .12);
}
.j-label strong { display: block; font-size: 11.5px; color: var(--text-strong); line-height: 1.25; }
.j-label small { font-size: 10px; font-weight: 800; }
.j-label small.s-done { color: var(--green-500); }
.j-label small.s-current { color: var(--blue-600); }
.j-label small.s-locked { color: var(--text-soft); }

/* Barra de progresso do nível */
.journey-progress {
  display: flex; gap: 20px; align-items: center;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.jp-level { display: flex; align-items: center; gap: 10px; }
.jp-badge {
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4C9AFF, var(--navy-700));
  color: var(--gold-300);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  border: 3px solid var(--gold-500);
}
.jp-level small { display: block; color: var(--text-soft); font-weight: 700; font-size: 11.5px; }
.jp-level strong { color: var(--text-strong); font-size: 14.5px; }
.jp-bar-wrap { flex: 1; min-width: 200px; }
.jp-bar-head {
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 800; color: var(--text-soft); margin-bottom: 5px;
}
.jp-bar-head strong { color: var(--text-strong); }
.jp-bar { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.jp-bar-fill { height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--blue-500), #59A1FF); transition: width .5s; }
.jp-reward {
  display: flex; align-items: center; gap: 10px;
  border-left: 1px solid var(--line); padding-left: 20px;
}
.jp-reward .s-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: #FDF3D7; color: var(--gold-500);
  display: grid; place-items: center;
}
.jp-reward .s-icon svg { width: 20px; height: 20px; }
.jp-reward small { display: block; color: var(--text-soft); font-weight: 700; font-size: 11.5px; }
.jp-reward strong { color: var(--text-strong); font-size: 13.5px; }

/* Resumo da Jornada */
.summary-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 13.5px; font-weight: 700; color: var(--text);
}
.summary-list li:last-child { border-bottom: none; }
.summary-list .s-ico {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; flex-shrink: 0;
}
.summary-list .s-ico svg { width: 16px; height: 16px; }
.summary-list .val { margin-left: auto; font-family: var(--font-display); font-size: 17px; color: var(--text-strong); }
.summary-list .val.hot { color: var(--orange-500); }

/* Próximo nível */
.next-level-card { background: linear-gradient(160deg, #F6F0FF, #EDF3FF); }
.next-level-card h2 { font-size: 17px; }
.nl-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.nl-head .s-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--purple-100); color: var(--purple-500);
  display: grid; place-items: center;
}
.nl-head .s-icon svg { width: 19px; height: 19px; }
.nl-head p { font-size: 12px; color: var(--text-soft); font-weight: 700; }
.nl-body strong { color: var(--text-strong); font-size: 15px; display: block; margin-bottom: 4px; }
.nl-body p { font-size: 12.5px; color: var(--text); font-weight: 600; margin-bottom: 12px; }
.nl-req {
  display: flex; gap: 14px;
  background: #fff; border-radius: 12px; padding: 10px 14px;
  font-size: 12.5px; font-weight: 800; color: var(--text-soft);
}
.nl-req span { display: flex; align-items: center; gap: 6px; color: var(--text-strong); }
.nl-req svg { width: 15px; height: 15px; color: var(--gold-500); }

/* Missões em destaque */
.featured-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.featured-list li:last-child { border-bottom: none; }
.featured-list .mission-icon { width: 38px; height: 38px; }
.featured-list .mission-icon svg { width: 19px; height: 19px; }
.f-info { flex: 1; min-width: 0; }
.f-info strong { display: block; font-size: 13.5px; color: var(--text-strong); }
.f-info small { color: var(--text-soft); font-weight: 600; font-size: 11.5px; }
.f-prog { width: 110px; }
.f-prog small { display: block; text-align: right; font-size: 11px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.f-ss { font-weight: 800; color: var(--gold-500); font-size: 13px; white-space: nowrap; }

/* Dica sob um campo de formulário (ex.: teto de SS por dificuldade) */
.field-hint { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--text-soft); }

/* Marcos */
.milestone-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.milestone-list li:last-child { border-bottom: none; }
.milestone-list .ach-medal { width: 46px; height: 46px; margin: 0; }
.milestone-list .ach-medal svg { width: 20px; height: 20px; }
.ml-info { flex: 1; }
.ml-info strong { display: block; font-size: 13.5px; color: var(--text-strong); }
.ml-info small { color: var(--text-soft); font-weight: 600; font-size: 11.5px; }
.ml-check { color: var(--green-500); width: 24px; height: 24px; }
.ml-check svg { width: 100%; height: 100%; }

.journey-map-img {
  width: 100%; border-radius: 12px; display: block; margin-bottom: 10px;
  aspect-ratio: 16 / 10; object-fit: cover;
}

@media (max-width: 1200px) {
  .journey-grid { grid-template-columns: 1fr; }
  .journey-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .journey-path { flex-wrap: wrap; gap: 14px; justify-content: center; }
  .journey-path::before { display: none; }
}

/* ============================================================
   PÁGINA BIBLIOTECA (Sprint 4)
   ============================================================ */
.lib-header {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.lib-header-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; }
.lhs-box {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 14px;
}
.lhs-box .s-ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
}
.lhs-box .s-ico svg { width: 17px; height: 17px; }
.lhs-box small { display: block; font-size: 11px; font-weight: 700; color: var(--text-soft); }
.lhs-box strong { font-family: var(--font-display); font-size: 19px; color: var(--text-strong); }
.lhs-rarities { display: flex; gap: 12px; align-items: center; }
.lhs-rarity { text-align: center; }
.lhs-rarity .gem { width: 18px; height: 18px; margin: 0 auto 2px; transform: rotate(45deg); border-radius: 4px; }
.lhs-rarity small { font-size: 11.5px; font-weight: 800; color: var(--text-strong); }
.gem-Comum { background: var(--green-500); }
.gem-Raro { background: var(--blue-500); }
.gem-Épico { background: var(--purple-500); }
.gem-Lendário { background: var(--gold-500); }
.lib-search { flex: 0 1 220px; min-width: 180px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  border: 1px solid var(--line); background: #fff;
  color: var(--text); font-weight: 800; font-size: 12.5px;
  padding: 8px 14px; border-radius: 99px;
}
.chip.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.chip:hover:not(.active) { background: var(--blue-100); }

.lib-body { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.lib-side { display: flex; flex-direction: column; gap: 18px; }

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.artifact-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px;
  box-shadow: var(--shadow);
  position: relative;
}
.ac-img-wrap { position: relative; margin-bottom: 10px; }
.ac-img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 12px; display: block;
  border: 2.5px solid var(--gold-500);
  background: var(--navy-700);
}
.artifact-card.locked .ac-img { border-color: #C4CFE5; filter: grayscale(.5) brightness(.85); }
.ac-state {
  position: absolute; top: -7px; right: -7px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  border: 2.5px solid #fff;
}
.ac-state svg { width: 13px; height: 13px; }
.ac-state.got { background: var(--green-500); }
.ac-state.lock { background: #8A97B3; }

.ac-cat {
  font-size: 10.5px; font-weight: 800; padding: 3px 9px;
  border-radius: 99px; display: inline-block; margin-bottom: 5px;
}
.artifact-card strong { display: block; color: var(--text-strong); font-size: 14px; line-height: 1.2; }
.artifact-card > p { font-size: 11.5px; color: var(--text-soft); font-weight: 600; margin: 3px 0 8px; min-height: 28px; }

.ac-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.ac-foot small { font-size: 10px; color: var(--text-soft); font-weight: 700; }
.rarity-tag {
  font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px;
}
.rt-Comum { background: var(--green-100); color: var(--green-500); }
.rt-Raro { background: var(--blue-100); color: var(--blue-600); }
.rt-Épico { background: var(--purple-100); color: var(--purple-500); }
.rt-Lendário { background: #FDF3D7; color: #B7791F; }

.ac-locked-info { margin-top: 4px; }
.ac-locked-info small { font-weight: 800; color: var(--purple-500); font-size: 11.5px; display: flex; justify-content: space-between; margin-bottom: 4px; }
.ac-unlock-btn {
  width: 100%; margin-top: 8px;
  background: var(--purple-500); color: #fff;
  border: none; border-radius: 10px;
  font-weight: 800; font-size: 12px; padding: 8px;
}
.ac-unlock-btn:hover { background: #7C3AED; }
.ac-unlock-btn:disabled { background: #D8DEEB; color: #8A97B3; cursor: not-allowed; }

.lib-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.page-btn {
  min-width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
  font-weight: 800; color: var(--text);
}
.page-btn.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.page-btn:hover:not(.active):not(:disabled) { background: var(--blue-100); }
.page-btn:disabled { opacity: .4; cursor: default; }

/* Coleção por raridade */
.rarity-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 800; color: var(--text-strong);
}
.rarity-list li:last-child { border-bottom: none; }
.rarity-list .gem { width: 15px; height: 15px; transform: rotate(45deg); border-radius: 3px; flex-shrink: 0; }
.rarity-list .r-count { width: 22px; text-align: right; }
.rarity-list .progress-line { flex: 1; }
.rarity-list .r-pct { width: 38px; text-align: right; font-size: 11.5px; color: var(--text-soft); }

.howto-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 12.5px; font-weight: 700; color: var(--text);
}
.howto-list svg { width: 17px; height: 17px; color: var(--blue-600); flex-shrink: 0; }

/* Próximo artefato (painel lateral da Biblioteca) */
.lib-next { display: flex; gap: 12px; }
.lib-next .ac-img { width: 90px; aspect-ratio: 4/5; flex-shrink: 0; }
.lib-next-info small { display: block; font-size: 11px; color: var(--text-soft); font-weight: 700; }
.lib-next-info strong { color: var(--text-strong); font-size: 14.5px; display: block; margin: 2px 0 4px; }
.lib-next-info p { font-size: 11.5px; color: var(--text); font-weight: 600; margin-bottom: 8px; }

@media (max-width: 1100px) {
  .lib-body { grid-template-columns: 1fr; }
}

/* ============================================================
   PÁGINA ORGANIZAÇÃO (Sprint 5)
   ============================================================ */
.org-card { padding: 20px; }
.org-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: start;
}
.org-box {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; background: #fff;
}
.org-box h3 {
  font-size: 14.5px; display: flex; align-items: center; gap: 7px;
  margin-bottom: 10px; color: var(--text-strong);
}
.org-box h3 svg { width: 16px; height: 16px; color: var(--blue-600); }
.org-box h3 .add-mini {
  margin-left: auto; background: none; border: none;
  color: var(--blue-600); font-weight: 800; font-size: 12px;
}
.org-box.span2 { grid-column: span 2; }
.org-box.hidden { display: none; }

/* Propósito */
.purpose-text { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.5; }
.purpose-edit {
  margin-top: 10px; width: 100%;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-weight: 600; font-size: 13px;
  color: var(--text-strong); padding: 9px 11px; resize: vertical;
  min-height: 74px; outline: none;
}
.purpose-edit:focus { border-color: var(--blue-500); }

/* Sonhos (lista) */
.org-dream {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.org-dream:last-child { border-bottom: none; }
.org-dream .d-ico {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  color: var(--gold-300); display: grid; place-items: center; flex-shrink: 0;
}
.org-dream .d-ico svg { width: 16px; height: 16px; }
.org-dream strong { display: block; font-size: 12.5px; color: var(--text-strong); }
.org-dream small { font-size: 11px; color: var(--text-soft); font-weight: 700; }
.org-dream .x-btn, .org-item .x-btn {
  margin-left: auto; background: none; border: none;
  color: #C4CFE5; font-size: 16px; line-height: 1;
}
.org-dream .x-btn:hover, .org-item .x-btn:hover { color: var(--red-500); }

/* Agenda de hoje */
.agenda-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; font-weight: 800; color: var(--text-soft); margin-bottom: 8px;
}
.agenda-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 0; border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; color: var(--text-strong);
}
.agenda-item:last-child { border-bottom: none; }
.agenda-item svg { width: 15px; height: 15px; }
.agenda-item .a-ico { color: var(--blue-600); display: inline-flex; }
.agenda-item.done { color: var(--text-soft); text-decoration: line-through; }
.agenda-item .a-check { margin-left: auto; color: var(--green-500); display: inline-flex; }

/* Calendário */
.cal-head {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 800; color: var(--text-strong); font-size: 13.5px; margin-bottom: 8px;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-grid span {
  text-align: center; font-size: 11.5px; font-weight: 700;
  color: var(--text); padding: 5px 0; border-radius: 8px;
}
.cal-grid .cal-wd { color: var(--text-soft); font-weight: 800; font-size: 10.5px; }
.cal-grid .cal-out { color: #C4CFE5; }
.cal-grid .cal-today { background: var(--blue-600); color: #fff; font-weight: 800; }

/* Objetivos */
.org-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.org-item:last-child { border-bottom: none; }
.org-item .g-ico {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--blue-100); color: var(--blue-600);
  display: grid; place-items: center; flex-shrink: 0;
}
.org-item .g-ico svg { width: 15px; height: 15px; }
.org-item .g-body { flex: 1; min-width: 0; }
.org-item .g-body strong { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-strong); }
.org-item .g-body small { font-size: 10.5px; color: var(--text-soft); font-weight: 700; }
.org-item .progress-line { margin-top: 4px; }
.g-steppers { display: flex; gap: 4px; }
.stepper {
  width: 22px; height: 22px; border-radius: 7px;
  border: 1px solid var(--line); background: #fff;
  font-weight: 800; color: var(--blue-600); font-size: 13px;
  display: grid; place-items: center; padding: 0;
}
.stepper:hover { background: var(--blue-100); }

/* Lembretes */
.reminder-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; color: var(--text-strong);
}
.reminder-item:last-child { border-bottom: none; }
.reminder-item .r-time { color: var(--text-soft); font-size: 11.5px; width: 38px; }
.reminder-item .r-freq { margin-left: auto; color: var(--text-soft); font-size: 11px; }
.switch {
  width: 34px; height: 20px; border-radius: 99px;
  border: none; background: #D4DCEC; position: relative; flex-shrink: 0;
}
.switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: left .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch.on { background: var(--green-500); }
.switch.on::after { left: 16px; }

/* Rotinas */
.routine-item {
  display: flex; align-items: center; gap: 9px;
  border-radius: 10px; padding: 9px 10px; margin-bottom: 6px;
  font-size: 12.5px; font-weight: 800; color: var(--text-strong);
}
.routine-item svg { width: 15px; height: 15px; }
.routine-item small { font-weight: 700; color: var(--text-soft); }
.routine-Manhã { background: var(--orange-100); }
.routine-Tarde { background: var(--blue-100); }
.routine-Noite { background: #EAEFFB; }
.routine-item .x-btn { margin-left: auto; background: none; border: none; color: #B6C1D8; font-size: 15px; }
.routine-item .x-btn:hover { color: var(--red-500); }

/* Notas */
.notes-row { display: flex; flex-direction: column; gap: 8px; }
.note {
  border-radius: 10px; padding: 10px 12px;
  font-size: 12px; font-weight: 600; color: #44502e;
  position: relative;
}
.note small { display: block; margin-top: 6px; font-size: 10px; font-weight: 800; opacity: .6; }
.note .x-btn {
  position: absolute; top: 6px; right: 8px;
  background: none; border: none; color: rgba(0,0,0,.25); font-size: 14px;
}
.note .x-btn:hover { color: var(--red-500); }
.note-yellow { background: #FFF3B8; color: #6b5d1c; }
.note-blue { background: #D8EAFF; color: #1d4977; }
.note-green { background: #DDF5DC; color: #2c5e2a; }
.note-pink { background: #FFE0EC; color: #7a2c4d; }

/* Resumo da semana */
.wk-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; color: var(--text);
}
.wk-line:last-child { border-bottom: none; }
.wk-line strong { font-family: var(--font-display); font-size: 15px; color: var(--text-strong); }

/* Plano de Ação */
.action-plan { margin-top: 18px; }
.action-plan h2 { font-size: 17px; margin-bottom: 14px; }
.plan-steps { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-step { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 150px; }
.p-num {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 15px;
  flex-shrink: 0;
}
.n1 { background: var(--purple-500); } .n2 { background: var(--blue-500); }
.n3 { background: var(--green-500); } .n4 { background: var(--orange-500); }
.n5 { background: var(--red-500); }
.plan-step strong { display: block; font-size: 12.5px; color: var(--text-strong); }
.plan-step small { font-size: 11px; color: var(--text-soft); font-weight: 700; }
.p-arrow { color: #C4CFE5; width: 16px; height: 16px; flex-shrink: 0; }
.p-arrow svg { width: 100%; height: 100%; }

@media (max-width: 1250px) { .org-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .org-grid { grid-template-columns: 1fr; } .org-box.span2 { grid-column: span 1; } }

/* ============================================================
   TEMA ESCURO E COR DE DESTAQUE (Sprint 6)
   ============================================================ */
body.theme-escuro {
  --bg: #0D1526;
  --card: #16203A;
  --line: #24304F;
  --text-strong: #EAF0FD;
  --text: #C3CEE6;
  --text-soft: #8493B5;
  --blue-100: #1D2C4F;
  --green-100: #17321F;
  --orange-100: #3A2C12;
  --purple-100: #2A2145;
  --shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
body.theme-escuro .icon-btn, body.theme-escuro .date-chip,
body.theme-escuro .orb-chip, body.theme-escuro .select,
body.theme-escuro .mini-btn, body.theme-escuro .org-box,
body.theme-escuro .modal, body.theme-escuro .stepper,
body.theme-escuro .check-btn, body.theme-escuro .play-btn,
body.theme-escuro .btn.outline, body.theme-escuro .j-label,
body.theme-escuro .nl-req { background: var(--card); color: var(--text-strong); }
body.theme-escuro .search-box, body.theme-escuro .card-footer-btn,
body.theme-escuro .guidax-tip, body.theme-escuro .habit-icon,
body.theme-escuro .missions-table th { background: #1B2745; color: var(--text); }
body.theme-escuro .form-grid input, body.theme-escuro .form-grid select,
body.theme-escuro .purpose-edit { background: #1B2745; color: var(--text-strong); }
body.theme-escuro .journey-scene {
  background:
    radial-gradient(ellipse at 20% 110%, rgba(34, 169, 84, .18), transparent 45%),
    linear-gradient(180deg, #1A2A52 0%, #131E3C 60%, #1B1730 100%);
}
body.theme-escuro .guidax-tip strong { color: var(--gold-300); }

/* Cores de destaque (accent) */
body[data-accent="roxo"]     { --blue-600: #7C3AED; --blue-500: #8B5CF6; --blue-100: #F0E9FE; }
body[data-accent="verde"]    { --blue-600: #199847; --blue-500: #22A954; --blue-100: #E3F6EA; }
body[data-accent="laranja"]  { --blue-600: #DE7A0D; --blue-500: #F59E0B; --blue-100: #FEF3DC; }
body[data-accent="vermelho"] { --blue-600: #D3393E; --blue-500: #E5484D; --blue-100: #FDEBEC; }
body[data-accent="teal"]     { --blue-600: #0E8C8C; --blue-500: #14A5A5; --blue-100: #DFF5F5; }
body[data-accent="rosa"]     { --blue-600: #D9367C; --blue-500: #EC4899; --blue-100: #FDE7F1; }
body.theme-escuro[data-accent="roxo"]     { --blue-100: #2A2145; }
body.theme-escuro[data-accent="verde"]    { --blue-100: #17321F; }
body.theme-escuro[data-accent="laranja"]  { --blue-100: #3A2C12; }
body.theme-escuro[data-accent="vermelho"] { --blue-100: #3C1A1C; }
body.theme-escuro[data-accent="teal"]     { --blue-100: #123232; }
body.theme-escuro[data-accent="rosa"]     { --blue-100: #3A1A2A; }

body.no-effects * { transition: none !important; box-shadow: none !important; }

/* ============================================================
   PÁGINA PERFIL (Sprint 6)
   ============================================================ */
.profile-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; align-items: start;
}
.pf-avatar-wrap { text-align: center; padding: 6px 0 12px; }
.pf-avatar {
  width: 92px; height: 92px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--gold-500);
}
.pf-name { font-family: var(--font-display); font-size: 20px; color: var(--text-strong); margin-top: 8px; }
.pf-badge {
  display: inline-block; margin-top: 4px;
  background: #FDF3D7; color: #8a6410;
  font-size: 11.5px; font-weight: 800;
  border-radius: 99px; padding: 4px 12px;
}
body.theme-escuro .pf-badge { background: #3A2C12; color: var(--gold-300); }
.pf-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; color: var(--text-soft);
}
.pf-row:last-child { border-bottom: none; }
.pf-row span:last-child { color: var(--text-strong); text-align: right; }

.opt-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; color: var(--text-strong);
}
.opt-row:last-child { border-bottom: none; }
.opt-row small { display: block; color: var(--text-soft); font-size: 11px; font-weight: 700; }

/* Seletores visuais */
.theme-btns { display: flex; gap: 8px; }
.theme-btn {
  flex: 1; border: 1.5px solid var(--line); border-radius: 11px;
  background: var(--card); color: var(--text-strong);
  font-weight: 800; font-size: 12.5px; padding: 9px 6px;
}
.theme-btn.active { border-color: var(--blue-500); color: var(--blue-600); background: var(--blue-100); }

.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid transparent; padding: 0;
}
.swatch.active { outline: 2.5px solid var(--text-strong); outline-offset: 2px; }
.sw-azul { background: #1E6FEB; } .sw-roxo { background: #8B5CF6; }
.sw-verde { background: #22A954; } .sw-laranja { background: #F59E0B; }
.sw-vermelho { background: #E5484D; } .sw-teal { background: #14A5A5; }
.sw-rosa { background: #EC4899; }

.skin-btns { display: flex; gap: 8px; }
.skin-btn {
  flex: 1; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--card); padding: 10px 6px; text-align: center;
  font-weight: 800; font-size: 11.5px; color: var(--text-strong);
}
.skin-btn .skin-thumb {
  width: 46px; height: 46px; border-radius: 50%;
  margin: 0 auto 6px;
  display: grid; place-items: center; color: var(--gold-300);
}
.skin-btn .skin-thumb svg { width: 22px; height: 22px; }
.skin-classico .skin-thumb { background: linear-gradient(135deg, var(--navy-700), var(--navy-600)); }
.skin-aventureiro .skin-thumb { background: linear-gradient(135deg, #6B4A12, #A9741F); }
.skin-estelar .skin-thumb { background: linear-gradient(135deg, #2A2145, #5B3FA8); }
.skin-btn.active { border-color: var(--blue-500); background: var(--blue-100); }

/* ============================================================
   PÁGINA MEU GUIDAX (Sprint 6)
   ============================================================ */
.guidax-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.mascot-stage {
  border-radius: 16px; min-height: 300px;
  display: grid; place-items: center; padding: 20px;
  background: radial-gradient(ellipse at 50% 100%, rgba(240, 180, 41, .28), transparent 60%),
              linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
.mascot-stage img { max-width: 260px; width: 100%; }
.mascot-stage .img-placeholder { width: 220px; height: 220px; border-radius: 50%; font-size: 20px; }
.mascot-caption {
  text-align: center; margin-top: 12px;
  font-size: 13px; font-weight: 700; color: var(--text-soft);
}
@media (max-width: 1000px) { .guidax-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PÁGINA FAMÍLIA (Sprint 6)
   ============================================================ */
.family-note {
  background: var(--blue-100); color: var(--text-strong);
  border-radius: 12px; padding: 12px 14px;
  font-size: 12.5px; font-weight: 600; margin-bottom: 14px;
}
.family-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.family-card {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; text-align: center; position: relative;
}
.family-card .f-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  margin: 0 auto 8px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  color: var(--gold-300);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 21px;
}
.family-card strong { display: block; font-size: 14px; color: var(--text-strong); }
.family-card small { color: var(--text-soft); font-weight: 700; font-size: 12px; }
.family-card .x-btn {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; color: #C4CFE5; font-size: 16px;
}
.family-card .x-btn:hover { color: var(--red-500); }
@media (max-width: 800px) { .family-list { grid-template-columns: repeat(2, 1fr); } .profile-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ACADEMIAS + MODO DO GUARDIÃO (revisão)
   ============================================================ */
/* ============ PÁGINA ACADEMIAS ============
   As classes antigas (.academy / .ac-icon) nunca batiam com o markup
   (.academy-card / .academy-ico), entao o icone ficava SEM tamanho e o
   SVG esticava ate preencher a celula — os "icones gigantes". */
#academies-grid { display: flex; flex-direction: column; gap: 22px; }

/* --- academia principal em destaque --- */
.ac-destaque, .ac-vazio {
  display: flex; gap: 18px; align-items: center;
  border-radius: 20px; padding: 22px;
  border: 1px solid var(--line);
}
.ac-destaque {
  background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 14%, #fff), #fff);
  border-color: color-mix(in srgb, var(--ac) 32%, var(--line));
}
.ac-destaque-ico {
  width: 84px; height: 84px; flex-shrink: 0; border-radius: 24px;
  display: grid; place-items: center; color: #fff; background: var(--ac);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--ac) 40%, transparent);
}
.ac-destaque-ico svg { width: 44px; height: 44px; }
.ac-destaque-txt { flex: 1; min-width: 0; }
.ac-destaque-txt small {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; color: var(--ac);
}
.ac-destaque-txt strong {
  display: block; font-family: var(--font-display); font-size: 21px;
  color: var(--text-strong); margin: 3px 0 4px;
}
.ac-destaque-txt p { font-size: 13px; color: var(--text-soft); font-weight: 600; margin-bottom: 12px; }
.ac-destaque-meta { font-size: 11.5px; font-weight: 800; color: var(--text-soft); }

.ac-vazio { background: #F7F9FD; }
.ac-vazio > span { width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 16px; background: #EEF2F9; color: var(--gold-500, #C08A1E); }
.ac-vazio > span svg { width: 26px; height: 26px; }
.ac-vazio strong { display: block; font-family: var(--font-display); font-size: 16px; color: var(--text-strong); }
.ac-vazio p { font-size: 12.5px; color: var(--text-soft); font-weight: 600; margin-top: 3px; }

/* --- titulo de secao --- */
.ac-sec h3 { font-family: var(--font-display); font-size: 15px; color: var(--text-strong); }
.ac-sec p { font-size: 12.5px; color: var(--text-soft); font-weight: 600; margin-top: 2px; }

/* --- grade de academias --- */
.ac-grade {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px;
}
.ac-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card, #fff); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px; overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ac-card:hover { transform: translateY(-2px); box-shadow: var(--sh-3, 0 12px 28px rgba(15,32,64,.12));
  border-color: color-mix(in srgb, var(--ac) 40%, var(--line)); }
.ac-faixa { position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--ac); }
.ac-card.destaque { border-color: var(--ac); }

.ac-topo { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.ac-ico {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 15px;
  display: grid; place-items: center; color: #fff; background: var(--ac);
}
/* trava de seguranca: SVG sem tamanho nunca mais estica a celula */
.ac-ico svg { width: 26px; height: 26px; }
.ac-nome { min-width: 0; }
.ac-nome strong { display: block; font-family: var(--font-display); font-size: 15px;
  color: var(--text-strong); line-height: 1.2; }
.ac-nome p { font-size: 12px; color: var(--text-soft); font-weight: 600; margin-top: 4px; line-height: 1.4; }

.ac-numeros { display: flex; gap: 8px; margin-bottom: 10px; }
.ac-numeros div { flex: 1; text-align: center; background: #F5F8FD; border-radius: 10px; padding: 8px 4px; }
.ac-numeros b { display: block; font-family: var(--font-display); font-size: 16px; color: var(--ac); }
.ac-numeros small { font-size: 10px; font-weight: 700; color: var(--text-soft); }

.ac-barra { height: 8px; border-radius: 99px; background: #E9EEF7; overflow: hidden; }
.ac-barra div { height: 100%; border-radius: 99px; background: var(--ac); transition: width .3s; }
.ac-barra.grande { height: 10px; margin-bottom: 8px; }

.ac-acao { margin-top: 14px; }
.ac-acao .btn { width: 100%; }
.ac-principal, .ac-trava {
  display: inline-flex; align-items: center; gap: 7px; width: 100%;
  justify-content: center; border-radius: 11px; padding: 9px 12px;
  font-size: 12px; font-weight: 800;
}
.ac-principal { background: color-mix(in srgb, var(--ac) 14%, #fff); color: var(--ac); }
.ac-principal svg, .ac-trava svg { width: 14px; height: 14px; }
.ac-trava { background: #F0F3F8; color: var(--text-soft); }

/* --- academias ainda bloqueadas --- */
.ac-card.travada { background: #FAFBFD; }
.ac-card.travada .ac-ico { background: #C7D0DE; }
.ac-card.travada .ac-faixa { background: #C7D0DE; }
.ac-card.travada .ac-nome strong { color: var(--text-soft); }
.ac-card.travada .ac-numeros b { color: var(--text-soft); }
.ac-card.travada:hover { transform: none; box-shadow: none; }

@media (max-width: 640px) {
  .ac-destaque { flex-direction: column; align-items: flex-start; text-align: left; }
  .ac-grade { grid-template-columns: 1fr; }
}

.admin-pin-row { display: flex; gap: 10px; max-width: 380px; }
.admin-pin-row input {
  flex: 1; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; font-family: inherit; font-weight: 800;
  font-size: 15px; letter-spacing: 3px; color: var(--text-strong); outline: none;
}
.admin-pin-row input:focus { border-color: var(--blue-500); }
.admin-hint { margin-top: 10px; font-size: 12px; color: var(--text-soft); font-weight: 600; }

.rar-tag { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 99px; }
.rar-Comum { background: var(--green-100); color: var(--green-500); }
.rar-Raro { background: var(--blue-100); color: var(--blue-600); }
.rar-Épico { background: var(--purple-100); color: var(--purple-500); }
.rar-Lendário { background: #FDF3D7; color: #B7791F; }

@media (max-width: 1100px) { .academies-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .academies-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ESTÚDIO DE ARTEFATOS
   ============================================================ */
.studio-topbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--navy-800); color: #fff;
  border-radius: 14px; padding: 12px 16px; margin-bottom: 14px;
}
.studio-topbar strong { font-family: var(--font-display); font-size: 17px; }
.studio-savechip { font-size: 11.5px; font-weight: 700; color: #8FE3A8; }
.studio-savechip.saving { color: var(--gold-300); }
.studio-topbtns { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.studio-steps {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.sstep {
  font-size: 12px; font-weight: 800; color: var(--text-soft);
  background: #fff; border: 1px solid var(--line);
  border-radius: 99px; padding: 6px 13px;
}
.sstep.done { color: var(--blue-600); border-color: var(--blue-500); background: var(--blue-100); }
.studio-steps i { flex: 0 0 18px; height: 2px; background: var(--line); }

.studio-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.studio-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.studio-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }

.scard {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 16px;
}
.scard h3 { font-size: 14.5px; margin-bottom: 12px; color: var(--text-strong); }
.scard h4 { font-size: 12px; color: var(--text-soft); letter-spacing: .4px; margin-bottom: 6px; }
.scard input[type=text], .scard input[type=number], .scard select, .scard textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 11px; font-family: inherit; font-weight: 600;
  font-size: 13px; color: var(--text-strong); outline: none; background: #fff;
  resize: vertical;
}
.scard input:focus, .scard select:focus, .scard textarea:focus { border-color: var(--blue-500); }
.scard label { display: block; font-size: 11.5px; font-weight: 800; color: var(--text-soft); }
.scard label input, .scard label select { margin-top: 4px; }

.scard-row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; align-items: flex-end; }
.scard-row label { flex: 1; min-width: 120px; }
.scard-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.scard-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.scard-duo { display: flex; gap: 6px; margin-top: 4px; }

.studio-genbtn { width: 100%; margin-top: 12px; justify-content: center; font-size: 14.5px; padding: 12px; }

.sblock { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.sblock textarea { margin-bottom: 8px; }
.sbtn-ai { font-size: 11.5px; padding: 6px 10px; }

.stags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; min-height: 28px; }
.stag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-100); color: var(--blue-600);
  font-size: 11.5px; font-weight: 800;
  border-radius: 99px; padding: 5px 6px 5px 11px;
}
.stag button { background: none; border: none; color: inherit; font-size: 13px; line-height: 1; opacity: .7; }
.stag button:hover { opacity: 1; }
.stag-input { max-width: 240px; }

.sqr { width: 92px; height: 92px; border: 1px solid var(--line); border-radius: 10px;
  display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.sqr img { width: 100%; height: 100%; }
.sqr small { font-size: 9px; color: var(--text-soft); text-align: center; padding: 4px; font-weight: 700; }

/* Pré-visualização da carta */
.spreview-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.stab {
  flex: 1; border: 1px solid var(--line); background: #fff;
  border-radius: 9px; padding: 7px; font-weight: 800; font-size: 12px; color: var(--text-soft);
}
.stab.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

.spreview { display: flex; justify-content: center; }
.scard-face {
  width: 100%; max-width: 280px; aspect-ratio: 3 / 4;
  border-radius: 16px; border: 3px solid var(--gold-500);
  background: linear-gradient(170deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: #fff; padding: 16px; display: flex; flex-direction: column;
  box-shadow: 0 10px 30px rgba(8,16,38,.35);
  overflow: hidden;
}
.scf-top { display: flex; justify-content: space-between; align-items: flex-start; }
.scf-cat { font-size: 10px; font-weight: 800; letter-spacing: 1px; color: var(--gold-300); text-transform: uppercase; }
.scf-num { font-family: var(--font-display); font-size: 15px; color: #fff; background: rgba(255,255,255,.12);
  border-radius: 8px; padding: 2px 8px; }
.scf-title { font-family: var(--font-display); font-size: 21px; line-height: 1.15; margin: 10px 0 4px; }
.scf-sub { font-size: 11.5px; color: #C7D3EE; font-weight: 600; flex: 1; }
.scf-art {
  margin: 10px 0; border-radius: 10px; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #24407e, #101c3d);
  display: grid; place-items: center; color: var(--gold-300);
}
.scf-art svg { width: 42px; height: 42px; }
.scf-bottom { display: flex; justify-content: space-between; font-size: 9.5px; font-weight: 800;
  color: #9FB0D6; text-transform: uppercase; letter-spacing: .5px; }
.scf-back { font-size: 11px; color: #DCE4F5; }
.scf-back h5 { color: var(--gold-300); font-size: 10px; letter-spacing: 1px; margin: 8px 0 3px; text-transform: uppercase; }
.scf-back p { font-weight: 600; line-height: 1.4; }
.scf-back .stag { background: rgba(255,255,255,.12); color: #fff; margin: 2px 3px 0 0; padding: 3px 9px; }

.sai-actions { display: flex; flex-direction: column; gap: 7px; }
.sai-actions .btn { justify-content: flex-start; font-size: 12.5px; }

@media (max-width: 1150px) {
  .studio-grid { grid-template-columns: 1fr; }
  .studio-side { position: static; }
  .scard-grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .scard-grid2, .scard-grid3 { grid-template-columns: 1fr; }
}

/* ============================================================
   EDITOR DE ARTEFATOS (módulo administrativo)
   ============================================================ */
.ed-shell {
  display: flex; gap: 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  min-height: 78vh;
}
.ed-nav {
  width: 210px; flex-shrink: 0;
  background: linear-gradient(180deg, #071A2E, #04101E);
  padding: 16px 10px; display: flex; flex-direction: column; gap: 3px;
}
.ed-nav small {
  color: #4FD1C5; font-weight: 800; font-size: 9.5px;
  letter-spacing: 1.6px; margin: 12px 6px 5px;
}
.ed-nav-item {
  display: flex; align-items: center; gap: 9px;
  background: none; border: none; text-align: left;
  color: #B9C8DE; font-weight: 700; font-size: 13px;
  padding: 9px 11px; border-radius: 10px;
}
.ed-nav-item span[data-icon] { width: 16px; height: 16px; display: inline-flex; color: #4FD1C5; }
.ed-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.ed-nav-item.active { background: #0E7490; color: #fff; }
.ed-body { flex: 1; padding: 18px; min-width: 0; background: var(--bg); }
.ed-view.hidden { display: none; }

.ed-code {
  font-family: monospace; font-weight: 700; font-size: 12px;
  background: #EEF1F7; color: var(--text-strong);
  border-radius: 7px; padding: 3px 8px;
}
.ed-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; }

.ed-topbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--navy-800); color: #fff;
  border-radius: 12px; padding: 10px 14px; margin-bottom: 14px;
}
.ed-topbar strong { font-family: var(--font-display); font-size: 16px; }
.ed-topbar .ed-code { background: rgba(255,255,255,.12); color: #FFD86B; }

/* 380px: o painel virou grade de duas colunas, e com 330 os campos
   ficavam apertados demais para caber rótulo e valor lado a lado. */
.ed-grid { display: grid; grid-template-columns: 1fr 380px; gap: 16px; align-items: start; }
.ed-center { min-width: 0; }
.ed-zoombar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 800; color: var(--text-soft); margin-bottom: 10px;
}
/* O preview do editor agora e a carta real (carta.css) e vive em
   estudio.css. As regras antigas (--edzoom, .ed-previews > div com
   flex:1) foram removidas: o flex:1 vencia por especificidade e
   impedia o controle de tamanho de funcionar. */

/* A carta */
.ed-card {
  --ccolor: #1E6FEB;
  width: 100%; max-width: 300px; aspect-ratio: 3 / 4.35;
  border-radius: 16px; padding: 0 0 12px;
  background: linear-gradient(170deg, #0E2A5C 0%, #081026 100%);
  color: #fff; overflow: hidden; position: relative;
  display: flex; flex-direction: column;
  border: 3px solid #9AA7BF;
  box-shadow: 0 10px 26px rgba(8,16,38,.35);
}
.r-comum { border-color: #9AA7BF; }
.r-incomum { border-color: #57C983; }
.r-raro { border-color: #4C9AFF; box-shadow: 0 10px 26px rgba(76,154,255,.35); }
.r-epico { border-color: #A78BFA; box-shadow: 0 10px 28px rgba(167,139,250,.4); }
.r-lendario { border-color: var(--gold-500); box-shadow: 0 10px 30px rgba(240,180,41,.45); }
.r-mitico { border-color: #F472B6; box-shadow: 0 10px 30px rgba(244,114,182,.45); }
.r-exclusivo { border-color: #22D3EE; box-shadow: 0 10px 30px rgba(34,211,238,.45); }

.ed-cf-head {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background-size: cover; background-position: center;
  background-color: var(--ccolor);
}
.ed-cf-headtint { position: absolute; inset: 0; background: var(--ccolor); mix-blend-mode: multiply; }
.ed-cf-caticon {
  position: relative; width: 30px; height: 30px; border-radius: 8px;
  background: rgba(255,255,255,.18); display: grid; place-items: center; flex-shrink: 0;
}
.ed-cf-caticon svg { width: 17px; height: 17px; }
.ed-cf-catname { position: relative; font-weight: 800; font-size: 12.5px; letter-spacing: .5px; line-height: 1.15; }
.ed-cf-catname small { display: block; font-size: 8.5px; color: rgba(255,255,255,.75); letter-spacing: 1px; }
.ed-cf-rarity {
  position: relative; margin-left: auto;
  font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(0,0,0,.35); border-radius: 99px; padding: 4px 9px;
}
.ed-cf-num {
  position: absolute; top: 52px; left: 12px; z-index: 2;
  background: rgba(8,16,38,.8); border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px; padding: 5px 9px; text-align: center;
  font-family: var(--font-display); font-size: 17px; line-height: 1;
}
.ed-cf-num small { display: block; font-size: 7px; letter-spacing: 1px; color: #C7D3EE; }
/* Posição do número da carta + o título nunca sobrepõe o número */
.ed-cf-num[data-pos="tr"] { left: auto; right: 12px; }
.ed-cf-num[data-pos="oculto"] { display: none; }
.ed-card[data-numpos="tl"] .ed-cf-title { padding-left: 58px; }
.ed-card[data-numpos="tr"] .ed-cf-title { padding-right: 58px; }
.ed-cf-title {
  font-family: var(--font-display); font-size: 21px; line-height: 1.1;
  padding: 12px 12px 2px;
}
.ed-cf-sub { font-size: 10.5px; color: #C7D3EE; font-weight: 600; padding: 0 12px; min-height: 14px; }
.ed-cf-art {
  margin: 8px 12px; border-radius: 10px; overflow: hidden;
  aspect-ratio: 16 / 10; background: rgba(255,255,255,.06);
  display: grid; place-items: center; position: relative;
}
.ed-cf-art img { width: 100%; height: 100%; object-fit: cover; }
.ed-noimg { text-align: center; color: #6E82A8; }
.ed-noimg svg { width: 34px; height: 34px; }
.ed-noimg small { display: block; font-size: 9px; font-weight: 700; margin-top: 4px; }
.ed-cf-meta {
  display: flex; justify-content: space-between; gap: 6px;
  padding: 2px 12px; font-size: 8px; color: #9FB0D6;
  text-transform: uppercase; letter-spacing: .4px; font-weight: 700;
}
.ed-cf-meta b { color: #fff; font-size: 8.5px; }
.ed-cf-meta i { display: block; width: 13px; height: 13px; color: var(--gold-300); margin-bottom: 2px; }
.ed-cf-collection {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 8px 12px 4px; font-size: 8px; color: #9FB0D6;
  letter-spacing: .6px; font-weight: 700; margin-top: auto;
}
.ed-cf-collection b { color: #fff; font-size: 9.5px; }
.ed-cf-count { font-family: var(--font-display); font-size: 14px; color: #fff; }
.ed-cf-bar { height: 5px; margin: 0 12px; background: rgba(255,255,255,.15); border-radius: 99px; }
.ed-cf-bar div { height: 100%; border-radius: 99px; background: var(--gold-500); }

.ed-card-back { padding: 14px; font-size: 10.5px; }
.ed-card-back h5 {
  color: var(--gold-300); font-size: 9px; letter-spacing: 1.2px;
  text-transform: uppercase; margin: 8px 0 3px;
}
.ed-card-back p { color: #DCE4F5; font-weight: 600; line-height: 1.4; }

/* Carta bonita: escala de "Tamanho do texto" (vale no editor E no app da criança) */
.ed-cf-sub           { font-size: calc(10.5px * var(--txt-scale, 1)); }
.ed-cf-catname       { font-size: calc(12.5px * var(--txt-scale, 1)); }
.ed-cf-catname small { font-size: calc(8.5px  * var(--txt-scale, 1)); }
.ed-cf-meta          { font-size: calc(8px    * var(--txt-scale, 1)); }
.ed-cf-meta b        { font-size: calc(8.5px  * var(--txt-scale, 1)); }
.ed-cf-collection    { font-size: calc(8px    * var(--txt-scale, 1)); }
.ed-cf-collection b  { font-size: calc(9.5px  * var(--txt-scale, 1)); }

/* Modal da carta do artefato na Biblioteca (ver / novo desbloqueado) */
.card-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(8,16,38,.62); padding: 20px; }
.card-modal.hidden { display: none; }
.card-modal-box { display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-height: 96vh; overflow-y: auto;
  /* A carta é retrato (560x960). Dimensionamos a caixa pela ALTURA da tela
     para que a carta INTEIRA + o botão "Ver o verso" caibam sem cortar.
     44vh de largura => ~75vh de altura de carta, sobrando espaço p/ botões. */
  width: min(500px, 44vh, 88vw); }
.card-modal-box::-webkit-scrollbar { width: 0; height: 0; }
.card-modal-card { width: 100%; }
/* No modal, a carta preenche a caixa (o max-width fixo de 560px ficava
   grande demais e empurrava o botão do verso para fora da tela). */
.card-modal-card .carta-viradora,
.card-modal-card .carta-viradora .carta-lado { width: 100%; max-width: none; }
.card-modal-banner { display: none; align-items: center; gap: 8px; color: var(--gold-300);
  font-family: var(--font-display); font-weight: 800; font-size: 17px; text-align: center; }
.card-modal-banner.show { display: inline-flex; }
.card-modal-banner span { width: 22px; height: 22px; display: inline-flex; color: var(--gold-400); }
.card-modal-card .ed-card { width: 300px; max-width: 84vw; }
.card-modal.celebrate .ed-card { animation: cardpop .55s var(--ease, ease) both; }
@keyframes cardpop {
  0%   { transform: scale(.6) rotate(-4deg); opacity: 0; }
  60%  { transform: scale(1.05) rotate(1.5deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.ed-mlist { padding-left: 16px; color: #DCE4F5; font-weight: 600; }
.ed-forts .stag { background: rgba(255,255,255,.12); color: #fff; margin: 2px 3px 0 0; padding: 3px 8px; font-size: 9.5px; }
.ed-rels { display: flex; gap: 6px; flex-wrap: wrap; }
.ed-rel-mini {
  background: rgba(255,255,255,.09); border-radius: 8px; padding: 5px 8px;
  font-size: 8.5px; text-align: center; max-width: 76px;
}
.ed-rel-mini b { display: block; font-family: var(--font-display); font-size: 12px; }
.ed-back-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; padding-top: 8px; }
.ed-digs { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.ed-digs small { display: block; width: 100%; font-size: 7px; letter-spacing: 1px; color: #9FB0D6; }
.ed-dig {
  background: rgba(255,255,255,.12); border-radius: 6px;
  font-size: 8px; font-weight: 800; padding: 3px 6px;
}
.ed-qrbox { text-align: center; }
.ed-qrbox img { width: 54px; height: 54px; border-radius: 6px; background: #fff; padding: 3px; }
.ed-qrbox b { display: block; font-size: 8px; font-family: monospace; margin-top: 2px; }
.ed-qrbox small { font-size: 8px; color: #9FB0D6; }

/* Painel de propriedades (accordion) */
.ed-props { display: flex; flex-direction: column; gap: 10px; }
.ed-acc {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden;
}
.ed-acc summary {
  cursor: pointer; list-style: none;
  font-weight: 800; font-size: 13px; color: var(--text-strong);
  padding: 12px 14px; user-select: none;
  display: flex; align-items: center;
}
.ed-acc summary::after { content: '▾'; margin-left: auto; color: var(--text-soft); transition: transform .15s; }
.ed-acc:not([open]) summary::after { transform: rotate(-90deg); }
.ed-acc-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }

.ed-label { display: block; font-size: 11px; font-weight: 800; color: var(--text-soft); }
.ed-label input[type=text], .ed-label input[type=number], .ed-label select, .ed-label textarea {
  width: 100%; margin-top: 4px;
  border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 10px; font-family: inherit; font-weight: 600;
  font-size: 12.5px; color: var(--text-strong); outline: none; background: #fff; resize: vertical;
}
.ed-label input:focus, .ed-label select:focus, .ed-label textarea:focus { border-color: var(--blue-500); }
.ed-label input[type=range] { width: 100%; margin-top: 8px; }
.ed-label input[type=file] { margin-top: 4px; font-size: 11px; width: 100%; }
.ed-label input:disabled { background: #F5F7FC; color: var(--text-soft); }
.ed-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.ed-missao { display: flex; gap: 5px; align-items: center; margin-top: 6px; }
.ed-missao input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px;
  font-family: inherit; font-weight: 600; font-size: 12px; color: var(--text-strong); outline: none; }
.ed-missao .mini-btn { width: 26px; height: 26px; font-size: 12px; }

.ed-skills, .ed-digital { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ed-check {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); border-radius: 99px;
  padding: 5px 10px; font-size: 11px; font-weight: 700; color: var(--text);
  cursor: pointer; background: #fff;
}
.ed-check:has(input:checked) { background: var(--blue-100); border-color: var(--blue-500); color: var(--blue-600); }
.ed-check input { accent-color: var(--blue-600); }
.ed-check span[data-icon] { width: 12px; height: 12px; display: inline-flex; }

.ed-pendencias {
  background: #FDEBEC; border: 1px solid #F6C7C9; border-radius: 10px;
  padding: 10px 12px; font-size: 12px; color: #8f2429; font-weight: 700;
}
.ed-pendencias ul { padding-left: 18px; margin-top: 4px; }

.ed-templates-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ed-template-mini {
  --tcolor: #1E6FEB;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: linear-gradient(170deg, #0E2A5C, #081026); color: #fff;
}
.ed-tm-head {
  background: var(--tcolor); padding: 9px 11px;
  font-weight: 800; font-size: 11px; letter-spacing: .5px;
  display: flex; align-items: center; gap: 7px;
}
.ed-tm-head span { width: 14px; height: 14px; display: inline-flex; }
.ed-tm-body { padding: 26px 11px; font-size: 11px; font-weight: 700; color: #C7D3EE; text-align: center; }
.ed-tm-bar { height: 5px; background: var(--tcolor); }

@media (max-width: 1150px) {
  .ed-shell { flex-direction: column; }
  .ed-nav { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .ed-nav small { width: 100%; }
  .ed-grid { grid-template-columns: 1fr; }
  .ed-templates-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   EXTRAS
   ============================================================ */
.coming-soon { grid-column: 1 / -1; text-align: center; padding: 60px 20px; }
.coming-soon h2 { font-size: 24px; margin-bottom: 8px; }
.coming-soon p { color: var(--text-soft); font-weight: 600; }

.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy-800); color: #fff;
  font-weight: 800; font-size: 14px;
  padding: 13px 22px; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(8, 16, 38, .35);
  opacity: 0; pointer-events: none;
  transition: all .3s;
  z-index: 99;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .ss { color: var(--gold-300); }

/* Placeholder para imagens ainda não enviadas (pasta assets) */
.img-placeholder {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  color: var(--gold-300);
  font-family: var(--font-display);
  font-weight: 800;
  border-radius: 12px;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1280px) {
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  /* A barra lateral vira um drawer deslizante acionado pelo hambúrguer */
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex-shrink: 0;
    border: 1px solid var(--line); border-radius: 12px;
    background: var(--card); color: var(--text-strong);
    cursor: pointer; box-shadow: var(--sh-1);
  }
  .nav-toggle svg { width: 22px; height: 22px; }

  .sidebar {
    position: fixed; left: 0; top: 0;
    width: 272px; max-width: 84vw;
    height: 100vh; height: 100dvh;
    z-index: 60; transform: translateX(-100%);
    transition: transform .28s var(--ease, ease);
    overflow-y: auto; padding-bottom: 20px;
    box-shadow: var(--sh-4);
  }
  .sidebar.open { transform: translateX(0); }

  .nav-backdrop {
    display: block; position: fixed; inset: 0;
    background: rgba(8,16,38,.5); z-index: 55;
    opacity: 0; pointer-events: none;
    transition: opacity .28s var(--ease, ease);
  }
  .nav-backdrop.open { opacity: 1; pointer-events: auto; }

  .nav { flex-direction: column; flex-wrap: nowrap; }
  .mascot-slot, .guidax-tip { display: block; }

  .main { padding: 16px 14px 32px; }
  .grid { grid-template-columns: 1fr; }
  .topbar { margin-bottom: 16px; gap: 12px; }
  .greeting { flex: 1; min-width: 0; }
  .greeting h1 { font-size: 20px; }

  /* Conteúdo largo rola na horizontal em vez de vazar da tela */
  .tabs { overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap; gap: 16px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .missions-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .missions-table { min-width: 620px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Botão de sair (sidebar) */
.btn-logout {
  margin: 10px 14px 0; padding: 9px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: #C7D3EE; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 13px;
  border-radius: 10px; cursor: pointer; width: calc(100% - 28px);
}
.btn-logout:hover { background: rgba(229,72,77,.18); border-color: rgba(229,72,77,.4); color: #fff; }

/* ---- Carta do artefato na tela da crianca (renderizador compartilhado) ---- */
.carta-viradora { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.carta-viradora .carta-lado { width: 100%; max-width: 560px; }
.carta-viradora[data-lado="frente"] [data-lado="verso"],
.carta-viradora[data-lado="verso"] [data-lado="frente"] { display: none; }
.carta-virar { align-self: center; }

/* ============ SELETOR VISUAL DE ÍCONES ============
   Substitui os antigos <select> de texto: mostra o desenho do ícone,
   e todos os 37 (a lista antiga do estúdio tinha só 17). */
.icp {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border, #d8dfeb); border-radius: 10px;
  background: var(--card, #fff); color: var(--brand, #1E6FEB);
  padding: 0; transition: border-color .15s, box-shadow .15s;
}
.icp:hover { border-color: var(--brand, #1E6FEB); }
.icp:focus-visible { outline: 2px solid var(--brand, #1E6FEB); outline-offset: 2px; }
.icp svg { width: 22px; height: 22px; }
.icp .icp-vazio { font-style: normal; font-weight: 800; color: #A9B7CE; }

.icp-pop {
  position: fixed; z-index: 9000;
  width: min(330px, calc(100vw - 20px));
  background: var(--card, #fff); color: var(--text, #16233A);
  border: 1px solid var(--border, #d8dfeb); border-radius: 14px;
  box-shadow: 0 18px 46px rgba(10,20,40,.28);
  padding: 10px;
}
.icp-busca {
  width: 100%; margin-bottom: 8px; padding: 9px 11px;
  border: 1px solid var(--border, #d8dfeb); border-radius: 9px;
  font: 600 13px 'Nunito', sans-serif; background: var(--bg, #F4F7FC); color: inherit;
}
/* a biblioteca tem 119 icones: a grade rola por dentro do popover,
   que por sua vez nunca ultrapassa a altura da janela. */
.icp-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
  gap: 6px; max-height: min(42vh, 320px); overflow-y: auto;
}
.icp-it {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 4px 6px; cursor: pointer;
  border: 1px solid transparent; border-radius: 10px;
  background: none; color: var(--text, #16233A);
}
.icp-it:hover { background: var(--bg, #F4F7FC); border-color: var(--border, #d8dfeb); }
.icp-it.on { background: rgba(30,111,235,.12); border-color: var(--brand, #1E6FEB); }
.icp-it svg { width: 22px; height: 22px; color: var(--brand, #1E6FEB); }
.icp-it small { font-size: 9px; line-height: 1.1; text-align: center;
  color: #6E82A8; word-break: break-word; }


/* Missão Extrema: a faixa mais alta, para desafios longos (ler um livro
   na semana). Dourada, para se distinguir das outras três. */
.on-extreme { background: linear-gradient(135deg, #F0B429, #C08A1E); color: #fff; }

/* ---- Foco da semana ---- */
.foco-faixa {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border: 1px dashed #D8C08A; border-radius: 18px; padding: 18px 20px;
  background: linear-gradient(135deg, #FFFBF0, #fff);
}
.foco-faixa.ativo { border-style: solid;
  border-color: color-mix(in srgb, var(--ac) 45%, #fff);
  background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 12%, #fff), #fff); }
.foco-ico { width: 56px; height: 56px; flex-shrink: 0; border-radius: 18px;
  display: grid; place-items: center; background: var(--ac); color: #fff; }
.foco-ico svg { width: 28px; height: 28px; }
.foco-txt { flex: 1; min-width: 180px; }
.foco-txt small { font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; color: var(--ac); }
.foco-txt strong { display: block; font-family: var(--font-display); font-size: 17px;
  color: var(--text-strong); margin: 2px 0 3px; }
.foco-txt p { font-size: 12.5px; color: var(--text-soft); font-weight: 600; }
.foco-txt b { color: var(--text-strong); }
.foco-faixa select { flex: 0 0 190px; padding: 10px 12px; border-radius: 11px;
  border: 1px solid var(--line); background: #fff; font-family: inherit;
  font-weight: 700; font-size: 13px; color: var(--text-strong); }
@media (max-width: 640px) { .foco-faixa select { flex: 1 1 100%; } }

/* ---- Som de concentração (dentro da tela de foco) ---- */
.som-barra { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.som-rot { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-soft); margin-bottom: 8px; }
.som-botoes { display: flex; flex-wrap: wrap; gap: 7px; }
.som-btn { font: 700 12px inherit; padding: 8px 14px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--text); }
.som-btn:hover { border-color: var(--blue-500); }
.som-btn.on { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }

/* ============ CONQUISTAS — medalhões ============
   A FORMA recorta o conteúdo (ícone ou imagem enviada) via clip-path:
   é ela que define o limite da arte, não o arquivo. Assim qualquer
   imagem que o autor enviar sai no formato do medalhão, sem precisar
   ser recortada antes num editor. */
.medalha {
  position: relative; display: grid; place-items: center;
  width: var(--tam, 88px); height: var(--tam, 88px); flex-shrink: 0;
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--cor, #F0B429) 92%, #fff),
    color-mix(in srgb, var(--cor, #F0B429) 60%, #000));
}
.medalha[data-forma="circulo"]   { clip-path: circle(50% at 50% 50%); }
.medalha[data-forma="quadrado"]  { clip-path: inset(0 round 18%); }
.medalha[data-forma="hexagono"]  { clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.medalha[data-forma="triangulo"] { clip-path: polygon(50% 4%, 96% 90%, 4% 90%); }
.medalha[data-forma="escudo"]    { clip-path: polygon(50% 0%, 100% 15%, 100% 62%, 50% 100%, 0% 62%, 0% 15%); }

.medalha img { width: 100%; height: 100%; object-fit: cover; }
.medalha > span[data-icon] { display: grid; place-items: center; }
.medalha svg { width: 46%; height: 46%; color: #fff;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
/* no triângulo o desenho desce, senão fica na ponta estreita */
.medalha[data-forma="triangulo"] svg { transform: translateY(18%); width: 38%; height: 38%; }

/* moldura: um anel por cima, sem cortar o recorte */
.medalha-wrap { position: relative; display: inline-grid; place-items: center; }
.medalha-wrap::after {
  content: ''; position: absolute; inset: -5px; pointer-events: none;
  border: 3px solid var(--aro, #C9A227); opacity: .9;
}
.medalha-wrap[data-forma="circulo"]::after   { border-radius: 50%; }
.medalha-wrap[data-forma="quadrado"]::after  { border-radius: 20%; }
.medalha-wrap[data-forma="hexagono"]::after,
.medalha-wrap[data-forma="triangulo"]::after,
.medalha-wrap[data-forma="escudo"]::after    { border: none; }

.medalha-wrap[data-aro="ouro"]   { --aro: #C9A227; }
.medalha-wrap[data-aro="prata"]  { --aro: #A8B3C4; }
.medalha-wrap[data-aro="bronze"] { --aro: #B0713C; }

/* brilho para as raras */
.medalha-wrap.brilha .medalha {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cor, #F0B429) 30%, transparent),
              0 8px 26px color-mix(in srgb, var(--cor, #F0B429) 45%, transparent);
}
/* ainda não conquistada: silhueta */
.medalha-wrap.travada .medalha { filter: grayscale(1) brightness(.75); opacity: .5; }
.ach.travada strong { color: var(--text-soft); }
.ach.travada small { font-weight: 800; color: var(--text-soft); }

/* ---- Forma LIVRE: a arte não se contém no medalhão ----
   Sem recorte e sem fundo: a imagem aparece inteira, maior que as
   outras formas, com sombra e halo na cor da conquista. É o que dá a
   sensação de peça lendária — a arte escapa da moldura em vez de ser
   espremida dentro dela. */
.medalha[data-forma="livre"] {
  clip-path: none; background: none; overflow: visible;
  width: calc(var(--tam, 88px) * 1.5); height: calc(var(--tam, 88px) * 1.5);
}
.medalha[data-forma="livre"] img {
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.4))
          drop-shadow(0 0 20px color-mix(in srgb, var(--cor, #F0B429) 60%, transparent));
}
.medalha[data-forma="livre"] svg {
  width: 78%; height: 78%; color: var(--cor, #F0B429);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.35))
          drop-shadow(0 0 18px color-mix(in srgb, var(--cor, #F0B429) 55%, transparent));
}
/* sem aro: a moldura é justamente o que ela não tem */
.medalha-wrap[data-forma="livre"]::after { border: none; }
/* Brilho DESLIGADO: mantém só a sombra de profundidade, tira o glow colorido.
   (A forma "Livre" tinha um glow fixo que ignorava o toggle "Brilho".) */
.medalha.sem-brilho[data-forma="livre"] img { filter: drop-shadow(0 8px 16px rgba(0,0,0,.4)); }
.medalha.sem-brilho[data-forma="livre"] svg { filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.medalha.sem-brilho { box-shadow: none !important; }

/* ---- Parede de conquistas (Jornada) ----
   Grade de verdade: o layout antigo era feito para 4 medalhões numa
   linha e desmontava com 18 — nomes por cima da arte e vãos enormes. */
#page-jornada .ach-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 18px 12px; padding: 4px 2px;
}
#page-jornada .ach {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; min-width: 0;
}
#page-jornada .ach .medalha-wrap { margin-bottom: 2px; }
#page-jornada .ach strong { font-size: 12px; line-height: 1.25; color: var(--text-strong);
  overflow-wrap: anywhere; }
#page-jornada .ach small { font-size: 11px; font-weight: 800; color: var(--text-soft); }

/* ---- Resumo no Início ---- */
.ach-mini { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-start; }
.ach-mini-it { display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 62px; text-align: center; }
.ach-mini-it small { font-size: 10px; font-weight: 700; line-height: 1.2;
  color: var(--text-soft); overflow-wrap: anywhere; }

/* Parede recolhida: mostra duas fileiras e o resto sob "Ver todas".
   Dezoito medalhões abertos empurravam a Jornada para fora da tela. */
#page-jornada .ach-row.recolhida { max-height: 210px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
#page-jornada .ach-row { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 14px 10px; }
#page-jornada .ach { cursor: pointer; }
#page-jornada .ach .medalha { --tam: 52px !important; }
#page-jornada .ach strong { font-size: 11px; }
#page-jornada .ach small { font-size: 10px; }
#card-achievements { margin-top: 18px; }
/* marco ainda por conquistar: presente, mas discreto */
.ml-falta .ach-medal { filter: grayscale(1); opacity: .55; }
.ml-falta strong { color: var(--text-soft); }

/* O card "Próximo Nível" tinha fundo claro fixo e sumia no tema escuro.
   Passa a usar as variáveis do tema, como o resto dos cards. */
.next-level-card {
  background: var(--card, #fff) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
}
.next-level-card h3, .next-level-card strong { color: var(--text-strong) !important; }
.next-level-card p, .next-level-card small { color: var(--text-soft) !important; }
/* marco da jornada com a medalha real */
.milestone-list li { display: flex; align-items: center; gap: 12px; }
.milestone-list .medalha-wrap { flex-shrink: 0; }

/* ============ TOPO NO CELULAR ============
   O nome comprido ("Boa tarde, Heleninha!") disputava a linha com o
   chip de data e a orbe, e acabava espremido numa coluna de três
   palavras. No celular o cabeçalho passa a ocupar a largura inteira e
   os chips descem para a linha de baixo. */
@media (max-width: 780px) {
  .topbar { flex-wrap: wrap; align-items: flex-start; gap: 10px; }
  .topbar > div:first-of-type,
  .topbar .greeting, .topbar-left { flex: 1 1 100%; min-width: 0; order: 1; }
  #greeting-title {
    font-size: 20px; line-height: 1.25;
    display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  #greeting-sub { font-size: 12.5px; line-height: 1.4; }
  .topbar-right {
    flex: 1 1 100%; order: 2; display: flex; flex-wrap: wrap;
    gap: 8px; justify-content: flex-start; margin-left: 0;
  }
  .date-chip, .orb-chip { flex: 1 1 auto; min-width: 0; }
  .nav-toggle { order: 0; }
}
@media (max-width: 420px) {
  #greeting-title { font-size: 18px; }
  .topbar-right > * { flex: 1 1 100%; }
}

/* ============ FOCO DE AGORA ============
   Antes tudo disputava a mesma linha: os botões de som quebravam com um
   solto embaixo, e Pausar/Concluir ficavam espremidos ao lado. Agora o
   anel fica em cima, o conteúdo respira e cada grupo tem a sua faixa. */
.focus-active {
  display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap;
}
.focus-ring { flex: 0 0 auto; }
.focus-details { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.focus-details .f-name { display: flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 800; color: var(--text-strong); }
.focus-details .f-name svg { width: 20px; height: 20px; }
.focus-details > p { font-size: 12.5px; color: var(--text-soft); font-weight: 600; margin-bottom: 4px; }

/* som: uma grade que nunca deixa botão órfão */
.som-botoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 7px; }
.som-btn { width: 100%; text-align: center; padding: 9px 6px; }

/* ações: separadas do resto, lado a lado e do mesmo tamanho */
.focus-actions { display: flex; gap: 10px; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line); }
.focus-actions .btn { flex: 1; justify-content: center; }
@media (max-width: 520px) {
  .focus-active { flex-direction: column; align-items: center; }
  .focus-details { width: 100%; }
}

/* Mini-carta real: a caixa recebe largura e altura já calculadas, e a
   carta dentro é escalada por transform. Sem depender de JS posterior. */
.crt-mini { flex-shrink: 0; overflow: hidden; border-radius: 10px; }
.crt-esc { transform-origin: top left; width: 560px; }
.ac-img-wrap .crt-mini { margin: 0 auto; }
.ac-img-wrap { display: flex; justify-content: center; }
/* cards do Início com carta real */
.library-preview, .next-artifact { display: flex; gap: 14px; align-items: flex-start; }
.library-preview > div, .next-artifact > div { flex: 1; min-width: 0; }
.lib-vazia { display: flex; gap: 12px; align-items: center; }
.lib-vazia > span { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 13px; background: #EEF2F9; color: var(--text-soft); }
.lib-vazia > span svg { width: 22px; height: 22px; }
.lib-vazia strong { display: block; font-size: 14px; color: var(--text-strong); }
.lib-vazia p { font-size: 12px; color: var(--text-soft); font-weight: 600; margin-top: 2px; }

/* Verificação em duas etapas */
#box-2fa .tag.done { display: inline-flex; align-items: center; gap: 5px; }
.doisfa-passos { margin: 4px 0 12px; padding-left: 20px; font-size: 12.5px;
  color: var(--text); font-weight: 600; line-height: 1.7; }
.doisfa-passos b { color: var(--text-strong); }
.doisfa-chave { background: var(--bg, #F4F7FC); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; text-align: center; }
.doisfa-chave small { display: block; font-size: 10px; font-weight: 800; letter-spacing: 1.3px;
  color: var(--text-soft); margin-bottom: 6px; }
.doisfa-chave code { display: block; font-family: monospace; font-size: 15px; font-weight: 700;
  letter-spacing: 2px; color: var(--text-strong); margin-bottom: 10px; word-break: break-all; }
.doisfa-acoes { display: flex; gap: 10px; margin-top: 12px; }
.doisfa-acoes .btn { flex: 1; }
.doisfa-erro { color: #C2410C; font-size: 12px; font-weight: 700; margin-top: 8px; }
/* aceite da política no cadastro */
.lg-aceite { display: flex; gap: 9px; align-items: flex-start; margin: 4px 0 14px;
  font-size: 12.5px; color: #5A6B8C; font-weight: 600; line-height: 1.5; cursor: pointer; }
.lg-aceite input { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; }
.lg-aceite a { color: #1E6FEB; font-weight: 800; }

/* ============================================================
   GUIA INICIAL (onboarding) — holofote + balão
   ============================================================ */
.gx-onb { position: fixed; inset: 0; z-index: 4000; }
.gx-onb-shade { position: fixed; inset: 0; background: transparent; transition: background .2s; }
.gx-onb-shade.escuro { background: rgba(10, 22, 48, .62); }
.gx-onb-spot {
  position: fixed; right: auto; bottom: auto; border-radius: 14px; pointer-events: none;
  /* spread grande o bastante para cobrir qualquer tela, sem exagero. */
  box-shadow: 0 0 0 3000px rgba(10, 22, 48, .62);
  /* SEM transition: reposicionamentos durante o scroll a re-disparavam e
     o holofote nunca assentava no tamanho certo. Salto instantâneo é
     mais confiável (e não trava o compositor). */
}
.gx-onb-bubble {
  position: fixed; width: 360px; max-width: calc(100vw - 24px);
  background: #fff; border-radius: 18px; padding: 18px 18px 14px;
  box-shadow: 0 18px 50px rgba(10, 22, 48, .35);
  border: 1px solid var(--line);
}
.gx-onb-bubble.centro {
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 380px; text-align: left;
}
.gx-onb-step { font-size: 11px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--blue-500, #3B82F6); }
.gx-onb-bubble h3 { margin: 4px 0 8px; font-size: 18px; color: var(--text-strong, #1B2A4A);
  font-family: 'Baloo 2', system-ui, sans-serif; }
.gx-onb-body p { font-size: 13.5px; font-weight: 600; color: var(--text, #34405C); line-height: 1.55; }
.gx-onb-input {
  width: 100%; margin-top: 10px; padding: 11px 12px; border-radius: 11px;
  border: 1.5px solid var(--line, #DDE3EE); font-size: 14px; font-weight: 600; font-family: inherit;
}
.gx-onb-input:focus { outline: none; border-color: var(--blue-500, #3B82F6); }
.gx-onb-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.gx-onb-chip {
  border: 1px solid var(--line, #DDE3EE); background: #F4F7FC; color: var(--text, #34405C);
  border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.gx-onb-chip:hover { background: var(--blue-100, #E7F0FF); border-color: var(--blue-300, #A9C9FF); color: var(--blue-600, #1E6FEB); }
.gx-onb-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.gx-onb-skip { background: none; border: none; color: var(--text-soft, #7A879F);
  font-size: 12.5px; font-weight: 700; cursor: pointer; }
.gx-onb-skip:hover { color: var(--text, #34405C); text-decoration: underline; }
.gx-onb-next {
  margin-left: auto; background: var(--blue-500, #2C7BE5); color: #fff; border: none;
  border-radius: 11px; padding: 10px 20px; font-size: 13.5px; font-weight: 800; cursor: pointer;
  box-shadow: 0 6px 16px rgba(44, 123, 229, .32);
}
.gx-onb-next:hover { filter: brightness(1.05); }

/* Tema escuro */
body.theme-escuro .gx-onb-bubble { background: #16233F; border-color: #2A3A5C; }
body.theme-escuro .gx-onb-bubble h3 { color: #EAF1FF; }
body.theme-escuro .gx-onb-body p { color: #C4D0E6; }
body.theme-escuro .gx-onb-input { background: #0F1B33; border-color: #2A3A5C; color: #EAF1FF; }
body.theme-escuro .gx-onb-chip { background: #0F1B33; border-color: #2A3A5C; color: #C4D0E6; }

@media (max-width: 640px) {
  .gx-onb-bubble, .gx-onb-bubble.centro { width: calc(100vw - 24px); }
}

/* ============================================================
   ABERTURA DE PACOTE (conquista de carta)
   ============================================================ */
.pkg-ov { position: fixed; inset: 0; z-index: 4200; display: grid; place-items: center; gap: 14px;
  grid-auto-rows: max-content; align-content: center; padding: 16px;
  background: radial-gradient(120% 90% at 50% 34%, #12224a 0%, #0a1330 55%, #05070f 100%); }
.pkg-stage { position: relative; width: 100%; max-width: 520px; display: grid; place-items: center;
  height: min(74vh, 560px); }
.pkg-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 7; }
.pkg-flash { position: absolute; left: 50%; top: 40%; width: 60px; height: 60px; border-radius: 50%;
  transform: translate(-50%,-50%) scale(0); z-index: 6; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, #fff, rgba(255,255,255,.5), transparent); }
.pkg-flash.go { animation: pkgFlash .55s ease-out; }
@keyframes pkgFlash { 0%{opacity:0;transform:translate(-50%,-50%) scale(0)} 30%{opacity:1}
  100%{opacity:0;transform:translate(-50%,-50%) scale(11)} }
.pkg-spark { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #ffdf7e;
  box-shadow: 0 0 8px 2px rgba(255,214,90,.8); opacity: 0; }

/* carta que gira ao sair do pacote */
.pkg-reveal { --w: min(240px, 40vh, 78vw); width: var(--w); height: calc(var(--w) * 1.7143);
  position: relative; transform-style: preserve-3d; z-index: 1; opacity: 0;
  transform: translateY(64px) rotateY(180deg); }
.pkg-reveal:not([hidden]) { opacity: 1; }
.pkg-face { position: absolute; inset: 0; border-radius: 16px; overflow: hidden;
  backface-visibility: hidden; box-shadow: 0 20px 44px rgba(0,0,0,.55); }
.pkg-front .crt-fit { width: 100%; }
.pkg-cardback { transform: rotateY(180deg); display: grid; place-items: center;
  background: linear-gradient(160deg, var(--pc,#123a5e), var(--pc2,#071a2e));
  border: 2px solid rgba(255,255,255,.25); }
.pkg-cb-star { color: #fff; opacity: .9; font-size: 46px; text-shadow: 0 0 18px rgba(255,255,255,.5); }
.pkg-reveal.up { animation: pkgUp .6s cubic-bezier(.3,1,.4,1) forwards; }
@keyframes pkgUp { 0%{transform:translateY(64px) rotateY(180deg)} 100%{transform:translateY(0) rotateY(180deg)} }
.pkg-reveal.spin { animation: pkgSpin 1.25s cubic-bezier(.33,0,.15,1) forwards; }
@keyframes pkgSpin { 0%{transform:translateY(0) rotateY(180deg)} 100%{transform:translateY(0) rotateY(1440deg)} }
.pkg-reveal.glow::before { content:""; position:absolute; inset:-10px; border-radius:22px; z-index:-1;
  background: radial-gradient(closest-side, rgba(240,180,41,.6), transparent); opacity: 0; animation: pkgGlow 1.6s ease; }
@keyframes pkgGlow { 0%,100%{opacity:0} 45%{opacity:1} }
.pkg-reveal.shine::after { content:""; position:absolute; inset:0; border-radius:16px; z-index:3; pointer-events:none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.6) 46%, transparent 60%);
  transform: translateX(-160%); animation: pkgShine 1s ease; }
@keyframes pkgShine { 0%{opacity:0;transform:translateX(-160%)} 20%{opacity:1} 100%{opacity:0;transform:translateX(160%)} }
/* estado final: vira a carta normal (frente + verso + botão) */
.pkg-reveal.parada { width: min(300px, 44vh, 86vw); height: auto; transform: none !important; animation: none; }
.pkg-reveal.parada .carta-viradora .carta-lado { max-width: none; width: 100%; }

/* PACOTE */
.pkg-pack { position: absolute; width: 210px; height: 380px; z-index: 3; cursor: pointer; }
.pkg-pack:focus-visible { outline: 3px solid #7FE3EF; outline-offset: 4px; border-radius: 16px; }
.pkg-pack.shake { animation: pkgShake .4s ease; }
@keyframes pkgShake { 0%,100%{transform:translateX(0) rotate(0)} 20%{transform:translateX(-6px) rotate(-2deg)}
  40%{transform:translateX(6px) rotate(2deg)} 60%{transform:translateX(-5px) rotate(-1.5deg)} 80%{transform:translateX(5px) rotate(1.5deg)} }
.pkg-foil { position: absolute; inset: 0; border: 2px solid rgba(255,255,255,.35); background:
    repeating-linear-gradient(115deg, var(--pc,#1b3a6b) 0 10px, var(--pc2,#24508f) 10px 20px),
    linear-gradient(160deg, rgba(255,255,255,.28), transparent 40%); background-blend-mode: screen; }
.pkg-body { position: absolute; top: 13%; left: 0; width: 100%; height: 87%; overflow: hidden; border-radius: 6px 6px 14px 14px; }
.pkg-body .pkg-foil { border-radius: 6px 6px 14px 14px; border-top: none; }
.pkg-lid { position: absolute; top: 0; left: 0; width: 100%; height: 15%; z-index: 2; transform-origin: center bottom; }
.pkg-lid .pkg-foil { border-radius: 14px 14px 0 0; border-bottom: 2px dashed rgba(255,255,255,.6); }
.pkg-notch { position: absolute; bottom: -1px; left: 0; width: 100%; height: 5px;
  background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(5,8,15,.85) 6px 12px); }
.pkg-brand { position: absolute; top: 64px; left: 0; right: 0; text-align: center; color: #fff; z-index: 2;
  font-family: var(--font-display,'Baloo 2'); font-weight: 800; letter-spacing: 4px; font-size: 28px; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.pkg-emb { position: absolute; top: 116px; left: 0; right: 0; text-align: center; font-size: 40px; z-index: 2; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.pkg-label { position: absolute; bottom: 34px; left: 0; right: 0; text-align: center; color: #ffe9a8; z-index: 2;
  font-size: 11px; letter-spacing: 2px; font-weight: 800; padding: 0 10px; }
.pkg-hint { position: absolute; bottom: 74px; left: 0; right: 0; text-align: center; color: #fff; z-index: 4;
  font-size: 12px; font-weight: 800; background: rgba(0,0,0,.35); padding: 6px; animation: pkgPulse 1.3s ease-in-out infinite; }
@keyframes pkgPulse { 0%,100%{opacity:.65} 50%{opacity:1} }
.pkg-pack.open .pkg-hint { opacity: 0; animation: none; }
.pkg-pack.open .pkg-lid { animation: pkgTear .55s cubic-bezier(.4,.1,.2,1) forwards; }
@keyframes pkgTear { 0%{transform:translateY(0) rotate(0);opacity:1} 45%{transform:translateY(-10px) rotate(-3deg)}
  100%{transform:translateY(-260px) rotate(-22deg);opacity:0} }
.pkg-pack.gone { animation: pkgGone .45s ease forwards; }
@keyframes pkgGone { to { opacity: 0; transform: translateY(26px) scale(.96); } }
.pkg-fallback { display: grid; place-items: center; height: 100%; color: #fff; font-weight: 800; padding: 16px; text-align: center; }
/* Pacote com imagem própria: a arte cobre o pacote inteiro (só a tampa/lacre
   de cima fica por cima para rasgar). */
.pkg-img-full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; z-index: 1; }
.pkg-pack.com-imagem .pkg-body .pkg-foil,
.pkg-pack.com-imagem .pkg-brand,
.pkg-pack.com-imagem .pkg-emb,
.pkg-pack.com-imagem .pkg-label { display: none; }
.pkg-pack.com-imagem .pkg-lid { z-index: 2; }
.pkg-pack.com-imagem .pkg-hint { z-index: 4; }

.pkg-caption { min-height: 22px; color: #dfe8fb; font-weight: 800; font-size: 15px; text-align: center;
  font-family: var(--font-display,'Baloo 2'); }
.pkg-close { border: none; background: linear-gradient(135deg, #F2C14A, #DB9B1E); color: #3a2600;
  border-radius: 12px; padding: 12px 26px; font-weight: 800; font-size: 14.5px; cursor: pointer;
  box-shadow: 0 8px 20px rgba(219,155,30,.4); }
.pkg-close:hover { filter: brightness(1.05); }
.pkg-close.hidden { display: none; }

/* ============================================================
   PÁGINA COLEÇÃO (álbum / estante)
   ============================================================ */
.col-header { margin-bottom: 16px; }
.col-stats { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.col-stat { background: var(--surface-2, #F4F7FC); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 18px; min-width: 120px; }
.col-stat strong { display: block; font-family: var(--font-display,'Baloo 2'); font-size: 22px; color: var(--gold-500,#DB9B1E); }
.col-stat small { color: var(--text-soft); font-weight: 700; font-size: 11.5px; }

.col-shelf { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 16px 20px; margin-bottom: 16px; box-shadow: 0 4px 14px rgba(20,40,90,.05); }
.col-shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  border-bottom: 2px solid var(--line); padding-bottom: 10px; margin-bottom: 16px; }
.col-shelf-head h3 { font-family: var(--font-display,'Baloo 2'); font-size: 18px; color: var(--text-strong); }
.col-count { font-weight: 800; font-size: 13px; color: var(--gold-500,#DB9B1E);
  background: #FDF3D7; border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
.col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 16px; align-items: start; }
.col-card { border: none; background: none; cursor: pointer; padding: 0; display: flex; flex-direction: column;
  align-items: center; gap: 8px; transition: transform .12s; }
.col-card:hover { transform: translateY(-4px); }
.col-card-fit { width: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 20px rgba(10,22,48,.28); }
.col-card strong { font-size: 11.5px; font-weight: 800; color: var(--text); text-align: center; line-height: 1.25; }
/* espaço vazio (carta ainda não conquistada) */
.col-slot { aspect-ratio: 7 / 12; border-radius: 12px; border: 2px dashed var(--line);
  display: grid; place-items: center; color: var(--line); background: var(--surface-2,#F7F9FD); }
.col-slot svg { width: 30px; height: 30px; opacity: .6; }
.col-slot-mais { border-style: solid; color: var(--text-soft); font-weight: 800; font-size: 18px; font-family: var(--font-display,'Baloo 2'); }

.col-vazia { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 34px 22px; }
.col-vazia > span { width: 46px; height: 46px; color: var(--gold-400,#F0B429); }
.col-vazia strong { display: block; font-family: var(--font-display,'Baloo 2'); font-size: 18px; color: var(--text-strong); }
.col-vazia p { color: var(--text-soft); font-weight: 600; font-size: 13px; line-height: 1.5; max-width: 420px; margin: 6px auto 0; }

body.theme-escuro .col-stat, body.theme-escuro .col-slot { background: #0F1B33; }
body.theme-escuro .col-count { background: #3a2f12; }

/* ============================================================
   LUPA — ver a carta ampliada (frente + verso, rolável)
   ============================================================ */
.card-modal-acoes { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.card-modal-acoes .btn.hidden { display: none; }
.pkg-acoes { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.pkg-acoes.hidden { display: none; }
.pkg-lupa { border: 1.5px solid rgba(255,255,255,.5); background: rgba(255,255,255,.1); color: #fff;
  border-radius: 12px; padding: 12px 20px; font-weight: 800; font-size: 14px; cursor: pointer; }
.pkg-lupa:hover { background: rgba(255,255,255,.2); }

.lupa-ov { position: fixed; inset: 0; z-index: 4500; background: rgba(5,10,26,.94);
  overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.lupa-scroll { min-height: 100%; display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 58px 12px 44px; }
.lupa-scroll .lupa-card { width: min(560px, 94vw); flex-shrink: 0; }
.lupa-tag { color: #9db0d6; font-weight: 800; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  margin-top: 10px; }
.lupa-close { position: fixed; top: 14px; right: 16px; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.16); color: #fff; font-size: 20px; cursor: pointer;
  display: grid; place-items: center; }
.lupa-close:hover { background: rgba(255,255,255,.3); }
.lupa-holder { position: relative; flex-shrink: 0; }
.lupa-scroll { padding-bottom: 92px; }   /* espaço para a barra de zoom fixa */
.lupa-zoom { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 12px; background: rgba(20,32,58,.92); border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px; padding: 9px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.lupa-range { width: min(220px, 46vw); accent-color: #F0B429; cursor: pointer; }
.lupa-zbtn { width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(255,255,255,.16);
  color: #fff; font-size: 20px; font-weight: 800; cursor: pointer; line-height: 1; display: grid; place-items: center; }
.lupa-zbtn:hover { background: rgba(255,255,255,.3); }

/* ============================================================
   MASCOTE ANIMADO na sidebar — chama atenção com movimentos
   aleatórios (balança, pula, gira, espia...).
   ============================================================ */
.mascot-slot img, .mascot-slot .img-placeholder { will-change: transform; transform-origin: 50% 92%; }
.mascot-slot .m-bob    { animation: mBob 1.7s ease-in-out; }
.mascot-slot .m-sway   { animation: mSway 2.1s ease-in-out; }
.mascot-slot .m-peek   { animation: mPeek 1.9s ease; }
.mascot-slot .m-jump   { animation: mJump 1.2s cubic-bezier(.3,1.5,.5,1); }
.mascot-slot .m-wiggle { animation: mWiggle 1s ease; }
.mascot-slot .m-spin   { animation: mSpin 1.5s ease; }
@keyframes mBob    { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes mSway   { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-8deg)} 75%{transform:rotate(8deg)} }
@keyframes mPeek   { 0%{transform:translateX(0)} 28%{transform:translateX(-16px) rotate(-7deg)} 60%{transform:translateX(9px) rotate(5deg)} 100%{transform:translateX(0)} }
@keyframes mJump   { 0%,100%{transform:translateY(0)} 32%{transform:translateY(-24px) scale(1.05)} 52%{transform:translateY(0) scale(1.05,.95)} 70%{transform:translateY(0) scale(.98,1.02)} }
@keyframes mWiggle { 0%,100%{transform:rotate(0)} 20%{transform:rotate(-11deg)} 40%{transform:rotate(9deg)} 60%{transform:rotate(-6deg)} 80%{transform:rotate(4deg)} }
@keyframes mSpin   { 0%{transform:rotateY(0)} 100%{transform:rotateY(360deg)} }
@media (prefers-reduced-motion: reduce) { .mascot-slot img { animation: none !important; } }

/* ============================================================
   PAINEL DE DETALHE DA CONQUISTA
   ============================================================ */
.cq-modal { position: relative; max-width: 380px; text-align: center; display: flex;
  flex-direction: column; align-items: center; gap: 10px; padding: 26px 24px 24px; }
.cq-x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--surface-2,#F1F4FA); color: var(--text-soft); font-size: 16px; cursor: pointer; }
.cq-x:hover { background: var(--line); }
.cq-medal { margin-top: 4px; }
.cq-rar { margin-top: 2px; }
.cq-nome { font-family: var(--font-display,'Baloo 2'); font-size: 22px; color: var(--text-strong); margin: 2px 0; }
.cq-desc { color: var(--text); font-weight: 600; font-size: 14px; line-height: 1.5; }
.cq-feito { display: inline-flex; align-items: center; gap: 7px; color: #0E9F6E; font-weight: 800; font-size: 14px; }
.cq-feito span { width: 20px; height: 20px; }
.cq-prog { width: 100%; margin-top: 4px; }
.cq-prog-bar { height: 10px; border-radius: 999px; background: var(--surface-2,#EDF1F8); overflow: hidden; }
.cq-prog-bar > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg,#7C5CFF,#4C7DFF); }
.cq-prog small { display: block; margin-top: 6px; color: var(--text-soft); font-weight: 800; font-size: 12px; }
.cq-recompensas { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.cq-recompensas span { background: #FDF3D7; color: #9A6B00; border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: 12px; }
body.theme-escuro .cq-x { background: #1a2438; }
body.theme-escuro .cq-recompensas span { background: #3a2f12; color: #F0C766; }

/* ============================================================
   COMEMORAÇÃO ao ganhar conquista (brilho/partículas/raios)
   ============================================================ */
.cel-ov { position: fixed; inset: 0; z-index: 4300; display: grid; place-items: center; padding: 20px;
  background: rgba(6,12,30,.8); opacity: 0; transition: opacity .25s; }
.cel-ov.show { opacity: 1; }
.cel-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cel-rays { position: absolute; left: 50%; top: 42%; width: 900px; height: 900px; transform: translate(-50%,-50%);
  background: repeating-conic-gradient(from 0deg, rgba(255,214,90,.16) 0 8deg, transparent 8deg 22deg);
  animation: celRays 9s linear infinite; }
@keyframes celRays { to { transform: translate(-50%,-50%) rotate(360deg); } }
.cel-spark { position: absolute; width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 8px 2px currentColor; opacity: 0; }
.cel-card { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center;
  gap: 9px; background: var(--card,#fff); border-radius: 22px; padding: 24px 28px; max-width: 360px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45); transform: scale(.7); transition: transform .35s cubic-bezier(.3,1.5,.5,1); }
.cel-ov.show .cel-card { transform: scale(1); }
.cel-tit { color: var(--gold-500,#DB9B1E); font-weight: 800; font-family: var(--font-display,'Baloo 2'); font-size: 15px; letter-spacing: 1px; }
.cel-medal-wrap { margin: 2px 0; animation: celPop .6s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes celPop { 0%{transform: scale(0) rotate(-12deg)} 100%{transform: scale(1) rotate(0)} }
.medalha.cel-glow { box-shadow: 0 0 34px var(--cor,#F0B429); }
.medalha.sem-fundo { background: none !important; }
.cel-nome { font-family: var(--font-display,'Baloo 2'); font-size: 22px; color: var(--text-strong); margin: 2px 0; }
.cel-desc { color: var(--text); font-weight: 600; font-size: 13.5px; line-height: 1.5; }
.cel-recompensa { display: inline-flex; align-items: center; gap: 6px; background: #FDF3D7; color: #9A6B00; font-weight: 800;
  border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.cel-recompensa span { width: 18px; height: 18px; }
.cel-ok { margin-top: 6px; border: none; background: linear-gradient(135deg,#F2C14A,#DB9B1E); color: #3a2600;
  border-radius: 12px; padding: 11px 28px; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 8px 20px rgba(219,155,30,.4); }
.cel-ok:hover { filter: brightness(1.05); }
body.theme-escuro .cel-card { background: #16233F; }
body.theme-escuro .cel-nome { color: #EAF1FF; }
body.theme-escuro .cel-desc { color: #C4D0E6; }

/* Lista de conquistas na Jornada — compacta, rolável e clicável */
.milestone-list.ml-scroll { max-height: 440px; overflow-y: auto; padding-right: 4px; }
.milestone-list.ml-scroll li { cursor: pointer; border-radius: 10px; padding: 10px 8px; border-bottom: 1px solid var(--line); transition: background .12s; }
.milestone-list.ml-scroll li:last-child { border-bottom: none; }
.milestone-list.ml-scroll li:hover { background: var(--surface-2, #F4F7FC); }
.milestone-list.ml-scroll li.ml-falta { opacity: .78; }
body.theme-escuro .milestone-list.ml-scroll li:hover { background: #14203a; }
