/* =========================================================
   流浪猫之地 · iPhone 14 first
   ========================================================= */

:root {
  --cream: #fff7ec;
  --paper: #fffdf8;
  --ink: #4b3b33;
  --ink-soft: #8b786c;
  --ink-faint: #b3a49a;
  --coral: #ff8e7f;
  --coral-deep: #ef6f5e;
  --coral-soft: #ffe1da;
  --butter: #ffd36e;
  --butter-soft: #fff1c9;
  --mint: #8fd8bf;
  --mint-soft: #dff5ec;
  --sky: #a9d4f5;
  --sky-soft: #e3f2fd;
  --lilac: #c9b8f0;
  --lilac-soft: #eee8fb;
  --pink: #ffc3d2;
  --line: rgba(75, 59, 51, 0.1);
  --line-strong: rgba(75, 59, 51, 0.18);
  --shadow: 0 12px 30px rgba(96, 68, 48, 0.12);
  --font: "PingFang SC", "Hiragino Sans GB", "SF Pro Rounded", -apple-system,
    BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: #f3e8d8;
  overflow: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

button:focus-visible,
input:focus-visible {
  outline: 2.5px solid var(--sky);
  outline-offset: 2px;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

/* ---------- 桌面背景 ---------- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 18%, #ffe4d2 0 16%, transparent 44%),
    radial-gradient(circle at 86% 78%, #dcf1e5 0 15%, transparent 42%),
    radial-gradient(circle at 76% 8%, #fff0c7 0 10%, transparent 34%),
    radial-gradient(circle at 24% 88%, #e5e0f7 0 12%, transparent 38%), #f3e8d8;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23c8b29c'%3E%3Cellipse cx='60' cy='68' rx='13' ry='11'/%3E%3Cellipse cx='44' cy='53' rx='6.5' ry='8'/%3E%3Cellipse cx='54' cy='44' rx='6.5' ry='8.5'/%3E%3Cellipse cx='67' cy='44' rx='6.5' ry='8.5'/%3E%3Cellipse cx='77' cy='53' rx='6.5' ry='8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 168px 168px;
}

.device-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.phone {
  position: relative;
  width: 390px;
  height: 844px;
  border-radius: 54px;
  background: var(--cream);
  overflow: hidden;
  box-shadow:
    0 0 0 9px #2f2724,
    0 0 0 10px #4a3b33,
    0 46px 90px rgba(79, 52, 35, 0.32);
  --top-pad: 58px;
  --bottom-pad: 34px;
}

.desktop-hint {
  margin: 2px 0 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #9b8b7c;
}

/* ---------- 状态栏 ---------- */
.status-bar {
  position: absolute;
  z-index: 90;
  top: 0;
  left: 0;
  right: 0;
  height: 47px;
  padding: 13px 27px 0 33px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 1px;
}

.notch {
  position: absolute;
  z-index: 95;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 121px;
  height: 34px;
  border-radius: 20px;
  background: #221c19;
}

.notch::after {
  content: "";
  position: absolute;
  right: 21px;
  top: 11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #37302d;
  box-shadow: inset 0 0 0 2px #241e1b;
}

.home-bar {
  position: absolute;
  z-index: 88;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: #3b302a;
  opacity: 0.3;
}

/* ---------- App 基础 ---------- */
.app {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--cream);
}

.view {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

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

.view.anim-in {
  animation: viewIn 0.32s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 通用按钮 ---------- */
.btn-primary {
  position: relative;
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffa597, #f97b69);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow:
    0 6px 0 #dc5a49,
    0 14px 26px rgba(239, 111, 94, 0.26);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary:active {
  transform: translateY(3px);
  box-shadow:
    0 3px 0 #dc5a49,
    0 8px 16px rgba(239, 111, 94, 0.22);
}

.btn-primary[disabled] {
  background: #e9dccd;
  color: #a79586;
  box-shadow: none;
  transform: none;
}

.btn-primary .arrow {
  display: inline-block;
  margin-left: 6px;
  font-size: 18px;
  transform: translateY(1px);
}

.btn-soft {
  width: 100%;
  min-height: 46px;
  border-radius: 15px;
  background: #fffdf8;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 0 rgba(75, 59, 51, 0.06);
  transition: transform 0.12s ease;
}

.btn-soft:active {
  transform: translateY(2px);
}

.btn-text {
  display: block;
  margin: 0 auto;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 4px;
  background: none;
}

.icon-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #fffdf8;
  border: 1.5px solid var(--line);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 3px 0 rgba(75, 59, 51, 0.05);
}

.icon-btn:active {
  transform: translateY(2px);
}

/* ---------- 欢迎 / 捏人 ---------- */
#view-welcome {
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 4%, #ffe6cd 0 22%, transparent 52%),
    radial-gradient(circle at 92% 42%, #e2f2e8 0 10%, transparent 32%),
    var(--cream);
}

.welcome {
  flex: 1;
  min-height: 100%;
  padding: calc(var(--top-pad) + 2px) 22px calc(16px + var(--bottom-pad));
  display: flex;
  flex-direction: column;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.brand-line .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 142, 127, 0.16);
}

.hero {
  position: relative;
  height: 218px;
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-blob {
  position: relative;
  width: 208px;
  height: 198px;
  border-radius: 48% 52% 55% 45% / 52% 45% 55% 48%;
  background: linear-gradient(165deg, #ffe0c5, #ffcfad);
  box-shadow:
    inset 0 -10px 0 rgba(255, 255, 255, 0.25),
    0 22px 36px rgba(214, 141, 94, 0.18);
  overflow: hidden;
  transform: rotate(-2deg);
}

.hero-blob::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: inherit;
  border: 1.5px dashed rgba(255, 255, 255, 0.75);
}

.hero-blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-tag {
  position: absolute;
  right: 6px;
  top: 26px;
  transform: rotate(7deg);
  background: #fffdf8;
  padding: 7px 11px;
  border-radius: 12px 12px 12px 3px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--ink-soft);
  box-shadow: 0 8px 18px rgba(120, 80, 50, 0.12);
  border: 1.5px solid rgba(75, 59, 51, 0.06);
}

.hero-tag b {
  color: var(--coral-deep);
}

.float-sticker {
  position: absolute;
  display: grid;
  place-items: center;
  color: var(--coral-deep);
  animation: floaty 4s ease-in-out infinite;
}

.float-sticker.s1 {
  left: 22px;
  top: 54px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fffdf8;
  color: #e7a03e;
  box-shadow: 0 8px 18px rgba(120, 80, 50, 0.12);
  transform: rotate(-12deg);
  animation-delay: -1.2s;
}

.float-sticker.s2 {
  left: 46px;
  bottom: 34px;
  color: #83cbb2;
  font-size: 22px;
  animation-delay: -2.4s;
}

.float-sticker.s3 {
  right: 36px;
  bottom: 22px;
  color: #f2a052;
  font-size: 19px;
  animation-delay: -0.6s;
}

@keyframes floaty {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}

.welcome-copy {
  margin-top: 16px;
}

.welcome-copy h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.welcome-copy h1 em {
  font-style: normal;
  color: var(--coral-deep);
  position: relative;
}

.welcome-copy h1 em::after {
  content: "";
  position: absolute;
  left: 2px;
  right: -3px;
  bottom: 3px;
  height: 9px;
  border-radius: 6px;
  background: #ffd8b0;
  z-index: -1;
  transform: rotate(-1.5deg);
}

.welcome-copy p {
  margin: 12px 0 0;
  max-width: 310px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.welcome-perks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 18px;
  padding: 11px 2px;
  border-top: 1px dashed var(--line-strong);
  border-bottom: 1px dashed var(--line-strong);
}

.welcome-perks span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink-soft);
}

.welcome-perks svg {
  color: var(--coral-deep);
}

.welcome-form {
  margin-top: 20px;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.name-field {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 56px;
  padding: 0 8px 0 14px;
  border-radius: 18px;
  background: #fffdf8;
  border: 1.5px solid rgba(75, 59, 51, 0.1);
  box-shadow: 0 5px 0 rgba(75, 59, 51, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.name-field:focus-within {
  border-color: rgba(255, 142, 127, 0.7);
  box-shadow: 0 5px 0 rgba(239, 111, 94, 0.12);
}

.name-field .emoji {
  font-size: 20px;
  filter: saturate(0.9);
}

.name-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.name-field input::placeholder {
  color: #c3b3a5;
  font-weight: 500;
}

.name-dice {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 11px;
  border-radius: 12px;
  background: var(--butter-soft);
  color: #a8761c;
  font-size: 11px;
  font-weight: 800;
}

.field-hint {
  min-height: 16px;
  margin: 6px 2px 0;
  font-size: 10.5px;
  color: #d26450;
  opacity: 0;
  transition: opacity 0.2s;
}

.field-hint.show {
  opacity: 1;
}

.welcome-actions {
  margin-top: auto;
  padding-top: 18px;
}

.welcome-actions .btn-text {
  margin-top: 8px;
}

.shake {
  animation: shake 0.36s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-3px);
  }
}

/* ---------- 捏人第二步 ---------- */
.wizard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}

.wizard-progress {
  display: flex;
  gap: 5px;
  flex: 1;
  justify-content: center;
}

.wizard-progress i {
  width: 22px;
  height: 5px;
  border-radius: 3px;
  background: #eadccb;
}

.wizard-progress i.done {
  background: var(--coral);
}

.wizard-progress i.now {
  background: var(--coral);
  width: 34px;
}

.wizard-count {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

.step2-title {
  margin: 4px 0 0;
  text-align: center;
}

.step2-title h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.step2-title p {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--ink-soft);
}

.avatar-stage {
  position: relative;
  height: 212px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.avatar-stage.welcome-stage {
  height: 206px;
}

.avatar-blob {
  position: relative;
  width: 196px;
  height: 188px;
  border-radius: 48% 52% 55% 45% / 52% 45% 55% 48%;
  background:
    radial-gradient(circle at 50% 24%, #fff8eb 0 24%, transparent 25%),
    linear-gradient(160deg, #fff1db, #ffe0c4);
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 -8px 0 rgba(255, 255, 255, 0.32),
    0 18px 32px rgba(214, 141, 94, 0.16);
}

.avatar-blob::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  border: 1.5px dashed rgba(217, 166, 118, 0.45);
}

.avatar-blob.small {
  width: 184px;
  height: 176px;
}

.avatar-live {
  position: relative;
  z-index: 1;
  width: 168px;
  height: 196px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.avatar-live.small {
  width: 152px;
  height: 178px;
}

.avatar-live svg {
  width: 100%;
  height: 100%;
  display: block;
}

.stage-badge {
  position: absolute;
  top: 18px;
  right: 24px;
  transform: rotate(8deg);
  background: #fffdf8;
  border-radius: 11px;
  padding: 5px 9px;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--ink-soft);
  box-shadow: 0 6px 14px rgba(120, 80, 50, 0.1);
}

.stage-badge i {
  font-style: normal;
  color: var(--coral-deep);
}

.stage-star {
  position: absolute;
  color: #eab24d;
  font-size: 18px;
  animation: floaty 4.5s ease-in-out infinite;
}

.stage-star.a {
  left: 30px;
  top: 52px;
}

.stage-star.b {
  right: 30px;
  bottom: 44px;
  font-size: 13px;
  color: #85cbb4;
  animation-delay: -2s;
}

.avatar-controls {
  margin-top: 2px;
}

.gender-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 15px;
  background: #f2e7d7;
  margin-bottom: 10px;
}

.gender-seg button {
  height: 34px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.gender-seg button.is-active {
  background: #fffdf8;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(96, 68, 48, 0.1);
}

.editor-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 9px;
  scrollbar-width: none;
}

.editor-tabs::-webkit-scrollbar {
  display: none;
}

.editor-tabs button {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fffdf8;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all 0.18s;
}

.editor-tabs button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff7ec;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.option-chip {
  height: 44px;
  border-radius: 13px;
  border: 1.5px solid rgba(75, 59, 51, 0.07);
  background: #fffdf8;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all 0.16s;
}

.option-chip .swatch {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid rgba(75, 59, 51, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.option-chip.is-active {
  border-color: var(--coral);
  background: #fff2ed;
  color: var(--ink);
  box-shadow: 0 3px 0 rgba(239, 111, 94, 0.14);
}

.option-chip.is-active .swatch {
  border-color: #fff;
  box-shadow: 0 0 0 1.5px var(--coral);
}

.welcome-actions.sticky {
  margin-top: 12px;
  padding-top: 10px;
}

.finish-note {
  margin: 9px 0 0;
  text-align: center;
  font-size: 9.5px;
  color: var(--ink-faint);
}

/* ---------- 地图 ---------- */
#view-map {
  background: #efe7d8;
}

.map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-head {
  position: absolute;
  z-index: 8;
  top: var(--top-pad);
  left: 16px;
  right: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.loc-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 6px 10px 6px 7px;
  border-radius: 19px;
  background: rgba(255, 252, 246, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(75, 59, 51, 0.07);
  box-shadow: 0 10px 24px rgba(96, 68, 48, 0.14);
  text-align: left;
}

.loc-pin {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--coral-soft);
  color: var(--coral-deep);
  display: grid;
  place-items: center;
}

.loc-text b {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.loc-text small {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #66c3a0;
  box-shadow: 0 0 0 3px rgba(102, 195, 160, 0.16);
}

.loc-pill .chev {
  color: var(--ink-faint);
  margin-left: 2px;
}

.map-avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fffdf8;
  border: 2px solid #fffdf8;
  box-shadow: 0 10px 22px rgba(96, 68, 48, 0.18);
  overflow: hidden;
  position: relative;
}

.map-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(75, 59, 51, 0.06);
}

.mini-avatar {
  display: block;
  width: 100%;
  height: 100%;
  background: #ffefd9;
}

.mini-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-ring {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px dashed rgba(239, 111, 94, 0.62);
  background: radial-gradient(circle, rgba(255, 252, 246, 0.14) 0 58%, rgba(255, 252, 246, 0.36) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    0 0 0 10px rgba(255, 252, 246, 0.1);
  pointer-events: none;
}

.map-ring::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.map-badge {
  position: absolute;
  z-index: 7;
  top: calc(var(--top-pad) + 56px);
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-soft);
}

.ring-label {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.92);
  border: 1px dashed rgba(239, 111, 94, 0.5);
  color: var(--coral-deep);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.map-marker {
  position: absolute;
  z-index: 6;
  width: 56px;
  height: 68px;
  transform: translate(-50%, -100%);
  transition: transform 0.16s ease;
  filter: drop-shadow(0 7px 10px rgba(80, 55, 40, 0.2));
}

.map-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #fffdf8;
  transform: translateX(-50%) rotate(45deg);
  z-index: 0;
}

.map-marker:active {
  transform: translate(-50%, -100%) scale(0.93);
}

.marker-pin {
  position: relative;
  z-index: 1;
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid #fffdf8;
  background: #ffefd9;
  overflow: hidden;
}

.marker-pin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marker-badge {
  position: absolute;
  z-index: 2;
  top: -3px;
  right: -5px;
  display: flex;
  align-items: center;
  gap: 1px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fffdf8;
  color: #c88b1c;
  font-size: 9px;
  font-weight: 900;
  box-shadow: 0 3px 8px rgba(96, 68, 48, 0.16);
}

.marker-badge.mine {
  color: var(--coral-deep);
}

.me-dot {
  display: grid;
  place-items: center;
  color: #fffdf8;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  position: absolute;
  z-index: 7;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--coral);
  border: 4px solid #fffdf8;
  box-shadow: 0 3px 10px rgba(239, 111, 94, 0.35);
}

.me-label {
  display: none;
}

.me-dot::before {
  content: "";
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 142, 127, 0.5);
  animation: radar 2.6s ease-out infinite;
}

@keyframes radar {
  0% {
    transform: scale(0.55);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.me-label {
  position: absolute;
  z-index: 7;
  transform: translate(-50%, 0);
  padding: 3px 8px;
  border-radius: 999px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 8.5px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(96, 68, 48, 0.14);
}

.map-empty {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: 270px;
  text-align: center;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 252, 246, 0.94);
  box-shadow: var(--shadow);
  border: 1.5px solid var(--line);
}

.map-empty img {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  margin-bottom: 8px;
}

.map-empty h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
}

.map-empty p {
  margin: 5px 0 12px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.map-float {
  position: absolute;
  z-index: 9;
  bottom: calc(112px + var(--bottom-pad));
  display: flex;
  align-items: center;
  gap: 7px;
}

.map-count {
  left: 18px;
  height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(75, 59, 51, 0.07);
  box-shadow: 0 8px 20px rgba(96, 68, 48, 0.12);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink);
}

.map-count b {
  color: var(--coral-deep);
}

.recenter-btn {
  position: absolute;
  z-index: 9;
  right: 18px;
  bottom: calc(112px + var(--bottom-pad));
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(75, 59, 51, 0.07);
  box-shadow: 0 8px 20px rgba(96, 68, 48, 0.14);
  display: grid;
  place-items: center;
  color: var(--ink);
}

.recenter-btn.spin svg {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- 底部导航 ---------- */
.dock {
  position: absolute;
  z-index: 40;
  left: 14px;
  right: 14px;
  bottom: calc(12px + var(--bottom-pad));
  height: 78px;
  border-radius: 28px;
  background: rgba(255, 252, 246, 0.975);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1.5px solid rgba(75, 59, 51, 0.08);
  box-shadow:
    0 16px 36px rgba(96, 68, 48, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 12px 7px;
}

.dock-btn {
  position: relative;
  flex: 1;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 700;
  transition: color 0.18s;
}

.dock-btn svg {
  width: 23px;
  height: 23px;
}

.dock-btn.active {
  color: var(--coral-deep);
}

.dock-btn.active::before {
  content: "";
  position: absolute;
  top: 2px;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--coral);
}

.dock-fab {
  flex: 0 0 88px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  transform: translateY(-13px);
}

.fab-circle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffa79a, #f5715f);
  color: #fff;
  display: grid;
  place-items: center;
  border: 3px solid #fff7ec;
  box-shadow:
    0 6px 0 #d95545,
    0 14px 26px rgba(239, 111, 94, 0.34);
  transition: transform 0.14s, box-shadow 0.14s;
}

.fab-circle svg {
  width: 29px;
  height: 29px;
}

.dock-fab:active .fab-circle {
  transform: translateY(3px);
  box-shadow:
    0 3px 0 #d95545,
    0 8px 16px rgba(239, 111, 94, 0.28);
}

.fab-label {
  font-size: 9.5px;
  font-weight: 900;
  color: var(--coral-deep);
  letter-spacing: 0.01em;
}

.dock-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 24px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #fffdf8;
}

/* ---------- 二级页 ---------- */
.sub-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 88% 0%, #ffe9d4 0 12%, transparent 34%),
    var(--cream);
}

.sub-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(var(--top-pad) - 6px) 18px 10px;
}

.sub-title {
  flex: 1;
  min-width: 0;
}

.sub-title h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.sub-title p {
  margin: 2px 0 0;
  font-size: 10px;
  color: var(--ink-soft);
}

.head-action {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff7ec;
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 3px 0 rgba(75, 59, 51, 0.18);
}

.head-action:active {
  transform: translateY(2px);
  box-shadow: none;
}

.sub-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 18px calc(126px + var(--bottom-pad));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sub-body::-webkit-scrollbar {
  display: none;
}

/* ---------- 背包 ---------- */
.collection-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 17px 18px 16px;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.55) 0 18%, transparent 19%),
    linear-gradient(135deg, #fff0d9, #ffe0cd);
  border: 1.5px solid rgba(239, 111, 94, 0.12);
  box-shadow: 0 8px 20px rgba(214, 141, 94, 0.1);
}

.collection-card::after {
  content: "🐾";
  position: absolute;
  right: 10px;
  bottom: -12px;
  font-size: 72px;
  opacity: 0.1;
  transform: rotate(-15deg);
}

.collection-card .eyebrow {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #b57c4c;
  text-transform: uppercase;
}

.collection-card h2 {
  margin: 5px 0 0;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.collection-card h2 b {
  color: var(--coral-deep);
  font-size: 26px;
}

.collection-stats {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.stat-pill {
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 700;
  color: #7f6451;
}

.stat-pill b {
  color: var(--ink);
  font-size: 10.5px;
}

.segmented {
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 15px;
  background: #f1e7d8;
  margin: 14px 0;
}

.segmented button {
  flex: 1;
  height: 34px;
  border-radius: 11px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.segmented button .n {
  font-size: 9px;
  opacity: 0.65;
}

.segmented button.is-active {
  background: #fffdf8;
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(96, 68, 48, 0.08);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cat-tile {
  position: relative;
  text-align: left;
  background: #fffdf8;
  border-radius: 20px;
  padding: 7px 7px 11px;
  border: 1.5px solid rgba(75, 59, 51, 0.06);
  box-shadow: 0 7px 18px rgba(96, 68, 48, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cat-tile:active {
  transform: translateY(2px) scale(0.99);
  box-shadow: 0 3px 10px rgba(96, 68, 48, 0.08);
}

.tile-photo {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: 15px;
  overflow: hidden;
  background: #f5ebdd;
}

.tile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-no {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(255, 253, 248, 0.9);
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.tile-own {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 7.5px;
  font-weight: 800;
}

.tile-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 42%, rgba(255, 255, 255, 0.28) 48%, transparent 55%);
  pointer-events: none;
}

.tile-name {
  margin: 8px 2px 4px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 0 2px;
}

.tile-lights {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 9.5px;
  font-weight: 800;
  color: #b98622;
}

.empty-state {
  padding: 26px 8px 10px;
  text-align: center;
}

.empty-state img {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  transform: rotate(-3deg);
  box-shadow: 0 16px 30px rgba(96, 68, 48, 0.14);
  border: 4px solid #fffdf8;
}

.empty-state h3 {
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 900;
}

.empty-state p {
  margin: 6px auto 14px;
  max-width: 230px;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.empty-state .btn-soft {
  max-width: 210px;
  margin: 0 auto;
}

/* ---------- 我的形象 ---------- */
.profile-hero {
  position: relative;
  border-radius: 26px;
  padding: 8px 16px 16px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.65) 0 12%, transparent 13%),
    radial-gradient(circle at 82% 30%, rgba(255, 255, 255, 0.5) 0 8%, transparent 9%),
    linear-gradient(160deg, #fff1dc, #ffe4ca);
  overflow: hidden;
  border: 1.5px solid rgba(239, 111, 94, 0.1);
}

.profile-hero::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  border: 1.5px dashed rgba(217, 166, 118, 0.35);
  pointer-events: none;
}

.hero-dice {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--ink-soft);
  box-shadow: 0 5px 12px rgba(120, 80, 50, 0.1);
}

.profile-avatar {
  position: relative;
  height: 208px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.profile-avatar .avatar-live {
  width: 178px;
  height: 204px;
}

.profile-name-tag {
  position: relative;
  z-index: 1;
  margin: 2px auto 0;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: #fffdf8;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 5px 12px rgba(120, 80, 50, 0.1);
}

.profile-name-tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.profile-stat {
  padding: 10px 8px;
  border-radius: 16px;
  background: #fffdf8;
  border: 1.5px solid var(--line);
  text-align: center;
}

.profile-stat b {
  display: block;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.profile-stat span {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  color: var(--ink-soft);
}

.panel {
  margin-top: 13px;
  padding: 14px;
  border-radius: 21px;
  background: #fffdf8;
  border: 1.5px solid var(--line);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 9px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

.panel-title .tip {
  font-size: 9px;
  font-weight: 500;
  color: var(--ink-faint);
}

.text-field {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fffaf1;
  font-size: 16px;
  font-weight: 700;
  outline: none;
}

.text-field:focus {
  border-color: rgba(255, 142, 127, 0.65);
}


.danger-link {
  display: block;
  margin: 18px auto 0;
  padding: 6px 10px;
  font-size: 9.5px;
  color: #b9a596;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
}

/* ---------- 打卡 ---------- */
#view-capture {
  background:
    radial-gradient(circle at 90% 0%, #ffe6cf 0 14%, transparent 38%),
    var(--cream);
}

.capture-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 18px calc(92px + var(--bottom-pad));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.capture-body::-webkit-scrollbar {
  display: none;
}

.capture-intro {
  margin: 2px 0 12px;
  padding: 0 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  color: var(--ink-soft);
}

.capture-intro .paw {
  color: var(--coral);
}

.capture-card {
  margin-bottom: 11px;
  padding: 14px;
  border-radius: 21px;
  background: #fffdf8;
  border: 1.5px solid var(--line);
  box-shadow: 0 4px 14px rgba(96, 68, 48, 0.04);
}

.capture-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.capture-card-head h2 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 6px;
}

.capture-card-head .must {
  font-size: 8.5px;
  font-weight: 800;
  color: var(--coral-deep);
  background: var(--coral-soft);
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.02em;
}

.capture-card-head .counter {
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-soft);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.photo-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #f4eadc;
}

.photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-cell .cover-tag {
  position: absolute;
  left: 5px;
  bottom: 5px;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(59, 44, 36, 0.62);
  color: #fff;
  font-size: 7.5px;
  font-weight: 700;
}

.photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(59, 44, 36, 0.62);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
}

.photo-add {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 2px dashed #e4d2ba;
  background: #fff8ec;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 700;
}

.photo-add .plus {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--coral-soft);
  color: var(--coral-deep);
  display: grid;
  place-items: center;
}

.photo-hint {
  margin: 9px 1px 0;
  font-size: 9.5px;
  line-height: 1.6;
  color: var(--ink-faint);
}

.loc-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 15px;
  background: #fff8ed;
  border: 1.5px solid rgba(239, 111, 94, 0.1);
}

.loc-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--coral-soft);
  color: var(--coral-deep);
  display: grid;
  place-items: center;
}

.loc-main {
  flex: 1;
  min-width: 0;
}

.loc-main b {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
}

.loc-main span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loc-retry {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 9px;
  border-radius: 9px;
  background: #fffdf8;
  border: 1.5px solid var(--line);
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-soft);
}

.capture-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.trait-opt {
  height: 44px;
  border-radius: 13px;
  border: 1.5px solid var(--line);
  background: #fffaf1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all 0.16s;
}

.trait-opt .ico {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
}

.trait-opt.is-active {
  border-color: var(--coral);
  background: #fff1ec;
  color: var(--ink);
  box-shadow: 0 3px 0 rgba(239, 111, 94, 0.12);
}

.capture-foot {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 18px calc(13px + var(--bottom-pad));
  background: linear-gradient(180deg, rgba(255, 247, 236, 0), rgba(255, 247, 236, 0.96) 32%);
}

.capture-foot .btn-primary {
  min-height: 52px;
}

.capture-foot small {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 9px;
  color: var(--ink-faint);
}

.uploading {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(255, 247, 236, 0.75);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
}

.uploading .spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(239, 111, 94, 0.18);
  border-top-color: var(--coral);
  animation: spin 0.8s linear infinite;
}

/* ---------- 卡片弹层 ---------- */
#sheet-root {
  position: absolute;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

#sheet-root.is-open {
  pointer-events: auto;
}

.sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(53, 38, 30, 0.38);
  opacity: 0;
  transition: opacity 0.28s ease;
}

#sheet-root.is-open .sheet-overlay {
  opacity: 1;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 93%;
  border-radius: 30px 30px 0 0;
  background: var(--cream);
  box-shadow: 0 -20px 50px rgba(60, 40, 30, 0.24);
  display: flex;
  flex-direction: column;
  transform: translateY(102%);
  transition: transform 0.42s cubic-bezier(0.2, 0.9, 0.25, 1);
  padding-bottom: var(--bottom-pad);
}

#sheet-root.is-open .sheet {
  transform: translateY(0);
}

.sheet-grab {
  flex: 0 0 auto;
  padding: 9px 0 3px;
}

.sheet-grab i {
  display: block;
  width: 42px;
  height: 5px;
  margin: 0 auto;
  border-radius: 3px;
  background: rgba(75, 59, 51, 0.16);
}

.sheet-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 18px 8px;
}

.sheet-top span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

.sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fffdf8;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
}

.sheet-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 18px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sheet-scroll::-webkit-scrollbar {
  display: none;
}

.cat-card {
  position: relative;
  border-radius: 27px;
  padding: 10px 10px 16px;
  background: #fffdf8;
  border: 1.5px solid rgba(75, 59, 51, 0.06);
  box-shadow: 0 18px 38px rgba(90, 60, 40, 0.16);
}

.cat-card.reveal {
  animation: cardReveal 0.85s cubic-bezier(0.15, 0.9, 0.25, 1.1) both;
  transform-origin: 50% 40%;
}

@keyframes cardReveal {
  0% {
    opacity: 0;
    transform: perspective(900px) rotateY(65deg) translateY(20px) scale(0.86);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: perspective(900px) rotateY(0) translateY(0) scale(1);
  }
}

.washi {
  position: absolute;
  z-index: 3;
  top: -10px;
  left: 50%;
  width: 94px;
  height: 23px;
  transform: translateX(-50%) rotate(-2.5deg);
  border-radius: 3px;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 211, 110, 0.82) 0 6px,
    rgba(255, 235, 181, 0.82) 6px 12px
  );
  box-shadow: 0 3px 8px rgba(120, 80, 50, 0.1);
}

.card-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: #f5ebdd;
}

.photo-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.photo-track::-webkit-scrollbar {
  display: none;
}

.photo-track img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: center;
}

.card-no {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.92);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.card-lights {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #c88b1c;
  font-size: 9.5px;
  font-weight: 900;
}

.card-photo-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(59, 44, 36, 0.55);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.card-info {
  padding: 12px 6px 0;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title-row h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 7px 0 0;
  font-size: 10.5px;
  color: var(--ink-soft);
}

.card-divider {
  margin: 12px 0 10px;
  border-top: 1.5px dashed var(--line-strong);
}

.card-by {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--ink-soft);
}

.card-by b {
  color: var(--ink);
}

.card-by .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-faint);
}

.trait-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
}

.trait-chip svg {
  width: 11px;
  height: 11px;
}

.trait-gentle {
  background: var(--mint-soft);
  color: #2e7d63;
}

.trait-scratch {
  background: var(--butter-soft);
  color: #9a6a15;
}

.trait-bite {
  background: var(--coral-soft);
  color: #c04f40;
}

.trait-unknown {
  background: var(--lilac-soft);
  color: #6f5aa8;
}

/* ---------- 点亮 ---------- */
.light-panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: 23px;
  background: #fffdf8;
  border: 1.5px solid var(--line);
  box-shadow: 0 8px 20px rgba(96, 68, 48, 0.05);
}

.light-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.light-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--butter-soft);
  color: #c58b12;
  display: grid;
  place-items: center;
}

.light-head h3 {
  margin: 2px 0 0;
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.light-head p {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.dist-wrap {
  margin-top: 14px;
}

.dist-bar {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: #f2e8d9;
  overflow: hidden;
}

.dist-bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #ffd36e, #ff8e7f);
  transition: width 0.5s ease;
}

.dist-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 8px;
  color: var(--ink-faint);
}

.dist-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  font-size: 10.5px;
  font-weight: 700;
}

.dist-note.ok {
  color: #2e8a6c;
}

.dist-note.far {
  color: #d3644f;
}

.dist-note.muted {
  color: var(--ink-faint);
}

.dist-note .demo-tag {
  padding: 1px 5px;
  border-radius: 4px;
  background: #f2e8d9;
  color: #a08b79;
  font-size: 7.5px;
  font-weight: 700;
}

.btn-light {
  width: 100%;
  min-height: 52px;
  margin-top: 11px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffd97f, #ffc44f);
  color: #6b4a12;
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 5px 0 #e0a62e;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-light:not([disabled]) {
  animation: lightPulse 2.4s ease-in-out infinite;
}

@keyframes lightPulse {
  0%,
  100% {
    box-shadow: 0 5px 0 #e0a62e, 0 0 0 0 rgba(255, 196, 79, 0.35);
  }
  50% {
    box-shadow: 0 5px 0 #e0a62e, 0 0 0 8px rgba(255, 196, 79, 0);
  }
}

.btn-light:active:not([disabled]) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #e0a62e;
}

.btn-light[disabled] {
  background: #efe6d9;
  color: #a08f80;
  box-shadow: none;
  animation: none;
}

.light-list {
  margin-top: 18px;
}

.light-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2px;
}

.light-list-head strong {
  font-size: 12.5px;
  font-weight: 900;
}

.light-list-head span {
  font-size: 9px;
  color: var(--ink-faint);
}

.light-record {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.light-record:last-child {
  border-bottom: 0;
}

.record-avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffe3d6;
  color: var(--coral-deep);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}

.record-main {
  min-width: 0;
  flex: 1;
}

.record-main b {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
}

.record-main span {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.record-time {
  flex: 0 0 auto;
  font-size: 8.5px;
  color: var(--ink-faint);
  text-align: right;
  line-height: 1.5;
}

.empty-lights {
  padding: 14px 4px 4px;
  font-size: 10px;
  color: var(--ink-faint);
  line-height: 1.7;
  text-align: center;
}

/* ---------- 积分 / 等级 ---------- */
.level-medal {
  --lv-color: #8fd8bf;
  --lv-deep: #5ebe9e;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(160deg, var(--lv-color), var(--lv-deep));
  color: #fffdf8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  box-shadow:
    0 4px 10px rgba(96, 68, 48, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.level-medal.big {
  width: 68px;
  height: 68px;
  border-radius: 23px;
  font-size: 17px;
}

.level-medal.small {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 8.5px;
}

.map-points {
  position: absolute;
  z-index: 9;
  top: calc(var(--top-pad) + 58px);
  right: 16px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(75, 59, 51, 0.07);
  box-shadow: 0 8px 18px rgba(96, 68, 48, 0.13);
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.map-points .mp-star {
  display: flex;
  color: #e0a62e;
}

.map-points b {
  font-size: 11.5px;
}

.mp-dot {
  position: absolute;
  top: -2px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  border: 2px solid #fffdf8;
  box-shadow: 0 2px 5px rgba(239, 111, 94, 0.3);
}

.points-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding: 10px 11px;
  border-radius: 19px;
  background: #fffdf8;
  border: 1.5px solid var(--line);
  box-shadow: 0 6px 16px rgba(96, 68, 48, 0.06);
}

.points-banner-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
}

.pb-text {
  flex: 1;
  min-width: 0;
}

.pb-text b {
  display: block;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.pb-text small {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pb-arrow {
  display: flex;
  color: var(--ink-faint);
}

.pb-checkin {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 9px;
  border-radius: 10px;
  background: var(--butter-soft);
  color: #9a6a15;
  font-size: 9px;
  font-weight: 900;
}

.pb-checkin.done {
  background: #f1e8da;
  color: #a89786;
}

.hero-points {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  height: 32px;
  padding: 0 10px 0 4px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(120, 80, 50, 0.1);
}

.hero-points .level-medal {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 7.5px;
}

.hero-points b {
  color: var(--ink);
  font-size: 11px;
}

.points-sheet .sheet-scroll {
  padding-bottom: 26px;
}

.points-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.6) 0 16%, transparent 17%),
    linear-gradient(145deg, #fff1d9, #ffe2d4);
  border: 1.5px solid rgba(96, 68, 48, 0.06);
}

.points-hero::after {
  content: "🐾";
  position: absolute;
  right: -6px;
  bottom: -18px;
  font-size: 76px;
  opacity: 0.08;
  transform: rotate(-16deg);
}

.points-hero-main {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.points-kicker {
  display: block;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #b07c4a;
}

.points-total {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 1px;
}

.points-total strong {
  font-size: 35px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.points-total small {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-soft);
}

.level-progress {
  height: 7px;
  margin-top: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.68);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(96, 68, 48, 0.06);
}

.level-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lv-color), var(--lv-deep));
  transition: width 0.45s ease;
}

.points-hero p {
  margin: 6px 0 0;
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.checkin-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 13px;
  border-radius: 20px;
  background: #fffdf8;
  border: 1.5px solid var(--line);
}

.checkin-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--butter-soft);
  color: #c58b12;
  display: grid;
  place-items: center;
}

.checkin-copy {
  flex: 1;
  min-width: 0;
}

.checkin-copy b {
  display: block;
  font-size: 12.5px;
  font-weight: 900;
}

.checkin-copy p {
  margin: 2px 0 0;
  font-size: 9px;
  color: var(--ink-soft);
}

.btn-checkin {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 12px;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffd97f, #ffc44f);
  color: #6b4a12;
  font-size: 10.5px;
  font-weight: 900;
  box-shadow: 0 3px 0 #e0a62e;
}

.btn-checkin.done,
.btn-checkin[disabled] {
  background: #f0e7d9;
  color: #a08f80;
  box-shadow: none;
}

.btn-checkin:active:not([disabled]) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #e0a62e;
}

.points-how {
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 20px;
  background: #fffdf8;
  border: 1.5px solid var(--line);
}

.points-how h3 {
  margin: 0 0 3px;
  font-size: 12px;
  font-weight: 900;
}

.how-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 10.5px;
  color: var(--ink-soft);
}

.how-row:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.how-row b {
  margin-left: auto;
  font-size: 12px;
  font-weight: 900;
  color: var(--coral-deep);
}

.how-icon {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}

.how-icon.mint {
  background: var(--mint-soft);
  color: #2e7d63;
}

.how-icon.lilac {
  background: var(--lilac-soft);
  color: #6f5aa8;
}

.how-icon.butter {
  background: var(--butter-soft);
  color: #a8761c;
}

.points-history {
  margin-top: 16px;
}

.points-history-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2px;
}

.points-history-head h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
}

.points-history-head span {
  font-size: 8.5px;
  color: var(--ink-faint);
}

.point-entry {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.point-entry:last-child {
  border-bottom: 0;
}

.pe-icon {
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}

.pe-icon.discover {
  background: var(--mint-soft);
  color: #2e7d63;
}

.pe-icon.light {
  background: var(--lilac-soft);
  color: #6f5aa8;
}

.pe-icon.checkin {
  background: var(--butter-soft);
  color: #a8761c;
}

.pe-icon.bonus {
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.pe-main {
  flex: 1;
  min-width: 0;
}

.pe-main b {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pe-main span {
  display: block;
  margin-top: 1px;
  font-size: 8.5px;
  color: var(--ink-soft);
}

.pe-amount {
  margin-left: auto;
  font-size: 12px;
  font-weight: 900;
  color: var(--coral-deep);
}

.points-empty {
  padding: 14px 4px 2px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--ink-faint);
  text-align: center;
}

.points-fly {
  position: absolute;
  z-index: 150;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(59, 44, 36, 0.94);
  color: #fff7ec;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(60, 40, 30, 0.22);
  pointer-events: none;
  animation: pointsFly 1.2s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

@keyframes pointsFly {
  0% {
    opacity: 0;
    transform: translate(-50%, -20%) scale(0.7);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -55%) scale(1.06);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -190%) scale(0.92);
  }
}

/* ---------- Toast / 彩纸 ---------- */
.toast-root {
  position: absolute;
  z-index: 140;
  left: 0;
  right: 0;
  bottom: calc(126px + var(--bottom-pad));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}

.toast {
  max-width: 310px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(59, 44, 36, 0.94);
  color: #fff7ec;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 12px 26px rgba(60, 40, 30, 0.24);
  animation: toastIn 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.toast.out {
  animation: toastOut 0.3s ease both;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

.confetti-root {
  position: absolute;
  inset: 0;
  z-index: 130;
  pointer-events: none;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFly 1.25s cubic-bezier(0.15, 0.75, 0.35, 1) forwards;
}

.confetti.paw {
  background: none !important;
  color: var(--coral);
  display: grid;
  place-items: center;
}

.confetti.paw svg {
  width: 16px;
  height: 16px;
}

@keyframes confettiFly {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4) rotate(0deg);
  }
  12% {
    opacity: 1;
    transform: translate(calc(var(--dx) * 0.2), -28px) scale(1) rotate(40deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.7) rotate(var(--rot));
  }
}

/* ---------- 图片查看 ---------- */
.photo-viewer {
  position: absolute;
  inset: 0;
  z-index: 160;
  background: rgba(40, 30, 24, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  animation: fadeIn 0.2s ease;
}

.photo-viewer img {
  max-width: 100%;
  max-height: 82%;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.photo-viewer button {
  position: absolute;
  top: calc(var(--top-pad) + 2px);
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

/* ---------- 窄屏 / 真机 ---------- */
@media (max-width: 500px) {
  body {
    overflow: hidden;
  }

  .page-bg,
  .desktop-hint {
    display: none;
  }

  .device-shell {
    padding: 0;
    min-height: 100dvh;
    height: 100dvh;
  }

  .phone {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    --top-pad: calc(14px + max(env(safe-area-inset-top, 0px), 18px));
    --bottom-pad: max(env(safe-area-inset-bottom, 0px), 12px);
  }

  .status-bar,
  .notch,
  .home-bar {
    display: none;
  }
}

html.force-chrome .status-bar {
  display: flex;
}

html.force-chrome .notch,
html.force-chrome .home-bar {
  display: block;
}

html.force-chrome .phone {
  --top-pad: 58px;
  --bottom-pad: 28px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 矮屏桌面：整体缩放，避免手机外框上下被裁切 */
@media (min-width: 501px) and (max-height: 960px) {
  .device-shell {
    padding: 10px 0;
  }

  .phone {
    transform: scale(0.88);
    margin: -50px 0;
  }

  .desktop-hint {
    display: none;
  }
}
