/* 갓잇 네컷 — 손님 화면. 갓잇 네컷 설계안(휴대폰 화면 6장)의 색·모양을 그대로 옮겼다 */
@font-face { font-family: "Pretendard"; font-weight: 45 920; font-style: normal; font-display: swap; src: url(/assets/PretendardVariable.woff2) format("woff2-variations"); }
:root {
  --app: #0b0e13; --app2: #1a2029; --line: #2c3440; --ink: #f5f5f7; --ink2: #a1a6b0;
  --orange: #ff6a00; --blue: #1c7ed6; --red: #e03131;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--app); color: var(--ink); }
body { font-family: var(--font); font-size: 15px; line-height: 1.45; letter-spacing: -0.01em; word-break: keep-all; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.boot { padding: 80px 20px; text-align: center; color: var(--ink2); }

/* 휴대폰 한 화면 */
.nc { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  padding: env(safe-area-inset-top, 0px) max(0px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(0px, env(safe-area-inset-left, 0px)); }
.scr { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 0; font-size: 13px; color: var(--ink2); min-height: 38px; }
.top button { border: 0; background: none; padding: 6px 0; color: var(--ink2); font-size: 13.5px; }
.top button:hover { color: var(--ink); }
.h { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; padding: 12px 20px 0; line-height: 1.25; margin: 0; }
.lab { font-size: 12.5px; font-weight: 600; color: var(--ink2); padding: 18px 20px 8px; }
.sp { flex: 1; min-height: 12px; }
.btn { margin: 0 18px 10px; min-height: 52px; border-radius: 26px; border: 0; background: var(--orange); color: #fff; font-weight: 700; font-size: 16px; display: grid; place-items: center; flex: none; padding: 0 16px; }
.btn.sec { background: var(--app2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.foot { font-size: 12.5px; color: var(--ink2); text-align: center; margin: 0 18px 18px; }
.err { margin: 10px 20px 0; padding: 10px 12px; border-radius: 12px; background: rgba(224,49,49,.14); color: #ffb3b3; font-size: 13.5px; }
.note { margin: 10px 20px 0; padding: 10px 12px; border-radius: 12px; background: var(--app2); color: var(--ink2); font-size: 13px; line-height: 1.5; }
.note b { color: var(--ink); }

/* 사진 틀(설계안 .strip 그대로) */
.strip { --w: 150px; --f: #fff; --ft: #1d1d1f; --fs: #6e6e73; width: var(--w); max-width: 100%; margin: 0; background: var(--f); color: var(--ft); padding: calc(var(--w)*.06) calc(var(--w)*.06) 0; display: grid; gap: calc(var(--w)*.04); border-radius: 4px; }
.strip .ph { display: block; aspect-ratio: 4/3; border-radius: 2px; background: #2a2a2c center/cover no-repeat; }
.strip figcaption { text-align: center; padding: calc(var(--w)*.035) 0 calc(var(--w)*.085); line-height: 1.25; }
.strip figcaption img { display: block; height: calc(var(--w)*.15); width: auto; margin: 0 auto calc(var(--w)*.04); }
.strip figcaption b { display: block; font-size: calc(var(--w)*.092); font-weight: 700; letter-spacing: -.03em; }
.strip.sq { grid-template-columns: 1fr 1fr; }
.strip.sq figcaption { grid-column: 1 / -1; }
.strip.sq figcaption img { height: calc(var(--w)*.11); }

/* ① 시작 */
.s1 { flex: 1; display: grid; justify-items: center; align-content: center; gap: 6px; text-align: center; padding: 0 20px; }
.s1 .bi { width: 150px; height: auto; margin-bottom: 14px; }
.s1 b { font-size: 40px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.s1 span { font-size: 15px; color: var(--ink2); }
.s1 .pair { display: flex; gap: 18px; margin-top: 30px; }
.s1 .pair .strip { --w: 92px; }
.s1 .pair .strip:first-child { transform: rotate(-6deg); }
.s1 .pair .strip:last-child { transform: rotate(5deg); }
.mycp { margin: 0 18px 10px; padding: 12px 14px; border-radius: 14px; background: var(--app2); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink2); text-decoration: none; }
.mycp b { color: var(--ink); }

/* ② 틀 고르기 */
.frow { display: flex; gap: 14px; padding: 16px 20px 4px; overflow-x: auto; scrollbar-width: none; }
.frow::-webkit-scrollbar { display: none; }
.frow button { border: 0; background: none; padding: 4px; display: grid; justify-items: center; gap: 8px; font-size: 12.5px; color: var(--ink2); white-space: nowrap; flex: none; border-radius: 10px; }
.frow .strip { --w: 62px; box-shadow: 0 0 0 1px var(--line); }
.frow button.on { color: #fff; font-weight: 700; }
.frow button.on .strip { box-shadow: 0 0 0 2px var(--app), 0 0 0 4px var(--orange); }
.seg { display: grid; grid-template-columns: 1fr 1fr; margin: 0 20px; background: var(--app2); border-radius: 12px; padding: 4px; }
.seg button { border: 0; background: none; padding: 9px 0; border-radius: 9px; font-size: 14px; color: var(--ink2); }
.seg button.on { background: #f5f5f7; color: #1d1d1f; font-weight: 700; }
.inp { margin: 0 20px; height: 48px; border-radius: 12px; background: var(--app2); border: 1px solid var(--line); padding: 0 14px; font-size: 16px; width: calc(100% - 40px); }
.inp:focus { border-color: var(--orange); outline: none; }
.cnt { font-size: 12px; color: var(--ink2); text-align: right; padding: 6px 22px 0; }

/* ③ 촬영 */
.shoot { flex: 1; display: flex; flex-direction: column; background: #000; }
.vf { position: relative; width: 100%; aspect-ratio: 4/3; background: #111; overflow: hidden; margin-top: auto; }
.vf video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vf video.mir { transform: scaleX(-1); }
.vf .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .35s; }
.vf .flash.on { opacity: .9; transition: none; }
.vf .big { position: absolute; inset: 0; display: grid; place-items: center; font-size: 120px; font-weight: 700; letter-spacing: -.04em; text-shadow: 0 4px 24px rgba(0,0,0,.45); font-variant-numeric: tabular-nums; pointer-events: none; }
.shead { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 12px; }
.pill { font-size: 13px; font-weight: 700; padding: 6px 13px; border-radius: 999px; background: rgba(255,255,255,.12); font-variant-numeric: tabular-nums; }
.guide { align-self: center; margin: 16px 0 0; font-size: 15px; font-weight: 600; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.94); color: #1d1d1f; }
.sbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px 24px 26px; margin-top: auto; }
.sbar .th { width: 46px; height: 46px; border-radius: 9px; box-shadow: 0 0 0 1.5px #fff; background: #222 center/cover no-repeat; }
.sbar .sh { width: 70px; height: 70px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 0 0 4px #000, 0 0 0 7px #fff; }
.sbar .sh:disabled { opacity: .5; }
.sbar .fl { justify-self: end; border: 0; font-size: 13px; font-weight: 600; padding: 9px 13px; border-radius: 999px; background: rgba(255,255,255,.14); }
.startov { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); }
.startov button { border: 0; background: var(--orange); color: #fff; font-weight: 700; font-size: 17px; padding: 15px 30px; border-radius: 999px; }

/* ④ 고르기 */
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 16px 20px 0; }
.pick button { position: relative; border: 0; padding: 0; border-radius: 9px; overflow: hidden; background: #222; aspect-ratio: 4/3; }
.pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick button.off img { opacity: .34; }
.pick em { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff; font-style: normal; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.pick button.off em { background: transparent; box-shadow: inset 0 0 0 1.8px rgba(255,255,255,.75); }
.pick.redo button { box-shadow: inset 0 0 0 2px var(--orange); }
.redo { font-size: 13px; color: var(--ink2); padding: 12px 20px 0; margin: 0; }
.redo button { border: 0; background: none; padding: 0; color: #fff; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.fchips { display: flex; gap: 8px; padding: 0 20px; }
.fchips button { border: 0; font-size: 14px; padding: 8px 15px; border-radius: 999px; background: var(--app2); color: var(--ink2); }
.fchips button.on { background: #f5f5f7; color: #1d1d1f; font-weight: 700; }
.f-warm { filter: sepia(.2) saturate(1.12) brightness(1.03); }
.f-bw { filter: grayscale(1) contrast(1.08); }

/* ⑤ 완성 */
.s5 { flex: 1; display: grid; place-items: center; padding: 14px 20px; min-height: 260px; }
.s5 img { max-height: 54vh; max-width: 100%; width: auto; border-radius: 4px; box-shadow: 0 16px 30px -12px rgba(0,0,0,.8); }
.s5.sq img { max-height: 46vh; }
.hint { font-size: 12px; color: var(--ink2); text-align: center; margin: -4px 18px 10px; }
.share { display: flex; gap: 12px; align-items: center; margin: 2px 18px 16px; padding: 12px; border-radius: 14px; background: var(--app2); border: 0; text-align: left; width: calc(100% - 36px); }
.share .q { width: 58px; height: 58px; flex: none; background: #fff; border-radius: 7px; padding: 4px; display: grid; place-items: center; }
.share .q svg { width: 100%; height: 100%; display: block; }
.share .q.empty { background: var(--app); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); font-size: 24px; }
.share b { display: block; font-size: 14px; color: var(--ink); }
.share span { display: block; font-size: 12.5px; color: var(--ink2); margin-top: 2px; }
.share.big { flex-direction: column; text-align: center; }
.share.big .q { width: 200px; height: 200px; padding: 12px; border-radius: 14px; }

/* ⑥ 쿠폰 */
.done { display: flex; align-items: center; gap: 7px; color: var(--ink); }
.done i { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; }
.done i::after { content: ""; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(.5px,-.5px); }
.coupon { margin: 18px 18px 0; border-radius: 18px; background: #fff; color: #1d1d1f; overflow: hidden; display: block; text-decoration: none; }
.coupon .up { padding: 18px 18px 16px; }
.coupon .up small { font-size: 12.5px; font-weight: 700; color: var(--orange); }
.coupon .up b { display: block; font-size: 24px; letter-spacing: -.03em; line-height: 1.25; margin-top: 4px; }
.coupon .up span { display: block; font-size: 13px; color: #6e6e73; margin-top: 10px; line-height: 1.5; }
.coupon .dn { border-top: 1.5px dashed #d2d2d7; padding: 12px 18px 14px; display: flex; justify-content: space-between; font-size: 13px; color: #6e6e73; font-variant-numeric: tabular-nums; }
.coupon .dn b { color: #1d1d1f; letter-spacing: .02em; }
.again { margin: 12px 18px 0; border-radius: 16px; background: var(--app2); padding: 14px 16px; font-size: 13px; color: var(--ink2); line-height: 1.5; }
.again b { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 3px; }

/* 쿠폰 화면(/c/번호) */
.cphead { display: flex; justify-content: center; padding: 22px 0 4px; }
.cphead img { height: 26px; width: auto; }
.state { margin: 14px 18px 0; padding: 14px 16px; border-radius: 16px; background: var(--app2); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.state b { font-size: 16px; }
.state span { font-size: 13px; color: var(--ink2); display: block; margin-top: 2px; }
.state .clock { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.state .dot { width: 9px; height: 9px; border-radius: 50%; background: #2fb344; display: inline-block; margin-right: 6px; animation: blink 1s steps(2) infinite; }
.state.ok { box-shadow: inset 0 0 0 1.5px #2fb344; }
.state.used { box-shadow: inset 0 0 0 1.5px var(--line); }
.state.wait { box-shadow: inset 0 0 0 1.5px #f76707; }
.state.won { box-shadow: inset 0 0 0 1.5px var(--orange); background: rgba(255,106,0,.12); }
@keyframes blink { 50% { opacity: .25; } }
.coupon.used { opacity: .5; }

/* 아래에서 올라오는 창 */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet { width: 100%; max-width: 480px; background: #141920; border-radius: 22px 22px 0 0; padding: 22px 0 max(16px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; }
.sheet h3 { margin: 0 20px 8px; font-size: 19px; letter-spacing: -.02em; }
.sheet p { margin: 0 20px 14px; color: var(--ink2); font-size: 14px; line-height: 1.55; }
.sheet ul { margin: 0 20px 16px; padding-left: 18px; color: var(--ink2); font-size: 13.5px; line-height: 1.6; }
.sheet ul b { color: var(--ink); }
.pins { display: flex; justify-content: center; gap: 12px; margin: 4px 0 16px; }
.pins i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink2); }
.pins i.on { background: var(--orange); box-shadow: none; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 20px 12px; }
.keys button { height: 56px; border-radius: 14px; border: 0; background: var(--app2); font-size: 22px; font-weight: 600; }
.keys button:active { background: var(--line); }
.keys .blank { visibility: hidden; }
.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: #f5f5f7; color: #1d1d1f; padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 30; max-width: calc(100% - 40px); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.busy { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; z-index: 25; font-size: 15px; font-weight: 600; }
.busy span { background: #141920; padding: 16px 22px; border-radius: 16px; }

/* ── 포토존 태블릿(?mode=kiosk): 가로 화면 ── */
.nc.kiosk { max-width: none; height: 100vh; height: 100dvh; overflow: hidden; font-size: 17px; }
.kiosk .k-idle { flex: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; padding: 0 6vw; cursor: pointer; }
.kiosk .k-idle .bi { width: 26vw; max-width: 340px; height: auto; margin-bottom: 3vh; }
.kiosk .k-idle .kt > b { display: block; font-size: min(8.6vw, 92px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.kiosk .k-idle .kt > span { display: block; font-size: min(2.4vw, 24px); color: var(--ink2); margin-top: 1.6vh; }
.kiosk .k-idle .go { display: inline-grid; place-items: center; margin-top: 5vh; height: 74px; padding: 0 44px; border-radius: 37px; background: var(--orange); color: #fff; font-weight: 700; font-size: 22px; border: 0; }
.kiosk .k-idle .pair { display: flex; justify-content: center; gap: 4vw; }
.kiosk .k-idle .strip { --w: min(15vw, 180px); }
.kiosk .k-idle .strip:first-child { transform: rotate(-6deg); }
.kiosk .k-idle .strip:last-child { transform: rotate(5deg); }
.kiosk .k-two { flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 3vw; padding: 3vh 4vw; min-height: 0; align-items: center; }
.kiosk .k-two > div { min-width: 0; display: flex; flex-direction: column; }
.kiosk .h { font-size: 32px; padding: 0; }
.kiosk .lab, .kiosk .frow, .kiosk .seg, .kiosk .inp, .kiosk .fchips, .kiosk .redo, .kiosk .pick { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; }
.kiosk .inp { width: 100%; height: 56px; font-size: 18px; }
.kiosk .btn { width: 100%; margin: 0 0 12px; min-height: 64px; font-size: 19px; border-radius: 32px; }
.kiosk .frow .strip { --w: 86px; }
.kiosk .pick { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kiosk .shoot { flex-direction: row; align-items: center; gap: 3vw; padding: 2vh 3vw; }
.kiosk .shoot .vf { margin: 0; flex: 1; max-height: 92vh; width: auto; height: auto; max-width: calc(92vh * 4 / 3); border-radius: 18px; }
.kiosk .shoot .side { width: 260px; display: flex; flex-direction: column; gap: 18px; align-items: stretch; }
.kiosk .shoot .side .pill { align-self: flex-start; font-size: 16px; }
.kiosk .shoot .side .guide { align-self: stretch; text-align: center; font-size: 18px; margin: 0; }
.kiosk .shoot .side .sh { width: 92px; height: 92px; align-self: center; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 0 0 4px #000, 0 0 0 7px #fff; margin-top: 2vh; }
.kiosk .shoot .vf .big { font-size: min(30vh, 220px); }
.kiosk .k-out { flex: 1; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 4vw; padding: 0 6vw; }
.kiosk .k-out .prev { max-height: 84vh; width: auto; max-width: 22vw; border-radius: 4px; box-shadow: 0 2vw 5vw -2vw rgba(0,0,0,.8); }
.kiosk .k-out .qbig { width: min(30vw, 46vh); height: min(30vw, 46vh); background: #fff; border-radius: 18px; padding: 14px; }
.kiosk .k-out .qbig svg { width: 100%; height: 100%; display: block; }
.kiosk .k-out .kt > b { display: block; font-size: min(4.2vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.kiosk .k-out .kt > span { display: block; font-size: min(2vw, 19px); color: var(--ink2); margin-top: 1.6vh; line-height: 1.5; }
.kiosk .k-out .kt > small { display: block; margin-top: 3vh; padding-top: 2vh; border-top: 1px solid var(--line); font-size: 17px; color: var(--ink); }
.kiosk .k-consent { flex: 1; display: grid; place-items: center; padding: 4vh 6vw; }
.kiosk .k-consent > div { max-width: 720px; width: 100%; display: flex; flex-direction: column; }
.kiosk .k-consent .h { margin-bottom: 14px; }
.kiosk .k-consent ul { color: var(--ink2); font-size: 18px; line-height: 1.7; margin: 0 0 26px; padding-left: 22px; }
.kiosk .k-consent ul b { color: var(--ink); }
.kiosk .sheet { max-width: 560px; border-radius: 22px; margin-bottom: 10vh; }
.kiosk .sheet-bg { align-items: center; }

/* 쿠폰 이용 조건 · 개인정보 처리방침 창 (2026-12-04) */
.coupon .up .rule { display: block; margin-top: 8px; font-style: normal; font-size: 12px; color: #86868b; line-height: 1.45; }
.pvlink { margin: -4px 20px 14px !important; }
.pvlink button { border: 0; background: none; padding: 0; color: var(--ink2); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.kiosk .pvlink { margin: -10px 0 22px !important; }
.kiosk .pvlink button { font-size: 16px; }
.sheet-bg.pv { align-items: center; padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px)); z-index: 40; }
.pvbox { width: 100%; max-width: 880px; height: 100%; max-height: 900px; background: #f3f4f6; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.pvbox iframe { flex: 1; width: 100%; border: 0; background: #f3f4f6; }
.pvbox .btn { margin: 10px 14px 12px; }
