:root {
  --bg: #0f1211;
  --panel: #171c1b;
  --panel-2: #202826;
  --text: #eef4f1;
  --muted: #9dafaa;
  --line: #31413d;
  --green: #46d28f;
  --yellow: #f4c84f;
  --pink: #e55b86;
  --cyan: #65c7da;
  --road: #d7c9a2;
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(70, 210, 143, 0.14), transparent 28rem),
    linear-gradient(180deg, #111516 0%, #0f1211 58%);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 14px max(22px, env(safe-area-inset-bottom));
}

.topbar,
.status-strip,
.progress-panel,
.marker-sheet,
.data-block {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(23, 28, 27, 0.88);
  backdrop-filter: blur(18px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 0 0 8px 8px;
}

.eyebrow,
.sheet-kicker {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
}

.cn-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 8vw, 2rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.28rem;
}

h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.icon-button,
.map-control {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #202826;
  font-size: 1.3rem;
}

.status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding: 12px;
  border-radius: 8px;
}

.status-strip strong {
  display: block;
  font-size: 0.92rem;
}

.status-label {
  color: var(--muted);
  font-size: 0.78rem;
}

.status-strip a {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.disclaimer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(244, 200, 79, 0.28);
  border-radius: 8px;
  background: rgba(244, 200, 79, 0.08);
  color: #f6edd2;
  font-size: 0.82rem;
  line-height: 1.35;
}

.disclaimer strong {
  flex: 0 0 auto;
}

.site-links,
.content-nav {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.site-links::-webkit-scrollbar,
.content-nav::-webkit-scrollbar {
  display: none;
}

.site-links a,
.content-nav a,
.back-link {
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(32, 40, 38, 0.8);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-links a:first-child,
.content-nav a[aria-current="page"] {
  border-color: rgba(70, 210, 143, 0.7);
  background: rgba(70, 210, 143, 0.16);
}

.tabbar,
.toolbar,
.task-tools {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.tabbar::-webkit-scrollbar,
.toolbar::-webkit-scrollbar,
.task-tools::-webkit-scrollbar {
  display: none;
}

.tab,
.filter-button,
.primary-action {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  font-weight: 750;
  white-space: nowrap;
}

.tab {
  flex: 1;
  min-width: 96px;
}

.tab.is-active,
.filter-button.is-active {
  border-color: rgba(70, 210, 143, 0.7);
  background: rgba(70, 210, 143, 0.16);
  color: #d9ffec;
}

.view {
  display: none;
  padding-top: 12px;
}

.view.is-active {
  display: block;
}

.toolbar {
  align-items: stretch;
}

.search-field {
  display: flex;
  flex: 1 0 190px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111716;
}

.search-field span {
  color: var(--muted);
  font-size: 0.8rem;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.filter-button {
  padding: 0 13px;
}

.map-frame {
  position: relative;
  height: min(63vh, 620px);
  min-height: 430px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #18211f;
  touch-action: manipulation;
}

.map-art {
  position: absolute;
  inset: 0;
  transform: scale(var(--map-scale, 1));
  transform-origin: center;
  transition: transform 160ms ease;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(244, 200, 79, 0.12) 42% 45%, transparent 45%),
    radial-gradient(ellipse at 73% 78%, rgba(101, 199, 218, 0.62) 0 13%, transparent 14%),
    radial-gradient(ellipse at 18% 18%, rgba(70, 210, 143, 0.22) 0 24%, transparent 25%),
    linear-gradient(155deg, #25372e 0 35%, #354238 35% 53%, #1e3335 53% 100%);
}

.map-art::before,
.map-art::after {
  content: "";
  position: absolute;
  border-radius: 48% 52% 44% 56%;
}

.map-art::before {
  left: 9%;
  top: 12%;
  width: 72%;
  height: 78%;
  background: #2f4639;
  box-shadow:
    36px 72px 0 #344c41,
    110px -24px 0 #2b4039;
}

.map-art::after {
  right: -12%;
  bottom: -10%;
  width: 48%;
  height: 42%;
  background: #1f5d67;
}

.district {
  position: absolute;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(15, 18, 17, 0.62);
  color: #dce8e4;
  font-size: 0.72rem;
  font-weight: 800;
}

.north {
  left: 11%;
  top: 12%;
}

.city {
  right: 18%;
  top: 47%;
}

.keys {
  right: 10%;
  bottom: 17%;
}

.route {
  position: absolute;
  z-index: 3;
  height: 6px;
  border-radius: 999px;
  background: var(--road);
  opacity: 0.82;
}

.route-a {
  left: 22%;
  top: 43%;
  width: 56%;
  transform: rotate(31deg);
}

.route-b {
  left: 48%;
  top: 65%;
  width: 36%;
  transform: rotate(-18deg);
}

.watermark {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  color: rgba(238, 244, 241, 0.38);
  font-size: 0.72rem;
  font-weight: 900;
}

.marker {
  position: absolute;
  z-index: 8;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.36);
  transform: translate(-50%, -50%);
}

.marker[data-type="vehicle"] {
  background: var(--yellow);
  color: #17140a;
}

.marker[data-type="mission"] {
  background: var(--cyan);
  color: #071114;
}

.marker[data-type="secret"] {
  background: var(--pink);
}

.marker.is-hidden {
  display: none;
}

.map-actions {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 12;
  display: grid;
  gap: 8px;
}

.marker-sheet {
  position: sticky;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 15;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: -82px 10px 0;
  padding: 14px;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.marker-sheet p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.primary-action {
  padding: 0 14px;
  background: var(--green);
  color: #06130d;
}

.progress-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 8px;
}

.progress-ring {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #171c1b 0 55%, transparent 56%),
    conic-gradient(var(--green) var(--progress, 0deg), #34413d 0);
  font-weight: 900;
}

.task-tools {
  margin: 12px 0 10px;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: var(--panel);
}

.task-card input {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  accent-color: var(--green);
}

.task-card strong {
  display: block;
  margin-bottom: 4px;
}

.task-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.task-card.is-done {
  border-color: rgba(70, 210, 143, 0.38);
  background: rgba(70, 210, 143, 0.08);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(23, 28, 27, 0.88);
}

.section-head h2,
.section-head p {
  margin-bottom: 0;
}

.mini-pill {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(101, 199, 218, 0.44);
  border-radius: 8px;
  color: #cef5fb;
  background: rgba(101, 199, 218, 0.12);
  font-size: 0.78rem;
  font-weight: 850;
}

.card-grid,
.platform-list {
  display: grid;
  gap: 10px;
}

.info-card,
.platform-card,
.countdown-panel {
  min-height: 128px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: var(--panel);
}

.info-card span,
.platform-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 850;
}

.info-card p,
.platform-card p,
.countdown-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.countdown-panel {
  margin-top: 10px;
  background:
    linear-gradient(135deg, rgba(70, 210, 143, 0.12), rgba(101, 199, 218, 0.08)),
    var(--panel);
}

.data-block {
  padding: 14px;
  border-radius: 8px;
}

.data-block p {
  color: var(--muted);
  line-height: 1.55;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.seo-grid article {
  min-height: 146px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: var(--panel);
}

.seo-grid span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 850;
}

.seo-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.content-page {
  display: grid;
  gap: 14px;
}

.hero-panel,
.page-section,
.faq-list,
.status-list {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(23, 28, 27, 0.88);
}

.hero-panel h1 {
  margin-bottom: 10px;
}

.hero-panel p,
.page-section p,
.faq-list p,
.status-list p {
  color: var(--muted);
  line-height: 1.58;
}

.language-note {
  display: inline-block;
  margin-top: 8px;
  color: #d9ffec;
  font-size: 0.9rem;
  font-weight: 750;
}

.status-list ul,
.page-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.faq-list details {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-list details:first-of-type {
  border-top: 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

@media (min-width: 760px) {
  .app-shell {
    padding-inline: 24px;
  }

  .map-frame {
    height: 640px;
  }
}

@media (max-width: 430px) {
  .status-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .disclaimer {
    align-items: flex-start;
    flex-direction: column;
  }

  .marker-sheet {
    grid-template-columns: 1fr;
  }

  .primary-action {
    width: 100%;
  }

  .seo-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
