:root {
  --bg: #07080d;
  --bg-2: #0c0d15;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eceef5;
  --text-2: #b4b8c8;
  --muted: #7c8196;
  --gold: #f5d6a0;
  --violet: #b79cff;
  --blue: #6ea8ff;
  --ok: #5fe3b0;
  --no: #ff7a8a;
  --grad: linear-gradient(120deg, var(--gold) 0%, var(--violet) 50%, var(--blue) 100%);
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --num: "Inter", "Pretendard Variable", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.01em;
  overflow-x: hidden;
}

::selection { background: rgba(183, 156, 255, .35); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.hidden { display: none !important; }

/* ---------- 배경 ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .45; animation: drift 24s var(--ease) infinite alternate; }
.b1 { width: 620px; height: 620px; background: #5b3fd6; top: -260px; left: -140px; }
.b2 { width: 520px; height: 520px; background: #1f5fd1; top: -120px; right: -180px; animation-delay: -8s; opacity: .35; }
.b3 { width: 460px; height: 460px; background: #a8773a; top: 420px; left: 40%; animation-delay: -14s; opacity: .18; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- 공통 ---------- */
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px 96px; }
.view { animation: fadeUp .6s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.kicker {
  display: inline-block; font-family: var(--num); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; color: var(--muted);
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--num); font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 5px 11px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
}
.chip-grad { background: var(--grad); color: #11121a; border: none; }

/* ---------- 버튼 ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  transition: transform .2s var(--ease), background .2s, box-shadow .3s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: #fff; color: #0b0c12; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 8px 30px rgba(183, 156, 255, .25); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 10px 44px rgba(183, 156, 255, .45); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-2); color: var(--text); backdrop-filter: blur(12px); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, .24); }
.btn-text { color: var(--text-2); padding: 0 14px; }
.btn-text:hover { color: #fff; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-2); }
.icon-btn svg, .modal-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 상단 바 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 8, 13, .6);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: 1180px; margin: 0 auto; height: 68px; padding: 0 28px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 36px; height: 36px; filter: drop-shadow(0 4px 14px rgba(183, 156, 255, .35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -.03em; }
.brand-sub { font-family: var(--num); font-size: 9.5px; font-weight: 600; letter-spacing: .24em; color: var(--muted); margin-top: 3px; }

.nav { display: flex; gap: 4px; }
.nav-link { padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .2s, background .2s; }
.nav-link:hover { color: #fff; background: var(--surface); }

.auth { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px 0 5px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2);
  transition: background .2s;
}
.user-btn:hover { background: var(--surface-2); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #11121a; font-weight: 800; font-size: 14px;
}
.user-btn .u-name { font-size: 14px; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-btn .u-lv { font-family: var(--num); font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: .04em; }
.caret { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }

.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); width: 240px; padding: 8px;
  border-radius: 16px; background: rgba(18, 19, 29, .92); border: 1px solid var(--line-2);
  backdrop-filter: blur(20px); box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
  transition: opacity .18s, transform .18s var(--ease);
}
.user-menu.open .dropdown { opacity: 1; transform: none; pointer-events: auto; }
.dd-head { padding: 12px 12px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dd-head b { display: block; font-size: 15px; }
.dd-head span { font-size: 12.5px; color: var(--muted); }
.dd-head .dd-meta { display: block; margin-top: 2px; }
.dd-bar { height: 4px; border-radius: 4px; background: var(--line); margin-top: 10px; overflow: hidden; }
.dd-bar i { display: block; height: 100%; background: var(--grad); }
.dd-item { width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--text-2); transition: background .15s, color .15s; }
.dd-item:hover { background: var(--surface-2); color: #fff; }
.dd-accent { color: var(--gold); font-weight: 600; }
.dd-accent:hover { color: var(--gold); background: rgba(245, 214, 160, .08); }

/* ---------- 히어로 ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px;
  min-height: min(calc(100vh - 68px), 820px); padding: 64px 0 40px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 500; color: var(--text-2);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(245, 214, 160, .15); }
.hero h1 {
  margin-top: 28px;
  font-size: clamp(44px, 7vw, 84px); font-weight: 800; line-height: 1.04; letter-spacing: -.05em;
}
.lead { margin-top: 24px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.7; color: var(--text-2); }
.hero-cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { width: 100%; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.hero-note b { color: var(--text); font-weight: 600; }
.guest-note { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 10px; line-height: 1.6; }
.guest-note .chip { font-size: 10.5px; padding: 3px 8px; color: var(--gold); border-color: rgba(245, 214, 160, .3); }
.link-btn {
  color: var(--text); font-weight: 600; font-size: inherit;
  text-decoration: underline; text-decoration-color: rgba(183, 156, 255, .6); text-underline-offset: 3px;
}
.link-btn:hover { color: #fff; text-decoration-color: var(--violet); }

.stats { display: flex; gap: 44px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 480px; }
.stats dt { font-family: var(--num); font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.stats dt small { font-size: 18px; color: var(--muted); margin-left: 2px; }
.stats dd { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* 히어로 비주얼 */
.hero-visual { position: relative; height: 460px; }
.float-card {
  position: absolute; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-2);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.fc-main { inset: 60px 20px auto 20px; padding: 28px 30px 30px; animation: float 7s ease-in-out infinite; }
.fc-head { display: flex; justify-content: space-between; align-items: center; }
.fc-meta { font-family: var(--num); font-size: 13px; color: var(--muted); font-weight: 500; }
.fc-eq { font-family: var(--num); font-size: clamp(48px, 5.4vw, 68px); font-weight: 700; letter-spacing: -.04em; margin: 34px 0 30px; }
.fc-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.fc-bar span { display: block; height: 100%; background: var(--grad); border-radius: 6px; }

.fc-small { display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; }
.fc-small b { display: block; font-size: 14px; }
.fc-small span { font-family: var(--num); font-size: 12.5px; color: var(--muted); }
.fc-a { top: 0; right: 0; animation: float 6s ease-in-out -2s infinite; }
.fc-b { bottom: 30px; left: -10px; animation: float 8s ease-in-out -4s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ic-ok { background: rgba(95, 227, 176, .12); stroke: var(--ok); }

.ring-mini { position: relative; width: 40px; height: 40px; }
.ring-mini svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.ring-mini circle { fill: none; stroke: var(--line-2); stroke-width: 3; }
.ring-mini circle.on { stroke: var(--gold); stroke-dasharray: 94.25; stroke-dashoffset: 9.4; stroke-linecap: round; }
.ring-mini b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--num); font-size: 13px; }

/* 로그인 사용자 대시보드 카드 */
.dash { inset: 30px 0 auto 0; padding: 32px; animation: none; }
.dash-top { display: flex; align-items: center; gap: 24px; }
.dash-ring { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.dash-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dash-ring circle { fill: none; stroke-width: 8; }
.dash-ring .track { stroke: var(--line); }
.dash-ring .bar { stroke: url(#dashGrad); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.dash-ring .lbl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dash-ring .lbl b { font-family: var(--num); font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.dash-ring .lbl span { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.dash-info .kicker { margin-bottom: 8px; }
.dash-info h3 { font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.3; }
.dash-info p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.dash-grid div { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.dash-grid dt { font-size: 12px; color: var(--muted); }
.dash-grid dd { font-family: var(--num); font-size: 22px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }

/* ---------- 섹션 ---------- */
.section { padding: 56px 0 0; scroll-margin-top: 90px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.04em; margin-top: 10px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  padding: 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease);
}
.feature:hover { border-color: var(--line-2); transform: translateY(-3px); }
.f-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(183, 156, 255, .1); border: 1px solid rgba(183, 156, 255, .2);
}
.f-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--violet); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.feature h3 { font-size: 18px; font-weight: 700; margin-top: 22px; letter-spacing: -.02em; }
.feature p { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin-top: 8px; }

.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-clear { background: var(--gold); }
.dot-current { background: var(--violet); box-shadow: 0 0 0 3px rgba(183, 156, 255, .25); }
.dot-locked { background: #3a3d4d; }
.dot-soon { border: 1px dashed #4a4d5e; }

/* ---------- 스테이지 & 레벨 ---------- */
.stages { display: grid; gap: 14px; }
.stage {
  padding: 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  border: 1px solid var(--line);
}
.stage.is-soon { background: transparent; border-style: dashed; border-color: rgba(255, 255, 255, .06); }
.stage-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.stage-no { font-family: var(--num); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.stage-title { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.stage.is-soon .stage-title { color: var(--muted); font-weight: 500; }
.stage-meta { margin-left: auto; display: flex; align-items: center; gap: 12px; font-family: var(--num); font-size: 12.5px; color: var(--muted); }
.stage-bar { width: 90px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.stage-bar i { display: block; height: 100%; background: var(--grad); }
.soon-tag { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-family: inherit; }

.levels { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; }
.level {
  position: relative; aspect-ratio: 1; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-family: var(--num);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .3s;
}
.level .num { font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.level .sub { font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.level svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.level.clear { background: linear-gradient(160deg, rgba(245, 214, 160, .14), rgba(245, 214, 160, .03)); border-color: rgba(245, 214, 160, .28); }
.level.clear .sub { color: var(--gold); display: flex; align-items: center; gap: 3px; }
.level.clear:hover { transform: translateY(-3px); border-color: rgba(245, 214, 160, .55); }

.level.current { background: #11121c; border-color: transparent; box-shadow: 0 10px 40px rgba(183, 156, 255, .35); }
.level.current::before {
  content: ""; position: absolute; inset: -1px; border-radius: 15px; padding: 1.5px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.level.current .sub { color: #fff; }
.level.current::after {
  content: ""; position: absolute; inset: -6px; border-radius: 20px;
  border: 1px solid rgba(183, 156, 255, .5); animation: halo 2.2s ease-out infinite;
}
.level.current:hover { transform: translateY(-3px) scale(1.03); }
@keyframes halo { from { opacity: .9; transform: scale(.94); } to { opacity: 0; transform: scale(1.12); } }

.level.locked { color: #4e5264; }
.level.locked .num { color: #5d6173; }
.level.soon { background: transparent; border: 1px dashed rgba(255, 255, 255, .06); color: #3d4050; }
.level.soon .num { color: #3d4050; font-weight: 500; }
.level.locked, .level.soon { cursor: not-allowed; }

/* ---------- 퀴즈 ---------- */
.quiz-wrap { max-width: 620px; margin: 0 auto; padding-top: 40px; }
.quiz-head { display: flex; align-items: center; gap: 14px; }
.quiz-title { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; }
.quiz-desc { font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quiz-count { font-family: var(--num); font-size: 14px; font-weight: 600; color: var(--text-2); min-width: 42px; text-align: right; }

.segments { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin: 26px 0 14px; }

.total-timer {
  --tt-c1: #5fe3b0; --tt-c2: #6ea8ff; --tt-glow: rgba(95, 227, 176, .55);
  margin-bottom: 22px; padding: 16px 18px 18px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, background .3s;
}
.total-timer.warn { --tt-c1: #ffd27a; --tt-c2: #ff9f5a; --tt-glow: rgba(255, 190, 110, .55); }
.total-timer.urgent {
  --tt-c1: #ff7a8a; --tt-c2: #ff4d6d; --tt-glow: rgba(255, 90, 110, .7);
  border-color: rgba(255, 122, 138, .4); background: rgba(255, 122, 138, .07);
  animation: ttPulse 1s ease-in-out infinite;
}
@keyframes ttPulse { 50% { background: rgba(255, 122, 138, .14); } }
.tt-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.tt-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.tt-sec { font-family: var(--num); font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tt-sec b { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-right: 3px; color: var(--tt-c1); transition: color .3s; }
.tt-track {
  position: relative; height: 18px; border-radius: 10px; overflow: hidden;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .04) 0 6px, rgba(255, 255, 255, .015) 6px 12px);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5);
}
.tt-bar {
  position: absolute; inset: 0; border-radius: 10px;
  background: linear-gradient(90deg, var(--tt-c2), var(--tt-c1));
  transform-origin: left; transition: transform 50ms linear;
  box-shadow: 0 0 22px var(--tt-glow);
}
.tt-bar::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), transparent 55%);
}
.tt-ticks { position: absolute; inset: 0; display: flex; justify-content: space-evenly; pointer-events: none; }
.tt-ticks i { width: 2px; background: rgba(7, 8, 13, .55); }
.seg { height: 4px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; transition: background .3s; }
.seg.ok { background: var(--ok); }
.seg.no { background: var(--no); }
.seg.now { background: rgba(255, 255, 255, .12); }
.seg.now::after { content: ""; position: absolute; inset: 0; background: var(--grad); animation: grow 1.4s var(--ease) infinite alternate; transform-origin: left; }
@keyframes grow { from { transform: scaleX(.15); } to { transform: scaleX(1); } }

.problem-card {
  position: relative; padding: 56px 32px 28px; text-align: center; border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(24px);
  overflow: hidden;
}
.problem-card::before {
  content: ""; position: absolute; left: 50%; top: -120px; width: 360px; height: 220px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(183, 156, 255, .25), transparent); pointer-events: none;
}
.timer { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: rgba(255, 255, 255, .05); }
.timer-bar {
  height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(1); transition: transform 50ms linear;
  box-shadow: 0 0 16px rgba(183, 156, 255, .6);
}
.timer-bar.urgent { background: var(--no); box-shadow: 0 0 18px rgba(255, 122, 138, .7); }
.timer-text {
  position: absolute; top: 18px; right: 20px; display: flex; align-items: center; gap: 6px;
  font-family: var(--num); font-size: 13px; font-weight: 600; color: var(--text-2);
  padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-variant-numeric: tabular-nums; transition: color .2s, border-color .2s, background .2s;
}
.timer-text.urgent { color: var(--no); border-color: rgba(255, 122, 138, .35); background: rgba(255, 122, 138, .08); animation: beat 1s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.06); } }
.problem { position: relative; font-family: var(--num); font-size: clamp(56px, 12vw, 92px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.answer-box {
  position: relative; margin: 30px auto 0; min-width: 180px; width: fit-content; padding: 0 24px; height: 92px;
  font-family: var(--num); font-size: 64px; font-weight: 700; letter-spacing: -.03em;
  display: flex; align-items: center; justify-content: center;
}
.answer-box::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px;
  background: var(--grad); opacity: .9;
}
.answer-box.empty::before {
  content: ""; width: 3px; height: 54px; border-radius: 2px; background: var(--violet); animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.feedback { min-height: 28px; margin-top: 20px; font-size: 16px; font-weight: 600; transition: color .2s; }
.feedback.ok { color: var(--ok); }
.feedback.no { color: var(--no); }
.problem-card.is-ok { border-color: rgba(95, 227, 176, .45); }
.problem-card.is-no { border-color: rgba(255, 122, 138, .45); }
.problem-card.shake { animation: shake .4s var(--ease); }
@keyframes shake { 20% { transform: translateX(-10px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

.keypad { max-width: 400px; margin: 28px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keypad button {
  height: 64px; border-radius: 18px; font-family: var(--num); font-size: 26px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line);
  transition: background .15s, transform .1s, border-color .15s;
}
.keypad button:hover { background: var(--surface-2); border-color: var(--line-2); }
.keypad button:active, .keypad button.pressed { transform: scale(.95); background: rgba(255, 255, 255, .1); }
.keypad .key-sub svg { width: 26px; height: 26px; margin: 0 auto; fill: none; stroke: var(--text-2); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.keypad .key-enter { color: var(--text-2); font-family: inherit; font-size: 15px; font-weight: 600; }

.kbd-hint { text-align: center; margin-top: 22px; font-size: 12.5px; color: var(--muted); }
kbd { font-family: var(--num); font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); }

/* ---------- 결과 ---------- */
.result-card {
  max-width: 720px; margin: 56px auto 0; padding: 48px 36px 40px; text-align: center; border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.score-ring { position: relative; width: 168px; height: 168px; margin: 0 auto 26px; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 7; }
.score-ring .track { stroke: var(--line); }
.score-ring .bar { stroke: url(#ringGrad); stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset 1.3s var(--ease); }
.score-ring.fail .bar { stroke: var(--no); }
.ring-label { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 58px; font-family: var(--num); }
.ring-label b { font-size: 48px; font-weight: 700; letter-spacing: -.04em; }
.ring-label span { font-size: 16px; color: var(--muted); margin-left: 4px; }
.result-card h2 { font-size: 34px; font-weight: 800; letter-spacing: -.04em; margin-top: 10px; }
.result-score { font-size: 15px; color: var(--text-2); margin-top: 10px; }
.result-msg { font-size: 15px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 30px; text-align: left; }
.result-stats div { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.result-stats dt { font-size: 12px; color: var(--muted); }
.result-stats dd { font-family: var(--num); font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin-top: 6px; }
.result-stats dd small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: 0; }

.panel { margin-top: 12px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head > b { font-size: 14px; font-weight: 700; }
.panel-head > span { font-family: var(--num); font-size: 12.5px; color: var(--muted); }
.panel-head > span b { color: var(--text); font-weight: 700; }

.use-track { height: 12px; border-radius: 8px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.use-bar { height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, #6ea8ff, #5fe3b0); transition: width 1.2s var(--ease); }
.use-bar.warn { background: linear-gradient(90deg, #ff9f5a, #ffd27a); }
.use-bar.over { background: linear-gradient(90deg, #ff4d6d, #ff7a8a); }

.mini-legend { display: flex; align-items: center; gap: 6px; }
.mini-legend i { width: 9px; height: 9px; border-radius: 3px; margin-left: 8px; }
.lg-ok { background: var(--ok); }
.lg-no { background: var(--no); }
.lg-to { background: repeating-linear-gradient(-45deg, #ff9f5a 0 3px, rgba(255, 159, 90, .35) 3px 6px); }

.chart { display: flex; gap: 10px; height: 240px; padding-top: 26px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 24px; font-family: var(--num); font-size: 11px; color: var(--muted); text-align: right; min-width: 28px; }
.chart-y span { line-height: 0; }
.chart-plot { position: relative; flex: 1; }
.plot-area { position: absolute; left: 0; right: 0; top: 0; bottom: 24px; }
.grid-line { position: absolute; left: 0; right: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.grid-line.half { border-top-style: dashed; border-color: rgba(255, 255, 255, .07); }
.grid-line.base { border-color: rgba(255, 255, 255, .1); }
.grid-line em, .avg-line em {
  position: absolute; bottom: 4px; font-style: normal; font-family: var(--num);
  font-size: 10.5px; font-weight: 600; white-space: nowrap;
}
.grid-line em { right: 0; color: var(--muted); }
.avg-line { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--gold); z-index: 2; opacity: .9; pointer-events: none; }
.avg-line em { left: 0; color: var(--gold); }

.chart-plot .cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; z-index: 1; }
.col { display: flex; flex-direction: column; min-width: 0; }
.col-track { flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.col-bar {
  position: relative; width: 100%; max-width: 34px; height: 0; border-radius: 8px 8px 3px 3px;
  transition: height .9s var(--ease) var(--d);
}
.chart.in .col-bar { height: var(--h); }
.col-val {
  position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  font-family: var(--num); font-size: 11px; font-weight: 700; color: var(--text); white-space: nowrap;
}
.col-bar.ok { background: linear-gradient(180deg, #7cf0c2, #2fb888); box-shadow: 0 0 18px rgba(95, 227, 176, .25); }
.col-bar.no { background: linear-gradient(180deg, #ff95a2, #e0485c); box-shadow: 0 0 18px rgba(255, 122, 138, .25); }
.col-bar.to { background: repeating-linear-gradient(-45deg, #ff9f5a 0 5px, rgba(255, 159, 90, .45) 5px 10px); }
.col-bar.to .col-val { color: #ffb27a; }
.chart.in .col-bar.none { height: 3px; }
.col-bar.none { background: rgba(255, 255, 255, .15); }
.col-bar.none .col-val { color: var(--muted); }
.col-x { height: 24px; line-height: 26px; text-align: center; font-family: var(--num); font-size: 11.5px; color: var(--muted); }
.wrong-list { list-style: none; margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.wrong-list li {
  font-family: var(--num); font-size: 13.5px; font-weight: 600;
  padding: 8px 12px; border-radius: 10px; background: rgba(255, 122, 138, .08); border: 1px solid rgba(255, 122, 138, .2);
}
.wrong-list li s { color: var(--no); margin-left: 6px; opacity: .8; font-weight: 500; }
.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---------- 푸터 ---------- */
.footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand-foot .brand-logo { width: 26px; height: 26px; }
.brand-foot .brand-name { font-size: 14px; }
.footer p { font-size: 12.5px; color: var(--muted); font-family: var(--num); }

/* ---------- 모달 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; padding: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3, 4, 8, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fadeIn .25s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  position: relative; width: 100%; max-width: 420px; padding: 40px 32px 32px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(26, 27, 40, .96), rgba(14, 15, 23, .96));
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: pop .35s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); transition: background .2s, color .2s; }
.modal-close:hover { background: var(--surface-2); color: #fff; }
.modal-logo { display: block; width: 52px; margin: 0 auto; filter: drop-shadow(0 8px 24px rgba(183, 156, 255, .4)); }
.modal-title { text-align: center; font-size: 21px; font-weight: 700; letter-spacing: -.03em; margin-top: 20px; }
.modal-sub { text-align: center; font-size: 14px; color: var(--muted); margin-top: 6px; }

.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin: 26px 0 22px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.tab { position: relative; z-index: 1; height: 38px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s; }
.tab.active { color: #fff; }
.tab-indicator {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  transition: transform .3s var(--ease);
}
.tabs[data-mode="signup"] .tab-indicator { transform: translateX(100%); }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.field input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 14px;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line-2); color: var(--text);
  font-size: 15px; font-family: inherit; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #555a6c; }
.field input:focus { outline: none; border-color: rgba(183, 156, 255, .6); box-shadow: 0 0 0 4px rgba(183, 156, 255, .15); }
.form-error { min-height: 20px; margin: 2px 0 10px; font-size: 13px; color: var(--no); }
#authForm .btn-primary, #signupForm .btn-primary { height: 52px; }
.modal-box { max-height: calc(100vh - 40px); overflow-y: auto; scrollbar-width: thin; }
.modal-box:has(#signupForm:not(.hidden)) { max-width: 500px; }

.stepper { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.stepper li {
  display: flex; align-items: center; gap: 8px; padding-bottom: 10px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid var(--line); transition: color .2s, border-color .2s;
}
.stepper li i {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-family: var(--num); font-size: 12px; background: var(--surface-2); border: 1px solid var(--line-2);
}
.stepper li.on { color: var(--text); border-color: var(--violet); }
.stepper li.on i { background: var(--grad); color: #11121a; border: none; }
.stepper li.done { color: var(--text-2); border-color: rgba(95, 227, 176, .6); }
.stepper li.done i { background: rgba(95, 227, 176, .15); color: var(--ok); border-color: rgba(95, 227, 176, .4); }

.field .hint { font-style: normal; font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 6px; }
.field .hint.good { color: var(--ok); }
.field .hint.bad { color: var(--no); }
.field-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 70px; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  height: 34px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--text-2);
}
.pw-toggle:hover { background: var(--surface-2); color: #fff; }

.seg-group { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seg-group button {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px 12px;
  border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line-2);
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  transition: border-color .2s, background .2s, color .2s, transform .15s;
}
.seg-group button b {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  font-size: 17px; background: var(--surface-2); color: var(--text); transition: background .2s, color .2s;
}
.seg-group button:hover { border-color: rgba(255, 255, 255, .25); color: #fff; }
.seg-group button:active { transform: scale(.97); }
.seg-group button.on { border-color: rgba(183, 156, 255, .7); background: rgba(183, 156, 255, .1); color: #fff; box-shadow: 0 0 0 3px rgba(183, 156, 255, .15); }
.seg-group button.on b { background: var(--grad); color: #11121a; }

.school-name { margin-top: 10px; animation: fadeUp .3s var(--ease) both; }
.school-name input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 14px;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line-2); color: var(--text);
  font-size: 15px; font-family: inherit; transition: border-color .2s, box-shadow .2s;
}
.school-name input::placeholder { color: #555a6c; }
.school-name input:focus { outline: none; border-color: rgba(183, 156, 255, .6); box-shadow: 0 0 0 4px rgba(183, 156, 255, .15); }
.school-suggest {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 7px 12px;
  border-radius: 10px; background: rgba(245, 214, 160, .08); border: 1px solid rgba(245, 214, 160, .3);
  font-size: 13px; color: var(--text-2); transition: background .15s;
}
.school-suggest span { font-size: 11.5px; color: var(--gold); font-weight: 600; }
.school-suggest b { color: var(--text); }
.school-suggest:hover { background: rgba(245, 214, 160, .15); }

.region-box { border-radius: 16px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); padding: 12px; }
.region-search { position: relative; }
.region-search input {
  width: 100%; height: 44px; padding: 0 14px 0 38px; border-radius: 12px;
  background: rgba(255, 255, 255, .04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c8196' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 12px center / 16px;
  border: 1px solid var(--line); color: var(--text); font-size: 14px; font-family: inherit;
}
.region-search input:focus { outline: none; border-color: rgba(183, 156, 255, .6); box-shadow: 0 0 0 3px rgba(183, 156, 255, .15); }
.region-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; list-style: none; padding: 6px;
  border-radius: 14px; background: #171826; border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
}
.region-results button { width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; font-size: 14px; color: var(--text-2); }
.region-results button:hover, .region-results button.active { background: var(--surface-2); color: #fff; }
.region-results mark { background: none; color: var(--gold); font-weight: 700; }
.region-results .empty { padding: 10px 12px; font-size: 13px; color: var(--muted); }

.region-crumb { display: flex; align-items: center; gap: 8px; margin: 12px 2px 10px; font-size: 12.5px; color: var(--muted); min-height: 24px; }
.region-crumb b { color: var(--text); font-size: 13.5px; }
.crumb-back { padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-2); }
.crumb-back:hover { color: #fff; }

.chip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-height: 176px; overflow-y: auto; scrollbar-width: thin; }
.chip-grid.sido { grid-template-columns: repeat(6, 1fr); max-height: none; }
.chip-grid button {
  height: 36px; padding: 0 4px; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .15s, border-color .15s, color .15s;
}
.chip-grid button:hover { background: rgba(183, 156, 255, .12); border-color: rgba(183, 156, 255, .45); color: #fff; }

.region-picked {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 52px; padding: 0 16px; border-radius: 14px;
  background: rgba(183, 156, 255, .1); border: 1px solid rgba(183, 156, 255, .5);
}
.region-picked b { font-size: 15px; }
.region-picked b::before { content: "📍"; margin-right: 8px; }

.step-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.step-actions .btn { height: 52px; }

/* ---------- 토스트 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 36px; z-index: 200;
  transform: translateX(-50%) translateY(16px);
  padding: 13px 20px; border-radius: 14px;
  background: rgba(22, 23, 34, .92); border: 1px solid var(--line-2);
  backdrop-filter: blur(16px); box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 56px; gap: 24px; }
  .hero-visual { height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
  .features { grid-template-columns: 1fr; }
  .levels { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 600px) {
  main { padding: 0 18px 72px; }
  .topbar-inner { padding: 0 18px; height: 60px; gap: 12px; }
  .nav, .brand-sub, .user-btn .u-name { display: none; }
  .brand-logo { width: 32px; height: 32px; }
  .hero { padding-top: 40px; }
  .stats { gap: 28px; }
  .stats dt { font-size: 26px; }
  .hero-visual { height: 310px; }
  .fc-main { inset: 50px 0 auto 0; padding: 22px; }
  .fc-a { right: -4px; }
  .fc-b { left: -4px; bottom: 10px; }
  .dash { padding: 22px; }
  .dash-top { gap: 16px; }
  .dash-ring { width: 104px; height: 104px; }
  .dash-ring .lbl b { font-size: 26px; }
  .dash-info h3 { font-size: 19px; }
  .stage { padding: 16px; }
  .stage-bar { display: none; }
  .levels { gap: 7px; }
  .level { border-radius: 12px; }
  .level .num { font-size: 16px; }
  .level .sub { font-size: 9px; }
  .quiz-wrap { padding-top: 24px; }
  .quiz-desc { display: none; }
  .problem-card { padding: 44px 20px 22px; }
  .keypad button { height: 58px; }
  .result-card { padding: 40px 18px 32px; margin-top: 32px; }
  .result-stats { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 16px 14px; }
  .chart { height: 210px; gap: 6px; }
  .chart-plot .cols { gap: 4px; }
  .col-val { font-size: 9.5px; }
  .avg-line em { font-size: 9.5px; }
  .modal-box { padding: 36px 20px 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .chip-grid { grid-template-columns: repeat(3, 1fr); }
  .chip-grid.sido { grid-template-columns: repeat(5, 1fr); }
  .seg-group { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
