/* =========================================================================
   Onboarding Wicomm — Sua Jornada Começa Agora
   style.css — identidade visual baseada na marca Wicomm (wicomm.com.br):
   fundo escuro + gradiente neon rosa/vermelho, cards arredondados,
   estética de "game corporativo" (não infantil).
   ========================================================================= */

:root {
  /* Paleta viva da identidade Wicomm — clara, colorida e convidativa */
  --wc-bg: #fff2f8;
  --wc-bg-alt: #ffffff;
  --wc-surface: #ffffff;
  --wc-surface-2: #ffe2ef;
  --wc-border: #ffc3dd;
  --wc-accent-1: #ff0046;
  --wc-accent-2: #fe0071;
  --wc-accent-soft: #ffd9ea;
  --wc-gradient: linear-gradient(135deg, var(--wc-accent-1), var(--wc-accent-2));
  --wc-gradient-vivid: linear-gradient(135deg, #ff6fa8, #ff0046 55%, #c4005a);
  --wc-gradient-soft: linear-gradient(135deg, rgba(255,0,70,0.12), rgba(254,0,113,0.12));
  --wc-text: #34081d;
  --wc-text-dim: #86475b;
  --wc-success: #12b886;
  --wc-warning: #ffb703;
  --wc-gold: #ffcc33;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 12px 28px rgba(255,0,70,0.14);
  --focus-ring: 0 0 0 3px rgba(255,0,70,0.45);
  --font-base: "Poppins", "Segoe UI", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

/* Garante que o atributo HTML "hidden" sempre vença qualquer classe com
   display:flex/grid/block (evita overlays e o dashboard aparecerem antes da hora). */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  background:
    radial-gradient(circle at 10% -10%, #ffd3e6 0%, transparent 45%),
    radial-gradient(circle at 95% 10%, #ffe3c2 0%, transparent 35%),
    radial-gradient(circle at 50% 100%, #ffd3e6 0%, transparent 40%),
    var(--wc-bg) fixed;
  color: var(--wc-text);
  min-height: 100vh;
  line-height: 1.5;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 8px; }
p { margin: 0 0 12px; color: var(--wc-text-dim); }

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; }

a { color: var(--wc-accent-2); }

.grad-text {
  background: var(--wc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Acessibilidade ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--wc-accent-1);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* =========================================================================
   BOTÕES
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--wc-gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255,0,70,0.35);
}
.btn--primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn--ghost {
  background: transparent;
  color: var(--wc-text);
  border: 1px solid var(--wc-border);
}
.btn--large { padding: 16px 32px; font-size: 1.05rem; width: 100%; }

.btn-back {
  background: none;
  border: none;
  color: var(--wc-text-dim);
  font-weight: 600;
  padding: 6px 4px;
  margin-bottom: 12px;
}
.btn-back:hover { color: var(--wc-text); }

.icon-btn {
  background: var(--wc-surface);
  border: 1px solid var(--wc-border);
  color: var(--wc-text);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { border-color: var(--wc-accent-1); }

/* =========================================================================
   DASHBOARD FIXO
   ========================================================================= */
.dashboard {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wc-border);
  box-shadow: 0 4px 18px rgba(255,0,70,0.08);
}

.dashboard__player { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dashboard__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--wc-surface);
  border: 2px solid var(--wc-accent-1);
  padding: 4px;
  object-fit: contain;
  object-position: bottom;
}
.dashboard__info { min-width: 0; }
.dashboard__name { font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.dashboard__level { margin: 0; font-size: 0.8rem; color: var(--wc-accent-2); font-weight: 600; }

.dashboard__progress { min-width: 0; }
.dashboard__progress-track {
  width: 100%; height: 10px; border-radius: 999px;
  background: var(--wc-surface-2);
  overflow: hidden;
  border: 1px solid var(--wc-border);
}
.dashboard__progress-fill {
  height: 100%;
  width: 0%;
  background: var(--wc-gradient);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(.22,1,.36,1);
}
.dashboard__progress-label { margin: 4px 0 0; font-size: 0.78rem; }
.dashboard__next { margin: 0; font-size: 0.78rem; color: var(--wc-text); font-weight: 600; }

.dashboard__stats { display: flex; gap: 8px; }
.stat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--wc-surface);
  border: 1px solid var(--wc-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}
.stat-pill--button { color: var(--wc-text); border: 1px solid var(--wc-border); }
.stat-pill--button:hover { border-color: var(--wc-accent-1); }

.dashboard__actions { display: flex; gap: 8px; }

@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr auto;
    grid-template-areas: "player actions" "progress progress" "stats stats";
  }
  .dashboard__player { grid-area: player; }
  .dashboard__actions { grid-area: actions; }
  .dashboard__progress { grid-area: progress; }
  .dashboard__stats { grid-area: stats; flex-wrap: wrap; }
}

/* =========================================================================
   TELAS (screen switching)
   ========================================================================= */
.screen { display: none; padding: 32px 24px 80px; max-width: 1080px; margin: 0 auto; animation: fadeIn 0.35s ease; }
.screen--active { display: block; }

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

/* =========================================================================
   SPLASH
   ========================================================================= */
#screen-splash { max-width: 720px; padding-top: 8vh; }
.splash { text-align: center; }
.splash__eyebrow {
  text-transform: uppercase; letter-spacing: 2px; font-size: 0.75rem;
  color: var(--wc-accent-2); font-weight: 700; margin-bottom: 8px;
}
.splash__title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.splash__message { font-size: 1.05rem; max-width: 560px; margin: 0 auto 28px; }
.splash__form { text-align: left; background: var(--wc-surface); border: 1px solid var(--wc-border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card); }

.field-label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.9rem; }
.field-input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--wc-border); background: var(--wc-bg-alt); color: var(--wc-text);
  font-size: 1rem; margin-bottom: 20px;
}
.field-textarea { resize: vertical; font-family: inherit; }
.field-input:focus { border-color: var(--wc-accent-1); }

.avatar-picker { border: none; padding: 0; margin: 0 0 24px; }
.avatar-picker__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 12px; }
.avatar-option {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px; border-radius: var(--radius-md); border: 2px solid var(--wc-border);
  background: var(--wc-bg-alt); font-size: 0.78rem; font-weight: 600; text-align: center;
}
.avatar-option img { width: 56px; height: 56px; object-fit: contain; object-position: bottom; }
.avatar-option input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-option:has(input:checked) { border-color: var(--wc-accent-1); background: var(--wc-gradient-soft); }
.avatar-option:hover { border-color: var(--wc-accent-2); }

/* =========================================================================
   MAPA DA JORNADA — banner do escritório + trilha em zigue-zague (topo→base)
   ========================================================================= */
.map-header { text-align: center; margin-bottom: 20px; }

/* Banner com a ilustração em pixel art do escritório Wicomm (sem pessoas) */
.map-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 700;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  background-image: url("/static/assets/backgrounds/office-map.jpg");
  background-size: cover;
  background-position: center 60%;
  border: 3px solid #fff;
  box-shadow: var(--shadow-card);
}
.map-banner__scrim {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px 24px;
  background: linear-gradient(0deg, rgba(105,0,45,0.75) 0%, rgba(105,0,45,0.15) 55%, transparent 100%);
}
.map-banner__title { color: #fff; font-weight: 800; font-size: clamp(1.1rem, 3vw, 1.6rem); margin: 0; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.map-banner__sub { color: #ffe3ee; margin: 4px 0 0; font-size: 0.85rem; font-weight: 600; }

/* Palco do mapa: proporção fixa (padding-bottom trick) para manter as
   posições em % consistentes com a ilustração de ilhas flutuantes em
   qualquer largura de tela. A imagem é quadrada (1:1). */
.map-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow-card);
  background-image: url("/static/assets/backgrounds/map-islands.jpg");
  background-size: cover;
  background-position: center;
}

/* Pedrinhas da trilha entre as ilhas (desenhadas via JS a partir das
   coordenadas dos nós, no mesmo espírito da arte de referência). */
.map-stone {
  position: absolute;
  width: 3.4%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: linear-gradient(160deg, #b7a2e0, #8b6fc9);
  border: 2px solid #ffffffaa;
  border-radius: 40%;
  box-shadow: 0 3px 6px rgba(70,30,110,0.35);
  z-index: 1;
  animation: stoneIn 0.4s ease both;
}
@keyframes stoneIn {
  from { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.map-stage { position: absolute; inset: 0; }

.map-path {
  list-style: none;
  margin: 0; padding: 0;
  position: absolute; inset: 0;
  z-index: 2;
}

/* Cada nó fica posicionado exatamente sobre o "selo" numerado já pintado
   na ilustração — o botão funciona como uma área clicável semi-transparente
   com aro de estado (bloqueado/atual/concluído), sem cobrir a arte original. */
.map-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 10.5%;
  aspect-ratio: 1;
  text-align: center;
}
.map-node--boss { width: 13%; }

.map-node__btn {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  background: transparent;
  display: block;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.map-node__btn:hover:not(:disabled) { transform: scale(1.08); }

.map-node--current .map-node__btn { border-color: var(--wc-accent-1); animation: pulse 1.8s infinite; }
.map-node--done .map-node__btn { border-color: var(--wc-success); }
.map-node--locked .map-node__btn {
  border-color: rgba(255,255,255,0.7);
  background: rgba(60,45,70,0.55);
  cursor: not-allowed;
}

/* Checkpoints futuros (30/60/90 dias) — não têm ilha própria na ilustração,
   então flutuam sobre o céu com um selo próprio, sempre bloqueados. */
.map-node--comingsoon { width: 7.5%; }
.map-node--comingsoon .map-node__btn {
  border: 2px dashed rgba(255,255,255,0.85);
  background: rgba(60,45,70,0.4);
}
.map-node--comingsoon .map-node__state { background: rgba(255,255,255,0.92); }
.map-node--comingsoon .map-node__info { opacity: 0.85; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,0,70,0.5); }
  50% { box-shadow: 0 0 0 10px rgba(255,0,70,0); }
}

/* Selinho no canto indicando o estado (concluído / bloqueado) */
.map-node__state {
  position: absolute; top: -6px; right: -6px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

.map-node__info {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  min-width: 92px;
  background: rgba(255,255,255,0.94);
  border-radius: var(--radius-sm);
  padding: 3px 9px;
  box-shadow: 0 4px 10px rgba(255,0,70,0.14);
  white-space: nowrap;
}
.map-node__eyebrow { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 1px; color: var(--wc-accent-2); font-weight: 700; margin: 0; }
.map-node__title { font-weight: 800; margin: 1px 0; font-size: 0.78rem; line-height: 1.15; }
.map-node__badge { font-size: 0.6rem; color: var(--wc-text-dim); margin: 0; }

/* Avatar do jogador no mapa: halo branco + aro rosa + selo pulsante para
   ficar bem visível sobre a arte colorida das ilhas ("você está aqui"). */
.map-avatar {
  position: absolute;
  width: 62px; height: 62px;
  z-index: 5;
  padding: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 58%, rgba(255,255,255,0.9) 78%, rgba(255,255,255,0) 100%);
  box-shadow: 0 0 0 3px var(--wc-accent-1), 0 10px 20px rgba(122,0,51,0.45);
  animation: avatarBob 1.6s ease-in-out infinite;
  transition: top 0.8s cubic-bezier(.22,1,.36,1), left 0.8s cubic-bezier(.22,1,.36,1);
}
.map-avatar__img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 3px 4px rgba(122,0,51,0.35)); }
.map-avatar__ring {
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 3px solid var(--wc-accent-1);
  animation: avatarPing 1.8s ease-out infinite;
}

@keyframes avatarBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes avatarPing {
  0% { transform: scale(0.75); opacity: 0.9; }
  100% { transform: scale(1.55); opacity: 0; }
}

@media (max-width: 640px) {
  .map-node__info { display: none; }
  .map-avatar { width: 46px; height: 46px; }
  .map-stone { width: 4.2%; }
}

/* =========================================================================
   BANNERS DE FASE
   ========================================================================= */
.phase-banner {
  display: flex; align-items: center; gap: 20px;
  background: var(--wc-surface);
  border: 1px solid var(--wc-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
}
.phase-banner__icon { width: 56px; height: 56px; flex-shrink: 0; font-size: 2.2rem; display: flex; align-items: center; justify-content: center; }
.phase-banner__eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.72rem; color: var(--wc-accent-2); font-weight: 700; margin: 0 0 4px; }
.phase-banner h2 { margin: 0 0 6px; }
.phase-banner p:last-child { margin: 0; }

/* =========================================================================
   FASE 0 — colecionáveis (clip-path "pixel corner" — nod ao platformer)
   ========================================================================= */
.collectibles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 28px; }
.collectible-card {
  background: var(--wc-surface);
  border: 1px solid var(--wc-border);
  padding: 22px;
  text-align: center;
  clip-path: polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.collectible-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.collectible-card__icon { font-size: 2.4rem; margin-bottom: 12px; }
.collectible-card h3 { font-size: 1rem; margin-bottom: 6px; }
.collectible-card--done { border-color: var(--wc-success); }
.collectible-card .status-tag { display: inline-block; margin-top: 10px; font-size: 0.75rem; font-weight: 700; color: var(--wc-success); }

/* =========================================================================
   FASE 1 / 4 — personagens
   ========================================================================= */
.characters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 28px; }
.character-card {
  background: var(--wc-surface);
  border: 1px solid var(--wc-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.character-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.character-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.character-card__avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--wc-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0; color: #fff;
}
.character-card__name { margin: 0; font-weight: 700; font-size: 0.95rem; }
.character-card__role { margin: 0; font-size: 0.78rem; color: var(--wc-accent-2); }
.character-card__quote { font-size: 0.85rem; font-style: italic; margin-bottom: 12px; }
.character-card--done { border-color: var(--wc-success); }
.character-card .status-tag { font-size: 0.75rem; font-weight: 700; color: var(--wc-success); }

/* =========================================================================
   FASE 1 — planta baixa interativa do escritório (imagem real da Wicomm)
   ========================================================================= */
.floorplan-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow-card);
  background-image: url("/static/assets/backgrounds/floorplan-fase1.jpg");
  background-size: cover;
  background-position: center;
  margin-bottom: 28px;
}
.floorplan-stage { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; }

/* Cada sala fica posicionada sobre o número já pintado na ilustração. */
.floorplan-room {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 7.5%;
  aspect-ratio: 1;
  text-align: center;
}
.floorplan-room__btn {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85);
  background: rgba(255,0,70,0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.floorplan-room__btn:hover { transform: scale(1.15); border-color: var(--wc-accent-2); }
.floorplan-room--done .floorplan-room__btn { border-color: var(--wc-success); background: rgba(18,184,134,0.14); }

/* Número da sala desenhado pelo app (garante numeração sequencial 1-5,
   independente do que ficou pintado na ilustração de fundo). Discreto de propósito. */
.floorplan-room__num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ff5b9c, var(--wc-accent-2) 62%, #c4005a 100%);
  color: #fff; font-weight: 800; line-height: 1;
  font-size: clamp(0.68rem, 1.6vw, 0.95rem);
  box-shadow: 0 3px 7px rgba(196,0,90,0.4), inset 0 -2px 4px rgba(0,0,0,0.15);
  pointer-events: none;
}
.floorplan-room--done .floorplan-room__num { filter: grayscale(0.25) brightness(0.95); }

.floorplan-room__state {
  position: absolute; top: -5px; right: -5px;
  width: 17px; height: 17px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

.floorplan-room__info {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  min-width: 96px;
  background: rgba(255,255,255,0.94);
  border-radius: var(--radius-sm);
  padding: 3px 9px;
  box-shadow: 0 4px 10px rgba(255,0,70,0.14);
  white-space: nowrap;
}
.floorplan-room__name { margin: 0; font-weight: 800; font-size: 0.76rem; }
.floorplan-room__role { margin: 0; font-size: 0.62rem; color: var(--wc-accent-2); font-weight: 700; }

@media (max-width: 640px) {
  .floorplan-room__info { display: none; }
}

/* Boas-vindas do mascote Wi (mensagem única ao entrar na Fase 1) */
.mascot-welcome { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.mascot-welcome img { width: 130px; margin-bottom: 4px; }
.mascot-welcome .speech-bubble {
  position: relative;
  background: var(--wc-surface-2);
  border: 2px solid var(--wc-accent-soft);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-weight: 600;
}

/* =========================================================================
   FASE 2 — trilha online (track/stations)
   ========================================================================= */
.track { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.station {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  background: var(--wc-surface);
  border: 1px solid var(--wc-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.station__index {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--wc-surface-2); border: 2px solid var(--wc-border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; flex-shrink: 0;
}
.station--done .station__index { background: var(--wc-success); border-color: var(--wc-success); color: #0c0a10; }
.station--current .station__index { border-color: var(--wc-accent-1); }
.station--locked { opacity: 0.5; }
.station__body { flex: 1; min-width: 0; }
.station__title { margin: 0 0 4px; font-weight: 700; }
.station__desc { margin: 0; font-size: 0.85rem; }
.station .status-tag { color: var(--wc-success); font-size: 0.78rem; font-weight: 700; }

/* =========================================================================
   MODAIS
   ========================================================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(60,8,32,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal {
  position: relative;
  background: var(--wc-bg-alt);
  border: 1px solid var(--wc-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  animation: pop 0.25s cubic-bezier(.22,1,.36,1);
}
@keyframes pop { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal__close {
  position: absolute; top: 16px; right: 16px;
  background: var(--wc-surface); border: 1px solid var(--wc-border);
  color: var(--wc-text); width: 34px; height: 34px; border-radius: 50%;
}
.modal__icon { font-size: 2.4rem; margin-bottom: 8px; }
.modal__eyebrow { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 1.5px; color: var(--wc-accent-2); font-weight: 700; }
.modal__title { margin-bottom: 12px; }
.modal__body p:last-child { margin-bottom: 0; }
.modal__actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.modal--badges { max-width: 640px; }
.modal--org { max-width: 720px; }
.modal--wide { max-width: 620px; }

/* Vídeo incorporado (pop-up de boas-vindas ao mapa) */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  margin: 4px 0 8px;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.modal-link {
  display: inline-block; margin: 6px 0 16px; font-weight: 700; font-size: 0.85rem;
  color: var(--wc-accent-2); border-bottom: 1px dashed var(--wc-accent-2); padding-bottom: 2px;
}

.checklist { list-style: none; margin: 0 0 16px; padding: 0; }
.checklist li { margin-bottom: 10px; }
.checklist label { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }

/* Upload de arquivo (certificado da trilha online) */
.upload-file {
  display: flex; align-items: center; gap: 12px;
  border: 2px dashed var(--wc-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 6px;
  cursor: pointer;
  background: var(--wc-surface-2);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.upload-file:hover { border-color: var(--wc-accent-2); background: #ffd6e8; }
.upload-file__icon { font-size: 1.4rem; flex-shrink: 0; }
.upload-file__text { display: flex; flex-direction: column; gap: 2px; font-size: 0.82rem; color: var(--wc-text-dim); }
.upload-file__text strong { color: var(--wc-text); font-size: 0.92rem; }
.upload-file__name {
  margin: 10px 0 0; font-size: 0.85rem; font-weight: 700; color: var(--wc-success);
}
.upload-file__done { font-weight: 700; color: var(--wc-success); margin-top: 10px; }

/* Seções do Brandbook do Colaborador (boas práticas iniciais) */
.brandbook-sections { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.brandbook-section {
  background: var(--wc-bg-alt); border: 1px solid var(--wc-border);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.brandbook-section__title { margin: 0 0 4px; font-weight: 800; font-size: 0.88rem; }
.brandbook-section__text { margin: 0; font-size: 0.84rem; }
.disclaimer-tag {
  display: inline-block; font-style: italic; font-size: 0.7rem; font-weight: 700;
  color: var(--wc-accent-1); background: var(--wc-accent-soft);
  padding: 1px 8px; border-radius: 999px; margin-left: 4px;
}
.brandbook-resources__label { font-weight: 700; font-size: 0.85rem; margin: 18px 0 2px; }

/* Recursos para download (Brandbook do Colaborador) */
.brandbook-resources { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.brandbook-resources li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--wc-surface-2); border: 1px solid var(--wc-border);
  border-radius: var(--radius-sm); padding: 10px 14px;
}
.brandbook-resources .resource-name { font-weight: 700; font-size: 0.88rem; }
.brandbook-resources .resource-desc { font-size: 0.74rem; color: var(--wc-text-dim); margin: 0; }
.brandbook-resources a.btn { flex-shrink: 0; padding: 8px 16px; font-size: 0.8rem; }

/* Quiz */
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.quiz-option {
  text-align: left; background: var(--wc-surface); border: 1px solid var(--wc-border);
  border-radius: var(--radius-sm); padding: 12px 16px; color: var(--wc-text); font-size: 0.92rem;
}
.quiz-option:hover { border-color: var(--wc-accent-2); }
.quiz-option--correct { border-color: var(--wc-success); background: rgba(47,216,143,0.12); }
.quiz-option--wrong { border-color: var(--wc-accent-1); background: rgba(255,0,70,0.12); }
.quiz-feedback { font-weight: 700; margin-top: 4px; }
.quiz-feedback--ok { color: var(--wc-success); }
.quiz-feedback--retry { color: var(--wc-accent-2); }

/* =========================================================================
   BADGES
   ========================================================================= */
.badges-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-top: 16px; }
.badge-slot { text-align: center; padding: 16px 10px; background: var(--wc-surface); border: 1px solid var(--wc-border); border-radius: var(--radius-md); }
.badge-slot img { width: 64px; margin: 0 auto 8px; }
.badge-slot p { margin: 0; font-size: 0.78rem; font-weight: 700; color: var(--wc-text); }
.badge-slot--locked { opacity: 0.35; }
.badge-slot--locked img { filter: grayscale(1); }

/* =========================================================================
   ORGANOGRAMA (fase 4)
   ========================================================================= */
.orgchart { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 20px 0; }
.orgchart__row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.orgchart__node {
  background: var(--wc-surface); border: 1px solid var(--wc-border); border-radius: var(--radius-sm);
  padding: 10px 16px; font-size: 0.85rem; font-weight: 700; min-width: 120px; text-align: center;
}
.orgchart__node:hover { border-color: var(--wc-accent-1); }
.orgchart__node--visited { border-color: var(--wc-success); }
.orgchart__card {
  margin-top: 8px; background: var(--wc-bg); border: 1px solid var(--wc-accent-1);
  border-radius: var(--radius-md); padding: 16px; font-size: 0.88rem;
}
.orgchart__card strong { color: var(--wc-text); }

/* =========================================================================
   PESQUISA / OKR (survey-card)
   ========================================================================= */
.phase-note {
  max-width: 640px; margin: -8px auto 20px;
  background: var(--wc-surface-2); border: 1px solid var(--wc-border);
  border-radius: var(--radius-md); padding: 12px 16px;
  font-size: 0.85rem; color: var(--wc-text-dim); line-height: 1.5;
}

.survey-card { background: var(--wc-surface); border: 1px solid var(--wc-border); border-radius: var(--radius-lg); padding: 28px; max-width: 640px; margin: 0 auto; }
.survey-question { margin-bottom: 22px; }
.survey-question__label { font-weight: 700; margin-bottom: 10px; }
.rating { display: flex; gap: 8px; }
.rating__opt {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--wc-bg-alt); border: 1px solid var(--wc-border); color: var(--wc-text); font-weight: 700;
}
.rating__opt[aria-pressed="true"] { background: var(--wc-gradient); border-color: transparent; color: #fff; }

.rating__scale-labels {
  display: flex; justify-content: space-between;
  margin-top: 6px; font-size: 0.72rem; color: var(--wc-text-dim);
}

.yesno { display: flex; gap: 10px; }
.yesno__opt {
  padding: 9px 22px; border-radius: 999px;
  background: var(--wc-bg-alt); border: 1px solid var(--wc-border); color: var(--wc-text); font-weight: 700;
}
.yesno__opt[aria-pressed="true"] { background: var(--wc-gradient); border-color: transparent; color: #fff; }

.survey-question--nested {
  margin: 14px 0 0; padding: 14px 16px 4px;
  border-left: 3px solid var(--wc-accent-soft);
  background: var(--wc-surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.optional-tag { font-weight: 400; color: var(--wc-text-dim); font-size: 0.78rem; }

/* =========================================================================
   BOSS FINAL
   ========================================================================= */
.boss-arena { text-align: center; max-width: 640px; margin: 0 auto; padding-top: 20px; }
.boss-arena__message { font-size: 1.05rem; margin-bottom: 24px; }
.boss-shield {
  width: 160px; height: 160px; margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--wc-gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.6rem; color: #fff;
  box-shadow: 0 0 0 8px rgba(255,0,70,0.15), 0 20px 50px rgba(255,0,70,0.35);
  animation: floatShield 3s ease-in-out infinite;
}
@keyframes floatShield { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }

.boss-recap { text-align: left; background: var(--wc-surface); border: 1px solid var(--wc-border); border-radius: var(--radius-md); padding: 20px; margin-bottom: 24px; }
.boss-recap h4 { margin: 0 0 4px; font-size: 0.85rem; color: var(--wc-accent-2); }
.boss-recap p { margin: 0 0 14px; font-size: 0.9rem; }

/* =========================================================================
   CELEBRAÇÃO FINAL + CERTIFICADO
   ========================================================================= */
#screen-final { text-align: center; max-width: 680px; }
.final-celebration h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
.certificate {
  margin: 28px auto; padding: 36px;
  border: 2px solid var(--wc-accent-1);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #ffffff, #fff0f7);
  position: relative;
}
.certificate::before {
  content: "";
  position: absolute; inset: 10px;
  border: 1px dashed var(--wc-border);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}
.certificate__eyebrow { letter-spacing: 3px; font-size: 0.7rem; color: var(--wc-accent-2); font-weight: 800; }
.certificate__title { font-size: 1.3rem; font-weight: 800; color: var(--wc-text); margin: 6px 0 16px; }
.certificate__name { font-size: 1.6rem; font-weight: 800; }
.certificate__badge { font-weight: 700; }
.certificate__date { font-size: 0.85rem; color: var(--wc-text-dim); }
.final-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media print {
  body * { visibility: hidden; }
  .certificate, .certificate * { visibility: visible; }
  .certificate { position: fixed; inset: 0; margin: 40px auto; }
}

/* =========================================================================
   TOASTS
   ========================================================================= */
#toast-container { position: fixed; top: 90px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast {
  background: var(--wc-surface); border: 1px solid var(--wc-accent-1); border-radius: var(--radius-sm);
  padding: 10px 18px; font-weight: 700; font-size: 0.88rem;
  box-shadow: var(--shadow-card);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.4s forwards;
}
@keyframes toastIn { from { transform: translateX(30px); opacity: 0;} to { transform: translateX(0); opacity: 1;} }
@keyframes toastOut { to { transform: translateX(30px); opacity: 0;} }

/* =========================================================================
   CONFETTI CANVAS
   ========================================================================= */
#confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 500; display: none; }

.status-tag { display: inline-block; }

