/* ============================================================
   인천 청라 K-POP 랜드마크 — 홈화면
   톤: 화이트 베이스 + 블랙 대형 타이포 + 핑크 포인트
   (SM엔터테인먼트 사이트 무드 — 미니멀 에디토리얼)
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f6f5;
  --surface: #ffffff;
  --line: #e6e4e1;
  --line-dark: #131313;
  --text: #131313;
  --text-sub: #5c5a57;
  --text-dim: #9a9793;
  --pink: #d62e82;
  --pink-deep: #b8236c;
  --pink-soft: rgba(214, 46, 130, 0.07);
  --black: #131313;
  --font-ko: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  --font-en: "Archivo", "Pretendard Variable", sans-serif;
  --radius: 2px;
  --header-h: 64px;
  --maxw: none;
  --pad-x: 10vw;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ko);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* 한국어 줄바꿈: 어절 단위로만 끊기 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 본문은 고아 글자 방지, 제목은 줄 길이 균형 */
p { text-wrap: pretty; }
h1, h2, h3, .section-title { text-wrap: balance; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: 14.5px;
  padding: 13px 26px;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn-lg { padding: 16px 34px; font-size: 15.5px; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-primary {
  background: var(--pink);
  color: #fff;
}
.btn-primary:hover { background: var(--pink-deep); }
.btn-solid {
  background: var(--black);
  color: #fff;
}
.btn-solid:hover { background: #333; }
.btn-outline {
  border-color: var(--line-dark);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--black);
  color: #fff;
}
.btn-ghost { color: var(--text-sub); }
.btn-ghost:hover { color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  height: 32px;
  display: grid; place-items: center;
  padding: 0 10px;
  border-radius: var(--radius);
  background: var(--black);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.logo-text {
  display: inline-flex;
  gap: 7px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.04em;
}
.logo-text em {
  font-style: normal;
  color: var(--pink);
}

.gnb {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.gnb a {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--text);
  transition: color 0.18s ease;
}
.gnb a:hover { color: var(--pink); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-btn { display: none; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 56px) var(--pad-x) 0;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #131313;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10, 8, 10, 0.72) 0%, rgba(10, 8, 10, 0.45) 55%, rgba(10, 8, 10, 0.3) 100%),
    linear-gradient(to top, rgba(10, 8, 10, 0.75) 0%, rgba(10, 8, 10, 0.15) 40%);
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--pink);
  margin-bottom: 30px;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pink);
}

.hero-title { display: block; }
.hero-title-en {
  display: block;
  font-family: var(--font-en);
  font-weight: 850;
  font-stretch: 118%;
  font-size: clamp(46px, 9.5vw, 118px);
  line-height: 0.96;
  letter-spacing: -0.015em;
  color: #fff;
}
.hero-title-en em {
  font-style: normal;
  color: #f06aab;
}
.hero-title-ko {
  display: block;
  margin-top: 26px;
  font-size: clamp(17px, 2.4vw, 23px);
  font-weight: 650;
  color: #fff;
}

.hero-desc {
  margin-top: 16px;
  max-width: 560px;
  font-size: clamp(15px, 1.8vw, 16.5px);
  color: rgba(255, 255, 255, 0.82);
}

.hero .hero-eyebrow { color: #f06aab; }
.hero .eyebrow-dot { background: #f06aab; }
.hero .btn-outline {
  border-color: #fff;
  color: #fff;
}
.hero .btn-outline:hover {
  background: #fff;
  color: var(--black);
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stats {
  max-width: var(--maxw);
  margin: 80px auto 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding: 28px 0 48px;
  gap: 16px;
}
.stat strong {
  display: block;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 34px);
  letter-spacing: -0.01em;
}
.stat-unit {
  font-size: 0.55em;
  font-weight: 700;
  color: #f06aab;
  margin-left: 2px;
}
.stat span:not(.stat-unit) {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--black);
  padding: 15px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 108s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.16em;
  color: #fff;
  flex-shrink: 0;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Sections common ---------- */
.section { padding: 110px var(--pad-x); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }

.section-eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.24em;
  color: var(--pink);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 780;
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.section-desc {
  margin-top: 16px;
  max-width: 560px;
  color: var(--text-sub);
  font-size: 15.5px;
}
.desc-highlight {
  color: var(--pink);
  font-weight: 700;
}

/* ---------- Vote ---------- */
.vote { background: var(--bg-soft); }

.countdown {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.count-box {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 10px 16px;
  min-width: 92px;
  flex: 0 1 auto;
}
.count-box strong {
  display: block;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.count-box span {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.count-sep {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 28px;
  color: var(--pink);
  align-self: center;
}
.countdown-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* 카운트다운과 한 몸인 티켓형 VOTE 버튼 */
.vote-btn {
  position: relative;
  overflow: hidden;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  padding: 0 44px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e63a92 0%, var(--pink) 45%, var(--pink-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(214, 46, 130, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vote-btn-label {
  font-family: var(--font-en);
  font-weight: 850;
  font-stretch: 115%;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: 0.14em;
  line-height: 1;
}
.vote-btn-arrow {
  width: 24px;
  height: 24px;
  transition: transform 0.25s ease;
}
.vote-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(214, 46, 130, 0.45);
}
.vote-btn:hover .vote-btn-arrow { transform: translateX(6px); }
/* 은은한 샤인 스윕 */
.vote-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: vote-shine 3.2s ease-in-out infinite;
}
@keyframes vote-shine {
  0%, 55% { left: -80%; }
  100% { left: 160%; }
}

.leaderboard {
  margin-top: 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 40px);
}
.leaderboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.leaderboard-head h3 {
  font-size: 19px;
  font-weight: 720;
}
.sample-chip {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pink);
  background: var(--pink-soft);
  border: 1px solid rgba(214, 46, 130, 0.3);
  border-radius: var(--radius);
  padding: 5px 12px;
  white-space: nowrap;
}

.region-tabs {
  display: flex;
  gap: 0;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
}
.region-tab {
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: background 0.18s ease, color 0.18s ease;
}
.region-tab + .region-tab { border-left: 1px solid var(--line); }
.region-tab.is-active {
  background: var(--black);
  color: #fff;
}

.rank-list { margin-top: 22px; }
.rank-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}
.rank-item:last-child { border-bottom: none; }

.rank-no {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 16px;
  color: var(--text-dim);
  text-align: center;
}
.rank-item.is-top .rank-no { color: var(--pink); }

.rank-main { min-width: 0; }
.rank-name {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-bar {
  margin-top: 6px;
  height: 4px;
  border-radius: 999px;
  background: #ecebe9;
  overflow: hidden;
}
.rank-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--black);
  width: 0;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.rank-item.is-top .rank-bar i { background: var(--pink); }

.rank-votes {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--text-sub);
  text-align: right;
}
.rank-item.is-top .rank-votes { color: var(--pink); }

.leaderboard-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ---------- How it works ---------- */
.step-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.step-card {
  background: var(--surface);
  padding: 30px 24px;
  transition: background 0.2s ease;
}
.step-card + .step-card { border-left: 1px solid var(--line); }
.step-card:hover { background: var(--pink-soft); }
.step-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.step-icon {
  display: block;
  width: 38px;
  height: 38px;
}
.step-icon svg { width: 100%; height: 100%; }
.step-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.step-card h3 {
  margin-top: 14px;
  font-size: 17.5px;
  font-weight: 720;
}
.step-card p {
  margin-top: 10px;
  font-size: 13.8px;
  color: var(--text-sub);
  line-height: 1.65;
}

/* ---------- Overview / 조감도 ---------- */
.overview { background: var(--bg-soft); }
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.overview-text .btn { margin-top: 28px; }

.overview-visual { text-align: center; }
.building {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 320px;
  margin: 0 auto;
}
.floor {
  position: relative;
  height: 44px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.floor::before {
  content: attr(data-floor);
  position: absolute;
  left: -38px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
}
.floor.is-kpop {
  background: var(--pink-soft);
  border-color: rgba(214, 46, 130, 0.35);
  animation: floor-glow 2.4s ease-in-out infinite;
}
.building .floor.is-kpop:nth-child(7) { animation-delay: 0s; }
.building .floor.is-kpop:nth-child(6) { animation-delay: 0.35s; }
.building .floor.is-kpop:nth-child(5) { animation-delay: 0.7s; }
.building .floor.is-kpop:nth-child(4) { animation-delay: 1.05s; }
@keyframes floor-glow {
  0%, 100% {
    background: rgba(214, 46, 130, 0.06);
    border-color: rgba(214, 46, 130, 0.25);
    box-shadow: 0 0 0 rgba(214, 46, 130, 0);
  }
  50% {
    background: rgba(214, 46, 130, 0.32);
    border-color: rgba(214, 46, 130, 0.95);
    box-shadow: 0 0 22px rgba(214, 46, 130, 0.45);
  }
}
.floor.is-kpop span {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--pink);
}
.building-caption {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ---------- Community ---------- */
.teaser-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.teaser-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.teaser-card:hover { border-color: var(--line-dark); }
.teaser-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.teaser-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.teaser-card:hover .teaser-img img { transform: scale(1.04); }
.teaser-body { padding: 24px 26px 28px; }
.teaser-card h3 { font-size: 17.5px; font-weight: 720; }
.teaser-card p {
  margin-top: 10px;
  font-size: 13.8px;
  color: var(--text-sub);
  line-height: 1.65;
}

/* ---------- Shop (풀와이드 배너) ---------- */
.shop { padding: 0; }
.shop-inner {
  max-width: none;
  min-height: clamp(440px, 34vw, 640px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(to right, rgba(24, 8, 20, 0.72) 0%, rgba(24, 8, 20, 0.35) 55%, rgba(24, 8, 20, 0.05) 100%),
    url("assets/shop-banner.png") center 30% / cover no-repeat;
  padding: clamp(56px, 8vw, 110px) var(--pad-x);
  color: #fff;
}
.shop .section-title { color: #fff; }
.shop .section-desc { color: #b5b2ae; }
.shop .btn-outline {
  border-color: #fff;
  color: #fff;
}
.shop .btn-outline:hover {
  background: #fff;
  color: var(--black);
}
.shop .btn { margin-top: 28px; }

/* ---------- 3D 조감도 뷰어 ---------- */
.floor-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.floor-modal[hidden] { display: none; }
.floor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 14, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.floor-panel {
  position: relative;
  width: min(1100px, 100%);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  animation: floor-pop 0.25s ease;
}
@keyframes floor-pop {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.floor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.floor-tabs {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.floor-tab {
  padding: 8px 20px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-dim);
  transition: background 0.18s ease, color 0.18s ease;
}
.floor-tab + .floor-tab { border-left: 1px solid var(--line); }
.floor-tab.is-active {
  background: var(--black);
  color: #fff;
}
.floor-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--text-sub);
  transition: color 0.18s ease;
}
.floor-close svg { width: 22px; height: 22px; }
.floor-close:hover { color: var(--text); }
.floor-stage {
  position: relative;
  background: #f4f3f1;
  min-height: 0;
}
.floor-stage img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 220px);
  object-fit: contain;
  display: block;
}
.floor-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(19, 19, 19, 0.75);
  color: #fff;
  transition: background 0.18s ease;
}
.floor-nav:hover { background: var(--pink); }
.floor-nav svg { width: 22px; height: 22px; }
.floor-prev { left: 14px; }
.floor-next { right: 14px; }
.floor-caption {
  padding: 13px 18px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
}
@media (max-width: 768px) {
  .floor-modal { padding: 12px; }
  .floor-tab { padding: 7px 13px; font-size: 12.5px; }
  .floor-nav { width: 38px; height: 38px; }
  .floor-prev { left: 8px; }
  .floor-next { right: 8px; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px var(--pad-x) 40px;
  background: var(--bg);
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.footer-brand strong { font-size: 13.5px; margin-top: 8px; }
.footer-brand p {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.7;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-sub);
}
.footer-links a:hover { color: var(--pink); }
.footer-copy {
  margin-top: 24px;
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- Reveal (히어로·투표 2곳만) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .rank-bar i { transition: none; }
  .floor.is-kpop { animation: none; }
  .vote-btn::after { animation: none; }
  .vote-btn:hover { transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-card + .step-card { border-left: none; }
  .step-card:nth-child(even) { border-left: 1px solid var(--line); }
  .step-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .teaser-grid, .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .overview-grid { grid-template-columns: minmax(0, 1fr); }
  .building { max-width: 280px; }
}

@media (max-width: 768px) {
  :root { --pad-x: 20px; }

  .gnb, .header-actions .btn-ghost, .header-actions .btn-solid { display: none; }
  .header-actions { margin-left: auto; }

  .menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
  }
  .menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

  .mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 24px 24px;
    border-top: 1px solid var(--line);
    background: var(--bg);
  }
  .mobile-menu.is-open { display: flex; }
  .mobile-menu > a {
    padding: 12px 0;
    font-size: 16px;
    font-weight: 650;
    color: var(--text);
  }
  .mobile-menu-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
  }
  .mobile-menu-actions .btn { flex: 1; }

  .section { padding: 80px 20px; }
  .hero { padding-left: 20px; padding-right: 20px; }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
    margin-top: 56px;
  }

  .count-box { min-width: 0; flex: 1 1 0; padding: 14px 6px 12px; }
  .count-sep { display: none; }
  .countdown { gap: 8px; flex-wrap: wrap; }
  .vote-btn {
    flex: 1 1 100%;
    margin-left: 0;
    margin-top: 4px;
    justify-content: center;
    padding: 16px;
  }

  .step-grid { grid-template-columns: minmax(0, 1fr); }
  .step-card:nth-child(even) { border-left: none; }
  .step-card:nth-child(n+2) { border-top: 1px solid var(--line); }

  .floor::before { left: 8px; }
  .building { max-width: 240px; }
}

@media (max-width: 380px) {
  .logo-text { display: none; }
  .rank-votes { font-size: 12.5px; }
  .rank-item { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; }
  .hero-title-en { font-size: clamp(38px, 12vw, 44px); }
}
