/* Sky Live — ابتكارات السماء. Palette and type follow the main website (4irt.om). */
:root {
  --deep: #050C18; --deep-2: #0A1C34; --deep-3: #12335C;
  --brand: #2B6EA6; --brand-2: #3D93D6; --cyan: #22C5EE; --cyan-dark: #0DA2C9;
  --gold: #C9A567; --gold-dark: #A17F45;
  --bg: #F5F8FC; --card: #FFFFFF; --ink: #0C2036; --muted: #59718A; --line: #E2E9F3;
  --ok: #138a5b; --bad: #d93a4a; --warn: #a86a00;
  --c0: #E5484D; --c1: #3D7BF0; --c2: #E0A93B; --c3: #1DA370; --c4: #8B5CF6; --c5: #22C5EE; --c6: #E3418A; --c7: #EF6C28;
  --radius: 20px; --radius-sm: 13px;
  --shadow-sm: 0 4px 16px rgba(7,23,43,.06); --shadow-md: 0 20px 46px rgba(7,23,43,.13);
  --font: 'Tajawal', 'Inter', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --font-lat: 'Inter', 'Tajawal', system-ui, sans-serif;
  --t: all .3s cubic-bezier(.4,0,.2,1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* user-written text (questions, options, answers) keeps its own direction, so "online?" isn't printed as "?online" */
.q-title, .q-text, .qtext, .tt, .bt, .note, .opt span, .rlabel span, .nm, .who, .texts li, .mine, .qa-item p, .qa-row p,
.qa-stage-list p, .qa-hl blockquote, .opts-preview li, .event-main h3, .lobby-title, .page-hero h1, .p-title span, .cloud .w, .nchip { unicode-bidi: plaintext; }
html { -webkit-text-size-adjust: 100%; }
html[lang=en] body { font-family: var(--font-lat); }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
::selection { background: var(--cyan); color: var(--deep); }
.muted { color: var(--muted); } .small { font-size: .86rem; } .center { text-align: center; }
.mono, [dir=ltr].code, .giant, .code-in { font-family: var(--font-lat); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html[dir=rtl] .flip { display: inline-block; transform: scaleX(-1); }
.c0 { --c: var(--c0); } .c1 { --c: var(--c1); } .c2 { --c: var(--c2); } .c3 { --c: var(--c3); }
.c4 { --c: var(--c4); } .c5 { --c: var(--c5); } .c6 { --c: var(--c6); } .c7 { --c: var(--c7); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,238,.45); } 70% { box-shadow: 0 0 0 24px rgba(34,197,238,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,238,0); } }

/* ============================================================ buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; font: inherit; font-weight: 700; font-size: .95rem;
  padding: .66em 1.4em; border-radius: 50px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: var(--t); }
.btn:hover { border-color: var(--cyan); color: var(--brand); }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(135deg, var(--cyan), var(--brand)); color: #fff; border-color: transparent; box-shadow: 0 10px 24px rgba(34,197,238,.25); }
.btn.primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(34,197,238,.38); }
.btn.dark { background: var(--deep-2); color: #fff; border-color: transparent; }
.btn.dark:hover { background: var(--brand); color: #fff; }
.btn.ghost { background: transparent; }
.btn.big { padding: .85em 1.9em; font-size: 1.05rem; }
.btn.block { display: flex; width: 100%; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.icon-btn { font: inherit; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  cursor: pointer; display: inline-grid; place-items: center; text-decoration: none; transition: var(--t); }
.icon-btn:hover { border-color: var(--cyan); color: var(--brand); }
.icon-btn.danger:hover { border-color: var(--bad); color: var(--bad); }
.link { font: inherit; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; text-align: start; }
.link.danger { color: var(--bad); }
.inline { display: inline; margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }
input, textarea, select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75em .95em; width: 100%; transition: var(--t); }
input:hover, textarea:hover, select:hover { border-color: rgba(34,197,238,.5); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 4px rgba(34,197,238,.15); }
input[type=file] { padding: .55em .7em; cursor: pointer; color: var(--muted); font-size: .9rem; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .92rem; }
textarea { resize: vertical; }
.alert { background: rgba(217,58,74,.1); color: var(--bad); padding: .7em 1em; border-radius: 12px; font-weight: 700; margin: 0; }
.alert.soft { background: rgba(201,165,103,.16); color: var(--gold-dark); }
.okmsg { color: var(--ok); font-weight: 800; margin: 0; }
.lang { font-family: var(--font-lat); font-weight: 700; font-size: .84rem; text-decoration: none; padding: .42em 1em; border-radius: 50px;
  border: 1px solid rgba(34,197,238,.45); color: var(--cyan); background: rgba(34,197,238,.08); transition: var(--t); }
.lang:hover { background: var(--cyan); color: var(--deep); }
.codebox { white-space: pre-wrap; direction: ltr; text-align: left; background: var(--bg); padding: 12px; border-radius: 12px; font-size: .8rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid rgba(34,197,238,.45); color: var(--cyan); border-radius: 50px;
  padding: .25rem 1rem .25rem .8rem; font-size: .8rem; font-weight: 700; background: rgba(34,197,238,.06); margin: 0 0 .8rem; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(201,165,103,.25); }

/* ============================================================ brand (logo + names, like the main site) */
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; }
.brand img { width: 44px; height: 44px; object-fit: contain; flex: none; filter: drop-shadow(0 0 10px rgba(34,197,238,.35)); }
.brand-names { display: flex; flex-direction: column; line-height: 1.25; }
.brand-names b { font-weight: 800; font-size: 1.08rem; color: #fff; white-space: nowrap; font-family: 'Tajawal', sans-serif; }
.brand-names small { font-family: 'Inter', sans-serif; direction: ltr; text-align: start; color: var(--gold); font-size: .6rem; font-weight: 700; letter-spacing: .26em; }
html[dir=ltr] .brand-names b { font-family: 'Inter', sans-serif; }
.app-chip { margin-inline-start: .8rem; padding: .22rem .85rem; border-radius: 50px; font-size: .8rem; font-weight: 700; color: var(--cyan);
  border: 1px solid rgba(34,197,238,.4); background: rgba(34,197,238,.08); white-space: nowrap; }

/* ============================================================ organizer panel (light, like the site's content pages) */
.admin { display: flex; flex-direction: column; min-height: 100vh; }
.admin > main { flex: 1; width: 100%; }
.admin > section, .admin > header, .admin > footer { width: 100%; }
.site-nav { background: rgba(5,12,24,.94); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid rgba(201,165,103,.18);
  box-shadow: 0 1px 0 rgba(34,197,238,.12); position: sticky; top: 0; z-index: 20; padding: .6rem 5%; }
.nav-in { max-width: 1220px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.nav-left, .nav-right { display: flex; align-items: center; gap: .6rem; }
.site-nav .btn.ghost { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.25); padding: .45em 1.1em; font-size: .86rem; }
.site-nav .btn.ghost:hover { color: var(--gold); border-color: var(--gold); }
@media (max-width: 640px) { .app-chip { display: none; } .brand-names b { font-size: .98rem; } .brand img { width: 38px; height: 38px; } }

.page-hero { background: radial-gradient(120% 90% at 82% 8%, rgba(34,197,238,.16), transparent 55%), radial-gradient(70% 60% at 8% 100%, rgba(201,165,103,.1), transparent 60%),
  linear-gradient(150deg, var(--deep) 0%, var(--deep-2) 55%, var(--deep-3) 100%); color: #fff; padding: 2.4rem 5% 4.6rem; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 45% 15%, #fff, transparent), radial-gradient(1.5px 1.5px at 78% 34%, #fff, transparent),
  radial-gradient(1px 1px at 90% 70%, #fff, transparent), radial-gradient(1px 1px at 28% 80%, #fff, transparent), radial-gradient(1px 1px at 62% 60%, #fff, transparent); background-repeat: no-repeat; }
.page-hero .hero-in { max-width: 1220px; margin: 0 auto; position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.4rem; flex-wrap: wrap; }
.page-hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin: 0 0 .3rem; }
.page-hero p { margin: 0; color: rgba(255,255,255,.75); }
.page-hero .code-pill { font-family: var(--font-lat); color: var(--gold); font-weight: 800; letter-spacing: .08em; }
.page-hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.page-hero .btn.ghost:hover { color: var(--gold); border-color: var(--gold); background: rgba(201,165,103,.08); }
.page-hero a.back { color: rgba(255,255,255,.7); text-decoration: none; font-weight: 600; font-size: .9rem; display: inline-block; margin-bottom: .6rem; }
.page-hero a.back:hover { color: var(--gold); }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 5% 4rem; }
.wrap.lift { margin-top: -2.6rem; position: relative; }
.wrap.wide { padding-top: 1.6rem; }
.wrap.wide.lift { margin-top: 0; }
.wrap.narrow { max-width: 520px; padding-top: 3rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm); position: relative; }
.card h2 { font-size: 1.15rem; }
.section-title { font-size: 1.3rem; margin: 1.8rem 0 1rem; display: flex; align-items: center; gap: .6rem; }
.section-title::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, var(--cyan), transparent); opacity: .5; }
html[dir=rtl] .section-title::after { background: linear-gradient(270deg, var(--cyan), transparent); }
.login { margin-top: 1rem; }
.login .login-logo { width: 84px; height: 84px; margin: 0 auto .6rem; display: block; filter: drop-shadow(0 8px 22px rgba(34,197,238,.35)); }
.login h1 { text-align: center; font-size: 1.4rem; }
.create { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.create .grow { flex: 1 1 280px; }
.events { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
@media (max-width: 420px) { .events { grid-template-columns: 1fr; } }
.event { display: flex; flex-direction: column; gap: 1rem; margin: 0; transition: var(--t); overflow: visible; }
.event::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--cyan), var(--gold)); transform: scaleX(0); transition: transform .45s; }
.event:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(34,197,238,.4); }
.event:hover::before { transform: scaleX(1); }
.event-main { text-decoration: none; color: inherit; display: block; }
.event-main h3 { margin: 0 0 .35rem; font-size: 1.12rem; }
.event-main p { margin: 0; font-size: .92rem; }
.stat { display: inline-flex; align-items: center; gap: .3rem; }
.code-badge { font-family: var(--font-lat); font-weight: 800; letter-spacing: .06em; color: var(--brand); background: rgba(34,197,238,.1); padding: .1rem .6rem; border-radius: 8px; }
.event .row { margin-top: auto; }
.more { position: relative; }
.more summary { list-style: none; } .more summary::-webkit-details-marker { display: none; }
.more .menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 5; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 6px; min-width: 200px; box-shadow: var(--shadow-md); display: grid; }
.more .menu > a, .more .menu .link { display: block; width: 100%; padding: .55em .8em; border-radius: 9px; text-decoration: none; color: var(--ink); font-weight: 600; }
.more .menu .link.danger { color: var(--bad); }
.more .menu > a:hover, .more .menu .link:hover { background: var(--bg); }
.empty-state { text-align: center; padding: 2.4rem 1rem; color: var(--muted); }
.empty-state img { width: 70px; margin: 0 auto 1rem; opacity: .8; }

.editor { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 1.4rem; align-items: start; }
.editor aside { position: sticky; top: 84px; }
@media (max-width: 960px) { .editor { grid-template-columns: 1fr; } .editor aside { position: static; } }
.qlist { list-style: none; margin: 0; padding: 0; }
.qitem { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.qitem.is-editing { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34,197,238,.15); }
.qnum { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--brand); font-family: var(--font-lat);
  border: 1.5px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, conic-gradient(from 210deg, var(--cyan), var(--gold), var(--cyan)) border-box; }
.qtext { margin: 6px 0; font-weight: 700; font-size: 1.04rem; }
.qactions { display: grid; grid-template-columns: repeat(2, 38px); gap: 6px; }
.badge { display: inline-block; font-size: .76rem; font-weight: 700; padding: 2px 11px; border-radius: 50px; background: rgba(43,110,166,.08); color: var(--brand); }
.badge.t-quiz { background: rgba(201,165,103,.18); color: var(--gold-dark); }
.badge.t-wordcloud { background: rgba(34,197,238,.12); color: var(--cyan-dark); }
.badge.t-rating { background: rgba(227,65,138,.1); color: var(--c6); }
.badge.t-open { background: rgba(29,163,112,.1); color: var(--ok); }
.opts-preview { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.opts-preview li { font-size: .84rem; padding: 2px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); }
.opts-preview li.is-correct { border-color: var(--ok); color: var(--ok); font-weight: 800; background: rgba(19,138,91,.06); }
.opts-preview li.is-correct::before { content: "✓ "; }
.warn-box { display: flex; gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: rgba(201,165,103,.12);
  border: 1px solid rgba(201,165,103,.45); color: var(--gold-dark); border-radius: 14px; padding: .8rem 1rem; font-weight: 700; margin-bottom: 1rem; }

.types { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.types legend { font-weight: 700; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.type-card, .correct, .switch { position: relative; }
.type-card input, .correct input, .switch input { position: absolute; opacity: 0; width: 1px; height: 1px; top: 0; inset-inline-start: 0; margin: 0; pointer-events: none; }
.type-card span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; border: 1.5px solid var(--line);
  font-size: .82rem; text-align: center; cursor: pointer; font-weight: 700; transition: var(--t); background: var(--bg); }
.type-card i { font-style: normal; font-size: 1.3rem; }
.type-card span:hover { border-color: rgba(34,197,238,.6); }
.type-card input:checked + span { border-color: var(--cyan); background: rgba(34,197,238,.1); color: var(--brand); box-shadow: 0 0 0 3px rgba(34,197,238,.12); }
.type-card input:focus-visible + span { outline: 3px solid var(--cyan); }
.label-row { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.lbl { font-weight: 700; font-size: .92rem; }
.opt-rows { display: grid; gap: 8px; margin-bottom: 8px; }
.opt-row { display: flex; gap: 8px; align-items: center; }
.swatch { width: 8px; align-self: stretch; border-radius: 6px; background: var(--c, var(--line)); flex: none; }
.swatch.s0 { --c: var(--c0); } .swatch.s1 { --c: var(--c1); } .swatch.s2 { --c: var(--c2); } .swatch.s3 { --c: var(--c3); }
.swatch.s4 { --c: var(--c4); } .swatch.s5 { --c: var(--c5); } .swatch.s6 { --c: var(--c6); } .swatch.s7 { --c: var(--c7); }
.correct { flex-direction: row; cursor: pointer; }
.correct input { position: absolute; opacity: 0; }
.correct span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; border: 1.5px solid var(--line); color: #c5cfdc; font-weight: 900; transition: var(--t); }
.correct input:checked + span { background: var(--ok); border-color: var(--ok); color: #fff; }
.qform:not(.is-quiz) .only-quiz { display: none; }
.switch { flex-direction: row; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 46px; height: 26px; border-radius: 99px; background: #cfd9e6; position: relative; flex: none; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + span { background: linear-gradient(135deg, var(--cyan), var(--brand)); }
.switch input:checked + span::after { transform: translateX(20px); }
[dir=rtl] .switch input:checked + span::after { transform: translateX(-20px); }

/* footer (same as the main site) */
.site-foot { background: radial-gradient(90% 70% at 90% 0%, rgba(34,197,238,.08), transparent 55%), var(--deep); color: rgba(255,255,255,.72);
  padding: 2.8rem 5% 1.4rem; border-top: 1px solid rgba(201,165,103,.3); }
.foot-in { max-width: 1220px; margin: 0 auto; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot-col p { font-size: .92rem; margin: .6rem 0 0; }
.foot-col h5 { color: var(--cyan); font-size: 1rem; margin: 0 0 .8rem; font-weight: 800; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: .45rem; font-size: .92rem; }
.foot-col a { color: inherit; text-decoration: none; transition: var(--t); }
.foot-col a:hover { color: var(--gold); }
.site-foot .copy { max-width: 1220px; margin: 2rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.08); text-align: center; font-size: .84rem; color: rgba(255,255,255,.5); }

/* ============================================================ participant (phone) */
.play { min-height: 100vh; min-height: 100dvh; color: #fff;
  background: radial-gradient(120% 70% at 85% -5%, rgba(34,197,238,.22), transparent 55%), radial-gradient(80% 60% at 0% 100%, rgba(201,165,103,.12), transparent 60%),
  linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 55%, var(--deep-3) 100%) fixed;
  --ink: #fff; --muted: #9fb3c8; --line: rgba(255,255,255,.16); --card: rgba(255,255,255,.07); }
.play input, .play textarea { background: rgba(255,255,255,.96); color: var(--deep); border-color: transparent; }
.join-screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 16px; }
.join-top { display: flex; justify-content: space-between; align-items: center; }
.join-card { margin: auto; width: 100%; max-width: 400px; text-align: center; padding: 10px 0 30px; animation: rise .5s ease; }
.join-card h1 { font-size: 1.7rem; margin-bottom: 1.2rem; }
.join-card form { display: grid; gap: 12px; text-align: start; }
.join-logo { width: 96px; height: 96px; margin: 0 auto .6rem; display: block; filter: drop-shadow(0 10px 28px rgba(34,197,238,.45)); }
.code-in { font-size: 2.3rem; text-align: center; letter-spacing: .14em; font-weight: 800; padding: .4em; border-radius: 18px; }
.hint { color: var(--muted); font-size: .9rem; margin: 0; text-align: center; }
.kicker { color: var(--gold); font-weight: 700; margin: 0 0 6px; font-family: var(--font-lat); letter-spacing: .1em; }
.field { color: #fff; }
.powered { text-align: center; color: rgba(255,255,255,.45); font-size: .78rem; padding: 10px 0 4px; display: flex; gap: 6px; justify-content: center; align-items: center; }
.powered img { width: 18px; height: 18px; }

.play-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.p-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; position: sticky; top: 0; z-index: 3;
  background: rgba(5,12,24,.88); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(201,165,103,.18); }
.p-title { display: flex; align-items: center; gap: 10px; font-weight: 800; min-width: 0; }
.p-title img { width: 32px; height: 32px; flex: none; }
.p-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 4px rgba(62,224,143,.2); flex: none; animation: blink 2s infinite; }
.p-view { flex: 1; padding: 10px 16px 120px; animation: rise .35s ease; }
.q-type { color: var(--cyan); font-size: .84rem; font-weight: 700; margin: 8px 0 4px; }
.q-text { font-size: 1.45rem; margin-bottom: 18px; }
.opts { display: grid; gap: 10px; }
.opts.grid2 { grid-template-columns: 1fr 1fr; }
.opts.grid2 .opt { flex-direction: column; justify-content: center; text-align: center; min-height: 118px; }
.opt { font: inherit; display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 18px; border: 0; border-radius: 18px; cursor: pointer;
  background: var(--c); color: #fff; font-size: 1.1rem; font-weight: 800; text-align: start; box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 58%, #000);
  transition: transform .1s, opacity .2s, box-shadow .1s; }
.opt.c2, .opt.c5 { color: #06202e; }
.opt:active { transform: translateY(4px); box-shadow: 0 1px 0 color-mix(in srgb, var(--c) 58%, #000); }
.opt .shape { font-size: 1.3rem; opacity: .9; }
.opt.dim { opacity: .3; }
.opt.picked { outline: 4px solid #fff; outline-offset: 3px; }
.opt.static { cursor: default; margin: 14px 0; }
.stars { display: flex; justify-content: center; gap: 6px; margin: 20px 0; direction: ltr; }
.star { font: inherit; font-size: 2.7rem; line-height: 1; background: none; border: 0; color: rgba(255,255,255,.22); cursor: pointer; display: grid; padding: 4px; transition: color .15s, transform .15s; }
.star small { font-size: .8rem; color: var(--muted); font-family: var(--font-lat); }
.star.lit, .stars:hover .star:not(:hover ~ .star) { color: var(--gold); }
.star:active { transform: scale(1.2); }
.txt-form { display: grid; gap: 12px; }
.txt-form input { font-size: 1.2rem; padding: .8em; text-align: center; }
.sent { display: flex; align-items: center; gap: 10px; justify-content: center; font-weight: 800; font-size: 1.15rem; color: #6cf0b0; margin: 18px 0 6px; }
.check { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #3ee08f; color: #0b2a1b; animation: pop .4s ease; }
.mine { background: var(--card); border-radius: 14px; padding: 12px 16px; margin: 12px 0; border-inline-start: 4px solid var(--cyan); }
.stars-mine { text-align: center; font-size: 2rem; color: var(--gold); margin: 8px 0; direction: ltr; }
.stars-mine span { color: rgba(255,255,255,.2); }
.res { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.rbar { margin: 10px 0; }
.rlabel { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.rlabel b { font-family: var(--font-lat); }
.rlabel em { color: var(--cyan); font-style: normal; font-weight: 600; }
.rtrack { height: 12px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.rtrack i { display: block; height: 100%; border-radius: 99px; background: var(--c); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.rbar.mini { margin: 6px 0; }
.avg { text-align: center; } .avg b { font-size: 2.6rem; font-family: var(--font-lat); } .avg span { color: var(--muted); }
.texts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.texts li { background: rgba(255,255,255,.06); padding: 10px 12px; border-radius: 12px; }
.wait { text-align: center; padding: 48px 10px 20px; }
.wait.small { padding-top: 20px; }
.wait h2 { font-size: 1.6rem; }
.pulse { width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem;
  background: rgba(34,197,238,.1); border: 1px solid rgba(34,197,238,.35); animation: pulse 2.2s infinite; }
.pulse img { width: 56px; height: 56px; }
.chip { display: inline-block; padding: 4px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); }
.timer { position: relative; height: 34px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; margin: 8px 0 4px; }
.timer-bar { position: absolute; inset-block: 0; inset-inline-start: 0; background: linear-gradient(90deg, var(--cyan), var(--brand)); border-radius: 99px; transition: width .2s linear; }
.timer-bar.low { background: linear-gradient(90deg, #ff5d6c, #ff9c4a); }
.timer span { position: relative; display: block; text-align: center; line-height: 34px; font-weight: 900; font-size: 1.1rem; font-family: var(--font-lat); }
.reveal { text-align: center; padding: 30px 20px; border-radius: 24px; margin: 10px 0 16px; animation: pop .45s ease; }
.reveal.ok { background: linear-gradient(135deg, #129a64, #2fd18e); }
.reveal.bad { background: linear-gradient(135deg, #b8293b, #ef5a6a); }
.reveal.none { background: rgba(255,255,255,.08); }
.reveal-icon { font-size: 3.4rem; font-weight: 900; line-height: 1.1; }
.reveal h2 { font-size: 1.8rem; margin: 6px 0; }
.reveal .pts { font-size: 1.4rem; font-weight: 800; margin: 0; }
.reveal .muted { color: rgba(255,255,255,.88); }
.rank-card { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rank-card > div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; text-align: center; display: grid; }
.rank-card b { font-size: 1.9rem; font-family: var(--font-lat); color: var(--gold); }
.rank-card.big b { font-size: 2.6rem; }
.rank-card small { color: var(--muted); }
.tabs { position: fixed; bottom: 0; inset-inline: 0; display: flex; gap: 8px; justify-content: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(5,12,24,.94); backdrop-filter: blur(10px); border-top: 1px solid rgba(201,165,103,.2); z-index: 4; }
.tabs button { font: inherit; font-weight: 800; flex: 1; max-width: 260px; padding: 12px; border-radius: 50px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.tabs button.on { background: rgba(34,197,238,.14); border-color: rgba(34,197,238,.4); color: #fff; }
.ask { margin-top: 8px; display: grid; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.ask h2 { font-size: 1.15rem; margin: 0; }
.ask-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.check-inline { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.check-inline input { width: 20px; height: 20px; accent-color: var(--cyan); }
.seg { display: flex; gap: 4px; background: rgba(255,255,255,.06); padding: 4px; border-radius: 50px; margin: 14px 0 10px; }
.seg button { flex: 1; font: inherit; font-weight: 700; font-size: .9rem; padding: 8px; border: 0; border-radius: 50px; background: none; color: var(--muted); cursor: pointer; }
.seg button.on { background: rgba(34,197,238,.16); color: #fff; }
.qa-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.qa-item { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.qa-item.done { opacity: .6; }
.qa-item p { margin: 0 0 4px; font-weight: 600; overflow-wrap: anywhere; }
.vote { font: inherit; display: grid; place-items: center; min-width: 50px; padding: 6px; border-radius: 14px; border: 1.5px solid var(--line); background: none; color: var(--muted); cursor: pointer; font-size: .8rem; }
.vote b { font-size: 1.05rem; color: #fff; font-family: var(--font-lat); }
.vote.on { border-color: var(--cyan); background: rgba(34,197,238,.2); color: #fff; }
.tag { font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: rgba(255,255,255,.12); margin-inline-start: 4px; }
.tag.warn { background: rgba(201,165,103,.3); } .tag.ok { background: rgba(62,224,143,.25); }
.toast { position: fixed; bottom: 96px; left: 50%; transform: translate(-50%, 20px); background: #fff; color: var(--deep); padding: 10px 18px; border-radius: 50px;
  font-weight: 800; opacity: 0; pointer-events: none; transition: all .25s; z-index: 9; max-width: 90vw; text-align: center; box-shadow: var(--shadow-md); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.offline { position: fixed; top: 0; inset-inline: 0; background: #b8293b; color: #fff; text-align: center; font-weight: 700; padding: 6px; z-index: 30; }
.cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .15em .5em; line-height: 1.15; text-align: center; padding: 6px; }
.cloud .w { color: var(--c); font-weight: 800; animation: rise .5s ease; }

/* ============================================================ presenter screen */
.present { background: var(--deep); color: #fff; overflow: hidden; --muted: #93a9c2; --line: rgba(255,255,255,.12); }
.pr { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; position: relative;
  background: radial-gradient(90% 70% at 85% 0%, rgba(34,197,238,.18), transparent 55%), radial-gradient(70% 60% at 0% 100%, rgba(201,165,103,.1), transparent 60%),
  linear-gradient(155deg, var(--deep) 0%, var(--deep-2) 55%, var(--deep-3) 100%); }
.pr::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 45% 12%, #fff, transparent), radial-gradient(1.5px 1.5px at 78% 30%, #fff, transparent),
  radial-gradient(1px 1px at 92% 66%, #fff, transparent), radial-gradient(1px 1px at 22% 84%, #fff, transparent), radial-gradient(1px 1px at 60% 55%, #fff, transparent), radial-gradient(1.5px 1.5px at 35% 45%, rgba(255,255,255,.6), transparent);
  background-repeat: no-repeat; }
.pr > * { position: relative; }
.pr-top { display: flex; align-items: center; padding: 12px 28px; gap: 18px; border-bottom: 1px solid rgba(201,165,103,.15); background: rgba(5,12,24,.4); }
.pr-brand .brand img { width: 40px; height: 40px; }
.pr-join { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; transition: opacity .3s; font-size: clamp(.9rem, 1.25vw, 1.2rem); }
.pr-join.hide { opacity: 0; pointer-events: none; }
.pr-join b { font-weight: 800; } .pr-join .code { letter-spacing: .1em; color: var(--gold); font-family: var(--font-lat); }
.pr-join-text b[dir=ltr] { font-family: var(--font-lat); }
.sep { margin: 0 .4em; color: var(--muted); }
.mini-qr { width: 58px; height: 58px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; flex: none; }
.mini-qr svg { width: 100%; height: 100%; display: block; }
.pr-stats { font-weight: 800; font-size: 1.3em; display: flex; gap: 8px; align-items: center; background: rgba(34,197,238,.1); border: 1px solid rgba(34,197,238,.35);
  padding: 4px 16px; border-radius: 50px; font-family: var(--font-lat); }
.pr-stats i { font-style: normal; font-size: .85em; }
.pr-stage { padding: 2.2vh 4vw 2vh; overflow: auto; display: flex; flex-direction: column; min-height: 0; }

.lobby { margin: auto; text-align: center; width: 100%; animation: rise .5s ease; }
.lobby-title { font-size: clamp(2rem, 4.2vw, 3.8rem); margin-bottom: 3vh; }
.lobby-grid { display: flex; gap: 5vw; justify-content: center; align-items: center; flex-wrap: wrap; }
.big-qr { background: #fff; padding: 14px; border-radius: 24px; width: min(44vh, 400px); box-shadow: 0 0 0 6px rgba(34,197,238,.18), 0 20px 60px -20px rgba(0,0,0,.6); }
.big-qr svg { display: block; width: 100%; height: auto; }
.lobby-info { text-align: start; }
.lobby-info p { margin: 0; }
.lobby-info .muted { font-size: clamp(1rem, 1.5vw, 1.4rem); }
.host { font-size: clamp(1.5rem, 2.8vw, 2.8rem); font-weight: 800; margin-bottom: 2vh !important; font-family: var(--font-lat); color: var(--cyan); }
.giant { font-size: clamp(3rem, 8vw, 8rem); font-weight: 900; letter-spacing: .08em; line-height: 1; color: var(--gold); text-shadow: 0 0 40px rgba(201,165,103,.35); }
.people-big { margin-top: 3vh !important; font-size: clamp(1.2rem, 2vw, 2rem); }
.people-big b { font-size: 1.6em; font-family: var(--font-lat); }
.names { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 3vh; max-height: 20vh; overflow: hidden; }
.nchip { padding: .3em 1em; border-radius: 50px; background: color-mix(in srgb, var(--c) 22%, transparent); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
  font-weight: 700; font-size: clamp(.95rem, 1.3vw, 1.2rem); animation: pop .4s ease; }

.qview { display: flex; flex-direction: column; flex: 1; min-height: 0; animation: rise .4s ease; }
.q-head { display: flex; gap: 10px; align-items: center; margin-bottom: 1vh; }
.q-num { font-weight: 800; color: var(--gold); font-family: var(--font-lat); }
.q-badge { font-size: .84rem; font-weight: 700; padding: 3px 12px; border-radius: 50px; border: 1px solid rgba(34,197,238,.4); color: var(--cyan); background: rgba(34,197,238,.08); }
.q-badge.warn { border-color: rgba(201,165,103,.5); color: var(--gold); background: rgba(201,165,103,.1); }
.q-progress { flex: 1; max-width: 240px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); margin-inline-start: auto; overflow: hidden; }
.q-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--gold)); }
.q-title { font-size: clamp(1.7rem, 3.4vw, 3.3rem); line-height: 1.25; margin-bottom: 2.6vh; }
.qbody { flex: 1; display: flex; flex-direction: column; justify-content: center; justify-content: safe center; min-height: 0; }
.t-open .qbody { justify-content: flex-start; }
.foot-count { color: var(--muted); font-size: 1.2rem; margin: 1vh 0 0; } .foot-count b { color: #fff; font-family: var(--font-lat); }

.bars { display: grid; gap: 2.2vh; }
.bar-top { display: flex; align-items: center; gap: 12px; font-size: clamp(1.1rem, 1.9vw, 1.9rem); font-weight: 700; margin-bottom: 6px; }
.bar-top .shape { color: var(--c); }
.bt { flex: 1; }
.bp { font-weight: 900; font-family: var(--font-lat); }
.track { position: relative; height: clamp(18px, 3.2vh, 36px); border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.track i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--c); transition: width .7s cubic-bezier(.2,.8,.2,1); opacity: .75; }
.bar.lead .track i { opacity: 1; box-shadow: 0 0 24px -4px var(--c); }
.bn { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: .95rem; color: rgba(255,255,255,.75); font-family: var(--font-lat); }

.quiz-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2vh; }
.ring { position: relative; width: clamp(88px, 13vh, 136px); height: clamp(88px, 13vh, 136px); }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 9; }
.ring .fg { stroke: var(--cyan); stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.ring.low .fg { stroke: #ff5d6c; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(2rem, 5vh, 3.4rem); font-weight: 900; font-family: var(--font-lat); }
.answered { text-align: center; display: grid; } .answered b { font-size: clamp(2rem, 5vh, 3.4rem); line-height: 1; font-family: var(--font-lat); } .answered span { color: var(--muted); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6vh; }
.tiles.many { grid-template-columns: repeat(3, 1fr); }
.tile { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 2.6vh 24px; border-radius: 20px; background: var(--c);
  font-size: clamp(1.15rem, 2.2vw, 2.2rem); font-weight: 800; min-height: 12vh; transition: opacity .4s, transform .4s; box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 55%, #000); }
.tile.c2, .tile.c5 { color: #06202e; }
.tile .shape { font-size: 1.1em; opacity: .85; }
.tile .tt { flex: 1; }
.tile.wrong { opacity: .25; transform: scale(.97); }
.tile.right { box-shadow: 0 0 0 5px #fff, 0 0 40px 0 var(--c); }
.tile .tick { display: none; }
.tile.right .tick { display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: #fff; color: var(--ok); flex: none; }
.tcount { margin-inline-start: auto; font-size: .85em; font-family: var(--font-lat); background: rgba(0,0,0,.22); padding: 2px 14px; border-radius: 99px; }
.reveal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 30%); gap: 2.4vw; align-items: start; }
.reveal-grid .tiles { grid-template-columns: 1fr; }
.reveal-grid .tile { min-height: 0; padding: 1.8vh 22px; font-size: clamp(1.05rem, 1.8vw, 1.8rem); }
.mini-lb { background: rgba(255,255,255,.05); border: 1px solid rgba(201,165,103,.3); border-radius: 22px; padding: 18px; animation: rise .5s ease .2s both; }
.mini-lb h3 { color: var(--gold); font-size: clamp(1.1rem, 1.6vw, 1.5rem); margin-bottom: 12px; }

.hidden-res { text-align: center; color: var(--muted); font-size: 1.4rem; }
.big-count { color: #fff; } .big-count b { font-size: 3em; display: block; line-height: 1.1; font-family: var(--font-lat); }
.rating { display: grid; grid-template-columns: auto 1fr; gap: 6vw; align-items: center; }
.rating-avg { text-align: center; }
.rating-avg b { font-size: clamp(4rem, 12vh, 9rem); font-weight: 900; line-height: 1; font-family: var(--font-lat); color: var(--gold); }
.stars-big { position: relative; font-size: clamp(2rem, 5vh, 3.6rem); line-height: 1; direction: ltr; display: inline-block; }
.stars-bg { color: rgba(255,255,255,.15); }
.stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--gold); width: 0; transition: width .7s ease; }
.rating-dist { display: grid; gap: 1.6vh; font-size: clamp(1rem, 1.8vw, 1.6rem); }
.rrow { display: grid; grid-template-columns: 70px 1fr 60px; gap: 14px; align-items: center; font-weight: 700; font-family: var(--font-lat); }
.rrow .track i { background: linear-gradient(90deg, var(--gold), #e6c48a); opacity: 1; }
.cloud-wrap { flex: 1; display: grid; place-items: center; }
.cloud.big { font-size: clamp(1rem, 2vw, 1.8rem); max-width: 1400px; gap: .1em .55em; }
.wall { columns: 4 260px; column-gap: 16px; }
.note { break-inside: avoid; margin-bottom: 16px; padding: 16px 20px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid var(--line); border-top: 4px solid var(--c);
  font-size: clamp(1rem, 1.45vw, 1.35rem); font-weight: 600; animation: rise .5s ease; overflow-wrap: anywhere; }

.lb { margin: auto; width: min(900px, 100%); animation: rise .4s ease; }
.lb h1 { text-align: center; font-size: clamp(1.8rem, 3.4vw, 3.2rem); margin-bottom: 2vh; }
.lb-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9vh; }
.lb-list li { display: flex; align-items: center; gap: 16px; padding: 1vh 22px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid var(--line);
  font-size: clamp(1rem, 1.7vw, 1.6rem); font-weight: 700; animation: rise .4s ease both; }
.lb-list:not(.rest) li:nth-child(1) { background: linear-gradient(90deg, rgba(201,165,103,.35), rgba(255,255,255,.05)); border-color: rgba(201,165,103,.5); }
.lb-list li:nth-child(2) { animation-delay: .05s; } .lb-list li:nth-child(3) { animation-delay: .1s; } .lb-list li:nth-child(4) { animation-delay: .15s; } .lb-list li:nth-child(5) { animation-delay: .2s; }
.lb-list.small li { font-size: clamp(.95rem, 1.35vw, 1.3rem); padding: .9vh 14px; gap: 10px; }
.rk { width: 1.8em; height: 1.8em; display: grid; place-items: center; border-radius: 50%; background: rgba(34,197,238,.15); color: var(--cyan); font-size: .85em; flex: none; font-family: var(--font-lat); }
.nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plus { color: #3ee08f; font-size: .8em; font-family: var(--font-lat); }
.lb-list b { font-family: var(--font-lat); color: var(--gold); }
.lb-list .empty { justify-content: center; color: var(--muted); }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 2vw; margin: 2vh 0 3vh; }
.step { width: min(24vw, 230px); text-align: center; animation: rise .6s ease both; }
.step .who { font-size: clamp(1.1rem, 2vw, 1.9rem); font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step .sc { color: var(--gold); font-weight: 800; margin-bottom: 8px; font-family: var(--font-lat); }
.step .block { border-radius: 18px 18px 0 0; display: grid; place-items: start center; padding-top: 14px; font-size: clamp(2rem, 4vw, 3.4rem); }
.step.s1 .block { height: 24vh; background: linear-gradient(#e6c48a, var(--gold-dark)); box-shadow: 0 0 50px -10px var(--gold); }
.step.s2 .block { height: 17vh; background: linear-gradient(#dfe6f0, #9fb0c6); }
.step.s3 .block { height: 12vh; background: linear-gradient(#e0a77c, #a86a42); }
.step.s1 { animation-delay: .4s; } .step.s2 { animation-delay: .2s; }
.step.empty { visibility: hidden; }
.thanks { margin: auto; text-align: center; animation: rise .5s ease; }
.thanks-logo { width: 150px; height: 150px; margin: 0 auto 20px; filter: drop-shadow(0 14px 36px rgba(34,197,238,.45)); }
.thanks h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.qa-hl { margin: auto; max-width: 1200px; text-align: center; animation: rise .5s ease; }
.qa-hl blockquote { margin: 2vh 0; font-size: clamp(2rem, 4.2vw, 4rem); font-weight: 800; line-height: 1.3; }
.qa-hl .by { color: var(--muted); font-size: 1.4rem; }
.qa-stage { width: min(1100px, 100%); margin: 0 auto; }
.qa-stage h1 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.qa-stage-list { list-style: none; padding: 0; margin: 0 0 2vh; display: grid; gap: 1.3vh; }
.qa-stage-list li { display: flex; gap: 20px; align-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 18px; padding: 1.6vh 22px; font-size: clamp(1.1rem, 1.9vw, 1.7rem); font-weight: 700; }
.qa-stage-list .v { flex: none; background: rgba(34,197,238,.18); color: var(--cyan); padding: 4px 14px; border-radius: 12px; font-weight: 800; font-family: var(--font-lat); }
.qa-stage-list p { margin: 0; } .qa-stage-list small { display: block; color: var(--muted); font-size: .62em; }
.qa-stage-list .empty { justify-content: center; color: var(--muted); }

/* control bar: its own row at the bottom, so it never covers the content */
.pr-ctrl { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px;
  background: rgba(5,12,24,.85); border-top: 1px solid rgba(201,165,103,.2); backdrop-filter: blur(10px); }
.ctrl-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ctrl-group + .ctrl-group { padding-inline-start: 10px; border-inline-start: 1px solid var(--line); }
.cbtn { font: inherit; font-size: .88rem; font-weight: 700; color: #fff; background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: 50px;
  padding: 8px 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: var(--t); display: inline-flex; align-items: center; gap: 6px; }
.cbtn:hover { background: rgba(34,197,238,.15); border-color: rgba(34,197,238,.5); }
.cbtn.icon { padding: 8px 12px; }
.cbtn.primary { background: linear-gradient(135deg, var(--cyan), var(--brand)); border-color: transparent; padding: 9px 26px; font-size: 1rem; min-width: 150px; justify-content: center;
  box-shadow: 0 8px 20px rgba(34,197,238,.3); }
.cbtn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(34,197,238,.45); }
.cbtn.danger:hover { background: #b8293b; border-color: #b8293b; }
.cbtn.off { opacity: .6; text-decoration: line-through; }
.cbtn:disabled { opacity: .4; cursor: default; transform: none; }
.cbtn .count { background: var(--cyan); color: var(--deep); border-radius: 50px; padding: 0 7px; font-size: .78rem; font-family: var(--font-lat); }
.cbtn .count:empty { display: none; }
.cbtn .count.warn { background: var(--gold); }
select.cbtn { width: auto; max-width: 220px; appearance: auto; }
select.cbtn option { color: var(--deep); }
.busy .cbtn.primary { opacity: .7; pointer-events: none; }
.bar-hidden { grid-template-rows: auto minmax(0, 1fr) 0; }
.bar-hidden .pr-ctrl { display: none; }
.show-ctrl { position: absolute; bottom: 10px; inset-inline-end: 10px; z-index: 6; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(5,12,24,.7); color: var(--muted); cursor: pointer; opacity: .35; transition: opacity .2s; }
.show-ctrl:hover { opacity: 1; }
@media (max-width: 1100px) { .cbtn span { display: none; } .cbtn.primary { min-width: 120px; } }
.pr-drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 92vw); background: var(--deep-2); border-inline-start: 1px solid rgba(201,165,103,.3);
  z-index: 7; display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px #000; animation: rise .25s ease; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 1.1rem; }
.drawer-head .icon-btn { background: transparent; color: #fff; border-color: var(--line); }
.qa-admin { list-style: none; margin: 0; padding: 12px; overflow: auto; display: grid; gap: 10px; align-content: start; }
.qa-admin li { background: rgba(255,255,255,.05); border-radius: 16px; padding: 12px; border: 1px solid var(--line); }
.qa-admin li.pending { border-color: rgba(201,165,103,.55); }
.qa-admin li.answered { opacity: .55; }
.qa-admin li.hl { border-color: var(--cyan); background: rgba(34,197,238,.1); }
.qa-admin li.empty { text-align: center; color: var(--muted); }
.qa-row { display: flex; gap: 12px; }
.qa-row .v { flex: none; font-weight: 800; background: rgba(34,197,238,.18); color: var(--cyan); border-radius: 10px; padding: 2px 8px; height: fit-content; font-family: var(--font-lat); }
.qa-row p { margin: 0; overflow-wrap: anywhere; } .qa-row small { display: block; color: var(--muted); }
.qa-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.mbtn { font: inherit; font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 50px; border: 1px solid var(--line); background: none; color: #fff; cursor: pointer; }
.mbtn:hover { background: rgba(255,255,255,.1); }
.mbtn.ok { border-color: #3ee08f; color: #3ee08f; } .mbtn.danger { color: #ff8a95; }
@media (max-width: 760px) {
  .pr-top { padding: 8px 12px; } .pr-brand .brand-names { display: none; } .mini-qr { width: 42px; height: 42px; }
  .tiles, .tiles.many, .reveal-grid, .rating { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
