/* 미리입어 — 셀프 피팅 부스.
   위·아래는 사진 부스 기계의 검은 테두리, 가운데는 배경지(손님이 고르는 파스텔), 사진은 흰 테두리 인화지,
   숫자(남은 횟수·시간·날짜·몸무게)는 필름 카메라 날짜처럼 주황 LED. 큰 동작 하나만 셔터 버튼.
   글꼴: 제목 Bagel Fat One, 본문 Wanted Sans, 숫자 DSEG7. 모서리: 인화지 3 · 버튼 12 · 묶음 16 · 셔터 둥글게. */
@font-face { font-family: "DSEG7"; src: url("/static/fonts/DSEG7Classic-Bold.woff2") format("woff2"); font-display: swap; }

:root {
  --bd: #CFE0F3;                 /* 배경지 — 하늘(기본). body[data-bd] 로 바뀐다 */
  --paper: #FFFFFF;              /* 인화지·패널 */
  --ink: #141414;
  --ink-2: #33353A;
  --kiosk: #121212;              /* 부스 기계 */
  --kiosk-ink: #F2F2EF;
  --kiosk-mute: #9C9C97;
  --led: #FF6B1A;                /* 날짜 LED */
  --shutter: #FF5A1F;            /* 셔터 버튼 */
  --ok: #17734A;
  --alert: #C22D17;
  --scrim: rgba(18, 18, 18, .5);
  --font: "Wanted Sans Variable", "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --display: "Bagel Fat One", "Wanted Sans Variable", sans-serif;
  --digits: "DSEG7", ui-monospace, monospace;
  --r-print: 3px; --r-ctl: 12px; --r-panel: 16px; --r-sheet: 22px;
  --print-pad: 7px;
  --print-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 14px 26px -14px rgba(20, 30, 50, .42);
  --hdr: 56px; --tabbar: 62px; --gut: 16px; --wrap: 1200px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-enter: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
body { --bg: var(--bd); --muted: color-mix(in srgb, var(--ink) 66%, var(--bd)); --line: color-mix(in srgb, var(--ink) 11%, transparent);
  --line-2: color-mix(in srgb, var(--ink) 26%, transparent); --well: color-mix(in srgb, var(--bd) 38%, #FFFFFF); }
body[data-bd="pink"]  { --bd: #F5D2DB; }
body[data-bd="mint"]  { --bd: #CDEBDC; }
body[data-bd="grey"]  { --bd: #E4E1DB; }
body[data-bd="butter"] { --bd: #F3E6B6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body {
    --bg: color-mix(in srgb, var(--bd) 13%, #121214); --paper: #1E1F22; --ink: #F1F1EE; --ink-2: #D2D2CD;
    --muted: #A5A6A1; --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .24); --well: #26272B;
    --ok: #59C48C; --alert: #FF7B66; --scrim: rgba(0, 0, 0, .64); color-scheme: dark;
  }
}
:root[data-theme="dark"] body {
  --bg: color-mix(in srgb, var(--bd) 13%, #121214); --paper: #1E1F22; --ink: #F1F1EE; --ink-2: #D2D2CD;
  --muted: #A5A6A1; --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .24); --well: #26272B;
  --ok: #59C48C; --alert: #FF7B66; --scrim: rgba(0, 0, 0, .64); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); transition: background-color .35s var(--ease);
  font: 400 16px/1.55 var(--font); letter-spacing: -0.012em; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }      /* hidden 속성이 .btn 같은 display 규칙에 밀리지 않게 */
.skip { position: absolute; left: 12px; top: -60px; z-index: 90; background: var(--kiosk); color: var(--kiosk-ink); padding: 10px 14px; border-radius: var(--r-ctl); text-decoration: none; }
.skip:focus { top: 8px; }

/* LED 숫자: 꺼진 칸(88)이 옅게 비치는 표시창 */
.led { position: relative; display: inline-block; font-family: var(--digits); font-weight: 700; color: var(--led); line-height: 1; letter-spacing: .04em; white-space: nowrap; }
.led::before { content: attr(data-ghost); position: absolute; left: 0; top: 0; color: currentColor; opacity: .14; }
.ledbox { display: inline-flex; align-items: center; gap: 8px; background: #050505; color: var(--led); border-radius: 8px; padding: 6px 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.ledbox .u { font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--kiosk-mute); letter-spacing: 0; }

/* ── 부스 기계: 머리줄·아래 메뉴 ─────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 30; height: var(--hdr); background: var(--kiosk); color: var(--kiosk-ink); }
.hdr .in { max-width: var(--wrap); height: 100%; margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: -0.02em;
  text-decoration: none; line-height: 1; color: var(--kiosk-ink); }
.wordmark::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--led); box-shadow: 0 0 0 3px rgba(255, 107, 26, .24); }
.topnav { display: none; }
.credit { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--kiosk-mute); font-size: 13px; font-weight: 600; }
.credit .ledbox { padding: 7px 10px; }
.credit .led { font-size: 19px; }
main#view { display: block; max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gut) calc(var(--tabbar) + var(--safe-b) + 40px); outline: none; }
main#view.has-dock { padding-bottom: calc(var(--tabbar) + var(--safe-b) + 140px); }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--kiosk); padding-bottom: var(--safe-b); }
.tabs .in { display: grid; grid-template-columns: repeat(4, 1fr); height: var(--tabbar); max-width: 560px; margin: 0 auto; }
.tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--kiosk-mute); font-size: 12px; font-weight: 550; }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.on { color: var(--kiosk-ink); font-weight: 700; }
.tabs a.on::before { content: ""; position: absolute; top: 8px; left: calc(50% + 13px); width: 7px; height: 7px; border-radius: 50%; background: var(--led); }

/* ── 글자 ─────────────────────────────────────────────────── */
.ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 18px; }
.ph h1 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }
.ph .side { font-size: 14px; color: var(--muted); }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.sec-h h2 { font-size: 18px; line-height: 1.3; font-weight: 800; letter-spacing: -0.035em; }
.sec-h h2 .n { margin-left: 7px; font-family: var(--digits); font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.lead { font-size: 16px; color: var(--ink-2); max-width: 36em; }
.small { font-size: 14px; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); line-height: 1.55; }
section + section, .block + .block { margin-top: 30px; }
.panel { background: var(--paper); border-radius: var(--r-panel); padding: 18px; }

/* ── 버튼: 셔터(화면에 하나) · 검정 · 흰색 ───────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border: 1.5px solid var(--ink); border-radius: var(--r-ctl); background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform 150ms var(--ease), background-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.btn.primary { background: var(--kiosk); border-color: var(--kiosk); color: var(--kiosk-ink); }
.btn.shutter { background: var(--shutter); border: 2px solid #141414; color: #141414; border-radius: 999px; font-size: 18px; font-weight: 850; box-shadow: 0 4px 0 #141414; }
.btn.shutter .sh { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid #141414; display: grid; place-items: center; }
.btn.shutter .sh::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #141414; }
.btn.block { width: 100%; }
.btn.xl { min-height: 56px; font-size: 17px; padding: 0 22px; }
.btn.shutter.xl { min-height: 60px; font-size: 18.5px; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.quiet { border-color: var(--line-2); }
.btn.danger { color: var(--alert); border-color: color-mix(in srgb, var(--alert) 50%, transparent); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; cursor: default; }
.btn.shutter:disabled { box-shadow: 0 2px 0 #141414; }
.btn .cost { font-weight: 600; opacity: .72; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover { transform: translateY(-1px); }
  .btn.primary:not(:disabled):hover { background: #2B2B2B; }
  .btn:not(.primary):not(.shutter):not(:disabled):hover { background: var(--well); }
  .btn.shutter:not(:disabled):hover { background: #FF6E39; }
}
.btn:not(:disabled):active { transform: translateY(1px) scale(.985); transition-duration: 90ms; }
.btn.shutter:not(:disabled):active { transform: translateY(3px); box-shadow: 0 1px 0 #141414; }
.linkish { background: none; border: 0; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; color: var(--ink);
  font-size: 14px; font-weight: 650; text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: var(--line-2); text-underline-offset: 5px; transition: text-decoration-color 150ms; }
.linkish:hover { text-decoration-color: var(--ink); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* 인화지: 흰 테두리 + 배경지에 드리운 그림자 */
.print { display: block; background: #FFFFFF; padding: var(--print-pad); border-radius: var(--r-print); box-shadow: var(--print-shadow); }

/* ── 첫 화면 ───────────────────────────────────────────────── */
.start { display: grid; grid-template-areas: "copy" "show" "cta" "steps"; gap: 26px; padding-top: 6px; }
.start > .copy { grid-area: copy; } .start > .showcase { grid-area: show; } .start > .cta-wrap { grid-area: cta; } .start > .steps { grid-area: steps; }
.start h1 { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1.14; letter-spacing: -0.03em; }
.start .lead { margin-top: 14px; }
.start .fact { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.start .cta { display: grid; gap: 6px; max-width: 420px; }
.start .cta .linkish { justify-self: start; }
.showcase { display: grid; grid-template-columns: 1fr 1fr; align-items: start; padding: 8px 6px 16px; }
.showcase .print { position: relative; }
.showcase .print:nth-child(1) { transform: rotate(-2.6deg); z-index: 2; margin-right: -7%; margin-top: 5%; }
.showcase .print:nth-child(2) { transform: rotate(2.2deg); z-index: 1; }
.showcase img { width: 100%; height: auto; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: start; }
.steps .ledbox { justify-content: center; width: 46px; padding: 8px 0; }
.steps .led { font-size: 15px; }
.steps b { display: block; font-size: 16px; font-weight: 800; }
.steps span { font-size: 14px; color: var(--muted); }
/* 들어올 때 한 번만 */
.enter > * { animation: up .62s var(--ease-enter) both; }
.enter > :nth-child(2) { animation-delay: .07s; } .enter > :nth-child(3) { animation-delay: .14s; } .enter > :nth-child(4) { animation-delay: .2s; }
.settle .print:nth-child(1) { animation: drop1 .9s var(--ease-enter) both; }
.settle .print:nth-child(2) { animation: drop2 .9s .12s var(--ease-enter) both; }
@keyframes up { from { opacity: 0; transform: translateY(12px); } }
@keyframes drop1 { from { opacity: 0; transform: translateY(-22px) rotate(-8deg); } to { transform: rotate(-2.6deg); } }
@keyframes drop2 { from { opacity: 0; transform: translateY(-22px) rotate(8deg); } to { transform: rotate(2.2deg); } }

/* ── 피팅 부스(입어보기) ───────────────────────────────────── */
.fit { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); grid-template-areas: "me rack" "concept concept"; column-gap: 14px; row-gap: 30px; align-items: start; }
.fit > .me-col { grid-area: me; } .fit > .rack-sec { grid-area: rack; } .fit > .concept-sec { grid-area: concept; }
.fit > section { margin: 0; }
#recent { margin-top: 38px; }
.me-col { position: static; }
.me-photo { position: relative; display: block; width: 100%; padding: var(--print-pad); border: 0; border-radius: var(--r-print); background: #FFFFFF; box-shadow: var(--print-shadow); cursor: pointer; text-align: center; }
.me-photo .img { display: block; aspect-ratio: 9 / 16; overflow: hidden; background: #EEE; }
.me-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 600ms var(--ease); }
.me-photo .chg { position: absolute; left: 14px; bottom: 14px; background: var(--kiosk); color: var(--kiosk-ink); font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 999px; }
.me-photo .ai { position: absolute; right: 14px; top: 14px; background: var(--kiosk); color: var(--kiosk-ink); font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.me-photo.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 9 / 17; padding: 16px 12px;
  background: color-mix(in srgb, #FFFFFF 50%, transparent); border: 2px dashed var(--line-2); box-shadow: none; color: var(--ink); }
.me-photo.empty strong { font-family: var(--display); font-weight: 400; font-size: 19px; }
.me-photo.empty span { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.me-photo.empty .btn { margin-top: 6px; pointer-events: none; }
.photo-note { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.photo-note.ok { color: var(--ok); font-weight: 650; }
.photo-note .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--led); margin-right: 6px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* 의상(상품 칸) */
.rack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; }
.closet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
.item { position: relative; display: block; width: 100%; padding: 6px 6px 8px; border: 0; border-radius: 12px; background: var(--paper); text-align: left; cursor: pointer; color: var(--ink);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease); }
.item .pic { position: relative; aspect-ratio: 3 / 4; border-radius: 7px; background: #FFFFFF; overflow: hidden; }
.item .pic img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform 600ms var(--ease); }
.item .cat { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.3; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .nm { display: block; font-size: 14px; line-height: 1.35; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item.on { box-shadow: 0 0 0 2.5px var(--ink); }
.item .chk { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--led); color: #141414; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.item .chk svg, .concept .chk svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.item .x { position: absolute; top: 2px; right: 2px; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.item .x span { width: 26px; height: 26px; border-radius: 50%; background: var(--kiosk); color: #fff; display: grid; place-items: center; font-size: 16px; line-height: 1; }
.item .more { position: absolute; right: 0; bottom: 0; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 18px; display: grid; place-items: center; }
.item:has(.more) .nm { padding-right: 24px; }
.item .flag { position: absolute; top: 8px; left: 8px; background: var(--kiosk); color: var(--kiosk-ink); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.item.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 100%; background: color-mix(in srgb, #FFFFFF 45%, transparent);
  border: 2px dashed var(--line-2); font-weight: 750; font-size: 15px; }
.item.add .pic { display: contents; }
.item.add .plus { width: 40px; height: 40px; border-radius: 50%; background: var(--kiosk); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 400; line-height: 1; }
.item.wait .pic img { opacity: .4; filter: grayscale(1); }
.item.wait .pic::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--led); transform-origin: left; animation: grow 20s linear both; }
@keyframes grow { from { transform: scaleX(.03); } to { transform: scaleX(.95); } }
@media (hover: hover) and (pointer: fine) {
  .item:not(.add):hover { transform: translateY(-2px); }
  .item:not(.add):hover .pic img { transform: scale(1.03); }
  .me-photo:not(.empty):hover img { transform: scale(1.02); }
  .item.add:hover { border-color: var(--ink); }
}

/* 촬영 콘셉트 = 부스 프레임 고르기 */
.concepts { display: grid; grid-auto-flow: column; grid-auto-columns: 41%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gut)); padding: 4px var(--gut) 18px; scroll-padding-inline: var(--gut); }
.concepts::-webkit-scrollbar { display: none; }
.concept { position: relative; display: block; padding: var(--print-pad) var(--print-pad) 10px; border: 0; border-radius: var(--r-print); background: #FFFFFF; box-shadow: var(--print-shadow);
  text-align: left; cursor: pointer; color: #141414; scroll-snap-align: start; transition: transform 180ms var(--ease); }
.concept .pic { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #EEE; }
.concept .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.concept .pic img.stick { object-fit: contain; padding: 12%; }
.concept .t { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 9px; }
.concept b { font-family: var(--display); font-weight: 400; font-size: 16px; letter-spacing: -0.02em; }
.concept .cost { font-size: 12px; font-weight: 750; color: #141414; background: #EFEFEC; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.concept .d { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: #5C5D63; }
.concept.on { box-shadow: 0 0 0 3px var(--ink), var(--print-shadow); }
.concept .chk { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--led); color: #141414; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.pose-names { font-size: 14px; color: var(--ink-2); }
.pose-names b { font-weight: 800; color: var(--ink); }
.backdrops { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.backdrops .lbl { font-size: 14px; font-weight: 800; margin-right: 4px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; cursor: pointer; padding: 0; display: grid; place-items: center; }
.swatch span { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .14); }
.swatch[aria-pressed="true"] span { box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .18), 0 0 0 3px var(--bg), 0 0 0 5.5px var(--ink); }
.backdrops .note { flex-basis: 100%; }
@media (hover: hover) and (pointer: fine) { .concept:hover { transform: translateY(-2px); } .concept:hover .pic img { transform: scale(1.03); } }

/* 아래 고정 셔터(휴대폰) */
.dock { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar) + var(--safe-b)); z-index: 25; background: color-mix(in srgb, var(--bg) 93%, transparent); padding: 12px var(--gut) 8px;
  border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dock .in { max-width: 560px; margin: 0 auto; }
.dock-hint { text-align: center; font-size: 13px; color: var(--ink-2); margin-top: 8px; min-height: 1.4em; }
.dock .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* 앨범(최근·기록) */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 4px var(--gut) 18px; scroll-snap-type: x proximity; }
.shots::-webkit-scrollbar { display: none; }
.history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
.shot { display: block; text-decoration: none; color: #141414; scroll-snap-align: start; background: #FFFFFF; padding: var(--print-pad) var(--print-pad) 10px; border-radius: var(--r-print);
  box-shadow: var(--print-shadow); transition: transform 180ms var(--ease); }
.shot .pic { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #EEE; }
.shot .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.shot .pic img.wide { object-fit: contain; background: #F2F2F0; }
.shot .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 9px; font-size: 13px; }
.shot .meta b { font-family: var(--display); font-weight: 400; font-size: 14px; letter-spacing: -0.02em; }
.shot .meta .led { font-size: 10.5px; }
.shot .kg { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(255, 255, 255, .94); color: #141414; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); }
.shot .kg.ai { background: var(--kiosk); color: var(--kiosk-ink); box-shadow: none; }
.shot.failed .pic, .shot.wait .pic { display: grid; place-items: center; text-align: center; padding: 12px; font-size: 13px; color: #5C5D63; background: #F2F2F0; }
@media (hover: hover) and (pointer: fine) { .shot:hover { transform: translateY(-2px); } .shot:hover .pic img { transform: scale(1.03); } }

/* ── 인화 중(만드는 중) ────────────────────────────────────── */
.making { max-width: 520px; margin: 0 auto; }
.making h1 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: -0.02em; }
.printer { position: relative; margin: 26px auto 0; max-width: 460px; }
.printer .slot { position: relative; z-index: 2; height: 22px; border-radius: 11px; background: var(--kiosk); box-shadow: inset 0 -7px 0 #000; }
.printer .feed { position: relative; z-index: 1; overflow: hidden; margin: -11px 16px 0; padding: 11px 0 26px; }
.printer .sheet { background: #FFFFFF; padding: 10px; box-shadow: var(--print-shadow); transform: translateY(calc((var(--p, .05) - 1) * 100%)); transition: transform 1.2s linear; }
.frames { display: grid; gap: 6px; }
.frames.row { grid-template-columns: repeat(4, 1fr); }
.frames.row .frame { aspect-ratio: 9 / 20; }
.frames.grid { grid-template-columns: 1fr 1fr; }
.frames.grid .frame { aspect-ratio: 3 / 4; }
.frames.r2 .frame { aspect-ratio: 9 / 16; }
.frame { position: relative; overflow: hidden; background: color-mix(in srgb, var(--bd) 72%, #fff); }
.frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
  background-size: 100% 220%; animation: develop 2.6s ease-in-out infinite; }
@keyframes develop { from { background-position: 0 120%; } to { background-position: 0 -120%; } }
.frame .fname { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 13px; font-weight: 650; color: #46474C; }
.sheet .foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px 2px; font-family: var(--display); font-size: 15px; color: #141414; }
.sheet .foot .led { font-size: 11px; color: #E2581A; }
.timer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; background: var(--kiosk); color: var(--kiosk-ink); border-radius: var(--r-panel); padding: 14px 18px; }
.timer .led { font-size: 34px; }
.timer .lbl { font-size: 13px; color: var(--kiosk-mute); text-align: right; line-height: 1.5; }
.timer .lbl b { color: var(--kiosk-ink); }

/* ── 결과(인화지) ──────────────────────────────────────────── */
.res { display: grid; gap: 24px; }
.res-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.res-head h1 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: -0.02em; }
.res-head .ledbox .led { font-size: 13px; }
.res-kg { margin: -6px 0 16px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.ai-note { font-size: 13px; color: var(--muted); white-space: nowrap; }
.res-strip { display: block; width: 100%; max-width: 470px; margin: 0 auto; padding: 0; border: 0; background: none; cursor: zoom-in; }
.res-strip img { width: 100%; border-radius: 2px; box-shadow: var(--print-shadow); }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: #FFFFFF; padding: 8px; border-radius: var(--r-print); box-shadow: var(--print-shadow); }
.res-grid button, .res-row button, .res-sheet { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.res-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #EEE; }
.res-sheet { background: #FFFFFF; padding: 8px; border-radius: var(--r-print); box-shadow: var(--print-shadow); }
.res-sheet img { width: 100%; background: #EEE; }
.res-row { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 14px calc(-1 * var(--gut)) 0; padding: 4px var(--gut) 18px; scroll-snap-type: x mandatory; }
.res-row::-webkit-scrollbar { display: none; }
.res-row button { scroll-snap-align: start; background: #FFFFFF; padding: 6px 6px 8px; border-radius: var(--r-print); box-shadow: var(--print-shadow); }
.res-row img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: 50% 30%; background: #EEE; }
.pose-cap { display: block; margin-top: 7px; font-size: 13px; font-weight: 700; color: #141414; text-align: left; }
.develop img { animation: reveal 1.4s var(--ease) both; }
@keyframes reveal { from { filter: grayscale(1) contrast(.7) brightness(1.2) blur(6px); opacity: .45; } to { filter: none; opacity: 1; } }
.res-side .panel + .panel { margin-top: 12px; }
.actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.actions .btn { padding: 0 8px; }
.rate p { font-weight: 800; margin-bottom: 10px; }
.rate .row { display: flex; gap: 8px; flex-wrap: wrap; }
.worn-list { display: grid; }
.worn { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.worn:last-child { border-bottom: 0; padding-bottom: 0; }
.worn img { width: 52px; height: 68px; object-fit: contain; background: #FFFFFF; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); padding: 3px; }
.worn .t { min-width: 0; }
.worn .t b { display: block; font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.worn .t span { font-size: 13px; color: var(--muted); }
.disclaimer { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* 네컷 프레임 고르기·스토리·알림 */
.frame-pick { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.frame-pick .lbl { font-size: 14px; font-weight: 800; margin-right: 2px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px 0 10px; border-radius: 999px; border: 1.5px solid var(--line-2);
  background: color-mix(in srgb, #FFFFFF 55%, transparent); cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink); }
.fchip.on { border-color: var(--ink); background: var(--paper); box-shadow: 0 0 0 1px var(--ink); }
.fdot { width: 20px; height: 20px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .18); }
.fdot.f-white { background: #FFFFFF; } .fdot.f-black { background: #141414; }
.story-btn { margin-top: 8px; }
.sec-h .sum { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.sec-h .sum b { font-weight: 800; color: var(--ink); }
.sec-h .sum small { font-size: 12px; color: var(--muted); }
.notice { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: center; margin: -4px 0 18px; padding: 14px 16px; border-radius: var(--r-panel); background: var(--kiosk); color: var(--kiosk-ink); }
.notice b { font-family: var(--display); font-weight: 400; font-size: 18px; }
.notice span { font-size: 14px; color: #CFCFCA; }
.notice .btn { justify-self: start; background: var(--led); border-color: var(--led); color: #141414; }
.notice.light { background: color-mix(in srgb, #FFFFFF 55%, transparent); color: var(--ink); grid-template-columns: 1fr auto; }
.notice.light span { color: var(--ink-2); }
.demo-bar { display: grid; gap: 12px; align-items: center; margin: -2px 0 22px; padding: 16px; border-radius: var(--r-panel); background: var(--kiosk); color: var(--kiosk-ink); }
.demo-bar b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; margin-bottom: 4px; }
.demo-bar span { font-size: 14px; color: #CFCFCA; }
.demo-bar .btn.shutter { justify-self: start; box-shadow: 0 3px 0 #000; border-color: #000; }
.demo-tag { display: inline-block; vertical-align: 5px; margin-left: 6px; font-family: var(--font); font-size: 13px; font-weight: 800; letter-spacing: 0;
  background: var(--led); color: #141414; border-radius: 999px; padding: 2px 9px; }

/* 일반 광고 자리 */
.ad { margin-top: 28px; min-height: 100px; }
.ad-ph { display: grid; place-items: center; border: 2px dashed var(--line-2); border-radius: var(--r-panel); color: var(--muted); font-size: 13px; text-align: center; padding: 12px; }

/* ── 아래에서 올라오는 창(PC 에서는 가운데 창) ─────────────── */
.scrim { position: fixed; inset: 0; z-index: 50; background: var(--scrim); opacity: 0; transition: opacity .2s; }
.scrim.open { opacity: 1; }
.bsheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding: 10px 20px calc(20px + var(--safe-b));
  transform: translateY(104%); transition: transform .28s var(--ease); }
.bsheet.open { transform: none; }
.bsheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 14px; }
.bsheet h2 { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: -0.02em; margin: 0 44px 6px 0; }
.bsheet .close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.opts { display: grid; gap: 8px; margin-top: 16px; }
.opt { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; width: 100%; padding: 12px; text-align: left; text-decoration: none;
  border: 1.5px solid var(--line); border-radius: var(--r-panel); background: var(--paper); cursor: pointer; color: var(--ink); transition: border-color 150ms var(--ease), transform 150ms var(--ease); }
.opt .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--kiosk); color: #fff; display: grid; place-items: center; }
.opt .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.opt b { display: block; font-size: 16px; font-weight: 800; }
.opt span span { font-size: 13px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .opt:hover { border-color: var(--ink); transform: translateY(-2px); } }
.pastebox { margin-top: 12px; min-height: 56px; border: 2px dashed var(--line-2); border-radius: var(--r-panel); padding: 16px; font-size: 14px; color: var(--muted); text-align: center; outline: none; }
.pastebox:focus { border-color: var(--ink); color: var(--ink); }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field label, .field .lbl { font-size: 14px; font-weight: 750; }
.input { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-ctl); background: var(--paper); color: var(--ink); font: inherit; font-size: 16px;
  transition: border-color 140ms, box-shadow 140ms; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
.row2 { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.cand { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.cand button { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #FFFFFF; aspect-ratio: 3 / 4; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.cand img { width: 100%; height: 100%; object-fit: contain; }
.cand button.on { box-shadow: inset 0 0 0 3px var(--ink); }
.cand button.on::after { content: ""; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--led) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.prod { margin-top: 14px; }
.prod b { display: block; font-size: 15px; font-weight: 750; }
.found { display: grid; gap: 8px; margin-top: 14px; }
.found label { display: grid; grid-template-columns: 24px 56px 1fr; gap: 12px; align-items: center; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--r-panel); cursor: pointer; }
.found input, .check-list input { width: 20px; height: 20px; accent-color: #141414; }
.found img { width: 56px; height: 72px; object-fit: contain; background: #FFFFFF; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.found b { display: block; font-weight: 700; font-size: 15px; }
.found span span { font-size: 13px; color: var(--muted); }
.check-list { display: grid; gap: 14px; margin-top: 16px; }
.check-list label { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 15px; line-height: 1.55; cursor: pointer; }
.check-list input { margin-top: 2px; }
.sheet-actions { display: grid; gap: 8px; margin-top: 18px; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.photos button { position: relative; padding: 5px; border: 0; background: #FFFFFF; border-radius: var(--r-print); box-shadow: var(--print-shadow); cursor: pointer; }
.photos .img { display: block; aspect-ratio: 9 / 16; overflow: hidden; background: #EEE; }
.photos img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.photos button.on { box-shadow: 0 0 0 3px var(--ink), var(--print-shadow); }
.photos .lbl { position: absolute; left: 9px; right: 9px; bottom: 9px; background: var(--kiosk); color: #fff; font-size: 12px; border-radius: 999px; padding: 2px 4px; text-align: center; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--paper); cursor: pointer; font-size: 14px; font-weight: 650; color: var(--ink); }
.chip.on { background: var(--kiosk); color: var(--kiosk-ink); border-color: var(--kiosk); }
.warnbox { border-left: 4px solid var(--led); background: var(--well); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; padding: 12px 14px; font-size: 14px; line-height: 1.55; margin-top: 12px; color: var(--ink); }

/* 옷장 거르기 */
.ftabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)) 16px; padding: 0 var(--gut); }
.ftabs::-webkit-scrollbar { display: none; }
.ftab { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 999px; background: color-mix(in srgb, #FFFFFF 50%, transparent); cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink); }
.ftab .n { margin-left: 6px; font-family: var(--digits); font-size: 11px; letter-spacing: .04em; opacity: .6; }
.ftab.on { background: var(--kiosk); color: var(--kiosk-ink); border-color: var(--kiosk); }
.ftab.on .n { color: var(--led); opacity: 1; }

/* ── 체형 미리보기 ─────────────────────────────────────────── */
.body-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.body-grid > div { min-width: 0; }
.inputs3 { display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px; align-items: end; }
.seg2 { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1.5px solid var(--ink); border-radius: var(--r-ctl); overflow: hidden; }
.seg2 button { min-height: 46px; min-width: 58px; padding: 0 12px; border: 0; background: transparent; cursor: pointer; font-weight: 750; color: var(--ink); }
.seg2 button.on { background: var(--kiosk); color: var(--kiosk-ink); }
.stdpick { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 14px; font-weight: 750; }
.ruler-wrap { position: relative; margin-top: 10px; }
.ruler { height: 86px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--paper); border-radius: var(--r-ctl); touch-action: pan-x; color: var(--ink); }
.ruler::-webkit-scrollbar { display: none; }
.ruler .strip { display: flex; width: max-content; height: 100%; }
.ruler .tk { flex: 0 0 14px; height: 100%; position: relative; scroll-snap-align: center; }
.ruler .tk::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 14px; background: var(--muted); }
.ruler .tk.m5::before { height: 24px; }
.ruler .tk.m10::before { height: 36px; width: 2px; background: var(--ink); }
.ruler .tk span { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); font-weight: 750; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; word-break: normal; overflow-wrap: normal; }
.ruler .tk.low { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 16%, transparent) 0 2px, transparent 2px 6px); }
.ruler .tk.normal { background: color-mix(in srgb, var(--ok) 15%, transparent); }
.ruler .tk.now span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.needle { position: absolute; left: 50%; top: -6px; bottom: -6px; width: 3px; margin-left: -1.5px; background: var(--led); border-radius: 2px; pointer-events: none; }
.needle::before { content: ""; position: absolute; top: 0; left: -5px; border: 6.5px solid transparent; border-top-color: var(--led); }
.ruler-legend { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.ruler-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; }
.ruler-legend .lg-normal { background: color-mix(in srgb, var(--ok) 30%, transparent); }
.ruler-legend .lg-low { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 35%, transparent) 0 2px, transparent 2px 5px); border: 1px solid var(--line-2); }
.scale { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px auto 0; width: fit-content; background: var(--kiosk); border-radius: var(--r-panel); padding: 12px 20px; }
.scale .led { font-size: 46px; }
.scale .u { color: var(--kiosk-ink); font-weight: 800; font-size: 18px; }
.scale .diff { color: var(--kiosk-mute); font-size: 15px; font-weight: 650; min-width: 4.5em; }
.stepper { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.bmi-line { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 2px 0 8px; font-size: 14px; color: var(--ink-2); }
.bmi-line b { font-weight: 800; color: var(--ink); }
.est table { width: 100%; border-collapse: collapse; font-size: 15px; }
.est td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.est tr:last-child td { border-bottom: 0; }
.est td.v { text-align: right; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.est td.e { text-align: right; color: var(--muted); font-size: 13px; width: 84px; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba figure { margin: 0; background: #FFFFFF; padding: 6px 6px 8px; border-radius: var(--r-print); box-shadow: var(--print-shadow); }
.ba img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: 50% 25%; background: #EEE; }
.ba figcaption { font-size: 13px; font-weight: 700; text-align: center; margin-top: 6px; color: #141414; }
.body-card { margin-top: 14px; }

/* ── 충전·무료 촬영권 ──────────────────────────────────────── */
.reward { display: grid; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r-panel); background: var(--kiosk); color: var(--kiosk-ink); }
.reward b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 4px; }
.reward span { font-size: 14px; color: #C9C9C4; }
.reward .btn.shutter { box-shadow: 0 3px 0 #000; border-color: #000; }
.plans { display: grid; gap: 12px; margin-top: 14px; }
.plan { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px; background: var(--paper); border-radius: var(--r-panel); }
.plan.best { box-shadow: 0 0 0 2.5px var(--ink); }
.plan .ledbox { min-width: 64px; justify-content: center; }
.plan .ledbox .led { font-size: 22px; }
.plan b { font-size: 17px; font-weight: 800; }
.plan .badge { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 800; color: #141414; background: var(--led); border-radius: 999px; padding: 1px 8px; vertical-align: 2px; }
.plan .d { font-size: 14px; color: var(--muted); }
.photo-warn p + p { margin-top: 6px; }
.testbar { border-left: 4px solid var(--ink); background: color-mix(in srgb, var(--paper) 60%, transparent); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; padding: 12px 14px; font-size: 14px; margin-top: 14px; }
.adplay { position: fixed; inset: 0; z-index: 80; background: #0d0d0d; color: #f2f2ef; display: grid; grid-template-rows: auto 1fr auto; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(16px + var(--safe-b)); }
.adplay .top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #b9b8b2; }
.adplay .close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; cursor: pointer; }
.adplay .stage { display: grid; place-items: center; align-content: center; text-align: center; gap: 18px; }
.adplay .stage .box { width: min(360px, 86vw); aspect-ratio: 16 / 9; border: 2px dashed rgba(255, 255, 255, .28); border-radius: var(--r-panel); display: grid; place-items: center; color: #b9b8b2; font-size: 14px; padding: 16px; }
.adplay .count { font-size: 56px; }
.adplay .bar { width: min(360px, 86vw); height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.adplay .bar i { display: block; height: 100%; width: 0; background: var(--led); transition: width .25s linear; }

/* ── 내 정보 ───────────────────────────────────────────────── */
.me-grid { display: grid; gap: 16px; }
.credits-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: var(--kiosk); color: var(--kiosk-ink); border-radius: var(--r-panel); }
.credits-box .led { font-size: 44px; }
.credits-box .lbl { font-size: 13px; color: var(--kiosk-mute); margin-top: 10px; }
.credits-box .btns { display: grid; gap: 8px; }
.credits-box .btn:not(.shutter) { background: transparent; color: var(--kiosk-ink); border-color: #4A4A48; }
.list { display: grid; background: var(--paper); border-radius: var(--r-panel); padding: 0 16px; }
.list a, .list button { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 0; border: 0; border-bottom: 1px solid var(--line);
  background: none; text-decoration: none; font-size: 16px; font-weight: 650; cursor: pointer; text-align: left; color: var(--ink); }
.list > :last-child { border-bottom: 0; }
.list .r { color: var(--muted); font-size: 14px; font-weight: 500; }
.legal { font-size: 13px; color: var(--muted); margin-top: 28px; }

/* ── 크게 보기 ─────────────────────────────────────────────── */
.zoom { position: fixed; inset: 0; z-index: 60; background: #0d0d0d; overflow: auto; display: flex; align-items: center; justify-content: center; }
.zoom img { max-height: 100dvh; max-width: 100vw; width: auto; height: auto; object-fit: contain; }
.zoom .close { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #141414; font-size: 22px; cursor: pointer; z-index: 61; }

/* ── 알림 ─────────────────────────────────────────────────── */
#toasts { position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + var(--hdr) + 10px); z-index: 70; display: grid; gap: 8px; justify-items: center; pointer-events: none; padding: 0 var(--gut); }
.toast { pointer-events: auto; max-width: 520px; width: max-content; display: flex; align-items: center; gap: 16px; background: var(--kiosk); color: var(--kiosk-ink);
  border-radius: 999px; padding: 12px 18px; font-size: 15px; font-weight: 650; box-shadow: 0 10px 26px rgba(0, 0, 0, .22); animation: toastIn .22s var(--ease); }
.toast.err { background: var(--alert); color: #fff; }
.toast a, .toast button { color: var(--led); font-weight: 800; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; font-size: 15px; white-space: nowrap; }
.toast.err a, .toast.err button { color: #fff; text-decoration: underline; }
@keyframes toastIn { from { transform: translateY(-6px); opacity: 0; } }

.empty { text-align: center; padding: 48px 12px; color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-family: var(--display); font-weight: 400; font-size: 21px; margin-bottom: 8px; }
.empty .btn { margin-top: 16px; }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rot .8s linear infinite; vertical-align: -3px; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ── 작은 휴대폰 ───────────────────────────────────────────── */
@media (max-width: 359px) {
  .fit { grid-template-columns: minmax(0, 1fr); grid-template-areas: "me" "rack" "concept"; }
  .me-photo { max-width: 210px; margin: 0 auto; }
  .start h1 { font-size: 31px; }
  .concepts { grid-auto-columns: 48%; }
  .actions { grid-template-columns: 1fr 1fr; }
  .credit > span:first-child { display: none; }
}

/* ── 태블릿 ───────────────────────────────────────────────── */
@media (min-width: 640px) {
  :root { --gut: 24px; }
  .closet-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .history-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .concepts { grid-auto-columns: 30%; }
  .shots { grid-auto-columns: 30%; }
  .reward { grid-template-columns: 1fr auto; }
  .demo-bar, .notice { grid-template-columns: 1fr auto; }
  .notice .btn, .demo-bar .btn.shutter { justify-self: end; }
}

/* ── PC: 위 메뉴, 두 칸 배치, 가운데 창 ────────────────────── */
@media (min-width: 900px) {
  :root { --hdr: 64px; --gut: 32px; }
  .topnav { display: flex; gap: 6px; height: 100%; align-items: center; }
  .topnav a { display: flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 650; color: var(--kiosk-mute); transition: color 150ms, background-color 150ms; }
  .topnav a:hover { color: var(--kiosk-ink); }
  .topnav a.on { color: #141414; background: var(--kiosk-ink); font-weight: 800; }
  .tabs { display: none; }
  main#view, main#view.has-dock { padding: 30px var(--gut) 72px; }

  .start { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-areas: "copy show" "cta show" "steps show"; grid-template-rows: auto auto 1fr;
    column-gap: 72px; row-gap: 30px; align-items: start; align-content: center; min-height: calc(100dvh - var(--hdr) - 120px); }
  .start h1 { font-size: 56px; }
  .start .lead { font-size: 17px; }
  .start .steps { margin-top: 8px; }
  .showcase { padding: 12px 8px 22px; }

  .fit { grid-template-columns: 320px minmax(0, 1fr); grid-template-areas: "me rack" "me concept" "me dock"; grid-template-rows: auto auto 1fr; column-gap: 44px; row-gap: 30px; }
  .me-col { position: sticky; top: calc(var(--hdr) + 16px); }
  .fit > .dock { grid-area: dock; align-self: end; position: sticky; bottom: 0; z-index: 5; margin: 0 -8px; padding: 14px 8px 16px; }
  .rack { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 10px; }
  .concepts { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 4px 0 6px; gap: 16px; }
  .dock { border-top: 1px solid var(--line); }
  .dock .in { display: flex; align-items: center; gap: 22px; max-width: none; margin: 0; }
  .dock .in > .btn { flex: 0 0 auto; width: 360px; }
  .dock .in > .two { flex: 0 0 auto; width: 560px; }
  .dock-hint { flex: 1 1 auto; min-width: 0; text-align: left; margin: 0; }
  .shots { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 4px 0 6px; gap: 18px; }
  .closet-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 12px; }
  .history-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 18px; }
  .ftabs { margin: 0 0 20px; padding: 0; }

  .res { grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 44px; align-items: start; }
  .res-side { position: sticky; top: calc(var(--hdr) + 20px); }
  .res-row { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 14px 0 0; padding: 0; }

  .body-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan { grid-template-columns: 1fr; text-align: left; align-content: start; gap: 12px; padding: 22px; }
  .plan .ledbox { justify-self: start; }
  .plan .btn { width: 100%; }
  .me-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }

  .bsheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(540px, calc(100vw - 48px)); max-height: 86vh; border-radius: var(--r-sheet);
    padding: 24px 26px 26px; transform: translate(-50%, -47%); opacity: 0; transition: transform .22s var(--ease), opacity .22s var(--ease); }
  .bsheet.open { transform: translate(-50%, -50%); opacity: 1; }
  .bsheet .grab { display: none; }
  #toasts { top: auto; bottom: 28px; }
}
@media (min-width: 1200px) {
  .fit { grid-template-columns: 340px minmax(0, 1fr); column-gap: 56px; }
  .rack { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
