@font-face {
  font-family: Manrope;
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-cyrillic-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-cyrillic-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Rubik;
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("../fonts/rubik-cyrillic-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Rubik;
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("../fonts/rubik-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Rubik;
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("../fonts/rubik-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Rubik;
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("../fonts/rubik-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Oswald;
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url("../fonts/oswald-cyrillic-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Oswald;
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url("../fonts/oswald-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Oswald;
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url("../fonts/oswald-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Oswald;
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url("../fonts/oswald-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/pt-sans-cyrillic-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/pt-sans-cyrillic-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/pt-sans-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/pt-sans-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/pt-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/pt-sans-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/pt-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/pt-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/pt-serif-cyrillic-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/pt-serif-cyrillic-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/pt-serif-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/pt-serif-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/pt-serif-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/pt-serif-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/pt-serif-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/pt-serif-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0b0620;
  --bg-2: #160b38;
  --card: rgba(24, 14, 58, 0.78);
  --card-solid: #1a0f3d;
  --line: rgba(167, 139, 250, 0.22);
  --text: #f5f3ff;
  --muted: #c4b5fd;
  --purple: #7c3aed;
  --purple-2: #a78bfa;
  --green: #22c55e;
  --green-2: #4ade80;
  --red: #f43f5e;
  --blue: #38bdf8;
  --teal: #2dd4bf;
  --yellow: #facc15;
  --pink: #fb7185;
  --orange: #fb923c;
  --violet: #c084fc;
  --shadow: 0 24px 80px rgba(12, 6, 40, 0.55);
  --radius: 22px;
  --topbar-h: 80px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(1200px 600px at 10% -10%, #3b1764 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #1e3a8a 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: Manrope, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
}

button, input, textarea, select {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.bg-glow {
  position: fixed;
  inset: auto -120px -160px auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  background: rgba(11, 6, 32, 0.86);
}

.topbar-start {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #fff;
  background: none;
  border: none;
  padding: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, #7c3aed, #4c1d95);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.45);
}

.brand-mark span {
  color: var(--green-2);
  font-weight: 800;
  font-size: 18px;
}

.top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.editor-wrap {
  width: min(1760px, calc(100% - 40px));
  max-width: 100%;
  min-width: 0;
}

.editor-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.editor-show {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-width: 0;
}

.editor-show > * {
  min-width: 0;
}

.editor-meta {
  position: relative;
  z-index: 40;
  padding: 14px 16px;
}

.editor-meta .form-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.editor-meta-row {
  display: grid;
  gap: 14px;
  align-items: end;
  min-width: 0;
}

.editor-meta-row-info {
  grid-template-columns: 10rem minmax(0, 1fr);
}

.editor-meta-row-info .field,
.editor-meta-row-fx .field {
  min-width: 0;
}

.editor-meta-row-fx {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
}

.editor-meta .field.pulse-inline {
  grid-column: auto;
}

.editor-meta .field-sm input[type="number"] {
  width: 100%;
  max-width: 5.6rem;
}

.editor-meta .field-sm input[type="date"] {
  width: 100%;
  max-width: 100%;
}

.editor-meta .field-enter select {
  min-width: 0;
  flex: 1;
}

.editor-questions {
  display: grid;
  gap: 16px;
}

.editor-filmstrip {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 2px 8px 8px 2px;
  min-width: 0;
  scrollbar-gutter: stable;
}

.film-item {
  display: grid;
  gap: 4px;
  width: 148px;
  flex: 0 0 auto;
  min-width: 0;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.film-item.is-on {
  border-color: var(--purple-2);
  background: rgba(124, 58, 237, 0.16);
}

.film-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #14081f;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 6px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  color: #eee7ff;
}

.film-item.is-on .film-thumb {
  border-color: rgba(167, 139, 250, 0.45);
}

.film-thumb-q {
  font-size: 11px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.film-thumb-start {
  font-size: 28px;
  letter-spacing: -0.06em;
}

.film-thumb-intro {
  letter-spacing: 0.06em;
}

.film-thumb-reveal {
  color: #4ade80;
  font-size: 22px;
}

.film-thumb-win {
  color: #fbbf24;
  letter-spacing: 0.04em;
}

.film-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  padding: 0 4px;
  overflow: visible;
  white-space: nowrap;
}

.film-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 6px;
  flex: 0 0 auto;
  width: min(420px, 78vw);
  min-width: 0;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.film-group-head {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  min-width: 0;
}

.film-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.film-group .film-item {
  width: auto;
}

.film-add {
  flex: 0 0 auto;
  align-self: center;
  white-space: nowrap;
}

.btn-tiny {
  padding: 4px 7px;
  font-size: 12px;
  line-height: 1;
  border-radius: 8px;
}

.editor-inspector {
  min-width: 0;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

.editor-inspector h3 {
  margin: 0;
  overflow-wrap: break-word;
}

.inspector-body {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  min-width: 0;
}

.inspector-body .form-grid {
  margin-top: 0;
  min-width: 0;
  grid-template-columns: 1fr;
}

.editor-inspector .field,
.editor-inspector .field label,
.editor-inspector .bg-upload {
  min-width: 0;
}

.editor-inspector .bg-upload {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.editor-inspector .bg-upload .qs-select {
  flex: 1 1 160px;
  width: auto;
  min-width: 0;
  height: auto;
  align-self: center;
}

.editor-inspector .bg-upload .btn {
  flex: 0 0 auto;
  align-self: center;
}

.editor-inspector .field label {
  white-space: normal;
  overflow-wrap: break-word;
}

.editor-inspector .answer-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.editor-inspector .qs-select,
.editor-inspector .qs-select-btn {
  min-width: 0;
  max-width: 100%;
}

.question-card.is-inspector {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.question-card.is-inspector .question-head {
  justify-content: flex-end;
  margin-bottom: 8px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 18px 0 36px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
}

.hero-card {
  background: linear-gradient(180deg, rgba(88, 28, 135, 0.55), rgba(15, 23, 42, 0.4));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.phone-preview {
  background: #120826;
  border-radius: 28px;
  padding: 16px 16px 20px;
  border: 1px solid rgba(255,255,255,0.08);
}

.phone-preview .mini-timer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}

.phone-preview .q {
  font-weight: 700;
  margin-bottom: 14px;
}

.mini-answers {
  display: grid;
  gap: 8px;
}

.mini-answers span {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
}

.letter {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  color: var(--letter-fg, #0b0620);
  flex-shrink: 0;
  flex: none;
}

.letter.a { background: var(--letter-a, var(--blue)); }
.letter.b { background: var(--letter-b, var(--teal)); }
.letter.c { background: var(--letter-c, var(--yellow)); }
.letter.d { background: var(--letter-d, var(--pink)); }
.letter.e { background: var(--letter-e, var(--violet)); }
.letter.f { background: var(--letter-f, var(--orange)); }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.btn-green {
  background: linear-gradient(180deg, #4ade80, #16a34a);
  color: #052e16;
}

.btn-purple {
  background: linear-gradient(180deg, #8b5cf6, #6d28d9);
  color: #fff;
}

.btn-teal {
  background: linear-gradient(180deg, #2dd4bf, #0f766e);
  color: #042f2e;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.16);
  color: #fecdd3;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 16px;
}

.section-title h2 {
  margin: 0;
  font-size: 24px;
}

.muted {
  color: var(--muted);
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 20px;
  color: inherit;
  box-shadow: var(--shadow);
}

.project-row:hover {
  border-color: var(--purple-2);
  filter: brightness(1.06);
}

.project-row-name {
  flex: 1;
  font-size: 18px;
  font-weight: 800;
}

.project-row .badge {
  margin-bottom: 0;
}

.display-qr {
  gap: 0;
  padding: 5vh 5vw;
}

.display-qr-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vh, 28px);
  align-self: stretch;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: visible;
  text-align: center;
}

.display-qr-logo .display-logo {
  width: min(100%, calc(22vw * var(--qr-logo, 1)));
  max-width: 100%;
  height: auto;
  max-height: min(88vh, calc(22vw * var(--qr-logo, 1)));
  object-fit: contain;
}

.display-qr-logo .display-logo.is-fallback {
  display: grid;
  place-items: center;
  width: min(100%, calc(22vw * var(--qr-logo, 1)));
  max-width: 100%;
  height: auto;
  max-height: min(88vh, calc(22vw * var(--qr-logo, 1)));
}

.display-qr-logo .display-logo.is-fallback .brand-mark {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: 88vh;
  container-type: size;
}

.display-qr-logo .display-logo.is-fallback .brand-mark span {
  font-size: 42cqw;
}

.display-qr .qr-box {
  margin: 0;
  cursor: default;
  width: min(calc(68% * var(--qr-code, 1)), calc(62vh * var(--qr-code, 1)));
  aspect-ratio: 1 / 1;
  height: auto;
  max-width: 92%;
  max-height: min(86vh, calc(72vh * var(--qr-code, 1)));
  padding: clamp(10px, 1.2vmin, 18px);
  border-radius: clamp(14px, 1.8vmin, 24px);
  box-sizing: border-box;
  align-self: center;
  justify-self: center;
  overflow: hidden;
}

.project-hub-login-qr {
  margin-top: 28px;
}

.display-qr .qr-box canvas,
.display-qr .qr-box img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

.display-qr-title {
  margin: 0;
  max-width: 92%;
  color: var(--qr-caption, var(--q-text, #fff));
  font-family: var(--quiz-font, inherit);
  font-size: calc(clamp(20px, 2.4vw, 42px) * var(--qr-caption-size, 1));
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.display-qr-title:empty {
  display: none;
}

.display-qr-logo:has(.display-qr-title) .display-logo,
.display-qr-logo:has(.display-qr-title) .display-logo.is-fallback {
  max-height: min(70vh, calc(20vw * var(--qr-logo, 1)));
}

.project-card, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.project-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.project-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.host-stats {
  margin-top: 18px;
  text-align: left;
}

.host-stats-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.host-stats-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.host-stats-note {
  font-size: 13px;
}

.host-stats-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.host-kpi {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

.host-kpi b {
  display: block;
  font-size: 24px;
  font-weight: 800;
}

.host-kpi span {
  color: var(--muted);
  font-size: 13px;
}

.host-stats-table-wrap {
  overflow: auto;
  max-height: min(52vh, 560px);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.host-stats-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.host-stats-table th,
.host-stats-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
}

.host-stats-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-extend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.account-extend select,
.account-extend input[type="datetime-local"] {
  min-width: 0;
  max-width: 180px;
}

.host-players-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #12061f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  padding: 11px 12px;
}

.host-players-table th.col-lastName { background: #c084fc; }
.host-players-table td.col-lastName { background: rgba(192, 132, 252, 0.16); color: #f3e8ff; }

.host-players-table th.col-firstName { background: #38bdf8; }
.host-players-table td.col-firstName { background: rgba(56, 189, 248, 0.16); color: #e0f2fe; }

.host-players-table th.col-phone { background: #4ade80; }
.host-players-table td.col-phone { background: rgba(74, 222, 128, 0.14); color: #dcfce7; }

.host-players-table th.col-email { background: #fb923c; }
.host-players-table td.col-email { background: rgba(251, 146, 60, 0.16); color: #ffedd5; }

.host-players-table th.col-sector { background: #facc15; }
.host-players-table td.col-sector { background: rgba(250, 204, 21, 0.16); color: #fef9c3; }

.host-players-table th.col-row { background: #2dd4bf; }
.host-players-table td.col-row { background: rgba(45, 212, 191, 0.16); color: #ccfbf1; }

.host-players-table th.col-seat { background: #fb7185; }
.host-players-table td.col-seat { background: rgba(251, 113, 133, 0.16); color: #ffe4e6; }

.host-players-table th.col-status { background: #a78bfa; }
.host-players-table td.col-status { background: rgba(167, 139, 250, 0.16); color: #ede9fe; }

.host-players-table th.col-score { background: #22c55e; }
.host-players-table td.col-score { background: rgba(34, 197, 94, 0.16); color: #dcfce7; }

.host-players-table thead th:first-child {
  border-top-left-radius: 15px;
}

.host-players-table thead th:last-child {
  border-top-right-radius: 15px;
}

.host-export {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.host-export-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-right: 2px;
}

.host-stats-device {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.host-stats-empty {
  margin: 8px 0 0;
}

.host-stats-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 860px) {
  .host-stats-kpis {
    grid-template-columns: 1fr;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.pulse-inline {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.field.pulse-inline label {
  flex: 0 0 auto;
  white-space: nowrap;
  margin: 0;
}

.field.pulse-inline input[type="range"] {
  flex: 1 1 auto;
  min-width: 120px;
  width: auto;
}

.field[hidden] {
  display: none !important;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text);
  font-size: 15px;
}

.check-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  flex: none;
}

.field input:not([type="checkbox"]):not([type="color"]):not([type="file"]):not([type="range"]),
.field textarea {
  background: rgba(8, 4, 22, 0.55);
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}

.field input:not([type="checkbox"]):not([type="color"]):not([type="file"]):not([type="range"]):focus,
.field textarea:focus,
.field select:focus,
.account-extend select:focus {
  border-color: var(--purple-2);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23c4b5fd' d='M1 1.4h10L6 6.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 38px;
  cursor: pointer;
}

.field select,
.account-extend select {
  background-color: rgba(8, 4, 22, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23c4b5fd' d='M1 1.4h10L6 6.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 14px;
  padding: 12px 38px 12px 14px;
  font-size: 15px;
  outline: none;
  cursor: pointer;
}

.account-extend select {
  padding: 10px 36px 10px 12px;
  min-height: 42px;
}

.color-swatch {
  display: inline-flex;
  width: 72px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--swatch, #888);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  vertical-align: middle;
}

.color-swatch:hover {
  filter: brightness(1.08);
}

.color-swatch input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  background: none;
}

.file-picker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  cursor: pointer;
  position: relative;
}

.file-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.file-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.file-picker:hover .file-picker-btn {
  background: rgba(167, 139, 250, 0.18);
  border-color: rgba(167, 139, 250, 0.45);
}

.file-picker-ico {
  width: 14px;
  height: 14px;
  flex: none;
}

.file-picker-name {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.qs-select {
  position: relative;
  width: 100%;
  min-width: 0;
  height: fit-content;
}

.qs-select.is-open {
  z-index: 50;
}

.account-extend .qs-select {
  width: auto;
  min-width: 168px;
  flex: 1 1 160px;
}

.bg-upload .qs-select {
  flex: 1 1 160px;
}

.qs-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.qs-select-btn {
  width: 100%;
  text-align: left;
  background-color: rgba(8, 4, 22, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23c4b5fd' d='M1 1.4h10L6 6.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 14px;
  padding: 12px 38px 12px 14px;
  font-size: 15px;
  font-weight: 600;
  outline: none;
}

.qs-select.is-open .qs-select-btn,
.qs-select-btn:focus {
  border-color: var(--purple-2);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.qs-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  background: #1a0f3d;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px;
  max-height: 260px;
  overflow: auto;
}

.qs-select-option {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #f5f3ff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
}

.qs-select-option:hover,
.qs-select-option.is-selected {
  background: rgba(124, 58, 237, 0.38);
  color: #fff;
}

.qs-modal-back {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 4, 22, 0.72);
}

.qs-modal {
  width: min(440px, 100%);
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 22px 18px;
}

.qs-modal h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.qs-modal p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.step {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}

.step.active {
  background: rgba(34, 197, 94, 0.18);
  color: var(--green-2);
}

.question-card {
  margin-bottom: 16px;
}

.question-card.is-inspector {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.question-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.badge {
  display: inline-block;
  width: fit-content;
  background: rgba(124, 58, 237, 0.3);
  color: #ddd6fe;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.answers-edit {
  display: grid;
  gap: 8px;
}

.answer-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.03);
}

.answer-edit-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.media-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.media-upload input[type="file"] {
  display: none;
}

.media-file {
  cursor: pointer;
}

.media-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.answer-row .media-thumb {
  width: 48px;
  height: 48px;
}

.answer-row.is-correct {
  border-color: rgba(74, 222, 128, 0.7);
  background: rgba(34, 197, 94, 0.16);
}

.answer-row input[type="text"] {
  width: 100%;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 15px;
  padding: 8px 4px;
  outline: none;
}

.correct-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--green-2);
  font-weight: 700;
  white-space: nowrap;
}

.answer-remove {
  width: 36px;
  min-width: 36px;
  padding: 8px 0;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
}

.answer-remove:hover:not(:disabled) {
  color: var(--red);
}

.timers-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.question-card.is-inspector .timers-row {
  grid-template-columns: 1fr;
}

.empty {
  color: var(--muted);
  padding: 28px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.play-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.play-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  padding: 16px 24px 8px;
  gap: 12px;
}

.play-header > :first-child {
  justify-self: start;
}

.play-header > :last-child {
  justify-self: end;
}

.play-header .btn {
  width: max-content;
  white-space: nowrap;
}

.play-header .center {
  text-align: center;
}

.play-title {
  font-weight: 800;
  font-size: 18px;
}

.play-sub {
  color: var(--muted);
  font-size: 13px;
}

.timer-wrap {
  padding: 8px 24px 0;
}

.timer-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.timer-bar > span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--green-2), var(--yellow), var(--pink));
  transition: transform 0.1s linear;
}

.timer-bar.reveal > span {
  background: linear-gradient(90deg, var(--purple-2), var(--blue));
}

.timer-cluster {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 18px 16px 8px;
}

.timer-badge {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--timer-bg, #7c3aed);
  color: var(--timer-text, #ffffff);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--timer-bg, #7c3aed) 42%, transparent);
}

.timer-badge.urgent {
  background: #e11d48;
  color: #fff;
  animation: timerUrgentPulse 0.7s ease-in-out infinite;
}

.timer-badge.urgent .ring-num,
.timer-badge.urgent .join-timer-num,
.join-timer.is-urgent .timer-badge .join-timer-num {
  color: #fff !important;
  opacity: 1;
}

.timer-badge.is-paused {
  background: var(--yellow);
  color: #1a1028;
}

.display-screen > .timer-cluster,
.theme-live-preview-stage .display-screen .timer-cluster {
  position: absolute;
  z-index: 5;
  padding: 0;
  margin: 0;
  pointer-events: none;
}

.display-screen .timer-cluster.is-circle,
.display-screen .timer-cluster:not(.is-tab):not(.is-ribbon) {
  top: clamp(40px, 5.2vh, 72px);
  right: 28px;
}

.display-screen .timer-cluster.is-tab {
  top: 12%;
  right: 0;
}

.display-screen .timer-cluster.is-ribbon {
  top: 0;
  right: 6%;
}

.display-screen .timer-badge.is-tab {
  width: clamp(70px, 6.4vw, 96px);
  height: clamp(168px, 22vh, 248px);
  border-radius: 28px 0 0 28px;
  box-shadow: -10px 12px 32px color-mix(in srgb, var(--timer-bg, #7c3aed) 42%, transparent);
}

.display-screen .timer-badge.is-tab .ring-num {
  font-size: clamp(32px, 3.6vw, 54px);
}

.display-screen .timer-badge.is-ribbon {
  width: clamp(112px, 11.5vw, 176px);
  height: clamp(86px, 10.5vh, 132px);
  border-radius: 0 0 36px 36px;
  box-shadow: 0 14px 32px color-mix(in srgb, var(--timer-bg, #7c3aed) 42%, transparent);
}

.display-screen .timer-badge.is-ribbon .ring-num {
  font-size: clamp(32px, 3.4vw, 52px);
}

.control-status .timer-cluster {
  position: static;
  padding: 0;
}

.control-status .timer-badge,
.control-status .timer-badge.is-tab,
.control-status .timer-badge.is-ribbon {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--timer-bg, #7c3aed) 42%, transparent);
}

.control-status .timer-badge .ring-num {
  font-size: 28px;
}

.timer-badge .ring-num {
  position: static;
  inset: auto;
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: inherit;
}

.timer-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.timer-label.urgent {
  color: var(--pink);
  animation: pulse 0.6s ease-in-out infinite;
}

.timer-label.is-paused {
  color: var(--yellow);
}

@keyframes pulse {
  50% { opacity: 0.55; transform: scale(1.04); }
}

@keyframes timerUrgentPulse {
  50% {
    transform: scale(1.07);
    box-shadow: 0 0 0 8px rgba(225, 29, 72, 0.3);
  }
}

.question-stage {
  width: min(900px, calc(100% - 32px));
  margin: 8px auto 24px;
}

.question-bubble {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px 24px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
  margin-bottom: 18px;
}

.answers-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.answer-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: var(--a-border, 2px solid rgba(255,255,255,0.08));
  background: rgba(18, 8, 46, 0.75);
  color: #fff;
  border-radius: 20px;
  padding: 16px 16px;
  font-size: 18px;
  font-weight: 700;
  min-height: 78px;
  height: 100%;
  min-width: 0;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.answer-btn .letter {
  flex-shrink: 0;
}

.answer-btn span:not(.answer-mark):not(.answer-count) {
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.25;
}

.answers-grid .answer-mark {
  flex: 0 0 auto;
  min-width: 3.2em;
  margin-left: 4px;
  text-align: right;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

@media (hover: hover) and (pointer: fine) {
  .answer-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.28);
  }
}

.answer-btn.is-correct {
  background: rgba(34, 197, 94, 0.22);
  border-color: var(--green-2);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15);
}

.answer-btn.is-wrong {
  background: rgba(244, 63, 94, 0.2);
  border-color: var(--red);
}

.answer-btn.is-dim {
  opacity: 0.38;
}

.answer-btn.is-picked:not(.is-correct):not(.is-wrong) {
  border-color: var(--purple-2);
}

.results {
  width: min(1080px, calc(100% - 32px));
  margin: 40px auto;
  text-align: center;
}

.score-num {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 8px 0;
}

.review {
  text-align: left;
  margin-top: 22px;
}

.review-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.ok { color: var(--green-2); font-weight: 800; }
.bad { color: var(--pink); font-weight: 800; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #1e103f;
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 14px;
  z-index: 20;
}

.control-screen {
  min-height: calc(100vh - 74px);
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.control-hint {
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 14px;
}

.control-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.control-question {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin: 8px 0 16px;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.control-question.has-media {
  display: grid;
  grid-template-columns: minmax(140px, 240px) minmax(0, 1fr);
  align-items: center;
  gap: 16px 20px;
}

.q-media {
  display: block;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 16px;
  margin: 0 auto;
}

.control-question.has-media .q-media {
  margin: 0;
  max-height: 180px;
  width: 100%;
}

.a-media {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

html:has(body.is-display),
html.is-display,
body.is-display {
  height: 100%;
  overflow: hidden;
  background: #0b0620;
}

body.is-display .bg-glow {
  display: none;
}

html.is-vmix,
body.is-vmix {
  background-color: #0b0620 !important;
}

html.is-vmix:not(.has-project-bg),
body.is-vmix:not(.has-project-bg) {
  background-image: none;
}

body.is-vmix.has-project-bg:not(.has-project-video) {
  background-image: var(--project-bg) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

html.is-vmix::after {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  width: 2px;
  height: 2px;
  pointer-events: none;
  z-index: 2147483646;
  animation: qsVmixAlive 1.2s linear infinite;
}

@keyframes qsVmixAlive {
  0%,
  100% {
    opacity: 0.02;
  }
  50% {
    opacity: 0.04;
  }
}

html.is-vmix .bg-glow,
body.is-vmix .bg-glow {
  display: none !important;
}

body.is-vmix .display-fs {
  display: none !important;
}

body.is-vmix .display-screen {
  padding-bottom: 16px;
}

body.is-display #app {
  display: block;
  height: 100%;
  min-height: 100%;
  z-index: 2;
}

.display-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

body.is-display > .display-bg-video {
  position: fixed;
  transform: translateZ(0);
  backface-visibility: hidden;
}

body.is-display > #display-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transform: none;
}

body.is-display.has-project-video::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  animation: qsBgAlive 2.8s linear infinite;
}

@keyframes qsBgAlive {
  0%,
  100% { opacity: 1; }
  50% { opacity: 0.999; }
}

.display-screen {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  padding: 16px 28px 64px;
  overflow: hidden;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.display-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: inherit;
  min-width: 0;
  min-height: 0;
  height: 100%;
  position: relative;
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.42s ease, visibility 0.42s ease;
}

.display-screen.is-intro .display-body {
  grid-template-rows: minmax(0, 1fr);
}

.display-screen.is-reveal {
  grid-template-rows: minmax(0, 1fr);
}

.display-top {
  position: absolute;
  top: clamp(40px, 5.2vh, 72px);
  left: 28px;
  right: 28px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 110px;
  pointer-events: none;
}

.display-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.display-logo {
  display: block;
  max-height: calc(clamp(52px, 7vw, 96px) * var(--slide-logo, 1));
  max-width: min(calc(320px * var(--slide-logo, 1)), 42vw);
  width: auto;
  height: auto;
  object-fit: contain;
}

.display-logo.is-fallback {
  display: flex;
  align-items: center;
}

.display-logo.is-fallback .brand-mark {
  width: calc(clamp(48px, 6vw, 80px) * var(--slide-logo, 1));
  height: calc(clamp(48px, 6vw, 80px) * var(--slide-logo, 1));
}

.display-logo.is-fallback .brand-mark span {
  font-size: calc(clamp(20px, 2.4vw, 32px) * var(--slide-logo, 1));
}

.display-screen.is-intro {
  grid-template-rows: minmax(0, 1fr);
}

.display-intro,
.display-countdown,
.display-go {
  display: grid;
  place-items: center;
  min-height: 0;
  font-size: clamp(42px, 8vw, 140px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-align: center;
  color: var(--q-text, #fff);
  font-family: var(--quiz-font, inherit);
  padding: 24px;
}

.display-countdown,
.display-go {
  color: var(--start-text, var(--q-text, #fff));
}

.display-intro {
  color: var(--intro-text, var(--q-text, #fff));
}

.display-countdown {
  font-size: clamp(180px, 38vw, 620px);
  letter-spacing: 0;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.display-go {
  font-size: clamp(56px, 12vw, 180px);
  letter-spacing: 0.08em;
}

.display-boot {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.42s ease, visibility 0.42s ease;
}

.display-screen.is-booting .display-boot {
  opacity: 1;
  visibility: visible;
}

.display-screen.is-booting .display-body {
  opacity: 0;
  visibility: hidden;
}

.display-screen.is-countdown .display-kicker,
.display-screen.is-go .display-kicker,
.display-screen.is-countdown .timer-cluster,
.display-screen.is-go .timer-cluster,
.display-screen.is-booting:not(.is-qintro) .timer-cluster,
.display-screen.is-qintro .timer-cluster {
  display: none !important;
}

.display-boot .display-countdown,
.display-boot .display-go,
.display-boot .display-intro {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92);
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.42s ease;
}

.display-boot .display-countdown.is-on,
.display-boot .display-go.is-on,
.display-boot .display-intro.is-on {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.count-pulse {
  display: inline-block;
  transform-origin: center center;
  animation: qsCountPulse 1.15s ease-in-out infinite;
}

.display-wipe {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}

.display-wipe-shutter,
.display-wipe-iris,
.display-wipe-diamonds,
.display-wipe-stars,
.display-wipe-balls,
.display-wipe-logo {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.display-wipe.is-shutter .display-wipe-shutter,
.display-wipe.is-iris .display-wipe-iris,
.display-wipe.is-diamonds .display-wipe-diamonds,
.display-wipe.is-stars .display-wipe-stars,
.display-wipe.is-balls .display-wipe-balls,
.display-wipe.is-logo .display-wipe-logo {
  opacity: 1;
}

body > .display-wipe {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.display-wipe-shutter i {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    var(--wipe-dir, to bottom),
    transparent 0%,
    transparent calc(100% - (110px * var(--wipe-weight, 1))),
    color-mix(in srgb, var(--wipe-fill, #a78bfa) 28%, transparent) calc(100% - (52px * var(--wipe-weight, 1))),
    var(--q-text, #fff) 100%
  );
  box-shadow: none;
  transform: scaleY(0);
}

.display-wipe-shutter i:first-child {
  top: 0;
  transform-origin: top;
  --wipe-dir: to bottom;
}

.display-wipe-shutter i:last-child {
  bottom: 0;
  transform-origin: bottom;
  --wipe-dir: to top;
}

.display-wipe-iris i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68vmin;
  aspect-ratio: 1;
  border-radius: 50%;
  border: calc(1.15vw * var(--wipe-weight, 1)) solid color-mix(in srgb, var(--q-text, #fff) 82%, var(--wipe-fill, #a78bfa));
  background: none;
  box-shadow: 0 0 calc(2.4vw * var(--wipe-weight, 1)) color-mix(in srgb, var(--wipe-fill, #a78bfa) 48%, transparent);
  transform: translate(-50%, -50%) scale(0.08);
  opacity: 0;
}

.display-wipe-diamonds {
  display: grid;
  place-items: center;
}

.display-wipe-diamonds i {
  grid-area: 1 / 1;
  width: min(18vw, 210px);
  aspect-ratio: 1;
  background: none;
  border: calc(0.95vw * var(--wipe-weight, 1)) solid color-mix(in srgb, var(--q-text, #fff) 72%, var(--wipe-fill, #a78bfa));
  box-shadow: 0 0 calc(1.8vw * var(--wipe-weight, 1)) color-mix(in srgb, var(--wipe-fill, #a78bfa) 42%, transparent);
  transform: translate(var(--dx, 0%), var(--dy, 0%)) rotate(45deg) scale(0.2);
  opacity: 0;
}

.display-wipe-diamonds i:nth-child(1) { --dx: 0%; --dy: 0%; }
.display-wipe-diamonds i:nth-child(2) { --dx: 130%; --dy: 0%; }
.display-wipe-diamonds i:nth-child(3) { --dx: -130%; --dy: 0%; }
.display-wipe-diamonds i:nth-child(4) { --dx: 0%; --dy: 110%; }
.display-wipe-diamonds i:nth-child(5) { --dx: 0%; --dy: -110%; }

.display-wipe.is-shutter.is-run .display-wipe-shutter i {
  animation: qsWipeShutter 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.display-wipe.is-iris.is-run .display-wipe-iris i {
  animation: qsWipeIris 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.display-wipe.is-iris.is-run .display-wipe-iris i:last-child {
  animation-delay: 0.14s;
}

.display-wipe.is-diamonds.is-run .display-wipe-diamonds i {
  animation: qsWipeDiamond 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.display-wipe.is-diamonds.is-run .display-wipe-diamonds i:nth-child(2) { animation-delay: 0.06s; }
.display-wipe.is-diamonds.is-run .display-wipe-diamonds i:nth-child(3) { animation-delay: 0.08s; }
.display-wipe.is-diamonds.is-run .display-wipe-diamonds i:nth-child(4) { animation-delay: 0.04s; }
.display-wipe.is-diamonds.is-run .display-wipe-diamonds i:nth-child(5) { animation-delay: 0.1s; }

.display-wipe-stars {
  display: block;
}

.display-wipe-stars i {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: calc(min(22vw, 260px) * var(--sz, 1));
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--q-text, #fff) 92%, var(--wipe-fill, #a78bfa));
  clip-path: polygon(
    50% 2%,
    61.3% 34.5%,
    95.7% 35.2%,
    68.3% 55.9%,
    78.2% 88.8%,
    50% 69.2%,
    21.8% 88.8%,
    31.7% 55.9%,
    4.3% 35.2%,
    38.7% 34.5%
  );
  filter: drop-shadow(0 0 calc(0.55vw * var(--wipe-weight, 1)) color-mix(in srgb, var(--wipe-fill, #a78bfa) 42%, transparent));
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(0.08);
  opacity: 0;
}

.display-wipe.is-stars.is-run .display-wipe-stars i {
  animation: qsWipeStar 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.display-wipe.is-stars.is-run .display-wipe-stars i:nth-child(5n + 2) { animation-delay: 0.05s; }
.display-wipe.is-stars.is-run .display-wipe-stars i:nth-child(5n + 3) { animation-delay: 0.1s; }
.display-wipe.is-stars.is-run .display-wipe-stars i:nth-child(5n + 4) { animation-delay: 0.03s; }
.display-wipe.is-stars.is-run .display-wipe-stars i:nth-child(5n + 5) { animation-delay: 0.14s; }
.display-wipe.is-stars.is-run .display-wipe-stars i:nth-child(5n + 1) { animation-delay: 0.07s; }

.display-wipe-balls {
  display: block;
}

.display-wipe-balls i {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: calc(min(20vw, 240px) * var(--sz, 1));
  aspect-ratio: 1;
  border-radius: 50%;
  background: url("/img/wipe-ball.svg?v=2") center / cover no-repeat;
  filter: drop-shadow(0 0.35vw 0.55vw rgba(0, 0, 0, 0.38));
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(0.08);
  opacity: 0;
}

.display-wipe.is-balls.is-run .display-wipe-balls i {
  animation: qsWipeBall 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.display-wipe.is-balls.is-run .display-wipe-balls i:nth-child(5n + 2) { animation-delay: 0.05s; }
.display-wipe.is-balls.is-run .display-wipe-balls i:nth-child(5n + 3) { animation-delay: 0.1s; }
.display-wipe.is-balls.is-run .display-wipe-balls i:nth-child(5n + 4) { animation-delay: 0.03s; }
.display-wipe.is-balls.is-run .display-wipe-balls i:nth-child(5n + 5) { animation-delay: 0.14s; }
.display-wipe.is-balls.is-run .display-wipe-balls i:nth-child(5n + 1) { animation-delay: 0.07s; }

.display-wipe-logo i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(82vmin, 920px);
  aspect-ratio: 1;
  background: none center / contain no-repeat;
  transform: translate(-50%, -50%) scale(0.1);
  opacity: 0;
  filter: drop-shadow(0 0 2.2vw rgba(8, 18, 48, 0.42));
}

.display-wipe-logo i.is-fallback {
  width: min(42vmin, 420px);
  border-radius: 28%;
  background: #5b21b6;
  color: #4ade80;
  font-weight: 800;
  font-size: min(22vmin, 220px);
  line-height: 1;
  display: grid;
  place-items: center;
  filter: none;
}

.display-wipe-logo i.is-fallback::after {
  content: "Q";
}

.display-wipe.is-logo.is-run .display-wipe-logo i {
  animation: qsWipeLogo 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes qsWipeShutter {
  0% { transform: scaleY(0); opacity: 0.4; }
  36% { transform: scaleY(1); opacity: 1; }
  64% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); opacity: 0; }
}

@keyframes qsWipeIris {
  0% { transform: translate(-50%, -50%) scale(0.06); opacity: 0; }
  16% { opacity: 1; }
  52% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.95; }
  100% { transform: translate(-50%, -50%) scale(1.72); opacity: 0; }
}

@keyframes qsWipeDiamond {
  0% { transform: translate(0, 0) rotate(45deg) scale(0.18); opacity: 0; }
  22% { opacity: 1; }
  48% { transform: translate(var(--dx, 0%), var(--dy, 0%)) rotate(45deg) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx, 0%), var(--dy, 0%)) rotate(45deg) scale(1.18); opacity: 0; }
}

@keyframes qsWipeStar {
  0% {
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(0.06);
    opacity: 0;
  }
  18% { opacity: var(--op, 1); }
  46% {
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1);
    opacity: var(--op, 1);
  }
  100% {
    transform: translate(-50%, -50%) rotate(calc(var(--rot, 0deg) + 10deg)) scale(1.16);
    opacity: 0;
  }
}

@keyframes qsWipeBall {
  0% {
    transform: translate(-50%, -50%) scale(0.08) rotate(0deg);
    opacity: 0;
  }
  18% { opacity: var(--op, 1); }
  46% {
    transform: translate(-50%, -50%) scale(1) rotate(200deg);
    opacity: var(--op, 1);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.18) rotate(380deg);
    opacity: 0;
  }
}

@keyframes qsWipeLogo {
  0% {
    transform: translate(-50%, -50%) scale(0.1);
    opacity: 0;
  }
  18% { opacity: 1; }
  46% {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.58);
    opacity: 0;
  }
}

.display-screen:not(.is-countdown) .display-boot .display-countdown .count-pulse {
  animation: none;
}

.display-screen.qs-slide-in > .display-body,
.display-body.qs-slide-in,
.display-boot.qs-slide-in,
.display-screen.qs-slide-in:not(:has(> .display-body)),
.display-results.qs-slide-in > .display-body,
.display-results.qs-slide-in:not(:has(> .display-body)),
.display-wait.qs-slide-in,
.display-ready.qs-slide-in {
  animation: qsSlideIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.display-screen.qs-slide-out > .display-body,
.display-body.qs-slide-out,
.display-boot.qs-slide-out,
.display-screen.qs-slide-out:not(:has(> .display-body)),
.display-results.qs-slide-out > .display-body,
.display-results.qs-slide-out:not(:has(> .display-body)),
.display-wait.qs-slide-out,
.display-ready.qs-slide-out {
  animation: qsSlideOut 0.56s cubic-bezier(0.4, 0, 1, 1) both;
  pointer-events: none;
}

html.is-vmix .display-screen.qs-slide-in > .display-body,
html.is-vmix .display-body.qs-slide-in,
html.is-vmix .display-boot.qs-slide-in,
html.is-vmix .display-results.qs-slide-in > .display-body,
html.is-vmix .display-wait.qs-slide-in,
html.is-vmix .display-ready.qs-slide-in {
  animation: qsVmixIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.is-vmix .display-screen.qs-slide-out > .display-body,
html.is-vmix .display-body.qs-slide-out,
html.is-vmix .display-boot.qs-slide-out,
html.is-vmix .display-results.qs-slide-out > .display-body,
html.is-vmix .display-wait.qs-slide-out,
html.is-vmix .display-ready.qs-slide-out {
  animation: qsVmixOut 0.56s cubic-bezier(0.4, 0, 1, 1) both;
}

.display-screen > .display-top,
.display-results > .display-top {
  animation: none !important;
}

@keyframes qsVmixIn {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes qsVmixOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-28px);
  }
}

.display-screen.qs-slide-out {
  pointer-events: none;
}

@keyframes qsSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes qsSlideOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.86);
  }
}

.qs-count-pop {
  animation: qsCountPop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes qsCountPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes qsGoIn {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes qsCountPop {
  from {
    opacity: 0.35;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.display-kicker {
  display: none;
}

.display-title {
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 800;
}

.display-screen .ring {
  width: clamp(88px, 9vw, 128px);
  height: clamp(88px, 9vw, 128px);
}

.display-screen .ring-num {
  font-size: clamp(28px, 3vw, 44px);
}

.display-question {
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  max-height: min(42vh, 100%);
  justify-self: center;
  align-self: center;
  text-align: center;
  background: var(--q-win, rgba(255, 255, 255, 0.06));
  color: var(--q-text, #fff);
  font-family: var(--quiz-font, inherit);
  border: var(--q-border, 1px solid var(--line));
  border-radius: var(--q-radius, 32px);
  padding: 32px;
  font-size: calc(clamp(28px, 4.6vw, 72px) * var(--q-size, 1));
  font-weight: 800;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: break-word;
  overflow: auto;
}

.display-question.has-media {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  align-self: center;
  gap: clamp(16px, 2.4vw, 36px);
  max-height: 100%;
  height: auto;
  width: min(100%, 1400px);
  padding: 16px 28px;
  font-size: calc(clamp(22px, 3vw, 52px) * var(--q-size, 1));
  text-align: left;
}

.display-question .q-media {
  max-height: min(32vh, 380px);
  max-width: 100%;
  width: auto;
  height: auto;
}

.display-question.has-media .q-media {
  flex: 0 1 42%;
  max-width: min(46%, 560px);
  max-height: 100%;
  margin: 0;
}

.display-question > span {
  display: block;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.display-question.has-media > span {
  flex: 1 1 0;
  text-align: left;
}

.display-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  width: calc(100% + 24px);
  max-width: none;
  margin-left: -12px;
  margin-right: -12px;
  min-height: 0;
  height: calc(min(42vh, 320px) * var(--a-box, 1));
  align-self: end;
  align-content: stretch;
  pointer-events: none;
}

.display-answers .answer-btn {
  position: relative;
  isolation: isolate;
  min-height: 0;
  height: 100%;
  width: 100%;
  min-width: 0;
  align-self: stretch;
  align-items: center;
  border-radius: var(--a-radius, 28px);
  padding: 14px 36px 14px 22px;
  font-size: calc(clamp(20px, 2.8vw, 42px) * var(--a-size, 1));
  color: var(--a-text, #fff);
  font-family: var(--quiz-font, inherit);
  gap: 16px;
  overflow: hidden;
}

.display-answers .answer-mark {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(48px, 8vh, 120px);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: #fff;
  opacity: 0.16;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.display-answers.has-media {
  height: calc(min(48vh, 380px) * var(--a-box, 1));
}

.display-answers .a-media {
  width: clamp(44px, 5.5vw, 80px);
  height: clamp(44px, 5.5vw, 80px);
  border-radius: 14px;
  position: relative;
  z-index: 1;
}

.display-answers .answer-btn > .letter,
.display-answers .answer-btn > span:not(.answer-mark),
.display-answers .answer-btn > .a-media {
  position: relative;
  z-index: 1;
}

.display-answers .answer-btn > span:not(.answer-mark) {
  line-height: 1.22;
  padding: 2px 0;
}

.display-answers .answer-btn:not(.is-correct):not(.is-wrong) {
  background: var(--a-win, rgba(18, 8, 46, 0.75));
}

.display-answers .answer-btn.is-correct {
  background: var(--a-win, rgba(18, 8, 46, 0.75));
  overflow: hidden;
}

.display-answers .answer-btn.is-correct::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.78), rgba(74, 222, 128, 0.62));
  transform: scaleX(0);
  transform-origin: left center;
  animation: qsCorrectFill 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: 0;
  pointer-events: none;
}

@keyframes qsCorrectFill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.display-question.qs-q-in {
  animation: qsQIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.display-answers .answer-btn.qs-enter,
.display-answers .answer-btn.qs-pulse {
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.display-answers .answer-btn.qs-enter:hover:not(:disabled),
.display-answers .answer-btn.qs-pulse:hover:not(:disabled) {
  transform: none;
}

.display-answers .answer-btn.qs-enter {
  animation: var(--qs-enter-anim, qsAScale) var(--qs-enter-dur, 1.2s) cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--qs-enter-delay, 0s);
}

.display-answers .answer-btn.qs-pulse {
  animation: qsPulse var(--qs-pulse-dur, 1.85s) ease-in-out infinite;
  animation-delay: var(--qs-pulse-delay, 0s);
}

@keyframes qsQIn {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes qsAScale {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes qsALeft {
  from {
    opacity: 0;
    transform: translateX(-72px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes qsARight {
  from {
    opacity: 0;
    transform: translateX(72px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes qsAUp {
  from {
    opacity: 0;
    transform: translateY(64px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes qsADown {
  from {
    opacity: 0;
    transform: translateY(-64px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes qsACascade {
  from {
    opacity: 0;
    transform: translateY(44px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes qsACornerTL {
  from {
    opacity: 0;
    transform: translate(-64px, -48px) scale(0.84);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes qsACornerTR {
  from {
    opacity: 0;
    transform: translate(64px, -48px) scale(0.84);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes qsACornerBL {
  from {
    opacity: 0;
    transform: translate(-64px, 48px) scale(0.84);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes qsACornerBR {
  from {
    opacity: 0;
    transform: translate(64px, 48px) scale(0.84);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes qsASpin {
  from {
    opacity: 0;
    transform: rotate(-14deg) scale(0.72);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes qsPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(var(--pulse-to, 1.03));
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.is-vmix) .display-boot,
  html:not(.is-vmix) .display-boot .display-countdown,
  html:not(.is-vmix) .display-boot .display-go,
  html:not(.is-vmix) .display-boot .display-intro,
  html:not(.is-vmix) .display-question.qs-q-in,
  html:not(.is-vmix) .display-answers .answer-btn.qs-enter,
  html:not(.is-vmix) .display-answers .answer-btn.qs-pulse,
  html:not(.is-vmix) .display-go,
  html:not(.is-vmix) .qs-count-pop,
  html:not(.is-vmix) .display-answers .answer-btn.is-correct::before,
  html:not(.is-vmix) .display-screen.qs-slide-in > .display-body,
  html:not(.is-vmix) .display-body.qs-slide-in,
  html:not(.is-vmix) .display-boot.qs-slide-in,
  html:not(.is-vmix) .display-boot.qs-slide-out,
  html:not(.is-vmix) .display-screen.qs-slide-in,
  html:not(.is-vmix) .display-screen.qs-slide-out > .display-body,
  html:not(.is-vmix) .display-body.qs-slide-out,
  html:not(.is-vmix) .display-screen.qs-slide-out,
  html:not(.is-vmix) .display-results.qs-slide-in > .display-body,
  html:not(.is-vmix) .display-results.qs-slide-out > .display-body,
  html:not(.is-vmix) .display-wait.qs-slide-in,
  html:not(.is-vmix) .display-wait.qs-slide-out,
  html:not(.is-vmix) .display-ready.qs-slide-in,
  html:not(.is-vmix) .display-ready.qs-slide-out,
  html:not(.is-vmix) .display-ready-bar i,
  html:not(.is-vmix) .display-wipe.is-run .display-wipe-iris i,
  html:not(.is-vmix) .display-wipe.is-run .display-wipe-shutter i,
  html:not(.is-vmix) .display-wipe.is-run .display-wipe-diamonds i,
  html:not(.is-vmix) .display-wipe.is-run .display-wipe-stars i,
  html:not(.is-vmix) .display-wipe.is-run .display-wipe-balls i,
  html:not(.is-vmix) .display-wipe.is-run .display-wipe-logo i {
    animation: none !important;
  }
  html:not(.is-vmix) .display-answers .answer-btn.is-correct::before {
    transform: scaleX(1);
  }
  html:not(.is-vmix) .display-ready-bar i {
    width: 42%;
    left: 29%;
    transform: none;
  }
  html:not(.is-vmix) .display-boot,
  html:not(.is-vmix) .display-boot .display-countdown,
  html:not(.is-vmix) .display-boot .display-go,
  html:not(.is-vmix) .display-boot .display-intro,
  html:not(.is-vmix) .display-body {
    transition: none !important;
  }
}

.display-screen .letter {
  width: clamp(42px, 4.4vw, 72px);
  height: clamp(42px, 4.4vw, 72px);
  font-size: clamp(18px, 2vw, 32px);
}

.display-wait {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.display-ready {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(28px, 5vh, 48px);
  padding: 32px;
  position: relative;
  z-index: 1;
}

.display-ready .display-logo {
  max-height: clamp(96px, 18vh, 220px);
  max-width: min(72vw, 640px);
}

.display-ready .display-logo.is-fallback .brand-mark {
  width: clamp(96px, 16vw, 180px);
  height: clamp(96px, 16vw, 180px);
}

.display-ready .display-logo.is-fallback .brand-mark span {
  font-size: clamp(40px, 7vw, 72px);
}

.display-ready-bar {
  width: min(420px, 56vw);
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  position: relative;
}

.display-ready-bar i {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  height: 100%;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #16a34a, #4ade80, transparent);
  animation: qsReadySlide 1.35s ease-in-out infinite;
}

@keyframes qsReadySlide {
  0% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(370%);
  }
}

.display-wait.display-qr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  width: 100vw;
  gap: 0;
  padding: 5vh 5vw;
  box-sizing: border-box;
}

.display-results {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 16px;
  padding: 16px 28px 64px;
  text-align: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.display-results > .display-body {
  grid-template-rows: auto minmax(0, 1fr);
}

.display-results-head {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  padding-top: 64px;
}

.display-results-head h1 {
  margin: 0;
  color: var(--w-title, #fff);
  font-family: var(--quiz-font, inherit);
  font-size: calc(clamp(28px, 3.4vw, 48px) * var(--w-title-size, 1));
}

.display-wait h1,
.display-results .score-num {
  margin: 0;
}

.display-wait .muted,
.display-ready-hint {
  color: var(--caption, var(--muted));
}

.display-fs {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
}

.display-screen .timer-cluster {
  padding: 0;
  margin: 0;
}

.display-screen .timer-badge {
  width: clamp(76px, 7.4vw, 112px);
  height: clamp(76px, 7.4vw, 112px);
}

.display-screen .timer-badge .ring-num {
  font-size: clamp(28px, 2.8vw, 44px);
}

.display-screen .timer-label {
  display: none;
}

:fullscreen .display-fs,
:-webkit-full-screen .display-fs,
html.is-kiosk .display-fs {
  display: none;
}

:fullscreen .site-footer,
:-webkit-full-screen .site-footer,
html.is-kiosk .site-footer {
  display: none;
}

.qr-box {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  width: fit-content;
  height: fit-content;
  box-sizing: content-box;
  line-height: 0;
  overflow: visible;
  cursor: pointer;
}

.qr-box canvas,
.qr-box img,
.qr-box table {
  display: block;
  margin: 0;
}

.qr-card {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}

.qr-meta {
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
}

.qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 3, 18, 0.78);
  display: grid;
  place-items: center;
  z-index: 30;
  padding: 20px;
}

.qr-modal-card {
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  text-align: center;
  max-width: 420px;
}

.answer-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}

html:has(body.is-join),
body.is-join {
  background: #0b0620;
  font-family: var(--quiz-font, Manrope, "Segoe UI", sans-serif);
}

body.is-join .bg-glow {
  display: none;
}

body.is-join .muted,
.theme-live-preview-stage.is-phone .muted {
  color: var(--caption, var(--muted));
}

body.is-join #app {
  z-index: 2;
}

html:has(body.is-join).has-join-color,
body.is-join.has-join-color {
  background: var(--join-bg-fill, var(--join-bg-color, #0b0620));
}

body.is-join.has-join-bg {
  background-image: var(--join-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.is-join.has-join-video {
  background: #070414;
}

body.is-join.has-join-bg .bg-glow {
  display: none;
}

.join-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

.join-wrap {
  width: min(560px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 0 24px;
  flex: 1;
  position: relative;
}

.join-wrap.is-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100dvh - 8px);
  padding: 72px 0 48px;
  text-align: center;
}

.join-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

.join-logo {
  display: block;
  max-height: calc(56px * var(--slide-logo, 1));
  max-width: min(calc(220px * var(--slide-logo, 1)), 72vw);
  width: auto;
  height: auto;
  object-fit: contain;
}

.join-logo.is-fallback {
  display: flex;
  align-items: center;
}

.join-logo.is-fallback .brand-mark {
  width: calc(48px * var(--slide-logo, 1));
  height: calc(48px * var(--slide-logo, 1));
}

.join-wrap.is-stage .join-top {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  align-items: center;
  margin-bottom: 0;
}

.join-wrap.is-stage .join-place {
  position: static;
  margin: 0;
}

.join-stage {
  display: grid;
  gap: 14px;
  justify-items: center;
  width: 100%;
}

.join-wrap.is-stage .join-countdown {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: clamp(128px, 42vw, 260px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--start-text, var(--q-text, #fff));
}

.join-place,
.join-qmeta {
  color: var(--caption, var(--muted));
  font-weight: 700;
  margin-bottom: 8px;
}

.join-paused {
  color: var(--yellow);
  font-weight: 800;
  margin: 0 0 10px;
}

.join-timer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  position: fixed;
  z-index: 6;
  pointer-events: none;
}

body.is-join .join-timer.is-circle,
body.is-join .join-timer:not(.is-tab):not(.is-ribbon),
.theme-live-preview-stage.is-phone .join-timer.is-circle,
.theme-live-preview-stage.is-phone .join-timer:not(.is-tab):not(.is-ribbon) {
  top: 16px;
  right: 12px;
}

body.is-join .join-timer.is-tab,
.theme-live-preview-stage.is-phone .join-timer.is-tab {
  top: 12%;
  right: 0;
}

body.is-join .join-timer.is-ribbon,
.theme-live-preview-stage.is-phone .join-timer.is-ribbon {
  top: 0;
  right: 6%;
}

.theme-live-preview-stage.is-phone .join-timer {
  position: absolute;
}

body.is-join .join-wrap:not(.is-form):not(.is-stage) {
  padding-right: 88px;
}

.theme-live-preview-stage.is-phone .join-wrap:not(.is-form) {
  padding-right: 88px;
}

.join-timer .timer-badge {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
}

.join-timer.is-tab .timer-badge,
.join-timer .timer-badge.is-tab {
  width: 58px;
  height: 88px;
  border-radius: 20px 0 0 20px;
}

.join-timer.is-ribbon .timer-badge,
.join-timer .timer-badge.is-ribbon {
  width: 96px;
  height: 62px;
  border-radius: 8px 8px 24px 24px;
}

.join-timer .timer-badge .join-timer-num,
.join-timer .join-timer-num {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: inherit;
}

.join-timer-num {
  font-size: clamp(36px, 10vw, 52px);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.join-timer-label {
  display: none;
}

.join-timer-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.join-timer-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green, #4ade80);
  border-radius: inherit;
}

.join-timer.is-urgent .join-timer-label {
  color: #fb7185;
}

.join-timer.is-urgent .join-timer-num,
.join-timer.is-urgent .timer-badge .join-timer-num {
  color: #fff;
}

.join-timer.is-urgent .join-timer-bar i {
  background: var(--pink, #fb7185);
}

.join-timer.is-paused .join-timer-num {
  opacity: 0.7;
}

.join-wrap h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 6vw, 36px);
  color: var(--phone-welcome, var(--text));
}

.join-question {
  font-size: calc(clamp(22px, 5.5vw, 32px) * var(--q-size, 1)) !important;
  color: var(--q-text, var(--text));
  font-family: var(--quiz-font, inherit);
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.join-qblock.has-media {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}

.join-qblock.has-media .join-question {
  flex: 1 1 0;
  margin: 0;
  min-width: 0;
}

.join-q-media {
  display: block;
  width: 100%;
  min-height: 96px;
  max-height: 220px;
  object-fit: contain;
  border-radius: 16px;
  margin: 0 0 14px;
  background: rgba(0, 0, 0, 0.18);
}

.join-qblock.has-media .join-q-media {
  flex: 0 0 38%;
  width: 38%;
  min-height: 88px;
  max-height: 140px;
  aspect-ratio: 4 / 3;
  margin: 0;
}

.join-preload {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.join-answers .a-media {
  width: 52px;
  height: 52px;
}

.join-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.join-form .field span {
  font-size: 13px;
  color: var(--caption, var(--muted));
  font-weight: 600;
}

.join-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.join-consent-list {
  display: grid;
  gap: 10px;
}

.join-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--caption, var(--muted));
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.join-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--green, #4ade80);
}

.join-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.join-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
}

.join-error {
  color: var(--pink);
  font-weight: 700;
}

.join-wrap.is-stage .join-intro {
  margin: 0;
  font-size: clamp(36px, 10vw, 56px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--intro-text, var(--q-text, #fff));
}

.join-wrap.is-stage .join-intro.is-go {
  font-size: clamp(44px, 12vw, 72px);
  letter-spacing: 0.06em;
  color: var(--start-text, var(--q-text, #fff));
}

.control-intro {
  margin: 18px 0 8px;
  padding: 36px 20px;
  text-align: center;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.account-logo-panel {
  margin-top: 22px;
}

.account-logo-panel h3 {
  margin: 0 0 6px;
}

.account-logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.account-logo-preview {
  max-height: 72px;
  max-width: 220px;
  object-fit: contain;
}

.join-answers {
  display: grid;
  gap: 12px;
}

.join-answers .letter {
  width: calc(32px * var(--phone-box, 1));
  height: calc(32px * var(--phone-box, 1));
  font-size: calc(14px * var(--phone-box, 1));
}

.join-answers .answer-btn {
  width: 100%;
  height: auto;
  min-height: calc(72px * var(--phone-box, 1));
  padding: calc(14px * var(--phone-box, 1)) calc(16px * var(--phone-box, 1));
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  border-radius: var(--a-radius, 20px);
  border: var(--a-border, 2px solid rgba(255, 255, 255, 0.08));
  background: var(--a-win, rgba(18, 8, 46, 0.75));
  color: var(--a-text, #fff);
  font-family: var(--quiz-font, inherit);
  font-size: calc(18px * var(--a-size, 1) * var(--phone-box, 1));
}

.join-answers .answer-btn:not(.is-correct):not(.is-wrong):not(.is-picked) {
  background: var(--a-win, rgba(18, 8, 46, 0.75));
}

.join-answers .answer-btn:hover:not(:disabled):not(.is-picked):not(.is-correct),
.join-answers .answer-btn:focus:not(.is-picked):not(.is-correct),
.join-answers .answer-btn:focus-visible:not(.is-picked):not(.is-correct),
.join-answers .answer-btn:active:not(.is-picked):not(.is-correct) {
  transform: none;
  border: var(--a-border, 2px solid rgba(255, 255, 255, 0.08));
  box-shadow: none;
}

.join-answers .answer-btn.is-picked:not(.is-correct):not(.is-wrong) {
  background: color-mix(in srgb, var(--purple-2, #8b5cf6) 42%, var(--a-win, #16082c));
  border: 2px solid var(--purple-2, #8b5cf6);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.35);
}

.join-answers .answer-btn.is-correct {
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.9), rgba(74, 222, 128, 0.78));
  border: 2px solid #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.28);
  color: #fff;
}

.control-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}

html.is-display.has-project-bg {
  background: #070414;
}

body.is-display.has-project-bg {
  background-image: var(--project-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.is-display.has-project-video {
  background-image: none;
}

body.is-display.has-project-bg .bg-glow {
  display: none;
}

.appearance-panel {
  position: relative;
  z-index: 1;
}

.appearance-panel h3 {
  margin: 0 0 6px;
}

.appearance-subhead {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  padding-top: 8px;
}

.bg-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.bg-upload input[type="file"] {
  color: var(--muted);
}

.bg-upload select {
  flex: 1 1 160px;
  min-width: 0;
}

.theme-live-preview {
  display: grid;
  gap: 12px;
  min-width: 0;
  z-index: 1;
}

.theme-live-preview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.theme-live-preview-head strong {
  display: block;
  font-size: 16px;
}

.theme-live-preview-head .muted {
  margin: 4px 0 0;
}

.theme-live-preview-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.theme-live-preview-nav .btn {
  padding: 8px 12px;
}

.theme-live-preview-nav .btn.is-on {
  border-color: var(--purple-2);
  color: #fff;
}

.theme-live-preview-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #070414;
  box-shadow: var(--shadow);
}

.theme-live-preview-frame.is-phone {
  aspect-ratio: 390 / 844;
  width: min(100%, 340px);
  margin-inline: auto;
  border-radius: 36px;
  border-width: 10px;
}

.theme-live-preview-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: top left;
  overflow: hidden;
  pointer-events: none;
  container-type: size;
  background: var(--bg);
  color: var(--text);
}

.theme-live-preview-stage.has-color-bg {
  background: var(--phone-bg-fill, var(--phone-bg-color, #0b0620));
}

.theme-live-preview-stage.has-bg {
  background: var(--project-bg) center / cover no-repeat;
}

.theme-live-preview-stage.has-video-bg {
  background: #070414;
}

.theme-live-preview-stage .display-bg-video {
  position: absolute;
  z-index: 0;
}

.theme-live-preview-stage .display-results {
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 2;
}

.theme-live-preview-stage .display-screen {
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 2;
}

.theme-live-preview-stage > .display-wipe {
  z-index: 8;
}

.theme-live-preview-stage .display-kicker {
  display: none;
}

.theme-live-preview-stage .display-logo {
  max-height: calc(clamp(52px, 7cqw, 96px) * var(--slide-logo, 1));
  max-width: min(calc(320px * var(--slide-logo, 1)), 42cqw);
}

.theme-live-preview-stage .display-wait.display-qr {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  padding: 5%;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.theme-live-preview-stage .display-qr-logo .display-logo {
  width: min(100%, calc(22cqw * var(--qr-logo, 1)));
  max-width: 100%;
  height: auto;
  max-height: min(88cqh, calc(22cqw * var(--qr-logo, 1)));
}

.theme-live-preview-stage .display-qr-logo .display-logo.is-fallback {
  display: grid;
  place-items: center;
  width: min(100%, calc(22cqw * var(--qr-logo, 1)));
  max-width: 100%;
  height: auto;
  max-height: min(88cqh, calc(22cqw * var(--qr-logo, 1)));
}

.theme-live-preview-stage .display-qr-logo .display-logo.is-fallback .brand-mark {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: 88cqh;
  container-type: size;
}

.theme-live-preview-stage .display-qr-logo .display-logo.is-fallback .brand-mark span {
  font-size: 42cqw;
}

.theme-live-preview-stage .display-qr .qr-box {
  width: min(calc(68% * var(--qr-code, 1)), calc(58cqh * var(--qr-code, 1)));
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 92%;
  max-height: min(78cqh, calc(70cqh * var(--qr-code, 1)));
  padding: 3%;
  box-sizing: border-box;
  background:
    repeating-conic-gradient(#0b0620 0% 25%, #fff 0% 50%) 0 0 / 16% 16%,
    #fff;
}

.theme-live-preview-stage .display-qr-title {
  font-size: calc(clamp(16px, 2.4cqw, 32px) * var(--qr-caption-size, 1));
}

.theme-live-preview-stage .display-intro {
  font-size: clamp(42px, 8cqw, 140px);
}

.theme-live-preview-stage .display-countdown {
  font-size: clamp(140px, 32cqw, 420px);
}

.theme-live-preview-stage .display-wipe-iris i {
  border-width: calc(1.15cqw * var(--wipe-weight, 1));
  box-shadow: 0 0 calc(2.4cqw * var(--wipe-weight, 1)) color-mix(in srgb, var(--wipe-fill, #a78bfa) 48%, transparent);
}

.theme-live-preview-stage .display-wipe-diamonds i {
  border-width: calc(0.95cqw * var(--wipe-weight, 1));
  box-shadow: 0 0 calc(1.8cqw * var(--wipe-weight, 1)) color-mix(in srgb, var(--wipe-fill, #a78bfa) 42%, transparent);
}

.theme-live-preview-stage .display-wipe-stars i {
  width: calc(min(22cqw, 260px) * var(--sz, 1));
  filter: drop-shadow(0 0 calc(0.55cqw * var(--wipe-weight, 1)) color-mix(in srgb, var(--wipe-fill, #a78bfa) 42%, transparent));
}

.theme-live-preview-stage .display-go {
  font-size: clamp(40px, 10cqw, 120px);
}

.theme-live-preview-stage .display-screen .ring {
  width: clamp(88px, 9cqw, 128px);
  height: clamp(88px, 9cqw, 128px);
}

.theme-live-preview-stage .display-screen .ring-num {
  font-size: clamp(28px, 3cqw, 44px);
}

.theme-live-preview-stage .display-screen .timer-cluster.is-circle,
.theme-live-preview-stage .display-screen .timer-cluster:not(.is-tab):not(.is-ribbon) {
  top: clamp(40px, 5.2cqh, 72px);
  right: 28px;
}

.theme-live-preview-stage .display-screen .timer-badge.is-tab {
  width: clamp(70px, 6.4cqw, 96px);
  height: clamp(168px, 22cqh, 248px);
}

.theme-live-preview-stage .display-screen .timer-badge.is-ribbon {
  width: clamp(112px, 11.5cqw, 176px);
  height: clamp(86px, 10.5cqh, 132px);
}

.theme-live-preview-stage .display-screen .timer-badge.is-tab .ring-num,
.theme-live-preview-stage .display-screen .timer-badge.is-ribbon .ring-num {
  font-size: clamp(32px, 3.5cqw, 54px);
}

.theme-live-preview-stage .display-question {
  font-size: calc(clamp(28px, 4.6cqw, 72px) * var(--q-size, 1));
  max-height: min(42cqh, 100%);
}

.theme-live-preview-stage .display-question.has-media {
  font-size: calc(clamp(22px, 3cqw, 52px) * var(--q-size, 1));
  gap: clamp(16px, 2.4cqw, 36px);
}

.theme-live-preview-stage .display-question .q-media {
  max-height: min(32cqh, 380px);
}

.theme-live-preview-stage .display-answers {
  height: calc(min(42cqh, 320px) * var(--a-box, 1));
}

.theme-live-preview-stage .display-answers.has-media {
  height: calc(min(48cqh, 380px) * var(--a-box, 1));
}

.theme-live-preview-stage .display-answers .answer-btn {
  font-size: calc(clamp(20px, 2.8cqw, 42px) * var(--a-size, 1));
}

.theme-live-preview-stage .display-answers .answer-mark {
  font-size: clamp(48px, 8cqh, 120px);
}

.theme-live-preview-stage .display-answers .a-media {
  width: clamp(44px, 5.5cqw, 80px);
  height: clamp(44px, 5.5cqw, 80px);
}

.theme-live-preview-stage .display-screen .letter {
  width: clamp(42px, 4.4cqw, 72px);
  height: clamp(42px, 4.4cqw, 72px);
  font-size: clamp(18px, 2cqw, 32px);
}

.theme-live-preview-stage.is-phone {
  width: 390px;
  height: 844px;
}

.theme-live-preview-stage.is-phone:not(.has-bg):not(.has-video-bg):not(.has-color-bg) {
  background: #0b0620;
}

.theme-live-preview-stage.is-phone.has-color-bg {
  background: var(--phone-bg-fill, #0b0620);
}

.theme-live-preview-stage.is-phone .join-wrap {
  position: relative;
  z-index: 2;
  width: calc(100% - 28px);
  min-height: 100%;
  padding: 22px 0 28px;
  flex: none;
}

.theme-live-preview-stage.is-phone .join-logo {
  max-height: calc(44px * var(--slide-logo, 1));
}

.theme-live-preview-stage.is-phone .join-wrap.is-form h1 {
  font-size: 26px;
  white-space: normal;
}

.theme-live-preview-stage.is-phone .join-question {
  font-size: calc(22px * var(--q-size, 1)) !important;
}

.theme-live-preview-stage.is-phone .join-answers .answer-btn {
  min-height: calc(62px * var(--phone-box, 1));
  font-size: calc(16px * var(--a-size, 1) * var(--phone-box, 1));
}

@media (min-width: 720px) {
  .editor-show {
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    align-items: start;
  }
  .editor-filmstrip {
    grid-column: 1 / -1;
  }
  .editor-inspector {
    position: sticky;
    top: calc(var(--topbar-h, 80px) + 12px);
    max-height: calc(100dvh - var(--topbar-h, 80px) - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
}

@media (min-width: 900px) {
  .editor-show {
    grid-template-columns: 252px minmax(0, 1.35fr) minmax(0, 1fr);
  }
  .editor-filmstrip {
    grid-column: auto;
    flex-direction: column;
    width: auto;
    max-height: calc(100dvh - var(--topbar-h, 80px) - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    position: sticky;
    top: calc(var(--topbar-h, 80px) + 12px);
    padding: 0 10px 8px 2px;
    scrollbar-gutter: stable;
  }
  .film-item,
  .film-group,
  .film-add {
    width: auto;
    max-width: 100%;
  }
  .film-group {
    grid-template-columns: 1fr;
  }
  .theme-live-preview {
    position: sticky;
    top: calc(var(--topbar-h, 80px) + 12px);
    max-height: calc(100dvh - var(--topbar-h, 80px) - 24px);
    align-self: start;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding-right: 4px;
  }
}

.podium {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 28px auto 0;
  width: 100%;
}

.podium-card {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  background: rgba(24, 14, 58, 0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px 22px;
}

.podium-main {
  flex: 1;
  min-width: 0;
}

.podium-card h2 {
  margin: 0 0 4px;
  font-size: 22px;
  overflow-wrap: anywhere;
}

.podium-medal {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
}

.place-1 {
  border-color: rgba(250, 204, 21, 0.7);
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.22), rgba(24, 14, 58, 0.72));
}

.place-1 .podium-medal {
  background: #facc15;
  color: #1a1003;
}

.place-2 {
  border-color: rgba(203, 213, 225, 0.55);
  background: linear-gradient(90deg, rgba(203, 213, 225, 0.16), rgba(24, 14, 58, 0.72));
}

.place-2 .podium-medal {
  background: #cbd5e1;
  color: #111827;
}

.place-3 {
  border-color: rgba(251, 146, 60, 0.55);
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.16), rgba(24, 14, 58, 0.72));
}

.place-3 .podium-medal {
  background: #fb923c;
  color: #1a0b00;
}

.podium-where {
  font-size: 16px;
  font-weight: 700;
}

.podium-score {
  margin-left: auto;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.podium-card.is-empty {
  opacity: 0.55;
}

.display-results h1 {
  margin: 0;
}

.display-results .podium {
  width: clamp(72%, calc(100% * var(--w-box, 1)), 100%);
  height: clamp(72%, calc(100% * var(--w-box, 1)), 100%);
  margin: 0 auto;
  min-height: 0;
  justify-self: center;
  align-self: center;
  grid-template-rows: 1.12fr 1fr 1fr;
  gap: calc(10px * var(--w-box, 1) + 4px);
}

.display-results .podium.is-one {
  grid-template-rows: 1fr;
  height: clamp(34%, calc(52% * var(--w-box, 1)), 62%);
  width: clamp(68%, calc(92% * var(--w-box, 1)), 96%);
}

.is-display-podium .podium-card {
  min-height: 0;
  height: 100%;
  padding: calc(2.4vh * var(--w-box, 1) + 10px) calc(2.4vw * var(--w-box, 1) + 14px);
  border-radius: 28px;
  gap: calc(18px * var(--w-box, 1) + 10px);
  background: var(--w-win, rgba(24, 14, 58, 0.72));
  border: var(--w-border, 1px solid var(--line));
  color: var(--w-text, #fff);
  font-family: var(--quiz-font, inherit);
}

.is-display-podium .podium-card.place-1,
.is-display-podium .podium-card.place-2,
.is-display-podium .podium-card.place-3 {
  background: var(--w-win, rgba(24, 14, 58, 0.72));
}

.is-display-podium .podium-medal {
  width: clamp(64px, 8vw, 120px);
  height: clamp(64px, 8vw, 120px);
  font-size: clamp(28px, 3.4vw, 52px);
}

.is-display-podium h2 {
  font-size: calc(clamp(28px, 4.2vw, 64px) * var(--w-size, 1));
  color: var(--w-text, #fff);
}

.is-display-podium .podium-where {
  font-size: clamp(20px, 2.8vw, 40px);
}

.is-display-podium .podium-score {
  font-size: calc(clamp(22px, 2.6vw, 40px) * var(--w-size, 1));
  color: var(--w-text, var(--muted));
}

.join-podium {
  text-align: left;
  margin: 12px auto 0;
  width: min(420px, 100%);
}

.join-podium-row {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 8px;
}

.login-screen {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 24px 16px 32px;
}

.login-card {
  width: min(420px, 100%);
  background: linear-gradient(180deg, rgba(88, 28, 135, 0.55), rgba(15, 23, 42, 0.55));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 26px 26px;
  box-shadow: var(--shadow);
}

.login-brand {
  margin-bottom: 16px;
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.login-card .field {
  margin-top: 14px;
}

.login-submit {
  width: 100%;
  margin-top: 20px;
}

.login-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fecdd3;
  font-weight: 600;
  font-size: 14px;
}

.account-players {
  min-width: 148px;
}

.account-players .qs-select {
  width: auto;
  min-width: 148px;
}

.account-players .qs-select-btn {
  padding: 8px 12px;
  font-size: 13px;
}

.auth-chip {
  align-self: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.16);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: #ede9fe;
}

@media (max-width: 1180px) {
  .editor-meta-row-fx {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .hero, .form-grid, .answers-grid, .timers-row, .play-header {
    grid-template-columns: 1fr;
  }
  .editor-meta-row-info,
  .editor-meta-row-fx {
    grid-template-columns: 1fr;
  }
  .answers-grid {
    grid-template-rows: none;
    grid-auto-rows: 1fr;
  }
  .play-header {
    text-align: center;
  }
  .topbar {
    padding: 14px 16px;
  }
  .display-screen {
    padding: 12px;
    gap: 10px;
  }
  .display-answers {
    gap: 10px;
  }
  .control-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  padding: 18px 20px 28px;
  font-size: 13px;
  font-weight: 600;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.join-legal-links {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.join-legal-links a {
  color: var(--green-2);
  font-weight: 700;
}

.is-legal {
  min-height: 100vh;
}

.legal-page {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.legal-brand {
  display: inline-flex;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  margin-bottom: 18px;
}

.legal-page h1 {
  margin: 8px 0 18px;
  font-size: clamp(28px, 5vw, 40px);
}

.legal-page h2 {
  margin: 28px 0 10px;
  font-size: 20px;
}

.legal-page p,
.legal-page li {
  color: #e9e4ff;
  line-height: 1.65;
}

.legal-page a {
  color: var(--green-2);
}

.legal-page .site-footer {
  padding-left: 0;
  padding-right: 0;
  justify-content: flex-start;
}
