/* ==========================================================================
   Kachak — the in-page product demo
   A 360×785 phone UI drawn at 0.772 scale inside a 300×628 device shell.
   All ten screens share this kit; js/demo.js swaps which one is mounted.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Device shell
   -------------------------------------------------------------------------- */

.phone-wrap {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%) translateY(var(--shift, 0px));
  width: 300px;
  height: 628px;
  /* Above the floating prints. At 1440 they never overlap, so this changes
     nothing there — but as the column narrows they encroach, and the phone is
     interactive, so it has to win both the paint and the hit test. */
  z-index: 3;
  background: var(--ink);
  border-radius: 46px;
  padding: 11px;
  box-shadow:
    0 40px 80px -30px rgba(30, 20, 10, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 22px;
  border-radius: 99px;
  background: #0a0908;
  z-index: 30;
}

/* The app is authored at 360px wide and scaled to fit the 278px screen. */
.app-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 360px;
  height: 785px;
  transform: scale(0.772);
  transform-origin: top left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-bar {
  position: absolute;
  left: 50%;
  bottom: 9px;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: rgba(22, 20, 15, 0.25);
  z-index: 20;
}
.home-bar--dark { background: rgba(255, 255, 255, 0.5); }

/* --------------------------------------------------------------------------
   Screen primitives
   -------------------------------------------------------------------------- */

.scr {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.scr__body {
  flex: 1;
  overflow-y: auto;
  padding: 52px 22px 28px;
}
.scr__body--flush { padding: 50px 0 20px; }
.scr__body--tight { padding: 52px 22px 20px; }

.scr__foot {
  padding: 13px 18px 24px;
  background: linear-gradient(rgba(250, 248, 244, 0), var(--bg));
  display: flex;
  gap: 10px;
}
.scr__foot--pay { padding: 14px 18px 24px; display: block; }

.app-h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1px;
}
.app-h2--lg { font-size: 29px; letter-spacing: -1.1px; }
.app-h2--sm { font-size: 25px; letter-spacing: -0.9px; }

.app-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
/* The home-screen count is set without tracking. */
.app-label--tight { letter-spacing: normal; }

.field-label {
  margin: 0 0 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  color: var(--ink);
}
.icon-btn i { font-size: 17px; }
.icon-btn--sm i { font-size: 16px; }

.app-btn {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 17px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
}
.app-btn i { font-size: 19px; color: var(--coral); }
.app-btn + .app-btn { margin-top: 10px; }
.app-btn--ghost {
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
}
.app-btn--ghost i { color: var(--ink); }

/* The design leaves the guest-side controls inert — this demo walks the host
   flow. They keep their normal look; the hint beneath says which button is
   live. */
.app-btn[disabled],
.invite__share[disabled] { cursor: default; }

.pill-btn {
  flex: 1;
  height: 52px;
  border: none;
  border-radius: 15px;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px -12px rgba(255, 90, 77, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pill-btn--ghost {
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.row-baseline { display: flex; align-items: baseline; justify-content: space-between; }

.spacer-38 { width: 38px; flex: none; }

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */

.app-top { margin-bottom: 22px; }

.app-logo { display: flex; align-items: center; gap: 9px; }
.app-logo__mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand-grad);
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-logo__mark i { font-size: 16px; color: #fff; }
.app-logo__name { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; }

.spaces-head { margin-bottom: 14px; }

.space-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 11px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}
.space-card__cover {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex: none;
}
.space-card__text { flex: 1; min-width: 0; }
.space-card__text p { margin: 0; white-space: nowrap; }
.space-card__name { font-size: 18px; font-weight: 700; letter-spacing: -0.4px; margin-bottom: 3px !important; }
.space-card__meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  margin-bottom: 5px !important;
}
.space-card__live {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--coral);
}
.space-card > i { font-size: 15px; color: #c3bfb6; }

.app-hint {
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: #c3bfb6;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Create
   -------------------------------------------------------------------------- */

.back-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }

.covers { display: flex; gap: 10px; margin-bottom: 24px; }
.cover {
  width: 50px;
  height: 50px;
  margin-top: 2px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  flex: none;
}
.cover--on {
  width: 55px;
  height: 55px;
  margin-top: 0;
  border-radius: 16px;
  padding: 2.5px;
  border: 2.5px solid var(--ink);
  background: none;
}
.cover--on > span {
  flex: 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.event-name {
  margin: 0 0 24px;
  padding-bottom: 11px;
  border-bottom: 1.5px solid var(--line-3);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1px;
}

.date-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 24px;
}
.date-box i { font-size: 18px; color: var(--ink-2); }
.date-box span { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 0.04em; }

.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.tier {
  border-radius: 14px;
  padding: 13px 8px;
  cursor: pointer;
  text-align: center;
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.tier[aria-pressed="true"] { background: #fff6f4; border-color: var(--coral); }
.tier b { display: block; font-family: var(--font-mono); font-size: 14px; font-weight: 700; }
.tier small { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 10px; opacity: 0.72; }

.pay-summary { margin-bottom: 10px; }
.pay-summary span:first-child {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.pay-summary span:last-child {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--coral);
}
.pay-cta {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 16px;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px -12px rgba(255, 90, 77, 0.9);
}

/* --------------------------------------------------------------------------
   Pay sheet
   -------------------------------------------------------------------------- */

.sheet-scr { position: relative; flex: 1; background: var(--bg); }
.sheet-ghost {
  position: absolute;
  inset: 0;
  padding: 52px 22px;
  filter: blur(1px);
  opacity: 0.5;
}
.sheet-ghost__title { margin: 0 0 14px; font-size: 27px; font-weight: 800; letter-spacing: -1px; }
.sheet-ghost p { margin: 0; font-size: 15px; color: var(--ink-2); }
.sheet-scrim { position: absolute; inset: 0; background: rgba(20, 14, 8, 0.42); }

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  border-radius: 26px 26px 0 0;
  padding: 10px 16px 24px;
  animation: kchSheet 0.34s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.sheet__grip {
  display: block;
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: var(--grip);
  margin: 0 auto 16px;
}
.sheet__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 4px 14px;
}
.sheet__head span:first-child { font-family: var(--font-serif); font-size: 23px; font-style: italic; }
.sheet__head span:last-child { font-family: var(--font-mono); font-size: 15px; font-weight: 700; }

.pay-option {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  margin-bottom: 10px;
  text-align: left;
  color: var(--ink);
}
.pay-option:last-of-type { margin-bottom: 0; }
.pay-option > i:first-child { font-size: 22px; color: var(--coral); flex: none; }
.pay-option span { flex: 1; }
.pay-option b { display: block; font-size: 15px; font-weight: 700; }
.pay-option small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.pay-option > i:last-child { font-size: 16px; color: #c3bfb6; }

.sheet__note {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  color: var(--ink-3);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Paying
   -------------------------------------------------------------------------- */

.paying {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 40px;
}
.paying__mark {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: var(--brand-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  box-shadow: 0 16px 32px -12px rgba(236, 74, 62, 0.6);
}
.paying__mark i { font-size: 32px; color: #fff; }
.paying__title { margin: 0 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.7px; }
.paying p {
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.dots { display: flex; gap: 7px; }
.dots i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--coral);
  animation: kchDots 1.2s ease-in-out infinite;
}
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
.dots--cream i { background: var(--cream); width: 7px; height: 7px; }

/* --------------------------------------------------------------------------
   Invite
   -------------------------------------------------------------------------- */

.invite { text-align: center; }
.invite__head { margin-bottom: 8px; }
.invite .app-h2 { margin: 0 0 4px; }
.invite__sub { margin: 0 0 22px; font-size: 13.5px; color: var(--ink-2); }

.qr-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 16px 34px -22px rgba(40, 30, 20, 0.5);
}
.qr-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 212px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-box > i { font-size: 150px; color: var(--ink); }
.qr-box__badge {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--coral);
  border: 3px solid var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px -6px rgba(255, 90, 77, 0.8);
}
.qr-box__badge i { font-size: 20px; color: #fff; }
.qr-card__scan {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}
.qr-card__scan i { font-size: 13px; color: var(--coral); vertical-align: -2px; }
.qr-card__or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 17px 0 14px;
}
.qr-card__or span:nth-child(odd) { flex: 1; height: 1px; background: var(--line); }
.qr-card__or span:nth-child(even) {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  color: var(--ink-3);
}
.qr-card__code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.invite__go {
  width: 100%;
  height: 54px;
  margin-top: 18px;
  border: none;
  border-radius: 16px;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px -12px rgba(255, 90, 77, 0.9);
}
.invite__share {
  width: 100%;
  height: 50px;
  margin-top: 10px;
  border: 1px solid var(--line-2);
  border-radius: 15px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.invite__share i { font-size: 17px; }

/* --------------------------------------------------------------------------
   Lobby
   -------------------------------------------------------------------------- */

.lobby__head { margin-bottom: 16px; }
.invite-pill {
  height: 38px;
  padding: 0 15px;
  border-radius: 19px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.invite-pill i { font-size: 15px; }

.lobby__meta {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

.progress-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 18px;
}
.progress-card__head { margin-bottom: 11px; }
.progress-card__head span:first-child { font-size: 14px; font-weight: 600; }
.progress-card__head span:last-child {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--coral);
}
.progress-bar {
  height: 6px;
  border-radius: 9px;
  background: var(--track);
  overflow: hidden;
  margin-bottom: 11px;
}
.progress-bar span {
  display: block;
  height: 100%;
  border-radius: 9px;
  background: var(--coral);
  transition: width 0.3s ease;
}
.progress-card__foot {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.avatars { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.avatars span {
  width: 38px;
  height: 38px;
  border-radius: 99px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 17px;
}
.avatars .avatars__more {
  background: var(--tint);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.shoot-cta {
  width: 100%;
  border: none;
  border-radius: 20px;
  background: var(--coral);
  color: #fff;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 34px -16px rgba(255, 90, 77, 0.9);
  margin-bottom: 12px;
}
.shoot-cta > span { display: flex; align-items: center; gap: 14px; }
.shoot-cta__tile {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.shoot-cta__tile i { font-size: 24px; }
.shoot-cta__text { flex: 1; }
.shoot-cta__text b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.4px; }
.shoot-cta__text small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  opacity: 0.85;
}
.shoot-cta > span > i:last-child { font-size: 18px; }

.gallery-cta {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.gallery-cta i { font-size: 17px; }

/* --------------------------------------------------------------------------
   Camera
   -------------------------------------------------------------------------- */

.cam {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--cam-bg);
  position: relative;
}
.cam__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px 20px 14px;
}
.cam__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.6);
}
.cam__label--retake { color: var(--coral); }
.cam__tools { display: flex; gap: 10px; }

.glass {
  width: 40px;
  height: 40px;
  border-radius: 99px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
.glass i { font-size: 18px; }
.glass--on { background: var(--flash-yellow); color: var(--ink); }

.cam__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
}

.viewfinder {
  position: relative;
  width: 100%;
  max-width: 330px;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.viewfinder__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(95% 95% at 50% -6%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 55%);
}
.viewfinder__vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0) 60%, rgba(15, 12, 8, 0.35));
}
.viewfinder__corner {
  position: absolute;
  width: 22px;
  height: 22px;
}
.viewfinder__corner--tl { top: 12px; left: 12px; border-top: 2px solid rgba(255, 255, 255, 0.85); border-left: 2px solid rgba(255, 255, 255, 0.85); }
.viewfinder__corner--tr { top: 12px; right: 12px; border-top: 2px solid rgba(255, 255, 255, 0.85); border-right: 2px solid rgba(255, 255, 255, 0.85); }
.viewfinder__corner--bl { bottom: 12px; left: 12px; border-bottom: 2px solid rgba(255, 255, 255, 0.85); border-left: 2px solid rgba(255, 255, 255, 0.85); }
.viewfinder__corner--br { bottom: 12px; right: 12px; border-bottom: 2px solid rgba(255, 255, 255, 0.85); border-right: 2px solid rgba(255, 255, 255, 0.85); }
.viewfinder__iso {
  position: absolute;
  left: 14px;
  top: 42px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
}
.viewfinder__exp {
  position: absolute;
  right: 14px;
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.75);
}
.viewfinder__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.viewfinder__count {
  position: absolute;
  left: 13px;
  bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.viewfinder__count b {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--cream);
}
.viewfinder__count b.is-low { color: var(--coral); }
.viewfinder__count small {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
}
.viewfinder__blink { position: absolute; inset: 0; background: #000; }

.cam__dials {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px 22px 2px;
}
.cam__dials span {
  width: 44px;
  height: 44px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cam__dials i { font-size: 18px; }

.cam__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 34px 26px;
}

.roll-peek {
  position: relative;
  width: 46px;
  height: 60px;
  border-radius: 8px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  flex: none;
}
.roll-peek__thumb {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.roll-peek__count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 11px;
  background: var(--coral);
  border: 2px solid var(--cam-bg);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.roll-peek__empty {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
}
.roll-peek__empty i { font-size: 18px; }

.shutter {
  width: 78px;
  height: 78px;
  border-radius: 99px;
  border: none;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
  flex: none;
}
.shutter--retake { box-shadow: 0 0 0 4px rgba(255, 90, 77, 0.3); }
.shutter span {
  width: 62px;
  height: 62px;
  border-radius: 99px;
  background: var(--coral);
}
.shutter:active span { transform: scale(0.94); }

.wrap-up {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 118px;
  border: none;
  border-radius: 999px;
  background: rgba(245, 242, 236, 0.92);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 10px 18px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Review
   -------------------------------------------------------------------------- */

.review { background: var(--bg); }
.review .app-h2 { margin: 0 0 3px; }
.review__sub { margin: 0 0 16px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.retake-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--notif-pink);
  border-radius: 20px;
  padding: 5px 13px;
  margin-bottom: 16px;
}
.retake-chip i { font-size: 12px; color: var(--coral); }
.retake-chip b {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--coral);
}

.frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.frame {
  position: relative;
  padding: 5px;
  border: none;
  border-radius: 3px;
  background: var(--surface);
  box-shadow: 0 4px 11px -7px rgba(40, 30, 20, 0.6);
  cursor: pointer;
  aspect-ratio: 1;
}
.frame__face { position: relative; display: block; height: 100%; overflow: hidden; }
.frame__pick {
  position: absolute;
  inset: 5px;
  background: rgba(255, 90, 77, 0.2);
  border: 3px solid var(--coral);
}
.frame__order {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 19px;
  height: 19px;
  border-radius: 99px;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Developing
   -------------------------------------------------------------------------- */

.developing {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(110% 110% at 50% 30%, #1a1714, var(--dev-bot));
}
.developing__print {
  position: relative;
  width: 200px;
  height: 250px;
  background: var(--surface);
  border-radius: 4px;
  padding: 12px 12px 40px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.developing__face {
  position: relative;
  height: 100%;
  overflow: hidden;
  background-image: var(--film-0);
}
.developing__curtain {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background: var(--dev-bot);
  transition: height 0.07s linear;
}
.developing__curtain span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
}
.developing__title {
  margin: 30px 0 6px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #f4f1ea;
}
.developing p {
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}
.developing__bar {
  width: 180px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.developing__bar span {
  display: block;
  height: 100%;
  background: var(--coral);
  transition: width 0.07s linear;
}
.developing .dots { margin-top: 18px; }

/* --------------------------------------------------------------------------
   Gallery / save
   -------------------------------------------------------------------------- */

.gal__head { padding: 6px 18px 12px; }
.gal__head--save { padding: 6px 18px 4px; }
.gal__title { font-size: 19px; font-weight: 800; letter-spacing: -0.5px; }
.gal__live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-bottom: 12px;
}
.gal__live .dot { width: 6px; height: 6px; }
.gal__live span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}
.gal__hint {
  margin: 0;
  padding: 0 18px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 0 3px;
}
.gal-tile {
  position: relative;
  border: none;
  padding: 0;
  aspect-ratio: 1;
  cursor: pointer;
  overflow: hidden;
}
.gal-tile__who {
  position: absolute;
  left: 5px;
  bottom: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
}
.gal-tile__pick { position: absolute; inset: 0; background: rgba(255, 90, 77, 0.22); border: 3px solid var(--coral); }
.gal-tile__check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 99px;
  background: var(--coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gal-tile__check i { font-size: 11px; }

.save-all {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 15px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
}
.save-all i { font-size: 18px; color: var(--coral); }

/* --------------------------------------------------------------------------
   Viewer
   -------------------------------------------------------------------------- */

.viewer { flex: 1; display: flex; flex-direction: column; background: var(--viewer-bg); }
.viewer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px 18px 12px;
}
.viewer__who { display: flex; align-items: center; gap: 8px; }
.viewer__avatar {
  width: 26px;
  height: 26px;
  border-radius: 99px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 12px;
}
.viewer__name { font-size: 13px; font-weight: 600; color: #fff; }
.viewer__time { font-family: var(--font-mono); font-size: 10px; color: rgba(255, 255, 255, 0.5); }
.viewer__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}
.viewer__print {
  width: 100%;
  background: var(--surface);
  padding: 12px 12px 44px;
  border-radius: 4px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.8);
}
.viewer__face { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.viewer__caption {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.viewer__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 20px 30px;
}
.viewer__pill {
  height: 44px;
  padding: 0 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: none;
}
.viewer__pill i { font-size: 17px; }
.viewer__pill--coral { background: var(--coral); padding: 0 20px; cursor: pointer; }
.viewer__pill--round { width: 44px; padding: 0; justify-content: center; }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 104px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 13px 18px;
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, 0.7);
  animation: kchToast 0.3s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.toast i { font-size: 18px; color: var(--green-toast); }
.toast span { font-size: 14px; font-weight: 600; }
