/* EditEasy lab. Shared base + creator flow. The ballot section below is kept as is for ballot.html
   (ballot.css may take it over); store.css layers on the base classes here (.top .brand .h1 .sub .cta .note .foot). */
:root {
  --bg: #000; --s1: #0f0f12; --s2: #16161a; --line: #1f1f24; --line2: #2c2c30;
  --ink: #f5f5f7; --mute: #86868b; --soft: #c9c9ce; --cyan: #7ee8ff; --orange: #ffb060;
  --cyan-ink: #0a2834; --orange-ink: #2a1a08;
  --disp: "Chakra Petch", Inter, sans-serif; --ui: Inter, "Segoe UI", Helvetica, Arial, sans-serif; --he: Heebo, "Segoe UI", Arial, sans-serif;
  --spring: cubic-bezier(0.2, 1, 0.3, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: var(--ui); -webkit-font-smoothing: antialiased; color-scheme: dark; overscroll-behavior: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
input { font: inherit; }
img { max-width: 100%; }
.disp { font-family: var(--disp); text-transform: uppercase; letter-spacing: 0.04em; line-height: 0.92; font-weight: 700; }
.eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
.muted { color: var(--mute); }
.cyan { color: var(--cyan); }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- screens (creator) ---------- */
.screen { min-height: 100dvh; display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top)) 20px calc(22px + env(safe-area-inset-bottom)); max-width: 480px; margin: 0 auto; }
.top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 8px; }
.top .tools { display: flex; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.22em; font-weight: 800; color: var(--ink); text-decoration: none; }
.brand svg { display: block; }
.step { font-size: 12px; letter-spacing: 0.18em; font-weight: 700; color: var(--cyan); white-space: nowrap; }
.h1 { font-size: clamp(40px, 11vw, 56px); margin: 16px 0 8px; }
.h2 { font-size: clamp(32px, 9vw, 44px); margin: 14px 0 6px; }
.sub { color: var(--mute); font-size: 16px; line-height: 1.45; margin: 0 0 16px; }
.note { font-size: 13px; line-height: 1.5; color: var(--mute); }
.note b { color: var(--ink); }
.note a { color: var(--cyan); }
.spacer { flex: 1 1 auto; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1 1 0; min-width: 0; }

/* buttons */
.cta { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 68px; border-radius: 20px; background: var(--cyan); color: #000; font-family: var(--disp); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 21px; width: 100%; text-decoration: none; padding: 0 18px; text-align: center; transition: transform 0.16s var(--spring), opacity 0.2s; }
.cta:active { transform: scale(0.98); }
.cta[disabled] { opacity: 0.35; pointer-events: none; }
.cta.orange { background: var(--orange); }
.ghost { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border-radius: 18px; border: 1px solid var(--line2); color: var(--ink); font-weight: 600; font-size: 16px; width: 100%; text-decoration: none; padding: 0 14px; text-align: center; background: transparent; transition: transform 0.16s var(--spring); }
.ghost:active { transform: scale(0.98); }
.ghost[disabled] { opacity: 0.4; pointer-events: none; }
.ghost.small { width: auto; min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 14px; }
.ghost.on { border-color: var(--cyan); background: var(--cyan-ink); }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line2); color: var(--ink); font-weight: 700; font-size: 14px; white-space: nowrap; transition: transform 0.16s var(--spring); }
.chip:active { transform: scale(0.96); }
.chip.cyan { background: var(--cyan-ink); border-color: rgba(126,232,255,0.5); color: var(--cyan); }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(0,0,0,0.62); border: 1px solid rgba(255,255,255,0.18); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); backdrop-filter: blur(6px); white-space: nowrap; }
.pill.cyan { color: var(--cyan); border-color: rgba(126,232,255,0.5); }
.pill.orange { color: var(--orange); border-color: rgba(255,176,96,0.5); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(126,232,255,0.6); animation: dot 1.8s infinite; }
.langBtn { min-width: 44px; min-height: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--ink); padding: 0 10px; }
.err { color: var(--orange); font-size: 13px; line-height: 1.45; margin: 10px 0 0; min-height: 0; }
.err:empty { display: none; }

/* inputs */
.inp { width: 100%; min-height: 56px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line2); color: var(--ink); padding: 0 16px; font-size: 17px; -webkit-appearance: none; appearance: none; }
.inp:focus { outline: none; border-color: var(--cyan); }
.inp::placeholder { color: #5d5d63; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); font-weight: 700; }

/* switch row */
.switchRow { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; padding: 8px 16px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); width: 100%; text-align: start; }
.switchRow .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.switchRow .tx b { font-size: 16px; font-weight: 700; }
.switchRow .tx span { font-size: 13px; color: var(--mute); }
.switch { position: relative; flex: 0 0 auto; width: 52px; height: 32px; border-radius: 16px; background: var(--line2); transition: background 0.2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); transition: transform 0.22s var(--spring); }
.switchRow[aria-checked="true"] .switch { background: var(--cyan); }
.switchRow[aria-checked="true"] .switch::after { transform: translateX(20px); }
html[dir="rtl"] .switch::after { left: auto; right: 3px; }
html[dir="rtl"] .switchRow[aria-checked="true"] .switch::after { transform: translateX(-20px); }

/* ---------- hero ---------- */
.heroStage { position: relative; width: 100%; aspect-ratio: 9 / 12; border-radius: 26px; overflow: hidden; background: #0b0b0d; margin: 12px 0 14px; isolation: isolate; }
.heroStage .stage { position: absolute; inset: 0; }
.heroStage .fade { position: absolute; left: 0; right: 0; bottom: 0; height: 58%; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55) 42%, rgba(0,0,0,0.94)); pointer-events: none; }
.heroStage .topline { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.heroStage .copy { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.heroStage .h1 { margin: 0; font-size: clamp(36px, 10.4vw, 52px); text-shadow: 0 2px 18px rgba(0,0,0,0.6); }
.heroStage .sub { margin: 0; color: var(--soft); font-size: 15px; }
.freeLine { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--mute); font-weight: 600; margin: 2px 0 0; text-align: center; }
.freeLine b { color: var(--ink); }

.liveStrip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: var(--s1); border: 1px solid var(--line); margin: 0 0 14px; width: 100%; text-align: start; transition: transform 0.16s var(--spring); }
.liveStrip:active { transform: scale(0.985); }
.liveStrip .th { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 14px; background: var(--s2); display: grid; place-items: center; overflow: hidden; }
.liveStrip .th img { max-width: 82%; max-height: 82%; object-fit: contain; }
.liveStrip .tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.liveStrip .pct { font-family: var(--disp); text-transform: uppercase; font-size: 22px; line-height: 1; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.liveStrip .pct.yes { color: var(--orange); } .liveStrip .pct.no { color: var(--cyan); }
.liveStrip .ln { font-size: 12px; color: var(--mute); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.liveStrip .badges { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }

/* ---------- photo step ---------- */
.board { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 26px; overflow: hidden; background: radial-gradient(ellipse at 50% 78%, rgba(255,255,255,0.08), transparent 42%), #0b0b0d; display: flex; align-items: center; justify-content: center; }
.board .neon { position: absolute; left: 16%; right: 16%; bottom: 8%; height: 28%; background: radial-gradient(ellipse at 50% 50%, rgba(0,210,255,0.62) 0%, rgba(126,232,255,0.22) 38%, transparent 72%); filter: blur(10px); animation: pulse 2.6s ease-in-out infinite; }
.board img { position: relative; max-width: 72%; max-height: 74%; filter: drop-shadow(0 26px 30px rgba(0,0,0,0.65)); opacity: 0; transform: translateY(-6%) scale(1.04); transition: transform 0.7s var(--spring), opacity 0.3s; }
.board img.in { opacity: 1; transform: none; }
.board .lens { width: 92px; height: 92px; border-radius: 50%; border: 5px solid var(--ink); display: grid; place-items: center; }
.board .lens i { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); }
.board .cutting { position: absolute; left: 16px; right: 16px; bottom: 16px; text-align: center; font-size: 13px; color: var(--mute); font-weight: 600; }
.skel { position: absolute; inset: 0; display: none; overflow: hidden; }
.board.busy .skel { display: block; }
.board.busy .neon, .board.busy .lens { visibility: hidden; }
.skel::before { content: ""; position: absolute; left: 24%; right: 24%; top: 22%; bottom: 28%; border-radius: 42% 42% 30% 30% / 48% 48% 26% 26%; background: var(--s2); }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 32%, rgba(255,255,255,0.07) 50%, transparent 68%); transform: translateX(-100%); animation: shimmer 1.4s infinite; }
.board .retake { position: absolute; top: 12px; right: 12px; }
html[dir="rtl"] .board .retake { right: auto; left: 12px; }
@keyframes pulse { 0%, 100% { opacity: 0.72; } 50% { opacity: 1; } }
@keyframes shimmer { to { transform: translateX(100%); } }
.demos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.demos button { aspect-ratio: 1 / 1; border-radius: 16px; background: var(--s1); border: 1px solid var(--line); display: grid; place-items: center; padding: 10px; transition: transform 0.16s var(--spring); }
.demos button:active { transform: scale(0.95); }
.demos button img { max-width: 100%; max-height: 100%; }
.demos button.on { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(126,232,255,0.2); }
.replyBar { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; }
.replyBar .rc { align-self: flex-start; }
.replyBar p { margin: 0; font-size: 14px; color: var(--soft); line-height: 1.4; }

/* ---------- question step ---------- */
.qs { display: flex; flex-direction: column; gap: 10px; }
.q { min-height: 64px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); text-align: start; padding: 0 18px; font-family: var(--disp); font-weight: 700; text-transform: uppercase; font-size: 21px; letter-spacing: 0.04em; color: #a1a1a6; display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: transform 0.16s var(--spring); }
.q:active { transform: scale(0.985); }
.q small { font-family: var(--ui); text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--mute); font-weight: 600; white-space: nowrap; }
.q.on { color: var(--ink); border-color: var(--cyan); background: var(--cyan-ink); }
.own { display: none; flex-direction: column; gap: 10px; margin-top: 10px; }
.own.show { display: flex; }

/* ---------- room step ---------- */
.preview { position: relative; width: 100%; aspect-ratio: 9 / 13; border-radius: 24px; overflow: hidden; background: #0b0b0d; margin-bottom: 12px; isolation: isolate; }
.preview .stage { position: absolute; inset: 0; }
.preview .roomTag { position: absolute; left: 12px; top: 12px; }
.preview .who { position: absolute; left: 14px; right: 14px; bottom: 14px; font-size: clamp(26px, 7.5vw, 36px); text-shadow: 0 2px 16px rgba(0,0,0,0.7); pointer-events: none; }
.rooms { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px 12px; padding: 4px 20px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rooms::-webkit-scrollbar { display: none; }
.rooms button { position: relative; flex: 0 0 29%; aspect-ratio: 9 / 12; scroll-snap-align: start; border-radius: 18px; overflow: hidden; border: 2px solid transparent; background: #0b0b0d; transition: transform 0.16s var(--spring); }
.rooms button:active { transform: scale(0.97); }
.rooms button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rooms button .nm { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 6px 8px; border-radius: 999px; background: rgba(0,0,0,0.62); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rooms button .bd { position: absolute; left: 8px; top: 8px; right: 8px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.rooms button .lock { width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,0.62); display: grid; place-items: center; }
.rooms button .lock svg { display: block; }
.rooms button.on { border-color: var(--cyan); }
.rooms button.locked img { filter: saturate(0.6) brightness(0.8); }
.filmBar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); margin-bottom: 12px; }
.filmBar p { margin: 0; font-size: 13px; color: var(--soft); line-height: 1.4; }
.offer { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 20px; background: var(--s1); border: 1px solid rgba(126,232,255,0.35); margin: 12px 0 0; }
.offer .oh { font-family: var(--disp); text-transform: uppercase; font-size: 22px; letter-spacing: 0.04em; }
.offer .ol { font-size: 14px; color: var(--soft); line-height: 1.45; }
.offer .op { font-family: var(--disp); font-size: 30px; color: var(--cyan); }
.storeBox { display: none; flex-direction: column; gap: 10px; margin-top: 10px; }
.storeBox.show { display: flex; }

/* ---------- sent: the command center ---------- */
.sentStage { position: relative; width: 100%; aspect-ratio: 9 / 13; border-radius: 26px; overflow: hidden; background: #0b0b0d; isolation: isolate; }
.sentStage .stage { position: absolute; inset: 0; }
.sentStage .fade { position: absolute; left: 0; right: 0; bottom: 0; height: 56%; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.94)); pointer-events: none; }
.sentStage .tags { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.tally { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.tally .big { font-size: clamp(30px, 8.6vw, 40px); text-shadow: 0 2px 16px rgba(0,0,0,0.6); }
.tally .bar { height: 14px; border-radius: 999px; overflow: hidden; display: flex; background: rgba(255,255,255,0.14); }
.tally .bar i { display: block; height: 100%; background: var(--orange); transition: width 0.6s ease; }
.tally .bar b { display: block; height: 100%; flex: 1 1 auto; background: var(--cyan); }
.tally .lbl { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; }
.tally .lbl span:first-child { color: var(--orange); } .tally .lbl span:last-child { color: var(--cyan); }
.ladder { margin-top: 14px; }
.ladder .segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ladder .segs i { display: block; height: 6px; border-radius: 3px; background: var(--line); transition: background 0.4s; }
.ladder .segs i.on { background: var(--cyan); }
.ladder .lbls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.ladder .lbls span { font-size: 11px; color: var(--mute); font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ladder .lbls span:nth-child(2) { text-align: center; } .ladder .lbls span:last-child { text-align: end; }
.ladder .lbls span.on { color: var(--ink); }
.ladder .cap { font-size: 13px; color: var(--soft); margin-top: 8px; font-weight: 600; }
.money { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--orange-ink); border: 1px solid rgba(255,176,96,0.5); width: 100%; text-align: start; margin-top: 14px; transition: transform 0.16s var(--spring); }
.money:active { transform: scale(0.985); }
.money .tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.money .tx b { font-family: var(--disp); text-transform: uppercase; font-size: 18px; letter-spacing: 0.04em; }
.money .tx span { font-size: 13px; color: var(--soft); }
.money .go { flex: 0 0 auto; color: var(--orange); font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.pingBar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 18px; background: var(--cyan-ink); border: 1px solid rgba(126,232,255,0.4); margin-top: 12px; }
.pingBar span { font-size: 14px; font-weight: 600; color: var(--ink); }
html[dir="rtl"] .pingBar { padding: 10px 16px 10px 10px; }
.replies { font-size: 13px; color: var(--soft); font-weight: 600; margin-top: 10px; }
.mine { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.mine button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line); color: var(--ink); text-align: start; width: 100%; transition: transform 0.16s var(--spring); }
.mine button:active { transform: scale(0.985); }
.mine .th { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--s2); display: grid; place-items: center; overflow: hidden; }
.mine .th img { max-width: 80%; max-height: 80%; object-fit: contain; }
.mine .tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mine .tx b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine .tx span { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine .n { flex: 0 0 auto; color: var(--cyan); font-weight: 800; font-size: 13px; white-space: nowrap; }

/* ---------- sheets ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.62); opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 60; }
.backdrop.in { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 480px; background: var(--s1); border-radius: 26px 26px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform 0.34s var(--spring); z-index: 61; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -20px 60px rgba(0,0,0,0.5); }
.sheet.in { transform: none; }
.sheet .sh { font-family: var(--disp); text-transform: uppercase; font-size: clamp(26px, 7.4vw, 34px); letter-spacing: 0.04em; line-height: 0.95; }
.sheet .ss { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.45; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { min-height: 136px; border-radius: 22px; background: var(--s2); border: 1px solid var(--line2); padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; text-align: start; transition: transform 0.16s var(--spring); }
.tile:active { transform: scale(0.97); }
.tile.hi { border-color: var(--cyan); background: var(--cyan-ink); }
.tile .tn { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); font-weight: 800; }
.tile .tp { font-family: var(--disp); font-size: 40px; line-height: 1; letter-spacing: 0.02em; }
.tile.hi .tp { color: var(--cyan); }
.tile .tl { font-size: 13px; color: var(--soft); line-height: 1.4; }
.sheet .soon { padding: 16px; border-radius: 18px; background: var(--s2); color: var(--soft); font-size: 15px; line-height: 1.45; text-align: center; }

/* ---------- prices ---------- */
.tiers { display: flex; flex-direction: column; gap: 10px; }
.tier { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 20px; background: var(--s1); border: 1px solid var(--line); }
.tier.on { border-color: var(--cyan); background: var(--cyan-ink); }
.tier .price { font-size: 30px; min-width: 84px; color: var(--ink); }
.tier.on .price { color: var(--cyan); }
.tier .tl { font-size: 14px; line-height: 1.4; color: var(--soft); }
.foot { display: flex; flex-wrap: wrap; gap: 14px 18px; justify-content: center; align-items: center; margin-top: 22px; font-size: 12px; color: var(--mute); }
.foot a, .foot button { color: var(--mute); text-decoration: none; font-weight: 600; font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- the stage (video + object) ---------- */
.stage { position: relative; overflow: hidden; background: #000; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage .glow, .stage .contact, .stage .obj { position: absolute; pointer-events: none; will-change: transform, opacity; }
.stage .glow { background: radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--ink, #7ee8ff) 22%, transparent) 0%, color-mix(in srgb, var(--ink, #7ee8ff) 6%, transparent) 50%, transparent 100%); opacity: 0; }
.stage .contact { border-radius: 50%; background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0.12) 50%, transparent 100%); opacity: 0; }
.stage .obj { opacity: 0; transform-origin: 50% 100%; image-rendering: auto; }


/* ---------- ballot page (kept for ballot.html; ballot.css may take this over) ---------- */
.ballot { position: fixed; inset: 0; background: #000; }
.ballot .stage { position: absolute; inset: 0; }
.ballot .fade-top { position: absolute; left: 0; right: 0; top: 0; height: 26%; background: linear-gradient(180deg, rgba(0,0,0,0.75), transparent); pointer-events: none; }
.ballot .fade-bot { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.92)); pointer-events: none; opacity: 0; transition: opacity 0.6s ease; }
.ballot.asking .fade-bot, .ballot.done .fade-bot { opacity: 1; }
.hud { position: absolute; left: 0; right: 0; top: 0; padding: max(18px, env(safe-area-inset-top)) 20px 0; display: flex; justify-content: space-between; align-items: center; }
.who { position: absolute; left: 20px; top: calc(max(18px, env(safe-area-inset-top)) + 52px); font-size: clamp(40px, 11vw, 56px); opacity: 0; transform: translateY(8px); transition: all 0.6s ease 0.4s; }
.ballot.named .who { opacity: 1; transform: none; }
.progress { position: absolute; left: 20px; right: 20px; bottom: calc(18px + env(safe-area-inset-bottom)); height: 4px; border-radius: 4px; background: rgba(255,255,255,0.18); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: #f5f5f7; }
.tapHint { position: absolute; left: 0; right: 0; bottom: calc(36px + env(safe-area-inset-bottom)); text-align: center; font-size: 12px; letter-spacing: 0.18em; color: rgba(255,255,255,0.7); font-weight: 700; }
.ask { position: absolute; left: 20px; right: 20px; bottom: calc(26px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; transform: translateY(40px); opacity: 0; transition: all 0.55s cubic-bezier(0.2, 1, 0.3, 1); pointer-events: none; }
.ballot.asking .ask { transform: none; opacity: 1; pointer-events: auto; }
.ask .byline { font-size: 12px; letter-spacing: 0.18em; font-weight: 700; color: #a1a1a6; text-transform: uppercase; }
.ask .question { font-size: clamp(40px, 11.5vw, 60px); text-shadow: 0 2px 18px rgba(0,0,0,0.6); }
.votes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vote { min-height: 84px; border-radius: 22px; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: "Chakra Petch", Inter, sans-serif; font-weight: 700; font-size: 26px; text-transform: uppercase; letter-spacing: 0.04em; backdrop-filter: blur(6px); }
.vote.yes { background: linear-gradient(135deg, rgba(255,120,30,0.42), rgba(255,120,30,0.12)); border: 1px solid rgba(255,160,60,0.6); }
.vote.no { background: linear-gradient(225deg, rgba(80,220,255,0.40), rgba(80,220,255,0.10)); border: 1px solid rgba(126,232,255,0.6); }
.vote svg { display: block; }
.vote:active { transform: scale(0.97); }
.ring { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.16em; color: #a1a1a6; font-weight: 700; text-transform: uppercase; }
.ring svg { display: block; }
.result { position: absolute; left: 20px; right: 20px; bottom: calc(26px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1); pointer-events: none; }
.ballot.done .result { opacity: 1; transform: none; pointer-events: auto; }
.result .pct { font-size: clamp(120px, 34vw, 190px); line-height: 0.85; color: #7ee8ff; text-shadow: 0 0 40px rgba(126,232,255,0.35); }
.result .pct.yes { color: #ffb060; text-shadow: 0 0 40px rgba(255,176,96,0.35); }
.result .pct small { font-size: 0.45em; }
.result .line { font-size: clamp(26px, 7.5vw, 38px); }
.result .sub { margin: 0 0 6px; }
.result .row .ghost { flex: 1 1 0; min-height: 52px; font-size: 14px; }
.cornerBrand { position: absolute; right: 20px; bottom: calc(6px + env(safe-area-inset-bottom)); font-size: 11px; letter-spacing: 0.18em; font-weight: 800; color: #7ee8ff; opacity: 0.9; }
.center { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; }
.liveDot { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,0.55); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; position: absolute; left: 20px; top: calc(max(18px, env(safe-area-inset-top)) + 122px); opacity: 0; transition: opacity 0.4s; }
html[dir="rtl"] .liveDot { left: auto; right: 20px; }
.liveDot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7ee8ff; box-shadow: 0 0 0 0 rgba(126,232,255,0.6); animation: dot 1.8s infinite; }
@keyframes dot { 0% { box-shadow: 0 0 0 0 rgba(126,232,255,0.6); } 100% { box-shadow: 0 0 0 10px rgba(126,232,255,0); } }
.ballot.named .liveDot.show { opacity: 1; }
html[dir="rtl"] .who { left: auto; right: 20px; }
html[dir="rtl"] .cornerBrand { right: auto; left: 20px; }

/* ---------- toasts ---------- */
#toasts { position: fixed; left: 0; right: 0; top: calc(12px + env(safe-area-inset-top)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; z-index: 70; padding: 0 16px; }
.toast { padding: 12px 18px; border-radius: 999px; background: rgba(10,40,52,0.92); border: 1px solid rgba(126,232,255,0.5); color: #f5f5f7; font-weight: 700; font-size: 14px; transform: translateY(-20px); opacity: 0; transition: all 0.35s cubic-bezier(0.2, 1, 0.3, 1); backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); max-width: 100%; text-align: center; }
.toast.in { transform: none; opacity: 1; }
.toast.yes { background: rgba(70,34,8,0.92); border-color: rgba(255,176,96,0.6); }

/* ---------- language ---------- */
html[dir="rtl"] body, html[dir="rtl"] .inp, html[dir="rtl"] .note, html[dir="rtl"] .sub, html[dir="rtl"] .ghost, html[dir="rtl"] .chip, html[dir="rtl"] .tile .tl, html[dir="rtl"] .sheet .ss { font-family: var(--he); }
html[dir="rtl"] .q { text-align: right; }

/* ---------- thanks page ---------- */
.thanks { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 14px; max-width: 480px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 20px calc(22px + env(safe-area-inset-bottom)); }
.thanks .mark { width: 72px; height: 72px; border-radius: 50%; background: var(--cyan-ink); border: 1px solid rgba(126,232,255,0.5); display: grid; place-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media (min-width: 720px) {
  .screen { padding-top: 32px; }
}

/* ---------- film chrome (header, ownership plate, brand bar) ---------- */
.stage .hdr, .stage .plate, .stage .bar { position: absolute; pointer-events: none; box-sizing: border-box; text-align: center; }
.stage .hdr { display: flex; flex-direction: column; align-items: center; gap: 0.22em; opacity: 0; transform: translateY(-6px); transition: opacity 0.7s ease 0.25s, transform 0.7s ease 0.25s; }
.stage.landed .hdr, .stage.chromed:not(.landed) .hdr { opacity: 1; transform: none; }
.stage .hName { font-family: Inter, "SF Pro Display", -apple-system, sans-serif; font-weight: 900; text-transform: uppercase; font-size: var(--hName, 34px); color: #fff; line-height: 1; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0;
  text-shadow: 0 0 0.75em color-mix(in srgb, var(--ink, #7ee8ff) 45%, transparent), 0 0 0.08em rgba(0,0,0,0.95), 0 2px 0.12em rgba(0,0,0,0.9); }
.stage .hProd { font-family: Inter, "SF Pro Display", -apple-system, sans-serif; font-weight: 900; text-transform: uppercase; font-size: var(--hProd, 20px); color: #fff; line-height: 1.05; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0;
  text-shadow: 0 0 1.2em var(--ink, #7ee8ff), 0 0 0.5em rgba(255,255,255,0.6), 0 3px 0.8em rgba(0,0,0,0.9); animation: breathe 3.1s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { text-shadow: 0 0 1.2em var(--ink, #7ee8ff), 0 0 0.5em rgba(255,255,255,0.6), 0 3px 0.8em rgba(0,0,0,0.9); } 50% { text-shadow: 0 0 0.6em var(--ink, #7ee8ff), 0 0 0.5em rgba(255,255,255,0.6), 0 3px 0.8em rgba(0,0,0,0.9); } }
.stage .hProd:empty, .stage .hLine:empty { display: none; }
.stage .hLine { font-family: Inter, sans-serif; font-weight: 600; font-size: var(--hLine, 11px); color: rgba(255,255,255,0.85); letter-spacing: 0.02em; text-transform: uppercase; text-shadow: 0 0 0.5em rgba(255,255,255,0.4), 0 2px 0.9em rgba(0,0,0,0.7); }
.stage .plate { --r: 20%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25em; border-radius: 0.9em; background: linear-gradient(180deg, rgba(14,10,6,0.72), rgba(8,5,3,0.80)); border: 1px solid color-mix(in srgb, var(--ink, #7ee8ff) 55%, transparent); box-shadow: 0 0 22px color-mix(in srgb, var(--ink, #7ee8ff) 28%, transparent), inset 0 0 0 1px rgba(255,255,255,0.04); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.6s ease 0.5s; padding: 0 0.8em; }
.stage.landed .plate, .stage.chromed:not(.landed) .plate { opacity: 1; }
.stage .pName { font-family: Inter, "Segoe UI", sans-serif; font-weight: 900; text-transform: uppercase; font-size: var(--pName, 30px); color: #fff; letter-spacing: 0.05em; line-height: 1; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 0.5em rgba(255,255,255,0.35), 0 2px 0.1em rgba(0,0,0,0.9); }
.stage .pLine { font-size: var(--pLine, 12px); color: var(--ink, #7ee8ff); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.stage .bar { display: flex; align-items: center; justify-content: center; gap: 0.6em; border-radius: 999px; background: rgba(0,0,0,0.78); border: 1px solid color-mix(in srgb, var(--ink, #7ee8ff) 45%, transparent); font-family: Inter, "Segoe UI", sans-serif; font-weight: 800; font-size: var(--bText, 12px); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink, #7ee8ff); opacity: 0; transition: opacity 0.6s ease 0.7s; white-space: nowrap; overflow: hidden; padding: 0 1em; }
.stage.landed .bar, .stage.chromed:not(.landed) .bar { opacity: 1; }
.stage .bar .bLine { color: rgba(255,255,255,0.92); font-weight: 600; letter-spacing: 0.02em; text-transform: none; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.stage .bar .bBrand { flex: 0 0 auto; letter-spacing: 0.12em; }
.stage .bar .bLine::before { content: ""; display: inline-block; width: 0.35em; height: 0.35em; border-radius: 50%; background: var(--ink, #7ee8ff); margin: 0 0.6em 0.1em 0; }
.stage .hidden { display: none !important; }

/* ---------- painter sprites ---------- */
.stage .puff, .stage .mote, .stage .iris, .stage .flash { position: absolute; pointer-events: none; border-radius: 50%; opacity: 0; will-change: transform, opacity; }
.stage .puff { background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--ink, #7ee8ff) 50%, transparent) 0%, rgba(255,255,255,0.9) 30%, rgba(255,255,255,0.3) 65%, transparent 100%); filter: blur(2px); }
.stage .mote { background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.9) 0%, color-mix(in srgb, var(--ink, #7ee8ff) 60%, transparent) 40%, transparent 100%); }
.stage .iris { border: 2px solid rgba(255,255,255,0.9); box-shadow: 0 0 24px color-mix(in srgb, var(--ink, #7ee8ff) 70%, transparent); mix-blend-mode: screen; }
.stage .flash { background: radial-gradient(ellipse at 50% 50%, rgba(255,215,0,0.9) 0%, rgba(255,215,0,0.25) 45%, transparent 75%); mix-blend-mode: screen; }
.stage .obj { transform-origin: 50% 100%; }

/* V_A_FILE_IS_NEVER_LOST_SILENTLY — the made file, on screen, when the share sheet would not
   take it (see EE.showFile). Its own tap is the gesture that shares, so a browser that counts
   user activation strictly still lets it through; when even that is refused the picture is
   there to be saved by hand. */
.fileSheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,0.82); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.22s ease; }
.fileSheet.in { opacity: 1; }
.fileBox { display: flex; flex-direction: column; gap: 12px; width: min(420px, 100%); max-height: 100%; }
.fileMedia { display: block; width: 100%; max-height: 62vh; object-fit: contain; border-radius: 18px; background: #000; }
.fileHint { margin: 0; text-align: center; color: #a1a1a6; font-size: 13px; line-height: 1.45; }
.fileRow { display: flex; gap: 8px; }
.fileRow .cta { flex: 2 1 0; min-height: 52px; }
.fileRow .ghost { flex: 1 1 0; min-height: 52px; }
