:root {
  --ink: #172e45;
  --muted: #657d8b;
  --bg: #f0f5f2;
  --line: #d8e5df;
  --teal: #0c8172;
  --gold: #ffd35f;
  --coral: #e97c68;
  --violet: #7967bc;
  --blue: #4a8db2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 10% 0, #d9eee7, transparent 38%), var(--bg);
  color: var(--ink);
  font:
    15px/1.45 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
button {
  font: inherit;
  cursor: pointer;
}
.top {
  height: 60px;
  padding: 0 max(15px, calc((100vw - 1210px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #ffffffdf;
}
.brand {
  color: var(--teal);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.13em;
}
.top a {
  color: #536e7f;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}
.wrap {
  width: min(1210px, calc(100% - 30px));
  margin: 15px auto 34px;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 19px 23px;
  border-radius: 19px;
  color: #fff;
  background: linear-gradient(118deg, #142c48, #236e78);
  box-shadow: 0 14px 28px #173d4a1b;
}
.eyebrow {
  color: #c2eedf;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.15em;
}
.hero h1 {
  margin: 5px 0;
  font-size: clamp(27px, 3.4vw, 37px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}
.hero p {
  max-width: 780px;
  margin: 4px 0 0;
  color: #e2efec;
  font-size: 11px;
}
.hero-icon {
  font-size: 48px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 9px 0;
}
.stat {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffffdf;
}
.stat small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.08em;
}
.stat b {
  font-size: 14px;
}
.section {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 16px #173b4b09;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 2px 10px;
}
.section-head h2 {
  margin: 0;
  font-size: 14px;
}
.section-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 9px;
}
.tour {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
.station {
  --accent: #258c80;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 158px;
  padding: 12px;
  border: 1px solid #dbe7e2;
  border-radius: 13px;
  background: linear-gradient(160deg, #fff, #f6faf8);
  text-align: left;
  color: var(--ink);
  transition: 0.16s;
}
.station:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 7px 15px #1b51401a;
}
.station:disabled {
  cursor: default;
}
.station[data-id="patron"] {
  --accent: #da9e36;
}
.station[data-id="datos"] {
  --accent: #428cb0;
}
.station[data-id="radio"] {
  --accent: #8569b7;
}
.station[data-id="misiones"] {
  --accent: #218b71;
}
.station .topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.station .icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, white);
  font-size: 21px;
}
.station .kind {
  color: var(--accent);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.station h3 {
  margin: 10px 0 4px;
  font-size: 12px;
  line-height: 1.15;
}
.station p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}
.station .action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 950;
}
.station.done {
  border-color: #87c9a9;
  background: linear-gradient(150deg, #eaf8f0, #f9fcfa);
}
.station.done .action {
  color: #218454;
}
.badge {
  position: absolute;
  right: 9px;
  top: 9px;
  padding: 4px 6px;
  border-radius: 99px;
  background: #dff3e7;
  color: #277653;
  font-size: 8px;
  font-weight: 950;
}
.portal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #efdfa9;
  border-radius: 13px;
  background: #fff8e3;
}
.portal-copy b {
  display: block;
  font-size: 11px;
}
.portal-copy span {
  display: block;
  margin-top: 2px;
  color: #76643b;
  font-size: 9px;
}
.btn {
  padding: 9px 12px;
  border: 1px solid #d5e2dc;
  border-radius: 9px;
  background: #f3f7f5;
  color: #395766;
  font-size: 9px;
  font-weight: 950;
}
.btn:hover:not(:disabled) {
  background: #e5f1eb;
}
.btn.primary {
  border: 0;
  background: var(--gold);
  color: #293d4b;
  box-shadow: 0 3px #d5a83a;
}
.btn:disabled {
  opacity: 0.42;
  cursor: default;
}
.footer-note {
  margin: 12px 2px;
  color: #708591;
  text-align: center;
  font-size: 9px;
}
.overlay {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  background: #10243bd1;
}
.overlay[hidden] {
  display: none;
}
.dialog {
  width: min(580px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 22px;
  border: 1px solid #ccded8;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 24px 80px #081a2870;
  text-align: center;
}
.dialog-icon {
  font-size: 40px;
}
.dialog .eyebrow {
  color: var(--teal);
}
.dialog h2 {
  margin: 5px 0 6px;
  font-size: 22px;
  line-height: 1.12;
}
.dialog > p {
  margin: 7px auto;
  color: #627b89;
  font-size: 10px;
}
.challenge-body {
  margin: 13px 0 8px;
}
.puzzle-seq {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 11px auto;
  padding: 15px;
  border-radius: 13px;
  background: #f2f7f4;
}
.seq-tile {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #d9e6df;
  border-radius: 12px;
  background: #fff;
  font-size: 25px;
}
.seq-tile.missing {
  border: 2px dashed #83bca8;
  background: #eaf7f0;
  color: #17836d;
  font-size: 22px;
  font-weight: 950;
}
.answer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}
.answer {
  min-width: 100px;
  padding: 9px 12px;
  border: 1px solid #d8e5df;
  border-radius: 10px;
  background: #f7faf8;
  color: #2d4e60;
  font-size: 10px;
  font-weight: 850;
}
.answer:hover {
  border-color: #3b9d7b;
  background: #e8f7ef;
}
.chart {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 18px;
  height: 125px;
  margin: 12px auto;
  padding: 12px 15px 5px;
  border-bottom: 2px solid #859ba3;
}
.column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 5px;
  height: 100%;
  min-width: 52px;
}
.column i {
  display: block;
  width: 35px;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(#61c7a0, #228d80);
}
.column b {
  font-size: 8px;
  color: #546e7a;
}
.column span {
  font-size: 8px;
  color: #657d8b;
}
.reading {
  max-width: 440px;
  margin: 10px auto;
  padding: 12px;
  border-radius: 12px;
  background: #f4f8f6;
  color: #3e5d6c;
  text-align: left;
  font-size: 10px;
  line-height: 1.5;
}
.sequence-slots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 12px 0;
}
.slot {
  display: grid;
  place-items: center;
  width: 96px;
  min-height: 50px;
  padding: 6px;
  border: 1px dashed #9bbcaf;
  border-radius: 9px;
  background: #f5faf7;
  color: #436b5b;
  font-size: 8px;
  font-weight: 900;
}
.sequence-options {
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}
.sequence-options button {
  padding: 9px 11px;
  border: 1px solid #d5e4dc;
  border-radius: 9px;
  background: #fff;
  color: #294e5e;
  font-size: 9px;
  font-weight: 900;
}
.sequence-options button:disabled {
  opacity: 0.4;
}
.feedback {
  min-height: 28px;
  margin: 9px auto;
  color: #267257;
  font-size: 10px;
  font-weight: 900;
}
.dialog-actions {
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.profile-card {
  padding: 12px;
  border: 1px solid #dce8e1;
  border-radius: 12px;
  background: #f7faf8;
  text-align: left;
}
.profile-card .emoji {
  font-size: 22px;
}
.profile-card b {
  display: block;
  margin: 4px 0;
  font-size: 10px;
}
.profile-card p {
  margin: 0;
  color: #617984;
  font-size: 9px;
}
.paths {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px;
}
.path-pill {
  padding: 5px 8px;
  border-radius: 99px;
  background: #e8f4ed;
  color: #2c7058;
  font-size: 8px;
  font-weight: 900;
}
:focus-visible {
  outline: 3px solid #d7a82d;
  outline-offset: 2px;
}
@media (max-width: 820px) {
  .tour {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .wrap {
    width: calc(100% - 14px);
    margin-top: 7px;
  }
  .hero {
    padding: 14px;
  }
  .hero-icon {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
  .stat {
    padding: 6px;
  }
  .tour {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .station {
    min-height: 155px;
    padding: 9px;
  }
  .station h3 {
    font-size: 11px;
  }
  .section {
    padding: 8px;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .portal {
    align-items: flex-start;
    flex-direction: column;
  }
  .portal .btn {
    width: 100%;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .dialog {
    padding: 16px;
  }
  .chart {
    gap: 7px;
  }
  .column {
    min-width: 42px;
  }
  .column span {
    font-size: 7px;
  }
}
.dialog-icon {
  display: none !important;
}
.hero-icon {
  display: none !important;
}
