@font-face {
  font-family: "OkDisplay";
  src: url("display.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OkBody";
  src: url("body.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --fire: #E53935;
  --mask: #FF6D00;
  --gold: #FFD700;
  --ink: #121212;
  --ink-soft: #1c1c1c;
  --smoke: rgba(18, 18, 18, 0.72);
  --line: rgba(255, 109, 0, 0.35);
  --text: #f5f5f5;
  --muted: #bdbdbd;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--text);
  font-family: "OkBody", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-decoration: none;
}

a,
button,
h1,
h2,
h3,
p,
span,
strong {
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.35), rgba(18, 18, 18, 0.92)),
    url("haze.png") center/cover no-repeat;
}

.splash-core {
  text-align: center;
  animation: pulse 1.5s ease-in-out;
}

.splash-mark {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 109, 0, 0.65));
}

.splash-title {
  margin: 12px 0 4px;
  font-family: "OkDisplay", sans-serif;
  font-size: 2.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.splash-sub {
  margin: 0;
  color: var(--mask);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.onboard {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 109, 0, 0.25), transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(229, 57, 53, 0.22), transparent 40%),
    linear-gradient(160deg, rgba(18, 18, 18, 0.88), rgba(18, 18, 18, 0.96)),
    url("blur.png") center/cover no-repeat;
}

.onboard-orbit {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 215, 0, 0.25);
  animation: spin 18s linear infinite;
}

.onboard-card {
  position: relative;
  width: min(100%, 420px);
  padding: 22px 20px 18px;
  border-radius: calc(var(--radius) + 6px);
  background: var(--smoke);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.onboard-track {
  min-height: 210px;
}

.onboard-scene {
  display: none;
  animation: fadeUp 0.35s ease;
}

.onboard-scene.active {
  display: block;
}

.onboard-kicker {
  margin: 0 0 6px;
  color: var(--mask);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.onboard-scene h2 {
  margin: 0 0 10px;
  font-family: "OkDisplay", sans-serif;
  font-size: 1.55rem;
  line-height: 1.15;
}

.onboard-scene p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.onboard-icons {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.onboard-icons img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.onboard-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 14px;
}

.onboard-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.onboard-dot.active {
  background: linear-gradient(135deg, var(--mask), var(--fire));
  box-shadow: 0 0 10px rgba(255, 109, 0, 0.7);
}

.app {
  min-height: 100dvh;
  max-width: 540px;
  margin: 0 auto;
  padding: 14px 14px 28px;
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.55), rgba(18, 18, 18, 0.95) 28%),
    url("haze.png") center top/cover no-repeat fixed;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-name {
  margin: 0;
  font-family: "OkDisplay", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.brand-id {
  margin: 2px 0 0;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.day-strip {
  text-align: right;
  font-size: 0.72rem;
}

.day-label {
  display: block;
  color: var(--muted);
}

.day-streak {
  display: block;
  font-family: "OkDisplay", sans-serif;
  color: var(--gold);
  font-size: 1rem;
}

.day-task {
  display: block;
  color: var(--mask);
  max-width: 140px;
  margin-left: auto;
}

.pill-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 109, 0, 0.22);
  overflow-x: auto;
}

.pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: "OkDisplay", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.75;
}

.pill.active {
  color: #fff;
  background: linear-gradient(135deg, var(--mask), var(--fire));
  box-shadow: 0 0 16px rgba(255, 109, 0, 0.55);
  transform: translateY(-1px);
}

.pill.active img {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6));
}

.panel {
  display: none;
  animation: fadeUp 0.25s ease;
}

.panel.active {
  display: block;
}

.panel-head h2 {
  margin: 0;
  font-family: "OkDisplay", sans-serif;
  font-size: 1.45rem;
}

.panel-head p {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.slot-grid {
  display: grid;
  gap: 12px;
}

.slot-card {
  position: relative;
  padding: 14px;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 109, 0, 0.18), rgba(229, 57, 53, 0.12)),
    rgba(28, 28, 28, 0.92);
  border: 1px solid rgba(255, 215, 0, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 109, 0, 0.08), var(--shadow);
  overflow: hidden;
}

.slot-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--fire));
}

.slot-card.pinned {
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 22px rgba(255, 109, 0, 0.35);
}

.slot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(229, 57, 53, 0.25);
  color: #fff;
}

.tag.liga { background: rgba(255, 109, 0, 0.28); }
.tag.box { background: rgba(255, 215, 0, 0.22); color: var(--gold); }
.tag.f1 { background: rgba(120, 120, 255, 0.25); }

.pin-btn {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

.slot-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.35;
}

.slot-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  margin: 0 6px 10px 0;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.board-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 4px;
  scrollbar-width: none;
}

.board-pills::-webkit-scrollbar {
  display: none;
}

.board-pill {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(255, 109, 0, 0.25);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.board-pill.active {
  color: #fff;
  border-color: var(--gold);
  background: rgba(255, 109, 0, 0.25);
}

.chip-gold { background: rgba(255, 215, 0, 0.16); color: var(--gold); }
.chip-fire { background: rgba(229, 57, 53, 0.22); color: #ffb4b4; }
.chip-ink { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.notas-question,
.quiz-question {
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.45;
}

.answer-grid {
  display: grid;
  gap: 10px;
}

.answer-btn {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 109, 0, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  text-align: left;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.answer-btn:hover {
  border-color: var(--mask);
  transform: translateY(-1px);
}

.answer-btn.correct {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.12);
}

.answer-btn.wrong {
  border-color: var(--fire);
  background: rgba(229, 57, 53, 0.15);
}

.answer-btn.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 14px;
  font-family: "OkDisplay", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-fire {
  color: #fff;
  background: linear-gradient(135deg, var(--fire), #b71c1c);
}

.btn-orange {
  color: #fff;
  background: linear-gradient(135deg, var(--mask), #e65100);
}

.btn-gold {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), #ffb300);
}

.btn-ghost {
  margin-top: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.quiz-progress span {
  font-family: "OkDisplay", sans-serif;
  color: var(--gold);
  min-width: 38px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--mask), var(--fire));
  transition: width 0.25s ease;
}

.result-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.22);
}

.result-card h3 {
  margin: 0 0 6px;
  font-family: "OkDisplay", sans-serif;
  color: var(--gold);
}

.result-card p {
  margin: 0;
  color: var(--muted);
}

.fuego-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.fuego-stats div {
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  text-align: center;
}

.fuego-stats small {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.fuego-stats strong {
  display: block;
  margin-top: 4px;
  font-family: "OkDisplay", sans-serif;
  color: var(--gold);
  font-size: 0.95rem;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.tribal-card {
  aspect-ratio: 3/4;
  border-radius: 12px;
  border: 2px solid rgba(255, 109, 0, 0.35);
  background:
    linear-gradient(160deg, rgba(255, 109, 0, 0.15), rgba(18, 18, 18, 0.95)),
    url("blur.png") center/cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tribal-card img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.tribal-card span {
  font-family: "OkDisplay", sans-serif;
  font-size: 0.95rem;
}

.tribal-card.held {
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.35);
  transform: translateY(-3px);
}

.fuego-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.fuego-msg {
  min-height: 1.2em;
  margin: 10px 0 0;
  color: var(--mask);
  font-size: 0.86rem;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.92; }
}

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

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

@media (max-width: 380px) {
  .fuego-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-row {
    gap: 6px;
  }

  .tribal-card span {
    font-size: 0.82rem;
  }
}
