:root {
  --ink:#152c31;
  --paper:#f7f7ef;
  --line:#dce0d7;
  --muted:#667674;
  --lime:#e5f59a;
  --teal:#125f58;
  --orange:#f69b7f;
  --purple:#cfbcee;
  --blue:#beddeb;
  --red:#9c352e;
  --radius:20px
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  font-size:16px;
  line-height:1.5
}
button,input,textarea,select {
  font:inherit
}
button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent
}
button,a {
  touch-action:manipulation
}
a {
  color:inherit
}
button {
  cursor:pointer
}
button:disabled {
  cursor:default;
  opacity:.52
}
button:focus-visible,a:focus-visible {
  outline:3px solid var(--teal);
  outline-offset:4px
}
input:focus,textarea:focus,select:focus {
  outline:2px solid var(--teal);
  outline-offset:1px
}
[hidden] {
  display:none!important
}
.topbar {
  height:104px;
  margin:0 6%;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px
}
.brand {
  font-size:29px;
  letter-spacing:-1.4px;
  font-weight:750;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:12px
}
.brand-mark {
  background:var(--ink);
  color:var(--lime);
  border-radius:12px;
  display:inline-flex;
  width:39px;
  height:39px;
  align-items:center;
  justify-content:center;
  font-size:32px;
  position:relative
}
.brand-mark span {
  font-size:22px;
  color:var(--orange);
  position:absolute;
  right:4px;
  top:-6px
}
.brand-dot {
  color:var(--teal);
  margin-left:-11px
}
.top-meta {
  display:flex;
  gap:9px;
  align-items:center;
  font-size:13px
}
.live-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--teal);
  box-shadow:0 0 0 4px #125f5810
}
.eyebrow,.step-label {
  font-size:11px;
  letter-spacing:1.6px;
  font-weight:750
}
.tiny-line {
  display:inline-block;
  width:22px;
  height:2px;
  background:var(--teal);
  vertical-align:middle;
  margin-right:8px
}
h1,h2,h3,p {
  margin-top:0
}
h1 {
  font-size:clamp(42px,5.5vw,76px);
  letter-spacing:-3px;
  line-height:1.08;
  font-weight:650;
  margin-bottom:24px
}
h2 {
  font-size:30px;
  letter-spacing:-1px;
  line-height:1.2;
  margin-bottom:16px
}
h3 {
  font-size:21px;
  line-height:1.3
}
.serif {
  font-family:Georgia,"Times New Roman",serif;
  font-weight:normal;
  font-style:italic;
  color:var(--teal)
}
p {
  color:var(--muted)
}
.participant-layout {
  max-width:1180px;
  margin:72px auto 26px;
  padding:0 36px;
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:90px;
  align-items:start
}
.intro .eyebrow {
  margin-bottom:28px
}
.intro>p {
  max-width:340px;
  font-size:17px;
  line-height:1.8
}
.intro-tags {
  display:flex;
  gap:25px;
  font-size:12px;
  margin-top:26px
}
.graphic {
  height:180px;
  position:relative;
  max-width:390px;
  margin-top:42px
}
.graphic-card {
  position:absolute;
  width:320px;
  height:68px;
  border:1px solid var(--ink);
  border-radius:13px;
  display:flex;
  align-items:center;
  padding:16px;
  gap:15px;
  font-weight:750;
  box-shadow:3px 4px 0 var(--ink)
}
.graphic-card span {
  font-weight:500;
  font-size:14px
}
.graphic-card i {
  margin-left:auto;
  font-size:23px;
  font-style:normal
}
.graphic-card.back {
  background:var(--purple);
  transform:rotate(-8deg);
  top:4px;
  left:25px
}
.graphic-card.front {
  background:var(--lime);
  transform:rotate(4deg);
  top:63px;
  left:0
}
.graphic-bubble {
  position:absolute;
  right:0;
  top:130px;
  border-radius:30px;
  background:var(--ink);
  color:white;
  padding:8px 18px;
  font-size:12px;
  transform:rotate(-5deg)
}
.join-card,.login-card {
  background:#fff;
  border:1px solid var(--line);
  padding:36px;
  border-radius:var(--radius);
  box-shadow:0 12px 40px #152c3106
}
.step-label {
  display:flex;
  justify-content:space-between;
  letter-spacing:1px;
  font-size:10px;
  color:var(--muted);
  margin-bottom:32px
}
.step-label span {
  color:var(--teal)
}
.join-card h2 {
  font-size:32px
}
.join-card>p {
  font-size:14px;
  max-width:300px;
  margin-bottom:28px
}
label {
  display:block;
  font-size:13px;
  font-weight:650;
  margin-bottom:8px
}
input,textarea,select {
  width:100%;
  color:var(--ink);
  background:#fafbf7;
  border:1px solid var(--line);
  border-radius:9px;
  padding:13px 15px;
  margin-bottom:20px
}
textarea {
  resize:vertical;
  min-height:85px
}
input.code-input {
  font-size:30px;
  letter-spacing:12px;
  font-weight:600;
  height:68px;
  text-align:center
}
.code-input::placeholder {
  color:#c5cec8
}
.btn {
  border:1px solid var(--line);
  border-radius:9px;
  padding:12px 19px;
  min-height:48px;
  background:white;
  color:var(--ink);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:13px;
  font-size:14px;
  font-weight:650;
  text-decoration:none;
  transition:background .15s,transform .15s
}
.btn:hover:not(:disabled) {
  transform:translateY(-1px);
  background:#edf1e5
}
.btn.primary {
  background:var(--ink);
  color:white;
  border-color:var(--ink)
}
.btn.primary:hover:not(:disabled) {
  background:var(--teal)
}
.btn.lime {
  background:var(--lime);
  border-color:var(--ink)
}
.btn.danger {
  color:var(--red);
  border-color:#e5b8ae
}
.btn.quiet {
  background:transparent
}
.btn.small {
  min-height:36px;
  padding:6px 11px;
  font-size:12px
}
.wide {
  width:100%;
  justify-content:space-between
}
.card-note {
  border-top:1px solid var(--line);
  margin-top:24px;
  padding-top:20px;
  color:var(--muted);
  font-size:11px;
  display:flex;
  gap:10px
}
.card-note>span {
  font-size:18px
}
.form-error {
  color:var(--red);
  font-size:13px;
  margin:12px 0 0
}
.form-error:empty {
  display:none
}
.presenter-link {
  text-align:center;
  color:var(--muted);
  font-size:12px;
  margin:22px 0 45px
}
.presenter-link a {
  color:var(--ink);
  font-weight:650;
  text-underline-offset:4px
}
.footer {
  border-top:1px solid var(--line);
  margin:0 6%;
  padding:24px 0;
  display:flex;
  justify-content:space-between;
  font-size:10px;
  color:var(--muted);
  gap:15px
}
.footer>span:last-child {
  letter-spacing:1.5px
}
.footer-dot {
  color:var(--teal);
  padding:0 10px
}
.notice {
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  padding:14px 24px;
  background:var(--ink);
  color:white;
  border-radius:12px;
  z-index:10;
  box-shadow:0 4px 20px #0002;
  max-width:90vw;
  font-size:14px
}
.notice.error {
  background:#85352e
}
.play-panel {
  grid-column:1/-1;
  width:100%;
  max-width:800px;
  margin:auto
}
.play-top {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  margin-bottom:28px
}
.badge {
  display:inline-flex;
  gap:6px;
  align-items:center;
  padding:6px 12px;
  background:#e7ece4;
  border-radius:30px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.6px
}
.badge.quiz {
  background:var(--purple)
}
.badge.poll {
  background:var(--blue)
}
.state-card {
  background:#fff;
  border:1px solid var(--line);
  padding:42px;
  border-radius:var(--radius)
}
.empty-state {
  text-align:center;
  padding:44px 10px
}
.empty-icon {
  width:80px;
  height:80px;
  background:var(--lime);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:35px;
  margin:0 auto 30px
}
.empty-state h1 {
  font-size:54px
}
.empty-state h2 {
  font-size:36px
}
.empty-state .eyebrow {
  margin-bottom:25px
}
.status-label {
  font-size:13px;
  color:var(--teal);
  font-weight:650
}
.question-title {
  font-size:clamp(26px,3.3vw,44px);
  line-height:1.18;
  letter-spacing:-1px;
  margin:22px 0 28px;
  overflow-wrap:anywhere
}
.question-meta {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center
}
.timer {
  display:flex;
  align-items:center;
  gap:8px;
  font-variant-numeric:tabular-nums;
  font-size:18px;
  font-weight:700
}
.timer.expired {
  color:var(--red)
}
.option-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px
}
.option {
  min-height:90px;
  border:1px solid #152c3140;
  border-radius:12px;
  display:flex;
  align-items:center;
  gap:15px;
  padding:18px;
  text-align:left;
  color:var(--ink);
  font-size:17px;
  overflow-wrap:anywhere
}
.option:disabled {
  opacity:1
}
.option[data-color="0"] {
  background:var(--lime)
}
.option[data-color="1"] {
  background:var(--purple)
}
.option[data-color="2"] {
  background:var(--orange)
}
.option[data-color="3"] {
  background:var(--blue)
}
.option[data-color="4"] {
  background:#f3dfa0
}
.option[data-color="5"] {
  background:#bbdcd0
}
.option-letter {
  border:1px solid #152c3166;
  border-radius:6px;
  width:31px;
  height:31px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  font-size:14px;
  font-weight:750
}
.option.selected {
  box-shadow:inset 0 0 0 3px var(--ink)
}
.option.correct {
  box-shadow:inset 0 0 0 3px var(--teal)
}
.question-foot {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:24px;
  font-size:12px;
  color:var(--muted)
}
.feedback {
  margin:24px 0 0;
  border:1px solid #cad8bc;
  background:#f1f6e5;
  border-radius:10px;
  padding:16px;
  font-size:14px
}
.feedback strong {
  color:var(--teal)
}
.muted {
  color:var(--muted);
  font-size:13px
}
.connection {
  font-size:11px;
  color:var(--muted)
}
.connection.offline {
  color:var(--red)
}
.result-row {
  padding:18px;
  border-radius:12px;
  background:#f3f5ef;
  margin:12px 0;
  border:1px solid var(--line)
}
.result-label {
  display:flex;
  justify-content:space-between;
  gap:14px;
  font-size:15px;
  margin-bottom:10px
}
.result-label strong {
  white-space:nowrap
}
.result-bar {
  height:9px;
  border-radius:6px;
  background:#dfe6d7;
  overflow:hidden
}
.result-fill {
  height:100%;
  background:var(--teal);
  width:0
}
.result-count {
  font-size:11px;
  color:var(--muted);
  margin-top:5px
}
.ranking {
  margin-top:30px;
  border-top:1px solid var(--line);
  padding-top:28px
}
.ranking ol {
  padding:0;
  list-style:none
}
.rank-row {
  display:grid;
  grid-template-columns:40px 1fr auto;
  gap:12px;
  align-items:center;
  border-bottom:1px solid var(--line);
  padding:13px 2px;
  font-size:15px
}
.rank-num {
  font-size:20px;
  font-weight:700;
  color:var(--teal)
}
.rank-points {
  font-size:17px;
  font-weight:700
}
.rank-row.me {
  background:#edf4da
}
.rank-time {
  display:block;
  text-align:right;
  font-size:10px;
  color:var(--muted);
  font-weight:400
}
.admin-layout {
  max-width:1250px;
  padding:0 36px;
  margin:56px auto 70px;
  min-height:65vh
}
.login-card {
  max-width:520px;
  margin:60px auto
}
.login-card h1 {
  font-size:48px;
  margin-top:22px
}
.login-card form {
  margin-top:30px
}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:38px
}
.page-heading h1 {
  font-size:52px;
  margin:14px 0
}
.page-heading p {
  font-size:14px;
  margin-bottom:0
}
.actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center
}
.session-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-bottom:50px
}
.session-card {
  padding:25px;
  background:white;
  border:1px solid var(--line);
  border-radius:16px;
  display:flex;
  flex-direction:column;
  gap:8px
}
.session-card .eyebrow {
  color:var(--teal);
  font-size:10px
}
.session-card h3 {
  margin:8px 0;
  overflow-wrap:anywhere
}
.session-card p {
  font-size:13px;
  flex:1;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.session-card .actions {
  padding-top:16px;
  border-top:1px solid var(--line)
}
.session-card .btn {
  flex:1
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:18px
}
.section-heading h2 {
  font-size:24px;
  margin:0
}
.run-row {
  display:flex;
  align-items:center;
  gap:20px;
  justify-content:space-between;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:18px 24px;
  margin:10px 0
}
.run-row strong {
  display:block
}
.run-code {
  font-size:22px;
  font-weight:700;
  letter-spacing:3px
}
.editor-card {
  max-width:850px;
  margin:auto
}
.editor-section {
  background:#fff;
  border:1px solid var(--line);
  padding:28px;
  border-radius:16px;
  margin-bottom:20px
}
.editor-question-head {
  display:flex;
  justify-content:space-between;
  gap:15px;
  align-items:center;
  margin-bottom:20px
}
.editor-question-head h3 {
  margin:0
}
.two-col {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px
}
.option-edit {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px
}
.option-edit input {
  margin:0
}
.option-edit .option-letter {
  width:34px;
  height:34px
}
.option-edit .btn {
  min-width:36px
}
.editor-actions {
  position:sticky;
  bottom:12px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:16px;
  background:var(--ink);
  border-radius:12px;
  color:white;
  box-shadow:0 6px 25px #0002
}
.editor-actions .btn.quiet {
  color:white
}
.host-layout {
  display:grid;
  grid-template-columns:300px 1fr;
  gap:28px
}
.host-sidebar {
  align-self:start;
  background:white;
  border:1px solid var(--line);
  border-radius:16px;
  padding:25px;
  position:sticky;
  top:20px
}
.host-sidebar .btn {
  width:100%;
  margin-bottom:10px
}
.host-code {
  font-size:38px;
  font-weight:700;
  letter-spacing:5px;
  margin:14px 0
}
.qr {
  background:#fff;
  border-radius:12px;
  padding:12px;
  width:170px;
  margin:20px auto
}
.qr svg {
  width:100%;
  height:auto;
  display:block
}
.join-url {
  font-size:11px;
  overflow-wrap:anywhere;
  text-align:center;
  display:block
}
.host-content {
  min-width:0
}
.host-content .state-card {
  padding:28px
}
.host-content .question-title {
  font-size:30px
}
.projection-layout {
  max-width:1500px;
  margin:40px auto 60px;
  padding:0 5%
}
.projection-grid {
  display:grid;
  grid-template-columns:1fr 265px;
  gap:65px;
  align-items:start
}
.projection-main .question-title {
  font-size:clamp(36px,4.2vw,66px);
  margin:26px 0 38px
}
.projection-main .option {
  font-size:clamp(20px,2.1vw,32px);
  min-height:120px;
  padding:24px
}
.projection-main .option-letter {
  width:42px;
  height:42px;
  font-size:20px
}
.projection-main .timer {
  font-size:32px
}
.projection-aside {
  border-left:1px solid var(--line);
  padding-left:30px;
  text-align:center
}
.projection-aside .host-code {
  font-size:42px;
  letter-spacing:5px
}
.projection-aside .qr {
  width:190px
}
.projection-main .empty-state {
  text-align:left;
  padding:45px 0
}
.projection-main .empty-state h1 {
  font-size:clamp(60px,6.7vw,100px);
  max-width:700px
}
.projection-main .empty-state p {
  font-size:22px;
  max-width:540px
}
.projection-main .result-label {
  font-size:25px
}
.projection-main .result-count {
  font-size:16px
}
.projection-main .result-bar {
  height:17px
}
.projection-main .rank-row {
  font-size:24px
}
.projection-main .rank-points {
  font-size:26px
}
.projection-main .question-foot {
  font-size:17px
}
.projection-main .ranking h3 {
  font-size:30px
}
.winner-names {
  font-family:Georgia,serif;
  font-size:42px;
  font-style:italic;
  color:var(--teal);
  overflow-wrap:anywhere
}
.empty-list {
  padding:35px;
  border:1px dashed #aebbb1;
  border-radius:16px;
  color:var(--muted)
}
.back-link {
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:none;
  border:0;
  padding:0;
  margin-bottom:26px;
  color:var(--teal);
  font-size:13px;
  text-decoration:underline;
  text-underline-offset:4px
}
.reconnect-banner {
  background:#fae7cf;
  color:#774c1c;
  padding:12px;
  border-radius:9px;
  margin-bottom:20px;
  font-size:13px
}
@media(min-width:1600px) {
  .projection-layout {
    margin-top:65px
  }
  .projection-main .option {
    min-height:150px
  }
}
@media(max-width:1050px) {
  .participant-layout {
    gap:40px;
    padding:0 30px;
    margin-top:50px
  }
  .session-grid {
    grid-template-columns:repeat(2,1fr)
  }
  .projection-grid {
    gap:30px;
    grid-template-columns:1fr 220px
  }
  .projection-aside {
    padding-left:20px
  }
  .host-layout {
    grid-template-columns:250px 1fr
  }
  .host-code {
    font-size:32px
  }
}
@media(max-width:760px) {
  .topbar {
    height:78px;
    margin:0 22px
  }
  .brand {
    font-size:24px;
    gap:9px
  }
  .brand-mark {
    width:34px;
    height:34px;
    font-size:28px
  }
  .top-meta {
    font-size:10px
  }
  .participant-layout {
    display:block;
    margin:38px auto 25px;
    padding:0 22px;
    max-width:520px
  }
  .intro h1 {
    font-size:50px;
    letter-spacing:-2px
  }
  .intro .eyebrow {
    font-size:9px;
    margin-bottom:20px
  }
  .intro>p {
    font-size:14px;
    line-height:1.6;
    max-width:350px
  }
  .intro-tags,.graphic {
    display:none
  }
  .join-card {
    padding:25px;
    margin-top:30px
  }
  .step-label {
    margin-bottom:20px;
    font-size:9px
  }
  .join-card h2 {
    font-size:28px
  }
  .join-card>p {
    margin-bottom:20px
  }
  .join-card .card-note {
    margin-top:20px
  }
  .presenter-link {
    font-size:11px;
    margin:25px 0 35px
  }
  .footer {
    margin:0 22px;
    padding:20px 0;
    font-size:9px
  }
  .footer>span:last-child {
    letter-spacing:.5px
  }
  .footer-dot {
    padding:0 3px
  }
  .state-card {
    padding:24px 20px
  }
  .play-top {
    font-size:12px;
    margin-bottom:20px
  }
  .question-title {
    font-size:29px;
    margin:20px 0 24px
  }
  .option-grid {
    grid-template-columns:1fr;
    gap:11px
  }
  .option {
    min-height:74px;
    padding:16px;
    font-size:17px
  }
  .empty-state {
    padding:30px 0
  }
  .empty-state h2 {
    font-size:29px
  }
  .question-foot {
    font-size:10px
  }
  .admin-layout {
    padding:0 20px;
    margin-top:32px
  }
  .login-card {
    padding:25px;
    margin:30px auto
  }
  .login-card h1 {
    font-size:38px
  }
  .page-heading {
    display:block
  }
  .page-heading h1 {
    font-size:42px
  }
  .page-heading .actions {
    margin-top:24px
  }
  .session-grid {
    grid-template-columns:1fr
  }
  .run-row {
    flex-wrap:wrap;
    padding:18px;
    gap:12px
  }
  .run-row .actions {
    width:100%
  }
  .section-heading {
    display:block
  }
  .section-heading h2 {
    margin-bottom:8px
  }
  .editor-section {
    padding:20px
  }
  .editor-question-head {
    flex-wrap:wrap
  }
  .two-col {
    grid-template-columns:1fr;
    gap:0
  }
  .editor-actions {
    padding:12px
  }
  .editor-actions .btn {
    font-size:12px;
    padding:10px
  }
  .host-layout {
    grid-template-columns:1fr
  }
  .host-sidebar {
    position:static
  }
  .host-sidebar .qr {
    display:none
  }
  .host-sidebar .join-url {
    margin-bottom:20px
  }
  .host-code {
    text-align:center
  }
  .host-sidebar .actions {
    display:grid;
    grid-template-columns:1fr 1fr
  }
  .host-sidebar .btn {
    margin:0
  }
  .projection-grid {
    grid-template-columns:1fr
  }
  .projection-aside {
    border-left:0;
    border-top:1px solid var(--line);
    padding:20px 0;
    display:flex;
    gap:20px;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap
  }
  .projection-aside .qr {
    width:130px;
    margin:0
  }
  .projection-aside .join-url {
    width:100%
  }
  .projection-main .empty-state h1 {
    font-size:56px
  }
  .projection-main .option {
    min-height:90px;
    font-size:23px
  }
  .projection-main .question-title {
    font-size:36px
  }
  .projection-main .result-label {
    font-size:20px
  }
  .projection-layout {
    padding:0 24px
  }
  .projection-main .rank-row {
    font-size:18px
  }
  .winner-names {
    font-size:30px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important
  }
}
.result-progress {
  display:block;
  width:100%;
  height:12px;
  border:0;
  border-radius:6px;
  overflow:hidden;
  appearance:none;
  background:#dfe6d7
}
.result-progress::-webkit-progress-bar {
  background:#dfe6d7;
  border-radius:6px
}
.result-progress::-webkit-progress-value {
  background:#125f58;
  border-radius:6px
}
.result-progress::-moz-progress-bar {
  background:#125f58;
  border-radius:6px
}
.quiz-settings {
  margin-top:24px
}
.poll-note {
  margin-top:20px
}
hr {
  border:0;
  border-top:1px solid #dce0d7;
  margin:22px 0
}
