:root {
  --bg: #f4f5f7;
  --card: #fff;
  --ink: #16181b;
  --muted: #7b8088;
  --line: #e8eaed;
  --up: #00a870;
  --down: #e5484d;
  --flat: #7b8088;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0; color: var(--ink); background:
    radial-gradient(circle at 14% -10%, #fff 0, transparent 32rem), var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.page-shell { width: min(1260px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 36px; }
.topbar { display: flex; justify-content: space-between; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 750; letter-spacing: .12em; }
.brand-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px rgba(22,24,27,.07); }
.market-state { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(0,168,112,.25); animation: pulse 2s infinite; }
@keyframes pulse { 60% { box-shadow: 0 0 0 8px transparent; } }
.intro { padding: clamp(68px, 10vh, 120px) 3% clamp(44px, 7vh, 76px); }
.eyebrow, .section-label { margin: 0 0 14px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .2em; }
h1 { margin: 0; font-size: clamp(48px, 7.2vw, 96px); line-height: .98; letter-spacing: -.066em; font-weight: 760; }
h1 span { color: #a3a7ad; }
h1 .primary { color: var(--ink); }
.subtitle { margin: 24px 0 0; color: var(--muted); font-size: 14px; }
.market-card { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.92); box-shadow: 0 30px 80px rgba(30,36,46,.08); }
.card-header, .card-footer { display: flex; align-items: center; justify-content: space-between; padding: 26px 30px; }
.card-header { border-bottom: 1px solid var(--line); }
.section-label { margin-bottom: 6px; }
h2 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.legend { display: flex; gap: 18px; color: var(--muted); font-size: 12px; }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend em { font-style: normal; }
.legend i { width: 7px; height: 7px; border-radius: 50%; }
.legend .up { background: var(--up); }
.legend .down { background: var(--down); }
.map { position: relative; aspect-ratio: 2 / 1; min-height: 530px; background: linear-gradient(180deg, #fff, #fcfcfd); }
.world { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.marker { --color: var(--flat); position: absolute; display: flex; align-items: center; gap: 8px; transform: translate(-7px, -7px); }
.marker.align-right { flex-direction: row-reverse; transform: translate(calc(-100% + 7px), -7px); }
.pin { position: relative; flex: 0 0 auto; width: 14px; height: 14px; border: 4px solid #fff; border-radius: 50%; background: var(--color); box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 3px 10px color-mix(in srgb, var(--color) 22%, transparent); }
.marker.loaded .pin::after { content: ""; position: absolute; inset: -7px; border: 1px solid color-mix(in srgb, var(--color) 35%, transparent); border-radius: 50%; animation: markerRing 1.8s ease-out infinite; }
@keyframes markerRing { to { transform: scale(1.7); opacity: 0; } }
.quote { display: flex; align-items: center; gap: 4px; white-space: nowrap; padding: 5px 8px; border: 1px solid rgba(232,234,237,.8); border-radius: 8px; background: rgba(255,255,255,.9); box-shadow: 0 6px 18px rgba(28,32,38,.05); backdrop-filter: blur(10px); }
.quote b { display: inline; color: #3b3e43; font-size: 11px; font-weight: 630; }
.quote b::after { content: " -"; }
.quote strong { display: inline; margin: 0; color: var(--color); font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.marker.up { --color: var(--up); }
.marker.down { --color: var(--down); }
.marker.flat { --color: var(--flat); }
.europe { left: 11.1%; top: 22.2%; }
.uk { left: 8.3%; top: 21.4%; }
.india { left: 28.6%; top: 39.4%; }
.shanghai { left: 42.1%; top: 32.7%; }
.kospi { left: 43.6%; top: 29.1%; }
.taiwan { left: 42.1%; top: 36.1%; }
.nikkei { left: 47.1%; top: 30.2%; }
.vietnam { left: 38%; top: 44%; }
.singapore { left: 37.2%; top: 49.3%; }
.indonesia { left: 38%; top: 53.4%; }
.sp500, .nasdaq { left: 87.8%; top: 27.4%; }
.wti { left: 21.2%; top: 34.6%; }
.brent { left: 22.6%; top: 38.2%; }
.uk .quote { transform: translateY(-38px); }
.europe .quote { transform: translateY(20px); }
.kospi .quote { transform: translateY(-38px); }
.shanghai .quote { transform: translateY(10px); }
.taiwan .quote { transform: translateY(20px); }
.nikkei .quote { transform: translate(10px, -6px); }
.india .quote { transform: translate(8px, 32px); }
.vietnam .quote { transform: translate(6px, 12px); }
.singapore .quote { transform: translateY(10px); }
.indonesia .quote { transform: translate(8px, 10px); }
.wti .quote { transform: translateY(-8px); }
.brent .quote { transform: translateY(8px); }
.marker.oil .quote strong { font-size: 11px; }
.marker.oil .quote small { display: none; }
.card-footer { min-height: 68px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.card-footer button { display: flex; align-items: center; gap: 7px; border: 0; padding: 8px 0 8px 12px; color: var(--ink); background: none; font: inherit; font-weight: 650; cursor: pointer; }
.card-footer .refresh-label { font-size: 11px; }
.card-footer .refresh-icon { font-size: 15px; transition: transform .35s; }
.card-footer button.loading .refresh-icon { transform: rotate(360deg); }
.mobile-quotes { display: none; }
.disclaimer { margin: 15px 3px 0; color: #a3a7ad; font-size: 10px; text-align: right; }
@media (max-width: 900px) {
  .page-shell { width: min(100% - 28px, 720px); padding-top: 20px; }
  .intro { padding-inline: 2px; }
  .map { min-height: 410px; }
  .quote { padding: 6px 8px; }
  .quote b { font-size: 10px; }
  .quote strong { font-size: 15px; }
}
@media (max-width: 680px) {
  .market-state { font-size: 10px; }
  .intro { padding-top: 76px; }
  h1 { font-size: clamp(43px, 14vw, 72px); }
  .market-card { border-radius: 22px; }
  .card-header { padding: 22px; }
  .legend { gap: 10px; }
  .map { min-height: 0; aspect-ratio: 1.72 / 1; }
  .marker { display: none; }
  .world { inset: 0; width: 100%; height: 100%; }
  .mobile-quotes { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  .mobile-quote { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 17px 18px; border-bottom: 1px solid var(--line); }
  .mobile-quote:nth-child(odd) { border-right: 1px solid var(--line); }
  .mobile-quote b { overflow: hidden; color: #55595f; font-size: 11px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-quote strong { flex: 0 0 auto; font-size: 14px; font-variant-numeric: tabular-nums; }
  .mobile-quote.up strong { color: var(--up); }
  .mobile-quote.down strong { color: var(--down); }
  .mobile-quote.flat strong { color: var(--flat); }
  .card-footer { padding: 18px 20px; }
  .disclaimer { text-align: center; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
