:root {
  --ink: #14252b;
  --paper: #f7f3e9;
  --teal: #40d6c0;
  --yellow: #ffd166;
  --muted: #9aadb1;
  --pink: #ff8293;
  --edge: rgba(255, 255, 255, 0.14);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #101820;
  color: var(--paper);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  min-height: 100vh;
}
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 80% 18%, rgba(40, 134, 127, 0.14), transparent 40%), #101820;
}
.top {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  border-bottom: 1px solid var(--edge);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.05em;
}
.brand-icon {
  display: grid;
  place-items: center;
  background: var(--teal);
  color: var(--ink);
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 19px;
}
.badge {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.wrap {
  width: min(1100px, 90vw);
  margin: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 45px 0 52px;
}
.scene {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
}
.scene > .visual {
  display: none;
}
.eyebrow {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow:before {
  content: "";
  width: 23px;
  height: 1px;
  background: var(--teal);
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 20px 0;
}
.accent {
  color: var(--yellow);
}
.lead {
  font-size: 17px;
  line-height: 1.7;
  color: #c2ced0;
  max-width: 510px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.btn {
  border: 0;
  border-radius: 12px;
  padding: 14px 19px;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition:
    0.18s transform,
    0.18s background;
}
.btn:hover {
  transform: translateY(-2px);
}
.primary {
  background: var(--teal);
  color: var(--ink);
}
.secondary {
  background: transparent;
  border: 1px solid var(--edge);
  color: var(--paper);
}
.small {
  padding: 10px 14px;
  font-size: 12px;
}
.visual {
  position: relative;
  min-height: 355px;
  border-radius: 27px;
  overflow: hidden;
  background: linear-gradient(155deg, #24434a, #162b32 65%, #21333a);
  border: 1px solid var(--edge);
  display: grid;
  place-items: center;
}
.visual:before,
.visual:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(64, 214, 192, 0.16);
  width: 285px;
  height: 285px;
  border-radius: 50%;
}
.visual:after {
  width: 215px;
  height: 215px;
}
.orbit {
  position: absolute;
  width: 345px;
  height: 345px;
  border: 1px dashed rgba(255, 209, 102, 0.24);
  border-radius: 50%;
  animation: spin 35s linear infinite;
}
.sun {
  font-size: 75px;
  z-index: 1;
  filter: drop-shadow(0 0 28px rgba(255, 209, 102, 0.36));
}
.person {
  position: absolute;
  font-size: 32px;
  z-index: 2;
}
.p1 {
  top: 23%;
  left: 27%;
}
.p2 {
  top: 29%;
  right: 24%;
}
.p3 {
  bottom: 22%;
  left: 25%;
}
.p4 {
  bottom: 20%;
  right: 26%;
}
.node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 17px var(--teal);
}
.n1 {
  top: 29%;
  left: 50%;
}
.n2 {
  bottom: 31%;
  left: 50%;
}
.note {
  position: absolute;
  bottom: 16px;
  right: 18px;
  font-size: 10px;
  color: #9aadb1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer {
  border-top: 1px solid var(--edge);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  color: #829499;
  font-size: 11px;
}
.footer button {
  font: inherit;
  color: #b9c8ca;
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}
.game {
  display: none;
}
.game.on {
  display: block;
}
.home.off {
  display: none;
}
.bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 38px;
}
.progress {
  height: 4px;
  background: #29373d;
  border-radius: 8px;
  flex: 1;
  overflow: hidden;
}
.fill {
  height: 100%;
  width: 0;
  background: var(--teal);
  transition: width 0.4s;
}
.count {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.layout {
  display: grid;
  grid-template-columns: 1fr 285px;
  gap: 48px;
  align-items: start;
}
.kicker {
  color: var(--yellow);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 750;
}
.game h2 {
  font-size: clamp(33px, 5vw, 53px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin: 12px 0 15px;
}
.story {
  font-size: 17px;
  line-height: 1.7;
  color: #c2ced0;
  max-width: 650px;
}
.talk {
  border: 1px solid rgba(255, 209, 102, 0.36);
  background: rgba(255, 209, 102, 0.07);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 13px;
  color: #e9dba9;
  line-height: 1.5;
  margin: 21px 0;
}
.choices {
  display: grid;
  gap: 10px;
  max-width: 660px;
}
.choice {
  background: #1b2a30;
  border: 1px solid var(--edge);
  border-radius: 12px;
  color: var(--paper);
  padding: 15px 17px;
  text-align: left;
  cursor: pointer;
  display: flex;
  gap: 14px;
  align-items: center;
  font: inherit;
  transition: 0.15s;
}
.choice:hover,
.choice:focus {
  border-color: var(--teal);
  background: #20363a;
  outline: 0;
}
.key {
  border: 1px solid #526267;
  color: var(--teal);
  border-radius: 7px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex: none;
}
.side {
  border-left: 1px solid var(--edge);
  padding-left: 26px;
}
.side h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 3px 0 17px;
}
.side-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 17px 0;
  color: #c2ced0;
  font-size: 12px;
  line-height: 1.5;
}
.side-icon {
  color: var(--teal);
  font-size: 17px;
}
.side .meter {
  height: 5px;
  background: #29373d;
  border-radius: 5px;
  margin-top: 19px;
}
.side .meter div {
  height: 100%;
  width: 35%;
  background: var(--yellow);
  border-radius: 5px;
  transition: width 0.4s;
}
.hint {
  margin-top: 16px;
  color: #809398;
  font-size: 10px;
  line-height: 1.6;
}
.result {
  display: none;
  border: 1px solid rgba(64, 214, 192, 0.35);
  background: rgba(64, 214, 192, 0.08);
  padding: 16px;
  border-radius: 13px;
  margin-top: 16px;
  color: #d0eeee;
  font-size: 14px;
  line-height: 1.6;
}
.result.show {
  display: block;
}
.bottom-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 31px;
  color: var(--muted);
  font-size: 11px;
}
.bottom-controls button {
  color: var(--muted);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 13, 16, 0.78);
  display: none;
  place-items: center;
  padding: 20px;
  z-index: 5;
}
.overlay.show {
  display: grid;
}
.modal {
  width: min(530px, 100%);
  background: #19272d;
  border: 1px solid var(--edge);
  border-radius: 20px;
  padding: 29px;
}
.modal h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
.modal p {
  color: #c2ced0;
  line-height: 1.65;
  font-size: 14px;
}
.modal .actions {
  margin-top: 20px;
}
.finish {
  display: none;
}
.finish.show {
  display: block;
}
.end-card {
  padding: 30px;
  background: linear-gradient(135deg, #193a3b, #19282f);
  border: 1px solid rgba(64, 214, 192, 0.3);
  border-radius: 20px;
}
.end-card h2 {
  font-size: clamp(38px, 6vw, 64px);
}
.pledges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0;
}
.pledge {
  padding: 9px 13px;
  border: 1px solid rgba(64, 214, 192, 0.3);
  border-radius: 30px;
  color: #b5e9df;
  font-size: 12px;
}
.safety {
  font-size: 12px;
  line-height: 1.7;
  color: #9aadb1;
  max-width: 700px;
  margin-top: 18px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body.projector .top,
body.projector .footer {
  display: none;
}
body.projector .wrap {
  width: min(1300px, 92vw);
  padding-top: 6vh;
}
body.projector .game h2 {
  font-size: clamp(44px, 6vw, 76px);
}
body.projector .story {
  font-size: clamp(19px, 2vw, 24px);
}
body.projector .choice {
  font-size: clamp(16px, 1.7vw, 21px);
  padding: 19px;
}
body.projector .side {
  font-size: 1.1em;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 760px) {
  .scene {
    grid-template-columns: 1fr;
  }
  .visual {
    min-height: 225px;
    grid-row: 1;
  }
  .orbit {
    width: 245px;
    height: 245px;
  }
  .visual:before {
    width: 205px;
    height: 205px;
  }
  .visual:after {
    width: 155px;
    height: 155px;
  }
  .sun {
    font-size: 55px;
  }
  .person {
    font-size: 24px;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .side {
    border: 0;
    border-top: 1px solid var(--edge);
    padding: 18px 0 0;
  }
  .side-item {
    display: inline-flex;
    width: 48%;
    vertical-align: top;
  }
  .wrap {
    padding: 30px 0;
  }
  .top {
    padding: 0 5vw;
  }
  .bottom-controls {
    margin-top: 22px;
  }
  .footer {
    gap: 10px;
  }
  .badge {
    display: none;
  }
}
.dialog-icon {
  display: none !important;
}
