/* wawaquiz: space look (own colours, not the black of wawaparty) */
.quiz { --qbg: #11142b; --qbg2: #181c3d; --qline: #2b3163; --qink: #eceaff; --qmute: #9aa0cf; --qpink: #e58bb8; --qpurple: #9b6bd1; --qgreen: #6fe3a8;
  position: fixed; inset: 0; z-index: 10; display: flex; color: var(--qink); font-family: system-ui, "WP Emoji", sans-serif;
  background: radial-gradient(900px 500px at 20% -10%, #2a2466 0%, transparent 60%), radial-gradient(800px 500px at 100% 110%, #4a2a6e 0%, transparent 55%), var(--qbg); }
.quiz[hidden] { display: none; }
body.in-quiz .frame { display: none; }
body.in-quiz .bar { left: auto; right: 0; width: 320px; transform: none; z-index: 30; }
.quiz *, .quiz *::before, .quiz *::after { box-sizing: border-box; }
.q-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.q-top { height: 64px; flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--qline); background: linear-gradient(90deg, #4b3a98, #a9689f); }
.q-code { background: transparent; border: 0; color: #ffe3f1; font: 12px ui-monospace, monospace; cursor: pointer; padding: 0; }
.q-code:hover { text-decoration: underline; }
.q-name { color: var(--qmute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-grow { flex: 1; }
.q-leave { justify-self: end; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(20, 10, 40, 0.35); color: #fff; border-radius: 10px; padding: 7px 14px; cursor: pointer; font: inherit; font-size: 14px; }
.q-stage { flex: 1; overflow-y: auto; padding: 22px 24px 40px; }
.q-side { width: 320px; flex: none; border-left: 1px solid var(--qline); background: rgba(10, 12, 30, 0.6); padding: 64px 12px 12px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.q-box { border: 1px solid var(--qline); border-radius: 16px; background: linear-gradient(180deg, rgba(34, 40, 92, 0.55), rgba(18, 21, 52, 0.7)); padding: 14px; }
.q-box h2, .q-box h3 { margin: 0 0 8px; font: 600 13px/1.2 system-ui; letter-spacing: 0.06em; text-transform: uppercase; color: var(--qpink); }
.q-box h2 { font-size: 15px; margin-bottom: 14px; }
.q-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 34vh; overflow-y: auto; overflow-x: hidden; }
.q-people li { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 6px; border-radius: 10px; font-size: 14px; }
.q-people li.off { opacity: 0.45; }
.q-people li.done { background: rgba(111, 227, 168, 0.12); }
.q-rank { width: 16px; text-align: right; color: var(--qmute); font-size: 12px; }
.q-pn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-pts { font-weight: 700; color: #fff; }
.q-ok { color: var(--qgreen); font-weight: 800; }
.q-gain { color: var(--qgreen); font-weight: 800; font-size: 13px; }
.q-kick { border: 0; background: transparent; color: var(--qmute); cursor: pointer; font-size: 18px; }
.q-av { width: 28px; height: 28px; flex: none; border-radius: 50%; background: #2c3166 center / cover; border: 1px solid #454c93; display: inline-block; }
.q-av.s { width: 22px; height: 22px; }
.q-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.q-chathead { display: flex; align-items: center; justify-content: space-between; border: 0; background: transparent; color: var(--qink); padding: 12px 14px; font: 600 14px system-ui; cursor: default; text-align: left; }
.q-chev { display: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.q-chathead.new::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--qpink); margin-left: 8px; }
.q-chatlog { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 14px 8px; display: flex; flex-direction: column; gap: 5px; font-size: 14px; overflow-wrap: anywhere; }
.q-msg b { color: var(--qpink); font-weight: 600; }
.q-muted { color: var(--qmute); font-size: 13px; margin: 0; }
.q-chatform { padding: 8px; border-top: 1px solid var(--qline); }
.q-chatform input, .q-search, .q-answer input { width: 100%; background: #0b0d22; color: var(--qink); border: 1px solid var(--qline); border-radius: 12px; padding: 10px 14px; font: inherit; outline: none; }
.q-chatform input:focus, .q-search:focus, .q-answer input:focus { border-color: var(--qpurple); box-shadow: 0 0 0 3px rgba(155, 107, 209, 0.25); }

/* the box with the corners */
.q-game, .q-end, .q-lobby { max-width: 760px; margin: 0 auto; }
.q-title { font: 400 clamp(22px, 4.2vw, 34px)/1.25 Georgia, "Times New Roman", serif; text-align: center; margin: 14px 8px 18px; color: #f3f1ff; text-wrap: balance; }
.q-gbox { position: relative; padding: 16px; border-radius: 24px; border: 1px solid var(--qline); background: radial-gradient(120% 100% at 50% 0%, #1d2350 0%, #0e1130 75%); box-shadow: 0 14px 50px rgba(0, 0, 0, 0.45), inset 0 0 50px rgba(120, 90, 220, 0.12); overflow: hidden;
  background-image: radial-gradient(1.5px 1.5px at 12% 20%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 78% 14%, #cfc6ff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 88% 72%, #ffd9ee 50%, transparent 52%), radial-gradient(1px 1px at 22% 84%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 60% 90%, #cfc6ff 50%, transparent 52%), radial-gradient(1px 1px at 40% 8%, #fff 50%, transparent 52%), radial-gradient(120% 100% at 50% 0%, #1d2350 0%, #0e1130 75%); }
.q-corner { position: absolute; color: var(--qpink); opacity: 0.8; font-size: 15px; line-height: 1; }
.q-corner.tl { top: 8px; left: 12px; } .q-corner.tr { top: 8px; right: 12px; } .q-corner.bl { bottom: 8px; left: 12px; } .q-corner.br { bottom: 8px; right: 12px; }
.q-surface { position: relative; min-height: min(46vh, 340px); display: grid; place-items: center; text-align: center; padding: 26px 22px; border-radius: 16px; background: #03040b;
  box-shadow: 0 0 0 1px #2a3068, 0 0 34px 3px rgba(150, 120, 255, 0.28), inset 0 0 44px rgba(110, 90, 200, 0.2); }
.q-surface.is-img { padding: 10px; background: #f3eef8; }
.q-surface img { display: block; max-width: 100%; max-height: min(52vh, 460px); border-radius: 10px; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.q-text { margin: 0; font: 400 clamp(20px, 3.4vw, 28px)/1.4 Georgia, "Times New Roman", serif; text-wrap: pretty; }
.q-deco { margin: 0; font-size: 64px; color: var(--qpink); text-shadow: 0 0 24px var(--qpurple); }
.q-count { display: grid; gap: 6px; }
.q-count small { color: var(--qmute); font-size: 16px; }
.q-cd { font: 400 96px/1 Georgia, serif; color: #fff; text-shadow: 0 0 30px var(--qpurple); }
.q-reveal { display: grid; gap: 8px; justify-items: center; max-width: 100%; }
.q-reveal small { color: var(--qpink); font-size: 14px; letter-spacing: 0.04em; }
.q-reveal > b { font: 400 clamp(28px, 5vw, 44px)/1.2 Georgia, serif; overflow-wrap: anywhere; }
.q-info { margin: 0; color: var(--qmute); font-size: 15px; }
.q-solvers { margin-top: 10px; display: grid; gap: 6px; justify-items: center; }
.q-found, .q-nobody { margin: 0; color: var(--qmute); }
.q-sv-row { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.q-sv-row em { color: var(--qmute); font-style: normal; font-size: 13px; }
.q-sv-row b { color: var(--qgreen); }

.q-prog { display: flex; align-items: center; gap: 12px; margin: 16px 2px 14px; color: var(--qpink); font-size: 14px; }
.q-qn::before { content: "✦ "; }
.q-bar { flex: 1; height: 5px; border-radius: 99px; background: #272c5c; overflow: hidden; }
.q-barfill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--qpurple), var(--qpink)); transition: width 0.14s linear; }
.q-secs { min-width: 42px; text-align: right; color: var(--qink); font-variant-numeric: tabular-nums; }
.q-secs.hot { color: #ff7a9c; font-weight: 700; }
.q-answer { position: relative; display: flex; gap: 8px; }
.q-answer input { padding: 16px 20px; font-size: 18px; text-align: center; border-radius: 18px; background: #080a1c; }
.q-answer button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--qmute); font-size: 22px; cursor: pointer; padding: 8px 12px; }
.q-answer.locked input { opacity: 0.6; }
.q-answer.won input { border-color: var(--qgreen); box-shadow: 0 0 0 3px rgba(111, 227, 168, 0.2); }
.q-feedback { min-height: 24px; margin: 10px 0 0; text-align: center; color: var(--qmute); }
.q-feedback.ok { color: var(--qgreen); font-weight: 700; }
.shake { animation: qshake 0.35s; }
@keyframes qshake { 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

/* lobby */
.q-hero { text-align: center; margin: 4px 0 18px; }
.q-hero h1 { font: 400 clamp(34px, 6vw, 52px)/1.1 Georgia, serif; margin: 0; background: linear-gradient(90deg, #cdb8ff, var(--qpink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.q-hero p { margin: 6px 0 0; color: var(--qmute); }
.q-share { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--qline); border-radius: 14px; background: rgba(10, 12, 30, 0.6); }
.q-share code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d8d3ff; }
.q-share button { border: 0; border-radius: 10px; background: #2f3478; color: #fff; padding: 6px 14px; cursor: pointer; font: inherit; }
.q-startrow { display: grid; gap: 6px; justify-items: center; margin: 16px 0; }
.q-start { border: 0; border-radius: 16px; padding: 14px 44px; font: 700 18px system-ui; color: #1b1033; background: linear-gradient(90deg, #c9b0ff, var(--qpink)); cursor: pointer; box-shadow: 0 8px 26px rgba(155, 107, 209, 0.4); }
.q-start:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.q-start[hidden], .q-link[hidden] { display: none; }
.q-hint { margin: 4px 0 10px; color: var(--qmute); font-size: 13px; }
.q-c { text-align: center; }
.quiz input { max-width: none; }
.q-set { display: grid; gap: 4px; }
.q-field { display: grid; gap: 6px; margin: 6px 0; font-size: 14px; color: var(--qmute); }
.q-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-step { display: flex; align-items: center; border: 1px solid var(--qline); border-radius: 14px; background: #0b0d22; }
.q-step button { width: 44px; height: 46px; border: 0; background: transparent; color: var(--qink); font-size: 20px; cursor: pointer; }
.q-step button:disabled { opacity: 0.35; cursor: default; }
.q-sv { flex: 1; text-align: center; color: #fff; font-size: 18px; } .q-sv small { margin-left: 5px; color: var(--qmute); font-size: 13px; }
.q-seg { display: flex; border: 1px solid var(--qline); border-radius: 14px; padding: 3px; background: #0b0d22; gap: 3px; }
.q-seg button { flex: 1; border: 0; border-radius: 11px; background: transparent; color: var(--qmute); padding: 9px 6px; cursor: pointer; font: inherit; display: grid; gap: 2px; justify-items: center; }
.q-seg button b { font-weight: 600; font-size: 14px; } .q-seg button small { font-size: 12px; opacity: 0.8; }
.q-seg button.on { background: #2d3270; color: #fff; }
.q-seg button:disabled { cursor: default; }
.q-toggle { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 8px 0; cursor: pointer; }
.q-toggle span { display: grid; gap: 2px; } .q-toggle b { font-weight: 600; font-size: 15px; } .q-toggle small { color: var(--qmute); font-size: 13px; }
.q-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.q-toggle i { flex: none; width: 46px; height: 26px; border-radius: 99px; background: #2b3060; position: relative; transition: background 0.15s; }
.q-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #c9cdf5; transition: transform 0.15s; }
.q-toggle input:checked + i { background: #d36fa3; }
.q-toggle input:checked + i::after { transform: translateX(20px); background: #fff; }
.q-toggle input:focus-visible + i { outline: 2px solid var(--qpurple); outline-offset: 2px; }
.q-chead { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; }
.q-link { border: 0; background: transparent; color: var(--qpink); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
.q-cats { display: grid; gap: 0; margin-top: 8px; max-height: 420px; overflow-y: auto; }
.q-cat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px; border-top: 1px solid rgba(60, 68, 130, 0.5); }
.q-cat small { display: block; color: var(--qmute); font-size: 12px; }
.q-cat.off b { text-decoration: line-through; opacity: 0.6; }
.q-tri { display: flex; border: 1px solid var(--qline); border-radius: 12px; padding: 2px; background: #0b0d22; }
.q-tri button { width: 38px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--qmute); cursor: pointer; font-size: 15px; }
.q-tri button.on { background: #2d3270; color: #fff; }
.q-tri button:disabled { cursor: default; }

/* end */
.q-podium { display: flex; justify-content: center; align-items: flex-end; gap: 14px; padding: 8px; min-height: 260px; }
.q-step { }
.q-podium .q-step { display: grid; justify-items: center; gap: 6px; width: 28%; max-width: 150px; border: 0; background: transparent; }
.q-podium .q-step b { font-size: 15px; overflow-wrap: anywhere; text-align: center; }
.q-podium .q-step span { color: var(--qpink); font-weight: 700; }
.q-podium .q-av { width: 54px; height: 54px; }
.q-blk { width: 100%; display: grid; place-items: center; font-size: 34px; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, #3a3f8c, #232766); }
.q-step.p1 .q-blk { height: 120px; } .q-step.p2 .q-blk { height: 84px; } .q-step.p3 .q-blk { height: 58px; }
.q-rest { margin: 16px auto; max-width: 420px; padding-left: 28px; color: var(--qmute); }
.q-rest li { padding: 3px 0; } .q-rest li b { float: right; color: #fff; }
.q-end .q-c { margin-top: 18px; display: grid; gap: 8px; justify-items: center; }
.q-confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 40; }
.q-confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: qfall linear forwards; }
@keyframes qfall { to { transform: translateY(110vh) rotate(720deg); } }
.q-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #2d3270; color: #fff; padding: 10px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: 0.2s; z-index: 50; max-width: 90vw; text-align: center; }
.q-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .q-barfill, .q-toast { transition: none; } .shake, .q-confetti i { animation: none; } }

/* phone: players as a strip, chat as a drawer at the bottom */
@media (max-width: 800px) {
  body.in-quiz .bar { width: 100%; height: 60px; padding: 12px 10px; background: #0d1028; border-bottom: 1px solid #2b3163; align-items: center; }
  .quiz { flex-direction: column; padding-top: 60px; }
  .q-top { height: 46px; padding: 0 12px; }
  .q-stage { padding: 12px 12px 120px; }
  .q-side { position: fixed; left: 0; right: 0; bottom: 0; width: auto; border: 0; padding: 0; gap: 0; background: #0d1028; z-index: 12; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4); }
  .q-side .q-box { border-radius: 0; border-width: 1px 0 0; background: transparent; }
  .q-side .q-box:first-child { padding: 6px 8px; }
  .q-side .q-box:first-child h3 { display: none; }
  .q-people { display: flex; overflow-x: auto; max-height: none; gap: 6px; }
  .q-people li { flex: none; padding: 3px 8px 3px 4px; background: rgba(34, 40, 92, 0.6); }
  .q-rank { display: none; }
  .q-pn { max-width: 90px; }
  .q-chat { flex: none; height: 46px; transition: height 0.22s ease; }
  .q-side.open .q-chat { height: 56vh; }
  .q-chathead { cursor: pointer; flex: none; padding: 12px 16px; }
  .q-chev { display: block; transform: rotate(-135deg); margin-top: 4px; }
  .q-side.open .q-chev { transform: rotate(45deg); margin-top: -4px; }
  .q-title { margin-top: 6px; }
  .q-surface { min-height: 34vh; padding: 18px 14px; }
  .q-two { grid-template-columns: 1fr; }
  .q-answer input { font-size: 17px; padding: 14px 16px; }
}
@media (max-width: 800px) and (prefers-reduced-motion: reduce) { .q-chat { transition: none; } }

/* header like the template: room + link left, logo in the middle, leave right */
.q-id { min-width: 0; display: grid; gap: 1px; }
.q-rn { font-size: 14px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-idrow { display: flex; gap: 8px; align-items: center; min-width: 0; font-size: 12px; color: #f0dcff; }
.q-idrow .q-code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-brand { display: flex; align-items: center; gap: 8px; font: 400 24px Georgia, serif; color: #fff; letter-spacing: 0.02em; text-shadow: 0 2px 12px rgba(40, 10, 70, 0.5); }
.q-brand img { display: block; }
.q-sub { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: -6px 0 8px; }
.q-back { justify-self: start; border: 0; background: transparent; color: var(--qmute); cursor: pointer; font: inherit; font-size: 14px; padding: 6px 4px; }
.q-back:hover { color: #fff; }
.q-rules { display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--qline); background: rgba(10, 12, 30, 0.6); color: var(--qink); border-radius: 12px; padding: 7px 14px; cursor: pointer; font: inherit; font-size: 14px; }
.q-rules b { font-weight: 600; }
.q-rules span { color: var(--qpink); font-size: 13px; }
.q-rules:hover { border-color: var(--qpurple); }
.q-herologo { display: block; margin: 36px auto 4px; filter: drop-shadow(0 6px 26px rgba(155, 107, 209, 0.55)); }
.q-hero { margin-top: 0; }
.q-hero h1 { font-size: clamp(40px, 7vw, 64px); }
.q-sum { margin: 10px 0 0; color: var(--qmute); font-size: 14px; }
.q-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.q-second { border: 1px solid var(--qline); border-radius: 16px; background: rgba(34, 40, 92, 0.55); color: var(--qink); padding: 14px 30px; font: 600 16px system-ui; cursor: pointer; }
.q-second:hover { border-color: var(--qpurple); }
.q-alone { margin-top: 10px; text-align: left; font-size: 13px; }
.q-alone b { display: block; color: var(--qink); }
.q-alone p { margin: 2px 0 8px; color: #8fa0ff; }
.q-alone[hidden] { display: none; }
.q-ghost { border: 1px solid var(--qline); background: rgba(10, 12, 30, 0.6); color: var(--qink); border-radius: 10px; padding: 6px 12px; cursor: pointer; font: inherit; font-size: 13px; }
.q-tabs { display: flex; border-bottom: 1px solid var(--qline); }
.q-tabs .q-chathead { flex: 1; justify-content: center; gap: 6px; border-bottom: 2px solid var(--qpink); color: #fff; }
.q-tab { flex: 1; border: 0; background: transparent; color: var(--qmute); cursor: pointer; font: 600 14px system-ui; padding: 12px 10px; border-bottom: 2px solid transparent; }
.q-tab:hover { color: #fff; }
.q-tab[hidden] { display: none; }

/* rules window */
.q-modal { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 16px; background: rgba(4, 5, 16, 0.72); backdrop-filter: blur(3px); }
.q-modal[hidden] { display: none; }
.q-dialog { width: min(880px, 100%); height: min(640px, 100%); display: flex; flex-direction: column; border: 1px solid var(--qline); border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #1b2050, #10132f); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), 0 0 40px rgba(140, 100, 230, 0.2); }
.q-dhead { display: flex; align-items: center; gap: 10px; padding: 14px 18px; }
.q-dhead h2 { margin: 0; flex: 1; font: 600 18px system-ui; }
.q-x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--qline); background: rgba(10, 12, 30, 0.6); color: var(--qink); font-size: 20px; line-height: 1; cursor: pointer; }
.q-dmain { flex: 1; min-height: 0; display: grid; grid-template-columns: 230px 1fr; border-top: 1px solid var(--qline); border-bottom: 1px solid var(--qline); }
.q-dlang { padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--qline); overflow-y: auto; }
.q-dl-h { margin: 0 0 4px 4px; font-size: 12px; color: var(--qmute); }
.q-dlang button { text-align: left; display: grid; gap: 2px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--qink); padding: 10px 12px; cursor: pointer; font: inherit; }
.q-dlang button b { font-weight: 600; font-size: 14px; } .q-dlang button small { color: var(--qmute); font-size: 12px; min-height: 14px; }
.q-dlang button.on { background: rgba(120, 100, 220, 0.22); border-color: #4a4f9c; }
.q-dlang button:disabled { cursor: default; }
.q-dbody { overflow-y: auto; padding: 8px 20px 20px; min-height: 0; }
.q-dh { margin: 18px 0 8px; font: 600 14px system-ui; color: var(--qink); letter-spacing: 0.02em; text-transform: none; }
.q-dh::first-letter { color: var(--qpink); }
.q-dfoot { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; }
.q-played { color: var(--qmute); font-size: 13px; }
.q-save { border: 0; border-radius: 12px; padding: 10px 34px; font: 700 15px system-ui; color: #2a1030; background: linear-gradient(90deg, #f1b0d3, #e58bb8); cursor: pointer; }
.q-dbody .q-cats { max-height: none; }

@media (max-width: 800px) {
  .q-top { grid-template-columns: 1fr auto; height: 50px; padding: 0 10px; }
  .q-brand { display: none; }
  .q-sub { grid-template-columns: auto 1fr; }
  .q-sub { grid-template-columns: auto 1fr auto; }
  .q-sub .q-sub-r { display: block; }
  .q-rules { justify-self: end; padding: 6px 10px; }
  .q-herologo { width: 84px; height: 84px; margin-top: 12px; }
  .q-tab { display: none; }
  .q-tabs .q-chathead { border-bottom: 0; justify-content: space-between; }
  .q-alone { display: none; }
  .q-dialog { height: 100%; border-radius: 14px; }
  .q-dmain { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .q-dlang { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--qline); }
  .q-dlang .q-dl-h { width: 100%; }
  .q-dlang button { flex: 1; }
}
.q-dhead h2 { text-transform: none; letter-spacing: 0; color: #fff; }
.q-dlang button small:empty { display: none; }

/* chat rows like wawaparty: role icon, picture, name, text */
.q-chatform { position: relative; }
.q-msg { display: block; line-height: 22px; }
.q-msg > * { vertical-align: middle; }
.q-msg .q-av { margin-right: 5px; }
.q-msg .q-role { width: 16px; height: 16px; margin-right: 5px; }
.q-msg .q-mt a { color: #9fb0ff; }
.quiz .emoji-box { background: #14183f; border: 1px solid var(--qline); border-radius: 12px 12px 0 0; }
.quiz .emoji-row:hover, .quiz .emoji-row.on { background: rgba(155, 107, 209, 0.25); }
.quiz .emoji-nm { color: var(--qink); }

.q-sub-r { justify-self: end; }
.q-edit { padding: 7px 12px; text-decoration: none; display: inline-block; }
/* quiz editor */

.q-tw { margin-left: 6px; padding: 1px 6px; border-radius: 99px; background: #9146ff; color: #fff; font: 700 10px system-ui, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
.q-twnote { margin: 8px 12px 0; padding: 8px 10px; border-radius: 10px; background: rgb(145 70 255 / 0.14); color: inherit; font-size: 12.5px; }
.q-twstate { display: block; margin-top: 2px; color: #b794ff; }
