/* Camera-app look: black, the mirror fills the screen, controls float in frosted glass. */
:root { --fg: #fff; --muted: rgb(235 235 245 / .6); --group: #1c1c1e; --line: rgb(84 84 88 / .5); --accent: #f7923a; --glass: rgb(58 58 60 / .55); color-scheme: dark; }

* { box-sizing: border-box; }
body { margin: 0; height: 100dvh; overflow: hidden; background: #000; color: var(--fg); font: 17px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.stage { position: fixed; inset: 0; }
.stage video, .stage canvas, .stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: scaleX(-1); background: #000; }
#real-img { transform: none; } /* the photo reads like a photo (prints the right way round); the live mirror stays mirrored */
[hidden] { display: none !important; }

.glass { background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); color: #fff; border: 0; }
.pill { flex: none; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 17px; font-weight: 600; }
.round { flex: none; width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; font-size: 18px; }
.hint { position: fixed; z-index: 2; top: calc(env(safe-area-inset-top) + 14px); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 120px); margin: 0; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; text-align: center; }
.caption { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
#status { position: fixed; z-index: 3; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 10px); min-height: 1.4em; text-shadow: 0 1px 6px #000; }

button { flex: 1; min-height: 52px; padding: 0 20px; border: 0; border-radius: 999px; font: 600 17px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; cursor: pointer; }
button.primary { background: var(--accent); color: #1a1a1a; }
button:disabled { opacity: .45; }
button:active:not(:disabled) { transform: scale(.97); }

/* Step overlays sit over the mirror; top and bottom bars only, the middle stays you. */
.overlay { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.overlay > * { pointer-events: auto; }
.top, .bottom { position: absolute; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.top { top: calc(env(safe-area-inset-top) + 12px); }
.bottom { bottom: calc(env(safe-area-inset-bottom) + 38px); flex-direction: column; padding-top: 48px; }
.bottom::before { content: ""; position: absolute; inset: 0 -16px calc(-38px - env(safe-area-inset-bottom)); z-index: -1; background: linear-gradient(transparent, rgb(0 0 0 / .65)); }
.row { display: flex; gap: 10px; width: 100%; max-width: 480px; }
.tag { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Pose: camera corner brackets + a big thin countdown in place of instructions. */
.brackets { position: absolute; inset: calc(env(safe-area-inset-top) + 70px) 12% calc(env(safe-area-inset-bottom) + 150px); pointer-events: none;
  --c: rgb(255 255 255 / .9); background:
  linear-gradient(var(--c) 0 0) 0 0 / 28px 3px, linear-gradient(var(--c) 0 0) 0 0 / 3px 28px,
  linear-gradient(var(--c) 0 0) 100% 0 / 28px 3px, linear-gradient(var(--c) 0 0) 100% 0 / 3px 28px,
  linear-gradient(var(--c) 0 0) 0 100% / 28px 3px, linear-gradient(var(--c) 0 0) 0 100% / 3px 28px,
  linear-gradient(var(--c) 0 0) 100% 100% / 28px 3px, linear-gradient(var(--c) 0 0) 100% 100% / 3px 28px; background-repeat: no-repeat; }
.count { position: absolute; top: 50%; left: 0; right: 0; margin: 0; transform: translateY(-50%); font-size: 160px; font-weight: 100; line-height: 1; text-align: center; text-shadow: 0 2px 24px rgb(0 0 0 / .5); pointer-events: none; }
#hold { color: #fff; font-size: 17px; font-weight: 600; }

/* Clothes: an iOS-style grouped list on black. */
.sheet { position: fixed; inset: 0; z-index: 1; overflow-y: auto; background: #000; padding: calc(env(safe-area-inset-top) + 56px) 16px calc(env(safe-area-inset-bottom) + 48px); max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; }
.sheet h1 { margin: 0; font-size: 44px; font-weight: 800; letter-spacing: -.02em; }
.lede { margin: 6px 0 32px; color: var(--muted); font-size: 19px; }
.label { margin: 0 0 6px 16px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.group { margin-bottom: 24px; border-radius: 14px; background: var(--group); overflow: hidden; }
.item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 16px; border: 0; background: none; color: var(--fg); font: inherit; cursor: pointer; }
.item + .item { border-top: .5px solid var(--line); }
.item input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.item:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
input.item { min-height: 52px; outline: none; }
input.item::placeholder { color: var(--muted); }
.thumb { position: relative; flex: none; width: 48px; height: 48px; border-radius: 10px; background: #2c2c2e; color: var(--accent); font-size: 26px; display: grid; place-items: center; overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.txt { flex: 1; display: flex; flex-direction: column; }
.txt small { color: var(--muted); font-size: 14px; }
.act { color: var(--accent); }
.sheet .primary { flex: none; margin-top: auto; }
.stage img:not([src]) { visibility: hidden; }
