
:root{
  --bg:#F4F6FA;
  --surface:#FFFFFF;
  --surface-2:#F1F3F6;
  --line:#E7E9EE;
  --line-strong:#D8DBE2;
  --ink:#0F1218;
  --ink-soft:#6B7280;
  --ink-faint:#9CA3AF;
  --navy:#122542;
  --navy-2:#1B3560;
  --navy-deep:#0B1729;
  --brass-lite:#D8B26A;   
  --brass:#A8823C;
  --brass-tint:#F5EFE0;
  --green:#12A150;
  --maxw:440px;
  --ease:cubic-bezier(.22,.61,.36,1);
}

*{box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent;}
body{
  font-family:'Pretendard',-apple-system,BlinkMacSystemFont,'Malgun Gothic',sans-serif;
  background:#E4E7EE;                 
  color:var(--ink); line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow:hidden;                    
  word-break:keep-all;
}
svg{display:block;}
button{font:inherit; color:inherit; cursor:pointer; border:none; background:none;}
a{color:inherit; text-decoration:none;}
:focus-visible{outline:2px solid var(--brass); outline-offset:2px;}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.01ms !important; transition-duration:.01ms !important;}
}

.app{
  position:fixed; inset:0;
  max-width:var(--maxw); margin:0 auto;
  display:flex; flex-direction:column;
   background:var(--navy-deep); overflow:hidden;
}

.apphead{
  flex-shrink:0; position:relative; z-index:2; overflow:hidden;
  background:
    radial-gradient(120% 90% at 82% 6%, rgba(168,130,60,.20), transparent 58%),
    linear-gradient(168deg, var(--navy-2) 0%, var(--navy) 52%, var(--navy-deep) 100%);
  padding:calc(env(safe-area-inset-top) + 14px) 22px 26px;
}
.apphead::before{
  content:''; position:absolute; inset:0 0 auto; height:1px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
}
.apphead-row{display:flex; align-items:center; min-height:38px; position:relative; z-index:1;}
.apphead-btn{
  width:38px; height:38px; margin-left:-8px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%; transition:background .15s;
}
.apphead-btn:active{background:rgba(255,255,255,.12);}
.apphead-btn svg{width:21px; height:21px; stroke:#fff; stroke-width:2.1; fill:none;}
.apphead-call{
  margin-left:auto; width:38px; height:38px; margin-right:-4px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%; background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.14);
  transition:background .15s, transform .12s;
}
.apphead-call:active{background:rgba(255,255,255,.22); transform:scale(.94);}
.apphead-call svg{width:17px; height:17px; stroke:#fff; stroke-width:2; fill:none;}

.apphead-pill{
  margin-left:auto; margin-right:-2px;
  display:inline-flex; align-items:center; gap:6px;
  min-height:36px; padding:8px 13px; border-radius:999px;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.16);
  transition:background .15s, transform .12s;
}
.apphead-pill:active{background:rgba(255,255,255,.22); transform:scale(.96);}
.apphead-pill svg{width:15px; height:15px; stroke:#fff; stroke-width:2; fill:none;}
.apphead-pill span{font-size:12.5px; font-weight:700; color:#fff; letter-spacing:-0.02em; white-space:nowrap;}

.apphead-brand{
  position:relative; z-index:1;
  margin-top:16px; text-align:center;
  font-size:36px; font-weight:800; letter-spacing:-0.045em; line-height:1.1; color:#fff;
}
.keyline{
  position:relative; z-index:1;
  width:112px; height:11px; margin:11px auto 0;
}
.keyline svg{width:100%; height:11px; overflow:visible;}
.keyline path{
  stroke:var(--brass-lite); stroke-width:2; fill:none;
  stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:420; stroke-dashoffset:420;
  animation:keyDraw .85s var(--ease) .2s forwards;
}
@keyframes keyDraw{to{stroke-dashoffset:0;}}

.apphead-tag{
  position:relative; z-index:1;
  margin-top:12px; text-align:center;
  font-size:12px; font-weight:600; letter-spacing:.01em; color:rgba(255,255,255,.56);
  display:flex; align-items:center; justify-content:center; gap:7px;
}
.apphead-tag .live{
  width:6px; height:6px; border-radius:50%; background:#4ADE80; position:relative; flex-shrink:0;
}
.apphead-tag .live::after{
  content:''; position:absolute; inset:-3px; border-radius:50%;
  border:1.5px solid #4ADE80; animation:livePulse 2s ease-out infinite;
}
@keyframes livePulse{0%{transform:scale(1); opacity:.5;} 70%{transform:scale(1.7); opacity:0;} 100%{opacity:0;}}

.apphead-title{
  position:relative; z-index:1;
  margin-top:14px;
  font-size:24px; font-weight:800; letter-spacing:-0.038em; color:#fff;
}
.apphead-desc{
  position:relative; z-index:1;
  margin-top:6px; font-size:12.5px; color:rgba(255,255,255,.55); letter-spacing:-0.01em;
}

.panel{
   flex:1; min-height:0; position:relative; z-index:1;
  background:var(--bg);
  border-radius:28px 28px 0 0;
  overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain;
  padding:24px 20px calc(env(safe-area-inset-bottom) + 26px);
}

.mains{display:flex; flex-direction:column; gap:10px;}
.main-btn{
  display:flex; align-items:center; gap:15px;
  background:var(--surface); border-radius:20px;
  min-height:78px; padding:16px 18px;
  box-shadow:0 2px 10px rgba(18,37,66,.05);
  transition:transform .12s, box-shadow .18s;
}
.main-btn:active{transform:scale(.985); box-shadow:0 1px 4px rgba(18,37,66,.09);}
.main-ic{
  width:46px; height:46px; border-radius:15px; flex-shrink:0;
  background:var(--navy); display:flex; align-items:center; justify-content:center;
}
.main-ic svg{width:22px; height:22px; stroke:var(--brass-lite); stroke-width:1.9; fill:none;}
.main-txt{min-width:0;}
.main-txt b{display:block; font-size:17px; font-weight:700; letter-spacing:-0.03em;}
.main-txt span{display:block; font-size:12.5px; color:var(--ink-faint); margin-top:3px; letter-spacing:-0.01em;}
.main-arrow{margin-left:auto; flex-shrink:0;}
.main-arrow svg{width:16px; height:16px; stroke:#C6CBD4; stroke-width:2.2; fill:none;}

.subs{display:flex; gap:10px; margin-top:10px;}
.subs > *{flex:1 1 0; min-width:0;}
.sub-btn{
  background:var(--surface); border-radius:18px;
  min-height:92px; padding:15px 8px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px;
  box-shadow:0 2px 10px rgba(18,37,66,.05);
  transition:transform .12s, box-shadow .18s;
}
.sub-btn:active{transform:scale(.97); box-shadow:0 1px 4px rgba(18,37,66,.09);}
.sub-ic{
  width:36px; height:36px; border-radius:12px;
  background:var(--brass-tint); display:flex; align-items:center; justify-content:center;
}
.sub-ic svg{width:18px; height:18px; stroke:var(--brass); stroke-width:1.9; fill:none;}
.sub-btn b{font-size:13px; font-weight:700; letter-spacing:-0.03em; text-align:center;}

.ticker{margin-top:26px;}
.ticker[hidden]{display:none;}
.ticker-label{font-size:10.5px; font-weight:600; color:#C2C7D0; letter-spacing:.06em; text-align:center; margin-bottom:2px;}
.ticker-window{
  position:relative; height:64px; overflow:hidden;
  -webkit-mask-image:linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image:linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
.ticker-list{list-style:none; position:absolute; inset:0 0 auto 0; animation:tickerScroll 18s linear infinite;}
.ticker-list li{height:32px; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:500; color:var(--ink-faint); white-space:nowrap;}
.ticker-list li b{color:var(--ink-soft); font-weight:700;}
@keyframes tickerScroll{0%{transform:translateY(0);} 100%{transform:translateY(-50%);}}

.legal{margin-top:26px; text-align:center;}
.legal summary{
  display:inline-flex; align-items:center; gap:5px; cursor:pointer; list-style:none;
  font-size:11.5px; font-weight:600; color:var(--ink-faint); letter-spacing:-0.01em;
  min-height:32px; padding:0 6px;
}
.legal summary::-webkit-details-marker{display:none;}
.legal summary::marker{content:'';}
.legal summary::after{content:'⌄'; font-size:11px; transition:transform .2s var(--ease);}
.legal[open] summary::after{transform:rotate(180deg);}
.legal-body{
  margin-top:6px; display:flex; flex-direction:column; gap:3px;
  font-size:11px; line-height:1.6; color:var(--ink-faint);
}
.legal-body div{display:flex; justify-content:center; gap:6px;}
.legal-link{
  display:inline-block; margin-top:8px; min-height:32px; padding:6px;
  font-size:11.5px; font-weight:600; color:var(--ink-faint);
  text-decoration:underline; text-underline-offset:2px;
}

h2{font-size:17px; font-weight:800; letter-spacing:-0.03em; line-height:1.4;}
.group{margin-top:24px;}
.group:first-child{margin-top:0;}
.group-label{
  font-size:11.5px; font-weight:700; color:var(--ink-faint);
  letter-spacing:.02em; padding:0 4px 9px;
}

.flow{background:var(--surface); border-radius:18px; padding:20px 18px;}
.flow-row{display:flex; gap:14px; padding:0 0 18px; position:relative;}
.flow-row:last-child{padding-bottom:0;}
.flow-num{
  width:26px; height:26px; border-radius:50%; flex-shrink:0; z-index:1;
  background:var(--navy); color:#fff;
  font-size:12px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
}
.flow-row:not(:last-child)::before{
  content:''; position:absolute; left:12.5px; top:26px; bottom:4px;
  width:1px; background:var(--line);
}
.flow-txt b{display:block; font-size:14.5px; font-weight:700; letter-spacing:-0.02em;}
.flow-txt span{display:block; font-size:12.5px; color:var(--ink-faint); margin-top:3px; line-height:1.6;}

.acc{background:var(--surface); border-radius:18px; overflow:hidden;}
.acc-item{border-bottom:1px solid var(--bg);}
.acc-item:last-child{border-bottom:none;}
.acc-item summary{
  display:flex; align-items:center; gap:12px; cursor:pointer;
  padding:16px 18px; min-height:54px; list-style:none;
  font-size:14.5px; font-weight:600; letter-spacing:-0.02em; line-height:1.45;
}
.acc-item summary::-webkit-details-marker{display:none;}
.acc-item summary::marker{content:'';}
.acc-item summary::after{
  content:''; margin-left:auto; flex-shrink:0;
  width:8px; height:8px; border-right:2px solid #C6CBD4; border-bottom:2px solid #C6CBD4;
  transform:rotate(45deg) translateY(-2px); transition:transform .2s var(--ease);
}
.acc-item[open] summary::after{transform:rotate(-135deg) translateY(-2px);}
.acc-body{padding:0 18px 18px;}
.acc-body p{font-size:13.5px; color:var(--ink-soft); line-height:1.75; margin-bottom:9px;}
.acc-body p:last-child{margin-bottom:0;}
.acc-body strong{color:var(--ink); font-weight:600;}
.acc-steps{list-style:none; counter-reset:ac; margin:0;}
.acc-steps li{
  counter-increment:ac; position:relative; padding:0 0 11px 29px;
  font-size:13.5px; color:var(--ink-soft); line-height:1.6;
}
.acc-steps li:last-child{padding-bottom:0;}
.acc-steps li::before{
  content:counter(ac); position:absolute; left:0; top:1px;
  width:19px; height:19px; border-radius:50%;
  background:var(--brass-tint); color:var(--brass);
  font-size:11px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
}
.acc-steps b{color:var(--ink); font-weight:600;}

.list{background:var(--surface); border-radius:18px; overflow:hidden;}
.cell{
  display:flex; align-items:center; gap:13px;
  padding:15px 18px; min-height:56px; width:100%; text-align:left;
  border-bottom:1px solid var(--bg);
  transition:background .15s;
}
.cell:last-child{border-bottom:none;}
.cell:active{background:var(--surface-2);}
.cell-ic{
  width:34px; height:34px; border-radius:11px; flex-shrink:0;
  background:var(--surface-2); display:flex; align-items:center; justify-content:center;
}
.cell-ic svg{width:17px; height:17px; stroke:var(--ink-soft); stroke-width:1.9; fill:none;}
.cell-txt{flex:1; min-width:0;}
.cell-txt b{display:block; font-size:14.5px; font-weight:600; letter-spacing:-0.02em;}
.cell-txt span{display:block; font-size:12px; color:var(--ink-faint); margin-top:2px;}
.cell-arrow svg{width:15px; height:15px; stroke:#C6CBD4; stroke-width:2.2; fill:none;}

.note{
  background:var(--surface); border-radius:18px; padding:18px;
  border-left:3px solid var(--brass);
}
.note p{font-size:13.5px; color:var(--ink-soft); line-height:1.75;}
.note strong{color:var(--ink); font-weight:600;}

.btn{
  display:flex; align-items:center; justify-content:center; gap:8px;
  width:100%; min-height:54px; padding:15px 20px; border-radius:16px;
  font-size:15.5px; font-weight:700; letter-spacing:-0.02em;
  transition:transform .12s;
}
.btn:active{transform:scale(.98);}
.btn-navy{background:var(--navy); color:#fff;}
.btn svg{width:18px; height:18px; stroke:currentColor; stroke-width:2.2; fill:none;}

@view-transition{ navigation:auto; }
@media (prefers-reduced-motion: no-preference){
  ::view-transition-old(root){animation:vtOut .16s var(--ease) both;}
  ::view-transition-new(root){animation:vtIn .2s var(--ease) both;}
}
@keyframes vtOut{to{opacity:0;}}
@keyframes vtIn{from{opacity:0;}}

.area-list{
  margin-top:14px; padding-top:14px; border-top:1px solid var(--bg);
}
.area-title{
  font-size:11.5px; font-weight:700; color:var(--brass);
  letter-spacing:.04em; margin-bottom:10px;
}
.area-row{padding:9px 0; border-bottom:1px solid var(--bg);}
.area-row:last-child{border-bottom:none;}
.area-row b{
  display:block; font-size:13px; font-weight:700; color:var(--ink);
  letter-spacing:-0.02em; margin-bottom:3px;
}
.area-row span{
  display:block; font-size:12px; line-height:1.7; color:var(--ink-faint);
  letter-spacing:-0.01em; word-break:keep-all;
}
.area-row span a, .post .dongs a{
  color:var(--ink); text-decoration:none;
  border-bottom:1px solid var(--line-strong); padding-bottom:1px;
}
.area-row span a:active, .post .dongs a:active{color:var(--brass); border-color:var(--brass);}
