/* Projeto Angra — tema naval, simples e legível para um usuário de 11 anos */

:root {
  --bg: #0b1e3a;
  --bg-card: #122a4d;
  --text: #eaf0fa;
  --muted: #8fa3c4;
  --gold: #ffd166;
  --orange: #ff7b54;
  --dim: #22304f;
  --error: #ff8080;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--dim);
}

.brand { font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; }

main { display: flex; justify-content: center; padding: 24px 16px; }

.screen {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 28px;
}

.screen.wide { max-width: 1000px; }

h1 { font-size: 1.5rem; margin-top: 0; }
h2 { font-size: 1.6rem; line-height: 1.4; }

label { display: block; margin-bottom: 14px; font-size: 0.95rem; color: var(--muted); }

input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  font-size: 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--dim);
  background: var(--bg);
  color: var(--text);
}

input:focus { outline: 2px solid var(--gold); border-color: transparent; }

.row { display: flex; gap: 10px; margin-top: 8px; }

button {
  font-size: 1rem;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary { background: var(--gold); color: #1d2433; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-big { font-size: 1.2rem; padding: 16px 28px; width: 100%; margin: 12px 0; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--dim); }
.btn-ghost:hover { color: var(--text); }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.error { color: var(--error); }

.feedback { font-size: 1.3rem; font-weight: 700; }
.feedback.ok { color: #7ce38b; }
.feedback.nope { color: var(--orange); }

#form-answer { display: flex; gap: 10px; align-items: stretch; }
#form-answer input { flex: 1; margin-top: 0; font-size: 1.3rem; }

/* --- mapa ----------------------------------------------------------- */

#map-container { overflow-x: auto; margin: 16px 0; }

.skill-map { width: 100%; min-width: 700px; height: auto; }

.edge { stroke: #2a3a5e; stroke-width: 2; }
.edge-lit { stroke: var(--gold); opacity: 0.55; }

.node rect { stroke-width: 2; }
.node text { font-size: 12px; font-weight: 600; }

.node-mastered rect { fill: var(--gold); stroke: #ffb84d; }
.node-mastered text { fill: #1d2433; }

.node-frontier rect { fill: var(--orange); stroke: #fff; animation: pulse 1.6s infinite; }
.node-frontier text { fill: #fff; }

.node-beyond rect { fill: var(--dim); stroke: #2e3d5f; }
.node-beyond text { fill: #6b7a99; }

@keyframes pulse {
  0%, 100% { stroke-opacity: 1; }
  50% { stroke-opacity: 0.25; }
}

.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.dot-mastered { background: var(--gold); }
.dot-frontier { background: var(--orange); }
.dot-beyond { background: var(--dim); border: 1px solid #2e3d5f; }
