:root {
  --paper: #F8F9FB;
  --raised: #FFFFFF;
  --ink: #17181C;
  --ink-soft: #5B5E68;
  --ink-faint: #9A9DA6;
  --line: #E3E5EA;
  --pink: #FF7BA3;
  --pink-deep: #E8648C;
  --pink-tint: #FFE0EA;
  --blue: #5FA0FF;
  --blue-tint: #DCEBFF;
  --purple-tint: #ECE4FF;
  --font: "Pretendard", "Pretendard Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --r: 8px;
  --r-lg: 14px;
  --shadow: 0 6px 24px rgba(23, 24, 28, .07);
  --shadow-strip: 0 18px 40px rgba(23, 24, 28, .18), 0 2px 6px rgba(23, 24, 28, .08);
  --gutter: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.ic { display: inline-grid; place-items: center; line-height: 0; }

#app { min-height: 100dvh; }

.scene {
  max-width: 560px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) calc(40px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: rise .35s cubic-bezier(.2, 1, .4, 1);
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- header / stepper ---------- */
.head { text-align: center; margin-bottom: 20px; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 14px; }
.backlink { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 16px; color: var(--ink-soft); padding: 8px 8px 8px 0; }
.backlink:hover { color: var(--ink); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 16px;
  padding: 11px 18px 11px 22px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(23, 24, 28, .18);
  transition: transform .15s, background .2s, opacity .2s;
}
.pill:active { transform: scale(.97); }
.pill:disabled { background: #A9ABB2; box-shadow: none; }

.steps { position: relative; display: flex; justify-content: space-between; margin: 0 4px 22px; }
.track { position: absolute; left: 22px; right: 22px; top: 7px; height: 8px; border-radius: 4px;
  background: radial-gradient(circle, #B9BCC4 1.4px, transparent 1.6px) 0 50% / 9px 8px repeat-x, #E6E8EC; }
.track-fill { display: block; height: 100%; border-radius: 4px;
  background: radial-gradient(circle, #fff 1.4px, transparent 1.6px) 0 50% / 9px 8px repeat-x, #F7A9C0;
  transition: width .45s cubic-bezier(.2, 1, .4, 1); }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 44px; }
.step-dot {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid #C9CCD3; box-shadow: 0 3px 0 #C9CCD3; color: #fff;
}
.step.is-done .step-dot { background: var(--pink); border-color: var(--pink); box-shadow: 0 3px 0 var(--pink-deep); }
.step.is-current .step-dot {
  background: var(--pink); border-color: #fff; box-shadow: 0 0 0 3px var(--pink-tint), 0 3px 0 4px #F5C2D2;
  transform: translateY(-3px) scale(1.15);
}
.step.is-current .step-dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.step-label { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.step.is-done .step-label { color: var(--ink); }
.step.is-current .step-label { color: var(--ink); font-weight: 800; }

.title { font-size: clamp(26px, 7vw, 32px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.sub { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.45; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--r); font-weight: 700; font-size: 16px;
  transition: transform .12s, background .2s, opacity .2s;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:disabled { background: #A9ABB2; }
.btn.ghost { background: var(--raised); border: 1.5px solid var(--line); color: var(--ink); }
.btn.big { height: 56px; font-size: 17px; width: 100%; }
.textlink { color: var(--ink-soft); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 12px; align-self: center; }

.choice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 20px 22px; border-radius: var(--r); background: var(--raised); border: 1.5px solid var(--line);
  text-align: left; transition: transform .12s, box-shadow .2s;
}
.choice strong { font-size: 17px; font-weight: 700; }
.choice span { font-size: 14px; color: var(--ink-soft); }
.choice.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice.dark span { color: #B9BCC4; }
.choice:hover { box-shadow: var(--shadow); }
.choice:active { transform: scale(.985); }

.fineprint { color: var(--ink-faint); font-size: 13px; text-align: center; margin: 14px 0 0; line-height: 1.5; }

/* ---------- start ---------- */
.start { align-items: center; text-align: center; padding-top: max(28px, env(safe-area-inset-top)); }
.hero { position: relative; width: 100%; height: clamp(330px, 46vh, 420px); display: flex; justify-content: center; margin-bottom: 18px; }
.printer {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 174px; height: 22px; border-radius: 6px; background: linear-gradient(#34363D, #17181C);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}
.printer-slot { position: absolute; left: 22px; right: 22px; bottom: 5px; height: 3px; border-radius: 2px; background: #000; }
.hero-feed { position: absolute; top: 14px; left: 0; right: 0; bottom: -40px; clip-path: inset(0 -200px -200px -200px); }
.hero-strip { position: absolute; top: 0; left: 50%; width: 112px; transform-origin: 50% 0; transform: translate(-50%, -100%) rotate(0deg); }
.hero-strip.in { animation: print 2.2s cubic-bezier(.3, .8, .3, 1) .15s forwards, sway 5s ease-in-out 2.4s infinite; }
.hero-canvas { display: block; width: 112px; height: auto; box-shadow: var(--shadow-strip); }
@keyframes print {
  0% { transform: translate(-50%, -100%) rotate(0deg); }
  80% { transform: translate(-50%, 0) rotate(0deg); }
  100% { transform: translate(-50%, 4px) rotate(-4deg); }
}
@keyframes sway { 0%, 100% { transform: translate(-50%, 4px) rotate(-4deg); } 50% { transform: translate(-50%, 4px) rotate(-1.5deg); } }

.chip { display: inline-block; background: var(--pink-tint); color: var(--ink); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.hero-title { font-size: clamp(40px, 12vw, 54px); font-weight: 800; letter-spacing: -.035em; margin: 10px 0 10px; }
.hero-sub { color: var(--ink-soft); font-size: 17px; line-height: 1.5; margin: 0 auto 26px; max-width: 26em; }
.choices { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.ways-label { width: 100%; display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.ways-label::before, .ways-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.way { border-radius: var(--r-lg); padding: 16px 8px 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.way.pink { background: var(--pink-tint); }
.way.blue { background: var(--blue-tint); }
.way.purple { background: var(--purple-tint); }
.way-emoji { font-size: 34px; line-height: 1.2; }
.way strong { font-size: 14px; }
.way span { font-size: 12px; color: var(--ink-soft); line-height: 1.35; }

/* ---------- size picker ---------- */
.layout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.layout-card {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  background: var(--raised); border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 10px 16px; min-height: 230px; transition: transform .15s, box-shadow .2s, border-color .2s;
}
.layout-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.layout-card.is-selected { border: 2.5px solid var(--pink); box-shadow: 0 0 0 4px var(--pink-tint); }
.layout-card .cap { font-weight: 800; font-size: 16px; margin-top: 16px; }
.layout-card .hint { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.mini { display: grid; gap: 5px; background: var(--ink); padding: 7px; margin: auto 0 0; }
.mini span { background: #fff; display: block; animation: slot .4s ease both; }
@keyframes slot { from { opacity: 0; transform: scale(.85); } }
.mini-vertical { grid-template-rows: repeat(4, 1fr); width: 62px; height: 200px; padding-bottom: 18px; }
.mini-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; width: 138px; height: 96px; padding-bottom: 14px; }
.mini-duo { grid-template-rows: 1fr 1fr; width: 96px; height: 130px; padding-bottom: 18px; }
.mini-polaroid { width: 88px; height: 106px; padding: 7px 7px 26px; }
.mini-polaroid span { height: 100%; }

/* ---------- frame picker ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 16px; padding: 4px var(--gutter); }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 18px;
  border-radius: 999px; background: var(--raised); border: 1.5px solid var(--line); font-weight: 700; font-size: 15px; position: relative;
}
.tab.is-open { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-count { color: var(--ink-faint); font-weight: 600; font-size: 13px; }
.tab.is-open .tab-count { color: #A9ABB2; }
.tab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.tabs.small { margin: 0 0 12px; padding: 0; overflow: visible; align-items: center; }
.tabs.small .tab { height: 38px; padding: 0 16px; font-size: 14px; }
.spacer { flex: 1; }

.frame-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.frame-grid[data-layout="grid"] { grid-template-columns: repeat(2, 1fr); }
.frame-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--raised); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 12px 6px 10px;
  transition: transform .15s, box-shadow .2s;
}
.frame-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.frame-card.is-selected { border: 2.5px solid var(--pink); box-shadow: 0 0 0 4px var(--pink-tint); }
.frame-thumb { display: grid; place-items: center; min-height: 120px; }
.frame-thumb canvas { display: block; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); outline: 1px solid rgba(0, 0, 0, .06); }
.frame-cap { font-size: 13px; font-weight: 600; color: var(--ink-soft); }

/* ---------- shoot ---------- */
.stage {
  position: relative; width: 100%; max-height: 58vh; margin: 0 auto; border-radius: var(--r-lg); overflow: hidden;
  background: #1E2026; box-shadow: var(--shadow);
}
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage video.mirror { transform: scaleX(-1); }
.stage-tag { position: absolute; left: 10px; bottom: 10px; background: var(--pink); color: #fff; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; font-family: var(--mono); }
.countdown {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-size: min(32vw, 160px); font-weight: 800; color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, .45);
}
.countdown.tick { animation: tick 1s ease-out; }
@keyframes tick { 0% { transform: scale(1.35); opacity: 0; } 15% { opacity: 1; transform: scale(1); } 85% { opacity: 1; } 100% { opacity: .2; transform: scale(.9); } }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.cam-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; color: #fff; background: #2A2C33; }
.cam-msg p { margin: 0 0 6px; line-height: 1.5; max-width: 22em; color: #E3E5EA; }
.cam-msg .btn.primary { background: #fff; color: var(--ink); }
.cam-msg .btn.ghost { background: transparent; color: #fff; border-color: #5B5E68; }

.pose { text-align: center; margin: 14px 0 12px; color: var(--ink-soft); font-size: 15px; display: flex; gap: 8px; justify-content: center; align-items: baseline; flex-wrap: wrap; }
.try { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--ink-faint); }
.controls { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; transition: opacity .2s; }
.controls.locked { opacity: .35; pointer-events: none; }
.segs { display: inline-flex; align-items: center; gap: 2px; height: 42px; padding: 0 4px 0 10px; border-radius: 999px; background: var(--raised); border: 1.5px solid var(--line); color: var(--ink-soft); }
.seg { height: 32px; min-width: 38px; padding: 0 10px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.seg.on { background: var(--ink); color: #fff; }
.tool { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--raised); border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; }
.tool:disabled { opacity: .4; }
.shoot .btn.big { max-width: 240px; align-self: center; }
.cells { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 8px; margin-top: 18px; }
.cell {
  aspect-ratio: 1; border: 1.5px dashed #C9CCD3; border-radius: 6px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; color: var(--ink-faint); overflow: hidden; background: var(--raised);
}
.cell.filled { border: 0; animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes pop { from { transform: scale(.6); } }

/* ---------- preview + side panel (pick / style / decorate) ---------- */
.split-body { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.split-preview { display: flex; justify-content: center; width: 100%; }
.split-side { width: 100%; display: flex; flex-direction: column; }
.strip-stage { position: relative; box-shadow: var(--shadow-strip); flex: none; }
.strip-canvas, .layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.slot-hit { position: absolute; display: grid; place-items: center; background: transparent; }
.slot-num { opacity: 0; font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--ink-faint); }
.slot-hit.is-empty .slot-num { opacity: 1; }
.slot-hit.is-empty { outline: 2px dashed rgba(255, 123, 163, .8); outline-offset: -4px; }
.side-label { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin: 4px 0 10px; text-transform: uppercase; letter-spacing: .06em; }
.pool { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pool-tile { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #E6E8EC; transition: transform .12s; }
.pool-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.pool-tile:active { transform: scale(.96); }
.pool-tile.is-placed { box-shadow: inset 0 0 0 3px var(--pink); }
.pool-tile.is-placed img { opacity: .55; }
.badge:empty { display: none; }
.badge { position: absolute; top: 6px; right: 6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--pink); color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; font-family: var(--mono); }

.filter-row { display: flex; gap: 10px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 18px; padding: 4px var(--gutter) 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-card { flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; scroll-snap-align: start; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.filter-card canvas { width: 84px; height: 84px; border-radius: 10px; display: block; border: 2.5px solid transparent; }
.filter-card.is-selected canvas { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-tint); }
.filter-card.is-selected { color: var(--ink); font-weight: 800; }
.field { width: 100%; height: 52px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--raised); padding: 0 16px; font-size: 17px; outline: none; }
.field:focus { border-color: var(--ink); }
.toggle { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-weight: 600; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 46px; height: 28px; border-radius: 14px; background: #D3D6DC; position: relative; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.toggle input:checked + .switch { background: var(--pink); }
.toggle input:checked + .switch::after { transform: translateX(18px); }
.toggle input:focus-visible + .switch { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- decorate ---------- */
.deco-stage { touch-action: none; user-select: none; -webkit-user-select: none; }
.deco-stage.drawing { cursor: crosshair; }
.deco-stage.drawing .sticker-layer { pointer-events: none; }
.deco-stage:not(.drawing) .layer:nth-child(2) { pointer-events: none; }
.sticker-layer { position: absolute; inset: 0; overflow: hidden; }
.sticker { position: absolute; line-height: 1; cursor: grab; touch-action: none; }
.sticker-glyph { display: block; padding: .08em; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.sticker.is-sel { outline: 1.5px dashed #fff; box-shadow: 0 0 0 1.5px rgba(23, 24, 28, .5); border-radius: 4px; }
.handle { position: absolute; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); touch-action: none; }
.handle.del { top: -13px; left: -13px; }
.handle.rot { bottom: -13px; right: -13px; background: var(--pink); }
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.sticker-btn { aspect-ratio: 1; font-size: 28px; border-radius: 10px; background: var(--raised); border: 1.5px solid var(--line); transition: transform .12s; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.sticker-btn:active { transform: scale(.9); }
.draw-panel { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .12); }
.swatch.on { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.draw-panel .segs { padding: 0 4px; }

/* ---------- done ---------- */
.done-body { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.final { display: flex; justify-content: center; min-height: 200px; width: 100%; }
.final-img { display: block; height: auto; box-shadow: var(--shadow-strip); -webkit-touch-callout: default; animation: develop 1.2s ease-out; }
.final[data-layout="vertical"] .final-img { width: auto; max-height: 64vh; max-width: 46vw; }
.final[data-layout^="y2k"] .final-img { width: auto; max-height: 64vh; max-width: 70vw; }
.final[data-layout="grid"] .final-img { width: 100%; max-width: 520px; }
.final[data-layout="duo"] .final-img { width: auto; max-height: 60vh; max-width: 80vw; }
.final[data-layout="polaroid"] .final-img { width: 80%; max-width: 360px; transform: rotate(-2deg); }
@keyframes develop { from { filter: brightness(1.8) saturate(0); opacity: .3; } }
.done-side { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 10px; }
.done-more { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.done-more .choice { flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; }
.done-more .choice strong { font-size: 15px; }
.done-more .choice span { font-size: 13px; }

/* ---------- overlay bits ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(23, 24, 28, .45); display: grid; place-items: center; padding: 20px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.dialog { background: var(--raised); border-radius: var(--r-lg); padding: 24px; width: min(380px, 100%); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.dialog h2 { margin: 0 0 8px; font-size: 20px; }
.dialog p { margin: 0 0 20px; color: var(--ink-soft); line-height: 1.5; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; }
.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: rise .25s; max-width: calc(100% - 32px); text-align: center; transition: opacity .4s; }
.toast.out { opacity: 0; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { top: 105%; transform: rotate(720deg) translateX(40px); } }

/* ---------- wide screens ---------- */
@media (min-width: 860px) {
  .scene.split, .scene.done { max-width: 1000px; }
  .scene.split .head, .scene.done .head { max-width: 560px; margin-left: auto; margin-right: auto; width: 100%; }
  .split-body, .done-body { flex-direction: row; align-items: flex-start; justify-content: center; gap: 48px; }
  .split-preview { width: auto; position: sticky; top: 24px; }
  .split-side { max-width: 440px; padding-top: 8px; }
  .filter-row { flex-wrap: wrap; margin: 0 0 18px; padding: 4px 0; overflow: visible; }
  .final { width: auto; }
  .final[data-layout="vertical"] .final-img, .final[data-layout^="y2k"] .final-img { max-width: none; height: 66vh; }
  .final[data-layout="grid"] .final-img { width: 520px; }
  .done-side { padding-top: 20px; }
}

@media (max-width: 370px) {
  .frame-grid { grid-template-columns: repeat(2, 1fr); }
  .ways { grid-template-columns: 1fr; }
  .layout-card { min-height: 200px; }
  .mini-vertical { height: 170px; width: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-strip { transform: translate(-50%, 4px) rotate(-4deg); }
}

/* =====================================================================
   Y2K digicam mode
   ===================================================================== */
:root { --pixel: "Silkscreen", "VT323", monospace; --lcd: "VT323", ui-monospace, monospace; }

/* start screen entry */
.choice.y2k-choice {
  background: linear-gradient(135deg, #2A1240, #6B2E8F 55%, #E05FB0);
  border-color: transparent; color: #fff;
}
.choice.y2k-choice span { color: #F3D6FF; }
.y2k-word { font-family: var(--pixel); font-weight: 400; font-size: 17px; letter-spacing: .02em; }
.choice .new { font-style: normal; font-family: var(--pixel); font-size: 10px; background: #C6FF4D; color: #17181C; padding: 2px 6px; border-radius: 4px; margin-left: 8px; vertical-align: 2px; }

/* the whole app goes dark + pixel once you're in digicam mode */
body.y2k { background: #1E0C33; background: var(--y2k-bg, #1E0C33) fixed; color: #fff; transition: background .4s; }
html:has(body.y2k) { background: #1E0C33; }
body.y2k .title { font-family: var(--pixel); font-weight: 400; letter-spacing: 0; }
body.y2k .sub, body.y2k .side-label, body.y2k .fineprint, body.y2k .backlink, body.y2k .step-label { color: rgba(255, 255, 255, .72); }
body.y2k .backlink:hover, body.y2k .step.is-current .step-label, body.y2k .step.is-done .step-label { color: #fff; }
body.y2k .pill, body.y2k .btn.primary {
  background: linear-gradient(#FFFFFF, #D7DBE3 55%, #F4F5F8); color: #17181C;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15), 0 6px 18px rgba(0, 0, 0, .3);
  font-family: var(--pixel); font-weight: 400;
}
body.y2k .btn.ghost, body.y2k .choice, body.y2k .tab, body.y2k .tool, body.y2k .segs, body.y2k .field, body.y2k .sticker-btn {
  background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff;
}
body.y2k .choice span { color: rgba(255, 255, 255, .7); }
body.y2k .tab.is-open, body.y2k .seg.on { background: #fff; color: #17181C; border-color: #fff; }
body.y2k .seg { color: rgba(255, 255, 255, .75); }
body.y2k .field:focus { border-color: #fff; }
body.y2k .field::placeholder { color: rgba(255, 255, 255, .45); }
body.y2k .filter-card { color: rgba(255, 255, 255, .75); font-family: var(--pixel); font-weight: 400; font-size: 12px; }
body.y2k .filter-card.is-selected { color: #fff; }
body.y2k .filter-card.is-selected canvas, body.y2k .frame-chip.is-selected canvas { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .3), 0 0 18px rgba(255, 180, 240, .7); }
body.y2k .step-dot { border-color: rgba(255, 255, 255, .5); box-shadow: none; background: transparent; }
body.y2k .step.is-done .step-dot, body.y2k .step.is-current .step-dot { background: #FF5FC8; border-color: #fff; box-shadow: 0 0 12px rgba(255, 95, 200, .8); }
body.y2k .track { background: rgba(255, 255, 255, .18); }
body.y2k .track-fill { background: #FF5FC8; }
body.y2k .strip-stage, body.y2k .final-img { box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 40px rgba(255, 170, 240, .25); }
body.y2k .switch { background: rgba(255, 255, 255, .25); }
body.y2k .toggle input:checked + .switch { background: #FF5FC8; }
body.y2k .swatch.on { box-shadow: 0 0 0 3px rgba(0, 0, 0, .4), 0 0 0 5px #fff; }
body.y2k .dialog { color: var(--ink); }

/* frame colour chips (style step) */
.frame-row { gap: 8px; }
.frame-chip { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--pixel); font-size: 11px; color: rgba(255, 255, 255, .75); }
.frame-chip canvas { display: block; border-radius: 4px; border: 2.5px solid transparent; }
.frame-chip.is-selected { color: #fff; }

/* word stickers */
.sticker-glyph.word { font-family: var(--pixel); font-size: .62em; white-space: nowrap; paint-order: stroke fill; -webkit-text-stroke: .3em #fff; padding: .2em .3em; }
.word-btn { font-family: var(--pixel); font-size: 13px; aspect-ratio: auto; height: 48px; grid-column: span 2; background: #fff !important; }

/* ---------- digicam scene ---------- */
.scene.dc { align-items: center; text-align: center; }
.scene.dc .head { width: 100%; margin-bottom: 0; }
.scene.dc .topbar { position: relative; }
.dc-counter { font-family: var(--lcd); font-size: 26px; color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, .6); }
.dc-logo {
  margin: 0 0 10px; font-family: "Pretendard", system-ui, sans-serif; font-weight: 300; font-size: 48px; letter-spacing: -.04em; line-height: 1;
  color: #FFF4FB; text-shadow: 0 0 18px rgba(255, 200, 240, .6);
}
.dc-logo sup { font-size: 20px; vertical-align: 20px; margin-left: 2px; }

.dc-eds { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; width: calc(100% + var(--gutter) * 2); margin: 0 calc(var(--gutter) * -1) 18px; padding: 4px var(--gutter) 6px; justify-content: safe center; }
.dc-eds::-webkit-scrollbar { display: none; }
.dc-ed { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--pixel); font-size: 11px; color: rgba(255, 255, 255, .7); }
.dc-ed.on { color: #fff; }

/* the live device: canvas body + the screen laid over it */
.dc-stage { position: relative; margin: 6px auto 16px; }
.dc-stage > canvas { display: block; }
.dc-screen { position: absolute; overflow: hidden; background: #050507; border-radius: 3px; }
.dc-screen video, .dc-review { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dc-screen video.mirror { transform: scaleX(-1); }
.dc-hudc { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dc-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 40%), repeating-linear-gradient(0deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 3px); }
.dc-count { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--lcd); font-size: clamp(64px, 22vw, 120px); color: #fff; text-shadow: 0 0 16px rgba(0, 0, 0, .7); pointer-events: none; }
.dc-count.tick { animation: tick 1s ease-out; }
.dc-lcd-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; font-family: var(--lcd); font-size: 17px; color: #9BE6FF; background: #0A1A2A; text-align: center; }
.dc-lcd-msg b { font-weight: 400; font-size: 26px; color: #fff; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* device picker */
.dc-devs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; width: calc(100% + var(--gutter) * 2); margin: 0 calc(var(--gutter) * -1) 4px; padding: 4px var(--gutter); scroll-snap-type: x proximity; }
.dc-devs::-webkit-scrollbar { display: none; }
.dc-dev { flex: 0 0 84px; scroll-snap-align: center; position: relative; }
.device-chip { position: relative; }
.dc-row-label { font-family: var(--pixel); font-size: 10px; color: rgba(255, 255, 255, .6); margin: 18px 0 2px; }
.credit { font-size: 11px; color: rgba(255, 255, 255, .55); margin: 14px 0 0; line-height: 1.5; }
.credit a { color: inherit; }
.dc-dev {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 6px; border-radius: 12px;
  font-family: var(--pixel); font-size: 10px; color: rgba(255, 255, 255, .75); border: 1.5px solid transparent; transition: background .2s, border-color .2s;
}
.dc-dev.on { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .55); color: #fff; }
.dc-dev-art { height: 56px; display: grid; place-items: center; }
.swatch-dot { width: 30px; height: 30px; border-radius: 50%; display: block; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), 0 2px 6px rgba(0, 0, 0, .35); outline: 2px solid transparent; outline-offset: 3px; }
.dc-ed .swatch-dot { width: 34px; height: 34px; }
.dc-ed.on .swatch-dot, .colour-chip.is-selected .swatch-dot { outline-color: #fff; }

/* skins (shared by the big camera and the mini chips) */
.skin-lace {
  background:
    radial-gradient(circle, rgba(75, 35, 120, .5) 20%, transparent 22%) 0 0 / 18px 18px,
    radial-gradient(circle, transparent 40%, rgba(75, 35, 120, .45) 43%, transparent 50%) 9px 9px / 18px 18px,
    radial-gradient(circle, transparent 40%, rgba(75, 35, 120, .35) 43%, transparent 50%) 0 0 / 18px 18px,
    linear-gradient(160deg, #E7D8FF, #B798E8 60%, #9E7BD8);
}
.skin-chrome { background: linear-gradient(135deg, #F7F8FA 0%, #AEB3BE 22%, #EEF0F3 42%, #8F96A3 62%, #F3F4F6 80%, #A7ACB7 100%); }
.skin-candy {
  background:
    radial-gradient(circle, rgba(255, 255, 255, .9) 1px, transparent 1.5px) 0 0 / 11px 13px,
    radial-gradient(circle, rgba(255, 255, 255, .6) 1px, transparent 1.5px) 5px 7px / 17px 15px,
    linear-gradient(160deg, #FFC4E2, #FF79B8 60%, #F05AA2);
}
.skin-midnight { background: linear-gradient(160deg, #3B3B48, #16161D 55%, #0B0B10); }
.skin-mint { background: linear-gradient(160deg, #DFFFF2, #9BE8CC 55%, #6ED3B0); }
.skin-dream { background: linear-gradient(135deg, #BFE0FF, #E3C8FF 50%, #FFC2E2); }

.dc-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(100%, 440px); margin-bottom: 16px; }
.dc-chip {
  height: 40px; border-radius: 10px; font-family: var(--pixel); font-size: 14px; color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .14); border: 1.5px solid rgba(255, 255, 255, .22); transition: background .2s, color .2s;
}
.dc-chip.on { background: #fff; color: #2A1240; border-color: #fff; box-shadow: 0 0 16px rgba(255, 255, 255, .45); }

.dc-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 16px; }
.dc-snap {
  min-width: 150px; height: 60px; border-radius: 30px; font-family: var(--pixel); font-size: 20px; color: #fff;
  background: radial-gradient(120% 140% at 50% 0%, #4A2470, #1B0A2E); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 24px rgba(0, 0, 0, .4), 0 0 0 2px rgba(255, 255, 255, .25);
  transition: transform .1s, opacity .2s;
}
body.y2k .dc-snap { background: rgba(0, 0, 0, .5); }
.dc-snap:active:not(:disabled) { transform: scale(.96); }
.dc-snap:disabled { opacity: .45; }
.dc-small { font-family: var(--pixel); font-size: 12px; color: rgba(255, 255, 255, .85); display: grid; place-items: center; min-width: 52px; height: 44px; }
.dc-flip { border-radius: 50%; width: 44px; min-width: 0; background: rgba(255, 255, 255, .12); }

.dc-settings { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; transition: opacity .2s; }
.dc-settings.locked { opacity: .4; pointer-events: none; }
.dc-seg-label { font-family: var(--pixel); font-size: 10px; color: rgba(255, 255, 255, .6); margin: 0 4px 0 2px; }
.dc-settings .seg { font-family: var(--pixel); font-weight: 400; font-size: 12px; }

.dc-tray { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 8px; width: min(100%, 300px); margin-bottom: 4px; }
.dc-cut { aspect-ratio: var(--ar, 4 / 3); border-radius: 6px; border: 1.5px dashed rgba(255, 255, 255, .4); display: grid; place-items: center; font-family: var(--lcd); font-size: 18px; color: rgba(255, 255, 255, .5); overflow: hidden; }
.dc-cut.filled { border: 0; animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); box-shadow: 0 0 0 2px #fff; }
.dc-cut img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-hint { font-size: 13px; color: rgba(255, 255, 255, .6); margin: 6px 0 0; }
.dc-eds { margin-top: 6px !important; }

@media (max-width: 370px) {
  .dc-logo { font-size: 40px; }
  .dc-chips { grid-template-columns: repeat(2, 1fr); }
}

/* style step: format, cuts, devices, colours */
.format-segs { align-self: flex-start; margin-bottom: 14px; }
.format-segs .seg { padding: 0 14px; }
.cut-row { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.cut-thumb { width: 54px; height: 54px; border-radius: 8px; overflow: hidden; border: 2.5px solid transparent; opacity: .65; transition: opacity .2s; }
.cut-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cut-thumb.is-selected { border-color: #fff; opacity: 1; box-shadow: 0 0 14px rgba(255, 180, 240, .6); }
.device-chip, .colour-chip { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px; border-radius: 12px; font-family: var(--pixel); font-size: 10px; color: rgba(255, 255, 255, .75); border: 1.5px solid transparent; }
.device-chip.is-selected { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .55); color: #fff; }
.colour-chip.is-selected { color: #fff; }
.device-art { height: 60px; display: grid; place-items: center; }

/* save step: one picture per cut, swipeable */
.gallery-wrap { width: 100%; max-width: 520px; }
.device-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; }
.device-gallery::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 100%; scroll-snap-align: center; display: flex; justify-content: center; padding: 4px 0 10px; }
.gallery-item .final-img { max-width: 100%; max-height: 62vh; width: auto; height: auto; border-radius: 6px; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; }
.gallery-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.gallery-dots i.on { background: #fff; }

/* =====================================================================
   Y2K mode, in the freqz vibe: white→pink paper, Arial Narrow, magenta
   wordmark, black-bordered boxes with an offset pink block, blue links,
   aqua + neon accents, and a purple room for the camera itself.
   ===================================================================== */
:root {
  --fz-ink: #111111; --fz-magenta: #FF00FB; --fz-blue: #0500FF; --fz-pink: #FF79C8; --fz-hot: #F41467;
  --fz-aqua: #AEFFF3; --fz-neon: #EFFF00; --fz-lav: #E6E6FA; --fz-paper: #FFF7FB;
  --narrow: "Arial Narrow", "Archivo Narrow", Arial, sans-serif;
}
html:has(body.y2k) { background: var(--fz-paper); }
body.y2k {
  color: var(--fz-ink); font-family: var(--narrow);
  background:
    radial-gradient(circle at -6% 14%, var(--fz-aqua) 0 80px, rgba(174, 255, 243, 0) 82px),
    radial-gradient(circle at 92% 30%, rgba(255, 255, 255, .9) 0 22px, rgba(255, 255, 255, 0) 24px),
    radial-gradient(circle at 92% 30%, rgba(174, 255, 243, .9) 0 9px, rgba(174, 255, 243, 0) 10px),
    linear-gradient(180deg, #FFFFFF 0%, var(--fz-paper) 35%, #FFC6E6 80%, var(--fz-pink) 100%);
  background-attachment: fixed;
}
/* the camera itself lives in a purple room */
body.y2k[data-scene="digicam"] {
  color: #fff;
  background: radial-gradient(120% 70% at 50% 22%, #8A55B8 0%, #4B2470 48%, #24103A 100%) fixed;
}
html:has(body.y2k[data-scene="digicam"]) { background: #24103A; }

body.y2k .title { font-family: var(--narrow); font-weight: 400; font-size: clamp(30px, 9vw, 40px); color: var(--fz-magenta); letter-spacing: -.01em; }
body.y2k .sub, body.y2k .fineprint, body.y2k .credit { color: #333; font-family: var(--narrow); }
body.y2k .backlink { color: var(--fz-blue); font-family: var(--narrow); }
body.y2k .backlink span { text-decoration: underline; text-underline-offset: 3px; }
body.y2k[data-scene="digicam"] .backlink { color: #fff; }
body.y2k .step-label { color: #555; font-family: var(--narrow); font-size: 12.5px; }
body.y2k[data-scene="digicam"] .step-label { color: rgba(255, 255, 255, .7); }
body.y2k .step.is-current .step-label, body.y2k .step.is-done .step-label { color: var(--fz-ink); }
body.y2k[data-scene="digicam"] .step.is-current .step-label, body.y2k[data-scene="digicam"] .step.is-done .step-label { color: #fff; }
body.y2k .side-label, body.y2k .dc-row-label { color: var(--fz-ink); font-family: var(--narrow); font-weight: 700; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; }
body.y2k .credit a, body.y2k a { color: var(--fz-blue); }

/* steps: plain dots, magenta when reached */
body.y2k .track { background: rgba(17, 17, 17, .12); height: 2px; top: 10px; }
body.y2k .track-fill { background: var(--fz-magenta); }
body.y2k .step-dot { background: #fff; border: 2px solid var(--fz-ink); box-shadow: none; }
body.y2k .step.is-done .step-dot, body.y2k .step.is-current .step-dot { background: var(--fz-magenta); border-color: var(--fz-ink); box-shadow: none; transform: none; }
body.y2k .step.is-current .step-dot { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--fz-magenta); }
body.y2k[data-scene="digicam"] .track { background: rgba(255, 255, 255, .25); }

/* buttons: black pills, white pills with a black outline */
body.y2k .pill, body.y2k .btn.primary {
  background: var(--fz-ink); color: #fff; border: 2px solid var(--fz-ink); border-radius: 999px;
  font-family: var(--narrow); font-weight: 700; font-size: 18px; box-shadow: none;
}
body.y2k .pill:disabled, body.y2k .btn.primary:disabled { background: #8C8C8C; border-color: #8C8C8C; }
body.y2k .btn.ghost, body.y2k .choice {
  background: #fff; color: var(--fz-ink); border: 2px solid var(--fz-ink); border-radius: 999px; font-family: var(--narrow); font-weight: 700;
}
body.y2k .done-more .choice { border-radius: 0; box-shadow: 6px 6px 0 var(--fz-pink); }
body.y2k .choice span { color: #555; font-weight: 400; }
body.y2k .dc-snap {
  min-width: 170px; height: 62px; border-radius: 999px; font-family: var(--narrow); font-weight: 700; font-size: 24px;
  background: #24103A; color: #fff; border: 2px solid rgba(255, 255, 255, .8); box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}
body.y2k .dc-snap:disabled { opacity: .5; }
body.y2k .dc-small { color: #fff; font-family: var(--narrow); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
body.y2k .dc-flip { background: transparent; border: 0; text-decoration: none; }
body.y2k .dc-counter { font-family: var(--narrow); font-weight: 700; font-size: 22px; color: #fff; text-shadow: none; }

/* chips: rounded rectangles, black text, filled black when picked */
body.y2k .tab, body.y2k .tool, body.y2k .segs, body.y2k .field, body.y2k .sticker-btn, body.y2k .dc-chip {
  background: #fff; border: 1.5px solid var(--fz-ink); color: var(--fz-ink); font-family: var(--narrow); font-weight: 700;
}
body.y2k .seg { color: #555; font-family: var(--narrow); font-weight: 700; }
body.y2k .tab.is-open, body.y2k .seg.on, body.y2k .dc-chip.on { background: var(--fz-ink); color: #fff; border-color: var(--fz-ink); box-shadow: none; }
body.y2k .dc-chip { border-radius: 10px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
body.y2k .field { border-radius: 0; }
body.y2k .field:focus { border-color: var(--fz-magenta); }
body.y2k .dc-seg-label { color: #555; font-family: var(--narrow); font-weight: 700; font-size: 12px; }
body.y2k .switch { background: #CFCFCF; }
body.y2k .toggle input:checked + .switch { background: var(--fz-magenta); }
body.y2k .toggle { font-family: var(--narrow); }

/* the wordmark */
.dc-logo .spark { display: none; }
body.y2k .dc-logo {
  font-family: var(--narrow); font-weight: 400; font-size: 64px; letter-spacing: -.03em; line-height: 1; margin: 0 0 16px;
  color: #FFF4FB; text-shadow: 0 0 22px rgba(255, 170, 240, .45);
}
body.y2k .dc-logo::after { content: "*"; font-size: 34px; vertical-align: 26px; margin-left: 2px; color: #fff; }
.dc-stage-wrap .spark { display: none; }
.dc-stage-wrap { position: relative; width: 100%; display: flex; justify-content: center; }

/* boxes: black border, sharp corners, offset pink block, bold header row */
.win {
  width: 100%; max-width: 460px; margin: 0 auto 22px; text-align: left; overflow: visible;
  background: #F7F7F7; color: var(--fz-ink); border: 2px solid var(--fz-ink); border-radius: 0; box-shadow: 12px 12px 0 var(--fz-pink);
}
.win-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 2px solid var(--fz-ink); font-family: var(--narrow); font-weight: 700; font-size: 19px; color: var(--fz-ink); background: #F7F7F7; }
.win-btns { display: none; }
.win-body { padding: 10px 14px 14px; }
.win .dc-devs { width: calc(100% + 28px); margin: 0 -14px; padding: 4px 14px; }
.win .dc-eds { width: calc(100% + 28px); margin: 0 -14px 2px !important; padding: 4px 14px 6px; justify-content: flex-start; }
.win .dc-chips, .win .dc-settings { width: 100%; margin-bottom: 10px; }
.win .dc-settings { margin-bottom: 0; justify-content: flex-start; }
.win .dc-row-label { margin: 12px 0 6px; text-align: left; }
body.y2k .dc-dev, body.y2k .dc-ed, body.y2k .device-chip, body.y2k .colour-chip, body.y2k .frame-chip, body.y2k .filter-card, body.y2k .bg-chip {
  color: #444; font-family: var(--narrow); font-weight: 700; font-size: 12px;
}
body.y2k .dc-dev { border-radius: 0; border: 1.5px solid transparent; }
body.y2k .dc-dev.on, body.y2k .device-chip.is-selected { background: var(--fz-aqua); border: 1.5px solid var(--fz-ink); color: var(--fz-ink); border-radius: 0; }
body.y2k .dc-ed.on, body.y2k .colour-chip.is-selected, body.y2k .filter-card.is-selected, body.y2k .frame-chip.is-selected, body.y2k .bg-chip.is-selected { color: var(--fz-ink); }
body.y2k .dc-ed.on .swatch-dot, body.y2k .colour-chip.is-selected .swatch-dot { outline: 2px solid var(--fz-ink); }
body.y2k .filter-card.is-selected canvas, body.y2k .frame-chip.is-selected canvas { border-color: var(--fz-ink); box-shadow: 4px 4px 0 var(--fz-pink); }
body.y2k .filter-card canvas { border-radius: 0; }

/* the shot tray (on purple) */
body.y2k .dc-cut { border: 1.5px dashed rgba(255, 255, 255, .6); color: rgba(255, 255, 255, .7); background: transparent; border-radius: 0; font-family: var(--narrow); }
body.y2k .dc-cut.filled { box-shadow: 0 0 0 2px #fff; }
body.y2k .dc-hint { color: rgba(255, 255, 255, .75); font-family: var(--narrow); }

/* colours for the real devices */
.tint-original { background: linear-gradient(135deg, #F4F5F7, #A9AEB8 50%, #E9EBEF); }
.tint-pink { background: linear-gradient(135deg, #F6E1E9, #E9B7CB); }
.tint-rose { background: linear-gradient(135deg, #EFD0DC, #D99AB3); }
.tint-lilac { background: linear-gradient(135deg, #ECE6F7, #C7B9E6); }
.tint-baby { background: linear-gradient(135deg, #E6EEF8, #B5CDE8); }
.tint-mint { background: linear-gradient(135deg, #E6F4EE, #B4DCCB); }
.tint-butter { background: linear-gradient(135deg, #F7F1DC, #EADBA6); }
.tint-black { background: linear-gradient(135deg, #7A7A84, #3A3A42); }
body.y2k .swatch-dot { box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), 0 0 0 1.5px var(--fz-ink); }

/* charms + backgrounds */
.dc-charms { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.charm-chip {
  width: 42px; height: 42px; border-radius: 0; display: grid; place-items: center; font-size: 22px;
  background: #fff; border: 1.5px solid var(--fz-ink); font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.charm-chip .none { font-family: var(--narrow); font-size: 15px; color: #888; }
.charm-chip.on, .charm-chip.is-selected { background: var(--fz-aqua); box-shadow: 3px 3px 0 var(--fz-pink); }
.bg-chip { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.bg-chip canvas { width: 54px; height: 54px; border: 1.5px solid var(--fz-ink); display: block; }
.bg-chip.is-selected canvas { box-shadow: 4px 4px 0 var(--fz-pink); outline: 2px solid var(--fz-ink); }

/* style / decorate side panel = one of those boxes */
body.y2k .split-side { background: #F7F7F7; border: 2px solid var(--fz-ink); box-shadow: 12px 12px 0 var(--fz-pink); padding: 0 14px 14px; }
body.y2k .split-side::before {
  content: "Make it yours"; display: block; margin: 0 -14px 12px; padding: 10px 14px; border-bottom: 2px solid var(--fz-ink);
  font-family: var(--narrow); font-weight: 700; font-size: 19px; color: var(--fz-ink);
}
body.y2k .filter-row { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
body.y2k .strip-stage, body.y2k .final-img { box-shadow: 12px 12px 0 var(--fz-pink); outline: 2px solid var(--fz-ink); border-radius: 0; }
body.y2k .gallery-item .final-img { border-radius: 0; }
body.y2k .gallery-item { padding: 4px 14px 22px 2px; }
body.y2k .gallery-dots i { background: rgba(17, 17, 17, .25); }
body.y2k .gallery-dots i.on { background: var(--fz-magenta); }
body.y2k .cut-thumb { border-radius: 0; }
body.y2k .cut-thumb.is-selected { border-color: var(--fz-ink); box-shadow: 3px 3px 0 var(--fz-pink); }
body.y2k .format-segs { border-radius: 999px; }

/* the entry on the start screen */
.choice.y2k-choice { background: #fff; color: var(--fz-ink); border: 2px solid var(--fz-ink); border-radius: 0; box-shadow: 8px 8px 0 var(--fz-pink); }
.choice.y2k-choice span { color: #555; }
.y2k-word { font-family: var(--narrow); font-size: 20px; color: var(--fz-magenta); font-weight: 400; }
.choice .new { background: var(--fz-neon); color: var(--fz-ink); border: 1px solid var(--fz-ink); border-radius: 0; font-family: var(--narrow); font-weight: 700; }
