:root {
  --ink: #06163a;
  --ink-2: #0a2b72;
  --blue: #004ea8;
  --blue-2: #006ee6;
  --blue-3: #0b8fff;
  --cyan: #58c7ff;
  --teal: #42a9ff;
  --yellow: #7dd3ff;
  --orange: #3aa6ff;
  --red: #4b83ff;
  --green: #37b5ff;
  --purple: #5f8cff;
  --white: #ffffff;
  --paper: #f7fbff;
  --muted: #6a7890;
  --line: rgba(255, 255, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.24);
  --shadow: 0 32px 90px rgba(3, 18, 48, 0.34);
  --shadow-soft: 0 18px 50px rgba(6, 31, 76, 0.18);
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1200px;
  --safe-top: env(safe-area-inset-top, 0px);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 12%, rgba(25, 103, 210, 0.76), transparent 34rem),
    radial-gradient(circle at 80% 6%, rgba(88, 199, 255, 0.28), transparent 30rem),
    linear-gradient(145deg, #071b3a 0%, #0a2f75 38%, #073850 64%, #071b3a 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.no-motion *, body.no-motion *::before, body.no-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--yellow); color: var(--ink); }

.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: -4;
  opacity: 0.72;
}

.aurora {
  position: fixed;
  inset: -20%;
  z-index: -5;
  background:
    conic-gradient(from 220deg at 50% 50%, rgba(18, 184, 215, .18), rgba(88, 199, 255, .12), rgba(124, 58, 237, .16), rgba(24, 181, 155, .18), rgba(18, 184, 215, .18));
  filter: blur(100px);
  opacity: .95;
  animation: auroraSpin 28s linear infinite;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .075;
  z-index: 30;
  background-image:
    radial-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 28px 28px, 11px 11px;
  mix-blend-mode: overlay;
}

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

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #071b3a, #103f97 65%, #071b3a);
  transition: opacity .65s ease, visibility .65s ease;
}
.site-loader.loaded { opacity: 0; visibility: hidden; }
.loader-orbit {
  position: relative;
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  perspective: 900px;
}
.loader-orbit span {
  position: absolute;
  inset: 10px;
  border: 2px solid transparent;
  border-top-color: var(--yellow);
  border-left-color: rgba(18,184,215,.9);
  border-radius: 50%;
  animation: orbitLoader 1.6s linear infinite;
}
.loader-orbit span:nth-child(2) { inset: 28px; animation-duration: 2.2s; transform: rotateX(70deg); border-top-color: var(--cyan); }
.loader-orbit span:nth-child(3) { inset: 46px; animation-duration: 1.15s; transform: rotateY(70deg); border-top-color: var(--white); }
.loader-orbit strong { font-weight: 900; letter-spacing: -.04em; }
@keyframes orbitLoader { to { transform: rotate(360deg); } }

.site-header {
  position: fixed;
  top: calc(14px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 28px), var(--max));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 14px 12px 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(6, 24, 58, .58);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(0,0,0,.22);
  overflow: hidden;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.17), transparent 26%, transparent 70%, rgba(255,255,255,.12));
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  position: relative;
  z-index: 1;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--yellow), #0b8fff);
  color: var(--blue);
  font-size: 2rem;
  font-weight: 1000;
  box-shadow: 0 12px 24px rgba(88, 199, 255, .25);
  -webkit-text-stroke: 2px #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: .98rem; font-weight: 900; }
.brand-text small { color: #bcecff; font-weight: 800; font-size: .78rem; }
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
  position: relative;
  z-index: 1;
}
.desktop-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: rgba(255,255,255,.84);
  font-weight: 800;
  font-size: .92rem;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.desktop-nav a:hover { color: var(--ink); background: var(--yellow); transform: translateY(-2px); }
.header-actions { display: flex; gap: 8px; align-items: center; position: relative; z-index: 1; }
.ghost-btn, .menu-btn {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 999px;
  min-height: 42px;
}
.ghost-btn { padding: 0 14px; font-weight: 900; }
.menu-btn { width: 44px; display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.menu-btn span { width: 18px; height: 2px; background: #fff; border-radius: 999px; transition: transform .25s ease; }
.scroll-meter {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--cyan), var(--teal));
}
.mobile-drawer {
  position: fixed;
  top: 88px;
  right: 14px;
  z-index: 79;
  width: min(320px, calc(100vw - 28px));
  padding: 16px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(6, 24, 58, .9);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transform: translateY(-14px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}
.mobile-drawer.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.mobile-drawer a { display: block; padding: 14px 16px; border-radius: 18px; font-weight: 900; color: #e5f6ff; }
.mobile-drawer a:hover { background: rgba(255,255,255,.12); }

.section-shell {
  width: min(calc(100% - 28px), var(--max));
  margin: 0 auto;
  position: relative;
}
.hero { padding: 138px 0 68px; min-height: 100svh; display: grid; align-items: center; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
  gap: 42px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(88, 199, 255, .14);
  color: #d6f2ff;
  font-size: .84rem;
  font-weight: 1000;
  letter-spacing: .02em;
  border: 1px solid rgba(88, 199, 255, .24);
}
.eyebrow::before { content: "✦"; color: var(--yellow); }
h1, h2, h3 { margin: 0; letter-spacing: -.065em; line-height: 1.04; }
h1 { font-size: clamp(3.1rem, 7vw, 6.6rem); font-weight: 1000; }
h2 { font-size: clamp(2.1rem, 5vw, 4.1rem); font-weight: 1000; }
h3 { font-size: clamp(1.3rem, 2vw, 2rem); font-weight: 950; }
.gradient-text {
  background: linear-gradient(90deg, #fff, var(--yellow), #bff6ff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 14px 40px rgba(88,199,255,.18));
}
.hero-lead {
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.78;
  color: rgba(255,255,255,.82);
  max-width: 720px;
  margin: 22px 0 0;
  word-break: keep-all;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.primary-btn, .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 1000;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.primary-btn {
  background: linear-gradient(135deg, var(--yellow), #006ee6);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(88, 199, 255, .28), inset 0 1px 0 rgba(255,255,255,.6);
}
.primary-btn:hover { transform: translateY(-3px); box-shadow: 0 24px 56px rgba(88, 199, 255, .36), inset 0 1px 0 rgba(255,255,255,.7); }
.secondary-btn {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(12px);
}
.secondary-btn:hover { background: rgba(255,255,255,.18); transform: translateY(-3px); }
.primary-btn.small, .secondary-btn.small { min-height: 42px; padding: 0 16px; font-size: .92rem; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.hero-stats div {
  min-width: 128px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
}
.hero-stats strong { display: block; font-size: 2rem; font-weight: 1000; color: var(--yellow); line-height: 1; }
.hero-stats span { display: block; color: rgba(255,255,255,.72); font-weight: 800; margin-top: 6px; }

.hero-stage { min-height: 640px; display: grid; place-items: center; }
.stage-perspective {
  width: min(100%, 560px);
  aspect-ratio: 1 / 1.05;
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
}
.policy-globe {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: slowFloat 6s ease-in-out infinite;
  z-index: 2;
}
.globe-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2);
  box-shadow: inset 0 0 52px rgba(18,184,215,.2), 0 0 70px rgba(18,184,215,.2);
  z-index: 1;
}
.ring-a { transform: rotateX(68deg) rotateZ(0deg); animation: spin3d 11s linear infinite; border-top-color: var(--yellow); }
.ring-b { transform: rotateY(70deg) rotateZ(40deg); animation: spin3d 15s linear infinite reverse; border-left-color: var(--cyan); }
.ring-c { transform: rotateX(35deg) rotateY(35deg); animation: spin3d 20s linear infinite; border-right-color: var(--teal); }
.globe-core {
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.34), transparent 20%),
    linear-gradient(135deg, #0f5fbd 0%, #1594dc 52%, #5bd6ff 100%);
  border: 2px solid rgba(255,255,255,.34);
  box-shadow: 0 24px 70px rgba(0,0,0,.30), inset 0 0 28px rgba(255,255,255,.18);
  transform: none;
  z-index: 4;
  overflow: hidden;
  filter: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
.globe-core span {
  display: block;
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  font-weight: 1000;
  color: #f3fbff;
  line-height: 1.1;
}
.globe-core strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(2.25rem, 4.5vw, 3.65rem);
  line-height: .98;
  color: #ffffff;
  -webkit-text-stroke: 0;
}
.orbit-dot {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 70px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  font-style: normal;
  font-weight: 1000;
  box-shadow: 0 16px 30px rgba(0,0,0,.22);
  z-index: 5;
}
.dot-1 { left: 4%; top: 42%; animation: bob 4.5s ease-in-out infinite; }
.dot-2 { right: 2%; top: 18%; animation: bob 5.2s ease-in-out infinite .4s; }
.dot-3 { right: 10%; bottom: 14%; animation: bob 4.8s ease-in-out infinite .2s; }
.dot-4 { left: 11%; bottom: 18%; animation: bob 5.6s ease-in-out infinite .8s; }
.floating-leaflet-card {
  position: absolute;
  width: 190px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.12);
  transform-style: preserve-3d;
  z-index: 1;
}
.floating-leaflet-card img { width: 100%; height: auto; }
.card-front { right: 4%; top: 4%; transform: rotateY(-18deg) rotateZ(6deg) translateZ(90px); animation: leafletFloat 5.4s ease-in-out infinite; }
.card-back { left: 1%; bottom: 4%; transform: rotateY(24deg) rotateZ(-7deg) translateZ(60px); animation: leafletFloat 6.2s ease-in-out infinite .6s; }
@keyframes spin3d { to { transform: rotateX(68deg) rotateZ(360deg); } }
@keyframes slowFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes leafletFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes bob { 0%,100% { transform: translateY(0) translateZ(20px); } 50% { transform: translateY(-16px) translateZ(44px); } }
.quick-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
.quick-strip span {
  flex: 1 1 130px;
  text-align: center;
  padding: 12px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.09);
  font-weight: 1000;
  color: #ecfbff;
}

.section-heading { max-width: 820px; margin-bottom: 34px; }
.section-heading p:not(.eyebrow) { margin: 16px 0 0; color: rgba(255,255,255,.74); line-height: 1.7; font-weight: 700; word-break: keep-all; }
.rank-section, .official-section, .matrix-section, .towns-section, .leaflet-section, .proof-section, .share-section { padding: 82px 0; }
.rank-section .section-heading h2 {
  color: #fff;
}
.rank-layout {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: center;
}
.orbit-controls { display: grid; gap: 12px; justify-items: center; }
.round-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: 2.1rem;
  line-height: 1;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, background .25s ease;
}
.round-btn:hover { transform: translateY(-4px) scale(1.04); background: rgba(255,255,255,.2); }
.policy-orbit-wrap {
  min-height: 540px;
  perspective: 1400px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 50% 50%, rgba(88,199,255,.12), transparent 30%),
    rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
  touch-action: none;
}
.policy-orbit {
  position: relative;
  width: 300px;
  height: 390px;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.policy-card-3d {
  position: absolute;
  inset: 0;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.28);
  background:
    linear-gradient(145deg, rgba(255,255,255,.2), rgba(255,255,255,.08)),
    radial-gradient(circle at 10% 10%, var(--card-color, rgba(88,199,255,.22)), transparent 45%);
  backdrop-filter: none;
  box-shadow: 0 30px 90px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.22);
  transform-style: preserve-3d;
  transition: filter .3s ease, opacity .3s ease;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
.policy-card-3d::before {
  content: "";
  position: absolute;
  inset: -60% -30% auto auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--card-color, rgba(88,199,255,.36));
  filter: blur(24px);
  opacity: .55;
}
.policy-card-3d::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.22), transparent 38%);
  transform: translateX(-120%);
  transition: transform .75s ease;
}
.policy-card-3d:hover::after { transform: translateX(120%); }
.policy-card-3d:not(.active) { filter: saturate(.94); opacity: .82; }
.policy-card-3d.active {
  opacity: 1;
  filter: none;
  border-color: rgba(215,243,255,.52);
  background:
    linear-gradient(145deg, rgba(31, 76, 151, .96), rgba(9, 35, 88, .94)),
    radial-gradient(circle at 12% 12%, var(--card-color, rgba(88,199,255,.28)), transparent 48%);
  box-shadow: 0 26px 76px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.20);
}
.policy-card-3d .rank-no {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--yellow);
  color: var(--blue);
  font-weight: 1000;
  font-size: 1.8rem;
  box-shadow: 0 14px 28px rgba(88,199,255,.24);
  -webkit-text-stroke: 1px rgba(255,255,255,.55);
}
.policy-card-3d h3 {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  font-size: 1.72rem;
  line-height: 1.12;
  word-break: keep-all;
  color: #fff;
}
.policy-card-3d p { position: relative; z-index: 1; color: rgba(255,255,255,.94); line-height: 1.62; font-weight: 800; margin: 16px 0 0; word-break: keep-all; }
.policy-card-3d .card-tag {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 1;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.2);
  font-weight: 1000;
  color: #d6f2ff;
}
.rank-panel, .town-detail {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}
.panel-kicker { display: inline-flex; color: var(--yellow); font-weight: 1000; font-size: .82rem; margin-bottom: 10px; }
.rank-panel p { color: rgba(255,255,255,.76); line-height: 1.65; font-weight: 700; word-break: keep-all; }
.impact-bars { display: grid; gap: 12px; margin: 20px 0; }
.impact-bar span { display: flex; justify-content: space-between; gap: 12px; font-weight: 900; color: #dff8ff; margin-bottom: 7px; font-size: .86rem; }
.impact-bar i { display: block; height: 10px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; }
.impact-bar b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--yellow), var(--cyan)); width: var(--w, 50%); }

.official-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.official-card {
  min-height: 250px;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.17);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  transform-style: preserve-3d;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.official-card:hover { transform: translateY(-8px) rotateX(5deg) rotateY(-5deg); background: rgba(255,255,255,.15); border-color: rgba(88,199,255,.4); }
.official-card::before {
  content: attr(data-no);
  position: absolute;
  right: -4px;
  bottom: -34px;
  color: rgba(255,255,255,.08);
  font-size: 8rem;
  line-height: 1;
  font-weight: 1000;
}
.official-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(88,199,255,.16);
  color: var(--yellow);
  font-weight: 1000;
  border: 1px solid rgba(88,199,255,.24);
  margin-bottom: 14px;
}
.official-card h3 { font-size: 1.28rem; line-height: 1.22; word-break: keep-all; }
.official-card p { color: rgba(255,255,255,.72); line-height: 1.58; font-weight: 700; margin: 12px 0 0; word-break: keep-all; }

.tool-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  margin-bottom: 22px;
}
.search-box { flex: 1 1 320px; display: flex; align-items: center; gap: 12px; }
.search-box span { font-weight: 1000; color: var(--yellow); }
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255,255,255,.92);
  font-weight: 800;
}
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.filter-pills button {
  min-height: 42px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.84);
  font-weight: 900;
}
.filter-pills button.active { background: var(--yellow); color: var(--ink); }
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.matrix-card {
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.16);
  background:
    linear-gradient(150deg, rgba(255,255,255,.15), rgba(255,255,255,.07)),
    radial-gradient(circle at 92% 0%, var(--card-color, rgba(18,184,215,.2)), transparent 44%);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  transform-style: preserve-3d;
  transition: transform .25s ease, border-color .25s ease;
  min-height: 262px;
  display: flex;
  flex-direction: column;
}
.matrix-card:hover { transform: translateY(-8px) rotateX(2deg); border-color: rgba(88,199,255,.38); }
.matrix-card .source-tag {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 13px;
}
.matrix-card .source-tag span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 1000;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.14);
  color: #eafcff;
}
.matrix-card h3 { font-size: 1.28rem; line-height: 1.25; }
.matrix-card p { color: rgba(255,255,255,.72); line-height: 1.6; font-weight: 700; margin: 12px 0; word-break: keep-all; }
.matrix-card ul { margin: auto 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.matrix-card li { position: relative; padding-left: 18px; color: rgba(255,255,255,.86); line-height: 1.45; font-weight: 750; word-break: keep-all; }
.matrix-card li::before { content: ""; position: absolute; left: 0; top: .58em; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 14px var(--yellow); }
.empty-state { grid-column: 1 / -1; padding: 44px; border-radius: 26px; background: rgba(255,255,255,.1); text-align: center; color: rgba(255,255,255,.72); font-weight: 800; }

.towns-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 24px;
  align-items: center;
}
.town-orbit {
  min-height: 560px;
  position: relative;
  perspective: 1000px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at center, rgba(88,199,255,.16), transparent 30%),
    linear-gradient(140deg, rgba(255,255,255,.11), rgba(255,255,255,.05));
  overflow: hidden;
}
.town-orbit::before {
  content: "보령";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 156px;
  height: 156px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--yellow), #006ee6);
  color: var(--blue);
  font-weight: 1000;
  font-size: 2.2rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  z-index: 1;
}
.town-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: 110px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.13);
  color: #fff;
  font-weight: 1000;
  box-shadow: 0 20px 50px rgba(0,0,0,.24);
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  transition: transform .35s ease, background .25s ease, color .25s ease;
  z-index: 2;
}
.town-chip:hover, .town-chip.active { background: var(--yellow); color: var(--ink); }
.town-detail { min-height: 480px; }
.town-detail h3 { font-size: 2.4rem; color: var(--yellow); }
.town-detail ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.town-detail li {
  padding: 13px 14px 13px 38px;
  border-radius: 16px;
  background: rgba(255,255,255,.1);
  position: relative;
  color: rgba(255,255,255,.88);
  line-height: 1.5;
  font-weight: 800;
  word-break: keep-all;
}
.town-detail li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 12px;
  color: var(--yellow);
  font-weight: 1000;
}

.book-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.book-controls span { min-width: 90px; text-align: center; font-weight: 1000; color: var(--yellow); }
.flipbook-scene {
  height: min(98vw, 960px);
  min-height: 720px;
  perspective: 1800px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 50% 55%, rgba(88,199,255,.12), transparent 38%),
    rgba(255,255,255,.06);
  overflow: hidden;
}
.flipbook {
  position: relative;
  width: min(660px, 90vw);
  height: min(903px, 123vw);
  max-height: 920px;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.book-page {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 100px rgba(0,0,0,.36);
  border: 1px solid rgba(255,255,255,.32);
  backface-visibility: hidden;
  transform-origin: left center;
  transition: transform .65s cubic-bezier(.2,.8,.2,1), opacity .65s ease, filter .65s ease;
}
.book-page img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}
.book-page::after {
  content: attr(data-page);
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(7,27,58,.82);
  color: #fff;
  font-weight: 1000;
  font-size: .8rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 20px;
  bottom: 20px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(var(--yellow), var(--cyan), var(--teal));
}
.timeline-item {
  position: relative;
  padding: 18px 20px 18px 72px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}
.timeline-item::before {
  content: attr(data-year);
  position: absolute;
  left: 0;
  top: 18px;
  transform: translateX(0);
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--blue);
  font-weight: 1000;
  box-shadow: 0 16px 34px rgba(88,199,255,.22);
}
.timeline-item h3 { font-size: 1.22rem; }
.timeline-item p { margin: 8px 0 0; color: rgba(255,255,255,.72); font-weight: 700; line-height: 1.58; word-break: keep-all; }

.share-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 90% 20%, rgba(88,199,255,.22), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.share-card p:not(.eyebrow) { color: rgba(255,255,255,.78); font-weight: 800; line-height: 1.7; word-break: keep-all; }
.site-footer {
  width: min(calc(100% - 28px), var(--max));
  margin: 0 auto;
  padding: 48px 0 60px;
  color: rgba(255,255,255,.58);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 800;
}

.policy-modal, .page-modal {
  width: min(860px, calc(100% - 24px));
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  padding: 0;
  color: #fff;
  background: rgba(7, 27, 58, .92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
}
.policy-modal::backdrop, .page-modal::backdrop { background: rgba(2,8,22,.72); backdrop-filter: blur(8px); }
.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
}
.modal-body { padding: 34px; }
.modal-body .source-tag { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.modal-body .source-tag span { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); color: #d6f2ff; font-weight: 1000; }
.modal-body h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-right: 42px; }
.modal-body p { color: rgba(255,255,255,.78); font-weight: 800; line-height: 1.75; word-break: keep-all; }
.modal-body ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.modal-body li { padding: 14px 16px 14px 42px; border-radius: 16px; background: rgba(255,255,255,.1); position: relative; font-weight: 800; line-height: 1.5; }
.modal-body li::before { content: "✓"; position: absolute; left: 16px; top: 13px; color: var(--yellow); font-weight: 1000; }
.page-modal { width: min(1120px, calc(100% - 24px)); background: transparent; border: 0; box-shadow: none; }
.page-modal img { width: 100%; max-height: 96vh; object-fit: contain; border-radius: 22px; box-shadow: var(--shadow); }
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 100;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  padding: 13px 18px;
  border-radius: 999px;
  background: rgba(88,199,255,.96);
  color: var(--ink);
  font-weight: 1000;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  transition: .25s ease;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .menu-btn { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 520px; }
  .rank-layout { grid-template-columns: 1fr; }
  .orbit-controls { display: flex; justify-content: center; order: 2; }
  .rank-panel { order: 3; }
  .official-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .matrix-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .towns-stage { grid-template-columns: 1fr; }
  .town-detail { min-height: 0; }
  .tool-bar { flex-direction: column; align-items: stretch; }
  .filter-pills { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .site-header { top: calc(10px + var(--safe-top)); width: calc(100% - 20px); padding: 9px; }
  .brand-mark { width: 42px; height: 42px; font-size: 1.7rem; }
  .brand-text strong { font-size: .9rem; }
  .ghost-btn { min-height: 40px; padding: 0 10px; font-size: .82rem; }
  .hero { padding-top: 116px; min-height: auto; }
  h1 { font-size: clamp(2.65rem, 15vw, 4.4rem); }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-stage { min-height: 460px; }
  .floating-leaflet-card { width: 145px; }
  .globe-core { inset: 23%; }
  .policy-orbit-wrap { min-height: 480px; }
  .policy-orbit { width: 258px; height: 360px; }
  .policy-card-3d { padding: 19px; }
  .policy-card-3d h3 { font-size: 1.45rem; }
  .official-grid, .matrix-grid { grid-template-columns: 1fr; }
  .town-orbit { min-height: 520px; }
  .town-chip { min-width: 92px; padding: 12px 13px; font-size: .88rem; }
  .flipbook-scene { min-height: 430px; height: 62vh; }
  .flipbook { width: min(320px, 78vw); height: min(438px, 106vw); }
  .share-card { grid-template-columns: 1fr; }
  .site-footer { display: block; }
  .modal-body { padding: 28px 20px; }
}

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

/* final polish */
.policy-card-3d { text-align: left; color: #fff; cursor: pointer; }
.official-card, .matrix-card { cursor: pointer; }
.book-page { padding: 0; cursor: zoom-in; color: inherit; }
.policy-modal, .page-modal { position: relative; }
.ring-a { animation-name: spinA; }
.ring-b { animation-name: spinB; }
.ring-c { animation-name: spinC; }
@keyframes spinA { to { transform: rotateX(68deg) rotateZ(360deg); } }
@keyframes spinB { to { transform: rotateY(70deg) rotateZ(400deg); } }
@keyframes spinC { to { transform: rotateX(35deg) rotateY(35deg) rotateZ(360deg); } }


/* === Blue unified tone + mobile performance patch === */
body {
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 110, 230, 0.70), transparent 32rem),
    radial-gradient(circle at 82% 4%, rgba(88, 199, 255, 0.28), transparent 28rem),
    radial-gradient(circle at 50% 82%, rgba(0, 78, 168, 0.40), transparent 34rem),
    linear-gradient(145deg, #06163a 0%, #0a2f75 42%, #082052 72%, #06163a 100%);
}
::selection { background: #7dd3ff; color: #06163a; }
.aurora {
  background: conic-gradient(from 220deg at 50% 50%, rgba(0, 78, 168, .32), rgba(11, 143, 255, .20), rgba(88, 199, 255, .22), rgba(0, 78, 168, .28), rgba(0, 110, 230, .26));
}
.site-loader { background: linear-gradient(135deg, #06163a, #004ea8 62%, #06163a); }
.brand-mark,
.policy-card-3d .rank-no,
.town-orbit::before,
.timeline-item::before {
  background: linear-gradient(135deg, #ffffff, #d7f3ff 44%, #58c7ff 100%);
  color: #004ea8;
  box-shadow: 0 14px 32px rgba(88, 199, 255, .28);
  -webkit-text-stroke: 0;
}
.brand-text small { color: #d7f3ff; }
.desktop-nav a:hover,
.filter-pills button.active,
.town-chip:hover,
.town-chip.active {
  color: #06163a;
  background: #d7f3ff;
}
.scroll-meter,
.impact-bar b,
.timeline::before {
  background: linear-gradient(90deg, #ffffff, #58c7ff, #006ee6);
}
.eyebrow {
  background: rgba(88, 199, 255, .14);
  color: #d6f2ff;
  border-color: rgba(88, 199, 255, .26);
}
.eyebrow::before { color: #7dd3ff; }
.gradient-text {
  background: linear-gradient(90deg, #ffffff, #d7f3ff, #58c7ff, #0b8fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 14px 40px rgba(88,199,255,.18));
}
.primary-btn {
  background: linear-gradient(135deg, #ffffff, #8bd9ff 48%, #0b8fff 100%);
  color: #06163a;
  box-shadow: 0 18px 42px rgba(88,199,255,.28), inset 0 1px 0 rgba(255,255,255,.8);
}
.primary-btn:hover { box-shadow: 0 24px 56px rgba(88,199,255,.34), inset 0 1px 0 rgba(255,255,255,.85); }
.hero-stats strong,
.panel-kicker,
.search-box span,
.book-controls span,
.town-detail h3 { color: #9fe4ff; }
.policy-card-3d .card-tag { color: #d7f3ff; }
.matrix-card li::before,
.town-detail li::before,
.modal-body li::before { background: #7dd3ff; color: #7dd3ff; box-shadow: 0 0 14px #7dd3ff; }
.globe-core strong { color: #ffffff; -webkit-text-stroke: 0; }
.ring-a { border-top-color: #9fe4ff; }
.ring-b { border-left-color: #58c7ff; }
.ring-c { border-right-color: #0b8fff; }
.policy-orbit-wrap,
.town-orbit,
.flipbook-scene {
  background:
    radial-gradient(circle at 50% 50%, rgba(88,199,255,.13), transparent 30%),
    rgba(255,255,255,.06);
}
.share-card { background: radial-gradient(circle at 90% 20%, rgba(88,199,255,.20), transparent 28%), linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.08)); }
.toast { background: rgba(215, 243, 255, .96); color: #06163a; }

.keep-phrase { white-space: nowrap; word-break: keep-all; }
.proof-featured { padding-top: 36px; }
.proof-heading h2 { letter-spacing: -.075em; }
.proof-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.proof-summary-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(150deg, rgba(255,255,255,.15), rgba(255,255,255,.07));
  box-shadow: var(--shadow-soft);
}
.proof-summary-card strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #d7f3ff;
  line-height: 1;
  font-weight: 1000;
}
.proof-summary-card span { display: block; margin-top: 8px; color: rgba(255,255,255,.75); font-weight: 850; line-height: 1.4; word-break: keep-all; }
.achievement-timeline-shell {
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  overflow: hidden;
}
.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.timeline-head h3 { font-size: clamp(1.25rem, 2vw, 1.9rem); }
.timeline-controls { display: flex; gap: 8px; }
.small-round { width: 44px; height: 44px; font-size: 1.6rem; }
.achievement-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 18px;
  overscroll-behavior-x: contain;
}
.achievement-track::-webkit-scrollbar { height: 8px; }
.achievement-track::-webkit-scrollbar-thumb { background: rgba(215,243,255,.4); border-radius: 99px; }
.achievement-card {
  flex: 0 0 min(420px, 84vw);
  scroll-snap-align: start;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.07));
  box-shadow: var(--shadow-soft);
  transform: translateZ(0);
}
.achievement-card .year-badge {
  display: inline-grid;
  place-items: center;
  min-width: 56px;
  height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #8bd9ff);
  color: #004ea8;
  font-weight: 1000;
  margin-bottom: 14px;
}
.achievement-card h3 { font-size: 1.35rem; line-height: 1.22; word-break: keep-all; }
.achievement-card p { color: rgba(255,255,255,.76); line-height: 1.65; font-weight: 750; word-break: keep-all; }

/* Radar hexagon */
.impact-radar { margin: 20px 0 22px; }
.radar-wrap {
  width: 100%;
  max-width: 310px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.radar-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.radar-grid { fill: none; stroke: rgba(255,255,255,.20); stroke-width: 1; }
.radar-axis { stroke: rgba(255,255,255,.18); stroke-width: 1; }
.radar-shape { fill: rgba(88,199,255,.34); stroke: #d7f3ff; stroke-width: 2.6; filter: drop-shadow(0 8px 18px rgba(88,199,255,.22)); }
.radar-point { fill: #ffffff; stroke: #58c7ff; stroke-width: 2; }
.radar-label {
  fill: #e8f9ff;
  font-size: 10px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: central;
}
.radar-value {
  fill: #9fe4ff;
  font-size: 9px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: central;
}
.radar-note {
  text-align: center;
  color: rgba(255,255,255,.70);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.45;
}

/* Remove old bar layout if cached markup appears */
.impact-bars { display: none; }

/* Smoother rendering */
.policy-card-3d,
.matrix-card,
.official-card,
.achievement-card,
.book-page,
.floating-leaflet-card {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

@media (max-width: 720px), (pointer: coarse) {
  html { scroll-behavior: auto; }
  body.mobile-lite .particle-canvas,
  body.mobile-lite .noise { display: none !important; }
  body.mobile-lite .aurora { animation: none !important; filter: blur(36px); opacity: .42; }
  body.mobile-lite .floating-leaflet-card.card-back { display: none; }
  body.mobile-lite .policy-globe,
  body.mobile-lite .globe-ring,
  body.mobile-lite .orbit-dot,
  body.mobile-lite .floating-leaflet-card { animation: none !important; }
  .site-header { backdrop-filter: none; background: rgba(6, 22, 58, .92) !important; }
  .brand-text strong { font-size: .82rem; }
  .brand-text small { display: none; }
  .hero { padding-top: 108px; }
  .hero-grid { gap: 20px; }
  .hero-stage { min-height: 280px; }
  .stage-perspective { width: min(100%, 330px); }
  .quick-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); backdrop-filter: none; }
  .proof-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-head { align-items: flex-start; }
  .timeline-head .timeline-controls { flex-shrink: 0; }

  .rank-layout { display: block; }
  .orbit-controls { display: none !important; }
  .policy-orbit-wrap {
    min-height: 0;
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 24px;
    padding: 12px 0;
    touch-action: pan-x;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    backdrop-filter: none;
  }
  .policy-orbit-wrap::-webkit-scrollbar { height: 0; }
  .policy-orbit {
    position: relative;
    display: flex;
    gap: 14px;
    width: max-content !important;
    height: auto !important;
    transform: none !important;
    transition: none !important;
    transform-style: flat !important;
    padding: 4px 12px 6px;
  }
  .policy-card-3d {
    position: relative !important;
    inset: auto !important;
    flex: 0 0 min(82vw, 340px);
    min-height: 340px;
    transform: none !important;
    transition: opacity .2s ease, border-color .2s ease !important;
    scroll-snap-align: center;
    backdrop-filter: none !important;
    background: linear-gradient(155deg, rgba(255,255,255,.18), rgba(255,255,255,.08)), radial-gradient(circle at 100% 0%, var(--card-color, rgba(88,199,255,.2)), transparent 48%) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.20);
  }
  .policy-card-3d:not(.active) { opacity: .78; filter: none !important; }
  .policy-card-3d.active { opacity: 1; border-color: rgba(215,243,255,.54); }
  .policy-card-3d::after { display: none; }
  .rank-panel { margin-top: 16px; backdrop-filter: none; }
  .radar-wrap { max-width: 275px; }
  .official-card,
  .matrix-card,
  .town-chip,
  .town-detail,
  .share-card,
  .timeline-item,
  .achievement-timeline-shell { backdrop-filter: none !important; }
  .town-orbit {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 18px;
    perspective: none;
  }
  .town-orbit::before { display: none; }
  .town-chip {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    min-width: 0;
    width: 100%;
    backdrop-filter: none;
  }
  .flipbook-scene { min-height: 390px; height: 58vh; }
  .book-page { transition-duration: .28s; }
}

@media (max-width: 420px) {
  .keep-phrase { font-size: clamp(1.55rem, 7.8vw, 2.2rem); }
  .proof-summary-grid { grid-template-columns: 1fr; }
  .achievement-card { flex-basis: 86vw; }
  .hero-lead { font-size: 1rem; }
}
.matrix-card li::before { background: #7dd3ff !important; box-shadow: 0 0 14px #7dd3ff !important; }
.town-detail li::before,
.modal-body li::before { background: transparent !important; color: #7dd3ff !important; box-shadow: none !important; }
@media (max-width: 720px), (pointer: coarse) {
  .policy-card-3d,
  .matrix-card,
  .official-card,
  .achievement-card,
  .book-page,
  .floating-leaflet-card { will-change: auto !important; }
  .policy-card-3d.active { will-change: opacity; }
}

/* === Mobile button navigation + Galaxy layout fix v4 === */
.mobile-rank-tabs {
  display: none;
}
.radar-metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.radar-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  padding: 8px 9px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  font-weight: 900;
}
.radar-metric span {
  min-width: 0;
  color: rgba(255,255,255,.82);
  font-size: .78rem;
  line-height: 1.18;
  word-break: keep-all;
  overflow-wrap: normal;
}
.radar-metric strong {
  flex: 0 0 auto;
  color: #9fe4ff;
  font-size: .78rem;
  line-height: 1;
}
.radar-note { margin-top: 2px; }

@media (max-width: 720px), (pointer: coarse) {
  .rank-section { padding-top: 62px; }
  .rank-section .section-heading p:not(.eyebrow) { font-size: .98rem; }
  .rank-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .mobile-rank-tabs {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    order: 1;
    padding: 9px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.07);
  }
  .rank-tab {
    min-width: 0;
    min-height: 46px;
    padding: 4px 2px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.09);
    color: rgba(255,255,255,.80);
    display: grid;
    place-items: center;
    gap: 1px;
  }
  .rank-tab strong {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 9px;
    background: rgba(255,255,255,.12);
    font-size: .86rem;
    line-height: 1;
  }
  .rank-tab span {
    display: none;
  }
  .rank-tab.active {
    background: linear-gradient(135deg, #ffffff, #9fe4ff 58%, #0b8fff);
    color: #06163a;
    border-color: rgba(255,255,255,.72);
    box-shadow: 0 10px 26px rgba(88,199,255,.24);
  }
  .rank-tab.active strong {
    background: #004ea8;
    color: #fff;
  }
  .orbit-controls {
    display: flex !important;
    justify-content: center;
    gap: 14px;
    order: 2;
    margin: 2px 0 4px;
  }
  .orbit-controls .round-btn {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.26);
    box-shadow: 0 12px 28px rgba(0,0,0,.20);
  }
  .policy-orbit-wrap {
    order: 3;
    min-height: 0 !important;
    display: block !important;
    overflow: visible !important;
    padding: 0 !important;
    touch-action: manipulation !important;
    scroll-snap-type: none !important;
    border-radius: 24px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .policy-orbit {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    transform: none !important;
    transition: none !important;
    transform-style: flat !important;
  }
  .policy-card-3d {
    display: none !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 20px 18px 62px !important;
    border-radius: 24px !important;
    transform: none !important;
    transition: opacity .18s ease !important;
    scroll-snap-align: none !important;
    opacity: 1 !important;
    filter: none !important;
    overflow: hidden !important;
  }
  .policy-card-3d.active {
    display: block !important;
    border-color: rgba(215,243,255,.55) !important;
  }
  .policy-card-3d .rank-no {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    font-size: 1.45rem;
  }
  .policy-card-3d h3 {
    margin-top: 14px;
    font-size: clamp(1.35rem, 6.2vw, 1.75rem) !important;
  }
  .policy-card-3d p {
    font-size: .96rem;
    line-height: 1.58;
  }
  .policy-card-3d .card-tag {
    left: 18px;
    bottom: 18px;
    font-size: .82rem;
  }
  .rank-panel {
    order: 4;
    margin-top: 4px !important;
    padding: 20px 16px !important;
    overflow: hidden;
  }
  .impact-radar { margin: 14px 0 18px !important; }
  .radar-wrap {
    max-width: 100% !important;
    gap: 8px !important;
  }
  .radar-wrap svg {
    width: min(230px, 66vw) !important;
    margin: 0 auto;
    overflow: visible !important;
  }
  .radar-metric-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .radar-metric {
    padding: 8px 8px;
    border-radius: 12px;
  }
  .radar-metric span { font-size: .76rem; }
  .radar-metric strong { font-size: .76rem; }
  .radar-note {
    font-size: .76rem !important;
    line-height: 1.35 !important;
  }
}

@media (max-width: 360px) {
  .radar-metric-list { grid-template-columns: 1fr; }
  .mobile-rank-tabs { gap: 5px; padding: 8px; }
  .rank-tab { min-height: 42px; }
  .rank-tab strong { width: 22px; height: 22px; font-size: .8rem; }
}


/* === Mobile button navigation + Galaxy radar layout fix v5 === */
@media (max-width: 720px), (pointer: coarse) {
  .rank-section { padding-top: 62px; }
  .rank-section .section-heading p:not(.eyebrow) {
    font-size: .95rem;
    line-height: 1.62;
  }
  .rank-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .mobile-rank-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    order: 1;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .rank-tab {
    min-width: 0;
    min-height: 52px;
    padding: 9px 9px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.09);
    color: rgba(255,255,255,.86);
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    box-shadow: 0 10px 22px rgba(0,0,0,.14);
  }
  .rank-tab strong {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(135deg, #fff, #9fe4ff);
    color: #004ea8;
    font-size: .9rem;
    font-weight: 1000;
    line-height: 1;
  }
  .rank-tab span {
    display: block !important;
    min-width: 0;
    font-size: .86rem;
    font-weight: 950;
    line-height: 1.17;
    word-break: keep-all;
  }
  .rank-tab.active {
    background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(88,199,255,.22));
    color: #fff;
    border-color: rgba(215,243,255,.72);
    box-shadow: 0 14px 30px rgba(88,199,255,.18);
  }
  .rank-tab.active strong {
    background: #fff;
    color: #004ea8;
  }
  .orbit-controls {
    display: flex !important;
    justify-content: center;
    gap: 14px;
    order: 2;
    margin: 4px 0;
  }
  .orbit-controls .round-btn {
    width: 54px;
    height: 54px;
    background: rgba(255,255,255,.16);
    border-color: rgba(215,243,255,.36);
    box-shadow: 0 12px 28px rgba(0,0,0,.20);
  }
  .policy-orbit-wrap {
    order: 3;
    min-height: 0 !important;
    display: block !important;
    overflow: hidden !important;
    padding: 0 !important;
    touch-action: manipulation !important;
    scroll-snap-type: none !important;
    border-radius: 24px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .policy-orbit {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    transform: none !important;
    transition: none !important;
    transform-style: flat !important;
  }
  .policy-card-3d {
    display: none !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-height: 330px !important;
    padding: 20px 18px 62px !important;
    border-radius: 24px !important;
    transform: none !important;
    transition: opacity .16s ease, border-color .16s ease !important;
    scroll-snap-align: none !important;
    opacity: 1 !important;
    filter: none !important;
    overflow: hidden !important;
    backdrop-filter: none !important;
  }
  .policy-card-3d.active {
    display: block !important;
    border-color: rgba(215,243,255,.62) !important;
  }
  .policy-card-3d::after { display: none !important; }
  .policy-card-3d .rank-no {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    font-size: 1.45rem;
  }
  .policy-card-3d h3 {
    margin-top: 14px;
    font-size: clamp(1.35rem, 6.2vw, 1.72rem) !important;
    line-height: 1.16 !important;
  }
  .policy-card-3d p {
    font-size: .96rem;
    line-height: 1.58;
  }
  .policy-card-3d .card-tag {
    left: 18px;
    bottom: 18px;
    font-size: .82rem;
  }
  .rank-panel {
    order: 4;
    margin-top: 4px !important;
    padding: 20px 16px !important;
    overflow: visible !important;
    backdrop-filter: none !important;
  }
  .impact-radar { margin: 14px 0 18px !important; overflow: visible !important; }
  .radar-wrap {
    max-width: 100% !important;
    gap: 9px !important;
    overflow: visible !important;
  }
  .radar-wrap svg {
    width: min(280px, 78vw) !important;
    margin: 0 auto;
    overflow: visible !important;
  }
  .radar-metric-list {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }
  .radar-metric {
    padding: 9px 10px !important;
    border-radius: 12px;
    min-width: 0;
  }
  .radar-metric span {
    font-size: .82rem !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .radar-metric strong {
    font-size: .82rem !important;
  }
  .radar-note {
    font-size: .76rem !important;
    line-height: 1.35 !important;
  }
}

@media (max-width: 380px) {
  .mobile-rank-tabs { gap: 7px; }
  .rank-tab { min-height: 50px; padding: 8px 7px; }
  .rank-tab strong { width: 24px; height: 24px; flex-basis: 24px; font-size: .82rem; }
  .rank-tab span { font-size: .8rem; }
  .policy-card-3d { min-height: 350px !important; }
  .radar-wrap svg { width: min(260px, 76vw) !important; }
}

/* === Readability fixes for mobile hero, proof timeline, and share copy === */
:root {
  --accent-yellow: #ffd84a;
  --accent-yellow-strong: #ffbf00;
  --accent-yellow-soft: rgba(255, 216, 74, .22);
}

h1,
h2,
h3,
.eyebrow {
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero-title-line {
  display: inline-block;
  white-space: nowrap;
}

.proof-summary-card.highlight {
  border-color: rgba(255, 216, 74, .62);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 216, 74, .34), transparent 44%),
    linear-gradient(150deg, rgba(255,255,255,.18), rgba(255,255,255,.07));
  box-shadow: 0 18px 52px rgba(255, 191, 0, .18), var(--shadow-soft);
}

.proof-summary-card.highlight strong {
  color: var(--accent-yellow);
  text-shadow: 0 0 20px rgba(255, 216, 74, .34);
}

.proof-summary-card.highlight span {
  color: #fff5bf;
}

.achievement-card.highlight {
  border-color: rgba(255, 216, 74, .66);
  background:
    radial-gradient(circle at 92% 6%, rgba(255, 216, 74, .30), transparent 42%),
    linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,.07));
  box-shadow: 0 18px 56px rgba(255, 191, 0, .18), var(--shadow-soft);
}

.achievement-card.highlight .year-badge {
  background: linear-gradient(135deg, #fff8d2, var(--accent-yellow));
  color: #06163a;
  box-shadow: 0 12px 30px rgba(255, 191, 0, .24);
}

.achievement-card.highlight h3 {
  color: #fff2a8;
}

.share-card {
  grid-template-columns: 1fr;
}

.share-card h2 {
  font-size: 2.15rem;
  line-height: 1.18;
  letter-spacing: 0;
  white-space: nowrap;
  word-break: keep-all;
}

.share-card p:not(.eyebrow) {
  max-width: 980px;
  margin: 14px 0 0;
}

@media (max-width: 720px), (pointer: coarse) {
  .hero-copy .eyebrow {
    display: inline-block;
    max-width: 100%;
    font-size: .78rem;
    line-height: 1.35;
    white-space: normal;
  }

  .hero h1 {
    font-size: 2.45rem;
    line-height: 1.08;
  }

  .achievement-timeline-shell {
    padding: 14px;
  }

  .achievement-track {
    gap: 0 !important;
    padding: 0 !important;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    scrollbar-width: none;
  }

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

  .achievement-card {
    flex: 0 0 100% !important;
    min-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border-radius: 22px;
    padding: 20px 18px;
  }

  .share-card {
    padding: 18px 14px;
    border-radius: 24px;
  }

  .share-card h2 {
    font-size: 1rem;
    line-height: 1.24;
  }

  .share-card p:not(.eyebrow) {
    font-size: .9rem;
    line-height: 1.6;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .share-card h2 {
    font-size: .84rem;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 2.05rem;
  }

  .share-card {
    padding-right: 12px;
    padding-left: 12px;
  }

  .share-card h2 {
    font-size: .74rem;
  }
}
