:root {
  --ink: #14232e;
  --muted: #5b6b77;
  --line: #d6dde3;
  --bg: #f4f6f8;
  --card: #fff;
  --brand: #c8102e;
  --accent: #1f5f99;
  --good: #1d7a3a;
  --good-bg: #e3f4e8;
  --bad: #b3261e;
  --bad-bg: #fbe7e6;
  --warn-bg: #fff4d6;
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.45; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: .6em .7em; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
textarea { min-height: 4.5em; resize: vertical; }
label { display: block; font-weight: 600; margin: .8em 0 .3em; }
label.inline { display: flex; gap: .5em; align-items: center; font-weight: 400; margin: .5em 0; }
label.inline input { width: auto; }
.hint { color: var(--muted); font-size: .9em; font-weight: 400; }

button, .button {
  display: inline-block; padding: .6em 1.1em; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; text-decoration: none; color: var(--ink); font-weight: 600;
}
button:disabled { opacity: .5; cursor: default; }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.danger { color: var(--bad); }
button.small, .button.small { padding: .3em .7em; font-size: .9em; }
.row { display: flex; gap: .5em; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: .5em; align-items: center; justify-content: space-between; flex-wrap: wrap; }

.page { max-width: 760px; margin: 0 auto; padding: 1em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2em; margin: 1em 0; }
.error { background: var(--bad-bg); color: var(--bad); padding: .7em 1em; border-radius: 8px; margin: .8em 0; }
.notice { background: var(--warn-bg); padding: .7em 1em; border-radius: 8px; margin: .8em 0; }
.muted { color: var(--muted); }
.big-code { font-size: 2.4em; letter-spacing: .12em; font-weight: 800; font-family: ui-monospace, Menlo, monospace; }
.center { text-align: center; }

header.top { background: var(--ink); color: #fff; padding: .7em 1em; }
header.top a, header.top button { color: #fff; }
header.top nav { display: flex; gap: 1em; align-items: center; }
header.top nav a.on { text-decoration: underline; }
header.top button { background: transparent; border-color: #ffffff55; }

/* Participant */
.choices { display: grid; gap: .6em; margin: 1em 0; }
.choice {
  display: flex; gap: .7em; align-items: center; padding: .9em 1em; border: 2px solid var(--line);
  border-radius: var(--radius); background: #fff; font-weight: 500; cursor: pointer; text-align: left; width: 100%;
}
.choice input { width: 1.2em; height: 1.2em; margin: 0; }
.choice.picked { border-color: var(--accent); background: #eaf2fa; }
.choice.correct { border-color: var(--good); background: var(--good-bg); }
.choice.wrong { border-color: var(--bad); background: var(--bad-bg); }
.prompt { font-size: 1.25em; font-weight: 600; white-space: pre-wrap; }
.prompt input.blank { display: inline-block; width: 9em; margin: .2em; padding: .35em .5em; font-weight: 400; }
.prompt input.blank.correct { border: 2px solid var(--good); background: var(--good-bg); }
.prompt input.blank.wrong { border: 2px solid var(--bad); background: var(--bad-bg); }
.match-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; align-items: center; padding: .4em 0; border-bottom: 1px solid var(--line); }
.match-row select.correct { border: 2px solid var(--good); background: var(--good-bg); }
.match-row select.wrong { border: 2px solid var(--bad); background: var(--bad-bg); }
.status { margin-top: 1em; padding: .8em 1em; border-radius: 8px; background: var(--bg); }
.status.good { background: var(--good-bg); color: var(--good); }
.status.bad { background: var(--bad-bg); color: var(--bad); }
.timer { font-family: ui-monospace, Menlo, monospace; font-weight: 700; }
.timer.low { color: var(--bad); }
.leaders { list-style: none; padding: 0; margin: .5em 0; }
.leaders li { display: flex; justify-content: space-between; padding: .35em 0; border-bottom: 1px solid var(--line); }

/* Admin */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5em; border-bottom: 1px solid var(--line); vertical-align: top; }
.qlist { list-style: none; padding: 0; margin: 0; }
.qlist > li { display: flex; gap: .8em; align-items: flex-start; padding: .7em 0; border-bottom: 1px solid var(--line); }
.qlist .num { font-weight: 700; min-width: 2em; }
.qlist .body { flex: 1; min-width: 0; }
.qlist .excerpt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor { border: 2px solid var(--accent); }
.option-row { display: flex; gap: .5em; align-items: center; margin: .35em 0; }
.option-row input[type=text] { flex: 1; }
.option-row input[type=checkbox] { width: 1.3em; height: 1.3em; }
.pill { display: inline-block; padding: .1em .55em; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: .85em; }
.pill.open { background: var(--good-bg); border-color: var(--good); }
.pill.ended { background: #eee; }

/* Presenter */
body.present { background: #0f1b24; color: #fff; }
.present-grid { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.present-grid.no-sidebar { grid-template-columns: 1fr; }
.present aside { background: #16252f; padding: 1em; overflow-y: auto; max-height: 100vh; }
.present aside ol { padding: 0; list-style: none; margin: 0; }
.present aside li button {
  width: 100%; text-align: left; background: transparent; color: #cfd8de; border: 1px solid transparent; margin: .15em 0;
  font-weight: 400; display: flex; justify-content: space-between; gap: .5em;
}
.present aside li button.on { border-color: #fff; color: #fff; }
.present aside li .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.present main { display: flex; flex-direction: column; padding: 1.2em 2em; gap: 1em; min-width: 0; }
.present .joinbar { display: flex; justify-content: space-between; align-items: center; gap: 1em; flex-wrap: wrap; }
.present .joinbar .code { font-size: 1.6em; font-weight: 800; letter-spacing: .1em; font-family: ui-monospace, Menlo, monospace; }
.present .stage { flex: 1; }
.present .prompt { font-size: 2em; }
.present button { background: #24394a; color: #fff; border-color: #3a5468; }
.present button.primary { background: var(--accent); border-color: #4b8bc5; }
.present .controls { display: flex; gap: .6em; flex-wrap: wrap; align-items: center; border-top: 1px solid #2c4252; padding-top: 1em; }
.present .opts { display: grid; gap: .6em; margin-top: 1em; }
.present .opt { position: relative; background: #1b2d3a; border-radius: 8px; padding: .8em 1em; font-size: 1.3em; overflow: hidden; }
.present .opt .bar { position: absolute; inset: 0 auto 0 0; background: #2f5576; z-index: 0; transition: width .3s; }
.present .opt.correct .bar { background: #2b7a46; }
.present .opt.correct { outline: 3px solid #4cc26f; }
.present .opt > span { position: relative; z-index: 1; }
.present .opt .count { float: right; }
.present .answers { display: flex; flex-wrap: wrap; gap: .5em; margin-top: .6em; }
.present .answers .a { background: #1b2d3a; padding: .4em .8em; border-radius: 99px; display: flex; gap: .5em; align-items: center; }
.present .answers .a.correct { background: #2b7a46; }
.present .qr-overlay { position: fixed; inset: 0; background: #0f1b24f2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1em; z-index: 10; }
.present .qr-overlay img { width: min(70vh, 640px); background: #fff; border-radius: 12px; padding: .6em; }
.present .muted { color: #9fb0bc; }
.present .leaders li { border-color: #2c4252; font-size: 1.2em; }
.present .error { position: fixed; bottom: 1em; right: 1em; }

@media (max-width: 800px) {
  .present-grid { grid-template-columns: 1fr; }
  .present aside { max-height: 30vh; }
  .present main { padding: 1em; }
}

.row > input[type=text] { flex: 1; width: auto; min-width: 12em; }
.qlist > li > form { flex: 1; margin: 0; }
dialog.card { width: min(520px, 92vw); margin: auto; }
dialog::backdrop { background: #14232e88; }
.present .stage .prompt { margin-bottom: .6em; }
header.top .hint { color: #cfd8de; }
.row > select, td select { width: auto; }

/* Pictures */
img.picture { display: block; max-width: 100%; max-height: 40vh; margin: .6em auto; border-radius: 8px; object-fit: contain; }
.choice img.option-picture { max-height: 8em; max-width: 60%; border-radius: 6px; }
.choice .choice-body { display: flex; flex-direction: column; gap: .3em; }
.present img.picture { max-height: 42vh; }
.present .opt img.option-picture { position: relative; z-index: 1; max-height: 9vh; vertical-align: middle; margin-right: .6em; border-radius: 6px; }
.picture-field { display: flex; gap: .6em; align-items: center; flex-wrap: wrap; margin: .4em 0; }
.picture-field img { margin: 0; max-height: 5em; max-width: 9em; border-radius: 6px; border: 1px solid var(--line); }
.option-row img { max-height: 2.6em; max-width: 4em; border-radius: 4px; border: 1px solid var(--line); }
.file-button { position: relative; overflow: hidden; }
.file-button input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Tap on the picture */
.hotspot-area { position: relative; display: inline-block; max-width: 100%; line-height: 0; touch-action: manipulation; }
.hotspot-area img { display: block; max-width: 100%; max-height: 55vh; margin: 0; cursor: crosshair; border-radius: 8px; }
.hotspot-area .ring, .hotspot-area .dot { position: absolute; transform: translate(-50%, -50%); pointer-events: none; border-radius: 50%; }
.hotspot-area .ring { border: 3px solid var(--good); background: #1d7a3a33; }
.hotspot-area .dot { width: 18px; height: 18px; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 1px #0006; }
.hotspot-area .dot.small { width: 10px; height: 10px; border-width: 2px; opacity: .85; }
.hotspot-area .dot.right { background: var(--good); }
.hotspot-area .dot.wrong { background: var(--bad); }
.present .hotspot-area img { max-height: 50vh; }

/* Put in order */
.order-list { list-style: none; padding: 0; margin: 1em 0; display: grid; gap: .5em; }
.order-list li { display: flex; gap: .5em; align-items: center; padding: .6em .8em; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; }
.order-list li .t { flex: 1; }
.order-list li.correct { border-color: var(--good); background: var(--good-bg); }
.order-list li.wrong { border-color: var(--bad); background: var(--bad-bg); }
.order-list li button { padding: .35em .7em; }

/* Rating */
.rating { display: flex; gap: .4em; flex-wrap: wrap; margin: 1em 0 .3em; }
.rating button { flex: 1; min-width: 2.6em; font-size: 1.15em; padding: .7em 0; }
.rating button.picked { background: var(--accent); color: #fff; border-color: var(--accent); }
.rating-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .9em; }

/* Word cloud on the presenter */
.cloud { display: flex; flex-wrap: wrap; gap: .3em 1em; align-items: center; justify-content: center; padding: 1em; line-height: 1.1; }
.cloud .w { display: inline-flex; align-items: center; gap: .3em; }
.cloud .w button { font-size: .6rem; padding: .1em .4em; opacity: .5; }
.cloud .w:hover button { opacity: 1; }
.big-input { font-size: 1.3em; }

/* How sure are you? */
.sure { margin-top: .8em; display: grid; gap: .4em; }
.sure button.picked { background: var(--accent); color: #fff; border-color: var(--accent); }
.present .sure-panel { margin-top: 1em; }
.present .sure-panel .warn { color: #ffcf6b; font-weight: 700; font-size: 1.2em; }

/* Folders */
details.folder { border-top: 1px solid var(--line); padding: .4em 0; }
details.folder:first-of-type { border-top: 0; }
details.folder > summary { cursor: pointer; padding: .4em 0; display: flex; align-items: center; gap: .4em; }
details.folder .folder-tools { margin-left: auto; display: inline-flex; gap: .4em; }
select.small { padding: .25em .4em; font-size: .9em; width: auto; }
.rating-row { margin: .8em 0; }
.rating-row .statement { font-weight: 600; }
.rating.words button { font-size: .8em; padding: .6em .2em; min-width: 0; }
.present .opt .spread-counts { position: relative; z-index: 1; display: flex; gap: 1em; font-size: .7em; color: #cfd8de; margin-top: .3em; flex-wrap: wrap; }
.priority-list li .pts { min-width: 2em; text-align: center; font-size: 1.2em; }
.points-left { font-weight: 700; color: var(--accent); }
.points-left.done { color: var(--good); }

/* Audience Q&A: the participant's tab and list */
.tabs { display: flex; background: var(--card); border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; border: 0; border-radius: 0; background: transparent; padding: .8em; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.badge { display: inline-block; min-width: 1.4em; margin-left: .4em; padding: 0 .35em; border-radius: 99px; background: var(--bad); color: #fff; font-size: .85em; text-align: center; }
#qa textarea { width: 100%; margin: .5em 0; }
ul.qa-list { list-style: none; padding: 0; margin: .5em 0; display: grid; gap: .5em; }
.qa-item { display: flex; gap: .7em; align-items: center; justify-content: space-between; padding: .7em .8em; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.qa-item.mine { border-color: var(--accent); }
.qa-item.answered { opacity: .65; }
.qa-item .qa-vote { min-width: 3.5em; }
.qa-item .qa-vote.picked { background: var(--accent); color: #fff; border-color: var(--accent); }
.qa-votes { font-weight: 700; min-width: 2.5em; text-align: center; }
.tag { display: inline-block; margin-left: .4em; padding: 0 .5em; border-radius: 99px; border: 1px solid var(--accent); color: var(--accent); font-size: .85em; font-weight: 600; }
.tag.wait { border-color: #e0a800; background: #fff6d6; color: #7a5a00; }
.tag.done { border-color: var(--good); color: var(--good); }
/* Audience Q&A on the presenter */
.present button.qa-has { background: #ffcf6b; color: var(--ink); border-color: #e0a800; }
.present .qa-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2em; align-items: start; }
.present .qa-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: .6em; }
.present .qa-rows li { display: flex; gap: 1em; align-items: center; background: #1b2d3a; border-radius: 8px; padding: .8em 1em; }
.present .qa-count { display: flex; flex-direction: column; align-items: center; min-width: 3.5em; }
.present .qa-count strong { font-size: 1.8em; line-height: 1; }
.present .qa-count span { font-size: .8em; color: #9fb3c2; }
.present .qa-text { flex: 1; font-size: 1.3em; min-width: 0; }
.present .qa-text .muted { font-size: .7em; }
.present .qa-side h3 { margin: 1em 0 .4em; }
.present .qa-side h3:first-child { margin-top: 0; }
.present .qa-small { list-style: none; padding: 0; margin: .4em 0; display: grid; gap: .4em; }
.present .qa-small li { display: flex; gap: .5em; align-items: center; justify-content: space-between; background: #1b2d3a; border-radius: 8px; padding: .5em .7em; }
.present .qa-small.done li { color: #9fb3c2; }
.present .qa-spot { display: flex; flex-direction: column; justify-content: center; gap: .6em; padding: 0 4%; }
.present .qa-spot-text { font-size: clamp(2em, 5vw, 4.5em); font-weight: 700; line-height: 1.2; border-left: 8px solid #ffcf6b; padding-left: .5em; }
.present .qa-spot .muted { font-size: 1.4em; }

/* Brainstorm */
.idea-cat { margin: 1em 0; }
.idea-cat h3 { margin-bottom: .4em; }
ul.ideas { list-style: none; padding: 0; margin: .5em 0; display: grid; gap: .4em; }
ul.ideas li { display: flex; gap: .5em; align-items: center; justify-content: space-between; padding: .5em .7em; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
ul.ideas li.mine { border-color: var(--accent); }
ul.ideas li.empty { border: 0; background: transparent; }
ul.ideas .vote { min-width: 3.5em; }
ul.ideas .vote.picked { background: var(--accent); color: #fff; border-color: var(--accent); }
ul.ideas .count { font-weight: 700; color: var(--muted); }
.present .idea-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5em; }

/* Spin the wheel */
.wheel { position: relative; width: min(56vh, 520px); aspect-ratio: 1; margin: .5em auto; }
.wheel-disc { width: 100%; height: 100%; display: block; border-radius: 50%; box-shadow: 0 0 0 6px #fff, 0 8px 30px #0008; }
.wheel-pointer { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 0; height: 0; z-index: 2;
  border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 34px solid #ffcf6b; filter: drop-shadow(0 2px 3px #0008); }
.wheel-controls { display: grid; gap: .6em; justify-items: center; margin-top: .6em; }
.wheel-result { font-size: 2.4em; font-weight: 800; color: #ffcf6b; text-align: center; }
.wheel-overlay { overflow-y: auto; padding: 1em; }
.picked-banner { background: #ffcf6b; color: var(--ink); font-weight: 800; font-size: 1.3em; text-align: center; padding: .8em; border-radius: var(--radius); margin: 1em 0 0; }
.spin-options { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4em; }
.spin-options li { padding: .35em .8em; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); }
.spin-options li.removed { text-decoration: line-through; opacity: .5; }
.spin-options li.picked { background: #ffcf6b; border-color: #e0a800; font-weight: 700; }
.wheel-result-phone { font-size: 1.1em; }

/* Word cloud as tiles or a list */
.present .view-switch { justify-content: flex-end; }
.present .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7em; margin-top: 1em; }
.present .tile { background: #1b2d3a; border-radius: 10px; padding: .9em 1em; font-size: 1.3em; display: flex; justify-content: space-between; align-items: flex-start; gap: .5em; }
.present .answer-list { font-size: 1.3em; margin-top: 1em; columns: 2; column-gap: 2em; }
.present .answer-list li { break-inside: avoid; padding: .3em 0; border-bottom: 1px solid #2c4252; display: flex; justify-content: space-between; gap: .5em; }
.present .tile button, .present .answer-list button { font-size: .55em; opacity: .5; }
.present .tile:hover button, .present .answer-list li:hover button { opacity: 1; }

/* Keyboard shortcuts: the key shows on hover (and in the tooltip) */
.present button[data-key] { position: relative; }
.present button[data-key]:hover::after, .present button[data-key]:focus-visible::after {
  content: attr(data-key); position: absolute; top: -.9em; right: -.5em; min-width: 1.6em; padding: .1em .35em;
  border-radius: 4px; background: #ffcf6b; color: var(--ink); font: 700 .75rem ui-monospace, Menlo, monospace; text-align: center;
  box-shadow: 0 1px 3px #0008; pointer-events: none;
}

/* The join link with its copy button */
.join-link { display: flex; gap: .6em; align-items: center; flex-wrap: wrap; justify-content: center; margin: .6em 0; }
.join-link .join-url { font-family: ui-monospace, Menlo, monospace; font-size: 1.15em; background: #1b2d3a; padding: .3em .7em; border-radius: 6px; user-select: all; }
.join-link .copy-status { color: #ffcf6b; font-weight: 700; min-width: 4em; }
.qr-overlay .join-link .join-url { font-size: 1.4em; }
.row > input.big-input { min-width: 0; }

/* The welcome screen fills the projector */
.present .lobby { display: flex; align-items: center; justify-content: center; gap: 4vw; flex-wrap: wrap; text-align: center; margin: auto; width: 100%; }
.present .lobby-text { flex: 1 1 32rem; max-width: 60rem; }
.present .lobby-title { font-size: clamp(2rem, min(5.5vw, 8vh), 6rem); line-height: 1.05; margin-bottom: .3em; }
.present .lobby-how { font-size: clamp(1.2rem, min(2.6vw, 4vh), 2.8rem); margin: .3em 0; }
.present .lobby-code { font-size: clamp(3rem, min(11vw, 15vh), 12rem); font-weight: 800; letter-spacing: .08em; font-family: ui-monospace, Menlo, monospace; line-height: 1.1; color: #ffcf6b; }
.present .lobby-count { font-size: clamp(1.1rem, 2vw, 2rem); color: #9fb0bc; margin-top: .6em; }
.present .lobby-qr { width: min(58vh, 40vw); min-width: 220px; background: #fff; border-radius: 16px; padding: .8em; }
.present .lobby .join-link .join-url { font-size: clamp(1rem, 1.6vw, 1.6rem); }

/* The big word cloud */
.present .cloud.big { height: calc(100vh - 300px); min-height: 240px; overflow: hidden; gap: .1em .5em; align-content: center; }
.present .cloud.big .w {
  background: none; border: 0; padding: 0 .1em; font-weight: 800; line-height: 1.05; cursor: pointer; white-space: nowrap;
  font-size: calc(var(--size, 2) * var(--scale, 1) * 0.6rem);
}
.present .cloud.big .w:hover { text-decoration: line-through; opacity: .7; }
.present .cloud.big { flex-direction: column; flex-wrap: nowrap; justify-content: center; align-items: center; }
.present .cloud.big .cloud-row { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 0 .5em; max-width: 100%; }

/* Drag to reorder questions */
.qlist .drag-handle { cursor: grab; touch-action: none; user-select: none; color: var(--muted); font-size: 1.3em; line-height: 1; padding: .1em .2em; }
.qlist .drag-handle:hover { color: var(--ink); }
.qlist li.dragging { position: relative; z-index: 2; background: #fff; box-shadow: 0 6px 20px #14232e33; border-radius: 8px; cursor: grabbing; opacity: .95; }
.qlist li.dragging .drag-handle { cursor: grabbing; }
.qlist li.drop-marker { height: 0; padding: 0; border: 0; border-top: 3px solid var(--accent); margin: -1px 0; }
.indent { margin-left: 1.6em; }

/* Phone remote (/admin/remote/<id>) */
.remote { padding: 14px 14px 24px; display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 0 auto; min-height: 100vh; box-sizing: border-box; }
.remote .topline { display: flex; justify-content: space-between; align-items: center; font-size: .9em; gap: .5em; }
.remote .tabs { display: grid; grid-template-columns: 1fr 1fr; background: #16252f; border-radius: 10px; padding: 3px; gap: 3px; }
.remote .tabs button { border: 0; background: transparent; color: #9fb0bc; padding: .6em; }
.remote .tabs button.on { background: #24394a; color: #fff; }
.remote .qcard { background: #16252f; border-radius: 12px; padding: 12px 14px; }
.remote .qcard .prompt { font-size: 1.15em; margin: .3em 0 .5em; }
.remote .state { display: flex; justify-content: space-between; align-items: center; gap: .5em; }
.remote .pill-open, .remote .pill-closed, .remote .pill-rev { border-radius: 99px; padding: .15em .7em; font-weight: 700; font-size: .85em; white-space: nowrap; }
.remote .pill-open { background: #1d7a3a; color: #fff; }
.remote .pill-closed { background: #3a5468; color: #fff; }
.remote .pill-rev { background: #ffcf6b; color: #14232e; }
.remote .big-timer { font: 800 2em ui-monospace, Menlo, monospace; }
.remote .big-timer.low { color: #ff9f9f; }
.remote .progress { height: 8px; background: #24394a; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.remote .progress div { height: 100%; background: #4b8bc5; }
.remote .pad { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.remote .pad button { padding: 1em .4em; font-size: 1.05em; border-radius: 12px; }
.remote .pad .wide { grid-column: 1 / -1; }
.remote .pad .huge { padding: 1.25em .4em; font-size: 1.25em; }
.remote .pad .toggle-on { background: #2f5576; border-color: #4b8bc5; }
.remote .wheel-result { font-size: 1.6em; font-weight: 800; text-align: center; }
.remote h3 { font-size: .8em; text-transform: uppercase; letter-spacing: .06em; color: #9fb0bc; margin: .6em 0 .5em; }
.remote .secret { background: #1d3a2a; border: 1px solid #2b7a46; border-radius: 12px; padding: 10px 14px; }
.remote .secret h3 { margin-top: .2em; }
.remote .secret .ans { font-size: 1.2em; font-weight: 700; color: #6fdc8c; }
.remote .mini-opts { display: grid; gap: 6px; }
.remote .mini-opt { position: relative; background: #1b2d3a; border-radius: 8px; padding: .5em .7em; overflow: hidden; display: flex; justify-content: space-between; gap: .5em; }
.remote .mini-opt .bar { position: absolute; inset: 0 auto 0 0; height: auto; background: #2f5576; border-radius: 0; }
.remote .mini-opt.correct .bar { background: #2b7a46; }
.remote .mini-opt span { position: relative; }
.remote .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.remote .chips span { background: #24394a; border-radius: 99px; padding: .25em .7em; font-size: .9em; }
.remote .hintline { font-size: .85em; color: #9fb0bc; }
.remote a { color: #9fb0bc; }
.remote .qa-remote { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.remote .qa-remote li { background: #16252f; border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; }
.remote .qa-remote li.on { outline: 2px solid #4b8bc5; }
.remote .qa-remote .row { margin-top: 4px; }
.remote .qa-back { margin-top: 12px; }
/* The presenter's "Phone remote" card */
.remote-card { position: fixed; right: 24px; bottom: 96px; width: 300px; background: #16252f; border: 1px solid #3a5468; border-radius: 14px; padding: 14px; box-shadow: 0 10px 40px #000a; z-index: 20; }
.remote-card img { width: 100%; background: #fff; border-radius: 10px; padding: 6px; display: block; margin-top: .6em; box-sizing: border-box; }
.remote-card p { margin: .5em 0 0; font-size: .9em; }
