:root {
  --bg: #fff4ea;
  --ink: #2a1f1a;
  --muted: #8a7468;
  --card: #fffdf9;
  --line: #f0ddd0;
  --coral: #ff7a59;
  --coral-deep: #f05a3a;
  --mint: #34d399;
  --header-h: 64px;
}

* { box-sizing: border-box; }

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

body {
  padding-top: var(--header-h);
  color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(255, 168, 140, 0.35), transparent 55%),
    radial-gradient(720px 380px at 100% 8%, rgba(125, 211, 252, 0.28), transparent 50%),
    radial-gradient(640px 320px at 70% 100%, rgba(52, 211, 153, 0.16), transparent 46%),
    var(--bg);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

#global-header {
  min-height: 0;
}

.map-page {
  width: min(440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 calc(96px + env(safe-area-inset-bottom));
}

.map-hero {
  margin-bottom: 26px;
}

.map-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--coral-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(255, 122, 89, 0.12);
}

.map-kicker a {
  color: inherit;
  text-decoration: none;
}

.map-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: clamp(46px, 14vw, 62px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.map-title-pin {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffdf3 0%, #ffe58a 42%, #f5c542 100%);
  box-shadow:
    0 0 0 5px rgba(245, 197, 66, 0.2),
    0 0 18px rgba(245, 197, 66, 0.7);
}

.map-title-text {
  background: linear-gradient(115deg, #ff7a59 0%, #ff2d95 52%, #f05a3a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 16px rgba(255, 122, 89, 0.18));
}

.map-tagline {
  margin: 0 0 12px;
  font-size: clamp(22px, 6.4vw, 28px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.map-lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.map-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: #fee500;
  color: #191919;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: 0 10px 22px rgba(254, 229, 0, 0.38);
  cursor: pointer;
}

.map-share svg {
  width: 18px;
  height: 18px;
  fill: #191919;
}

.map-share:active {
  transform: scale(0.97);
}

.map-result .map-share {
  display: flex;
  width: 100%;
  margin: 10px 0 0;
}

.map-card,
.map-result {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(80, 40, 20, 0.07);
}

.map-card,
.map-result,
.map-sample {
  margin-bottom: 18px;
}

.map-card,
.map-result {
  padding: 22px 18px 20px;
}

.map-card-kicker {
  margin: 0 0 6px;
  color: var(--coral-deep);
  font-size: 12px;
  font-weight: 700;
}

.map-card h2,
.map-sample h2 {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.map-fold-demo {
  margin: 0 0 16px;
}

.map-fold-demo .map-fold {
  margin-bottom: 0;
}

.map-form {
  display: grid;
  gap: 12px;
}

.map-form label,
.map-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.map-form input,
.map-form select,
.map-form textarea,
.map-select-btn {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #f0ddd0;
  border-radius: 16px;
  background-color: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  outline: none;
  box-sizing: border-box;
}

.map-form select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><path fill='%23ff7a59' d='M5.2 7.4L10 12.2l4.8-4.8 1.4 1.4L10 15 3.8 8.8z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 44px;
}

.map-birth {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.map-birth-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
}

.map-birth-year {
  grid-column: 1 / -1;
}

.map-birth-picks select {
  padding-left: 12px;
  padding-right: 36px;
  background-position: right 10px center;
}

.map-birth-typed {
  letter-spacing: 0;
  font-weight: 600;
}

.map-birth-typed::placeholder {
  color: #b08978;
  font-weight: 600;
}

.map-form textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.45;
}

.map-form input:focus,
.map-form select:focus,
.map-form textarea:focus,
.map-select.is-open .map-select-btn,
.map-select-btn:focus-visible {
  border-color: #ffb39d;
  box-shadow: 0 0 0 4px rgba(255, 122, 89, 0.12);
}

.map-select {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.map-select select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  pointer-events: none;
  background-image: none;
}

.map-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  min-width: 0;
  min-height: 50px;
  padding-right: 44px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><path fill='%23ff7a59' d='M5.2 7.4L10 12.2l4.8-4.8 1.4 1.4L10 15 3.8 8.8z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.map-select-btn.is-placeholder {
  color: #b08978;
  font-weight: 600;
}

.map-select.is-open .map-select-btn {
  border-color: #ff7a59;
}

.map-select.is-invalid .map-select-btn {
  border-color: #e11d48;
}

.map-select-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  max-height: 240px;
  margin: 0;
  padding: 6px;
  overflow: auto;
  list-style: none;
  border: 1px solid #ffd4c6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(80, 40, 20, 0.14);
}

.map-select.is-open .map-select-menu {
  display: block;
}

.map-select-menu li {
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.map-select-menu li:hover {
  background: #fff4ea;
}

.map-select-menu li.is-on {
  background: #fff0ea;
  color: var(--coral-deep);
}

.map-select-menu li.is-disabled {
  display: none;
}

.map-error {
  margin: 0;
  color: #e11d48;
  font-size: 13px;
}

.map-form button:not(.map-select-btn),
.map-cta,
.map-cta-secondary {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.map-form button:not(.map-select-btn),
.map-cta {
  background: linear-gradient(180deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(240, 90, 58, 0.22);
}

.map-form button:not(.map-select-btn):disabled {
  opacity: 0.6;
  cursor: wait;
}

.map-cta-secondary {
  background: #fff7f2;
  color: var(--coral-deep);
  border: 1px solid #ffd4c6;
}

.map-sample .map-cta {
  margin-top: 14px;
}

.map-sample .map-cta-secondary {
  margin-top: 10px;
}

.map-result[hidden] {
  display: none;
}

.map-result-status {
  margin: 0 0 14px;
  color: var(--coral-deep);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.map-result-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

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

.map-score {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 8px var(--score-color, var(--mint));
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.map-score.is-wait {
  font-size: 28px;
  color: #d7b8aa;
  animation: map-pulse 0.9s ease-in-out infinite;
}

.map-score.is-in {
  animation: map-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.map-result-copy p {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
}

.map-result-copy h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 6vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.map-result-copy span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--score-color, var(--mint)) 22%, #fff);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.map-result .map-comment,
.map-result .map-cta,
.map-result .map-share,
.map-result .map-save,
.map-result .map-result-copy h3,
.map-result .map-result-copy span {
  opacity: 0;
  transform: translateY(8px);
  transition: 0.35s ease;
}

.map-result.is-done .map-comment,
.map-result.is-done .map-cta,
.map-result.is-done .map-share,
.map-result.is-done .map-save,
.map-result.is-done .map-result-copy h3,
.map-result.is-done .map-result-copy span {
  opacity: 1;
  transform: none;
}

.map-comment {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.map-result {
  overflow-x: hidden;
}

.map-fold-pane {
  min-width: 0;
  max-width: 100%;
}

.map-fold {
  margin: 0 0 16px;
  padding: 12px 8px;
  border-radius: 16px;
  background: #fff7f1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.map-fold-letters,
.map-fold-row {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-width: max-content;
}

.map-fold-letters span,
.map-fold-row span {
  min-width: 1.5em;
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  transition: 0.22s ease;
}

.map-fold-letters span.is-on,
.map-fold-row span.is-on {
  opacity: 1;
  transform: none;
}

.map-fold-letters {
  margin-bottom: 6px;
  color: var(--coral-deep);
  font-weight: 700;
}

.map-fold-row {
  color: #b08978;
  font-size: 14px;
}

.map-fold-row:last-child {
  color: var(--ink);
  font-weight: 800;
}

.map-sample h2 {
  margin-bottom: 8px;
}

.map-sample-lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.map-stage {
  margin-bottom: 12px;
  padding: 16px 12px 14px;
  border: 3px solid #e8c48a;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 186, 140, 0.22), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(125, 211, 252, 0.16), transparent 32%),
    repeating-linear-gradient(0deg, transparent, transparent 11px, rgba(176, 132, 72, 0.04) 12px),
    linear-gradient(180deg, #fff8ea 0%, #f4e2c4 100%);
  color: #3a2a20;
  box-shadow: 0 16px 36px rgba(120, 70, 20, 0.1);
}

.map-stage-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.map-stage-host {
  min-width: 0;
}

.map-stage-head strong {
  font-size: 15px;
  letter-spacing: -0.03em;
}

.map-stage-host-sign {
  margin: 2px 0 0;
  color: #2a1f1a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.map-stage-host-sign[hidden] {
  display: none;
}

.map-stage-head span {
  flex-shrink: 0;
  color: #8a6d52;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.map-stage-caption {
  margin: 8px 0 12px;
  color: #5c4a40;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  font-weight: 600;
}

.korea-wrap {
  position: relative;
  min-height: 320px;
  padding: 12px 6px 16px;
  overflow: hidden;
  border-radius: 20px;
  touch-action: pan-y;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 236, 179, 0.55), transparent 28%),
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.4), transparent 24%),
    linear-gradient(180deg, #b9dce8 0%, #9ecfde 40%, #c5e6d8 100%);
}

.map-expand-btn,
.map-expand-close {
  display: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
  .korea-wrap:not(.is-expanded):not(.is-zoomed) {
    cursor: zoom-in;
  }

  .korea-wrap .cluster-pin,
  .korea-wrap .host-pin,
  .korea-wrap .pin-name,
  .korea-wrap .map-expand-btn,
  .map-expand-close {
    cursor: pointer;
  }

  .map-expand-btn {
    display: inline-flex;
    align-items: center;
    position: absolute;
    z-index: 12;
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #3a2a22;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 4px 12px rgba(42, 31, 26, 0.12);
  }
}

.korea-wrap.is-expanded .map-expand-btn {
  display: none;
}

.map-expand-close.is-open {
  display: inline-flex;
  align-items: center;
  position: fixed;
  z-index: 10060;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #3a2a22;
  background: #fff;
  box-shadow: 0 8px 24px rgba(42, 31, 26, 0.22);
}

.map-expand-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10040;
  border: 0;
  padding: 0;
  background: rgba(42, 31, 26, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.map-expand-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.korea-wrap.is-expanded {
  position: fixed;
  z-index: 10050;
  inset: auto;
  top: 60px;
  left: 20px;
  width: min(680px, calc(100vw - 400px), calc((100dvh - 144px) * 800 / 759));
  height: min(calc(100dvh - 144px), calc(min(680px, 100vw - 400px) * 759 / 800));
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(42, 31, 26, 0.28);
  touch-action: none;
  animation: map-expand-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.korea-wrap.is-expanded .korea-canvas,
.korea-wrap.is-expanded .korea-map {
  width: 100%;
  height: auto;
  max-height: 100%;
}

body.is-map-expanded {
  overflow: hidden;
}

body.is-map-expanded #global-header,
body.is-map-expanded .bw-global-header {
  visibility: hidden;
}

.korea-wrap.is-zoomed,
.korea-wrap.is-pinching {
  cursor: grab;
  touch-action: none;
}

.korea-canvas {
  position: relative;
  transform-origin: 0 0;
}

.korea-canvas.is-zoom-reset {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.korea-map {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  filter: drop-shadow(0 8px 0 rgba(120, 160, 170, 0.18));
  transition: 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.korea-canvas.is-ready .korea-map {
  opacity: 1;
  transform: none;
}

.korea-map .sido-land {
  fill: #f7e2b8;
  stroke: rgba(196, 148, 82, 0.22);
  stroke-width: 0.45;
  transition: fill 0.6s ease, stroke 0.6s ease;
}

.korea-map .sido-land.is-filled {
  stroke-width: 0.85;
}

.korea-map .sido-land.is-home {
  fill: #ffc44a;
  stroke: #c48910;
  stroke-width: 0.85;
}

.cluster-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.pin-name-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.map-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  opacity: 0.15;
  animation: map-twinkle 2.8s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.cluster-pin,
.host-pin {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.cluster-pin {
  z-index: 2;
  width: 36px;
  height: 36px;
  font: inherit;
  cursor: pointer;
  opacity: 0;
  animation: pin-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0.2s);
}

.korea-canvas.is-ready .cluster-pin:not(.is-dim) .cluster-dot {
  animation: pin-bob 2.8s ease-in-out infinite;
  animation-delay: var(--delay, 0.2s);
}

.cluster-pin.is-dim {
  opacity: 0.16;
  pointer-events: none;
  animation: none;
}

.cluster-pin.is-many {
  width: 48px;
  height: 48px;
}

.cluster-pin.is-many .cluster-dot {
  width: 8px;
  height: 8px;
  border-width: 1.5px;
}

.cluster-pin.is-many .cluster-glow {
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  opacity: 0.28;
}

.cluster-pin.is-hot {
  z-index: 4;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.12);
}

.cluster-pin.is-hot .cluster-glow {
  opacity: 0.8;
  animation: glow-pulse 1.15s ease-in-out infinite;
}

.cluster-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: var(--pin, #ff2d95);
  filter: blur(7px);
  opacity: 0.4;
  pointer-events: none;
}

.cluster-dot,
.host-dot {
  position: relative;
  z-index: 3;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.cluster-pin.is-open {
  z-index: 6;
  width: 72px;
  height: 72px;
  --fan: 2.15;
}

.cluster-pin.is-open .cluster-dot {
  animation: none;
}

.cluster-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--pin, #ff2d95);
  box-shadow: 0 0 10px color-mix(in srgb, var(--pin) 70%, transparent);
  transform: translate(
    calc(-50% + var(--ox, 0px) * var(--fan, 1)),
    calc(-50% + var(--oy, 0px) * var(--fan, 1))
  );
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.host-pin {
  z-index: 8;
  width: 28px;
  height: 28px;
  pointer-events: none;
  opacity: 0;
  animation: pin-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

.host-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 2px solid rgba(245, 197, 66, 0.55);
  border-radius: 50%;
  animation: host-ring 2.4s ease-out infinite;
}

.host-ring.is-late {
  animation-delay: 1.2s;
}

.host-dot {
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 35% 30%, #fffdf3 0%, #ffe58a 42%, #f5c542 100%);
  border-color: #fff3b0;
  box-shadow:
    0 0 0 4px rgba(245, 197, 66, 0.22),
    0 0 18px rgba(245, 197, 66, 0.7);
  animation: host-pulse 2.2s ease-in-out infinite;
}

.host-pin.is-receiving .host-dot {
  animation:
    host-pulse 2.2s ease-in-out infinite,
    host-chi-hit 2.1s ease-out 0.35s infinite;
}

.korea-canvas.is-filtered .host-pin.is-receiving .host-dot {
  animation: host-pulse 2.2s ease-in-out infinite;
}

.pin-name {
  position: absolute;
  z-index: 0;
  color: #3d2a20;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  -webkit-text-stroke: 0.45px #fff8ea;
  paint-order: stroke fill;
  text-shadow:
    -1.2px -1.2px 0 #fff8ea,
    1.2px -1.2px 0 #fff8ea,
    -1.2px 1.2px 0 #fff8ea,
    1.2px 1.2px 0 #fff8ea,
    0 0 5px #fff8ea;
  transform: translate(-50%, -50%) translate(var(--nx, 15px), var(--ny, 0px));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  pointer-events: none;
  opacity: 0.9;
}

.pin-name.is-host {
  color: #9a7408;
  -webkit-text-stroke-color: #fff6cf;
  text-shadow:
    -1.2px -1.2px 0 #fff6cf,
    1.2px -1.2px 0 #fff6cf,
    -1.2px 1.2px 0 #fff6cf,
    1.2px 1.2px 0 #fff6cf,
    0 0 6px #fff3c0;
}

.pin-name.is-fresh {
  z-index: 4;
  animation: fresh-pin 1.1s cubic-bezier(0.22, 1, 0.36, 1) 2;
}

.pin-name.is-open {
  opacity: 1;
  transform: translate(-50%, -50%) translate(
    calc(var(--nx, 15px) * 1.7),
    calc(var(--ny, 0px) * 1.7)
  );
}

.pin-name.is-dim {
  opacity: 0.22;
}

.chi-spark {
  position: absolute;
  z-index: 6;
  left: var(--from-x);
  top: var(--from-y);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ffe08a 38%, var(--pin, #ff7a59) 100%);
  box-shadow: 0 0 10px color-mix(in srgb, var(--pin, #ffd36a) 70%, #fff);
  pointer-events: none;
  opacity: 0;
  animation: chi-flow 2.1s cubic-bezier(0.22, 0.61, 0.36, 1) var(--delay, 0s) infinite;
}

.korea-canvas.is-filtered .chi-spark {
  display: none;
}

@keyframes chi-flow {
  0% {
    opacity: 0;
    left: var(--from-x);
    top: var(--from-y);
    transform: translate(-50%, -50%) scale(0.4);
  }
  12% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    left: var(--to-x);
    top: var(--to-y);
    transform: translate(-50%, -50%) scale(0.2);
  }
}

.map-zoom-hint {
  margin: 8px 0 0;
  color: #8a6d52;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  font-weight: 600;
}

.map-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 18px;
}

.map-stat {
  grid-column: span 2;
  min-height: 62px;
  padding: 8px 6px 7px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.map-stat:nth-child(4) {
  grid-column: 2 / 4;
}

.map-stat:nth-child(5) {
  grid-column: 4 / 6;
}

.map-stat.is-on {
  border-color: color-mix(in srgb, var(--stat) 55%, #fff);
  background: color-mix(in srgb, var(--stat) 16%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--stat) 18%, transparent);
}

.map-stat b {
  display: block;
  color: var(--stat);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.map-stat span {
  display: block;
  margin-top: 3px;
  color: #6b5344;
  font-size: 11px;
  line-height: 1.25;
}

.map-animals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.map-animal {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ee;
  color: #5c4a40;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.map-field-hint {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.map-chem {
  margin: 12px 4px 4px;
  text-align: left;
}

.map-chem-row {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

.map-chem-key {
  color: #8a7468;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.map-chem-pair {
  min-width: 0;
  color: #2a1f1a;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.map-chem-fit {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff0ea;
  color: #c45c2d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.map-chem-line {
  margin: 10px 0 4px;
  color: #c45c2d;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.4;
  text-align: center;
}

.map-chem-star {
  margin: 0;
  color: #c45c2d;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.map-result.is-done .map-chem {
  opacity: 1;
  transform: none;
}

.map-result .map-chem {
  opacity: 0;
  transform: translateY(8px);
  transition: 0.35s ease;
}

.map-rank li.is-hidden,
.map-rank li[hidden] {
  display: none;
}

.map-sheet[hidden] {
  display: none;
}

.map-sheet {
  position: fixed;
  inset: 0;
  z-index: 10080;
}

.map-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(42, 31, 26, 0.38);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.map-sheet-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(440px, 100%);
  max-height: min(72vh, 560px);
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: #fffdf9;
  box-shadow: 0 -16px 40px rgba(80, 40, 20, 0.16);
  transform: translate(-50%, 24px);
  opacity: 0;
  overflow: auto;
  transition: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.map-sheet.is-open .map-sheet-backdrop {
  opacity: 1;
}

.map-sheet.is-open .map-sheet-panel {
  transform: translate(-50%, 0);
  opacity: 1;
}

.map-sheet-handle {
  width: 42px;
  height: 4px;
  margin: 6px auto 12px;
  border-radius: 999px;
  background: #ead7c8;
}

.map-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.map-sheet-head strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.map-sheet-head span {
  color: var(--muted);
  font-size: 13px;
}

.map-sheet-close {
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: #fff4ea;
  color: #6b5344;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.map-sheet-list {
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
}

.map-sheet-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid #f3e4d8;
}

.map-sheet-list li:last-child {
  border-bottom: 0;
}

.map-sheet-list li > div {
  min-width: 0;
  flex: 1;
}

.map-sheet-list .map-rank-scores {
  flex: none;
}

.map-sheet-list strong {
  display: inline;
  font-size: 15px;
  line-height: 1.3;
}

.map-sheet-list .map-rank-meta {
  margin-top: 4px;
}

.map-sheet-list b {
  margin-left: auto;
  flex-shrink: 0;
  min-width: 2ch;
  font-size: 20px;
  letter-spacing: -0.03em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.map-sheet-list .is-extra {
  color: var(--muted);
  font-size: 13px;
}

body.is-sheet-open {
  overflow: hidden;
}

.map-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  background: none;
  border: 0;
  box-shadow: none;
}

.map-rank li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 16px;
  background: #fffdf9;
}

.map-rank li.is-rank-1 {
  background: linear-gradient(90deg, #fff4c4 0%, #fffdf3 70%);
}

.map-rank li.is-rank-2 {
  background: linear-gradient(90deg, #eef2f6 0%, #fff 70%);
}

.map-rank li.is-rank-3 {
  background: linear-gradient(90deg, #f8e6d4 0%, #fff 70%);
}

.map-rank li.is-rank-1,
.map-rank li.is-rank-2,
.map-rank li.is-rank-3 {
  position: relative;
  overflow: hidden;
}

.map-rank[data-reveal] li:not(.is-in) {
  opacity: 0;
}

.map-rank li.is-in {
  animation: rank-in 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--rank-delay, 0s);
}

.map-rank li.is-fresh {
  animation: fresh-row 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.map-rank li.is-rank-1.is-in::after,
.map-rank li.is-rank-2.is-in::after,
.map-rank li.is-rank-3.is-in::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: rank-shine 3.2s ease-in-out calc(var(--rank-delay, 0s) + 0.4s) infinite;
}

.map-rank li.is-rank-1.is-in::after {
  background: linear-gradient(110deg, transparent 32%, rgba(255, 248, 210, 0.8) 50%, transparent 68%);
}

.map-rank li.is-in .map-rank-tag {
  animation: tag-pop 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--rank-delay, 0s) + 0.18s);
}

.map-rank em {
  width: 28px;
  height: 28px;
  margin-top: 2px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4ebe4;
  color: #8a7468;
  font-style: normal;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.map-rank li.is-rank-1 em {
  background: #f5c542;
  color: #3a2a20;
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.28);
}

.map-rank li.is-rank-1.is-in em {
  animation: medal-pulse 2.2s ease-in-out 0.55s infinite;
}

.map-rank li.is-rank-2 em {
  background: #c5d0dc;
  color: #2a3340;
}

.map-rank li.is-rank-3 em {
  background: #e0a070;
  color: #3a2414;
}

.map-rank li > div,
.map-rank-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.map-rank-info {
  min-width: 0;
  flex: 1;
}

.map-rank-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.map-rank strong {
  display: inline;
  font-size: 15px;
  line-height: 1.3;
}

.map-rank-line {
  margin: 5px 0 0;
  padding-left: 2px;
  color: #c45c2d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.map-rank-meta {
  margin: 3px 0 0;
  color: #5c4a40;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.map-rank-place {
  color: #5c4a40;
  font-size: 13px;
  font-weight: 700;
}

.map-rank-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tag) 16%, #fff);
  color: var(--tag);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.map-rank small {
  color: var(--muted);
  font-size: 12px;
}

.map-rank > li > b {
  margin-left: auto;
  flex-shrink: 0;
  min-width: 2ch;
  font-size: 20px;
  letter-spacing: -0.03em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.map-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  width: min(360px, calc(100% - 32px));
  padding: 12px 14px;
  border-radius: 14px;
  background: #2a1f1a;
  color: #fff;
  font-size: 13px;
  text-align: center;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

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

.map-room-title {
  margin: 0 0 8px;
  font-size: clamp(32px, 9vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.map-host-sign {
  margin: 0 0 8px;
  color: #2a1f1a;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.map-host-sign[hidden] {
  display: none;
}

.map-grade {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 10px;
}

.map-grade-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: 0 8px 18px rgba(80, 40, 20, 0.08);
}

.map-grade-top {
  color: var(--coral-deep);
  font-size: 13px;
  font-weight: 800;
}

.map-grade-top[hidden] {
  display: none;
}

.map-conquest {
  margin: 0 0 4px;
}

.map-conquest-bar {
  height: 8px;
  border-radius: 999px;
  background: #f0ddd0;
  overflow: hidden;
}

.map-conquest-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7a59, #ff2d95);
  transition: width 0.4s ease;
}

.map-conquest-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.map-nudge {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff4ea;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.map-nudge[hidden] {
  display: none;
}

.map-throne {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 10px 8px;
  padding: 14px 16px;
  border-radius: 20px;
  background: #fffdf9;
  border: 1.5px solid color-mix(in srgb, var(--throne, #f5c542) 42%, #fff);
  box-shadow: 0 10px 24px rgba(80, 40, 20, 0.07);
}

.map-throne[hidden] {
  display: none;
}

.map-throne-crown {
  font-size: 28px;
  line-height: 1;
}

.map-throne-body {
  min-width: 0;
  flex: 1;
}

.map-throne-body small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.map-throne-body strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.map-throne-body em {
  display: block;
  margin-top: 2px;
  color: var(--throne, #c45c2d);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.map-throne b {
  flex-shrink: 0;
  color: var(--throne, #f5c542);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.map-my-rank {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff8d6;
}

.map-my-rank b {
  flex-shrink: 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.map-my-rank span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.map-field small {
  color: #b08978;
  font-weight: 600;
}

.map-mbti-result {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fffdf9;
  border: 1.5px solid color-mix(in srgb, var(--mbti, #3b82f6) 35%, #fff);
  text-align: center;
}

.map-mbti-result small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.map-mbti-result b {
  display: block;
  margin: 4px 0 2px;
  color: var(--mbti, #3b82f6);
  font-size: 32px;
  letter-spacing: -0.04em;
}

.map-mbti-result span {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.map-mbti-result p {
  margin: 8px 0 0;
  color: #c45c2d;
  font-size: 13px;
  font-weight: 800;
}

.map-mbti-head {
  margin: 8px 4px 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.map-mbti-head[hidden] {
  display: none;
}

.map-form-tight {
  margin-top: 16px;
}

.map-region-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-width: 0;
}

.map-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 4px;
  min-width: 0;
}

.map-dual-card {
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--score-color);
  animation: dual-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay, 0s);
}

.map-result.is-done .map-chem {
  transition-delay: 0.12s;
}

.map-result.is-done .map-chem-line {
  animation: line-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.map-dual-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.map-dual-card b {
  display: block;
  margin: 4px 0 2px;
  color: var(--score-color);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.map-dual-card span {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.map-folds {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
  min-width: 0;
}

.map-fold-cap {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.map-account {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #ecfdf5;
  color: #047857;
  font-size: 13px;
  font-weight: 600;
}

.map-account b {
  font-weight: 800;
}

.map-account a {
  color: #047857;
  font-weight: 800;
}

.map-kakao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fee500;
  color: #191919;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(254, 229, 0, 0.38);
}

.map-kakao svg {
  width: 18px;
  height: 18px;
  fill: #191919;
}

.map-legal {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.map-legal a {
  color: var(--coral-deep);
  font-weight: 700;
}

.map-warn {
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff4ea;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 360px) {
  .map-dual {
    grid-template-columns: 1fr;
  }
}

.map-dual-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.map-rank-scores {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex-shrink: 0;
  min-width: 0;
}

.map-score-cell {
  display: grid;
  justify-items: end;
  gap: 0;
}

.map-score-cell small {
  color: #6b5344;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.map-score-cell b {
  margin-left: 0;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 720px) {
  .map-rank-place {
    font-size: 14px;
  }

  .map-score-cell small {
    font-size: 12px;
  }

  .map-stage-caption {
    font-size: 14px;
  }
}

.map-mine {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.map-mine-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid #f0ddd0;
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(80, 40, 20, 0.06);
}

.map-mine-link span {
  min-width: 0;
  flex: 1;
}

.map-mine-link strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.map-mine-link small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.map-mine-link em {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.map-mine-link:active {
  transform: scale(0.98);
}

.map-danger {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #c2410c;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.map-sheet-remove {
  flex-shrink: 0;
  margin-top: 4px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: #fff4ea;
  color: #c2410c;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.map-capture-row {
  display: grid;
  gap: 6px;
  margin: 12px 10px 4px;
}

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

.map-save {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
  cursor: pointer;
}

.map-save:active {
  transform: scale(0.97);
}

.map-result .map-save {
  margin-top: 12px;
}

.map-share-card {
  padding: 4px 2px 8px;
}

.map-gb-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.map-gb-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 2px;
  border-top: 1px solid var(--line);
}

.map-gb-list li:first-child {
  border-top: 0;
}

.map-gb-list li > div {
  min-width: 0;
  flex: 1;
}

.map-gb-list strong {
  margin-right: 8px;
  font-size: 15px;
}

.map-gb-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.map-gb-list p {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.map-gb-list button {
  flex-shrink: 0;
  margin-top: 2px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: #fff4ea;
  color: #c2410c;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.map-gb-empty {
  color: var(--muted);
  font-size: 13px;
}

.map-gb-page {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.map-gb-page span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.map-gb-nav {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.map-gb-nav:disabled {
  opacity: 0.4;
  cursor: default;
}

@keyframes map-pulse {
  50% { transform: scale(0.96); opacity: 0.75; }
}

@keyframes map-pop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pin-in {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes pin-bob {
  0%, 100% {
    transform: translate(
      calc(-50% + var(--ox, 0px) * var(--fan, 1)),
      calc(-50% + var(--oy, 0px) * var(--fan, 1))
    );
  }
  50% {
    transform: translate(
      calc(-50% + var(--ox, 0px) * var(--fan, 1)),
      calc(-50% + var(--oy, 0px) * var(--fan, 1) - 2px)
    );
  }
}

@keyframes host-pulse {
  50% { box-shadow: 0 0 0 6px rgba(245, 197, 66, 0.16), 0 0 26px rgba(245, 197, 66, 0.95); }
}

@keyframes host-chi-hit {
  0%, 86% { transform: scale(1); }
  93% { transform: scale(1.55); }
  100% { transform: scale(1); }
}

@keyframes host-ring {
  0% { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(2.1); opacity: 0; }
}

@keyframes glow-pulse {
  50% { opacity: 0.35; transform: scale(1.25); }
}

@keyframes map-twinkle {
  0%, 100% { opacity: 0.12; transform: scale(0.7); }
  50% { opacity: 0.85; transform: scale(1.2); }
}

@keyframes map-expand-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dual-pop {
  0% { opacity: 0; transform: translateY(10px) scale(0.96); }
  70% { transform: translateY(-2px) scale(1.03); }
  100% { opacity: 1; transform: none; }
}

@keyframes line-pop {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: none; }
}

@keyframes rank-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes rank-shine {
  0%, 48% { transform: translateX(-130%); }
  68% { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}

@keyframes tag-pop {
  0% { transform: scale(0.82); opacity: 0.4; }
  70% { transform: scale(1.08); }
  100% { transform: none; opacity: 1; }
}

@keyframes medal-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.28); transform: scale(1); }
  50% { box-shadow: 0 0 0 7px rgba(245, 197, 66, 0.16); transform: scale(1.08); }
}

@keyframes fresh-row {
  0% { transform: scale(0.97); box-shadow: 0 0 0 0 rgba(255, 45, 149, 0.35); }
  60% { transform: scale(1.02); box-shadow: 0 0 0 6px rgba(255, 45, 149, 0.12); }
  100% { transform: none; box-shadow: none; }
}

@keyframes fresh-pin {
  0%, 100% { filter: none; }
  40% { filter: drop-shadow(0 0 8px #ff2d95); }
}

@media (prefers-reduced-motion: reduce) {
  .korea-map,
  .cluster-pin,
  .host-pin,
  .host-dot,
  .host-ring,
  .cluster-glow,
  .cluster-dot,
  .chi-spark,
  .pin-name,
  .map-spark,
  .map-sheet-panel,
  .map-sheet-backdrop,
  .map-dual-card,
  .map-chem-line,
  .map-rank li.is-in,
  .map-rank li.is-fresh,
  .map-rank li.is-rank-1.is-in em,
  .map-rank li.is-rank-1.is-in::after,
  .map-rank li.is-rank-2.is-in::after,
  .map-rank li.is-rank-3.is-in::after,
  .map-rank-tag,
  .pin-name.is-fresh,
  .korea-wrap.is-expanded {
    animation: none !important;
    transition: none !important;
  }

  .chi-spark {
    display: none !important;
  }

  .korea-canvas.is-ready .korea-map {
    opacity: 1;
    transform: none;
  }

  .cluster-pin,
  .host-pin {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
