:root {
  --bg: #14272b;
  --panel: #1d3639;
  --cream: #fff8e9;
  --mint: #77edc9;
  --gold: #ffd36e;
  --line: #ffffff29;
  --muted: #b8cbc3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
.top {
  height: 60px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 12px;
  letter-spacing: 0.13em;
  font-weight: bold;
}
.brand b {
  color: var(--mint);
}
.topright {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--mint);
  font-size: 10px;
  letter-spacing: 0.13em;
}
.btn {
  border: 0;
  border-radius: 10px;
  background: var(--mint);
  color: #12302c;
  font-weight: bold;
  padding: 12px 16px;
  cursor: pointer;
}
.btn:hover {
  filter: brightness(1.08);
}
.btn.alt {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
}
.wrap {
  width: min(1160px, 94vw);
  min-height: calc(100vh - 105px);
  margin: auto;
  display: flex;
  align-items: center;
  padding: 20px 0;
}
.home {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
}
.home > .hero {
  display: none;
}
.tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  font-weight: bold;
}
.home h1 {
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  margin: 16px 0;
}
.home h1 span {
  color: var(--gold);
}
.home p {
  color: #d2ddd6;
  line-height: 1.7;
  max-width: 570px;
  font-size: 15px;
}
.row {
  display: flex;
  gap: 10px;
  margin: 22px 0 13px;
  flex-wrap: wrap;
}
.help {
  color: #a8beb5;
  font-size: 12px;
  line-height: 1.7;
}
.hero {
  height: 315px;
  border-radius: 21px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #2b6156, #24454b 65%, #38494c);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.lens {
  font-size: 83px;
  z-index: 2;
  filter: drop-shadow(0 0 20px #ffe188aa);
}
.orbit {
  position: absolute;
  width: 235px;
  height: 235px;
  border: 1px solid #77edc866;
  border-radius: 50%;
}
.orbit:after {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px dashed #ffd36e88;
  border-radius: 50%;
}
.hero-person {
  position: absolute;
  font-size: 30px;
}
.hp1 {
  left: 22%;
  top: 22%;
}
.hp2 {
  right: 22%;
  top: 24%;
}
.hp3 {
  left: 24%;
  bottom: 20%;
}
.hp4 {
  right: 24%;
  bottom: 19%;
}
.hero-caption {
  position: absolute;
  bottom: 14px;
  font-size: 10px;
  letter-spacing: 0.13em;
  color: #d1e2d8;
}
.game {
  display: none;
  width: 100%;
}
.game.active {
  display: block;
}
.hud {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}
.loc {
  min-width: 155px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.meter {
  height: 5px;
  background: #ffffff21;
  border-radius: 5px;
  flex: 1;
}
.meter i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--mint);
  border-radius: 5px;
  transition: width 0.25s;
}
.pips {
  display: flex;
  gap: 5px;
}
.pip {
  width: 9px;
  height: 9px;
  border: 1px solid var(--mint);
  border-radius: 3px;
}
.pip.done {
  background: var(--mint);
}
.clock {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line);
  background: #ffffff0b;
  padding: 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 12px;
}
.stage {
  height: min(57vw, 520px);
  min-height: 330px;
  max-height: 520px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  isolation: isolate;
  background: #a8c49b;
}
.sky {
  position: absolute;
  z-index: -1;
  inset: 0 0 38%;
  background: linear-gradient(#8eb8bc, #e0d69f);
}
.floor {
  position: absolute;
  z-index: -1;
  inset: 62% 0 0;
  background: repeating-linear-gradient(0deg, #c3aa79 0 32px, #d2bf90 33px 35px);
  border-top: 9px solid #f4e6bb;
}
.window {
  position: absolute;
  top: 10%;
  width: 13%;
  height: 23%;
  background: #61929b;
  border: 8px solid #f6e8c2;
  border-bottom-width: 12px;
  box-shadow: 0 5px #ac845d;
}
.win1 {
  left: 9%;
}
.win2 {
  left: 43%;
}
.win3 {
  right: 9%;
}
.sun {
  position: absolute;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #ffe79a;
  right: 13%;
  top: 9%;
  box-shadow: 0 0 40px #ffe79a88;
}
.rug {
  position: absolute;
  left: 28%;
  bottom: 7%;
  width: 38%;
  height: 15%;
  border-radius: 50%;
  background: #e6cb7f;
  border: 7px solid #c28b62;
}
.plant {
  position: absolute;
  left: 5%;
  bottom: 21%;
  font-size: 36px;
}
.desk {
  position: absolute;
  right: 10%;
  bottom: 21%;
  width: 18%;
  height: 16%;
  border-radius: 9px 9px 1px 1px;
  background: #a47655;
  border-bottom: 10px solid #754f3c;
}
.desk:before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: -14px;
  height: 15px;
  background: #c29466;
  border-radius: 5px;
}
.stage.hall {
  background: #99b9ac;
}
.stage.hall .sky {
  background: linear-gradient(#a9c9c8, #ece1ac);
}
.stage.classroom {
  background: #92aa7c;
}
.stage.classroom .sky {
  background: linear-gradient(#e8dfa8, #c9d39b);
}
.stage.office {
  background: #98bbaa;
}
.stage.office .sky {
  background: linear-gradient(#e5d9a2, #c6d8ae);
}
.map-label {
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #244943;
  background: #fff4d4dd;
  padding: 7px 10px;
  border-radius: 12px;
}
.node {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 2px solid #fff2c8;
  background: #254b48;
  color: #fff;
  border-radius: 15px;
  padding: 10px 12px;
  min-width: 118px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 5px 0 #16332d99;
  z-index: 2;
}
.node:hover,
.node.near {
  border-color: var(--gold);
  box-shadow:
    0 0 18px #ffdc7799,
    0 5px 0 #16332d99;
}
.node.done {
  border-color: var(--mint);
  background: #1d6555;
}
.node .icon {
  font-size: 23px;
  display: block;
}
.node .label {
  font-size: 10px;
  font-weight: bold;
  display: block;
  margin-top: 3px;
}
.node .status {
  display: block;
  color: #bdebd9;
  font-size: 9px;
  margin-top: 3px;
}
.avatar {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
  text-align: center;
  min-width: 50px;
  pointer-events: none;
}
.avatar .face {
  font-size: 37px;
  display: block;
  filter: drop-shadow(0 4px 2px #203c3555);
}
.avatar small {
  display: inline-block;
  background: #143138e8;
  color: white;
  padding: 3px 7px;
  border-radius: 9px;
  font-weight: bold;
  font-size: 9px;
  white-space: nowrap;
}
.room-clue {
  position: absolute;
  left: 54%;
  top: 65%;
  transform: translate(-50%, -50%);
  font-size: 34px;
  text-align: center;
  animation: bob 1.2s ease-in-out infinite alternate;
}
.room-clue span {
  display: block;
  font-size: 9px;
  background: #173c39e8;
  color: white;
  border-radius: 8px;
  padding: 4px 6px;
  white-space: nowrap;
}
.room-npc {
  position: absolute;
  left: 78%;
  top: 66%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.room-npc b {
  display: block;
  font-size: 37px;
}
.room-npc span {
  font-size: 9px;
  background: #173c39e8;
  border-radius: 8px;
  padding: 4px 6px;
}
.exit {
  position: absolute;
  left: 4%;
  top: 67%;
  border: 1px solid #fff4c6;
  border-radius: 9px;
  background: #573e31;
  color: #fff;
  padding: 9px;
  font-size: 10px;
  cursor: pointer;
}
.exit.ready {
  box-shadow: 0 0 14px var(--mint);
  border-color: var(--mint);
}
.prompt {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  background: #10231fe8;
  border: 1px solid #77edc888;
  border-radius: 9px;
  padding: 8px 12px;
  color: white;
  font-size: 11px;
  white-space: nowrap;
}
.side {
  background: #1d3639;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 16px;
}
.side h2 {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 10px;
}
.objective {
  font-size: 12px;
  line-height: 1.55;
  color: #edf1e6;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  min-height: 72px;
}
.clues {
  display: grid;
  gap: 8px;
  padding-top: 11px;
}
.clue {
  font-size: 10px;
  line-height: 1.4;
  color: #98b0a6;
  display: flex;
  gap: 7px;
}
.clue b {
  color: #718b80;
}
.clue.done {
  color: #fff8e9;
}
.clue.done b {
  color: var(--gold);
}
.controls {
  font-size: 9px;
  line-height: 1.65;
  color: #a9bcb4;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.under {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  color: #a9bcb4;
  font-size: 10px;
}
.under button {
  background: none;
  border: 0;
  color: #c6d6ce;
  text-decoration: underline;
  cursor: pointer;
  font-size: 10px;
}
.dialog-wrap,
.care-wrap {
  position: fixed;
  inset: 0;
  background: #081412cc;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.dialog-wrap.show,
.care-wrap.show {
  display: flex;
}
.dialog {
  width: min(660px, 100%);
  background: #1b3436;
  border: 1px solid #77edc877;
  border-radius: 17px;
  padding: 22px;
  box-shadow: 0 18px 60px #0008;
}
.speaker {
  font-size: 10px;
  letter-spacing: 0.13em;
  color: var(--gold);
  font-weight: bold;
  text-transform: uppercase;
}
.dialog p {
  font-size: 14px;
  line-height: 1.6;
  margin: 10px 0 14px;
  color: #f4f1e5;
}
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.choice {
  background: #ffffff0b;
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
  text-align: left;
  font: inherit;
  font-size: 11px;
  line-height: 1.45;
  cursor: pointer;
}
.choice:hover {
  border-color: var(--mint);
}
.choice strong {
  color: var(--mint);
  margin-right: 6px;
}
.care-copy {
  font-size: 12px;
  line-height: 1.7;
  color: #d0ded5;
}
.care-copy h2 {
  font-size: 23px;
  color: white;
}
.finish {
  display: none;
  width: min(680px, 100%);
  margin: auto;
  background: linear-gradient(145deg, #235147, #1b3237);
  border: 1px solid #77edc866;
  border-radius: 20px;
  padding: 32px;
}
.finish h2 {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1;
  margin: 12px 0;
}
.finish h2 span {
  color: var(--mint);
}
.finish p,
.finish li {
  font-size: 13px;
  line-height: 1.7;
  color: #d2dfd6;
}
.finish li {
  margin: 5px 0;
}
.toast {
  position: fixed;
  z-index: 15;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: #193a36;
  border: 1px solid #77edc877;
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 11px;
  color: white;
  display: none;
}
.toast.show {
  display: block;
}
.touch {
  display: none;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
}
.touch button {
  height: 38px;
  min-width: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff10;
  color: white;
  font-size: 15px;
  touch-action: none;
}
.touch .use {
  font-size: 9px;
  padding: 0 10px;
}
.foot {
  min-height: 40px;
  padding: 10px 4vw;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: #94aaa1;
  font-size: 9px;
}
@keyframes bob {
  to {
    margin-top: -5px;
  }
}
@media (max-width: 820px) {
  .home {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .hero {
    height: 180px;
    grid-row: 1;
  }
  .lens {
    font-size: 55px;
  }
  .orbit {
    width: 155px;
    height: 155px;
  }
  .hero-person {
    font-size: 23px;
  }
  .home h1 {
    font-size: 52px;
    margin: 10px 0;
  }
  .home p {
    font-size: 13px;
  }
  .board {
    grid-template-columns: 1fr;
  }
  .stage {
    height: 55vw;
    min-height: 300px;
  }
  .side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
  }
  .side h2 {
    grid-column: 1/-1;
  }
  .objective {
    border: 0;
  }
  .controls {
    grid-column: 1/-1;
  }
  .touch {
    display: flex;
  }
  .choices {
    grid-template-columns: 1fr;
  }
  .topright span {
    display: none;
  }
}
@media (max-width: 500px) {
  .top {
    height: 52px;
  }
  .wrap {
    padding: 13px 0;
  }
  .stage {
    height: 68vw;
    min-height: 255px;
  }
  .loc {
    min-width: 90px;
    font-size: 8px;
  }
  .pips {
    display: none;
  }
  .clock {
    font-size: 10px;
    padding: 7px;
  }
  .hud {
    gap: 6px;
  }
  .hud > .btn {
    font-size: 9px;
    padding: 8px;
  }
  .side {
    display: block;
  }
  .objective {
    min-height: 0;
  }
  .under {
    font-size: 9px;
  }
  .foot {
    gap: 8px;
  }
  .node {
    min-width: 91px;
    padding: 7px 5px;
  }
  .node .icon {
    font-size: 19px;
  }
  .node .label {
    font-size: 8px;
  }
}
.dialog-icon {
  display: none !important;
}
