:root {
  --bg: #f6fbfa;
  --paper: rgba(255, 255, 255, 0.82);
  --ink: #102027;
  --muted: #7a8790;
  --line: rgba(31, 52, 62, 0.1);
  --teal: #20a89a;
  --blue: #3388ff;
  --violet: #6548dd;
  --shadow: 0 22px 70px rgba(26, 54, 70, 0.14);
  --radius: 26px;
  --font: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(32, 168, 154, 0.22), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(101, 72, 221, 0.18), transparent 26%),
    linear-gradient(180deg, #f7fffc, #eef6f8);
  letter-spacing: 0;
}

button,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

#app {
  width: min(100%, 480px);
  min-height: 100svh;
  margin: 0 auto;
  overflow-x: hidden;
}

.screen {
  position: relative;
  min-height: 100svh;
  padding: 18px;
}

.home-screen {
  padding: 16px 16px 18px;
}

.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(20, 184, 166, 0.2), transparent 24%),
    radial-gradient(circle at 90% 72%, rgba(14, 165, 233, 0.18), transparent 26%);
  filter: blur(2px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 34px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.46) 1px, transparent 1px),
    linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(233, 249, 250, 0.9) 45%, rgba(229, 241, 255, 0.84));
  background-size: 38px 38px, 38px 38px, auto;
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -70px -120px -70px;
  height: 260px;
  background: radial-gradient(ellipse at center, rgba(32, 168, 154, 0.28), transparent 64%);
}

.hero-nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  color: rgba(16, 32, 39, 0.6);
  font-size: 12px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  height: 302px;
}

.skyline {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 24px;
  height: 210px;
}

.skyline i {
  position: absolute;
  bottom: 0;
  display: block;
  width: 44px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #38bdf8, #0f766e);
  box-shadow: inset 0 22px 0 rgba(255, 255, 255, 0.26);
}

.skyline i:nth-child(1) { left: 0; height: 126px; }
.skyline i:nth-child(2) { left: 52px; height: 170px; clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); }
.skyline i:nth-child(3) { left: 112px; height: 142px; }
.skyline i:nth-child(4) { left: 180px; height: 116px; background: linear-gradient(180deg, #93c5fd, #2563eb); }
.skyline i:nth-child(5) { left: 238px; height: 152px; }

.tower {
  position: absolute;
  left: 126px;
  bottom: 0;
  width: 88px;
  height: 222px;
  background:
    radial-gradient(circle at 50% 34%, #2563eb 0 24px, transparent 25px),
    radial-gradient(circle at 50% 55%, #38bdf8 0 34px, transparent 35px),
    linear-gradient(90deg, transparent 44%, #0f766e 45% 55%, transparent 56%);
}

.tower::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 0;
  width: 8px;
  height: 78px;
  background: #0f766e;
}

.gate {
  position: absolute;
  left: 26px;
  bottom: 0;
  width: 170px;
  height: 76px;
  border-radius: 38px 38px 0 0;
  background:
    linear-gradient(180deg, #f59e0b 0 18px, #ef4444 19px 34px, #f8fafc 35px);
  box-shadow: 0 -16px 0 #d97706;
}

.panda {
  position: absolute;
  left: 142px;
  bottom: -10px;
  width: 56px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    -14px -12px 0 -3px #111827,
    14px -12px 0 -3px #111827,
    inset -12px -6px 0 rgba(16, 32, 39, 0.12);
}

.panda::before,
.panda::after {
  content: "";
  position: absolute;
  top: 15px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #111827;
}

.panda::before { left: 13px; }
.panda::after { right: 13px; }

.cloud-tags {
  position: absolute;
  right: 18px;
  top: 42px;
  width: 232px;
  min-height: 180px;
  padding: 34px 22px;
  border-radius: 58% 42% 50% 44%;
  background: rgba(186, 247, 239, 0.76);
  box-shadow: 0 18px 40px rgba(32, 168, 154, 0.16);
}

.cloud-tags span {
  display: inline-block;
  margin: 6px 3px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #1f9d8e;
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 2px 26px 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font: 900 12px/1 var(--font);
  letter-spacing: 0.14em;
}

.hero-copy h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 950;
}

.hero-copy p {
  margin: 18px 0 22px;
  color: rgba(16, 32, 39, 0.72);
  font-size: 15px;
  line-height: 1.75;
}

.primary-btn,
.ghost-btn {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 900;
  cursor: pointer;
}

.primary-btn {
  width: 100%;
  color: white;
  background: linear-gradient(135deg, #0ea5e9, #20a89a 48%, #6548dd);
  box-shadow: 0 16px 36px rgba(32, 168, 154, 0.24);
}

.primary-btn.compact {
  width: auto;
  min-width: 150px;
}

.ghost-btn {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.home-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.home-grid article,
.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 45px rgba(26, 54, 70, 0.08);
  backdrop-filter: blur(16px);
}

.home-grid article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 2px 12px;
  padding: 16px;
}

.home-grid b {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(32, 168, 154, 0.12);
  color: var(--teal);
}

.home-grid strong {
  font-size: 16px;
}

.home-grid p,
.disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.disclaimer {
  text-align: center;
  padding: 6px 12px 0;
}

.soft-screen {
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,0));
}

.topbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.topbar h1 {
  margin: 0;
  text-align: center;
  font-size: 21px;
}

.topbar p {
  margin: 4px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
}

.birth-card {
  padding: 28px 20px 22px;
  text-align: center;
}

.element-orb {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 24px;
  color: white;
  background: linear-gradient(135deg, #0ea5e9, #20a89a 52%, #6548dd);
  font-size: 31px;
  font-weight: 950;
  box-shadow: 0 18px 38px rgba(32, 168, 154, 0.22);
}

.birth-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.birth-card p {
  margin: 0 auto 22px;
  max-width: 330px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.date-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.picker-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.62)),
    rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 30px rgba(26, 54, 70, 0.08);
}

.picker-panel.open {
  border-color: rgba(32, 168, 154, 0.34);
  box-shadow:
    0 16px 36px rgba(26, 54, 70, 0.1),
    0 0 0 4px rgba(32, 168, 154, 0.08);
}

.picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  border: 0;
  padding: 0 14px 0 16px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.picker-trigger span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.picker-trigger b {
  flex: 1;
  color: var(--ink);
  text-align: right;
  font-size: 17px;
  font-weight: 950;
}

.picker-trigger em {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(32, 168, 154, 0.1);
  color: var(--teal);
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  transition: 0.18s ease;
}

.picker-panel.open .picker-trigger em {
  transform: rotate(180deg);
}

.picker-dropdown {
  border-top: 1px solid rgba(16, 32, 39, 0.08);
  background:
    radial-gradient(circle at 18% 0, rgba(32, 168, 154, 0.12), transparent 34%),
    rgba(255,255,255,.56);
}

.picker-grid {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.picker-grid.year {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-height: 198px;
  overflow: auto;
  overscroll-behavior: contain;
}

.picker-grid.month {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.picker-grid.day {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.picker-cell {
  min-width: 0;
  height: 38px;
  border: 1px solid rgba(16, 32, 39, 0.08);
  border-radius: 13px;
  background: rgba(248, 250, 252, 0.94);
  color: #334155;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: 0.18s ease;
}

.picker-cell.active {
  border-color: transparent;
  color: white;
  background: linear-gradient(135deg, #0ea5e9, #20a89a);
  box-shadow: 0 10px 22px rgba(32, 168, 154, 0.24);
}

.picker-grid.day .picker-cell {
  height: 36px;
  border-radius: 12px;
}

label {
  display: grid;
  gap: 7px;
  text-align: left;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--ink);
  background: white;
}

.innate-hero {
  overflow: hidden;
  margin-bottom: 16px;
  padding: 28px 22px;
  border-radius: 30px;
  color: white;
  text-align: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.25), transparent 28%),
    linear-gradient(135deg, color-mix(in srgb, var(--main), white 10%), #6548dd);
  box-shadow: 0 24px 52px color-mix(in srgb, var(--main), transparent 72%);
}

.innate-hero .element-orb {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}

.innate-hero span {
  font-size: 15px;
  opacity: 0.9;
}

.innate-hero h1 {
  margin: 8px 0 12px;
  font-size: 42px;
}

.innate-hero p {
  margin: 0;
  line-height: 1.7;
}

.relation-stack,
.relation-grid {
  display: grid;
  gap: 12px;
}

.relation-card {
  padding: 20px;
}

.relation-card h3,
.dark-card h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-size: 19px;
}

.relation-card p,
.dark-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.relation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0 80px;
}

.mini-relation {
  padding: 16px 10px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  background: rgba(255,255,255,.7);
}

.mini-relation h4 {
  margin: 0 0 13px;
  font-size: 15px;
}

.mini-relation div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.mini-relation span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: white;
  font-weight: 950;
}

.mini-relation b {
  color: #22c55e;
  font-size: 24px;
}

.sticky-bottom {
  position: fixed;
  left: max(18px, calc((100vw - 480px) / 2 + 18px));
  right: max(18px, calc((100vw - 480px) / 2 + 18px));
  bottom: 18px;
  z-index: 8;
}

.quiz-screen {
  padding: 0;
  background: #f7f8fb;
}

.quiz-top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  padding: 14px 16px 10px;
  background: rgba(247, 248, 251, 0.86);
  backdrop-filter: blur(16px);
}

.quiz-top div {
  text-align: center;
}

.quiz-top strong {
  display: block;
  font-size: 17px;
}

.quiz-top span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.progress {
  height: 5px;
  background: rgba(16, 32, 39, 0.08);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--violet));
  transition: width 0.24s ease;
}

.question-card {
  margin: 18px;
  padding: 24px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: 0 14px 34px rgba(26, 54, 70, 0.08);
}

.question-index {
  margin: 0 0 10px;
  color: var(--teal);
  font-weight: 950;
  font-size: 13px;
}

.question-card h2 {
  margin: 0 0 20px;
  font-size: 22px;
  line-height: 1.42;
}

.option-list {
  display: grid;
  gap: 12px;
}

.option {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  min-height: 64px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: #f8f9fc;
  text-align: left;
  transition: 0.18s ease;
}

.option b {
  color: #9aa4af;
  text-align: center;
  font-size: 18px;
}

.option span {
  color: #25323b;
  font-weight: 750;
  line-height: 1.45;
}

.option.selected {
  border-color: var(--teal);
  background: rgba(32, 168, 154, 0.1);
  transform: scale(0.99);
}

.option.selected b {
  color: var(--teal);
}

.quiz-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 0 18px 20px;
}

.quiz-actions .ghost-btn {
  min-width: 120px;
}

.loading-screen {
  display: grid;
  place-items: center;
  text-align: center;
  background: #050507;
  color: white;
}

.loader-orbit {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  animation: rotate 4s linear infinite;
}

.loader-orbit span {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.loader-orbit span:nth-child(1) { left: 60px; top: -15px; background: #22c55e; }
.loader-orbit span:nth-child(2) { right: -8px; top: 42px; background: #ef4444; }
.loader-orbit span:nth-child(3) { right: 18px; bottom: 0; background: #f59e0b; }
.loader-orbit span:nth-child(4) { left: 18px; bottom: 0; background: #a1a1aa; }
.loader-orbit span:nth-child(5) { left: -8px; top: 42px; background: #0ea5e9; }

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

.loading-screen h2 {
  min-height: 32px;
  font-size: 20px;
}

.loading-bars {
  display: grid;
  grid-template-columns: repeat(4, 52px);
  gap: 8px;
}

.loading-bars i {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.loading-bars i.on {
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

.result-screen {
  min-height: 100svh;
  padding: 28px 18px 26px;
  background:
    radial-gradient(circle at 50% -4%, color-mix(in srgb, var(--main), transparent 58%), transparent 36%),
    radial-gradient(circle at 100% 16%, rgba(14, 165, 233, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 22%),
    #050507;
  color: white;
}

.result-top {
  padding: 28px 0 24px;
  text-align: center;
}

.map-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 24px;
  border-radius: 26px;
  background: linear-gradient(135deg, #16a34a, #0ea5e9);
  font-size: 42px;
  box-shadow:
    0 22px 44px rgba(14, 165, 233, 0.28),
    inset 0 1px 0 rgba(255,255,255,.35);
}

.result-top p {
  margin: 0;
  color: #f8fafc;
  font-size: 25px;
  font-weight: 950;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.result-top span {
  display: block;
  margin-top: 10px;
  color: #c8ccd4;
}

.result-top h1 {
  margin: 38px 0 18px;
  color: #ffffff;
  font-size: 58px;
  text-shadow:
    0 0 26px color-mix(in srgb, var(--main), transparent 42%),
    0 8px 28px rgba(0, 0, 0, 0.36);
}

.result-top b {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(36, 36, 41, 0.9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.result-top i,
.score-card i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.score-card {
  min-height: 118px;
  padding: 20px 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)),
    #1d1d22;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.score-card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #f4f4f5;
  font-size: 18px;
}

.score-card strong {
  display: block;
  text-align: center;
  font-size: 42px;
}

.color-panel {
  margin: 6px 0 14px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0 0, rgba(34, 197, 94, .22), transparent 34%),
    radial-gradient(circle at 100% 0, rgba(239, 68, 68, .18), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(14, 165, 233, .18), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.025)),
    #18181d;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 18px 40px rgba(0,0,0,.2);
}

.color-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.color-panel-head span {
  color: #f8fafc;
  font-size: 18px;
  font-weight: 950;
}

.color-panel-head b {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #dbeafe;
  font-size: 12px;
  white-space: nowrap;
}

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

.spectrum-row {
  display: grid;
  grid-template-columns: 64px 48px 1fr;
  align-items: center;
  gap: 10px;
}

.spectrum-row span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #f4f4f5;
  font-size: 13px;
  font-weight: 900;
}

.spectrum-row i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bar);
}

.spectrum-row strong {
  color: #f8fafc;
  font-size: 14px;
}

.spectrum-row em {
  position: relative;
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
}

.spectrum-row em::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pct);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bar), color-mix(in srgb, var(--bar), white 32%));
  box-shadow: 0 0 18px color-mix(in srgb, var(--bar), transparent 42%);
}

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

.insight-card {
  min-height: 128px;
  padding: 16px 14px;
  border: 1px solid color-mix(in srgb, var(--card), white 18%);
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 8%, color-mix(in srgb, var(--card), white 18%), transparent 34%),
    linear-gradient(160deg, color-mix(in srgb, var(--card), #111827 56%), #1d1d22 72%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.insight-card span {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 900;
}

.insight-card strong {
  display: block;
  margin: 8px 0;
  color: white;
  font-size: 26px;
}

.insight-card p {
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 12px;
  line-height: 1.55;
}

.dark-card {
  margin: 14px 0;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)),
    #1d1d22;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.dark-card h3 {
  color: #f6f7fb;
}

.dark-card p {
  color: #bbbcc5;
  font-size: 15px;
}

.city-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.city-list span {
  display: grid;
  place-items: center;
  min-height: 70px;
  border-radius: 16px;
  background: #27272e;
  font-weight: 900;
}

.city-list small {
  display: block;
  margin-top: 4px;
  color: #8c8c94;
}

.city-list.muted span {
  opacity: 0.72;
}

.result-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.ghost-btn.dark {
  color: white;
  border-color: #303039;
  background: #2a2a30;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  transform: translateX(-50%) translateY(8px);
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(16, 32, 39, 0.92);
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.34);
}

.modal-panel {
  width: min(100%, 420px);
  max-height: 80svh;
  overflow: auto;
  padding: 20px;
  border-radius: 26px;
  background: white;
  box-shadow: var(--shadow);
}

.modal-panel h3 {
  margin: 0 0 14px;
  text-align: center;
}

.jump-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.jump-grid button {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f8fb;
  color: var(--ink);
}

.jump-grid button.done {
  color: white;
  background: var(--teal);
}

.jump-grid button.current {
  outline: 3px solid rgba(32, 168, 154, 0.22);
}

@media (max-width: 370px) {
  .hero-copy h1 {
    font-size: 41px;
  }

  .cloud-tags {
    transform: scale(0.88);
    transform-origin: top right;
  }

  .score-card strong {
    font-size: 34px;
  }
}
