:root {
  --bg: #f7f4ef;
  --ink: #1b1a3a;
  --mute: #6b6a80;
  --acc: #7b5cff;
  --acc-2: #6546f0;
  --card: #fff;
  --line: #ece8e1;
  --field: #f4f1eb;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: Manrope, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
.in { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.head {
  position: sticky;
  top: 0;
  z-index: 8;
  background: rgba(247,244,239,.86);
  backdrop-filter: blur(16px);
}
.head .in {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-right: auto;
}
.logo i {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, #8f73ff, #5b3dff);
  box-shadow: 0 8px 18px rgba(123,92,255,.35);
}
.logo span { display: flex; flex-direction: column; line-height: 1.1; }
.logo small { font-weight: 600; font-size: 11px; color: var(--mute); letter-spacing: 0; }
nav { display: flex; gap: 22px; }
nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; opacity: .78; }
nav a:hover { opacity: 1; color: var(--acc); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 10px;
}
.glow {
  position: absolute;
  right: -8%;
  top: -20%;
  width: 58%;
  height: 120%;
  background:
    radial-gradient(circle at 55% 45%, rgba(123,92,255,.28), transparent 42%),
    radial-gradient(circle at 78% 30%, rgba(167,139,250,.22), transparent 38%);
  pointer-events: none;
}
.hero-in {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
  align-items: center;
  position: relative;
}
.tag {
  color: var(--acc);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
h1 {
  font-size: 56px;
  letter-spacing: -.05em;
  line-height: 1.02;
  margin-bottom: 16px;
  font-weight: 800;
}
h1 em { font-style: normal; color: var(--acc); }
.about-copy > p { color: var(--mute); font-size: 16px; max-width: 40em; line-height: 1.55; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 26px;
}
.stats div {
  background: var(--card);
  border-radius: 18px;
  padding: 14px 12px;
  box-shadow: 0 10px 30px rgba(27,26,58,.05);
}
.stats b { display: block; font-size: 22px; margin-bottom: 4px; }
.stats span { color: var(--mute); font-size: 12px; font-weight: 600; }

.orbit { position: relative; min-height: 380px; }
.orb {
  position: absolute;
  width: 220px; height: 220px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(160deg, #8f73ff, #4f35e8);
  box-shadow: 0 30px 70px rgba(123,92,255,.35);
}
.orb:after {
  content: "2↔";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff; font-size: 42px; font-weight: 800;
}
.float {
  position: absolute;
  background: #fff;
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 18px 40px rgba(27,26,58,.1);
  font-size: 13px;
  font-weight: 700;
}
.float b {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: #eee9ff; color: var(--acc); font-size: 12px;
}
.f1 { left: 6%; top: 12%; }
.f2 { right: 4%; top: 28%; }
.f3 { left: 0; bottom: 22%; }
.f4 { right: 10%; bottom: 10%; }

.facts-row { padding: 8px 0 6px; }
.facts {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.facts li {
  background: var(--card);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 14px;
  color: #3d3c55;
  box-shadow: 0 8px 24px rgba(27,26,58,.04);
}

.board { padding: 18px 0 72px; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cats span {
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #3d3c55;
  box-shadow: 0 6px 16px rgba(27,26,58,.05);
}
.panel {
  background: var(--card);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(27,26,58,.07);
}
.panel-h { margin-bottom: 16px; }
.panel-h h2 { font-size: 22px; }
.panel-h p { color: var(--mute); font-size: 14px; margin-top: 4px; }
.fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--mute);
  font-weight: 700;
  position: relative;
}
label.wide { grid-column: 1 / -1; }
input {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--field);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}
input:focus { border-color: #c9bbff; background: #fff; box-shadow: 0 0 0 4px rgba(123,92,255,.12); }
.hint { font-size: 12px; color: #8a889c; font-weight: 500; }
.sug {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: #fff;
  border-radius: 14px;
  z-index: 6;
  overflow: hidden;
  margin-top: 4px;
  box-shadow: 0 16px 40px rgba(27,26,58,.12);
}
.sug button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
  cursor: pointer;
}
.sug button:hover { background: #f4f1eb; }
.err { color: #d14b6a; font-size: 14px; margin: 10px 0 0; }
.ret, .go, .ghost, .take, .skip {
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  border-radius: 14px;
}
.ret {
  margin-top: 16px;
  width: 100%;
  border: 1px dashed #c9bbff;
  background: #f6f3ff;
  color: var(--acc);
  padding: 13px 16px;
}
.ret.on {
  background: var(--acc);
  border-style: solid;
  border-color: var(--acc);
  color: #fff;
}
.actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.go, .take {
  background: var(--acc);
  color: #fff;
  border: 0;
  padding: 12px 18px;
  box-shadow: 0 10px 22px rgba(123,92,255,.28);
}
.go:hover, .take:hover { background: var(--acc-2); }
.tg-note { font-size: 15px; line-height: 1.45; margin: 4px 0 16px; }
a.take.tg {
  display: flex;
  width: 100%;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}
.ghost, .skip {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px 16px;
}

.shade {
  position: fixed;
  inset: 0;
  background: rgba(27,26,58,.38);
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 16px;
}
.modal {
  width: min(540px, 100%);
  height: min(560px, calc(100vh - 32px));
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(27,26,58,.22);
}
.modal-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.x { background: none; border: 0; color: var(--ink); font-size: 26px; cursor: pointer; }
.modal-b { padding: 16px; overflow: auto; flex: 1; }
.wait { text-align: center; padding: 28px 8px; }
.spin {
  width: 42px; height: 42px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid #ece8e1;
  border-top-color: var(--acc);
  animation: rot .8s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }
.wait h3 { font-size: 20px; margin-bottom: 8px; }
.wait p { color: var(--mute); }
.barline { height: 4px; background: #ece8e1; border-radius: 99px; overflow: hidden; margin: 18px 0 8px; }
.barline i { display: block; height: 100%; width: 0; background: var(--acc); }
.route { font-size: 14px; color: var(--mute); margin-bottom: 10px; }
.map { height: 220px; border-radius: 16px; overflow: hidden; position: relative; margin-bottom: 10px; background: var(--field); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: auto; }
.map .cap {
  position: absolute; left: 8px; bottom: 8px;
  background: rgba(27,26,58,.78); color: #fff; font-size: 12px;
  padding: 6px 8px; border-radius: 8px; pointer-events: none;
}
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.meta { display: grid; gap: 6px; font-size: 13px; color: #3d3c55; margin-bottom: 12px; }
.pay { font-size: 30px; font-weight: 800; margin: 6px 0; }
.fee { color: var(--mute); font-size: 13px; margin-bottom: 12px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tags span {
  font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 999px;
  background: #f4f1eb; color: #3d3c55;
}
.busy { background: #fff4f0; color: #d14b6a; border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.modal-b h3 { font-size: 20px; margin-bottom: 4px; }
@media (max-width: 900px) {
  .hero-in, .facts, .fields { grid-template-columns: 1fr 1fr; }
  nav { display: none; }
  h1 { font-size: 36px; }
  .orbit { display: none; }
}
@media (max-width: 560px) {
  .stats, .fields, .facts { grid-template-columns: 1fr; }
}
