/* 90s cartoon skin for the quiz, matching the sitcom and lineup: plum stage, ink outlines,
   cream and pink paper bubbles with hard offset shadows, black tape labels. Loads after quiz.css. */
#quiz-dialog{
  --q-ink:#1a1720;--q-paper:#eee8d9;--q-pink:#ffd6ea;--q-hot:#ff80bd;--q-soft:#e2d5e8;--q-shadow:4px 5px 0 #1a172066;
  color:var(--q-paper);border:3px solid var(--q-ink);border-radius:26px;box-shadow:10px 12px 0 #0e0c1488;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath fill='%23fff' fill-opacity='.07' d='M0 0h1v1H0zm2 2h1v1H2z'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 110%,#c9a8b84d,transparent 60%),
    linear-gradient(150deg,#4a4561,#383d51 58%,#4c5040);
}
#quiz-dialog::backdrop{background:#120f1ccc;backdrop-filter:blur(6px)}

/* header: tape wordmark + cartoon buttons */
#quiz-dialog .chat-header{padding:16px 14px 4px}
#quiz-dialog .chat-wordmark{font-family:var(--display);font-size:27px;color:var(--q-paper)}
#quiz-dialog .chat-wordmark{background:#101010;padding:4px 12px 6px;justify-self:center;transform:rotate(-1.5deg);box-shadow:0 0 3px 2px #15121980}
#quiz-dialog .chat-wordmark span{color:var(--q-hot);font-size:8px;margin-top:3px}
#chat-back,#quiz-dialog .close-dialog{width:38px;height:38px;border-radius:50%;background:var(--q-paper);color:var(--q-ink);border:2.5px solid var(--q-ink);box-shadow:3px 3px 0 #1a172080;font-size:22px;line-height:1;display:grid;place-items:center;transition:transform .15s}
#chat-back:hover,#quiz-dialog .close-dialog:hover{transform:translate(-1px,-1px) rotate(-6deg)}
#chat-back:active,#quiz-dialog .close-dialog:active{transform:translate(2px,2px);box-shadow:none}

/* progress: three chunky inked sections, one per part of the quiz, sitting under the header */
#quiz-dialog .chat-progress{gap:8px;margin:10px 20px 2px}
#quiz-dialog .chat-progress span{height:9px;border-radius:5px;background:#ffffff14;border:2px solid var(--q-ink)}
#quiz-dialog .chat-progress i{background:var(--q-hot)}
#quiz-dialog .chat-stage{color:var(--q-soft);font-size:9px;margin:10px 0 16px}
#quiz-dialog .chat-stage span:first-child{background:#101010;color:#fff2d6;padding:4px 8px 5px;transform:rotate(-1deg);display:inline-block}

/* host row */
.chat-host{display:flex;align-items:center;gap:10px;margin:0 0 4px 2px}
/* Host thread: face in the left column, pinned to the last bubble like a group chat; name small above the bubbles. */
#quiz-dialog .chat-thread{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:10px;align-items:end}
#quiz-dialog .chat-thread-body{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
#quiz-dialog .chat-thread .chat-sender{margin:0 0 -2px 10px;font-family:var(--display);font-size:15px;color:var(--q-paper);opacity:.75;line-height:1.1}
#quiz-dialog .chat-thread .chat-avatar{margin-bottom:6px}
.chat-avatar{flex:none;width:58px;height:58px;border-radius:50%;background:#f3ead6;border:3px solid var(--q-ink);box-shadow:3px 4px 0 #1a172080;overflow:hidden;display:grid;place-items:center;animation:host-bob 2.8s ease-in-out infinite}
.chat-avatar .host-svg{width:100%;height:100%;overflow:hidden}
#quiz-dialog .chat-host .chat-sender{margin:0;font-family:var(--display);font-size:19px;color:var(--q-paper);line-height:1.1}

/* bubbles: paper, ink, hard shadow, a little tilt */
#quiz-dialog .chat-bubble{background:var(--q-paper);color:#38303e;border:2.5px solid var(--q-ink);border-radius:20px 20px 20px 6px;box-shadow:var(--q-shadow);font-size:18px}
#quiz-dialog .chat-preface{background:var(--q-pink);color:#4a2a3b;font-size:15px;transform:rotate(-.6deg)}
#quiz-dialog .chat-preface:nth-of-type(2n){transform:rotate(.6deg)}
#quiz-dialog .chat-messages h2.chat-bubble{font-family:var(--display);font-size:24px;line-height:1.15;transform:rotate(.4deg)}
#quiz-dialog .chat-bubble strong{color:#b0306f}
#quiz-dialog .chat-note{color:var(--q-soft)}

/* answers: stickers you slap down */
#quiz-dialog .chat-option{background:#2c2a3c;color:var(--q-paper);border:2.5px solid var(--q-ink);border-radius:16px 16px 6px 16px;box-shadow:3px 4px 0 #0e0c1499;transition:transform .15s,background .15s}
#quiz-dialog .chat-option:hover{background:#3a3750;transform:translate(-2px,-2px) rotate(-.8deg)}
#quiz-dialog .chat-option:active{transform:translate(2px,2px);box-shadow:none}
#quiz-dialog .chat-option.selected{background:var(--q-hot);color:var(--q-ink);border-color:var(--q-ink);transform:rotate(-1.2deg);font-weight:700}
#quiz-dialog .chat-option:nth-child(2n).selected{transform:rotate(1.2deg)}
#quiz-dialog .choice-check{color:var(--q-ink)}
#quiz-dialog .chat-custom::placeholder{color:#e2d5e899}
#quiz-dialog .chat-context{background:#2c2a3c;border:2.5px solid var(--q-ink);box-shadow:3px 4px 0 #0e0c1499}

/* inputs + buttons */
#quiz-dialog .chat-composer input,#quiz-dialog .chat-field{background:var(--q-paper);color:var(--q-ink);border:2.5px solid var(--q-ink);border-radius:16px;box-shadow:inset 2px 2px 0 #1a172022}
#quiz-dialog .chat-composer input::placeholder,#quiz-dialog .chat-field::placeholder{color:#8c7f96}
#quiz-dialog .chat-composer input:focus,#quiz-dialog .chat-field:focus{outline:3px solid var(--q-hot);outline-offset:2px}
#quiz-dialog .chat-start,#quiz-dialog .chat-next{background:var(--q-hot);color:var(--q-ink);border:3px solid var(--q-ink);box-shadow:4px 5px 0 #0e0c14aa;font-family:var(--display);font-size:22px;font-weight:400;transition:transform .15s,box-shadow .15s}
#quiz-dialog .chat-start:hover,#quiz-dialog .chat-next:hover:not(:disabled){background:#ff9ccd;transform:translate(-2px,-2px)}
#quiz-dialog .chat-start:active,#quiz-dialog .chat-next:active:not(:disabled){transform:translate(3px,3px);box-shadow:none}
#quiz-dialog .chat-next:disabled{background:#2c2a3c;color:#e2d5e866;box-shadow:none;border-color:#1a172099}
#quiz-dialog .chat-intro>label:first-child{color:var(--q-soft)}
#quiz-dialog .chat-error{color:#ffb3d4}
#quiz-dialog .chat-footer,#quiz-dialog .chat-fine{color:#e2d5e8aa}
#quiz-dialog .chat-restart{color:var(--q-paper)}

/* uploads + result card */
#quiz-dialog .chat-upload{background:#2c2a3c;border:2.5px dashed var(--q-paper);box-shadow:3px 4px 0 #0e0c1499}
#quiz-dialog .chat-upload:hover{background:#3a3750}
#quiz-dialog .chat-upload-icon{background:var(--q-hot);color:var(--q-ink);border:2.5px solid var(--q-ink)}
#quiz-dialog .opposite-card{background:var(--q-paper);color:#38303e;border:3px solid var(--q-ink);box-shadow:6px 7px 0 #0e0c14aa;backdrop-filter:none;transform:rotate(-.8deg)}
#quiz-dialog .opposite-card h3{color:var(--q-ink)}
#quiz-dialog .opposite-kicker,#quiz-dialog .opposite-detail span{color:#8c7f96}
#quiz-dialog .opposite-icon{color:#b0306f}
#quiz-dialog .opposite-detail{border-top:2px dashed #1a172040}

@keyframes host-bob{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-3px) rotate(2deg)}}
@media(max-width:560px){
  #quiz-dialog{border-radius:0;border:0;box-shadow:none}
  .chat-avatar{width:50px;height:50px}
  #quiz-dialog .chat-messages h2.chat-bubble{font-size:22px}
  #quiz-dialog .chat-wordmark{font-size:23px}
}
@media(prefers-reduced-motion:reduce){.chat-avatar{animation:none}}

/* one hand-lettered voice for everything a person reads; only the tape labels stay typewriter-ish */
#quiz-dialog,#quiz-dialog button,#quiz-dialog input,#quiz-dialog textarea{font-family:var(--display)}
#quiz-dialog .chat-note{font-size:17px}
#quiz-dialog .chat-error{font-size:16px}
#quiz-dialog .chat-fine{font-size:14px;line-height:1.4}
#quiz-dialog .chat-option{font-size:18px}
#quiz-dialog .chat-field,#quiz-dialog .chat-composer input{font-size:19px}
#quiz-dialog .chat-intro>label:first-child{font-size:16px}
#quiz-dialog .chat-stage,#quiz-dialog .opposite-kicker,#quiz-dialog .opposite-detail span,#quiz-dialog .chat-wordmark span{font-family:Arial,Helvetica,sans-serif}
#quiz-dialog .chat-reaction{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:14px}
#quiz-dialog .chat-reaction:empty{display:none}
/* every host bubble is the same bubble; the question only stands out by its highlighted word */
#quiz-dialog .chat-preface,#quiz-dialog .chat-preface:nth-of-type(2n),#quiz-dialog .chat-messages h2.chat-bubble{background:var(--q-paper);color:#38303e;font-size:21px;font-weight:400;line-height:1.25;padding:13px 18px;transform:none}
@media(max-width:560px){#quiz-dialog .chat-preface,#quiz-dialog .chat-preface:nth-of-type(2n),#quiz-dialog .chat-messages h2.chat-bubble{font-size:19px}}
/* height slider: big hand-lettered readout, chunky cartoon track and thumb */
#quiz-dialog .chat-slider{display:flex;flex-direction:column;align-items:stretch;gap:14px;padding:26px 4px 0}
#quiz-dialog .chat-slider output{align-self:center;text-align:center;font-family:var(--display);font-size:60px;line-height:1;color:var(--q-paper)}
#quiz-dialog .chat-slider output span{display:block;font-size:19px;color:var(--q-soft);margin-top:4px}
#quiz-dialog .chat-slider input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:18px;margin:8px 0 0;background:var(--q-paper);border:2.5px solid var(--q-ink);border-radius:999px;box-shadow:var(--q-shadow);cursor:pointer}
#quiz-dialog .chat-slider input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:36px;height:36px;border-radius:50%;background:var(--q-hot);border:3px solid var(--q-ink);box-shadow:2px 3px 0 #1a172099;cursor:grab}
#quiz-dialog .chat-slider input[type=range]::-moz-range-thumb{width:32px;height:32px;border-radius:50%;background:var(--q-hot);border:3px solid var(--q-ink);box-shadow:2px 3px 0 #1a172099;cursor:grab}
#quiz-dialog .chat-slider input[type=range]:focus-visible{outline:3px solid var(--q-hot);outline-offset:6px}
#quiz-dialog .chat-slider-ends{display:flex;justify-content:space-between;font-size:15px;color:var(--q-soft);padding:0 2px}
#quiz-dialog .chat-slider-any{display:flex;align-items:center;gap:10px;align-self:center;margin-top:4px;font-family:var(--display);font-size:19px;color:var(--q-paper);cursor:pointer}
#quiz-dialog .chat-slider-any input{width:20px;height:20px;accent-color:var(--q-hot)}
#quiz-dialog .chat-slider input[type=range]:disabled{opacity:.35;cursor:not-allowed}
/* options two across so a whole list fits on screen; the typed-in answer spans the row */
#quiz-dialog .chat-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
#quiz-dialog .chat-option{width:auto;min-height:52px;padding:10px 30px 10px 14px;font-size:17px;line-height:1.15;overflow-wrap:anywhere}
#quiz-dialog .chat-custom{grid-column:1/-1;padding-right:14px}
#quiz-dialog .chat-option .choice-check{right:10px}
/* big thumb-sized Next: full width under the options, hint centered above it */
#quiz-dialog .chat-footer{flex-direction:column;align-items:stretch;gap:8px;padding-top:16px;text-align:center;font-size:13px}
#quiz-dialog .chat-footer .chat-next{width:100%;height:58px;font-size:24px}
#quiz-dialog .chat-composer{align-items:center}
#quiz-dialog .chat-composer input{height:58px}
#quiz-dialog .chat-composer .chat-next{width:auto;height:58px;padding:0 22px;font-size:22px}
#quiz-dialog .chat-next:hover:not(:disabled){transform:translate(-2px,-2px)}
/* Next stays pinned to the bottom of the quiz, so it's reachable even when a long list scrolls */
#quiz-dialog .chat-footer{position:sticky;bottom:-18px;margin-bottom:-18px;padding-bottom:18px;background:linear-gradient(to bottom,transparent,#3d4052f0 14px);z-index:1}
/* short phones (iPhone SE, mini): tighten everything so a full question fits without scrolling */
@media(max-height:760px){
  #quiz-dialog .chat-header{padding:10px 12px 2px}
  #quiz-dialog .chat-stage{margin:6px 0 10px}
  #quiz-dialog .chat-host{margin-bottom:2px}
  #quiz-dialog .chat-avatar{width:40px;height:40px}
  #quiz-dialog .chat-host .chat-sender{font-size:17px}
  #quiz-dialog .chat-messages{gap:6px;margin-bottom:8px}
  #quiz-dialog .chat-thread{column-gap:8px}
  #quiz-dialog .chat-thread-body{gap:6px}
  #quiz-dialog .chat-thread .chat-sender{font-size:13px}
  #quiz-dialog .chat-preface,#quiz-dialog .chat-preface:nth-of-type(2n),#quiz-dialog .chat-messages h2.chat-bubble{font-size:17px;padding:9px 14px}
  #quiz-dialog .chat-note{font-size:15px;margin-bottom:10px}
  #quiz-dialog .chat-options{gap:7px}
  #quiz-dialog .chat-option{min-height:42px;padding:7px 26px 7px 12px;font-size:16px}
  #quiz-dialog .chat-reaction{margin-top:8px}
  #quiz-dialog .chat-footer{padding-top:10px;gap:4px;font-size:12px}
  #quiz-dialog .chat-footer .chat-next{height:50px;font-size:22px}
  #quiz-dialog .chat-slider{padding-top:12px;gap:10px}
  #quiz-dialog .chat-slider output{font-size:48px}
}
#quiz-dialog #chat-hint:empty{display:none}
@media(max-height:760px){#quiz-dialog .chat-option{font-size:15px;gap:4px}}

/* Keyboard up on a phone (modal-viewport.js sets data-keyboard): tighten the chrome so the question stays in view. */
@media(max-width:560px){
  #quiz-dialog[data-keyboard] .chat-header{padding:8px 12px 0}
  #quiz-dialog[data-keyboard] .chat-wordmark span,#quiz-dialog[data-keyboard] .chat-stage,#quiz-dialog[data-keyboard] .chat-progress{display:none}
  #quiz-dialog[data-keyboard] .chat-note{font-size:14px;margin-bottom:6px}
  #quiz-dialog[data-keyboard] .chat-wordmark{font-size:20px}
  #quiz-dialog[data-keyboard] .chat-avatar{width:34px;height:34px}
  #quiz-dialog[data-keyboard] .chat-composer{padding-top:12px}
  #quiz-dialog .chat-footer{margin-inline:-16px;padding-inline:16px}
}

/* Combined screens: several short questions as blocks, one Next (app.js renderCombo). */
#quiz-dialog .chat-blocks{display:flex;flex-direction:column;gap:18px;margin-top:6px}
#quiz-dialog .chat-block{margin:0;padding:12px 12px 10px;border:2px solid #ffffff22;border-radius:18px;background:#ffffff08;min-width:0}
#quiz-dialog .chat-block-title{font-family:var(--display);font-size:20px;line-height:1.15;padding:0 6px;color:var(--q-paper,#fffdf5)}
#quiz-dialog .chat-block-title strong{color:var(--q-hot,#ff80bd)}
#quiz-dialog .chat-block-title small{font-size:13px;opacity:.7;font-weight:400}
#quiz-dialog .chat-block-note{font-size:13px;line-height:1.4;margin:4px 0 8px;opacity:.75}
#quiz-dialog .chat-chips{flex-direction:row;flex-wrap:wrap;align-items:stretch;justify-content:flex-start;gap:8px;margin-top:8px}
#quiz-dialog .chat-chip{width:auto;min-height:40px;padding:8px 14px;font-size:14px;border-radius:14px 14px 5px 14px}
#quiz-dialog .chat-chip .choice-check{display:none}
#quiz-dialog .chat-block .chat-field{width:100%;margin-top:8px}
#quiz-dialog .chat-block .chat-field-small{width:auto;min-width:160px;max-width:100%;min-height:40px;margin-top:8px;padding:6px 14px;font-size:14px;font-family:var(--display);background:#2c2a3c;color:var(--q-paper);border:2.5px dashed #6b6480;border-radius:14px 14px 5px 14px;box-shadow:none}
#quiz-dialog .chat-block .chat-field-small::placeholder{color:#b9aec6}
#quiz-dialog .chat-block .chat-field-small:focus{outline:none;border-style:solid;border-color:var(--q-hot);background:#3a3750}
#quiz-dialog .chat-block .chat-reaction:empty{display:none}
#quiz-dialog .chat-block .chat-reaction{margin-top:8px}
@media (max-width:600px){#quiz-dialog .chat-chip{font-size:13px;padding:7px 11px}}

/* Tighter combined screens (user, 2026-10-12: fit better): real chips that wrap, a small reaction line, no fat focus ring. */
#quiz-dialog .chat-blocks{gap:14px}
#quiz-dialog .chat-block{padding:10px 12px 10px;border-radius:16px}
#quiz-dialog .chat-block-title{font-size:19px}
#quiz-dialog .chat-block .chat-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
#quiz-dialog .chat-block .chat-chip{width:auto;flex:0 0 auto;min-height:38px;padding:6px 14px;font-size:15px;line-height:1.2;border-radius:999px;box-shadow:2px 3px 0 #0e0c1499;border-width:2px}
#quiz-dialog .chat-block .chat-chip.selected{transform:none}
#quiz-dialog .chat-block .chat-chip:hover{transform:translate(-1px,-1px) rotate(0)}
#quiz-dialog .chat-block .chat-chip:focus:not(:focus-visible){outline:none}
#quiz-dialog .chat-block .chat-reaction{margin-top:8px;gap:4px}
#quiz-dialog .chat-block .chat-reaction .chat-bubble{font-size:15px;padding:5px 12px;margin:0;box-shadow:2px 3px 0 #0e0c1466;transform:none;animation:none}
#quiz-dialog .chat-block .chat-field-small{min-height:38px;margin-top:8px;border-radius:999px}
#quiz-dialog .chat-block .chat-field{margin-top:8px}
@media (max-width:600px){#quiz-dialog .chat-block .chat-chip{font-size:14px;padding:6px 12px}}

/* Picked answers are purple (user, 2026-10-12), everywhere in the quiz. */
#quiz-dialog .chat-option.selected,#quiz-dialog .chat-block .chat-chip.selected{background:linear-gradient(135deg,#9b6cff,#6d3fc7);color:#fffdf5;border-color:var(--q-ink)}
#quiz-dialog .chat-option.selected .choice-check{color:#fffdf5}

/* The quiz's accent is purple, not pink (user, 2026-10-12): highlighted words, Next, sliders, reaction bubbles. */
#quiz-dialog{--q-hot:#b48cff;--q-pink:#e4d6ff}

/* Reactions inside combined screens read as a quiet aside, not a cream bubble (user, 2026-10-12). */
#quiz-dialog .chat-block .chat-reaction .chat-bubble{background:transparent;color:#d9c9ff;border:0;box-shadow:none;padding:2px 4px;font-size:16px;transform:none}
#quiz-dialog .chat-block .chat-reaction .chat-bubble::before{content:'↳ ';opacity:.6}

/* Two sliders on the first screen: compact readouts, side by side on wide screens. */
#quiz-dialog .chat-block .chat-slider{margin-top:6px}
#quiz-dialog .chat-block .chat-slider output{font-size:40px}

/* No cream bubbles (user, 2026-10-12): the host's line is a dark speech bubble above their head, the question a dark card. */
#quiz-dialog .chat-messages .chat-preface{position:relative;background:#2c2a3c;color:var(--q-paper);border:2.5px solid var(--q-ink);border-radius:16px 16px 16px 4px;box-shadow:3px 4px 0 #0e0c1499;transform:none;font-size:16px;margin-bottom:12px}
#quiz-dialog .chat-messages .chat-preface::after{content:'';position:absolute;left:18px;bottom:-13px;width:14px;height:13px;background:#2c2a3c;border-left:2.5px solid var(--q-ink);border-bottom:2.5px solid var(--q-ink);clip-path:polygon(0 0,100% 0,0 100%);transform:skewX(-18deg)}
#quiz-dialog .chat-messages h2.chat-bubble{background:#1f1d2a;color:var(--q-paper);border-color:var(--q-ink);transform:none}
#quiz-dialog .chat-reaction .chat-bubble{background:transparent;color:#d9c9ff;border:0;box-shadow:none;padding:2px 4px;font-size:17px;transform:none}
#quiz-dialog .chat-reaction .chat-bubble::before{content:'↳ ';opacity:.6}

/* A cast member drops into a reaction (app.js cameoMarkup): a round face, a name, a line. */
#quiz-dialog .chat-cameo{display:flex;align-items:flex-end;gap:10px;margin-top:6px}
#quiz-dialog .chat-cameo-face{flex:none;width:48px;height:48px;border-radius:50%;background:var(--q-hot);border:2.5px solid var(--q-ink);overflow:hidden;box-shadow:2px 3px 0 #0e0c1499}
#quiz-dialog .chat-cameo-svg{width:100%;height:100%;display:block}
#quiz-dialog .chat-cameo-name{display:block;font-family:var(--display);font-size:14px;color:var(--q-soft);margin:0 0 2px 6px}
#quiz-dialog .chat-reaction .chat-cameo-line{background:#2c2a3c;color:var(--q-paper);border:2.5px solid var(--q-ink);border-radius:16px 16px 16px 4px;box-shadow:3px 4px 0 #0e0c1499;padding:8px 12px;font-size:16px}
#quiz-dialog .chat-reaction .chat-cameo-line::before{content:none}
#quiz-dialog .chat-block .chat-statements{margin-top:8px}
#quiz-dialog .chat-block .chat-reaction .chat-cameo-line{background:#2c2a3c;color:var(--q-paper);border:2.5px solid var(--q-ink);border-radius:16px 16px 16px 4px;box-shadow:3px 4px 0 #0e0c1499;padding:8px 12px;font-size:16px}
#quiz-dialog .chat-block .chat-reaction .chat-cameo-line::before{content:none}
/* Block reactions swap in for the note line under the title (user, 2026-10-12): same spot, no overlap, no growing box. */
/* The line is always there, note or not, so a quip never appears out of nowhere and shifts the chips (user, 2026-10-12). */
#quiz-dialog .chat-block-sub{display:grid;margin:2px 0 4px;min-height:19px}
#quiz-dialog .chat-block-sub>*{grid-area:1/1;min-width:0}
#quiz-dialog .chat-block-sub .chat-block-note{margin:0;align-self:center}
#quiz-dialog .chat-block-sub:has(.chat-reaction:not(:empty)) .chat-block-note{visibility:hidden}
#quiz-dialog .chat-block .chat-block-sub .chat-reaction{margin:0;gap:2px;align-self:center}
#quiz-dialog .chat-block .chat-block-sub .chat-reaction .chat-bubble{padding:0;font-size:14px;line-height:1.35;text-align:left;background:none}
/* Smaller sliders on combined screens (user, 2026-10-12): slim track, small thumb, compact readout. */
#quiz-dialog .chat-block .chat-slider{padding:6px 2px 0;gap:6px}
#quiz-dialog .chat-block .chat-slider output{font-size:28px}
#quiz-dialog .chat-block .chat-slider output span{display:inline;font-size:14px;margin:0 0 0 8px}
#quiz-dialog .chat-block .chat-slider input[type=range]{height:10px;margin-top:4px;border-width:2px;box-shadow:none}
#quiz-dialog .chat-block .chat-slider input[type=range]::-webkit-slider-thumb{width:24px;height:24px;border-width:2.5px;box-shadow:1px 2px 0 #1a172099}
#quiz-dialog .chat-block .chat-slider input[type=range]::-moz-range-thumb{width:20px;height:20px;border-width:2.5px;box-shadow:1px 2px 0 #1a172099}
#quiz-dialog .chat-block .chat-slider-ends{font-size:13px}
#quiz-dialog .chat-block .chat-slider-any{font-size:16px;margin-top:0}
/* iOS zooms the page into any text box under 16px; keep every quiz box at 16px or more (user, 2026-10-12). */
#quiz-dialog input:not([type=range]):not([type=checkbox]),#quiz-dialog textarea,#quiz-dialog .chat-block .chat-field-small{font-size:max(16px,1em)}
/* With the keyboard up, Next follows the content instead of floating over the box being typed in. */
#quiz-dialog[data-keyboard] .chat-footer{position:static;margin-bottom:0;padding-bottom:12px;background:none}
#quiz-dialog[data-keyboard] #chat-hint{display:none}
/* The typed-in option is chip-sized: the 16px no-zoom font made it 50px tall next to 38px chips. */
#quiz-dialog .chat-block .chat-field-small{height:38px;min-height:0;min-width:140px;padding:0 14px;line-height:1.2}
/* Chips fill each row so blocks on one screen line up as a set (user, 2026-10-12). */
#quiz-dialog .chat-block .chat-chips .chat-chip{flex:1 1 auto;justify-content:center;text-align:center}
#quiz-dialog .chat-block{margin-top:4px}

/* The vices grid (user, 2026-10-12): one row per substance, a "you" box and a "your date" box of chips.
   Boxes sit side by side when they fit, stack on phones. */
#quiz-dialog .chat-rows{display:flex;flex-direction:column;gap:10px;margin:6px 0 14px}
#quiz-dialog .chat-row{padding:8px 10px 10px;border:2px solid #ffffff22;border-radius:16px;background:#ffffff08;min-width:0}
#quiz-dialog .chat-row-label{font-family:var(--display);font-size:19px;line-height:1.15;margin:0 0 6px;padding:0 2px;color:var(--q-hot)}
#quiz-dialog .chat-cells{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}
#quiz-dialog .chat-block.chat-cell{margin:0;padding:6px 8px 8px;border-color:#ffffff14;background:#0000001f;border-radius:12px}
#quiz-dialog .chat-cell-who{font-family:var(--display);font-size:14px;letter-spacing:.02em;color:var(--q-soft);padding:0 4px}
/* Same as the blocks: the quip line is always there, so a date pick never shifts the chips (user, 2026-10-12). */
#quiz-dialog .chat-cell-sub{display:grid;min-height:19px;margin-bottom:2px}
#quiz-dialog .chat-cell-sub .chat-reaction{margin:0;gap:2px}
#quiz-dialog .chat-cell-sub .chat-reaction:empty{display:none}
#quiz-dialog .chat-cell-sub .chat-reaction .chat-bubble{padding:0 4px;font-size:14px;line-height:1.35;text-align:left;background:none}
#quiz-dialog .chat-cell .chat-chips{margin-top:4px}
#quiz-dialog .chat-cell .chat-chips .chat-chip{min-height:36px;padding:5px 10px;font-size:14px}
#quiz-dialog .chat-cell-empty{display:flex;flex-direction:column;justify-content:center;padding:6px 8px 8px;border:2px dashed #ffffff22;border-radius:12px;color:var(--q-soft)}
#quiz-dialog .chat-cell-empty p{margin:4px 4px 0;font-size:14px;font-style:italic}
@media (max-width:600px){#quiz-dialog .chat-cell .chat-chips .chat-chip{font-size:13px;padding:5px 8px}}

/* A host's face on a chip (the school picks, user 2026-10-12): a small inked circle in front of the label. */
#quiz-dialog .chat-option-face{display:inline-grid;place-items:center;width:26px;height:26px;margin:-4px 6px -4px -4px;border-radius:50%;background:#f3ead6;border:2px solid var(--q-ink);overflow:hidden;vertical-align:middle;flex:none}
#quiz-dialog .chat-option-face .host-svg{width:100%;height:100%}
#quiz-dialog .chat-option.selected .chat-option-face{border-color:#fffdf5}

/* Give height sliders a full finger target; keep dragging on the control itself. */
#quiz-dialog .chat-slider input[type=range]{height:44px;min-height:44px;padding:0;border:0;background:transparent;box-shadow:none;touch-action:none}
#quiz-dialog .chat-slider input[type=range]::-webkit-slider-runnable-track{height:14px;background:var(--q-paper);border:2px solid var(--q-ink);border-radius:999px}
#quiz-dialog .chat-slider input[type=range]::-webkit-slider-thumb{width:36px;height:36px;margin-top:-13px;border-width:3px}
#quiz-dialog .chat-slider input[type=range]::-moz-range-track{height:10px;background:var(--q-paper);border:2px solid var(--q-ink);border-radius:999px}
#quiz-dialog .chat-slider input[type=range]::-moz-range-thumb{width:30px;height:30px;border-width:3px}
