/* =========================================================
   鍩庡 CITYSCAPE 路 visual system
   A weather theatre, drawn with canvas and typography.
   ========================================================= */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-normal-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-normal-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-normal-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-italic-400.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --font-display: "Cormorant Garamond", "Times New Roman", "Songti SC", serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-cn-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --ink: #f4f0e6;
  --ink-soft: rgba(244, 240, 230, 0.68);
  --ink-faint: rgba(244, 240, 230, 0.44);
  --ink-ghost: rgba(244, 240, 230, 0.16);
  --night: #071014;
  --panel: rgba(13, 22, 26, 0.52);
  --panel-deep: rgba(10, 17, 21, 0.82);
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.075);
  --accent: #f1c57d;
  --accent-soft: rgba(241, 197, 125, 0.18);
  --accent-glow: rgba(241, 197, 125, 0.35);
  --radius-lg: 26px;
  --radius-md: 18px;
  --ease: cubic-bezier(0.2, 0.78, 0.22, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html {
  background: var(--night);
  -webkit-text-size-adjust: 100%;
}

body {
  overflow: hidden;
  color: var(--ink);
  background: var(--night);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  color: #14100b;
  background: var(--accent);
}

[hidden] {
  display: none !important;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  padding: 30px;
  place-items: center;
  color: var(--ink);
  font-family: var(--font-cn-serif);
  font-size: 16px;
  line-height: 1.9;
  text-align: center;
  background: #081115;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #0b161b;
}

.world {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

.world.is-dragging {
  cursor: grabbing;
}

.scene-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 65% at 52% 44%, transparent 34%, rgba(3, 9, 12, 0.18) 72%, rgba(2, 6, 9, 0.62) 100%),
    linear-gradient(180deg, rgba(3, 8, 11, 0.28) 0%, transparent 22%, transparent 72%, rgba(3, 8, 11, 0.48) 100%);
}

.scene-grain {
  position: absolute;
  inset: -40%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  animation: grainDrift 1.4s steps(3) infinite;
}

@keyframes grainDrift {
  0% { transform: translate3d(0, 0, 0); }
  33% { transform: translate3d(2%, -1.6%, 0); }
  66% { transform: translate3d(-1.4%, 2%, 0); }
  100% { transform: translate3d(1%, 1.2%, 0); }
}

.edge-scrim {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 10, 13, 0.58) 0%, rgba(4, 10, 13, 0.3) 26%, transparent 54%),
    linear-gradient(0deg, rgba(4, 10, 13, 0.3) 0%, transparent 26%);
}

/* =========================================================
   Top bar
   ========================================================= */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: calc(22px + var(--safe-top)) 3.3vw 0;
  opacity: 0;
  transform: translateY(-12px);
}

.app.is-ready .topbar {
  animation: riseIn 0.9s var(--ease) 0.1s forwards;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.brand-seal {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(9, 16, 19, 0.28);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.025);
  font-family: var(--font-cn-serif);
  font-size: 19px;
  line-height: 1;
  backdrop-filter: blur(14px);
}

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-cn {
  font-family: var(--font-cn-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.1;
}

.brand-en {
  font-family: var(--font-display);
  font-size: 8.5px;
  letter-spacing: 0.32em;
  line-height: 1.1;
  color: var(--ink-faint);
}

.place-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 300px;
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(11, 19, 23, 0.34);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(120%);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.place-chip:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(16, 26, 31, 0.5);
  transform: translateY(-1px);
}

.place-chip > .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.place-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.place-name {
  max-width: 190px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-sub {
  max-width: 190px;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-chevron {
  width: 13px !important;
  height: 13px !important;
  color: var(--ink-faint) !important;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  margin-right: 2px;
  padding: 0 11px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(9, 16, 19, 0.22);
  backdrop-filter: blur(12px);
}

.live-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7ed6a7;
  box-shadow: 0 0 0 3px rgba(126, 214, 167, 0.12);
  animation: livePulse 2.6s ease-in-out infinite;
}

.live-badge.is-demo i {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.76); }
}

.icon-btn {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: rgba(9, 16, 19, 0.28);
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(120%);
  transition: color 0.22s, background 0.22s, border-color 0.22s, transform 0.22s;
}

.icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--ink);
  background: rgba(23, 34, 39, 0.55);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: translateY(0) scale(0.96);
}

.icon-btn .icon {
  width: 16px;
  height: 16px;
}

#soundBtn .icon-sound-off,
#soundBtn[aria-pressed="true"] .icon-sound-on {
  display: none;
}

#soundBtn[aria-pressed="true"] .icon-sound-off {
  display: block;
}

#soundBtn[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent-glow);
}

/* =========================================================
   Hero 路 the weather headline
   ========================================================= */

.hero {
  position: absolute;
  top: clamp(108px, 14.8vh, 162px);
  left: 3.5vw;
  z-index: 20;
  width: min(430px, 35vw);
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px);
}

.hero > * {
  pointer-events: auto;
}

.app.is-ready .hero {
  animation: riseIn 1.1s var(--ease) 0.25s forwards;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.19em;
  line-height: 1;
  text-transform: uppercase;
}

.kicker-line {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.preview-chip {
  padding: 4px 8px;
  border: 1px solid var(--accent-glow);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.12em;
  background: var(--accent-soft);
}

.city-heading {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  min-height: 52px;
}

.city-heading h1 {
  margin: 0;
  font-family: var(--font-cn-serif);
  font-size: clamp(35px, 3.5vw, 52px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.08;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
}

.city-en {
  margin-bottom: 8px;
  overflow: hidden;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-main {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  margin-top: 4px;
}

.temperature {
  display: flex;
  align-items: flex-start;
  height: clamp(104px, 12.5vw, 156px);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.74;
  letter-spacing: -0.055em;
  filter: drop-shadow(0 16px 46px rgba(0, 0, 0, 0.14));
}

.temp-num {
  font-size: clamp(112px, 12.3vw, 172px);
  font-variant-numeric: lining-nums tabular-nums;
}

.temp-deg {
  margin-top: 0.08em;
  margin-left: 0.02em;
  font-size: clamp(35px, 4.2vw, 58px);
  font-weight: 300;
  letter-spacing: 0;
  opacity: 0.84;
}

.weather-side {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
}

.weather-symbol {
  display: block;
  width: 48px;
  height: 48px;
  color: var(--accent);
  filter: drop-shadow(0 0 20px var(--accent-glow));
  opacity: 0.95;
}

.weather-symbol svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weather-copy {
  display: flex;
  min-width: 92px;
  flex-direction: column;
  gap: 4px;
}

.weather-copy strong {
  font-family: var(--font-cn-serif);
  font-size: clamp(18px, 1.5vw, 23px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
}

.weather-copy small {
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.weather-line {
  max-width: 370px;
  margin: 13px 0 0;
  color: rgba(244, 240, 230, 0.8);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.75;
  text-wrap: pretty;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.42);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 17px;
  margin-top: 19px;
  color: rgba(244, 240, 230, 0.72);
  font-size: 11px;
  letter-spacing: 0.055em;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

.hero-facts > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.hero-facts .icon {
  width: 13px;
  height: 13px;
  color: var(--ink-faint);
}

.hero-facts b {
  font-weight: 500;
}

.aqi-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ed6a7;
  box-shadow: 0 0 8px rgba(126, 214, 167, 0.55);
}

.aqi-dot.is-moderate { background: #f0c96a; box-shadow: 0 0 8px rgba(240, 201, 106, 0.55); }
.aqi-dot.is-bad { background: #f39b6d; box-shadow: 0 0 8px rgba(243, 155, 109, 0.55); }
.aqi-dot.is-awful { background: #e77b79; box-shadow: 0 0 8px rgba(231, 123, 121, 0.55); }

.back-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.08em;
  background: rgba(12, 21, 25, 0.4);
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: background 0.2s, border-color 0.2s;
}

.back-live:hover {
  border-color: var(--accent-glow);
  background: var(--accent-soft);
}

.back-live .icon {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

/* =========================================================
   Forecast panel
   ========================================================= */

.forecast-panel {
  position: absolute;
  top: clamp(104px, 13.6vh, 142px);
  right: 3.3vw;
  z-index: 22;
  width: 300px;
  padding: 21px 21px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(27, 38, 42, 0.4), rgba(8, 14, 17, 0.58)),
    rgba(10, 17, 21, 0.38);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(26px) saturate(118%);
  opacity: 0;
  transform: translateY(18px);
  scrollbar-width: none;
}

.forecast-panel::-webkit-scrollbar {
  display: none;
}

.forecast-panel::before {
  position: absolute;
  top: -1px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  content: "";
  opacity: 0.6;
}

.app.is-ready .forecast-panel {
  animation: riseIn 1.1s var(--ease) 0.4s forwards;
}

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

.eyebrow {
  display: block;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.23em;
  line-height: 1.4;
  text-transform: uppercase;
}

.panel-head h2 {
  margin: 4px 0 0;
  font-family: var(--font-cn-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.2;
}

.panel-note {
  margin-top: 4px;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.hourly {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 196px;
}

.hourly-row {
  position: relative;
  display: grid;
  grid-template-columns: 50px 23px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 5px 7px;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.hourly-row + .hourly-row {
  border-top: 1px solid var(--line-soft);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.hourly-row:hover {
  background: rgba(255, 255, 255, 0.055);
}

.hourly-row.is-active {
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 2px 0 0 var(--accent);
}

.hourly-time {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.hourly-row.is-now .hourly-time {
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.hourly-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--ink-soft);
}

.hourly-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hourly-condition {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0;
  line-height: 1.25;
}

.hourly-condition strong {
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hourly-condition small {
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.hourly-temp {
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.hourly-temp small {
  margin-left: 1px;
  color: var(--ink-faint);
  font-family: var(--font-ui);
  font-size: 9px;
}

.hourly-skeleton {
  height: 34px;
  margin: 2px 0;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  background-size: 200% 100%;
  animation: skeleton 2.2s ease-in-out infinite;
}

@keyframes skeleton {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.panel-divider {
  height: 1px;
  margin: 15px 0 14px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.day-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.range-values {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.range-values > span:not(.range-bar) {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: right;
}

.range-values b {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}

.range-values small {
  color: var(--ink-faint);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.range-bar {
  position: relative;
  width: 48px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #79a8c9, #e6c486 58%, #e79965);
}

.range-bar i {
  position: absolute;
  top: -2px;
  left: 56%;
  width: 1px;
  height: 7px;
  background: var(--ink);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--line-soft);
}

.metric {
  display: flex;
  min-height: 55px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 9px 11px;
  background: rgba(9, 16, 19, 0.42);
}

.metric-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-faint);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.metric-label .icon {
  width: 11px;
  height: 11px;
}

.metric strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* =========================================================
   Scene tags & cards
   ========================================================= */

.landmark-tag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 19;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(9, 16, 19, 0.37);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  opacity: 0;
  backdrop-filter: blur(15px) saturate(115%);
  transition: border-color 0.2s, background 0.2s, opacity 0.5s;
}

.landmark-tag:hover {
  border-color: var(--accent-glow);
  background: rgba(17, 27, 30, 0.64);
}

.landmark-tag.is-visible {
  opacity: 1;
}

.tag-index {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.tag-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.tag-copy small {
  color: var(--ink-faint);
  font-size: 7.5px;
  letter-spacing: 0.15em;
}

.tag-copy strong {
  font-family: var(--font-cn-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.tag-pulse {
  position: relative;
  width: 5px;
  height: 5px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: tagPulse 2.8s ease-out infinite;
}

@keyframes tagPulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 5px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.person-tag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 19;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  background: rgba(9, 16, 19, 0.3);
  cursor: pointer;
  opacity: 0;
  backdrop-filter: blur(12px);
  transition: opacity 0.5s, border-color 0.2s, color 0.2s;
}

.person-tag:hover {
  border-color: var(--accent-glow);
  color: var(--ink);
}

.person-tag.is-visible {
  opacity: 1;
}

.person-pin {
  display: grid;
  width: 12px;
  height: 12px;
  place-items: center;
  border: 1px solid var(--accent-glow);
  border-radius: 50%;
}

.person-pin i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.person-card,
.landmark-card {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 26;
  width: 338px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(155deg, rgba(24, 35, 39, 0.84), rgba(8, 14, 17, 0.9)),
    var(--panel-deep);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(26px) saturate(115%);
}

.person-card {
  animation: cardIn 0.5s var(--ease) both;
}

.landmark-card {
  animation: cardIn 0.45s var(--ease) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(6px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.card-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ink-faint);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.card-close:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.card-close .icon {
  width: 13px;
  height: 13px;
}

.person-card h3,
.landmark-card h3 {
  margin: 6px 0 7px;
  padding-right: 26px;
  font-family: var(--font-cn-serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.25;
}

.person-card > p,
.landmark-card > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11.5px;
  letter-spacing: 0.025em;
  line-height: 1.75;
}

.outfit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.outfit-chips span {
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.035);
}

.person-whisper {
  margin: 15px 0 0 !important;
  padding: 12px 0 0 12px;
  border-left: 1px solid var(--accent);
  color: var(--ink) !important;
  font-family: var(--font-cn-serif) !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
}

.landmark-en {
  display: block;
  margin-top: -2px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.landmark-card > .landmark-en + p {
  margin-top: 12px;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  position: absolute;
  right: 3.3vw;
  bottom: calc(24px + var(--safe-bottom));
  left: 3.5vw;
  z-index: 18;
  display: grid;
  grid-template-columns: minmax(230px, 360px) 1fr minmax(200px, auto);
  align-items: end;
  gap: 20px;
  pointer-events: none;
  opacity: 0;
}

.app.is-ready .footer {
  animation: riseIn 1.1s var(--ease) 0.6s forwards;
}

.footer button {
  pointer-events: auto;
}

.scene-caption {
  max-width: 390px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.36);
}

.scene-caption .eyebrow {
  color: var(--accent);
  opacity: 0.8;
}

.serif-line {
  max-width: 390px;
  margin: 7px 0 0;
  font-family: var(--font-cn-serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-wrap: pretty;
}

.interaction-hint {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 8px;
  padding-bottom: 2px;
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.11em;
  white-space: nowrap;
}

.mouse-mark {
  position: relative;
  display: block;
  width: 12px;
  height: 17px;
  border: 1px solid var(--ink-faint);
  border-radius: 7px;
}

.mouse-mark i {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 1px;
  height: 4px;
  border-radius: 1px;
  background: var(--accent);
  transform: translateX(-50%);
  animation: mouseWheel 2.2s ease-in-out infinite;
}

@keyframes mouseWheel {
  0%, 100% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  70% { opacity: 0; transform: translate(-50%, 4px); }
}

.data-credit {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.data-credit button {
  padding: 0;
  border: 0;
  color: var(--ink-faint);
  font: inherit;
  letter-spacing: inherit;
  background: none;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.data-credit button:hover {
  color: var(--ink-soft);
  border-color: var(--ink-faint);
}

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

/* =========================================================
   Modals
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 9, 0.62);
  backdrop-filter: blur(12px) saturate(80%);
  animation: backdropIn 0.35s ease both;
}

@keyframes backdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.search-sheet,
.info-sheet {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100vw - 32px));
  max-height: min(86vh, 780px);
  overflow: auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(155deg, rgba(25, 37, 41, 0.96), rgba(7, 13, 16, 0.97)),
    var(--panel-deep);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  animation: sheetIn 0.55s var(--ease) both;
}

@keyframes sheetIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.search-head h2 {
  margin: 7px 0 0;
  font-family: var(--font-cn-serif);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.close-btn {
  width: 34px;
  height: 34px;
  flex: none;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 24px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 0.2s, background 0.2s;
}

.search-field:focus-within {
  border-color: var(--accent-glow);
  background: rgba(255, 255, 255, 0.065);
}

.search-field .icon {
  color: var(--accent);
}

.search-field input {
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0.02em;
  background: transparent;
}

.search-field input::placeholder {
  color: var(--ink-faint);
}

.search-field kbd {
  padding: 2px 5px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.quick-places {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.quick-places button {
  padding: 6px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.quick-places button:hover {
  border-color: var(--accent-glow);
  color: var(--ink);
  background: var(--accent-soft);
}

.search-results {
  min-height: 170px;
  margin-top: 18px;
}

.search-empty {
  display: flex;
  min-height: 155px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 20px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.search-empty p {
  max-width: 290px;
  margin: 0;
  color: var(--ink-faint);
  font-family: var(--font-cn-serif);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.empty-orbit {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.empty-orbit::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  content: "";
  transform: translate(-50%, -50%);
}

.empty-orbit::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%) rotate(-28deg);
}

.search-loading,
.search-error {
  display: flex;
  min-height: 155px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 20px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.search-result:hover {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.045);
}

.result-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-cn-serif);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.result-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.result-copy strong {
  font-family: var(--font-cn-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.result-copy small {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-landmark {
  color: var(--ink-faint);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.search-result .icon-arrow {
  width: 14px;
  height: 14px;
  color: var(--ink-faint);
  transition: transform 0.2s;
}

.search-result:hover .icon-arrow {
  transform: translateX(3px);
}

.geo-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.geo-option:hover {
  border-color: var(--accent-glow);
  background: var(--accent-soft);
}

.geo-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border: 1px solid var(--accent-glow);
  border-radius: 50%;
  color: var(--accent);
}

.geo-option > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.geo-option strong {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.geo-option small {
  color: var(--ink-faint);
  font-size: 8.5px;
  letter-spacing: 0.03em;
}

.geo-option .icon-arrow {
  width: 15px;
  height: 15px;
  color: var(--ink-faint);
}

.search-foot {
  margin: 17px 0 0;
  color: var(--ink-faint);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

/* Info modal */

.info-sheet {
  width: min(600px, calc(100vw - 32px));
  padding: 34px;
}

.info-sheet > .close-btn {
  position: absolute;
  top: 19px;
  right: 19px;
}

.info-sheet h2 {
  margin: 8px 0 4px;
  font-family: var(--font-cn-serif);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.info-sheet h2 span {
  display: inline-block;
  margin-left: 12px;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 0.28em;
  font-weight: 500;
  letter-spacing: 0.25em;
  vertical-align: middle;
}

.info-lead {
  max-width: 440px;
  margin: 11px 0 24px;
  color: var(--ink-soft);
  font-family: var(--font-cn-serif);
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.info-item {
  display: flex;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.info-num {
  padding-top: 2px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.info-item strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-cn-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.info-item p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  line-height: 1.8;
}

.info-privacy {
  margin: 18px 0 0;
  padding: 11px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.03em;
  line-height: 1.8;
  background: rgba(255, 255, 255, 0.022);
}

.info-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 22px;
}

.primary-btn {
  padding: 10px 19px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: #17130b;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: var(--accent);
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}

.primary-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border: 0;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.06em;
  background: none;
  cursor: pointer;
}

.text-btn:hover {
  color: var(--ink);
}

.text-btn .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.info-credit {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

/* =========================================================
   Toast & loader
   ========================================================= */

.toast {
  position: fixed;
  bottom: calc(105px + var(--safe-bottom));
  left: 50%;
  z-index: 80;
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-align: center;
  background: rgba(9, 16, 19, 0.86);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 7px);
  backdrop-filter: blur(18px);
  transition: opacity 0.3s, transform 0.3s;
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 45%, #14262c 0%, #081115 58%, #050a0d 100%);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.loader.is-done {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  width: min(320px, 78vw);
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.loader-seal {
  display: grid;
  width: 66px;
  height: 66px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid var(--accent-glow);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-cn-serif);
  font-size: 27px;
  box-shadow: 0 0 60px rgba(241, 197, 125, 0.08), inset 0 0 0 5px rgba(255, 255, 255, 0.02);
  animation: sealFloat 3.5s ease-in-out infinite;
}

@keyframes sealFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}

.loader-title {
  margin: 0 0 18px;
  font-family: var(--font-cn-serif);
  font-size: 17px;
  letter-spacing: 0.18em;
}

.loader-track {
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.loader-track i {
  display: block;
  width: 8%;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  transition: width 0.6s var(--ease);
}

.loader-status {
  margin: 12px 0 0;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* =========================================================
   Entrance animation
   ========================================================= */

@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

.app.is-ready .landmark-tag.is-visible,
.app.is-ready .person-tag.is-visible {
  animation: tagReveal 0.9s var(--ease) 0.85s both;
}

@keyframes tagReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1180px) {
  .forecast-panel {
    width: 274px;
    padding: 18px;
  }

  .hero {
    width: 370px;
  }

  .interaction-hint {
    display: none;
  }

  .footer {
    grid-template-columns: minmax(220px, 340px) 1fr;
  }

  .data-credit {
    grid-column: 2;
  }
}

@media (max-height: 760px) and (min-width: 1101px) {
  .hero {
    top: 105px;
  }

  .hero-kicker {
    margin-bottom: 10px;
  }

  .temperature {
    height: 114px;
  }

  .temp-num {
    font-size: 126px;
  }

  .weather-line {
    margin-top: 8px;
    line-height: 1.6;
  }

  .hero-facts {
    margin-top: 11px;
  }

  .forecast-panel {
    top: 92px;
    padding: 16px 18px;
  }

  .hourly {
    min-height: 170px;
  }

  .hourly-row {
    min-height: 30px;
    padding-top: 3px;
    padding-bottom: 3px;
  }

  .panel-divider {
    margin: 11px 0;
  }

  .metric {
    min-height: 49px;
  }

  .footer {
    bottom: 18px;
  }
}

@media (max-width: 1100px) {
  .scene-vignette {
    background:
      radial-gradient(ellipse 90% 70% at 58% 42%, transparent 30%, rgba(3, 9, 12, 0.22) 72%, rgba(2, 6, 9, 0.55) 100%),
      linear-gradient(180deg, rgba(3, 8, 11, 0.34) 0%, transparent 28%, transparent 68%, rgba(3, 8, 11, 0.34) 100%);
  }

  .edge-scrim {
    background:
      linear-gradient(180deg, rgba(4, 10, 13, 0.55) 0%, rgba(4, 10, 13, 0.14) 28%, transparent 52%, rgba(4, 10, 13, 0.25) 100%),
      linear-gradient(90deg, rgba(4, 10, 13, 0.28), transparent 70%);
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: calc(14px + var(--safe-top)) 16px 0;
  }

  .brand {
    gap: 9px;
  }

  .brand-seal {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .brand-cn {
    font-size: 18px;
    letter-spacing: 0.14em;
  }

  .brand-en {
    display: none;
  }

  .place-chip {
    justify-self: center;
    gap: 6px;
    padding: 5px 9px;
  }

  .place-chip > .icon:first-child {
    width: 12px;
    height: 12px;
  }

  .place-name {
    max-width: 122px;
    font-size: 10.5px;
  }

  .place-sub {
    display: none;
  }

  .icon-chevron {
    display: none;
  }

  .top-actions {
    gap: 5px;
  }

  .live-badge {
    display: none;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }

  .icon-btn .icon {
    width: 15px;
    height: 15px;
  }

  #soundBtn {
    display: none;
  }

  .hero {
    top: calc(82px + var(--safe-top));
    left: 20px;
    width: min(330px, calc(100vw - 40px));
  }

  .hero-kicker {
    gap: 7px;
    margin-bottom: 8px;
    font-size: 8.5px;
    letter-spacing: 0.13em;
  }

  .kicker-line {
    width: 18px;
  }

  .city-heading {
    min-height: 39px;
    gap: 10px;
  }

  .city-heading h1 {
    font-size: clamp(28px, 7.3vw, 37px);
    letter-spacing: 0.05em;
  }

  .city-en {
    margin-bottom: 5px;
    font-size: 8px;
    letter-spacing: 0.24em;
  }

  .weather-main {
    gap: 16px;
    margin-top: 2px;
  }

  .temperature {
    height: 84px;
  }

  .temp-num {
    font-size: clamp(84px, 21vw, 106px);
  }

  .temp-deg {
    font-size: 31px;
  }

  .weather-side {
    gap: 8px;
    padding-bottom: 5px;
  }

  .weather-symbol {
    width: 34px;
    height: 34px;
  }

  .weather-copy {
    min-width: 70px;
    gap: 2px;
  }

  .weather-copy strong {
    font-size: 16px;
  }

  .weather-copy small {
    font-size: 9px;
  }

  .weather-line {
    max-width: 275px;
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 0.02em;
    line-height: 1.65;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .hero-facts {
    gap: 7px 13px;
    margin-top: 10px;
    font-size: 9px;
  }

  .hero-facts .icon {
    width: 11px;
    height: 11px;
  }

  .back-live {
    margin-top: 9px;
    padding: 5px 10px;
    font-size: 9px;
  }

  .forecast-panel {
    top: auto;
    right: 12px;
    bottom: calc(10px + var(--safe-bottom));
    left: 12px;
    width: auto;
    max-height: 33dvh;
    padding: 14px 15px calc(13px + var(--safe-bottom));
    overflow: hidden;
    border-radius: 22px;
  }

  .panel-head {
    align-items: center;
    margin-bottom: 6px;
  }

  .eyebrow {
    font-size: 8px;
    letter-spacing: 0.17em;
  }

  .panel-head h2 {
    margin-top: 1px;
    font-size: 16px;
  }

  .panel-note {
    display: none;
  }

  .hourly {
    min-height: 0;
    flex-direction: row;
    gap: 4px;
    margin: 0 -2px;
    padding: 2px 2px 3px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .hourly::-webkit-scrollbar {
    display: none;
  }

  .hourly-row {
    display: flex;
    min-width: 61px;
    min-height: 80px;
    flex: 1 0 61px;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
    padding: 7px 4px;
    border-top: 0 !important;
    border-radius: 12px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.03);
  }

  .hourly-row + .hourly-row {
    border-top: 0;
  }

  .hourly-row.is-active {
    box-shadow: inset 0 0 0 1px var(--accent-glow);
    background: var(--accent-soft);
  }

  .hourly-time {
    font-family: var(--font-display);
    font-size: 11px;
  }

  .hourly-row.is-now .hourly-time {
    font-size: 8px;
  }

  .hourly-icon {
    width: 22px;
    height: 22px;
    margin: 1px 0;
  }

  .hourly-icon svg {
    width: 21px;
    height: 21px;
  }

  .hourly-condition {
    align-items: center;
    line-height: 1.15;
  }

  .hourly-condition strong {
    max-width: 58px;
    font-size: 8.5px;
  }

  .hourly-condition small,
  .hourly-temp small {
    display: none;
  }

  .hourly-temp {
    font-size: 15px;
  }

  .hourly-skeleton {
    width: 61px;
    height: 80px;
    flex: 1 0 61px;
  }

  .panel-divider {
    display: none;
  }

  .day-range {
    display: none;
  }

  .metric-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 5px;
    border-radius: 11px;
  }

  .metric {
    min-height: 45px;
    gap: 2px;
    padding: 6px 8px;
  }

  .metric-label {
    gap: 3px;
    font-size: 8.5px;
    white-space: nowrap;
  }

  .metric-label .icon {
    width: 10px;
    height: 10px;
  }

  .metric strong {
    font-size: 15px;
  }

  .landmark-tag {
    gap: 6px;
    padding: 5px 8px 5px 6px;
  }

  .tag-index {
    width: 19px;
    height: 19px;
    font-size: 8px;
  }

  .tag-copy small {
    display: none;
  }

  .tag-copy strong {
    font-size: 10.5px;
  }

  .tag-pulse {
    width: 4px;
    height: 4px;
  }

  .person-tag {
    padding: 4px 7px 4px 5px;
    font-size: 7.5px;
  }

  .person-pin {
    width: 10px;
    height: 10px;
  }

  .person-card,
  .landmark-card {
    top: auto !important;
    right: 12px;
    bottom: calc(28dvh + 22px + var(--safe-bottom));
    left: 12px !important;
    width: auto;
    max-height: 38dvh;
    overflow: auto;
    padding: 17px;
    border-radius: 19px;
  }

  .person-card h3,
  .landmark-card h3 {
    margin-top: 4px;
    font-size: 20px;
  }

  .person-card > p,
  .landmark-card > p {
    font-size: 10.5px;
    line-height: 1.65;
  }

  .outfit-chips {
    margin-top: 10px;
  }

  .person-whisper {
    margin-top: 10px !important;
    padding-top: 9px;
    font-size: 11.5px !important;
  }

  .footer {
    display: none;
  }

  .toast {
    bottom: calc(28dvh + 28px);
  }

  .modal {
    align-items: end;
    padding: 0;
  }

  .search-sheet,
  .info-sheet {
    width: 100%;
    max-height: 90dvh;
    padding: 22px 18px calc(24px + var(--safe-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }

  .search-head h2 {
    font-size: 22px;
  }

  .search-field {
    margin-top: 18px;
  }

  .search-results {
    min-height: 150px;
  }

  .search-empty {
    min-height: 130px;
  }

  .info-sheet h2 {
    font-size: 33px;
  }

  .info-sheet > .close-btn {
    top: 15px;
    right: 15px;
  }

  .info-lead {
    margin-bottom: 18px;
    font-size: 12px;
  }

  .info-item {
    padding: 12px 0;
  }

  .info-item p {
    font-size: 10px;
    line-height: 1.7;
  }

  .modal-backdrop {
    background: rgba(2, 7, 9, 0.7);
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .panel-head h2 {
    font-size: 20px;
  }

  .hourly-row {
    min-height: 94px;
    flex-basis: 72px;
    padding: 9px 6px;
  }

  .hourly-time {
    font-size: 13px;
  }

  .hourly-row.is-now .hourly-time {
    font-size: 9px;
  }

  .hourly-icon,
  .hourly-icon svg {
    width: 25px;
    height: 25px;
  }

  .hourly-condition strong {
    max-width: 82px;
    font-size: 10px;
  }

  .hourly-temp {
    font-size: 18px;
  }

  .metric {
    min-height: 50px;
    padding: 8px 13px;
  }

  .metric-label {
    font-size: 9px;
  }

  .metric strong {
    font-size: 17px;
  }

  .forecast-panel {
    padding: 16px 20px 15px;
  }

  .landmark-tag {
    padding: 7px 11px 7px 8px;
  }
}

@media (max-width: 620px) {
  .place-chip {
    justify-self: end;
  }

  .place-name {
    max-width: 84px;
  }

  .brand-seal {
    width: 33px;
    height: 33px;
  }

  .hero {
    left: 17px;
    width: calc(100vw - 34px);
  }

  .weather-line {
    max-width: 230px;
  }

  .forecast-panel {
    right: 8px;
    bottom: calc(8px + var(--safe-bottom));
    left: 8px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .hourly-row {
    min-width: 57px;
    flex-basis: 57px;
  }

  .metric {
    padding: 6px 4px;
  }

  .metric-label {
    font-size: 8px;
  }

  .metric strong {
    font-size: 14px;
  }

  .person-card,
  .landmark-card {
    right: 8px;
    bottom: calc(28dvh + 18px + var(--safe-bottom));
    left: 8px !important;
  }

  .search-sheet,
  .info-sheet {
    padding-right: 15px;
    padding-left: 15px;
  }

  .result-landmark {
    display: none;
  }

  .search-empty {
    gap: 14px;
    padding: 15px;
  }

  .search-empty p {
    font-size: 11px;
  }

  .search-foot {
    font-size: 8px;
  }

  .quick-places {
    gap: 5px;
  }

  .quick-places button {
    padding: 5px 9px;
    font-size: 9px;
  }

  .info-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .hero {
    top: calc(76px + var(--safe-top));
  }

  .city-heading h1 {
    font-size: 27px;
  }

  .temp-num {
    font-size: 82px;
  }

  .temperature {
    height: 76px;
  }

  .weather-symbol {
    width: 29px;
    height: 29px;
  }

  .weather-copy strong {
    font-size: 15px;
  }

  .weather-line {
    max-width: 205px;
    font-size: 10.5px;
  }

  .hero-facts {
    gap: 6px 10px;
    margin-top: 8px;
    font-size: 8.5px;
  }

  .place-chip {
    padding: 4px 8px;
  }

  .place-chip > .icon:first-child {
    display: none;
  }

  .icon-btn {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 360px) {
  .place-chip {
    display: none;
  }

  .topbar {
    grid-template-columns: auto 1fr;
  }

  .hero {
    left: 14px;
  }

  .hourly-row {
    min-width: 54px;
    flex-basis: 54px;
  }
}

@media (max-height: 720px) and (max-width: 1100px) {
  .hero {
    top: calc(68px + var(--safe-top));
  }

  .weather-line {
    display: none;
  }

  .hero-facts {
    margin-top: 7px;
  }

  .temperature {
    height: 68px;
  }

  .temp-num {
    font-size: 76px;
  }

  .city-heading h1 {
    font-size: 25px;
  }

  .forecast-panel {
    max-height: 31dvh;
  }

  .person-card,
  .landmark-card {
    bottom: calc(31dvh + 20px + var(--safe-bottom));
    max-height: 35dvh;
  }

  .toast {
    bottom: calc(31dvh + 26px);
  }
}

@media (max-width: 1100px) and (max-height: 620px) {
  .hero {
    top: calc(62px + var(--safe-top));
  }

  .hero-kicker {
    margin-bottom: 6px;
  }

  .hero-facts {
    display: none;
  }

  .city-heading {
    min-height: 33px;
  }

  .temperature {
    height: 62px;
  }

  .temp-num {
    font-size: 70px;
  }

  .weather-copy strong {
    font-size: 14px;
  }

  .weather-symbol {
    width: 26px;
    height: 26px;
  }

  .landmark-tag {
    transform-origin: center bottom;
  }

  .forecast-panel {
    max-height: 29dvh;
  }

  .metric-grid {
    display: none;
  }

  .person-card,
  .landmark-card {
    bottom: calc(29dvh + 18px + var(--safe-bottom));
  }
}

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

  .scene-grain {
    animation: none;
  }
}
