:root {
  --bg: #07090b;
  --card: #171b20;
  --card-2: #12161b;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f7f8;
  --muted: #8d949e;
  --faint: #5e666f;
  --accent: #1ed9a4;
  --accent-deep: #14b888;
  --accent-soft: rgba(30, 217, 164, 0.16);
  --glow: #5dffe0;
  --gold: #e8b86a;
  --gold-2: #f3d7a2;
  --danger: #ff5a45;
  --orange: #ff8a2a;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --tab: calc(62px + env(safe-area-inset-bottom));
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  min-height: 100dvh;
  background:
    radial-gradient(520px 320px at 50% 0%, rgba(24, 160, 130, 0.16), transparent 70%),
    #040506;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input { font-family: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.device {
  width: min(100%, 430px);
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 520px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
  }
  .device {
    height: min(100dvh - 32px, 900px);
    border-radius: 28px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), var(--shadow);
  }
}

.screen, .sheet {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--bg);
  min-height: 0;
}
.screen.is-active, .sheet.is-open { display: flex; }
.sheet { z-index: 30; }
.sheet-auth { z-index: 40; }
.screen-sub { z-index: 25; }

.home-head, .me-head, .sub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 16px 8px;
  gap: 12px;
}
.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  line-height: 1.1;
}
.brand-name span {
  font-size: 13px;
  font-weight: 600;
  margin-left: 4px;
  letter-spacing: 0;
}
.brand-sub {
  display: block;
  margin-top: 3px;
  padding: 0;
  border: 0;
  background: none;
  color: #9eb0b6;
  font-size: 11px;
}
.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  color: #fff;
  background: #1aa86a;
  border-radius: 999px;
  padding: 7px 12px 7px 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(26, 168, 106, 0.25);
}
.mode-pill-ico { width: 16px; height: 16px; display: grid; }
.mode-pill-ico svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: none; }
.mode-pill-ico .ico-app { fill: #fff; stroke: none; }
.device[data-mode="app"] .ico-app,
.device[data-mode="global"] .ico-global,
.device[data-mode="game"] .ico-game { display: block; }
.device[data-mode="global"] .mode-pill { background: #3c7dff; box-shadow: 0 6px 16px rgba(60, 125, 255, 0.28); }
.device[data-mode="game"] .mode-pill { background: #e5923a; box-shadow: 0 6px 16px rgba(229, 146, 58, 0.28); }

.home-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 12px;
}
.power {
  width: 196px;
  height: 196px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  position: relative;
  color: #d9fff4;
}
.power-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 46%, rgba(38, 140, 110, 0.55), rgba(8, 18, 16, 0.2) 58%, rgba(7, 9, 11, 0.1) 70%);
  box-shadow:
    inset 0 0 0 2px rgba(120, 255, 220, 0.95),
    inset 0 0 34px rgba(40, 180, 140, 0.35),
    0 0 28px rgba(40, 220, 180, 0.18);
}
.power-ring::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(90, 255, 210, 0.18);
}
.power-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.power-core svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
}
.power.is-busy .power-ring {
  animation: spin 0.9s linear infinite;
  background:
    conic-gradient(from 0deg, transparent 0 70%, var(--glow) 88%, transparent 100%),
    radial-gradient(circle at 50% 46%, rgba(38, 140, 110, 0.55), rgba(8, 18, 16, 0.2) 62%);
}
.power.is-on .power-ring {
  box-shadow:
    inset 0 0 0 2.5px var(--glow),
    inset 0 0 46px rgba(60, 255, 200, 0.28),
    0 0 42px rgba(40, 230, 190, 0.38);
}
.power:active { transform: scale(0.98); }
.power-label {
  margin: 22px 0 0;
  color: #c5cdd4;
  font-size: 15px;
}
.power-meta {
  margin: 6px 0 0;
  color: var(--accent);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
@keyframes spin { to { transform: rotate(360deg); } }

.promo {
  margin: 0 16px 12px;
  border: 0;
  text-align: left;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 14px 14px 16px;
  border-radius: 16px;
  background:
    radial-gradient(120px 80px at 92% 80%, rgba(255, 196, 92, 0.28), transparent 70%),
    linear-gradient(100deg, #3a2a22 0%, #2a211c 42%, #1b1714 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 120, 0.16);
}
.promo-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.promo-title em {
  font-style: normal;
  color: #ffb020;
}
.promo-chip {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  background: linear-gradient(180deg, #ffe08a, #f0b83a);
  color: #5a3b08;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
}
.promo-chip i { font-style: normal; margin-left: 2px; }
.promo-vip {
  width: 74px;
  height: 64px;
  flex: none;
  background:
    radial-gradient(circle at 60% 60%, rgba(255, 220, 150, 0.2), transparent 60%);
  position: relative;
}
.promo-vip span {
  position: absolute;
  right: 4px;
  bottom: 6px;
  font-weight: 800;
  font-size: 13px;
  color: #7a4b16;
  background: linear-gradient(180deg, #ffe7ad, #f0b44a);
  border-radius: 8px 8px 12px 8px;
  padding: 7px 8px 8px;
  transform: rotate(-8deg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}
.promo-vip::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 18px;
  right: 18px;
  top: 10px;
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(#f7d7b0, #e7b48a);
  transform: rotate(18deg);
}

.route-bar {
  margin: 0 0 var(--tab);
  border: 0;
  width: 100%;
  text-align: left;
  color: inherit;
  background: #14181d;
  border-radius: 18px 18px 0 0;
  padding: 14px 16px 16px;
}
.route-bar-kicker { display: block; color: var(--muted); font-size: 12px; }
.route-bar-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.route-bar-name { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.dot-ico {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--accent) 0 2px, transparent 2.5px),
    conic-gradient(from 40deg, var(--accent) 0 25%, transparent 0 100%);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.chev { width: 18px; height: 18px; fill: none; stroke: #9aa3ad; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(7, 9, 11, 0.2), #07090b 30%);
}
.device.is-cover .tabbar { display: none; }
.tabbar button {
  border: 0;
  background: none;
  color: #8b939c;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  padding: 4px 0;
}
.tabbar button.is-on { color: var(--accent); }
.tabbar button[data-tab="deals"] { color: #c9a15a; }
.tabbar button[data-tab="deals"].is-on { color: #f0c27b; }
.tab-svg { width: 24px; height: 24px; display: block; }
.tabbar button[data-tab="home"] .tab-svg,
.tabbar button[data-tab="deals"] .tab-svg { fill: currentColor; }
.tabbar button[data-tab="me"] .tab-svg { fill: none; stroke: currentColor; stroke-width: 1.8; }

.deals-scroll, .me-scroll, .sub-body, .routes-body {
  flex: 1;
  overflow: auto;
  padding-bottom: calc(var(--tab) + 28px);
  overscroll-behavior: contain;
}
.screen-sub .sub-body, .sheet .sub-body, .sheet .routes-body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.screen-deals::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 180px;
  right: -60px;
  top: -40px;
  background: radial-gradient(circle, rgba(190, 150, 70, 0.2), transparent 68%);
  pointer-events: none;
}
.member-row, .profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 16px 0;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
  background:
    radial-gradient(circle at 35% 35%, #d7e4ef, #8ea0b3 42%, transparent 43%),
    linear-gradient(140deg, #6d8294, #31404e 55%, #1c2833);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.avatar.lg { width: 48px; height: 48px; }
.member-id { font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.member-expire {
  margin-top: 4px;
  color: var(--gold);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.crown-svg { width: 14px; height: 11px; fill: var(--gold); flex: none; }
.copy {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: #b7c0c8;
}
.copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.block-title {
  margin: 22px 16px 0;
  font-size: 15px;
  font-weight: 650;
}
.block-title small { color: var(--muted); font-weight: 400; font-size: 12px; }
.plans {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px 16px 6px;
  scrollbar-width: none;
}
.plans::-webkit-scrollbar { display: none; }
.plan {
  position: relative;
  flex: 0 0 168px;
  scroll-snap-align: start;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #1b1a17, #12110f);
  color: inherit;
  min-height: 148px;
  padding: 28px 12px 16px;
  text-align: center;
}
.plan.is-selected {
  border-color: #e6c48a;
  box-shadow: 0 0 0 1px rgba(230, 196, 138, 0.25), inset 0 0 30px rgba(200, 150, 60, 0.05);
}
.ribbon {
  position: absolute;
  top: -10px;
  left: 10px;
  background: linear-gradient(180deg, #ff9a3c, #ff7a1a);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px 6px 6px 2px;
  padding: 3px 7px;
}
.ribbon-red { background: linear-gradient(180deg, #ff5d4a, #ef3d32); }
.plan-name { display: block; font-size: 18px; font-weight: 700; }
.plan-price {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.plan-price small { font-size: 14px; margin-right: 2px; font-weight: 700; }
.plan-sub { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.pay {
  display: block;
  width: calc(100% - 32px);
  margin: 14px 16px 0;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 750;
  color: #4a3214;
  background: linear-gradient(180deg, #f8e0b4 0%, #e7be78 48%, #e0ae62 100%);
  box-shadow: 0 8px 20px rgba(210, 150, 60, 0.18);
}
.pay:active { transform: translateY(1px); }
.agree-note {
  text-align: center;
  color: var(--faint);
  font-size: 12px;
  margin: 12px 16px 0;
}
.agree-note button {
  border: 0;
  background: none;
  color: #aeb6be;
  padding: 0;
  font-size: inherit;
}

.priv {
  margin: 18px 16px 0;
  background: linear-gradient(180deg, #16191e, #101317);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 14px 12px 12px;
}
.priv-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.priv-head h3 { margin: 0; font-size: 16px; }
.priv-head button { border: 0; background: none; color: var(--muted); font-size: 13px; }
.priv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.priv-col {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  padding: 10px 8px 12px;
}
.priv-label {
  text-align: center;
  color: #c8a36a;
  font-size: 13px;
  margin-bottom: 10px;
}
.priv-items, .more-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 6px;
  text-align: center;
  font-size: 11px;
  color: #d5dbe1;
}
.priv-items div, .more-list div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1c2128;
  box-shadow: inset 0 0 0 1px rgba(232, 184, 106, 0.2);
  display: grid;
  place-items: center;
  color: #e8b86a;
}
.pico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pico.sm { width: 28px; height: 28px; background: transparent; box-shadow: none; }
.pico.sm svg { width: 18px; height: 18px; }
.more-priv {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.more-kicker { color: #c8a36a; font-size: 12px; line-height: 1.25; width: 36px; flex: none; }
.more-list { display: flex; gap: 14px; overflow: auto; flex: 1; font-size: 11px; white-space: nowrap; }
.more-list div { min-width: 58px; }

.me-head h1, .sub-head h1 { font-size: 18px; margin: 0; font-weight: 700; }
.me-tools { display: flex; gap: 14px; }
.me-tools button, .icon-btn, .text-btn {
  border: 0;
  background: none;
  color: #d5dbe2;
  padding: 4px;
}
.me-tools svg, .icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sub-head { display: grid; grid-template-columns: 44px 1fr 44px; }
.sub-head h1 { text-align: center; }
.text-btn { color: var(--accent); font-size: 15px; text-align: left; }
.profile {
  position: relative;
  margin-top: 12px;
  padding: 16px;
  border-radius: 18px;
  background:
    repeating-linear-gradient(-58deg, transparent, transparent 7px, rgba(255, 255, 255, 0.015) 7px, rgba(255, 255, 255, 0.015) 8px),
    linear-gradient(180deg, #1a2224, #12181b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.profile-main { flex: 1; min-width: 0; }
.login-btn {
  border: 0;
  background: var(--accent);
  color: #06281f;
  font-weight: 750;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
}
.login-btn.is-in { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.menu { list-style: none; margin: 18px 0 0; padding: 0 8px; }
.menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  color: var(--text);
  padding: 15px 12px;
  font-size: 16px;
  text-align: left;
}
.menu em { margin-left: auto; color: #66707a; font-style: normal; font-size: 18px; }
.menu b { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 13px; }
.menu button:active { background: rgba(255, 255, 255, 0.03); }
.mi {
  width: 22px;
  height: 22px;
  background: var(--accent);
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
}
.mi-msg { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M5 6h14a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H9l-4 3v-3H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z'/></svg>"); }
.mi-ticket { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v2a2 2 0 0 0 0 4v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-2a2 2 0 0 0 0-4V8z'/></svg>"); }
.mi-wand { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 20l9-9 2 2-9 9H4v-2zm9.5-10.5l2-2 2.2.6.6-2.2 2-.6-2-.6-.6-2.2-2.2.6-2-2-2 2-2.2-.6L7.5 6l2.2.6 2 2 1.8.9z'/></svg>"); }
.mi-grad { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 4l10 5-10 5L2 9l10-5zm-6 8.2V16c0 1.5 2.5 3 6 3s6-1.5 6-3v-3.8l-6 3-6-3z'/></svg>"); }
.mi-chat { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 4a8 8 0 0 0-8 8c0 1.5.4 2.9 1.1 4.1L4 20l3.9-1.1A8 8 0 1 0 12 4z'/></svg>"); }
.mi-share { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M14 4h6v6h-2V7.4l-7.3 7.3-1.4-1.4L16.6 6H14V4zM6 7h5v2H8v9h9v-3h2v5H6V7z'/></svg>"); }
.mi-info { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/></svg>"); }

.group-label { margin: 8px 16px; color: var(--muted); font-size: 13px; font-weight: 500; }
.mode-card {
  margin: 0 16px 18px;
  background: #171b20;
  border-radius: 16px;
  overflow: hidden;
}
.mode-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 14px;
  text-align: left;
}
.mode-option + .mode-option { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.mode-copy { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mode-copy strong { font-size: 16px; }
.mode-copy small { color: var(--muted); font-size: 12px; }
.mico { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.m-app { background: linear-gradient(180deg, #3ddea0, #1eb87a) center/16px 16px no-repeat, #1eb87a; background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff); background-size: 6px 6px; background-position: 10px 10px, 20px 10px, 10px 20px, 20px 20px; background-repeat: no-repeat; background-color: #1fca86; }
.m-global { background: radial-gradient(circle at 50% 50%, transparent 0 6px, #fff 7px 8px, transparent 9px), radial-gradient(circle at 12px 18px, #fff 2px, transparent 2.5px), #3d7ef0; }
.m-game { background: radial-gradient(circle at 13px 16px, #fff 2px, transparent 2.5px), radial-gradient(circle at 23px 16px, #fff 2px, transparent 2.5px), linear-gradient(#fff, #fff) center 22px/14px 3px no-repeat, #f09a3a; }
.radio, .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px #3a424c;
  flex: none;
}
.mode-option.is-current .radio, .free-row.is-current .radio {
  box-shadow: inset 0 0 0 6px var(--accent);
  background: #fff;
}
.free-row, .auto-row {
  width: calc(100% - 32px);
  margin: 8px 16px;
  border: 0;
  background: #14181d;
  color: inherit;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
}
.free-row span:first-child, .zone-title { display: inline-flex; align-items: center; gap: 8px; }
.bar { width: 3px; height: 14px; border-radius: 2px; background: var(--accent); display: inline-block; }
.bar.gold { background: var(--gold); }
.member-zone {
  margin: 8px 12px 0;
  padding: 12px 4px 8px;
  border-radius: 16px;
  background:
    repeating-linear-gradient(-58deg, transparent, transparent 8px, rgba(255,255,255,0.012) 8px, rgba(255,255,255,0.012) 9px),
    #12161a;
}
.zone-title { color: var(--gold); font-weight: 650; padding: 4px 12px 8px; }
.zone-label { margin: 12px 16px 6px; color: var(--muted); font-size: 13px; }
.auto-row { background: transparent; margin: 0 8px; width: auto; }
.auto-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #06281f;
  font-weight: 800;
  margin-right: auto;
}
.auto-row { justify-content: flex-start; gap: 10px; }
.auto-row .check { margin-left: auto; display: none; }
.auto-row.is-current .check { display: block; }
.check {
  box-shadow: none;
  background: var(--accent);
  position: relative;
}
.auto-row.is-current .check::after, .route-list button.is-current em { content: ""; }
.route-list button.is-current { }
.auto-row .check::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 6px;
  height: 10px;
  border: solid #06281f;
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}
.route-list { list-style: none; margin: 0; padding: 0 8px; }
.route-list button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  color: inherit;
  padding: 12px 8px;
  text-align: left;
}
.route-list .rtext { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.route-list strong { font-size: 15px; font-weight: 650; }
.route-list small { color: var(--muted); font-size: 12px; }
.route-list em { color: #66707a; font-style: normal; font-size: 18px; }
.route-list button.is-current em {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: transparent;
  position: relative;
  font-size: 0;
}
.route-list button.is-current em::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 4px;
  height: 8px;
  border: solid #06281f;
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}
.rico { width: 32px; height: 32px; border-radius: 50%; flex: none; background: #243040 center/contain no-repeat; }
.r-media { background: radial-gradient(circle at 30% 40%, #7d5cff, #2f6bff); }
.r-cn { background: radial-gradient(circle at 50% 50%, #de2910 58%, #ffde00 59%); }
.r-hmt { background: conic-gradient(#de2910 0 33%, #fff 0 50%, #007a3d 0 83%, #0033a0 0); }
.r-sea { background: linear-gradient(135deg, #f4a261, #e76f51); }
.r-jk { background: linear-gradient(#fff 50%, #bc002d 50%); }
.r-na { background: linear-gradient(#3c3b6e 50%, #b22234 50%); }
.r-eu { background: radial-gradient(circle at 50% 50%, #fc0 0 5px, transparent 6px), #003399; }
.r-au { background: linear-gradient(#012169, #012169); box-shadow: inset 0 0 0 8px #e4002b; }
.r-other { background: linear-gradient(160deg, #2a9d8f, #e9c46a 60%, #e76f51); }
.r-game { background: radial-gradient(circle at 35% 45%, #fff 2px, transparent 2.5px), radial-gradient(circle at 58% 45%, #fff 2px, transparent 2.5px), #f09a3a; }
.r-jk {
  background:
    radial-gradient(circle at 8px 16px, #bc002d 5px, transparent 5.5px),
    linear-gradient(90deg, #fff 0 50%, #f3f3f3 50% 100%);
  box-shadow: inset -15px 0 0 #fff, inset -8px 7px 0 #003478, inset -12px 11px 0 #cd2e3a;
}

.sheet[data-sheet="routes"] { background: transparent; padding-top: 8px; }
.sheet[data-sheet="routes"] .sub-head { grid-template-columns: 92px 1fr 44px; }
.line-head .rtext { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.line-head strong { font-size: 15px; font-weight: 650; }
.line-head small { color: var(--muted); font-size: 12px; }
.route-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #1b1e23;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}
.speed-btn { display: inline-flex; align-items: center; gap: 4px; }
.speed-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.line-group { border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.line-head, .node-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
}
.line-head { padding: 12px 16px; }
.node-row { padding: 11px 16px 11px 18px; font-size: 15px; }
.line-nodes { display: none; }
.line-group.is-open .line-nodes { display: block; }
.chev-r {
  width: 16px;
  height: 16px;
  margin-left: auto;
  flex: none;
  fill: none;
  stroke: #8b939c;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.line-group.is-open > .line-head .chev-r { transform: rotate(90deg); }
.a-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1ed9a4;
  color: #06281f;
  font-weight: 800;
  flex: none;
  font-size: 13px;
}
.node-crown { width: 22px; height: 22px; fill: #d4a24a; flex: none; }
.node-side { margin-left: auto; display: inline-flex; align-items: center; gap: 14px; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.bars i { width: 3px; border-radius: 1px; background: #3c4450; display: block; }
.bars i:nth-child(1) { height: 4px; }
.bars i:nth-child(2) { height: 7px; }
.bars i:nth-child(3) { height: 10px; }
.bars i:nth-child(4) { height: 13px; }
.bars[data-level="2"] i:nth-child(-n+2) { background: #e0b15a; }
.bars[data-level="3"] i:nth-child(-n+2) { background: #e0b15a; }
.bars[data-level="3"] i:nth-child(3) { background: #3ddea0; }
.bars[data-level="4"] i:nth-child(1) { background: #e0b15a; }
.bars[data-level="4"] i:nth-child(2) { background: #c6d86a; }
.bars[data-level="4"] i:nth-child(n+3) { background: #3ddea0; }
.node-row.is-current .radio { box-shadow: inset 0 0 0 6px var(--accent); background: #fff; }

.settings-body { padding-top: 8px; }
.set-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: none;
  color: #f2f4f6;
  padding: 16px 18px;
  font-size: 16px;
  text-align: left;
}
.set-row em { color: #6d7680; font-style: normal; font-size: 18px; }
.set-aside { color: #8d949e; display: inline-flex; align-items: center; gap: 2px; font-size: 15px; }
.set-aside b { font-weight: 500; }
.set-split { height: 1px; margin: 2px 18px 6px; background: rgba(255, 255, 255, 0.08); }
.set-gap { height: 28px; }
.switch {
  width: 51px;
  height: 31px;
  border: 0;
  border-radius: 999px;
  background: #3a424c;
  position: relative;
  padding: 0;
  flex: none;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}
.switch.is-on { background: #2fe0a8; }
.switch.is-on::after { transform: translateX(20px); }

.sheet-auth { background: #07090b; }
.orbits span {
  position: absolute;
  border: 18px solid rgba(18, 90, 74, 0.35);
  border-radius: 50%;
  right: -120px;
  top: -80px;
  width: 280px;
  height: 280px;
}
.orbits span:nth-child(2) { width: 200px; height: 200px; right: -80px; top: -40px; border-width: 16px; border-color: rgba(16, 70, 58, 0.55); }
.orbits span:nth-child(3) { width: 120px; height: 120px; right: -40px; top: 0; border-width: 14px; }
.auth-close { position: relative; z-index: 1; margin: calc(12px + env(safe-area-inset-top)) 8px 0; width: 44px; }
.auth-body { position: relative; z-index: 1; padding: 36px 28px 24px; }
.auth-tabs { display: flex; gap: 22px; align-items: flex-end; }
.auth-tabs button {
  border: 0;
  background: none;
  color: #9aa3ab;
  font-size: 18px;
  padding: 0 0 8px;
  font-weight: 650;
}
.auth-tabs button.is-on { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.field { display: block; margin-top: 16px; }
.field input {
  width: 100%;
  background: #1a1e24;
  border: 1px solid #2a3038;
  color: #fff;
  border-radius: 10px;
  padding: 14px 14px;
  font-size: 16px;
}
.field input::placeholder { color: #8b939c; }
.checkline {
  margin: 16px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.45;
}
.checkline input { margin-top: 2px; accent-color: var(--accent); }
.checkline button { border: 0; background: none; color: var(--accent); padding: 0; font-size: inherit; }
.checkline.shake { animation: shake 0.35s linear; }
@keyframes shake {
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-3px); }
}
.submit {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #06281f;
  font-size: 17px;
  font-weight: 750;
  padding: 14px;
}
.switch-auth {
  display: block;
  margin: 16px auto 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 15px;
}
.social {
  margin-top: 54px;
  display: flex;
  justify-content: center;
  gap: 28px;
}
.social button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  display: grid;
  place-items: center;
}
.social svg { width: 26px; height: 26px; fill: #111; }
.wx {
  width: 28px;
  height: 22px;
  background: radial-gradient(circle at 8px 12px, #22c55e 6px, transparent 6.5px), radial-gradient(circle at 18px 8px, #16a34a 5px, transparent 5.5px);
}

.mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 50;
}
.panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: #161a1f;
  border-radius: 18px 18px 0 0;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  max-height: min(78dvh, 640px);
  overflow: auto;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.35);
}
.panel-grab {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  margin: 4px auto 12px;
}
.panel h3 { margin: 0 0 8px; font-size: 18px; }
.panel p { color: #c5ced6; font-size: 14px; line-height: 1.6; }
.panel-list { list-style: none; margin: 8px 0 0; padding: 0; }
.panel-list button, .panel .full {
  width: 100%;
  text-align: left;
  border: 0;
  background: #101418;
  color: inherit;
  border-radius: 12px;
  padding: 14px;
  margin-top: 8px;
  font-size: 15px;
}
.panel .primary {
  text-align: center;
  background: var(--accent);
  color: #06281f;
  font-weight: 750;
}
.theme-row { display: flex; gap: 10px; }
.swatch {
  flex: 1;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #101418;
  color: inherit;
  padding: 14px 8px;
}
.swatch.is-on { box-shadow: inset 0 0 0 1.5px var(--accent); }
.swatch i { display: block; width: 28px; height: 28px; border-radius: 50%; margin: 0 auto 8px; }
.compare { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.compare th, .compare td { padding: 10px 6px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--muted); }
.compare th:last-child { color: var(--gold); }
.ok { color: var(--accent); }
.speed-result { font-variant-numeric: tabular-nums; font-size: 28px; font-weight: 800; margin: 8px 0; }
.toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--tab) + 16px);
  transform: translateX(-50%) translateY(8px);
  background: rgba(32, 36, 42, 0.95);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 80;
  max-width: 80%;
  text-align: center;
}
.device.is-cover .toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty { text-align: center; color: var(--muted); padding: 28px 8px; }
.msg {
  background: #101418;
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
}
.msg b { display: block; margin-bottom: 4px; }
.msg span { color: var(--faint); font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
