:root {
  --bg: #f4f5f7;
  --paper: #ffffff;
  --ink: #111827;
  --sub: #4b5563;
  --hint: #6b7280;
  --line: #f3f4f6;
  --navy: #1A237E;
  --navy-deep: #080B2E;
  --gold: #B8944F;
  --gold-soft: #C8A96E;
  --blue: #1A237E;
  --blue-soft: #E8EAF6;
  --red: #b42318;
  --down: #1A237E;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  min-height: 100%;
  overflow-x: hidden;
  background: #f4f5f7;
  color: var(--ink);
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, a { touch-action: manipulation; font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
.phone {
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  position: relative;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.top {
  height: calc(56px + var(--safe-t));
  padding: var(--safe-t) 6px 0 10px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}
.phone.home { background: #f7f5f2; }
.phone.home .top {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
}
.phone.home .logo strong,
.phone.home .back { color: #fff; }
.phone.home .logo span { color: rgba(255,255,255,.75); }
.phone.home .burger span { background: #fff; }
.phone.home.menu-open .top { background: #fff; box-shadow: 0 1px 0 #e5e7eb; }
.phone.home.menu-open .logo strong,
.phone.home.menu-open .back { color: var(--ink); }
.phone.home.menu-open .logo span { color: var(--hint); }
.phone.home.menu-open .burger span { background: var(--ink); }
.back, .burger {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  color: var(--ink);
}
.back[hidden] { display: none; }
.logo {
  flex: 1;
  min-width: 0;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}
.logo strong { font-size: 15px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; white-space: nowrap; }
.logo span { font-size: 10px; letter-spacing: .14em; color: var(--hint); font-weight: 600; line-height: 1.2; }
.burger {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.on span:nth-child(2) { opacity: 0; }
.burger.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer {
  position: fixed;
  top: calc(56px + var(--safe-t));
  left: 0; right: 0;
  max-height: calc(100dvh - 56px - var(--safe-t));
  overflow-y: auto;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 16px 32px rgba(8,11,46,.12);
  z-index: 4;
}
.drawer[hidden] { display: none; }
.drawer p {
  padding: 14px 20px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gold);
}
.drawer button, .drawer a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  text-align: left;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  border-top: 1px solid #f3f4f6;
}
.drawer .sub { padding-left: 32px; font-weight: 500; font-size: 15px; color: #374151; }
.drawer .on { background: #E8EAF6; color: var(--navy); }
#stage { flex: 1; }
.touch-press { opacity: .6; }

.hello { background: var(--paper); padding: 22px 24px 16px; }
.hello h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.3; }
.hello p { margin-top: 8px; color: var(--sub); font-size: 14px; line-height: 1.5; }
.hero {
  min-height: calc(440px + var(--safe-t));
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(72px + var(--safe-t)) 22px 56px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(to bottom, rgba(8,11,46,.55) 0%, rgba(8,11,46,.4) 14%, rgba(8,11,46,.55) 52%, rgba(247,245,242,.25) 84%, #f7f5f2 100%),
    url("https://hangangasset.kr/assets/images/hero-bg.png") center top / cover no-repeat;
}
.hero h1 { color: #fff; font-size: 28px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.35; }
.hero .gold { color: var(--gold-soft); }
.eyebrow { margin: 0 0 10px; color: var(--gold-soft); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.hero .cta { width: 100%; max-width: 280px; margin: 18px auto 0; align-self: center; }
.textlink {
  margin-top: 12px;
  min-height: 44px;
  padding: 0;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
}
.popup {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 11, 46, .62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.popup[hidden] { display: none; }
.popup-card {
  width: min(100%, 360px);
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(8, 11, 46, .4);
  animation: pop .22s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.popup-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 8px 16px 18px;
  color: #fff;
  background: linear-gradient(135deg, #080B2E, #1A237E);
}
.popup-top > div { flex: 1; min-width: 0; }
.popup-top small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--gold-soft); }
.popup-top b { display: block; margin-top: 2px; font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.popup-badge {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--gold-soft);
  background: rgba(200, 169, 110, .16);
  border: 1px solid rgba(200, 169, 110, .45);
}
.popup-x {
  width: 44px; height: 44px; flex: none;
  font-size: 28px;
  line-height: 1;
  color: rgba(255, 255, 255, .8);
}
.popup-body { padding: 18px 20px 6px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.popup-body p { font-size: 14px; line-height: 1.6; color: var(--sub); word-break: keep-all; }
.popup-body > p + p, .popup-box + p { margin-top: 12px; }
.popup-body .lead { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.55; }
.popup-box {
  margin: 14px 0;
  padding: 14px 14px 14px 16px;
  background: #faf6ee;
  border-left: 3px solid var(--gold);
  border-radius: 4px 12px 12px 4px;
}
.popup-box p { color: #3a3a46; }
.popup-box p + p { margin-top: 8px; }
.popup-box b { color: var(--navy); font-weight: 700; }
.popup-actions { display: grid; gap: 8px; padding: 14px 20px 20px; }
.popup-call, .popup-ok {
  display: flex; align-items: center; justify-content: center;
  height: 48px; border-radius: 14px;
  font-size: 15px; font-weight: 700; text-decoration: none;
}
.popup-call { color: var(--navy); background: var(--blue-soft); }
.popup-ok { color: #fff; background: var(--navy); }
.popup-call:active, .popup-ok:active { opacity: .85; }

.sheet {
  margin-top: 0;
  position: relative;
  background: #f7f5f2;
  padding: 0 0 8px;
}
.gap { height: 0; }
.group { background: transparent; padding: 0 16px 12px; }
.group .menu, .group .shot, .group .row, .group .clip { background: #fff; }
.group .menu { border-radius: 16px 16px 0 0; }
.group .menu:last-child { border-radius: 16px; }
.group .shot { margin: 0; border-radius: 0 0 16px 16px; }
.group .menu + .shot { box-shadow: none; }
.menu {
  width: 100%;
  min-height: 74px;
  padding: 16px 20px 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: var(--paper);
}
.menu + .menu { box-shadow: inset 0 1px 0 #f2f4f6; }
.menu:active { background: #f9fafb; }
.ico {
  width: 40px; height: 40px; flex: none;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
}
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.menu .t { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.3; }
.menu .s { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; color: var(--hint); line-height: 1.35; }
.chev { color: #b0b8c1; flex: none; }

.pad { padding: 8px 24px 0; background: var(--paper); }
.h-label { padding: 18px 24px 8px; font-size: 13px; font-weight: 600; color: var(--hint); background: var(--bg); }
.row {
  min-height: 64px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--paper);
}
.row + .row { box-shadow: inset 0 1px 0 #f2f4f6; }
.row b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.03em; }
.row .meta { margin-top: 3px; font-size: 13px; color: var(--hint); }
.row .meta.fix { color: var(--navy); font-weight: 600; }
.row .right { font-size: 15px; font-weight: 600; color: var(--sub); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .right.up { color: var(--red); }
.row .right.dn { color: var(--down); }
.badge {
  height: 26px; padding: 0 8px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center;
}
.badge.grey { background: #f2f4f6; color: var(--sub); }
.up { color: var(--red); }
.dn { color: var(--down); }

.clip {
  display: block; width: 100%; text-align: left;
  background: var(--paper);
  padding: 16px 24px 18px;
}
.clip + .clip { box-shadow: inset 0 1px 0 #f2f4f6; }
.clip:active { background: #f9fafb; }
.thumb {
  height: 168px; border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(25,31,40,.05), rgba(25,31,40,.28)),
    linear-gradient(135deg, #dbe7ff, #eef2f6 55%, #f7f1e6);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 14px;
  color: #fff;
  font-size: 13px; font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.play {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink);
  display: grid; place-items: center;
  text-shadow: none;
}
.clip .t { margin-top: 12px; font-size: 17px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.35; }
.clip .s { margin-top: 4px; font-size: 13px; color: var(--hint); }

.seg-wrap { background: var(--paper); margin: 0 16px; padding: 12px 8px 4px; border-radius: 16px 16px 0 0; }
.seg {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #f2f4f6; border-radius: 12px; padding: 4px;
}
.seg button {
  min-height: 40px; border-radius: 9px;
  font-size: 14px; font-weight: 700; color: var(--sub);
}
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }

.asset { background: var(--paper); padding: 12px 24px 8px; }
.asset .l { font-size: 14px; color: var(--sub); font-weight: 600; }
.asset .n {
  margin-top: 6px;
  font-size: 32px; font-weight: 700; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.asset .n span { font-size: 22px; margin-left: 2px; }
.asset .sub { margin-top: 8px; font-size: 15px; color: var(--sub); font-weight: 600; }

.cta {
  display: flex; align-items: center; justify-content: center;
  width: calc(100% - 40px);
  margin: 20px 20px 8px;
  height: 56px; border-radius: 16px;
  background: var(--gold); color: #fff;
  font-size: 17px; font-weight: 700;
  text-decoration: none;
}
.cta:active { opacity: .85; }
.cta.line { background: #f2f4f6; color: var(--sub); }
.shot {
  display: block;
  margin: 0 16px 14px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #191f28;
}
.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
}
.shot .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shot .play {
  position: absolute;
  right: 10px; top: 10px;
  width: 32px; height: 32px;
  text-shadow: none;
}
.legal {
  padding: 4px 24px 24px;
  font-size: 12px; line-height: 1.5; color: #8b95a1;
  background: transparent;
}
.sheet .legal { background: transparent; }
