@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --black: #050607;
  --charcoal: #11151b;
  --card: #151922;
  --cyan: #00d7f2;
  --grey: #a8adb5;
  --red: #ff4d4f;
  --line: #262c37;
  --display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --body: 'Inter', Aptos, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--black); color: #fff; font-family: var(--body); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- the 1600x900 slide ---------- */
.frame { position: relative; overflow: hidden; }
.stage { position: absolute; left: 50%; top: 50%; width: 1600px; height: 900px; transform-origin: center; }
.slide {
  position: absolute; inset: 0; padding: 110px 130px 90px;
  background: var(--charcoal); display: flex; flex-direction: column; justify-content: center;
  border-top: 6px solid var(--cyan);
}
.slide-title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: 104px; line-height: .95; letter-spacing: .5px; margin: 0 0 40px; max-width: 1200px;
}
.slide--first .slide-title { font-size: 140px; max-width: 1000px; }
.slide-body { font-size: 38px; line-height: 1.4; color: var(--grey); max-width: 1150px; }
.slide-body p { margin: 0 0 24px; }
.slide-body ul, .slide-body ol { margin: 0; padding-left: 1.2em; }
.slide-body li { margin: 0 0 18px; }
.slide-body li::marker { color: var(--cyan); font-weight: 700; }
.slide-body strong { color: #fff; font-weight: 600; }
.slide-body img { max-width: 100%; max-height: 520px; }
.slide-sub { font-size: 30px; color: var(--grey); margin-top: 8px; }
.slide-sub p { margin: 0; }
.slide-foot {
  position: absolute; left: 130px; right: 130px; bottom: 44px;
  display: flex; justify-content: space-between; font-size: 22px; color: #5d636d;
  letter-spacing: 2px; text-transform: uppercase;
}
.slide-qr { position: absolute; right: 110px; top: 110px; width: 220px; text-align: center; }
.slide-qr svg { width: 220px; height: 220px; display: block; border-radius: 10px; }
.slide-qr span { display: block; margin-top: 12px; font-size: 20px; color: var(--grey); }
.slide--poll .slide-title, .slide--feedback .slide-title { max-width: 1050px; }

.poll-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 22px; margin-top: 10px; max-width: 1340px; }
.poll-opt {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px;
  min-height: 130px; padding: 24px 28px; background: var(--card); border: 2px solid var(--line); border-radius: 14px;
  font-size: 34px; font-weight: 600;
}
.poll-fill { position: absolute; inset: 0 auto 0 0; background: rgba(0, 215, 242, .22); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.opt-icon { position: relative; width: 44px; height: 44px; object-fit: contain; }
.opt-label { position: relative; flex: 1; line-height: 1.15; }
.poll-n { position: relative; font-family: var(--display); font-size: 64px; color: var(--cyan); font-weight: 400; }
.poll-total { font-size: 26px; color: var(--grey); margin: 22px 0 0; min-height: 1.2em; }
.fb-list { font-size: 34px; color: var(--grey); line-height: 1.4; padding-left: 1.2em; max-width: 1050px; }
.fb-list li { margin-bottom: 10px; }

/* ---------- big screen ---------- */
.screen { height: 100vh; }
.screen .frame { position: fixed; inset: 0; }
.screen-hint {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-size: 13px; color: var(--grey); background: rgba(17, 21, 27, .9); padding: 6px 12px; border-radius: 999px;
  transition: opacity .4s;
}
.screen-hint.is-faded { opacity: 0; pointer-events: none; }

/* ---------- shared phone chrome ---------- */
.phone { min-height: 100vh; min-height: 100dvh; max-width: 560px; margin: 0 auto; padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.chip { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--grey); }
.chip--live { border-color: var(--cyan); color: var(--cyan); }
.chip--off { border-color: var(--red); color: var(--red); }
.btn { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 14px; font-weight: 600; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--cyan); border-color: var(--cyan); color: var(--black); }
.muted { color: var(--grey); }
.error { color: var(--red); }

/* ---------- remote ---------- */
.remote { background: var(--black); }
.r-top { display: flex; justify-content: space-between; align-items: baseline; background: var(--charcoal); border-radius: 14px; padding: 12px 16px; }
.r-top small { font-size: 12px; color: var(--grey); text-transform: uppercase; letter-spacing: 1.5px; }
.r-left { font-family: var(--display); font-size: 52px; line-height: 1; }
.r-left.over { color: var(--red); }
.r-meta { display: flex; align-items: center; gap: 14px; }
.r-num { font-family: var(--display); font-size: 40px; line-height: 1; }
.r-num small { font-family: var(--body); font-size: 14px; color: var(--grey); }
.r-elapsed { font-family: var(--display); font-size: 36px; color: var(--cyan); line-height: 1; flex: 1; text-align: center; }
.r-title { font-size: 20px; font-weight: 700; margin: 0; }
.r-next { font-size: 13px; color: var(--grey); margin: -6px 0 0; }
.r-notes { font-family: var(--body); flex: 1; min-height: 120px; overflow: auto; font-size: 17px; line-height: 1.5; color: #dfe2e6; white-space: pre-wrap; background: var(--charcoal); border-radius: 14px; padding: 14px 16px; margin: 0; }
.r-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.r-go { min-height: 30vh; font-size: 30px; font-family: var(--display); letter-spacing: 1px; border-radius: 18px; }
.r-go:disabled { opacity: .4; }
.sheet { position: fixed; inset: 0; background: rgba(5, 6, 7, .97); overflow: auto; padding: 18px 16px 30px; z-index: 10; }
.sheet[hidden] { display: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; max-width: 560px; margin: 0 auto 12px; }
.sheet-head h2 { font-family: var(--display); font-weight: 400; font-size: 34px; margin: 0; }
.sheet-list { list-style: none; margin: 0 auto; padding: 0; max-width: 560px; display: grid; gap: 8px; }
.sheet-list button { width: 100%; text-align: left; display: flex; gap: 12px; align-items: baseline; }
.sheet-list button[aria-current='true'] { border-color: var(--cyan); }
.sheet-list b { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--grey); min-width: 28px; }
.sheet-tag { margin-left: auto; font-size: 11px; color: var(--cyan); text-transform: uppercase; letter-spacing: 1px; }
.sheet section { max-width: 560px; margin: 22px auto 0; }
.sheet h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--grey); margin: 0 0 10px; }
.fb-sum { font-size: 15px; line-height: 1.5; }
.fb-sum p { margin: 0 0 10px; }
.fb-sum b { color: var(--cyan); }
.key-form { display: grid; gap: 10px; margin-top: 30vh; }
.key-form input { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: #fff; font: inherit; }

/* ---------- audience ---------- */
.f-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.f-head strong { font-size: 13px; color: var(--grey); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-card { background: var(--charcoal); border-radius: 16px; overflow: hidden; border-top: 4px solid var(--cyan); }
.f-card .frame { aspect-ratio: 16 / 9; }
.f-bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; }
.f-bar .icon { background: none; border: 0; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; }
.f-bar .icon:disabled { opacity: .3; }
.f-bar .icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.f-count { font-size: 14px; color: var(--grey); min-width: 56px; text-align: center; }
.f-spacer { flex: 1; }
.f-live { align-self: center; }
.f-live[hidden] { display: none; }
.f-native { padding: 18px 18px 22px; }
.f-native .n-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--grey); }
.f-native h1 { font-family: var(--display); font-weight: 400; font-size: 42px; line-height: 1; text-transform: uppercase; margin: 10px 0 6px; }
.f-native .n-sub { font-size: 14px; color: var(--grey); margin: 0 0 16px; }
.vote-list { display: grid; gap: 10px; }
.vote-btn { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; text-align: left; padding: 18px 16px; border: 2px solid var(--line); background: var(--card); border-radius: 14px; font-size: 17px; font-weight: 600; }
.vote-btn .opt-icon { width: 26px; height: 26px; }
.vote-btn[aria-pressed='true'] { border-color: var(--cyan); }
.vote-btn[aria-pressed='true']::after { content: '✓'; margin-left: auto; color: var(--cyan); font-size: 20px; }
.n-status { font-size: 13px; color: var(--grey); margin: 12px 0 0; min-height: 1.3em; }
.fb-form { display: grid; gap: 18px; }
.fb-form fieldset { border: 0; padding: 0; margin: 0; }
.fb-form legend { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale label { display: grid; place-items: center; height: 48px; border: 2px solid var(--line); background: var(--card); border-radius: 10px; font-weight: 600; cursor: pointer; }
.scale input:checked + label { border-color: var(--cyan); color: var(--cyan); }
.scale input:focus-visible + label { outline: 3px solid var(--cyan); outline-offset: 2px; }
.fb-form textarea { width: 100%; min-height: 90px; padding: 12px; border-radius: 10px; border: 2px solid var(--line); background: var(--card); color: #fff; font: inherit; }
.f-foot { font-size: 13px; color: var(--grey); text-align: center; line-height: 1.5; }
.grid-sheet .thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 560px; margin: 0 auto; }
.thumb { padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--charcoal); }
.thumb[aria-current='true'] { border-color: var(--cyan); }
.thumb .frame { aspect-ratio: 16 / 9; pointer-events: none; }
