/* source: /styles.css */
@font-face {
  font-family: "Golos";
  src: url("/fonts/GolosText-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f2ec;
  --card: #fffdf8;
  --ink: #171715;
  --muted: #77736c;
  --line: #d8d3ca;
  --line-strong: #aaa49a;
  --accent: #ff5c4d;
  --accent-dark: #e7473b;
  --yes: #171715;
  --shadow: 0 18px 60px rgba(23, 23, 21, .08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { min-height: 100%; background: var(--paper); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Golos", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  text-rendering: optimizeLegibility;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(255, 92, 77, .28); outline-offset: 2px; }

.app {
  width: min(100%, 560px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
.topbar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand, .mini-home {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-weight: 760;
  letter-spacing: -.04em;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; }
.brand-mark { width: 22px; height: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; transform: rotate(-4deg); }
.brand-mark i { display: block; background: var(--ink); border-radius: 2px; }
.brand-mark i:last-child { background: var(--accent); }
.privacy-chip {
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.privacy-chip span { color: var(--accent); font-size: 9px; }

.screen { display: none; flex: 1; flex-direction: column; animation: enter .24s ease both; }
.screen.is-active { display: flex; }
@keyframes enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.hero, .section-head { padding: clamp(44px, 9svh, 92px) 0 28px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  max-width: 500px;
  font-size: clamp(42px, 11vw, 68px);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 760;
}
.lead {
  margin: 18px 0 0;
  max-width: 480px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.01em;
}

.pack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pack-card {
  min-height: 150px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.pack-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 10px 32px rgba(23,23,21,.05); }
.pack-card:active { transform: scale(.98); }
.pack-card .pack-number { color: var(--muted); font-size: 12px; font-weight: 650; }
.pack-card strong { display: block; font-size: 21px; line-height: 1.12; letter-spacing: -.035em; }
.pack-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }

.own-card {
  margin-top: 10px;
  width: 100%;
  padding: 17px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background: transparent;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}
.own-plus { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: white; display: grid; place-items: center; font-size: 20px; }
.own-card strong { display: block; font-size: 16px; }
.own-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.arrow { color: var(--muted); font-size: 20px; }
.trust-line { margin-top: auto; padding: 28px 0 2px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.trust-line i { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

.back-button, .text-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
}
.back-button { align-self: flex-start; margin-top: 26px; }
.section-head { padding-top: 36px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.field em { color: var(--muted); font-style: normal; font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  padding: 15px 16px;
  outline: none;
  resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field textarea { min-height: 190px; line-height: 1.55; }
.field small { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }

.primary-button, .secondary-button {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 720;
  border: 1px solid var(--ink);
  transition: transform .14s ease, opacity .14s ease, background .14s ease;
}
.primary-button { background: var(--ink); color: white; }
.primary-button:hover { background: #2a2a27; }
.secondary-button { background: transparent; color: var(--ink); }
.secondary-button:hover { background: rgba(23,23,21,.035); }
.primary-button:active, .secondary-button:active { transform: scale(.985); }
.primary-button:disabled { opacity: .28; cursor: default; }

.share-center, .result-center { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 30px 0 50px; text-align: center; align-items: center; }
.share-center h1, .result-center h1 { font-size: clamp(40px, 10vw, 60px); }
.share-center .lead, .result-center .lead { text-align: center; }
.share-center .primary-button { margin-top: 30px; }
.share-center .secondary-button { margin-top: 9px; }
.room-ready, .waiting-visual { width: 180px; display: flex; align-items: center; justify-content: center; margin: 0 0 35px; }
.room-ready span, .waiting-visual span { flex: 0 0 54px; width: 54px; height: 54px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-weight: 760; background: var(--card); }
.room-ready span:first-child, .done-person { background: var(--ink) !important; color: white; }
.room-ready i, .waiting-visual i { height: 1px; flex: 1; background: var(--line-strong); }
.status-card {
  width: 100%;
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  background: rgba(255,253,248,.5);
}
.status-dot { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(255,92,77,.12); }
.status-card strong, .status-card small { display: block; }
.status-card strong { font-size: 13px; }
.status-card small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.status-card.is-ready .status-dot { background: var(--ink); box-shadow: 0 0 0 5px rgba(23,23,21,.1); }
.text-button { margin-top: 22px; color: var(--ink); }

.vote-screen { min-height: calc(100svh - 86px); }
.vote-head { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.mini-home { font-size: 15px; }
.private-note { color: var(--muted); font-size: 11px; }
.progress-row { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; margin-top: 32px; font-size: 13px; }
.progress-row span:first-child { font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.progress-row span:last-child { color: var(--muted); white-space: nowrap; }
.progress-track { margin-top: 8px; height: 3px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-track i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s ease; }
.card-stage { flex: 1; min-height: 330px; padding: 30px 0 20px; display: grid; place-items: center; perspective: 1000px; }
.choice-card {
  position: relative;
  width: 100%;
  min-height: min(54svh, 440px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  user-select: none;
  touch-action: pan-y;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), opacity .18s ease;
}
.choice-card.dragging { transition: none; }
.choice-card.go-left { transform: translateX(-75%) rotate(-8deg); opacity: 0; }
.choice-card.go-right { transform: translateX(75%) rotate(8deg); opacity: 0; }
.card-kicker { position: absolute; top: 23px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.choice-card strong { max-width: 430px; font-size: clamp(34px, 9vw, 54px); line-height: 1.02; letter-spacing: -.055em; }
.swipe-note { position: absolute; bottom: 22px; color: #a8a39a; font-size: 11px; }
.vote-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 2px; }
.vote-button { height: 62px; border-radius: 18px; cursor: pointer; font-weight: 720; font-size: 17px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.vote-button span { font-size: 22px; font-weight: 450; }
.vote-button.no { border: 1px solid var(--line-strong); background: transparent; }
.vote-button.yes { border: 1px solid var(--ink); background: var(--ink); color: white; }
.vote-button:active { transform: scale(.98); }

.waiting-status { margin-top: 30px; }
.waiting-person { color: var(--muted); }
.result-screen { text-align: center; }
.result-center { padding-bottom: 46px; }
.match-burst { width: 78px; height: 78px; border-radius: 50%; background: var(--accent); color: white; display: grid; place-items: center; font-size: 34px; margin-bottom: 30px; animation: pop .38s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pop { from { transform: scale(.45) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.result-choice { width: 100%; margin-top: 28px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 24px 4px; font-size: clamp(30px, 8vw, 46px); line-height: 1.05; letter-spacing: -.045em; font-weight: 760; }
.result-copy { margin-top: 18px; }
.result-center .primary-button { margin-top: 34px; }
.error-symbol { width: 72px; height: 72px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-size: 34px; margin-bottom: 32px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
  z-index: 50;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  max-width: min(90vw, 420px);
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
  transition: opacity .18s ease, transform .18s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 380px) {
  .app { padding-left: 15px; padding-right: 15px; }
  .pack-card { min-height: 135px; padding: 14px; }
  .pack-card strong { font-size: 18px; }
  .privacy-chip { display: none; }
  .trust-line { gap: 6px; font-size: 10px; }
}
@media (min-width: 740px) {
  .app { padding-left: 24px; padding-right: 24px; }
  .pack-grid { gap: 12px; }
  .pack-card { min-height: 165px; }
}

/* source: /swipe-stack.css */
.card-stage {
  position: relative;
  overflow: visible;
  touch-action: pan-y;
}

.choice-card {
  grid-area: 1 / 1;
  will-change: transform, opacity;
}

.choice-card.is-front {
  z-index: 3;
}

.choice-card.stack-card {
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 12px 42px rgba(23,23,21,.055);
  transition: transform .24s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
}

.choice-card.stack-card.is-next {
  z-index: 2;
  transform: translateY(12px) scale(.965);
  opacity: .9;
}

.choice-card.stack-card.is-third {
  z-index: 1;
  transform: translateY(24px) scale(.93);
  opacity: .72;
}

.choice-card.stack-card .card-kicker,
.choice-card.stack-card .swipe-note {
  opacity: 0;
}

.choice-card.stack-card strong {
  opacity: .82;
}

.choice-card.no-transition,
.choice-card.no-transition ~ .choice-card {
  transition: none !important;
}

.choice-card.dragging {
  cursor: grabbing;
}

.choice-card.returning {
  animation: card-return .3s cubic-bezier(.16,.86,.2,1) both;
}

@keyframes card-return {
  from { transform: translateX(-44px) rotate(-2.2deg) scale(.985); opacity: .35; }
  to { transform: translateX(0) rotate(0) scale(1); opacity: 1; }
}

.swipe-feedback {
  position: absolute;
  top: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  line-height: 1;
  font-weight: 760;
  opacity: 0;
  transform: scale(.78);
  pointer-events: none;
  z-index: 5;
  transition: opacity .12s ease, transform .12s ease;
}

.swipe-feedback.no {
  left: 25px;
  border: 2px solid var(--ink);
  background: rgba(255,253,248,.9);
  color: var(--ink);
}

.swipe-feedback.yes {
  right: 25px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

.vote-actions-wrap {
  margin-top: 16px;
  padding-bottom: 2px;
}

.undo-vote {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px auto 0;
  padding: 8px 12px;
  min-height: 36px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, opacity .15s ease, transform .15s ease;
}

.undo-vote:not(:disabled):hover {
  background: rgba(23,23,21,.05);
  color: var(--ink);
}

.undo-vote:not(:disabled):active {
  transform: scale(.97);
}

.undo-vote:disabled {
  opacity: .28;
  cursor: default;
}

.vote-button.was-selected {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.result-more-matches {
  appearance: none;
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  min-height: 50px;
  padding: 0 16px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.result-match-list {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.result-match-list[hidden],
.result-more-matches[hidden] {
  display: none !important;
}

.result-match-item {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,253,248,.55);
  text-align: left;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
}

@media (max-width: 380px) {
  .swipe-feedback { width: 50px; height: 50px; font-size: 26px; }
  .swipe-feedback.no { left: 18px; }
  .swipe-feedback.yes { right: 18px; }
  .vote-actions-wrap { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .choice-card.returning { animation: none; }
}

/* source: /card-polish.css */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body,
button,
input,
textarea,
select {
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { text-transform: none !important; }

h1,
h2,
h3,
h4,
h5,
h6,
.brand,
.mini-home,
.pack-card strong,
.own-card strong,
.choice-card strong,
.result-choice,
.progress-row span:first-child {
  font-family: "Marmelad", "Onest", sans-serif;
  font-weight: 400 !important;
  letter-spacing: -.02em;
}

.auth-close { font-family: "Onest", sans-serif !important; }

/* Пополама replaces the old split rectangles. */
.brand-mark { display: none !important; }
.brand,
.mini-home {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: capitalize !important;
}
.brand::before,
.mini-home::before {
  content: "";
  display: block;
  flex: 0 0 .88em;
  width: .88em;
  height: .88em;
  border-radius: .3em;
  background-color: rgba(255,92,77,.09);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M10 41L10 27C10 23 14 20 20 20L28 20L31 12L30 5L35 10L40 4L40 14C44 15 45 18 44 21C43 24 39 25 35 23L33 22L33 41L29 41L29 30L20 30L20 41L16 41L16 27' fill='none' stroke='%23ff5c4d' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-size: 68%;
  background-repeat: no-repeat;
}

/* Header brand uses the same visual scale as the section pictograms/titles. */
.brand {
  gap: 9px;
  font-size: 23px;
  line-height: 1;
}
.brand::before {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

/* Home: every built-in section is a two-line title with a small orange pictogram. */
.pack-card .pack-number.pack-icon {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.pack-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pack-card strong {
  font-size: 23px;
  line-height: 1.02;
}
.pack-card strong span { display: block; }
.pack-card strong span + span { margin-top: 1px; }

/* A real, quiet footer replaces the old trust-line. */
.site-footer {
  margin-top: 30px;
  padding: 18px 0 4px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-family: "Onest", sans-serif;
  font-size: 12px;
  line-height: 1.25;
}
.footer-feedback {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.footer-feedback:hover,
.footer-feedback:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
}
.footer-copy {
  white-space: nowrap;
  text-align: right;
}

/* The crossed-out secondary headers are intentionally gone. */
.privacy-chip,
.vote-head { display: none !important; }
.vote-screen .progress-row { margin-top: 34px; }

/* A flying card must never enlarge the page. */
.app,
.vote-screen {
  overflow-x: hidden;
}
@supports (overflow: clip) {
  html,
  body,
  .app,
  .vote-screen { overflow-x: clip; }
}

.choice-card,
.choice-card.stack-card {
  background: var(--card) !important;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.choice-card.stack-card.is-next,
.choice-card.stack-card.is-third { opacity: 1 !important; }
.choice-card.stack-card strong { opacity: 1 !important; }
.choice-card.stack-card .card-kicker,
.choice-card.stack-card .swipe-note { opacity: 1 !important; }
.choice-card.is-front.dragging { opacity: 1 !important; }

/* The response sticker stays in one deterministic spot on a card and moves with the card. */
.swipe-feedback {
  top: calc(var(--feedback-y, 48) * 1%) !important;
  left: calc(var(--feedback-x, 50) * 1%) !important;
  right: auto !important;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border: 0 !important;
  border-radius: 50%;
  font-size: 39px;
  font-weight: 800;
  box-shadow: 0 9px 28px rgba(23,23,21,.16);
  z-index: 8;
  will-change: opacity, transform;
}
.swipe-feedback.no {
  background: var(--ink) !important;
  color: #fff !important;
}
.swipe-feedback.yes {
  background: var(--accent) !important;
  color: #fff !important;
}

.card-kicker,
.swipe-note {
  transition: none !important;
  letter-spacing: .02em;
}

.movie-original,
.movie-rating {
  display: block;
  max-width: 92%;
  color: var(--muted);
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: .01em;
  text-align: center;
}
.movie-original {
  margin-bottom: 0;
  font-size: clamp(12px, 3.1vw, 15px);
}
.movie-rating {
  margin-top: 14px;
  font-size: clamp(12px, 3vw, 14px);
}
.movie-original[hidden],
.movie-rating[hidden] { display: none !important; }
.choice-card.stack-card .movie-original,
.choice-card.stack-card .movie-rating { color: #8d887f; }

@media (max-width: 380px) {
  .brand { font-size: 20px; }
  .brand::before {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }
  .pack-card strong { font-size: 20px; }
  .site-footer { font-size: 11px; }
  .swipe-feedback {
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    font-size: 34px;
  }
}

/* source: /card-content.css */
.choice-emoji {
  display: block;
  margin: 0 0 12px;
  font-family: "Onest", sans-serif;
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1;
  filter: saturate(.92);
}

.choice-card strong {
  width: 100%;
  max-width: 430px;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.movie-thumbnail {
  position: relative;
  flex: 0 0 auto;
  width: 80px;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  margin: 2px 0 13px;
  overflow: hidden;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 92, 77, .045);
  pointer-events: none;
}

.movie-thumbnail-placeholder {
  width: 30px;
  height: 30px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23ff5c4d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='7' width='22' height='18' rx='3'/%3E%3Cpath d='m13 12 7 4-7 4z'/%3E%3C/svg%3E");
  opacity: .8;
}

.movie-thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.movie-thumbnail.has-image .movie-thumbnail-placeholder {
  visibility: hidden;
}

.choice-card strong[data-title-fit="long"] {
  font-size: clamp(29px, 7.4vw, 46px);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.choice-card strong[data-title-fit="xlong"] {
  font-size: clamp(25px, 6.5vw, 40px);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.swipe-note {
  display: flex !important;
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  color: transparent !important;
  font-size: 0 !important;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2377736c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6M9 12h10'/%3E%3C/svg%3E") left center / 18px 18px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2377736c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6M15 12H5'/%3E%3C/svg%3E") right center / 18px 18px no-repeat;
}

.swipe-note::before {
  content: "Можно свайпать";
  color: var(--muted);
  font-family: "Onest", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.choice-card.stack-card .swipe-note {
  opacity: 0 !important;
}

.vote-button span {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  font-family: "Onest", sans-serif;
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1;
}

.vote-button.yes {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: #fff !important;
}

.vote-button.yes:hover {
  border-color: var(--accent-dark) !important;
  background: var(--accent-dark) !important;
}

.movie-rating {
  white-space: nowrap;
}

.result-choice-emoji {
  display: inline-block;
  margin-right: .28em;
  font-family: "Onest", sans-serif;
  font-size: .82em;
  line-height: 1;
  vertical-align: .06em;
}

.result-match-emoji {
  flex: 0 0 auto;
  width: 1.7em;
  display: inline-block;
  margin-right: .45em;
  text-align: center;
}

.result-match-item {
  display: flex;
  align-items: center;
}

@media (max-width: 380px) {
  .choice-emoji { margin-bottom: 9px; }
  .swipe-note {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
  .movie-rating { white-space: normal; }
  .choice-card strong[data-title-fit="long"] { font-size: clamp(27px, 7.2vw, 42px); }
  .choice-card strong[data-title-fit="xlong"] { font-size: clamp(23px, 6.2vw, 36px); }
}

/* source: /kutno-food.css */
.choice-card > .kutno-recipe-link {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  margin-top: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted, #77736b);
  font-family: "Onest", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid rgba(23,23,21,.14);
  background: rgba(255,255,255,.72);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.choice-card > .kutno-recipe-link:active {
  transform: scale(.98);
}

.choice-card.stack-card > .kutno-recipe-link {
  opacity: 1;
}

.kutno-result-primary-link {
  display: inline-flex;
  margin: 13px auto 0;
}

.result-match-item .kutno-result-list-link {
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 12px;
  color: var(--muted, #77736b);
  font-family: "Onest", sans-serif;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

@media (max-width: 430px) {
  .choice-card > .kutno-recipe-link { margin-top: 13px; }
  .result-match-item { flex-wrap: wrap; }
  .result-match-item .kutno-result-list-link {
    width: 100%;
    margin: 7px 0 0 calc(1.7em + .45em);
    padding-left: 0;
  }
}

/* source: /session-v3.css */
html,
body {
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

@supports (overflow: clip) {
  html,
  body,
  .app,
  .vote-screen {
    overflow-x: clip;
  }
}

.vote-screen,
.card-stage {
  max-width: 100%;
}

.card-stage {
  contain: layout;
  isolation: isolate;
  overflow: visible;
}

.choice-card.is-front {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  transform-origin: 50% 75%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.choice-card.stack-card {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.swipe-feedback {
  transition: none;
  will-change: opacity, transform;
}

.leave-warning {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}

.leave-warning[hidden] { display: none !important; }
.leave-warning.is-open {
  opacity: 1;
  pointer-events: auto;
}

.leave-warning-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23,23,21,.28);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.leave-warning-dialog {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 28px 22px calc(20px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: var(--card, #fffdf8);
  border: 1px solid var(--line, #ded9cf);
  box-shadow: 0 -18px 60px rgba(23,23,21,.12);
  transform: translateY(24px);
  transition: transform .2s cubic-bezier(.2,.8,.2,1);
}

.leave-warning.is-open .leave-warning-dialog { transform: translateY(0); }
.leave-warning-dialog h2 {
  margin: 0 0 10px;
  font-family: "Marmelad", "Onest", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
}
.leave-warning-dialog p {
  margin: 0 0 22px;
  color: var(--muted);
  font: 400 15px/1.5 "Onest", sans-serif;
}
.leave-warning-actions {
  display: grid;
  gap: 10px;
}
.leave-warning-actions button {
  min-height: 54px;
  border-radius: 17px;
  font: 700 15px/1 "Onest", sans-serif;
  cursor: pointer;
}
.leave-warning-stay {
  border: 0;
  background: var(--ink);
  color: #fff;
}
.leave-warning-exit {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}

@media (min-width: 640px) {
  .leave-warning { align-items: center; padding: 24px; }
  .leave-warning-dialog { border-radius: 28px; padding: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .leave-warning,
  .leave-warning-dialog { transition: none; }
}

/* source: /kutno-deck.css */
/* Swipe deck follows the proven Kutno AM model: outgoing card leaves, existing cards promote. */
html,
body,
#app {
  overflow-x: hidden;
}

@supports (overflow: clip) {
  #app { overflow-x: clip; }
}

.vote-screen {
  overflow-x: visible;
}

.card-stage {
  position: relative;
  isolation: isolate;
  contain: none !important;
  overflow: visible !important;
  perspective: 1100px;
}

.choice-card {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  transform-origin: 50% 76%;
}

.choice-card.is-front {
  z-index: 3;
  opacity: 1 !important;
  transform: translate3d(0,0,0) rotate(0);
  transition: transform .36s cubic-bezier(.22,.75,.24,1);
  cursor: grab;
}

.choice-card.is-front.dragging {
  transition: none !important;
  cursor: grabbing;
}

.choice-card.stack-card {
  pointer-events: none;
  opacity: 1 !important;
  background: var(--card) !important;
  border-color: transparent !important;
  box-shadow: 0 13px 34px rgba(23,23,21,.065);
  transition: transform .38s cubic-bezier(.22,.75,.24,1), box-shadow .32s ease;
}

.choice-card.stack-card.is-next {
  z-index: 2;
  transform: translate3d(0,10px,0) scale(.985);
}

.choice-card.stack-card.is-third {
  z-index: 1;
  transform: translate3d(0,20px,0) scale(.97);
  box-shadow: 0 10px 24px rgba(23,23,21,.04);
}

.choice-card.stack-card.tracking {
  transition: none !important;
}

.choice-card.stack-card.is-next.promoting {
  transform: translate3d(0,0,0) scale(1);
  box-shadow: var(--shadow);
}

.choice-card.stack-card.is-third.revealing {
  transform: translate3d(0,10px,0) scale(.985);
  box-shadow: 0 13px 34px rgba(23,23,21,.065);
}

.choice-card.stack-card.is-third.entering {
  animation: popolam-deck-in .23s cubic-bezier(.22,.75,.24,1) both;
}

@keyframes popolam-deck-in {
  from { opacity: 0; transform: translate3d(0,25px,0) scale(.958); }
  to { opacity: 1; transform: translate3d(0,20px,0) scale(.97); }
}

.choice-card.is-front.fly-right {
  transform: translate3d(135%,0,0) rotate(12deg) !important;
}

.choice-card.is-front.fly-left {
  transform: translate3d(-135%,0,0) rotate(-12deg) !important;
}

/* Feedback is driven only by one CSS variable during the gesture. No JS repainting of the stamps. */
.swipe-feedback {
  top: calc(var(--feedback-y, 48) * 1%) !important;
  left: calc(var(--feedback-x, 50) * 1%) !important;
  right: auto !important;
  margin: 0 !important;
  opacity: 0 !important;
  transition: none !important;
  transform: translate(-50%, -50%) scale(.9) !important;
}

.choice-card.is-front[data-swipe-direction="right"] .swipe-feedback.yes,
.choice-card.is-front[data-swipe-direction="left"] .swipe-feedback.no {
  opacity: var(--swipe-progress, 0) !important;
  transform: translate(-50%, -50%) scale(calc(.9 + var(--swipe-progress, 0) * .1)) !important;
}

.choice-card.is-front[data-swipe-direction="right"] .swipe-feedback.no,
.choice-card.is-front[data-swipe-direction="left"] .swipe-feedback.yes {
  opacity: 0 !important;
}

/* The back cards are solid sheets. Their text is already there before promotion. */
.choice-card.stack-card .card-kicker,
.choice-card.stack-card .swipe-note,
.choice-card.stack-card strong,
.choice-card.stack-card .movie-original,
.choice-card.stack-card .movie-rating {
  opacity: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
  .choice-card.is-front,
  .choice-card.stack-card {
    transition-duration: .01ms !important;
  }
  .choice-card.stack-card.is-third.entering { animation: none; }
}

/* source: /auth.css */
.account-trigger{appearance:none;border:1px solid rgba(23,23,20,.14);background:rgba(255,255,255,.72);color:#171714;border-radius:999px;padding:8px 12px;font:600 13px/1 inherit;letter-spacing:-.01em;cursor:pointer;white-space:nowrap;max-width:118px;overflow:hidden;text-overflow:ellipsis;transition:background .15s ease,transform .15s ease}.account-trigger:active{transform:scale(.97)}.account-trigger.is-user{background:#171714;color:#fff;border-color:#171714}.auth-open{overflow:hidden}.auth-shell{position:fixed;inset:0;z-index:1000}.auth-shell[hidden]{display:none}.auth-backdrop{position:absolute;inset:0;background:rgba(18,18,16,.28);backdrop-filter:blur(8px);opacity:0;transition:opacity .18s ease}.auth-sheet{position:absolute;left:50%;top:50%;width:min(430px,calc(100% - 28px));max-height:min(720px,calc(100dvh - 32px));overflow:auto;transform:translate(-50%,-46%) scale(.985);opacity:0;background:#fbfaf7;border:1px solid rgba(23,23,20,.12);border-radius:28px;padding:30px;box-shadow:0 24px 80px rgba(25,23,18,.18);transition:transform .18s ease,opacity .18s ease;outline:none}.auth-shell.is-open .auth-backdrop{opacity:1}.auth-shell.is-open .auth-sheet{opacity:1;transform:translate(-50%,-50%) scale(1)}.auth-close{position:absolute;right:18px;top:18px;width:36px;height:36px;border:0;border-radius:50%;background:#efede7;color:#171714;font:400 24px/32px Arial,sans-serif;cursor:pointer}.auth-kicker{margin:0 0 8px;color:#77736b;font-size:12px;font-weight:650;letter-spacing:.06em;text-transform:lowercase}.auth-sheet h2{margin:0 44px 10px 0;font-size:30px;line-height:1.05;letter-spacing:-.04em}.auth-copy{margin:0 0 22px;color:#6d6961;font-size:14px;line-height:1.5}.auth-copy strong{color:#171714}.auth-providers{display:grid;gap:8px}.auth-provider{width:100%;display:flex;align-items:center;justify-content:center;gap:11px;border:1px solid #d9d5cc;background:#fff;color:#171714;border-radius:15px;padding:13px 15px;font:600 14px/1.2 inherit;cursor:pointer}.auth-provider:active,.auth-main:active{transform:scale(.985)}.auth-provider-mark{width:24px;height:24px;display:block;flex:0 0 24px;border-radius:0;background:transparent;font-size:0;overflow:hidden}.auth-provider-mark:before{content:"";display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:center;background-size:contain}.auth-provider-mark.google:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='%234285F4' d='M17.64 9.205c0-.638-.057-1.252-.164-1.841H9v3.482h4.844a4.14 4.14 0 0 1-1.797 2.715v2.258h2.909c1.702-1.567 2.684-3.874 2.684-6.614z'/%3E%3Cpath fill='%2334A853' d='M9 18c2.43 0 4.467-.806 5.956-2.181l-2.909-2.258c-.806.54-1.835.859-3.047.859-2.344 0-4.328-1.585-5.037-3.714H.956v2.332A9 9 0 0 0 9 18z'/%3E%3Cpath fill='%23FBBC05' d='M3.963 10.706A5.41 5.41 0 0 1 3.682 9c0-.592.102-1.167.281-1.706V4.962H.956A9 9 0 0 0 0 9c0 1.45.347 2.822.956 4.038l3.007-2.332z'/%3E%3Cpath fill='%23EA4335' d='M9 3.58c1.321 0 2.507.454 3.44 1.346l2.581-2.581C13.463.892 11.425 0 9 0A9 9 0 0 0 .956 4.962l3.007 2.332C4.672 5.165 6.656 3.58 9 3.58z'/%3E%3C/svg%3E")}.auth-provider-mark.yandex:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FC3F1D' d='M14.9 2H9.2C5.35 2 3 4.3 3 7.65c0 2.73 1.24 4.72 3.68 5.78L2.65 22h3.7l3.55-7.93h1.55V22h3.45V2Zm-3.45 9.28H9.58c-1.95 0-3.12-1.23-3.12-3.48 0-2.3 1.25-3.02 3.22-3.02h1.77v6.5Z'/%3E%3C/svg%3E")}.auth-provider-mark.telegram:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%2326A5E4'/%3E%3Cpath fill='white' d='M17.75 6.84 5.82 11.44c-.81.33-.81.79-.15.99l3.06.96 1.18 3.62c.15.42.08.59.52.59.34 0 .49-.16.68-.34l1.47-1.43 3.06 2.26c.56.31.97.15 1.11-.52l1.99-9.36c.2-.82-.31-1.19-.99-.87Zm-8.54 6.33 6.89-4.35c.34-.21.65-.1.39.13l-5.68 5.13-.22 2.29-1.38-3.2Z'/%3E%3C/svg%3E")}.auth-divider{display:flex;align-items:center;gap:10px;color:#99948b;font-size:11px;margin:18px 0}.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:#e4e0d8}.auth-form{display:grid;gap:13px}.auth-form label{display:grid;gap:7px;color:#59564f;font-size:12px;font-weight:600}.auth-form input{width:100%;border:1px solid #d9d5cc;background:#fff;color:#171714;border-radius:14px;padding:13px 14px;font:500 15px/1.2 inherit;outline:none;box-shadow:none}.auth-form input:focus{border-color:#77736b}.auth-main{width:100%;border:1px solid #171714;background:#171714;color:#fff;border-radius:15px;padding:14px 16px;font:650 15px/1.2 inherit;cursor:pointer;margin-top:3px;transition:transform .12s ease,opacity .12s ease}.auth-main:disabled,.auth-link:disabled{opacity:.48;cursor:default}.auth-switch,.auth-link{display:block;width:100%;border:0;background:transparent;color:#5f5b54;padding:12px 4px 2px;font:550 13px/1.3 inherit;cursor:pointer;text-align:center}.auth-link.danger{color:#9a4b43;margin-top:4px}.auth-message{min-height:17px;margin:0;color:#a4493e;font-size:12px;line-height:1.4;text-align:center}.auth-account-card{display:flex;align-items:center;gap:13px;background:#f0eee8;border-radius:17px;padding:13px;margin:2px 0 15px}.auth-avatar{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#171714;color:#fff;font-size:16px;font-weight:700}.auth-account-card div{min-width:0;display:grid;gap:2px}.auth-account-card strong,.auth-account-card small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.auth-account-card strong{font-size:14px}.auth-account-card small{font-size:12px;color:#77736b}.auth-mail-mark{width:50px;height:50px;display:grid;place-items:center;border-radius:16px;background:#171714;color:#fff;font-size:22px;margin-bottom:18px}@media(max-width:390px){.privacy-chip{display:none}}@media(max-width:560px){.account-trigger{padding:7px 10px;font-size:12px}.auth-sheet{left:0;right:0;top:auto;bottom:0;width:100%;max-height:88dvh;transform:translateY(16px);border-radius:28px 28px 0 0;padding:28px 20px calc(24px + env(safe-area-inset-bottom));border-left:0;border-right:0;border-bottom:0}.auth-shell.is-open .auth-sheet{transform:translateY(0)}.auth-sheet h2{font-size:28px}}@media(prefers-reduced-motion:reduce){.auth-backdrop,.auth-sheet,.account-trigger,.auth-main{transition:none}}

/* source: /room-ui.css */
.telegram-share-button{display:flex;align-items:center;justify-content:center;gap:10px}.telegram-share-button svg{width:22px;height:22px;flex:0 0 auto}.room-expiry-card{display:flex;align-items:flex-start;gap:13px;margin-top:18px;padding:18px 19px;border:1px solid rgba(23,23,20,.14);border-radius:20px;background:rgba(255,255,255,.44);text-align:left}.room-expiry-icon{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:50%;background:rgba(255,91,79,.12);font-size:17px;line-height:1}.room-expiry-card>span:last-child{display:grid;gap:4px;min-width:0}.room-expiry-card strong{font-size:14px;line-height:1.35}.room-expiry-card small{font-size:12px;line-height:1.45;color:#77736b}@media(max-width:560px){.room-expiry-card{padding:16px;border-radius:18px}}

/* source: /account-ui.css */
.guest-create-shell{position:fixed;inset:0;z-index:1100}.guest-create-shell[hidden]{display:none}.guest-create-backdrop{position:absolute;inset:0;background:rgba(18,18,16,.28);backdrop-filter:blur(8px);opacity:0;transition:opacity .18s ease}.guest-create-sheet{position:absolute;left:50%;top:50%;width:min(430px,calc(100% - 28px));transform:translate(-50%,-46%) scale(.985);opacity:0;background:#fbfaf7;border:1px solid rgba(23,23,20,.12);border-radius:28px;padding:30px;box-shadow:0 24px 80px rgba(25,23,18,.18);transition:transform .18s ease,opacity .18s ease}.guest-create-shell.is-open .guest-create-backdrop{opacity:1}.guest-create-shell.is-open .guest-create-sheet{opacity:1;transform:translate(-50%,-50%) scale(1)}.guest-create-close{position:absolute;right:18px;top:18px;width:36px;height:36px;border:0;border-radius:50%;background:#efede7;color:#171714;font:400 24px/32px Arial,sans-serif;cursor:pointer}.guest-create-sheet h2{margin:0 44px 10px 0;font-size:30px;line-height:1.05;letter-spacing:-.04em}.guest-create-form{display:grid;gap:12px}.guest-create-form label{display:grid;gap:7px;color:#59564f;font-size:12px;font-weight:600}.guest-create-form input{width:100%;border:1px solid #d9d5cc;background:#fff;color:#171714;border-radius:14px;padding:13px 14px;font:500 15px/1.2 inherit;outline:none}.guest-create-form input:focus{border-color:#77736b}.guest-create-divider{display:flex;align-items:center;gap:10px;margin:18px 0;color:#99948b;font-size:11px}.guest-create-divider:before,.guest-create-divider:after{content:"";height:1px;flex:1;background:#e4e0d8}.guest-telegram-login{width:100%;display:flex;align-items:center;gap:12px;border:1px solid #d9d5cc;background:#fff;color:#171714;border-radius:16px;padding:13px 15px;text-align:left;font:inherit;cursor:pointer}.guest-telegram-login svg{width:27px;height:27px;flex:0 0 auto}.guest-telegram-login svg path{fill:#229ed9}.guest-telegram-login span{display:grid;gap:3px}.guest-telegram-login strong{font-size:14px}.guest-telegram-login small{font-size:12px;color:#77736b;line-height:1.35}.profile-panel{display:grid;gap:12px;margin:4px 0 14px}.profile-loading{padding:16px;border-radius:16px;background:#f0eee8;color:#77736b;font-size:13px}.profile-block{border:1px solid #dedad2;border-radius:17px;padding:14px;background:#fff}.profile-block-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.profile-block-head strong{font-size:13px}.profile-block-head span{font-size:12px;color:#8a857d}.profile-block-head button{border:0;background:transparent;padding:0;color:#5f5b54;font:600 12px/1 inherit;cursor:pointer}.profile-name-row{font-size:15px;font-weight:650}.profile-name-form{display:grid;grid-template-columns:1fr auto;gap:8px}.profile-name-form[hidden]{display:none}.profile-name-form input{min-width:0;border:1px solid #d9d5cc;background:#fbfaf7;border-radius:12px;padding:10px 11px;font:500 14px/1.2 inherit;outline:none}.profile-name-form button{border:0;background:#171714;color:#fff;border-radius:12px;padding:10px 12px;font:650 12px/1 inherit;cursor:pointer}.profile-name-form .auth-message{grid-column:1/-1}.profile-notification-row{display:flex;align-items:center;gap:10px;padding:9px 0}.profile-notification-row+.profile-notification-row{border-top:1px solid #eeeae3}.profile-channel-dot{width:10px;height:10px;border-radius:50%;background:#ee5d50;flex:0 0 auto}.profile-notification-row.telegram .profile-channel-dot{background:#229ed9}.profile-notification-row div{display:grid;gap:2px;min-width:0;flex:1}.profile-notification-row strong{font-size:13px}.profile-notification-row small{font-size:11px;color:#77736b;overflow:hidden;text-overflow:ellipsis}.profile-telegram-connect{display:block;margin:9px 0;background:#229ed9;color:#fff;text-decoration:none;text-align:center;border-radius:12px;padding:11px 12px;font-size:12px;font-weight:650}.profile-muted{display:block;color:#8a857d;font-size:11px;line-height:1.4;margin-top:8px}.profile-rooms{display:grid;gap:8px}.profile-empty{margin:0;color:#77736b;font-size:12px;line-height:1.45}.profile-rooms-block{max-height:360px;overflow:auto}.profile-person-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center}.profile-person-row>div{display:grid;gap:3px}.profile-person-row strong{font-size:15px}.profile-person-row small{font-size:11px;color:#77736b}.profile-person-row>button{border:0;background:transparent;color:#68645d;font:600 12px/1 inherit;cursor:pointer}.profile-avatar,.profile-room-avatar{display:flex;align-items:center;justify-content:center;border-radius:50%;background:#171714;color:#fff;font-weight:700;overflow:hidden;flex:0 0 auto}.profile-avatar{width:48px;height:48px;font-size:18px}.profile-room-avatar{width:36px;height:36px;font-size:13px}.profile-avatar img,.profile-room-avatar img,.auth-avatar img{width:100%;height:100%;object-fit:cover;display:block}.auth-avatar.has-photo{padding:0;overflow:hidden}.profile-email-current{display:flex;gap:10px;align-items:center}.profile-email-current>span{width:34px;height:34px;border-radius:50%;background:#f5e2df;display:flex;align-items:center;justify-content:center}.profile-email-current>div{display:grid;gap:2px;min-width:0}.profile-email-current strong{font-size:13px;overflow:hidden;text-overflow:ellipsis}.profile-email-current small{font-size:11px;color:#77736b}.profile-email-methods{display:grid;gap:8px;margin-top:10px}.profile-email-methods button{display:flex;align-items:center;gap:10px;border:1px solid #dedad2;background:#fbfaf7;border-radius:13px;padding:10px 12px;color:#171714;font:600 12px/1 inherit;text-align:left;cursor:pointer}.profile-email-methods b{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#efede7}.profile-email-form{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:10px}.profile-email-form[hidden]{display:none}.profile-email-form input{min-width:0;border:1px solid #d9d5cc;border-radius:12px;padding:10px 11px;font:500 13px/1.2 inherit}.profile-email-form button{border:0;background:#171714;color:#fff;border-radius:12px;padding:10px 12px;font:650 12px/1 inherit}.profile-email-form .auth-message{grid-column:1/-1}.profile-switch{width:42px;height:24px;border:0;border-radius:999px;background:#d6d2ca;padding:3px;cursor:pointer;transition:background .15s ease}.profile-switch span{display:block;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:transform .15s ease}.profile-switch.is-on{background:#171714}.profile-switch.is-on span{transform:translateX(18px)}.profile-switch:disabled{opacity:.55}.profile-room{display:grid;grid-template-columns:minmax(0,1fr) auto;border-radius:14px;background:#f4f2ed;overflow:hidden}.profile-room.is-joined{background:#f8f6f1}.profile-room-main{display:grid!important;grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:center;padding:11px 12px!important;color:#171714;text-decoration:none;min-width:0}.profile-room-copy{display:grid;gap:2px;min-width:0}.profile-room-copy strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-room-copy small{font-size:11px;color:#77736b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-room-actions{display:flex;align-items:stretch;border-left:1px solid #e4e0d8}.profile-room-actions>a,.profile-room-actions>button{width:38px;border:0;background:transparent;color:#77736b;font:600 18px/1 inherit;display:flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer}.profile-room-actions>a.telegram{color:#229ed9}.profile-room-actions>button{border-left:1px solid #e4e0d8}.profile-room-actions>button:disabled{opacity:.4}.relationship-picker{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;background:#efede7;border-radius:15px;margin:0 0 16px}.relationship-picker button{border:0;border-radius:11px;padding:10px 8px;background:transparent;color:#77736b;font:650 12px/1 inherit;cursor:pointer}.relationship-picker button.is-active{background:#fff;color:#171714;box-shadow:0 1px 4px rgba(0,0,0,.08)}.relationship-picker-note{margin:-8px 0 16px;color:#77736b;font-size:11px;line-height:1.4}@media(max-width:560px){.guest-create-sheet{left:0;right:0;top:auto;bottom:0;width:100%;transform:translateY(16px);border-radius:28px 28px 0 0;padding:28px 20px calc(24px + env(safe-area-inset-bottom));border-left:0;border-right:0;border-bottom:0}.guest-create-shell.is-open .guest-create-sheet{transform:translateY(0)}.guest-create-sheet h2{font-size:28px}.profile-room-copy small{white-space:normal}}@media(prefers-reduced-motion:reduce){.guest-create-backdrop,.guest-create-sheet,.profile-switch,.profile-switch span{transition:none}}

/* source: /profile-polish.css */
.auth-account-card {
  position: relative;
}

.auth-account-card > div {
  flex: 1 1 auto;
}

.profile-account-edit {
  flex: 0 0 auto;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #68645d;
  padding: 8px 0 8px 10px;
  font: 600 12px/1 inherit;
  cursor: pointer;
}

.profile-account-edit[hidden] {
  display: none !important;
}

.profile-person-row {
  display: none !important;
}

.profile-person-block {
  border: 0;
  background: transparent;
  padding: 0 2px 2px;
}

.profile-person-block.is-idle {
  display: none !important;
}

.profile-person-block .profile-name-form {
  margin-top: -2px;
}

.profile-link-status {
  border-radius: 14px;
  padding: 11px 13px;
  font-size: 12px;
  line-height: 1.4;
}

.profile-link-status.success {
  background: #edf2e8;
  color: #3f5736;
}

.profile-link-status.error {
  background: #f7e9e6;
  color: #8e443c;
}

.profile-email-block[hidden] {
  display: none !important;
}

/* Keep linked-account buttons visually identical to the provider buttons in auth.css. */
.profile-email-methods button {
  appearance: none;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid #d9d5cc;
  border-radius: 15px;
  background: #fff;
  color: #171714;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.profile-email-methods button:active {
  transform: scale(.985);
}

.profile-email-methods button span {
  font: inherit;
}

.profile-email-methods b {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: block;
  position: relative;
  border-radius: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

.profile-email-methods b::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.profile-email-methods [data-link-provider="google"] b::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='%234285F4' d='M17.64 9.205c0-.638-.057-1.252-.164-1.841H9v3.482h4.844a4.14 4.14 0 0 1-1.797 2.715v2.258h2.909c1.702-1.567 2.684-3.874 2.684-6.614z'/%3E%3Cpath fill='%2334A853' d='M9 18c2.43 0 4.467-.806 5.956-2.181l-2.909-2.258c-.806.54-1.835.859-3.047.859-2.344 0-4.328-1.585-5.037-3.714H.956v2.332A9 9 0 0 0 9 18z'/%3E%3Cpath fill='%23FBBC05' d='M3.963 10.706A5.41 5.41 0 0 1 3.682 9c0-.592.102-1.167.281-1.706V4.962H.956A9 9 0 0 0 0 9c0 1.45.347 2.822.956 4.038l3.007-2.332z'/%3E%3Cpath fill='%23EA4335' d='M9 3.58c1.321 0 2.507.454 3.44 1.346l2.581-2.581C13.463.892 11.425 0 9 0A9 9 0 0 0 .956 4.962l3.007 2.332C4.672 5.165 6.656 3.58 9 3.58z'/%3E%3C/svg%3E");
}

.profile-email-methods [data-link-provider="yandex"] b::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FC3F1D' d='M14.9 2H9.2C5.35 2 3 4.3 3 7.65c0 2.73 1.24 4.72 3.68 5.78L2.65 22h3.7l3.55-7.93h1.55V22h3.45V2Zm-3.45 9.28H9.58c-1.95 0-3.12-1.23-3.12-3.48 0-2.3 1.25-3.02 3.22-3.02h1.77v6.5Z'/%3E%3C/svg%3E");
}

.profile-email-methods [data-open-custom-email] b::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2377736b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3 6.5h18v11H3zM4 7.5l8 6 8-6'/%3E%3C/svg%3E");
}

.profile-clear-rooms {
  width: 100%;
  margin-top: 12px;
  border: 1px solid #ead7d3;
  border-radius: 13px;
  background: #fff;
  color: #a94d45;
  padding: 11px 12px;
  font: 600 12px/1 inherit;
  cursor: pointer;
}

.profile-clear-rooms:disabled {
  opacity: .45;
  cursor: default;
}

html.profile-scroll-locked,
html.profile-scroll-locked body {
  overscroll-behavior: none;
}

@media (max-width: 560px) {
  .auth-shell.is-profile-shell {
    inset: 0;
    width: auto;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .auth-shell.is-profile-shell .auth-backdrop {
    inset: 0;
    z-index: 0;
  }

  .auth-shell.is-profile-shell::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: calc(100dvh - 1px);
    height: max(96px, calc(100lvh - 100dvh + env(safe-area-inset-bottom) + 64px));
    background: #fbfaf7;
    pointer-events: none;
    z-index: 1;
  }

  .auth-shell.is-profile-shell .auth-sheet {
    z-index: 2;
    top: 12dvh;
    bottom: 0;
    height: auto;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
    background: #fbfaf7;
  }
}

/* source: /semantic-headings.css */
.screen-title {
  margin: 0;
  max-width: 500px;
  font-size: clamp(42px, 11vw, 68px);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 760;
}

.share-center .screen-title,
.result-center .screen-title {
  font-size: clamp(40px, 10vw, 60px);
}

/* source: /brand-fonts.css */
@font-face {
  font-family: "Onest";
  src: url("/fonts/Onest-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("/fonts/Onest-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Marmelad";
  src: url("/fonts/Marmelad-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html,
body,
button,
input,
textarea,
select {
  font-synthesis: none;
}

body,
button,
input,
textarea,
select {
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  letter-spacing: normal !important;
}

/* source: /lighthouse-polish.css */
:root {
  /* Keep the same neutral/coral palette while meeting WCAG AA for normal text on the paper background. */
  --muted: #6f6a63;
  --accent-dark: #c2382f;
}
