/* Câmera Retrô: tela inteira, vidro fosco progressivo e bordas laterais de TV de tubo.
   Referências de UI (07/11/2026): editor com régua, pílulas e discos; rolos em pilha com "+N";
   visualizador em cartão com a próxima foto espiando; cartões com fosco progressivo e botões em pílula. */
:root {
  --bz: #000;
  --bg: #0a0908;
  --ink: #f5f0e7;
  --mut: rgba(245, 240, 231, 0.68);
  --dim: rgba(245, 240, 231, 0.42);
  --line: rgba(245, 240, 231, 0.18);
  --glass: rgba(255, 255, 255, 0.14);
  --glass-2: rgba(255, 255, 255, 0.24);
  --acc: #ff8a2a;
  --acc-glow: rgba(255, 120, 30, 0.75);
  --paper: #f2efe9;
  --paper-ink: #17140f;
  --paper-mut: #8a8378;
  --r: 34px;
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', ui-monospace, Menlo, monospace;
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --bez: 7px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tx: 0;
  --ty: 0;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bz); overflow: hidden; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
body { font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
img { -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; }
svg { display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
input, select, textarea { font-size: 16px; }

/* ---------- moldura de tubo ---------- */
#app { position: fixed; inset: 0; background: var(--bz); }
#video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tube {
  position: absolute; top: 0; bottom: 0; left: var(--bez); right: var(--bez);
  border-radius: 22px / 34px; overflow: hidden; background: var(--bg); isolation: isolate;
}
.crt { position: absolute; inset: 0; pointer-events: none; z-index: 80; border-radius: inherit; }
.crt-edge {
  box-shadow: inset 16px 0 22px -12px rgba(0, 0, 0, 0.9), inset -16px 0 22px -12px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  background: radial-gradient(140% 75% at 50% 50%, transparent 66%, rgba(0, 0, 0, 0.34) 100%);
}
.crt-fringe {
  mix-blend-mode: screen; opacity: 0.6;
  background: linear-gradient(90deg, rgba(255, 40, 40, 0.24), transparent 9px), linear-gradient(270deg, rgba(40, 110, 255, 0.26), transparent 9px);
}
.crt-scan {
  opacity: 0.18; mix-blend-mode: multiply;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0 1px, transparent 1px 3px);
  -webkit-mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.25) 16%, rgba(0, 0, 0, 0.25) 84%, #000);
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.25) 16%, rgba(0, 0, 0, 0.25) 84%, #000);
}
.crt-glass {
  inset: -20%;
  background: radial-gradient(40% 28% at 24% 16%, rgba(255, 255, 255, 0.07), transparent 70%);
  transform: translate3d(calc(var(--tx) * -28px), calc(var(--ty) * -28px), 0);
}
.crt-static { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 79; pointer-events: none; opacity: 0; mix-blend-mode: screen; image-rendering: pixelated; }
.tube.zap { animation: zap 0.34s var(--ease); }
@keyframes zap { 0% { filter: brightness(1.7) contrast(1.15); } 40% { filter: brightness(0.9); } 100% { filter: none; } }
.osd {
  position: absolute; z-index: 81; top: calc(var(--st) + 70px); left: 50%; transform: translateX(-50%); padding: 7px 11px; border-radius: 6px; background: rgba(0, 0, 0, 0.55);
  font: 700 12px/1 var(--mono); letter-spacing: 0.16em; color: #b8ffcf; text-shadow: 0 0 8px rgba(120, 255, 170, 0.8);
  opacity: 0; transition: opacity 0.25s; pointer-events: none; white-space: nowrap;
}
.osd.on { opacity: 1; }

/* ---------- canais ---------- */
.chs { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: none; }
.chs::-webkit-scrollbar { display: none; }
.ch { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.chan-dots { position: absolute; z-index: 60; left: 50%; bottom: calc(var(--sb) + 6px); transform: translateX(-50%); display: flex; gap: 2px; padding: 4px 6px; color: var(--ink); transition: color 0.3s; }
.chan-dots button { width: 24px; height: 20px; display: grid; place-items: center; }
.chan-dots button i { width: 5px; height: 5px; border-radius: 3px; background: currentColor; opacity: 0.35; transition: opacity 0.2s, width 0.3s var(--ease); }
.chan-dots button[aria-current="true"] i { opacity: 1; width: 14px; }
.chan-dots.claro { color: var(--paper-ink); }

/* ---------- peças de vidro ---------- */
.glass-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.25); transition: transform 0.12s var(--ease), background 0.12s;
}
.glass-btn:active { transform: scale(0.92); background: var(--glass-2); }
.glass-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pill {
  height: 52px; padding: 0 20px; border-radius: 99px; font-weight: 600; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  transition: transform 0.12s var(--ease), opacity 0.12s, background 0.12s;
}
.pill:active { transform: scale(0.97); }
.pill:disabled { opacity: 0.45; }
.pill.white { background: var(--ink); color: #121110; }
.pill.line { box-shadow: inset 0 0 0 1.2px rgba(255, 255, 255, 0.85); color: var(--ink); }
.pill.acc { background: var(--acc); color: #160c03; }
.pill.dark { background: var(--paper-ink); color: var(--paper); }
.pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* abas: uma fileira só de pílulas (referência do editor); a pílula branca desliza até a aba escolhida */
.glass-btn.white-btn { background: #fff; color: #121110; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22); }
.tabs { position: relative; display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding: 0 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; z-index: 1; flex: 0 0 auto; height: 30px; padding: 0 14px; border-radius: 99px; font: 600 12.5px/1 var(--sans); letter-spacing: 0.005em; color: rgba(255, 255, 255, 0.9); background: rgba(18, 16, 14, 0.36); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14); transition: color 0.3s var(--spring), background 0.3s; }
.tabs button[aria-selected="true"] { color: #121110; background: transparent; }
.tabs .tab-ind { position: absolute; z-index: 0; left: 0; top: 0; height: 30px; width: 0; border-radius: 99px; background: var(--ink); pointer-events: none; transition: transform 0.42s var(--spring), width 0.42s var(--spring); }
.tabs.sans { overflow: visible; padding: 4px; gap: 2px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); }
.tabs.sans button { background: transparent; font-size: 13px; }
.tabs.sans button[aria-selected="true"], .tabs.sans button[aria-checked="true"] { background: var(--ink); color: #121110; }

/* Foto com fosco progressivo: a mesma imagem, borrada, entra por baixo com máscara */
.frosted { position: absolute; inset: 0; overflow: hidden; }
.frosted .f-img, .frosted .f-blur { position: absolute; left: 0; width: 100%; object-fit: cover; display: block; }
.frosted .f-blur {
  filter: blur(22px) saturate(1.35) brightness(0.92); transform: scale(1.12);
  -webkit-mask-image: linear-gradient(180deg, transparent var(--f0, 52%), #000 var(--f1, 80%));
  mask-image: linear-gradient(180deg, transparent var(--f0, 52%), #000 var(--f1, 80%));
}
.frosted .f-amb { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(36px) saturate(1.45) brightness(0.62); }
.frosted .f-tint { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 9, 8, 0.34) 100%); }

/* ---------- display de 7 segmentos ---------- */
.seg { height: 1em; width: calc(1em * var(--w)); overflow: visible; }
.seg .s-on { fill: var(--acc); filter: drop-shadow(0 0 0.09em var(--acc-glow)); }
.seg .s-off { fill: rgba(255, 138, 42, 0.08); }

/* ---------- CH 01 câmera ---------- */
.ch-cam { background: #050505; }
.amb { position: absolute; inset: -12%; width: 124%; height: 124%; filter: blur(38px) saturate(1.5) brightness(0.6); }
.vf { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 3 / 4; }
.vf canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vf .vf-ext, .ed-photo .vf-ext {
  position: absolute; inset: auto; left: 0; top: 100%; width: 100%; height: 46%; pointer-events: none;
  filter: blur(22px) saturate(1.35) brightness(0.86); transform: scale(1.08, 1); transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}
.vf-frost {
  pointer-events: none;
  filter: blur(18px) saturate(1.35) brightness(0.88); transform: scale(1.06);
  -webkit-mask-image: linear-gradient(180deg, transparent var(--f0, 72%), #000 var(--f1, 94%));
  mask-image: linear-gradient(180deg, transparent var(--f0, 72%), #000 var(--f1, 94%));
}
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 70; }
.flash.on { animation: flash 0.42s ease-out; }
@keyframes flash { 0% { opacity: 0.95; } 100% { opacity: 0; } }
.vf-msg { position: absolute; left: 24px; right: 24px; top: 30%; z-index: 25; text-align: center; display: grid; gap: 14px; justify-items: center; font-size: 15px; color: var(--mut); line-height: 1.4; }
.cam-top { position: absolute; z-index: 20; top: calc(var(--st) + 10px); left: 14px; right: 14px; display: flex; align-items: flex-start; justify-content: space-between; pointer-events: none; }
.cam-top > * { pointer-events: auto; }
.tools { display: flex; gap: 8px; }
.tool { position: relative; transition: transform 0.12s var(--ease), background 0.2s, color 0.2s; }
.tool[aria-pressed="true"] { background: var(--ink); color: #121110; }
.tool-v { position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); font: 700 9px/1 var(--mono); letter-spacing: 0.06em; color: var(--ink); white-space: nowrap; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.ed-side .tool-v { bottom: auto; top: -14px; }
.poses { display: grid; justify-items: end; gap: 5px; font-size: 34px; padding: 2px 4px; }
.poses small { font: 700 9.5px/1 var(--mono); letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 10px rgba(0, 0, 0, 0.45); }
.poses.tick .seg { animation: tick 0.45s var(--ease); }
@keyframes tick { 0% { transform: translateY(-6px); opacity: 0.3; } 100% { transform: none; opacity: 1; } }
.deck { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; padding: 0 0 calc(var(--sb) + 34px); display: grid; gap: 11px; }
/* véu leve atrás dos controles: o texto branco segura sobre foto clara no fosco */
.deck::before, .ed-deck::before { content: ''; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; top: -40px; pointer-events: none; background: linear-gradient(180deg, rgba(8, 7, 6, 0), rgba(8, 7, 6, 0.3) 40%, rgba(8, 7, 6, 0.42)); }
.deck-info { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); text-align: center; display: grid; gap: 3px; padding: 0 20px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.4s var(--ease); pointer-events: none; }
.deck-info.on { opacity: 1; transform: none; }
.deck-info b { font-weight: 650; font-size: 17px; letter-spacing: -0.005em; }
.deck-info span { font: 400 11px/1.3 var(--mono); color: var(--mut); }
.deck-info .lock-tag { color: var(--acc); }

.ruler {
  position: relative; height: 42px; margin: 0 22px; touch-action: none; cursor: ew-resize; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.ruler-ticks { position: absolute; top: 6px; height: 16px; left: 50%; display: flex; align-items: flex-end; will-change: transform; }
.ruler-ticks i { flex: 0 0 auto; width: 1px; height: 8px; margin-right: 7px; background: rgba(245, 240, 231, 0.55); }
.ruler-ticks i.big { height: 15px; background: rgba(245, 240, 231, 0.95); }
.ruler-mark { position: absolute; left: 50%; top: 2px; width: 2px; height: 24px; margin-left: -1px; border-radius: 1px; background: var(--acc); box-shadow: 0 0 8px var(--acc-glow); }
.ruler-lbl { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font: 700 10px/1 var(--mono); letter-spacing: 0.14em; color: var(--mut); }

.swatches { display: flex; gap: 12px; overflow-x: auto; padding: 5px calc(50% - 32px) 2px; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.swatches::-webkit-scrollbar { display: none; }
.sw-item { flex: 0 0 auto; width: 66px; align-content: start; display: grid; justify-items: center; gap: 7px; scroll-snap-align: center; transform-origin: 50% 40%; will-change: transform; }
.sw-disc { position: relative; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: #222; transition: box-shadow 0.3s var(--spring), transform 0.2s var(--ease); }
.sw-disc canvas, .sw-disc img { width: 100%; height: 100%; display: block; object-fit: cover; }
.sw-item[aria-checked="true"] .sw-disc { box-shadow: 0 0 0 2.5px rgba(10, 9, 8, 0.6), 0 0 0 4.5px var(--ink); }
.sw-item:active .sw-disc { transform: scale(0.93); }
.sw-item small { font-size: 10.5px; line-height: 1.15; font-weight: 500; color: var(--mut); text-align: center; max-width: 66px; min-height: 2.3em; }
.sw-item[aria-checked="true"] small { color: var(--ink); font-weight: 650; }
.sw-lock { position: absolute; right: 2px; bottom: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0, 0, 0, 0.62); display: grid; place-items: center; }
.sw-lock svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 2.2; }
.sw-txt { display: grid; place-items: center; width: 100%; height: 100%; font: 700 10px/1.1 var(--mono); color: var(--ink); text-align: center; background: rgba(255, 255, 255, 0.1); }

.shoot-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; padding: 0 26px; }
.shoot-row > :first-child { justify-self: start; }
.shoot-row > :last-child { justify-self: end; }
.last { position: relative; width: 46px; height: 46px; }
.last-stack span { position: absolute; inset: 0; border-radius: 12px; background: #2a2724 center / cover no-repeat; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85), 0 6px 14px rgba(0, 0, 0, 0.4); }
.last-stack span:first-child { transform: rotate(-10deg) translate(-3px, 1px); opacity: 0.7; }
.last-stack span:last-child { transform: rotate(4deg); }
.last .dot { position: absolute; top: -4px; right: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 8px var(--acc-glow), 0 0 0 2px #050505; }
.shutter {
  width: 78px; height: 78px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 50% 36%, #fffdf8, #ebe4d7 72%);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14), 0 0 0 5px rgba(255, 255, 255, 0.42), 0 10px 26px rgba(0, 0, 0, 0.45);
  transition: transform 0.1s var(--ease);
}
.shutter:active { transform: scale(0.9); }
.shutter:disabled { opacity: 0.5; }

/* ---------- CH 02 rolos (claro) ---------- */
.ch-rolos { background: var(--paper); color: var(--paper-ink); }
.rl-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.rl-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: calc(var(--st) + 12px) 16px 12px 22px; background: linear-gradient(180deg, var(--paper) 72%, rgba(242, 239, 233, 0)); }
.rl-head h1 { font-weight: 600; font-size: 26px; letter-spacing: -0.02em; }
.round-white { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(30, 20, 10, 0.12); transition: transform 0.12s var(--ease); }
.round-white:active { transform: scale(0.92); }
.round-white svg { width: 22px; height: 22px; fill: none; stroke: var(--paper-ink); stroke-width: 1.6; stroke-linecap: round; }
.rl-list { padding: 0 0 calc(var(--sb) + 120px); }
/* pilhas em leque de ponta a ponta (referência dos álbuns): 4 cartões, o último borrado com "+N" */
.roll { position: relative; display: block; width: 100%; padding: 14px 0 34px; text-align: center; transition: transform 0.2s var(--spring); }
.roll.rev:active { transform: scale(0.985); }
.stack { position: relative; height: calc(min(372px, 94vw) * 0.36 * 4 / 3 + 22px); margin: 0 auto 14px; width: min(372px, 94%); }
.card {
  position: absolute; top: 6px; left: 32%; width: 36%; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden;
  background: #ddd8cf center / cover no-repeat; box-shadow: 0 12px 28px rgba(30, 20, 10, 0.16), 0 0 0 2.5px #fff;
  transform-origin: 50% 92%; will-change: transform;
}
.card.mais-card { background: #e9e4db; }
.card .mais-img { position: absolute; inset: -14px; background: center / cover no-repeat; filter: blur(14px) saturate(1.2); transform: scale(1.1); }
.card .mais { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; font-weight: 300; font-size: 32px; letter-spacing: -0.02em; color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.25); background: rgba(255, 255, 255, 0.22); }
.rl-av { position: absolute; z-index: 8; left: -2px; top: -6px; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(30, 20, 10, 0.2); background: #ccc; }
.rl-av canvas { width: 100%; height: 100%; display: block; }
.card.latente { background: linear-gradient(160deg, #3a332b, #1b1814); }
.card.vazio { background: #e9e4db; box-shadow: 0 0 0 1.5px rgba(23, 20, 15, 0.1); }
.stack .timer { position: absolute; z-index: 9; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: grid; justify-items: center; gap: 7px; font-size: 30px; pointer-events: none; }
.stack .timer small { font: 700 9px/1 var(--mono); letter-spacing: 0.18em; color: var(--paper-mut); }
.roll h2 { font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
.roll p { margin-top: 5px; font-size: 12px; color: var(--paper-mut); }
.roll .acao { margin-top: 12px; height: 38px; padding: 0 16px; border-radius: 99px; background: var(--paper-ink); color: var(--paper); font-weight: 600; font-size: 13px; }
.rl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 0 3px calc(var(--sb) + 110px); }
.rl-grid button { aspect-ratio: 3 / 4; background: #ddd center / cover no-repeat; border-radius: 4px; }
.rl-grid h3 { grid-column: 1 / -1; padding: 18px 12px 8px; font-weight: 600; font-size: 15px; text-align: left; }
.vazio-msg { padding: 70px 32px; text-align: center; color: var(--paper-mut); line-height: 1.5; font-size: 15px; }
.vazio-msg b { display: block; color: var(--paper-ink); font-size: 19px; margin-bottom: 6px; }
.view-toggle {
  position: absolute; z-index: 30; right: 16px; bottom: calc(var(--sb) + 38px); display: flex; gap: 4px; padding: 5px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.8); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 8px 24px rgba(30, 20, 10, 0.14);
}
.view-toggle button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--paper-ink); transition: background 0.25s, color 0.25s; }
.view-toggle button[aria-checked="true"] { background: var(--paper-ink); color: #fff; }
.view-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

/* ---------- CH 03 estúdio ---------- */
.ch-estudio { background: #0d0c0b; }
.es-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y proximity; overscroll-behavior: contain; padding: calc(var(--st) + 8px) 8px calc(var(--sb) + 40px); display: grid; gap: 8px; align-content: start; }
.es-head { padding: 6px 12px 6px; display: flex; justify-content: space-between; align-items: center; }
.es-head h1 { font-weight: 700; font-size: 30px; letter-spacing: -0.025em; font-stretch: 112%; }
.es-card { position: relative; height: calc(100dvh - var(--st) - var(--sb) - 120px); min-height: 440px; max-height: 760px; border-radius: var(--r); overflow: hidden; scroll-snap-align: center; background: #1a1714; }
.es-card .frosted { --f0: 44%; --f1: 72%; }
.es-card .f-tint { background: linear-gradient(180deg, transparent 38%, rgba(10, 9, 8, 0.3) 62%, rgba(10, 9, 8, 0.58) 100%); }
.es-card .f-img, .es-card .f-blur { top: -7%; height: 114%; left: -6%; width: 112%; }
.es-card .f-img { will-change: transform; }
.es-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 20px 22px; display: grid; gap: 10px; z-index: 3; }
.es-body .kick { font: 700 10px/1 var(--mono); letter-spacing: 0.18em; color: var(--mut); }
.es-body h2 { font-weight: 700; font-size: clamp(30px, 9.8vw, 38px); line-height: 0.97; letter-spacing: -0.03em; font-stretch: 108%; }
.es-body p { font-size: 15px; line-height: 1.4; color: var(--mut); max-width: 32ch; }
.duo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; margin-top: 6px; }
.duo .pill { min-width: 0; padding: 0 12px; white-space: normal; text-align: center; line-height: 1.1; }

/* ---------- telas sobrepostas ---------- */
.ov { position: absolute; inset: 0; z-index: 50; background: #050505; overflow: hidden; }
.ov.entra { animation: entra 0.5s var(--spring); }
@keyframes entra { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
.ov-vw.entra .vw-cap { animation: capsula 0.6s var(--spring); }
@keyframes capsula { from { transform: scale(0.86); opacity: 0.4; } }
.ov-top { position: absolute; z-index: 20; top: calc(var(--st) + 10px); left: 14px; right: 14px; display: flex; align-items: center; gap: 10px; }
.ov-top .grow { flex: 1 1 auto; min-width: 0; }
.ov-title { display: grid; gap: 2px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4); }
.ov-title b { font-weight: 650; font-size: 16px; }
.ov-title small { font-size: 12px; color: var(--mut); }
.counter { font-weight: 250; font-size: 30px; letter-spacing: -0.02em; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4); white-space: nowrap; }
.counter small { font-size: 17px; color: var(--mut); }
.bar3 { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; padding: 0 16px; }
.bar3 h2 { text-align: center; font-weight: 600; font-size: 15px; }
.bar3 .glass-btn { width: 46px; height: 46px; }
.ok-btn { background: var(--ink); color: #111; }

/* visualizador (referência do visualizador escuro): foto em cápsula no centro, vizinhas espiando dos lados,
   contador grande no topo e botão redondo de destaque embaixo */
.ov-vw { background: #050505; }
.vw-amb { position: absolute; inset: -15%; width: 130%; height: 130%; object-fit: cover; filter: blur(46px) saturate(1.5) brightness(0.3); opacity: 0; transition: opacity 0.6s var(--spring); pointer-events: none; }
.vw-amb.on { opacity: 1; }
.vw-top { gap: 12px; }
.vw-av { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); transition: transform 0.15s var(--spring); }
.vw-av:active { transform: scale(0.92); }
.vw-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }
.vw-av svg { position: relative; width: 20px; height: 20px; margin: 12px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.counter sup { font-size: 13px; font-weight: 400; color: var(--mut); vertical-align: 14px; margin-left: 2px; }
.acc-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--acc); color: #160c03; box-shadow: 0 0 18px rgba(255, 120, 30, 0.35); transition: transform 0.15s var(--spring); }
.acc-btn:active { transform: scale(0.9); }
.acc-btn svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; }
.vw-track {
  position: absolute; left: 0; right: 0; top: calc(var(--st) + 70px); bottom: calc(var(--sb) + 186px);
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 14%; scrollbar-width: none; overscroll-behavior: contain;
}
.vw-track::-webkit-scrollbar { display: none; }
.vw-card { position: relative; flex: 0 0 100%; height: 100%; display: grid; place-items: center; scroll-snap-align: center; scroll-snap-stop: always; }
.vw-cap { position: relative; width: 100%; height: 100%; max-height: calc(72vw * 1.62); border-radius: 999px; overflow: hidden; background: #161412; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); will-change: transform, opacity; transform-origin: 50% 50%; }
.vw-cap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vw-cap::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); pointer-events: none; }
.vw-cap .vw-img { opacity: 0; transition: opacity 0.35s; }
.vw-cap .vw-img.ok { opacity: 1; }
.vw-bottom { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; padding: 0 18px calc(var(--sb) + 22px); display: grid; gap: 22px; }
.vw-meta-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.vw-mini { width: 30px; height: 46px; border-radius: 99px; overflow: hidden; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.35); background: #222; }
.vw-mini canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.vw-meta { display: grid; gap: 3px; justify-items: center; text-align: center; min-width: 0; }
.vw-meta b { font-weight: 600; font-size: 15px; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.vw-meta span { font-size: 12px; color: var(--mut); }
.vw-sw { display: flex; width: 30px; flex-wrap: wrap; gap: 3px; justify-content: center; }
.vw-sw i { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.vw-acts { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.vw-act { justify-self: center; display: grid; gap: 6px; justify-items: center; min-width: 64px; min-height: 52px; color: var(--ink); transition: transform 0.15s var(--spring); }
.vw-act:active { transform: scale(0.92); }
.vw-act svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vw-act small { font-size: 11.5px; color: var(--mut); }
.vw-main { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #160c03; box-shadow: 0 0 0 6px rgba(255, 138, 42, 0.16), 0 12px 34px rgba(255, 110, 20, 0.35); transition: transform 0.15s var(--spring); }
.vw-main:active { transform: scale(0.92); }
.vw-main svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.heart[aria-pressed="true"] svg { fill: var(--acc); stroke: var(--acc); }
.heart.pop svg { animation: pop 0.4s var(--ease); }
@keyframes pop { 40% { transform: scale(1.35); } }

/* editor (galeria e estilo de fotógrafo) */
.ed-amb { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(38px) saturate(1.4) brightness(0.6); }
.ed-photo { position: absolute; left: 0; top: 0; width: 100%; }
.ed-photo #edCanvas { position: relative; display: block; width: 100%; height: 100%; }
.ed-photo .ed-res { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s; }
.ed-blur { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: blur(20px) saturate(1.35) brightness(0.9); transform: scale(1.08); -webkit-mask-image: linear-gradient(180deg, transparent 62%, #000 90%); mask-image: linear-gradient(180deg, transparent 62%, #000 90%); }
.ed-deck { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; padding: 0 0 calc(var(--sb) + 14px); display: grid; gap: 11px; }
.ed-note { text-align: center; font: 400 10.5px/1.3 var(--mono); color: var(--dim); padding: 0 24px; }
.ed-side { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 14px; }
.ed-side .glass-btn { width: 38px; height: 38px; }
.ed-side .glass-btn svg { width: 17px; height: 17px; }
.ed-busy { position: absolute; inset: 0; z-index: 25; display: grid; place-items: center; background: rgba(5, 5, 5, 0.3); overflow: hidden; }
.ed-busy::before { content: ''; position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(180deg, transparent, rgba(255, 160, 80, 0.18), transparent); animation: varre 1.6s linear infinite; }
@keyframes varre { to { top: 100%; } }
.ed-busy p { position: relative; font: 700 11px/1 var(--mono); letter-spacing: 0.16em; padding: 8px 14px; border-radius: 99px; background: rgba(0, 0, 0, 0.45); }
.compare-tag { position: absolute; z-index: 22; top: calc(var(--st) + 70px); left: 50%; transform: translateX(-50%); padding: 6px 12px; border-radius: 99px; background: rgba(0, 0, 0, 0.5); font: 700 10px/1 var(--mono); letter-spacing: 0.14em; }

/* modelos */
.md-amb { position: absolute; inset: -12%; width: 124%; height: 124%; filter: blur(40px) saturate(1.3) brightness(0.45); }
.md-prev { position: absolute; left: 0; right: 0; top: calc(var(--st) + 64px); bottom: calc(var(--sb) + 300px); display: flex; align-items: center; justify-content: center; padding: 0 28px; }
.md-prev canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; min-height: 0; border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55); }
.md-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 18px 2px; scrollbar-width: none; overscroll-behavior-x: contain; }
.md-row::-webkit-scrollbar { display: none; }
.md-item { position: relative; flex: 0 0 auto; display: grid; gap: 6px; justify-items: center; }
.md-item canvas { width: 54px; height: 96px; border-radius: 9px; background: #222; transition: box-shadow 0.2s; }
.md-row.fmt45 .md-item canvas { width: 64px; height: 80px; }
.md-item[aria-checked="true"] canvas { box-shadow: 0 0 0 2px #050505, 0 0 0 4px var(--ink); }
.md-item small { font-size: 10.5px; color: var(--mut); }
.md-item .sw-lock { right: 3px; top: 3px; bottom: auto; }
.md-fotos { display: flex; gap: 6px; overflow-x: auto; padding: 2px 18px; scrollbar-width: none; overscroll-behavior-x: contain; }
.md-fotos::-webkit-scrollbar { display: none; }
.md-fotos button { position: relative; flex: 0 0 auto; width: 46px; height: 62px; border-radius: 9px; background: #222 center / cover no-repeat; opacity: 0.45; transition: opacity 0.2s; }
.md-fotos button.on { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.md-fotos .num { position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--acc); color: #111; font: 700 9px/16px var(--mono); text-align: center; }
.md-hint { text-align: center; font: 400 10.5px/1.3 var(--mono); color: var(--dim); padding: 0 20px; }

/* boas-vindas: cartões em tela cheia */
.ob-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.ob-track::-webkit-scrollbar { display: none; }
.ob-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
/* cartão recuado com cantos grandes, foto que derrete em vidro fosco (referência das boas-vindas) */
.ob-slide .frosted { --f0: 40%; --f1: 66%; inset: 6px; border-radius: var(--r); }
.ob-slide .f-img, .ob-slide .f-blur { top: -4%; left: -8%; width: 116%; height: 108%; }
.ob-body { position: absolute; z-index: 5; left: 6px; right: 6px; bottom: 6px; padding: 0 22px calc(var(--sb) + 22px); display: grid; gap: 12px; }
.ob-body .kick { font: 700 10px/1 var(--mono); letter-spacing: 0.2em; color: var(--mut); }
.ob-body h1 { font-weight: 700; font-size: clamp(34px, 11.2vw, 44px); line-height: 0.96; letter-spacing: -0.03em; font-stretch: 108%; }
.ob-body p { font-size: 16px; line-height: 1.45; color: var(--mut); max-width: 30ch; }
.ob-dots { display: flex; gap: 6px; margin-top: 2px; }
.ob-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--ink); opacity: 0.3; transition: opacity 0.2s, width 0.3s var(--ease); }
.ob-dots i.on { opacity: 1; width: 18px; }
.ob-note { font-size: 11.5px; color: var(--dim); line-height: 1.4; }

/* ---------- folhas ---------- */
.sheet { position: absolute; inset: 0; z-index: 70; }
.scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity 0.3s; }
.sheet.open .scrim { opacity: 1; }
.panel {
  position: absolute; left: 8px; right: 8px; bottom: calc(var(--sb) + 8px); max-height: calc(100% - var(--st) - 24px); overflow-y: auto; overscroll-behavior: contain;
  border-radius: 28px; padding: 10px 18px 20px; transform: translateY(115%); transition: transform 0.5s var(--spring);
  background: rgba(30, 28, 26, 0.72); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.18), 0 20px 60px rgba(0, 0, 0, 0.5);
}
.sheet.open .panel { transform: none; }
.grab { width: 38px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); margin: 2px auto 14px; }
.panel h2 { font-weight: 700; font-size: 26px; letter-spacing: -0.02em; margin-bottom: 10px; font-stretch: 108%; }
.row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 6px 2px; border-bottom: 0.5px solid var(--line); font-size: 16px; text-align: left; }
.row-v { color: var(--mut); font-size: 14px; }
.row-lbl { font: 700 10px/1 var(--mono); letter-spacing: 0.16em; color: var(--dim); margin: 16px 0 4px; }
.ver { margin-top: 14px; text-align: center; font: 400 10.5px/1 var(--mono); color: var(--dim); }
.sw { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 99px; background: rgba(255, 255, 255, 0.2); position: relative; transition: background 0.2s; margin: 0; flex: 0 0 auto; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.25s var(--ease); }
.sw:checked { background: var(--acc); }
.sw:checked::after { transform: translateX(20px); }
.seg2 { display: flex; gap: 4px; padding: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); }
.seg2 button { height: 30px; padding: 0 12px; border-radius: 99px; font: 400 12px/1 var(--mono); color: var(--mut); }
.seg2 button[aria-checked="true"] { background: var(--ink); color: #111; }

/* assinatura em tela cheia com fosco */
.pw { position: absolute; inset: 0; z-index: 72; background: #0b0a09; overflow: hidden; }
.pw-bg { position: absolute; inset: -6% -10% auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; transform: rotate(-5deg); transform-origin: 50% 30%; }
.pw-bg canvas { width: 100%; aspect-ratio: 3 / 4; border-radius: 12px; display: block; }
.pw-frost { position: absolute; inset: 0; -webkit-backdrop-filter: blur(26px) saturate(1.4); backdrop-filter: blur(26px) saturate(1.4); background: linear-gradient(180deg, rgba(11, 10, 9, 0), rgba(11, 10, 9, 0.4)); -webkit-mask-image: linear-gradient(180deg, transparent 16%, #000 42%); mask-image: linear-gradient(180deg, transparent 16%, #000 42%); }
.pw-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 20px calc(var(--sb) + 14px); display: grid; gap: 10px; max-height: 84%; overflow-y: auto; overscroll-behavior: contain; }
.pw-body h2 { font-weight: 700; font-size: clamp(30px, 9.8vw, 38px); line-height: 0.98; letter-spacing: -0.03em; font-stretch: 108%; }
.pw-body .sub { color: var(--mut); font-size: 15px; line-height: 1.4; }
.pw-list { margin: 2px 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; }
.pw-list li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); margin-right: 10px; vertical-align: 2px; }
.plans { display: grid; gap: 8px; }
.plan { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 20px; text-align: left; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); transition: box-shadow 0.2s, background 0.2s; }
.plan[aria-checked="true"] { background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 2px var(--ink); }
.plan b { display: block; font-size: 16px; }
.plan small { color: var(--mut); font-size: 12.5px; }
.plan .pr { text-align: right; font-weight: 650; white-space: nowrap; }
.plan .pr small { display: block; font-weight: 400; }
.pw-legal { font-size: 11px; line-height: 1.4; color: var(--dim); }
.pw-teste { font: 700 10px/1.3 var(--mono); letter-spacing: 0.12em; color: var(--acc); text-align: center; }
.pw-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.pw-links button { font-size: 12.5px; color: var(--mut); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.pw-x { position: absolute; z-index: 3; top: calc(var(--st) + 10px); right: 14px; }

/* consentimento e detalhes da foto */
.consent p { color: var(--mut); line-height: 1.5; font-size: 15px; margin-bottom: 10px; }
.consent .pill { width: 100%; margin-top: 8px; }
.det-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; margin: 6px 0 16px; }
.det-grid small { display: block; font: 700 9.5px/1 var(--mono); letter-spacing: 0.16em; color: var(--dim); margin-bottom: 5px; }
.det-grid b { font: 500 14.5px/1.2 var(--sans); overflow-wrap: break-word; }
.det-acts { display: grid; gap: 8px; }
.danger { color: #ff8f7a; }

.toast {
  position: absolute; z-index: 90; left: 50%; top: calc(var(--st) + 64px); transform: translate(-50%, -12px); width: max-content; max-width: calc(100% - 48px);
  padding: 11px 16px; border-radius: 99px; font-size: 14px; text-align: center; opacity: 0; pointer-events: none;
  background: rgba(30, 28, 26, 0.8); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.2);
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (hover: hover) and (pointer: fine) {
  .glass-btn:hover { background: var(--glass-2); }
  .plan:hover { background: rgba(255, 255, 255, 0.14); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media (min-width: 700px) {
  .tube { left: 50%; right: auto; width: 430px; margin-left: -215px; top: 14px; bottom: 14px; }
}
