:root {
  color-scheme: light;
  --ink: #173641;
  --accent: #487c79;
  --primary-text: #fff;
  --line: #dce2dc;
  --input-border: #ccd7d3;
  --panel-strong: #fffcf5;
  --gold: #efd9a6;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #b1cbd6;
  color: var(--ink);
}
button,
a,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 3px solid #dcad55;
  outline-offset: 4px;
}
button {
  color: inherit;
}
[hidden] {
  display: none !important;
}
.summit-world {
  height: 100dvh;
  min-height: 650px;
  overflow: hidden;
  position: relative;
}
.summit-canvas {
  position: absolute;
  inset: 0;
}
.summit-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
}
.world-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(213, 232, 233, 0.75),
      transparent 32%,
      transparent 76%,
      rgba(179, 208, 215, 0.28)
    ),
    linear-gradient(0deg, rgba(30, 65, 71, 0.4), transparent 18%);
}
.expedition-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 27px 36px;
  gap: 24px;
}
.summit-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 4px;
  font-size: 24px;
  font-weight: 700;
}
.summit-brand svg {
  width: 40px;
  height: 40px;
}
.summit-brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2.1px;
  margin-top: 4px;
  font-weight: 600;
}
.mountain-switch {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  background: #edf3ed8c;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid #ffffff70;
  box-shadow: 0 5px 20px #1736410b;
  backdrop-filter: blur(16px);
}
.mountain-switch button {
  border: 0;
  background: none;
  border-radius: 10px;
  min-width: 118px;
  padding: 9px 22px;
  font-size: 15px;
  font-weight: 650;
  transition: background 0.2s;
}
.mountain-switch button small {
  font-size: 9px;
  display: block;
  letter-spacing: 2px;
  margin-top: 3px;
  opacity: 0.65;
}
.mountain-switch button.is-active {
  background: #234650;
  color: #fff6e1;
  box-shadow: 0 3px 9px #23465020;
}
.back-to-study {
  font-size: 15px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #b9954e;
  border-radius: 12px;
  background: #f7dda0;
  color: #233e36;
  padding: 12px 18px;
  min-height: 46px;
  box-shadow: 0 4px 16px #233e3630;
}
.back-to-study span {
  font-size: 18px;
}
.expedition-intro {
  position: absolute;
  left: 40px;
  top: 150px;
  width: 260px;
  pointer-events: none;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  display: flex;
  gap: 8px;
  align-items: center;
  opacity: 0.75;
}
.live-dot {
  width: 5px;
  height: 5px;
  display: inline-block;
  background: #247064;
  border-radius: 100%;
  box-shadow: 0 0 0 3px #438b7720;
}
.expedition-intro h1 {
  font-weight: 500;
  font-size: 32px;
  line-height: 1.55;
  letter-spacing: 1px;
  margin: 19px 0 16px;
  font-family: "Songti SC", "SimSun", serif;
}
.expedition-intro p {
  font-size: 12px;
  line-height: 2;
  color: #41616c;
  margin: 0;
}
.world-count {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-top: 26px;
  font-size: 10px;
}
.world-count strong {
  font-size: 30px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.live-tag {
  border-left: 1px solid #456a6f35;
  padding-left: 9px;
  color: #496d70;
  font-size: 9px;
}
.text-button {
  background: #fffdf2;
  border: 1px solid #769084;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  min-height: 42px;
  margin-top: 12px;
  box-shadow: 0 3px 12px #17364116;
  pointer-events: auto;
}
.text-button span {
  margin-left: 5px;
}
.demo-banner {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.5px;
  padding: 7px 12px;
  border: 1px solid #fff9;
  border-radius: 30px;
  background: #f7f1d0b8;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.demo-banner a {
  margin-left: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.expedition-profile {
  position: absolute;
  right: 30px;
  top: 142px;
  width: 260px;
  border: 1px solid #ffffffad;
  background: linear-gradient(145deg, #fffff2e8, #eaf1e7db);
  box-shadow: 0 12px 45px #1a404912;
  border-radius: 18px;
  padding: 23px 21px 19px;
  backdrop-filter: blur(18px);
  max-height: calc(100dvh - 258px);
  overflow: auto;
  scrollbar-width: thin;
}
.profile-placeholder {
  text-align: center;
  padding: 28px 0;
}
.mini-compass {
  font-size: 38px;
  color: #768d7a;
}
.profile-placeholder h2 {
  font-size: 17px;
  margin: 17px 0;
}
.profile-placeholder p {
  font-size: 12px;
  line-height: 2;
  color: #68827e;
}
.profile-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #71847c;
}
.profile-close {
  border: 0;
  background: none;
  font-size: 20px;
  margin: -8px -6px;
  padding: 4px 8px;
}
.profile-identity {
  text-align: center;
  margin: 16px 0 19px;
}
.profile-identity .summit-avatar {
  margin: 0 auto 11px;
}
.profile-identity h2 {
  font-size: 18px;
  font-weight: 650;
  margin: 12px 0 7px;
  word-break: break-all;
}
.profile-identity p {
  font-size: 10px;
  margin: 0;
  color: #6e817b;
}
.profile-rank {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
}
.profile-rank svg {
  width: 19px;
  height: 19px;
}
.profile-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid #264a431a;
  border-bottom: 1px solid #264a431a;
  padding: 17px 0;
  margin-bottom: 15px;
}
.profile-metrics div + div {
  border-left: 1px solid #264a431a;
  padding-left: 21px;
}
.profile-metrics strong {
  font-size: 27px;
  font-weight: 450;
  letter-spacing: -1px;
}
.profile-metrics small {
  display: block;
  font-size: 10px;
  color: #708079;
  margin-top: 5px;
}
.next-rank {
  font-size: 10px;
  color: #6f817a;
  display: flex;
  justify-content: space-between;
}
.next-rank b {
  color: #48685a;
  font-weight: 500;
}
.rank-progress {
  height: 4px;
  background: #31594513;
  margin: 10px 0 20px;
  border-radius: 4px;
  overflow: hidden;
}
.rank-progress > span {
  display: block;
  background: linear-gradient(90deg, #7eaf91, #c3ac63);
  height: 100%;
  border-radius: 4px;
}
.heatmap-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  margin-bottom: 9px;
  color: #647a70;
}
.heatmap {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  grid-template-rows: repeat(7, 8px);
  grid-auto-flow: column;
  gap: 3px;
}
.heatmap > span {
  border-radius: 2px;
  background: #547d6412;
}
.heatmap > span[data-level="1"] {
  background: #c1d6ae;
}
.heatmap > span[data-level="2"] {
  background: #8db384;
}
.heatmap > span[data-level="3"] {
  background: #5a8d68;
}
.heatmap > span[data-level="4"] {
  background: #306854;
}
.heatmap-caption {
  font-size: 8px;
  color: #839085;
  text-align: right;
  margin: 6px 0 16px;
}
.social-count {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #647a70;
  gap: 8px;
  margin: 10px 0;
}
.profile-actions {
  display: flex;
  gap: 8px;
  margin-top: 17px;
}
.profile-actions button {
  border: 1px solid #66837538;
  border-radius: 8px;
  background: #f7faefb3;
  font-size: 11px;
  padding: 10px 4px;
  flex: 1;
}
.profile-actions button:first-child {
  background: #2e5b53;
  color: #fff8e5;
  border-color: transparent;
}
.privacy-note {
  font-size: 10px;
  line-height: 1.7;
  color: #698072;
  margin: 12px 0 0;
}
.inline-edit {
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 10px;
  padding: 6px 0;
  color: #587569;
}
.my-expedition {
  position: absolute;
  bottom: 46px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 15px 18px;
  border: 1px solid #ffffff88;
  border-radius: 13px;
  background: #f7f7e5e8;
  box-shadow: 0 8px 30px #153b4720;
  backdrop-filter: blur(16px);
  min-width: 345px;
  max-width: calc(100% - 350px);
}
#self-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
#self-summary strong {
  display: block;
  font-size: 13px;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
#self-summary small {
  display: block;
  font-size: 10px;
  margin-top: 6px;
  color: #6d8177;
}
.gold-button {
  background: #254f49;
  border: 0;
  color: #fff4d6;
  border-radius: 8px;
  padding: 12px 14px;
  white-space: nowrap;
  font-size: 11px;
}
.gold-button span {
  padding-left: 12px;
}
.scene-tools {
  position: absolute;
  right: 32px;
  bottom: 71px;
  display: flex;
  align-items: center;
  background: #f7f8e9e0;
  border: 1px solid #fff9;
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 6px 20px #294f5120;
  backdrop-filter: blur(12px);
}
.scene-tools button {
  width: 41px;
  height: 38px;
  border: 0;
  background: none;
  font-size: 21px;
  border-radius: 7px;
}
.scene-tools button:hover {
  background: #345d5115;
}
.scene-tools span {
  height: 17px;
  border-left: 1px solid #31514a30;
  margin: 0 5px;
}
.scene-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 13px;
  white-space: nowrap;
  font-size: 9px;
  color: #f0f6e8c9;
  letter-spacing: 0.5px;
  pointer-events: none;
}
.scene-hint i {
  width: 2px;
  height: 2px;
  background: #f0f6e899;
  border-radius: 50%;
}
.guide-button {
  position: absolute;
  bottom: 24px;
  right: 34px;
  background: none;
  border: 0;
  font-size: 10px;
  color: #f0f6e8;
}
.guide-button span {
  margin-left: 9px;
}
.summit-scene-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.summit-person-label {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  white-space: nowrap;
  border: 1px solid #fff6;
  border-radius: 20px;
  background: #173e44d6;
  color: #f7ffed;
  font-size: 10px;
  padding: 5px 10px;
  box-shadow: 0 3px 12px #143d3c20;
  backdrop-filter: blur(6px);
}
.summit-person-label:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: 9px;
  background: #fff8;
}
.summit-person-label.is-self {
  color: #284238;
  border-color: #fff1bd;
  background: #fff0be;
  font-weight: 650;
}
.summit-person-label.is-self:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b59246;
  display: inline-block;
  margin-right: 6px;
}
.summit-camp-label {
  position: absolute;
  font-size: 9px;
  letter-spacing: 2px;
  color: #26444d;
  text-shadow: 0 1px 5px #fffa;
  white-space: nowrap;
  background: #eef1dc9c;
  border: 1px solid #fff6;
  padding: 5px 8px;
  border-radius: 3px;
}
.scene-loading {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #d5e5e5, #a6c5ce);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  z-index: 5;
  transition: opacity 0.6s;
}
.scene-loading.is-ready {
  opacity: 0;
  pointer-events: none;
}
.loading-mountain {
  font-size: 65px;
  font-weight: 100;
  color: #45747a;
  animation: breathe 2s ease-in-out infinite;
}
.scene-loading strong {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 3px;
}
.scene-loading > span {
  font-size: 11px;
  color: #6b8689;
}
.scene-error {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: min(90vw, 420px);
  padding: 25px;
  background: #fbfaebf2;
  border-radius: 14px;
  z-index: 4;
}
.scene-error h2 {
  font-size: 18px;
}
.scene-error p {
  font-size: 12px;
  line-height: 1.8;
}
.scene-error button {
  border: 0;
  background: #28554d;
  border-radius: 8px;
  padding: 12px;
  color: #fff;
}
.summit-toast {
  position: absolute;
  top: 104px;
  left: 50%;
  transform: translateX(-50%);
  background: #204b46ec;
  color: #fff8e2;
  padding: 12px 20px;
  border-radius: 9px;
  z-index: 8;
  max-width: min(500px, 90vw);
  font-size: 12px;
  line-height: 1.7;
  box-shadow: 0 5px 30px #14383320;
}
dialog {
  color: var(--ink);
  border: 1px solid #fff;
  border-radius: 18px;
  box-shadow: 0 24px 100px #12303955;
  background: #f9faee;
  padding: 28px;
  max-height: 85dvh;
}
dialog::backdrop {
  background: #15394277;
  backdrop-filter: blur(6px);
}
dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
dialog > header small {
  font-size: 9px;
  letter-spacing: 2px;
  color: #7d9383;
}
dialog > header h2 {
  font-size: 22px;
  letter-spacing: 1px;
  margin: 8px 0 16px;
  font-weight: 550;
}
dialog > header button {
  align-self: start;
  border: 0;
  background: none;
  font-size: 26px;
  padding: 0 7px;
}
.board-dialog {
  width: min(560px, 94vw);
}
.board-dialog > p {
  font-size: 11px;
  color: #6e8276;
  line-height: 1.8;
}
.board-row {
  display: flex;
  align-items: center;
  gap: 17px;
  border: 0;
  border-top: 1px solid #25453715;
  padding: 13px 4px;
  background: none;
  width: 100%;
  text-align: left;
}
.board-row .place {
  font-size: 15px;
  width: 28px;
  font-variant-numeric: tabular-nums;
  color: #718375;
}
.board-row .board-name {
  flex: 1;
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-row small {
  display: block;
  font-size: 9px;
  margin-top: 5px;
  color: #7c8f7d;
}
.board-row > strong {
  font-size: 18px;
  font-weight: 450;
  white-space: nowrap;
}
.board-row.is-self {
  background: #dae9cc6b;
  border-radius: 8px;
}
.board-empty {
  padding: 24px 0;
  font-size: 13px;
  line-height: 2;
  color: #758773;
}
.guide-dialog {
  width: min(620px, 94vw);
}
.guide-dialog p {
  font-size: 12px;
  line-height: 1.9;
  color: #657c6e;
}
.guide-peaks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-block: 1px solid #34534522;
  padding: 17px 0;
  margin: 20px 0;
}
.guide-peaks strong {
  font-size: 15px;
}
.guide-peaks p {
  margin-bottom: 0;
}
.rank-guide-list {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.rank-guide-list > div {
  text-align: center;
  font-size: 11px;
}
.rank-guide-list svg {
  width: 35px;
  height: 35px;
  display: block;
  margin: 0 auto 8px;
}
.rank-guide-list small {
  display: block;
  margin-top: 5px;
  color: #859482;
  font-size: 9px;
}
.asset-credit {
  font-size: 9px !important;
  border-top: 1px solid #25453722;
  padding-top: 12px;
}
@keyframes breathe {
  50% {
    opacity: 0.3;
    transform: translateY(-5px);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
.expedition-intro h1 {
  font-size: 29px;
  white-space: nowrap;
}
.scene-performance {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font: 10px monospace;
  color: #fff;
  z-index: 10;
  background: #173641bb;
  padding: 3px 7px;
  border-radius: 4px;
}
.summit-avatar--founder {
  box-shadow:
    0 0 0 1px #fff0b8,
    0 0 0 4px #8c6731,
    0 0 0 5px #f7df95,
    0 0 12px #e2c68166;
  outline: 1px solid #f9df93;
  outline-offset: 7px;
}
.summit-founder-star {
  color: #b1863e;
  background: #fff6d8;
  border: 1px solid #d0a351;
  border-radius: 4px;
  padding: 0 2px;
  line-height: 1.1;
  transform: rotate(-10deg);
  font-size: calc(var(--summit-avatar-size) * 0.23);
}
@media (min-width: 1700px) {
  .expedition-intro {
    left: 65px;
    top: 180px;
  }
  .expedition-intro h1 {
    font-size: 38px;
  }
  .expedition-profile {
    right: 50px;
    width: 280px;
    top: 160px;
  }
  .my-expedition {
    left: 65px;
    bottom: 60px;
  }
}
@media (max-width: 1100px) {
  .expedition-intro {
    left: 26px;
    width: 210px;
    top: 128px;
  }
  .expedition-intro h1 {
    font-size: 26px;
  }
  .expedition-profile {
    right: 20px;
    width: 231px;
    padding: 20px 16px;
    top: 130px;
  }
  .expedition-header {
    padding: 22px 26px;
  }
  .my-expedition {
    left: 26px;
    gap: 13px;
    min-width: 300px;
  }
  .world-count .live-tag {
    display: none;
  }
  .demo-banner {
    top: 100px;
  }
  .scene-hint {
    left: 26px;
    transform: none;
    font-size: 8px;
  }
  .scene-tools {
    right: 21px;
  }
}
@media (max-width: 760px) {
  .summit-world {
    min-height: 560px;
  }
  .expedition-header {
    padding: 17px 18px;
    align-items: flex-start;
  }
  .summit-brand {
    font-size: 18px;
    letter-spacing: 2px;
    gap: 7px;
  }
  .summit-brand svg {
    width: 30px;
    height: 30px;
  }
  .summit-brand small {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .back-to-study {
    font-size: 10px;
    gap: 10px;
    padding: 5px 0;
  }
  .mountain-switch {
    top: 71px;
    width: 232px;
    padding: 4px;
    border-radius: 10px;
  }
  .mountain-switch button {
    min-width: 0;
    flex: 1;
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 7px;
  }
  .mountain-switch button small {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .expedition-intro {
    top: 148px;
    left: 20px;
    width: 200px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .expedition-intro h1 {
    font-size: 22px;
    margin: 10px 0;
    line-height: 1.4;
  }
  .expedition-intro p {
    display: none;
  }
  .world-count {
    margin-top: 8px;
  }
  .world-count strong {
    font-size: 22px;
  }
  .world-count > span {
    font-size: 8px;
  }
  .text-button {
    padding: 6px 0;
    font-size: 10px;
  }
  .demo-banner {
    top: 124px;
    padding: 5px 9px;
    font-size: 8px;
    max-width: 95vw;
  }
  .demo-banner a {
    margin-left: 8px;
  }
  .expedition-profile {
    top: auto;
    bottom: 124px;
    right: 14px;
    width: 218px;
    max-height: 55dvh;
    padding: 16px;
    display: none;
  }
  .expedition-profile.is-open {
    display: block;
  }
  .profile-identity {
    margin: 10px 0;
  }
  .profile-metrics {
    padding: 11px 0;
  }
  .profile-metrics strong {
    font-size: 22px;
  }
  .profile-identity h2 {
    font-size: 15px;
  }
  .my-expedition {
    bottom: 39px;
    left: 14px;
    right: 14px;
    min-width: 0;
    max-width: none;
    padding: 12px;
    gap: 10px;
    justify-content: space-between;
  }
  .my-expedition .summit-avatar {
    --summit-avatar-size: 38px !important;
  }
  #self-summary {
    gap: 10px;
  }
  #self-summary strong {
    font-size: 12px;
    max-width: 135px;
  }
  #self-summary small {
    font-size: 9px;
  }
  .gold-button {
    padding: 11px;
    font-size: 10px;
  }
  .scene-tools {
    right: 14px;
    bottom: 126px;
    display: flex;
    flex-direction: column;
    padding: 3px;
    border-radius: 9px;
  }
  .scene-tools button {
    width: 32px;
    height: 34px;
    font-size: 18px;
  }
  .scene-tools span {
    height: 0;
    width: 15px;
    border-top: 1px solid #31514a30;
    border-left: 0;
    margin: 3px;
  }
  .expedition-profile.is-open ~ .scene-tools {
    visibility: hidden;
  }
  .scene-hint {
    left: 17px;
    bottom: 17px;
    gap: 7px;
    font-size: 7px;
  }
  .scene-hint span:last-child,
  .scene-hint i:last-of-type {
    display: none;
  }
  .guide-button {
    right: 16px;
    bottom: 12px;
    font-size: 9px;
  }
  .world-vignette {
    background:
      linear-gradient(90deg, #d5e8e94d, transparent 55%),
      linear-gradient(0deg, #1e414780, transparent 25%);
  }
  .summit-camp-label {
    font-size: 7px;
    padding: 4px;
  }
  .summit-person-label {
    font-size: 8px;
  }
  .summit-toast {
    top: 128px;
    font-size: 11px;
  }
  .rank-guide-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }
  .guide-dialog,
  .board-dialog {
    padding: 21px;
  }
  .board-row {
    gap: 10px;
  }
  .scene-error {
    top: 48%;
  }
}

@media (max-width: 760px) {
  .expedition-profile {
    left: 14px;
    right: 14px;
    width: auto;
    max-height: 30dvh;
  }
  .summit-world:has(
      .expedition-profile.is-open:not(.anchor-hidden):not(.is-dismissed)
    )
    .expedition-intro {
    opacity: 0;
  }
  .expedition-profile .profile-identity {
    display: grid;
    grid-template-columns: 58px 1fr;
    text-align: left;
    column-gap: 15px;
  }
  .expedition-profile .profile-identity .summit-avatar {
    grid-row: 1/3;
    --summit-avatar-size: 46px !important;
    margin: 0 0 4px 5px;
  }
  .expedition-profile .profile-identity h2 {
    margin: 2px 0 5px;
  }
  .expedition-profile .profile-rank {
    justify-content: flex-start;
  }
  .expedition-profile .profile-metrics {
    margin-bottom: 11px;
  }
}

.expedition-profile.is-dismissed {
  display: none !important;
}
.camp-button {
  margin-left: 4px;
}
.board-pages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  bottom: -28px;
  background: #f9faee;
  padding: 14px 0;
  border-top: 1px solid #25453722;
  font-size: 11px;
}
.board-pages:empty {
  display: none;
}
.board-pages button {
  background: none;
  border: 1px solid #25453733;
  border-radius: 7px;
  padding: 7px 13px;
}

/* Category atlas: an expandable collection, rather than a fixed row of peaks. */
.expedition-navigation {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}
.expedition-navigation .mountain-switch {
  position: static;
  transform: none;
  width: auto;
}
.atlas-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f9f5e9d9;
  border: 1px solid #fff9;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 5px 20px #1736410b;
  backdrop-filter: blur(16px);
}
.atlas-symbol {
  font-size: 23px;
  color: #7e916f;
}
#current-mountain {
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
  font-size: 21px;
  letter-spacing: 1px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.atlas-action {
  font-size: 10px;
  color: #607669;
  border-left: 1px solid #7d88663d;
  padding-left: 12px;
  white-space: nowrap;
}
.mountain-origin {
  display: inline-flex;
  align-items: center;
  border-block: 1px solid #7b8d7455;
  padding: 6px 0;
  margin-bottom: 18px;
  font:
    12px "KaiTi",
    "SimSun",
    serif;
  letter-spacing: 3px;
  color: #607a6e;
}
.expedition-intro h1 {
  white-space: normal;
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
}
.expedition-intro p {
  max-width: 232px;
}
.atlas-dialog {
  width: min(1120px, 94vw);
  max-height: 90dvh;
  padding: 30px 34px;
  overflow: auto;
  background: linear-gradient(130deg, #f7f5e9, #e7eee1);
}
.atlas-dialog header h2 {
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
  font-size: 29px;
}
.atlas-intro,
.atlas-note {
  font-size: 12px;
  line-height: 1.9;
  color: #647b6c;
}
.atlas-note {
  margin: 23px 0 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 1px;
}
.atlas-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-top: 24px;
}
.atlas-card {
  position: relative;
  text-align: left;
  border: 1px solid #8b9a762b;
  border-radius: 13px;
  background: #ffffff65;
  padding: 0 16px 16px;
  overflow: hidden;
  transition:
    transform 0.22s,
    box-shadow 0.22s,
    border-color 0.22s;
}
.atlas-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px #314d4520;
  border-color: #9baf91;
}
.atlas-card.is-active {
  border-color: #a58a52;
  background: #fff9e4;
  box-shadow: inset 0 0 0 1px #a58a5266;
}
.atlas-number {
  position: absolute;
  top: 13px;
  left: 15px;
  color: #8c9b87;
  font:
    11px Georgia,
    serif;
  letter-spacing: 2px;
}
.atlas-card svg {
  display: block;
  width: 100%;
  height: 139px;
}
.atlas-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font:
    21px "KaiTi",
    "STKaiti",
    "SimSun",
    serif;
}
.atlas-card-title > span {
  font:
    9px "Segoe UI",
    sans-serif;
  color: #6c826a;
  white-space: nowrap;
}
.atlas-card > small {
  display: block;
  color: #7a8f7b;
  font-size: 10px;
  margin-top: 8px;
}
body:has(#motion-toggle[aria-pressed="true"]) .atlas-card {
  transition: none;
}
@media (max-width: 1200px) {
  .expedition-navigation {
    gap: 7px;
  }
  .atlas-trigger {
    padding: 11px;
    gap: 7px;
  }
  .atlas-action {
    display: none;
  }
  .expedition-navigation .mountain-switch button {
    min-width: 94px;
    padding: 9px 13px;
  }
  .atlas-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .expedition-navigation {
    top: 76px;
    left: 14px;
    right: 14px;
    transform: none;
    justify-content: center;
    gap: 6px;
  }
  .expedition-navigation .mountain-switch {
    top: auto;
    left: auto;
    gap: 2px;
    padding: 3px;
    border-radius: 10px;
  }
  .expedition-navigation .mountain-switch button {
    min-width: 73px;
    padding: 7px 8px;
    font-size: 12px;
  }
  .expedition-navigation .mountain-switch button small {
    font-size: 7px;
    letter-spacing: 0;
    margin-top: 2px;
  }
  .atlas-trigger {
    padding: 10px;
    gap: 5px;
    min-width: 0;
  }
  .atlas-symbol {
    font-size: 17px;
  }
  #current-mountain {
    font-size: 17px;
    max-width: 106px;
  }
  .demo-banner {
    top: 140px;
  }
  .expedition-intro {
    top: 181px;
  }
  .mountain-origin {
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: 1.5px;
    padding: 4px 0;
  }
  .expedition-intro h1 {
    font-size: 23px;
    max-width: 210px;
  }
  .expedition-intro p {
    max-width: 205px;
  }
  .atlas-dialog {
    padding: 22px 16px;
    max-height: 89dvh;
  }
  .atlas-dialog header h2 {
    font-size: 24px;
  }
  .atlas-dialog header small {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .atlas-intro {
    font-size: 11px;
  }
  .atlas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 15px;
  }
  .atlas-card {
    padding: 0 10px 13px;
  }
  .atlas-card svg {
    height: 112px;
  }
  .atlas-card-title {
    font-size: 18px;
  }
  .atlas-card-title > span {
    font-size: 8px;
  }
  .atlas-card > small {
    font-size: 9px;
  }
  .atlas-number {
    top: 9px;
    left: 10px;
    font-size: 9px;
  }
}

/* Selected climber cards follow their projected head position. */
.expedition-profile {
  width: 310px;
  padding: 0;
  background: #fffdf5;
  border: 1px solid #769486;
  color: #18392f;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  box-shadow:
    0 14px 38px #123b3b38,
    0 2px 8px #123b3b20;
  backdrop-filter: none;
  z-index: 5;
}
.expedition-profile.is-anchored {
  right: auto;
  bottom: auto;
  max-height: none;
  overflow: visible;
  display: block;
}
.expedition-profile.anchor-hidden {
  visibility: hidden;
  pointer-events: none;
}
.expedition-profile.is-anchored::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fffdf5;
  border: solid #769486;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.expedition-profile[data-side="above"]::after {
  top: calc(100% - 6px);
  left: calc(var(--tip-x) - 6px);
}
.expedition-profile[data-side="below"]::after {
  bottom: calc(100% - 6px);
  left: calc(var(--tip-x) - 6px);
  transform: rotate(225deg);
}
.expedition-profile[data-side="right"]::after {
  right: calc(100% - 6px);
  top: calc(var(--tip-y) - 6px);
  transform: rotate(135deg);
}
.expedition-profile[data-side="left"]::after {
  left: calc(100% - 6px);
  top: calc(var(--tip-y) - 6px);
  transform: rotate(-45deg);
}
.profile-topline {
  padding: 8px 10px 6px 16px;
  min-height: 54px;
  color: #3d5b4e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 18px 18px 0 0;
  background: #f1f4e9;
  border-bottom: 1px solid #d8e1d6;
}
.profile-close,
dialog > header button {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 1px solid #80978b;
  background: #e0e9de;
  color: #18392f;
  font:
    700 28px/1 "Segoe UI",
    sans-serif;
  display: grid;
  place-items: center;
}
.profile-close:hover,
dialog > header button:hover {
  background: #234f43;
  color: #fff;
}
.profile-scroll {
  padding: 14px 16px 12px;
  max-height: calc(var(--card-max-height, 580px) - 56px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #829c89 #edf0e5;
  border-radius: 0 0 18px 18px;
}
.expedition-profile .profile-identity {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-align: left;
  margin: 2px 0 12px;
}
.expedition-profile .profile-identity .summit-avatar {
  --summit-avatar-size: 48px !important;
  margin: 0 0 0 4px;
  grid-row: auto;
}
.expedition-profile .profile-identity h2 {
  font-size: 20px;
  font-weight: 750;
  line-height: 1.35;
  margin: 0 0 5px;
}
.expedition-profile .profile-rank {
  justify-content: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: #45604e;
  gap: 4px;
  flex-wrap: wrap;
}
.profile-metrics {
  padding: 9px 0;
  margin: 0 0 8px;
  gap: 12px;
  border-color: #d6ded1;
}
.profile-metrics div + div {
  padding-left: 16px;
  border-color: #d6ded1;
}
.expedition-profile .profile-metrics strong {
  font-size: 28px;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.profile-metrics small,
.social-count,
.heatmap-title,
.next-rank,
.privacy-note,
.heatmap-caption {
  font-size: 13px;
  color: #415f50;
  font-weight: 500;
}
.profile-metrics small {
  margin-top: 4px;
}
.social-count {
  margin: 8px 0;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.profile-actions {
  margin-top: 10px;
}
.profile-actions button {
  font-size: 14px;
  font-weight: 700;
  min-height: 42px;
  padding: 9px 5px;
  border-color: #849c8c;
  background: #f0f4e8;
}
.profile-actions button:first-child {
  background: #245447;
  color: #fff;
}
.profile-actions button:hover {
  box-shadow: inset 0 0 0 2px #769c81;
}
.profile-details {
  margin-top: 12px;
  border-top: 1px solid #d6ded1;
}
.profile-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  min-height: 40px;
  color: #245447;
  list-style: none;
}
.profile-details summary::-webkit-details-marker {
  display: none;
}
.profile-details summary:focus-visible {
  outline: 3px solid #b78b3a;
  outline-offset: 2px;
}
.profile-details summary span {
  font-size: 22px;
}
.profile-details[open] summary span {
  transform: rotate(180deg);
}
.profile-details .next-rank {
  margin-top: 8px;
  gap: 5px;
  flex-wrap: wrap;
}
.next-rank b {
  color: #284d3c;
  font-weight: 750;
}
.rank-progress {
  height: 6px;
  margin: 9px 0 15px;
}
.heatmap-caption {
  font-size: 12px;
  text-align: left;
  line-height: 1.7;
}
.profile-placeholder {
  padding: 20px 16px;
}
.profile-placeholder p,
.inline-edit {
  font-size: 14px;
  color: #3c5e4c;
}
.gold-button {
  min-height: 44px;
  font-size: 14px;
  font-weight: 750;
}
#self-summary strong {
  font-size: 15px;
}
#self-summary small {
  font-size: 12px;
  color: #3c5e4c;
}
.guide-button {
  min-height: 38px;
  padding: 7px 12px;
  background: #f8faef;
  border: 1px solid #829a8b;
  border-radius: 9px;
  color: #23483d;
  font-size: 13px;
  font-weight: 700;
}
.back-to-study:hover {
  background: #ffe9b7;
  box-shadow: 0 5px 18px #17364140;
}
.text-button:hover {
  background: #e1ecdc;
  border-color: #315e4b;
}
.summit-person-label {
  font-size: 12px;
  font-weight: 700;
}
.atlas-action {
  font-size: 12px;
  font-weight: 700;
  color: #355542;
}
.expedition-header {
  z-index: 6;
}
@media (max-width: 760px) {
  .back-to-study {
    font-size: 14px;
    min-height: 42px;
    padding: 9px 12px;
    gap: 9px;
  }
  .text-button {
    font-size: 13px;
    padding: 9px 10px;
    min-height: 40px;
  }
  .expedition-intro {
    width: 250px;
  }
  .gold-button {
    font-size: 14px;
    padding: 10px 12px;
  }
  #self-summary strong {
    font-size: 14px;
    max-width: 135px;
  }
  #self-summary small {
    font-size: 11px;
  }
  .guide-button {
    font-size: 12px;
    min-height: 32px;
    bottom: 5px;
  }
  .summit-person-label {
    font-size: 12px;
  }
  .expedition-profile.is-open ~ .scene-tools {
    visibility: visible;
  }
}
/* The App supplies its own safe-area header and native study/back actions. */
.native-app .summit-brand,
.native-app .back-to-study {
  display: none;
}
.native-app .expedition-header {
  padding-top: 12px;
}
.native-app .expedition-navigation {
  width: 100%;
  justify-content: center;
}

/* Keep phone controls in one row so the mountain remains the main view. */
.mobile-summit-action {
  display: none;
}
@media (max-width: 760px) {
  .expedition-navigation {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr) minmax(0, 0.85fr) minmax(0, 1.05fr);
    top: 74px;
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    gap: 3px;
    padding: 4px;
    border: 1px solid #fff9;
    border-radius: 14px;
    background: #f6f6e9ed;
    box-shadow: 0 4px 18px #1736411a;
    backdrop-filter: blur(16px);
  }
  .native-app .expedition-navigation {
    top: 10px;
    width: auto;
  }
  .expedition-navigation .atlas-trigger,
  .expedition-navigation .mountain-switch,
  .mobile-summit-action {
    min-width: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }
  .expedition-navigation .atlas-trigger {
    justify-content: center;
    gap: 3px;
    padding: 0 3px;
    min-height: 44px;
    background: transparent;
  }
  .expedition-navigation .atlas-trigger::after {
    content: "⌄";
    font-size: 12px;
    color: #466653;
  }
  .expedition-navigation .atlas-symbol,
  .expedition-navigation .atlas-action,
  .expedition-navigation .mountain-switch small {
    display: none;
  }
  #current-mountain {
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
  }
  .expedition-navigation .mountain-switch {
    gap: 0;
    padding: 0;
    border-radius: 9px;
    background: #254b4810;
  }
  .expedition-navigation .mountain-switch button {
    min-width: 0;
    min-height: 44px;
    padding: 0 2px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }
  .mobile-summit-action {
    display: block;
    min-height: 44px;
    padding: 0 2px;
    font-size: 12px;
    font-weight: 750;
    color: #254a3f;
    border-radius: 9px;
    background: #dbe8dca6;
    white-space: nowrap;
  }
  .mobile-summit-action:hover {
    background: #cbdcc9;
  }
  .expedition-intro,
  .scene-tools,
  .scene-hint,
  .guide-button {
    display: none;
  }
  .my-expedition {
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .native-app .demo-banner,
  .native-app .summit-toast {
    top: 72px;
  }
  .scene-loading > span {
    font-size: 13px;
    color: #3c6267;
    text-align: center;
    padding: 0 16px;
  }
}
@media (max-width: 360px) {
  #current-mountain {
    font-size: 12px;
  }
  .expedition-navigation .mountain-switch button,
  .mobile-summit-action {
    font-size: 11px;
  }
}
