/* M-1123-META-IDCARD 얼굴 주민증 — 메타코리아시티 색(짙은 초록 · 크림 · 연두) · 강남 사진 · 시민 캐릭터 */
#faceGate{--g:#14392f;--c:#fbf7e9;--l:#c9f46b;position:fixed;inset:0;z-index:20;display:flex;align-items:flex-end;justify-content:center;pointer-events:none;padding:max(14px,env(safe-area-inset-top)) 14px max(18px,env(safe-area-inset-bottom));overflow:auto}
#faceGate[data-cur=intro],#faceGate[data-cur=again],#faceGate[data-cur=consent]{background:linear-gradient(180deg,rgba(10,30,24,.6),rgba(10,30,24,.05) 45%,rgba(10,30,24,.78)),var(--mv-img-city-gangnam,url(../img/city-gangnam.jpg)) center/cover;pointer-events:auto}
#faceGate[data-cur=card]{background:var(--g);pointer-events:auto}
#faceGate .fs{pointer-events:auto;width:100%;max-width:460px;display:flex;flex-direction:column;gap:10px;background:var(--c);color:var(--g);border-radius:26px;padding:20px 18px;box-shadow:0 10px 40px rgba(0,0,0,.3);max-height:100%;overflow:auto}
#faceGate .fs.hide{display:none}
#faceGate .fs{background:transparent;box-shadow:none;color:#fbf7e9}
#faceGate .fbrand{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:800;letter-spacing:.08em}
#faceGate .fbrand svg{width:17px;height:17px}
#faceGate .feb{font-size:12px;font-weight:700;color:var(--l)}
#faceGate h2{margin:0;font-size:32px;line-height:1.14;letter-spacing:-.03em;font-weight:900}
#faceGate h2 em{font-style:normal;color:var(--l)}
#faceGate .fh2{font-size:27px}
#faceGate .fsub{margin:0;font-size:14px;line-height:1.55;opacity:.85}
#faceGate .fmsg{font-size:13px;line-height:1.5;color:#b4452a;min-height:0}
#faceGate .fmsg{color:#ffd9a8}
#faceGate .fmsg:empty{display:none}
#faceGate .fck{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;line-height:1.45}
#faceGate .fck input{width:22px;height:22px;flex:none;margin-top:1px;accent-color:var(--l)}
#faceGate .fnote{margin:0;padding-left:18px;font-size:12.5px;line-height:1.55;opacity:.8}
#faceGate .t{height:48px;border-radius:14px;border:1.5px solid rgba(251,247,233,.45);background:rgba(251,247,233,.95);color:var(--g);padding:0 14px;font:inherit;font-size:16px;width:100%;-webkit-user-select:text;user-select:text}
#faceGate .row{display:flex;flex-direction:column;gap:6px;font-size:13px}
#faceGate .big,#faceGate .sub{height:50px;border-radius:25px;font-size:15px;font-weight:800;border:0}
#faceGate .big{box-shadow:none}
#faceGate .big{background:var(--l);color:var(--g)}
#faceGate .big.alt{background:var(--g)}
#faceGate .sub{background:transparent;border:1.5px solid currentColor;height:44px;font-size:13.5px;font-weight:700;color:inherit}
#faceGate .big:disabled{opacity:.4;box-shadow:none}
#faceGate .slim{height:36px;font-size:12px;border:0;opacity:.65}
.fcard{position:relative;border-radius:22px;background:linear-gradient(135deg,#c9f46b 0%,#e3ef9a 55%,#f6ecb8 100%);color:var(--g);padding:16px;min-height:210px;transform:rotate(-2.5deg);box-shadow:0 20px 40px rgba(0,0,0,.35);overflow:hidden;text-align:left}
.fcard:before{content:"";position:absolute;right:-60px;top:-30px;width:260px;height:260px;border-radius:50%;border:1px solid rgba(20,57,47,.12);box-shadow:0 0 0 24px rgba(20,57,47,.05),0 0 0 48px rgba(20,57,47,.04)}
.fct{position:relative;font-size:10px;font-weight:800;letter-spacing:.08em}
.fttl{position:relative;font-size:28px;font-weight:900;letter-spacing:-.03em;margin-top:12px}
.fnick{position:relative;font-size:17px;font-weight:800;margin-top:6px}
.fgrade{position:relative;font-size:10px;font-weight:800;letter-spacing:.08em;margin-top:6px}
.fline{display:none}
.fpor{position:absolute;right:8px;bottom:-4px;width:112px;aspect-ratio:150/252;background-image:var(--mv-img-citizens,url(../img/citizens.webp));background-repeat:no-repeat;filter:drop-shadow(0 6px 6px rgba(0,0,0,.25))}
@media(min-width:760px){#faceGate{align-items:center}}
#faceGate .fbrowse{margin-top:6px;display:flex;flex-direction:column;gap:6px}
#faceGate .fbrowse .fsub{font-size:12.5px;opacity:.75}
#faceGate .chips{display:flex;flex-wrap:wrap;gap:6px}
#faceGate .chip{height:38px;min-width:54px;padding:0 14px;border-radius:19px;border:1.5px solid rgba(251,247,233,.5);background:rgba(10,30,24,.35);color:#fbf7e9;font:inherit;font-size:13.5px;font-weight:700}
#faceGate .chip.on{background:var(--l);border-color:var(--l);color:var(--g)}
#faceGate .pick{display:flex;align-items:center;justify-content:center;gap:10px}
#faceGate .pickBox{position:relative;width:132px;height:220px;border-radius:22px;background:rgba(251,247,233,.14);border:1.5px solid rgba(201,244,107,.55);display:flex;flex-direction:column;align-items:center;justify-content:flex-end;overflow:hidden}
#faceGate .fpor.pk{position:static;width:112px;margin-bottom:22px;filter:drop-shadow(0 6px 6px rgba(0,0,0,.3));flex:none}
#faceGate .pkl{position:absolute;left:0;right:0;bottom:4px;text-align:center;font-size:10.5px;font-weight:800;letter-spacing:.02em;color:var(--l)}
#faceGate .arr{width:46px;height:46px;border-radius:50%;border:0;background:var(--l);color:var(--g);font-size:26px;font-weight:900;line-height:1}
#faceGate .arr:disabled{opacity:.35}
#faceGate .fs{text-shadow:0 1px 6px rgba(0,0,0,.55)}
#faceGate .t,#faceGate .big,#faceGate .chip.on,#faceGate .arr,#faceGate .fcard{text-shadow:none}
#faceGate[data-cur=consent],#faceGate[data-cur=again]{background:linear-gradient(180deg,rgba(10,30,24,.82),rgba(10,30,24,.72) 50%,rgba(10,30,24,.9)),var(--mv-img-city-gangnam,url(../img/city-gangnam.jpg)) center/cover}
#faceGate .row b{color:#fbf7e9;opacity:1;font-weight:800}

/* Street controls share the same paper, ink and spacing as the city entrance. */
body:has(> #hud:not(.hide)), #hud {
  --ws-left:max(12px,env(safe-area-inset-left)); --ws-right:max(12px,env(safe-area-inset-right));
  --ws-top:max(12px,env(safe-area-inset-top)); --ws-bottom:max(24px,env(safe-area-inset-bottom));
  --ws-paper:#faf9f2; --ws-ink:#183b31; --ws-dark:#193d32;
  --ws-line:rgba(32,60,50,.19); --ws-shadow:0 3px 12px rgba(17,35,27,.22);
  --ws-dock-width:min(374px,calc(100% - var(--ws-left) - var(--ws-right)));
}
#hud, body:has(> #hud:not(.hide)) #joyHint { font-family:Inter,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif; }
#hud [hidden]{display:none!important}
#hud #walkLocation {
  position:absolute; top:var(--ws-top); left:var(--ws-left); display:flex; align-items:center; gap:10px;
  padding:5px 12px 5px 5px; max-width:calc(100% - var(--ws-left) - var(--ws-right) - 78px);
  color:#fffdf4; background:rgba(25,55,46,.95); border:1px solid rgba(239,238,215,.45); border-radius:15px; box-shadow:var(--ws-shadow);
}
#hud #mini { position:static; display:block; flex:none; width:59px; height:59px; border:1px solid #e5dfc8; border-radius:10px; box-shadow:none; }
#hud .walk-place { min-width:0; }
#hud #town, #hud #timeChip, #hud #revisitChip {
  position:static!important; transform:none!important; max-width:none; padding:0!important; margin:0;
  background:transparent!important; box-shadow:none; border:0; color:inherit!important; font:inherit!important; zoom:1;
}
#hud #town { font-size:clamp(16px,2vw,20px)!important; font-weight:750!important; line-height:1.32!important; letter-spacing:-.045em; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
#hud .walk-meta { display:flex; align-items:center; gap:6px; margin-top:3px; color:#d9e3d9; font-size:11px; line-height:1.25; font-variant-numeric:tabular-nums; white-space:nowrap; }
#hud #revisitChip:not([hidden])::before { content:""; display:inline-block; width:3px; height:3px; margin:0 6px 2px 0; border-radius:50%; background:#acc7b6; }
#hud #dest { top:calc(var(--ws-top) + 77px); left:var(--ws-left); max-width:calc(100% - var(--ws-left) - var(--ws-right));
  color:var(--ws-ink); background:var(--ws-paper); box-shadow:var(--ws-shadow); padding:5px 10px; border:1px solid var(--ws-line);
  border-radius:7px; font-size:12px; line-height:1.3; font-weight:650; overflow:hidden; text-overflow:ellipsis; }
#hud #dest::before { content:""; width:5px; height:5px; display:inline-block; vertical-align:middle; border-radius:50%; margin:0 6px 2px 0; background:#588969; }
#hud #miniBtns { top:calc(var(--ws-top) + 111px); left:var(--ws-left); }
#hud #miniBtns button { min-height:44px; border-radius:10px; }
#hud #walkDock {
  position:absolute; bottom:var(--ws-bottom); left:0; right:0; margin:0 auto; width:var(--ws-dock-width); display:flex;
  align-items:stretch; gap:0; padding:4px; color:var(--ws-ink); background:var(--ws-paper);
  border:1px solid rgba(255,255,247,.85); border-radius:19px; box-shadow:0 3px 17px rgba(25,42,32,.28);
}
#hud #tools { position:static; display:contents; }
#hud #tools button, #hud .walk-talk-slot {
  flex:1 1 0; min-width:44px; width:auto; height:50px; padding:3px 1px; border-radius:13px; gap:3px;
  color:var(--ws-ink); background:transparent; box-shadow:none; font-size:11px; font-weight:650; line-height:1.12;
}
#hud #tools button svg { width:21px; height:21px; stroke-width:1.65; }
#hud #tools #tMap { background:#e7ecdf; color:#274e3b; }
#hud #tools #tShop { background:transparent; color:var(--ws-ink); }
#hud #tools #tMenu {
  position:fixed; top:var(--ws-top); right:var(--ws-right); z-index:82; flex-direction:row; gap:5px;
  width:auto; min-width:65px; height:44px; padding:0 10px; background:var(--ws-paper); border:1px solid var(--ws-line);
  border-radius:13px; box-shadow:var(--ws-shadow); color:var(--ws-ink); font-size:13px;
}
#hud #tools #tMenu svg { width:17px; height:17px; }
#hud #tools #tMenu[aria-expanded=true] { background:var(--ws-dark); color:#fffdf4; }
#hud #tools #tOps, #hud #tools #tRep { position:fixed; top:calc(var(--ws-top) + 48px); right:var(--ws-right); width:65px; min-height:44px; background:var(--ws-paper); }
#hud #tools:has(#tOps:not(.hide)) #tRep { top:calc(var(--ws-top) + 96px); }
#hud #walkDock:has(.composing) { bottom:max(var(--ws-bottom),var(--ws-keyboard,0px)); }
#hud .walk-talk-slot { display:flex; justify-content:center; padding:0; }
#hud #talkRow { position:static; transform:none!important; display:flex; flex:1; justify-content:center; align-items:center; gap:0; min-width:0; width:auto!important; }
#hud #talkRow svg { position:absolute; top:9px; width:21px; height:21px; pointer-events:none; }
#hud #talkQ { width:100%; min-width:44px; height:50px; padding:23px 0 2px; border:0; border-radius:12px; background:transparent; color:var(--ws-ink); text-align:center; font-size:11px; font-weight:650; }
#hud #talkQ:focus { font-size:16px; }
#hud #talkQ::placeholder { color:var(--ws-ink); opacity:1; }
#hud #talkB, #hud #walkTalkClose { display:none; }
#hud #talkRow.composing { position:absolute; inset:0!important; padding:5px; gap:5px; width:auto!important; border-radius:18px; background:var(--ws-paper); }
#hud #talkRow.composing svg { display:none; }
#hud #talkRow.composing input { flex:1; min-width:0; padding:0 10px; height:44px; font-size:16px; font-weight:450; text-align:left; background:#fff; border:1px solid var(--ws-line); }
#hud #talkRow.composing button { display:block; min-width:44px; height:44px; padding:0 10px; border-radius:11px; background:var(--ws-dark); color:#fffdf4; font-size:14px; }
#hud #talkRow.composing #walkTalkClose { background:transparent; color:var(--ws-ink); font-size:23px; }
#hud #runb, #hud #gestb, #hud #tTxtRoute {
  width:auto; min-width:44px; height:44px; min-height:44px; bottom:calc(var(--ws-bottom) + 69px)!important;
  border:1px solid var(--ws-line); border-radius:12px!important; background:var(--ws-paper); color:var(--ws-ink); padding:0 10px!important;
  box-shadow:var(--ws-shadow)!important; font-size:12px!important; font-weight:650;
}
#hud #runb { right:var(--ws-right); }
#hud #runb.on { background:var(--ws-dark); color:#fffdf4; }
#hud #gestb { right:calc(var(--ws-right) + 48px); }
#hud:has(#runb.hide) #gestb { right:var(--ws-right); }
#hud #tTxtRoute { left:var(--ws-left)!important; }
#hud #act { right:var(--ws-right); bottom:calc(var(--ws-bottom) + 122px); min-width:68px; height:auto; min-height:44px; padding:6px 13px; font-size:15px; border-radius:12px; box-shadow:var(--ws-shadow); background:var(--ws-dark); color:#fffdf4; }
#hud #addrBox { bottom:calc(var(--ws-bottom) + 123px); }
#hud #addrBox input, #hud #addrBox button { min-height:44px; }
#hud #txtRoute { bottom:calc(var(--ws-bottom) + 122px)!important; }
body:has(> #hud:not(.hide)) #joyHint { left:var(--ws-left); bottom:calc(var(--ws-bottom) + 122px); width:auto; height:auto; padding:4px 8px; border:1px solid rgba(237,241,225,.55); border-radius:7px; background:rgba(26,49,41,.87); color:#fffdf4; font-size:11px; font-weight:550; line-height:1.32; }
#hud .walk-source-name { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#hud #tShop::after { content:attr(data-label); }
body:has(> #hud:not(.hide)) #mvReach { bottom:calc(var(--ws-bottom) + 170px); }
body:has(> #hud:not(.hide)) #mvWatch button { min-width:44px; min-height:44px; }
body:has(> #hud:not(.hide)) #dailyBar.on { top:calc(var(--ws-top) + 116px); }
body:has(> #hud:not(.hide)) #toast { bottom:calc(var(--ws-bottom) + 174px); }
body:has(> #hud:not(.hide)) #toast div { border-radius:9px; font-size:13px; padding:7px 11px; }
body:has(> #hud:not(.hide)) #credit { color:#34483b; background:rgba(250,249,242,.82); }
#hud.walk-menu-open { z-index:18; }
#hud #walkShade { position:fixed; inset:0; background:rgba(13,28,22,.35); z-index:80; }
#hud #walkMenu {
  position:fixed; z-index:81; display:flex; flex-direction:column; overflow:hidden; color:var(--ws-ink); background:var(--ws-paper);
  bottom:var(--ws-bottom); left:var(--ws-left); right:var(--ws-right); margin:auto;
  max-width:450px; max-height:calc(100% - var(--ws-top) - 60px - env(safe-area-inset-bottom)); border:1px solid #f7f8ec;
  border-radius:22px; box-shadow:0 10px 35px rgba(20,39,28,.27);
}
#hud .walk-menu-head { display:flex; align-items:center; justify-content:space-between; flex-shrink:0; padding:6px 9px 3px 16px; border-bottom:1px solid #d6d9cb; }
#hud .walk-menu-head h2 { margin:0; font-size:22px; font-weight:780; line-height:1.2; letter-spacing:-.063em; }
#hud #walkMenuClose { width:44px; height:44px; font-size:24px; background:transparent; color:var(--ws-ink); }
#hud #toolsMore {
  position:static; display:block; width:auto; overflow:auto; overscroll-behavior:contain; touch-action:pan-y; margin:0; padding:2px 14px 11px;
  border:0; border-radius:0; box-shadow:none; background:transparent; }
#hud #toolsMore.hide { display:none; }
#hud #toolsMore section { padding:7px 0 0; }
#hud #toolsMore h3 { font-size:13px; line-height:1.3; font-weight:750; margin:0 0 4px; color:#456451; }
#hud .walk-menu-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; }
#hud #toolsMore .walk-menu-grid :is(button,#tPlaces,#tStepFree) {
  position:static!important; display:flex; flex-direction:row; align-items:center; justify-content:flex-start;
  min-width:0; width:100%!important; height:auto!important; min-height:44px; grid-column:auto; order:0;
  margin:0; padding:3px 7px; gap:3px; border:0; border-bottom:1px solid #d5dbcd; border-radius:0; box-shadow:none;
  background:transparent; color:#233d30; font-size:12px; font-weight:650; line-height:1.2; text-align:left;
}
#hud #toolsMore .walk-menu-grid #tOver { background:#e3eadc; border-radius:7px; border-bottom-color:transparent; color:#204b35; }
#hud #toolsMore #tOver::after { content:""; flex:none; width:7px; height:7px; margin:0 2px 0 auto; border:solid currentColor; border-width:1.5px 1.5px 0 0; background:linear-gradient(135deg,transparent 44%,currentColor 45% 55%,transparent 56%); }
#hud #toolsMore #tStepFree input { flex:none; margin:0; accent-color:#335c43; }
#hud #toolsMore .walk-menu-grid button:active, #hud #tools button:active { background:#dae5d3; color:#173b2d; }
#hud :is(button,input):focus-visible { outline:2px solid #a45e20; outline-offset:-2px; }
html.big-text #hud #town { font-size:22px!important; }
html.big-text #hud .walk-meta, html.big-text #hud #toolsMore h3 { font-size:14px; }
html.big-text #hud #toolsMore .walk-menu-grid :is(button,#tPlaces,#tStepFree), html.big-text #hud #tools button { font-size:15px; }
html.big-text #hud #dest { zoom:1; font-size:15px; }
html.cb #hud :is(#act,#runb.on) { background:#0072b2; color:#fff; }
@media (min-width:760px) {
  #hud #walkMenu { left:auto; top:calc(var(--ws-top) + 53px); bottom:auto; width:374px; }
  #hud #walkLocation { padding-right:16px; }
}
@media (max-width:360px) {
  body:has(> #hud:not(.hide)), #hud { --ws-left:max(8px,env(safe-area-inset-left)); --ws-right:max(8px,env(safe-area-inset-right)); --ws-bottom:max(32px,env(safe-area-inset-bottom)); }
  #hud .walk-menu-grid { gap:2px; }
}
