:root {
  --cyan: #1be4ff;
  --navy: #0a1120;
  --navy-2: #111b30;
  --letter: #2d5a96;
  --letter-hover: #3a6db3;
  --correct: #22a34a;
  --text: #ffffff;
  --muted: #9fb3cc;
  --danger: #ff5a4e;
  --orange: #ff6a1a;
  --purple: #c43cff;
  --blue: #5a7bff;
  --region: #7b3fc4;
  --approved: #22a34a;
  --rejected: #ff8a1f;
  --radius: 18px;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--text);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; }
body { overflow-x: hidden; }
[hidden] { display: none !important; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }
a { color: var(--cyan); }

/* ---------- background, like the game ---------- */
.bg {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 60% at 58% 55%, rgba(38, 110, 170, .75) 0%, rgba(12, 52, 92, .65) 35%, rgba(3, 14, 30, .9) 65%, #000 90%),
    #000;
}
.bg-rings {
  position: absolute; left: 58%; top: 55%; width: 1400px; height: 1400px;
  transform: translate(-50%, -50%);
  background:
    repeating-radial-gradient(circle, rgba(120, 190, 255, .07) 0 2px, transparent 2px 46px),
    conic-gradient(from 20deg, transparent 0 20%, rgba(90, 160, 230, .08) 20% 23%, transparent 23% 55%, rgba(90, 160, 230, .08) 55% 58%, transparent 58%);
  border-radius: 50%;
  mask-image: radial-gradient(circle, #000 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 65%);
}
.qm {
  position: absolute; font-weight: 800; color: rgba(110, 170, 230, .09);
  font-size: 180px; line-height: 1; user-select: none;
}
.qm1 { left: 58%; top: 12%; transform: rotate(-18deg); }
.qm2 { left: 70%; top: 36%; transform: rotate(14deg); font-size: 140px; }
.qm3 { left: 44%; top: 58%; transform: rotate(-8deg); font-size: 120px; }
.qm4 { left: 82%; top: 8%; transform: rotate(22deg); font-size: 110px; }

.screen { position: relative; z-index: 1; min-height: 100vh; padding: 28px clamp(16px, 4vw, 56px) 48px; }

/* ---------- shared bits ---------- */
.card {
  background: rgba(8, 14, 28, .82);
  border: 1px solid rgba(120, 170, 230, .18);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px);
}

.neon-btn {
  --b: 4px;
  position: relative;
  border: var(--b) solid transparent;
  border-radius: 999px;
  padding: 10px 26px;
  font-weight: 700; font-size: 17px; letter-spacing: .5px; color: #fff;
  background:
    linear-gradient(#0c0f2e, #0c0f2e) padding-box,
    linear-gradient(90deg, var(--purple), var(--blue)) border-box;
  box-shadow: 0 0 10px rgba(180, 70, 255, .75), 0 0 22px rgba(90, 120, 255, .45), inset 0 0 10px rgba(180, 80, 255, .45);
  transition: transform .12s, box-shadow .12s, filter .12s;
  white-space: nowrap;
}
.neon-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 0 14px rgba(200, 90, 255, .95), 0 0 30px rgba(90, 120, 255, .6), inset 0 0 12px rgba(180, 80, 255, .55); }
.neon-btn:disabled { opacity: .5; cursor: default; }
.neon-btn.alt {
  background:
    linear-gradient(#0a1426, #0a1426) padding-box,
    linear-gradient(90deg, #2d8bd6, var(--cyan)) border-box;
  box-shadow: 0 0 10px rgba(27, 228, 255, .45), inset 0 0 8px rgba(27, 228, 255, .25);
}
.neon-btn.danger {
  background:
    linear-gradient(#240a0e, #240a0e) padding-box,
    linear-gradient(90deg, #ff3b5c, var(--orange)) border-box;
  box-shadow: 0 0 10px rgba(255, 80, 60, .55), inset 0 0 8px rgba(255, 80, 60, .3);
}
.neon-btn.wide { width: 100%; padding: 13px; font-size: 18px; }

.icon-btn.exit-btn, .stage-x {
  width: 50px; height: 50px; border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  background: rgba(0, 0, 0, .35);
  color: var(--orange); font-size: 30px; font-weight: 800; line-height: 1;
  display: grid; place-items: center;
}
.icon-btn.exit-btn:hover, .stage-x:hover { background: rgba(255, 106, 26, .15); border-color: var(--orange); }

.top-icons { position: absolute; top: 20px; right: clamp(16px, 3vw, 40px); display: flex; gap: 14px; }
.top-icons.static { position: static; }

.small-btn {
  border: 1px solid rgba(120, 170, 230, .35); background: rgba(40, 70, 120, .35);
  color: #fff; border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 600;
}
.small-btn:hover { background: rgba(60, 100, 170, .5); }
.small-btn.danger { border-color: rgba(255, 90, 78, .5); background: rgba(120, 20, 20, .35); }
.small-btn.danger:hover { background: rgba(170, 30, 30, .55); }

.form { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--muted); }
.form input[type=email], .form input[type=password], .form input[type=text] {
  background: var(--navy); color: #fff;
  border: 1.5px solid rgba(120, 170, 230, .25); border-radius: 12px;
  padding: 12px 14px; font-size: 16px; font-weight: 500;
}
.form input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(27, 228, 255, .18); }
.form-error { margin: 0; color: #ffb3ad; background: rgba(255, 60, 50, .12); border: 1px solid rgba(255, 90, 78, .4); padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.form-actions { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- login ---------- */
.centre-panel { max-width: 440px; margin: 9vh auto 0; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.brand { margin: 0; font-weight: 800; font-size: clamp(38px, 8vw, 56px); letter-spacing: 2px; text-shadow: 0 0 18px rgba(27, 228, 255, .45); }
.brand-sub { margin: 0 0 20px; color: var(--muted); font-weight: 600; letter-spacing: 1px; }
#screen-login .form { text-align: left; }
.app-version {
  position: absolute; top: 28px; left: clamp(16px, 3vw, 40px);
  font-size: 14px; font-weight: 700; letter-spacing: .5px; color: var(--muted);
  border: 1px solid rgba(120, 170, 230, .3); border-radius: 999px; padding: 6px 14px; background: rgba(8, 14, 28, .6);
}
#screen-exited .neon-btn { align-self: center; }

/* ---------- page header ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; max-width: 1100px; margin: 0 auto 22px; }
.page-head > div:first-child { min-width: 0; }
.page-head .top-icons { flex: none; }
#ql-title { overflow-wrap: anywhere; font-size: clamp(22px, 3.4vw, 32px); }
.page-title { margin: 0; font-weight: 800; font-size: clamp(26px, 4vw, 36px); letter-spacing: 1.5px; }
.page-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.toolbar { display: flex; gap: 14px; max-width: 1100px; margin: 0 auto 22px; flex-wrap: wrap; }

/* ---------- batch list ---------- */
.batch-list { max-width: 1100px; margin: 0 auto; display: grid; gap: 12px; }
.batch {
  display: grid; grid-template-columns: 100px 120px 1fr auto; align-items: stretch;
  border-radius: 999px; overflow: hidden; min-height: 84px;
  background: var(--navy); border: 1px solid rgba(120, 170, 230, .12);
  text-align: left; color: #fff; padding: 0; width: 100%;
  transition: transform .12s, border-color .12s, box-shadow .12s;
}
.batch:hover, .batch:focus-visible { transform: translateY(-1px); border-color: rgba(27, 228, 255, .5); box-shadow: 0 0 18px rgba(27, 228, 255, .18); outline: none; }
.batch-count { background: var(--letter); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; line-height: 1.05; text-align: center; }
.batch-count small { display: block; font-size: 10.5px; font-weight: 600; opacity: .85; margin-top: 2px; }
.batch-region {
  background: var(--region); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; line-height: 1.05; text-align: center; text-transform: uppercase; padding: 6px 4px;
  overflow: hidden;
}
.batch-region small { display: block; font-size: 10.5px; font-weight: 600; opacity: .85; text-transform: none; margin-top: 2px; white-space: nowrap; }
.batch-region.multi { font-size: 18px; }
.batch-region.multi span { display: block; }
.batch-region.none { background: rgba(123, 63, 196, .35); color: rgba(255, 255, 255, .7); }
.batch-info { padding: 14px 22px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.batch-name { font-weight: 700; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.batch-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.batch-actions { display: flex; align-items: center; gap: 8px; padding-right: 22px; }
.batch-actions .small-btn { white-space: nowrap; }
.small-btn.translate { border-color: rgba(27, 228, 255, .45); background: rgba(27, 228, 255, .12); }
.small-btn.translate:hover { background: rgba(27, 228, 255, .25); }
.small-btn.publish { border-color: rgba(34, 163, 74, .6); background: rgba(34, 163, 74, .2); }
.small-btn.publish:hover { background: rgba(34, 163, 74, .38); }
.small-btn.list { border-color: rgba(123, 63, 196, .7); background: rgba(123, 63, 196, .25); }
.small-btn.list:hover { background: rgba(123, 63, 196, .45); }
.small-btn.open { border-color: rgba(27, 228, 255, .6); color: var(--cyan); background: transparent; }
.small-btn.open:hover { background: rgba(27, 228, 255, .12); }

.lang-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 4px; }
.lang { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--navy); border: 1px solid rgba(120, 170, 230, .2); cursor: pointer; font-weight: 600; }
.lang:hover { border-color: rgba(27, 228, 255, .5); }
.lang input, .modal .lang input { width: 18px; height: 18px; padding: 0; accent-color: var(--cyan); flex: none; }
.lang.all { background: transparent; border: none; padding: 4px 2px; color: var(--muted); font-size: 14px; }
@media (max-width: 480px) { .lang-list { grid-template-columns: 1fr; } }
.empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.empty b { color: #fff; }

/* ---------- upload ---------- */
.upload-card { max-width: 1100px; margin: 0 auto; }
.drop {
  border: 2px dashed rgba(27, 228, 255, .45) !important; border-radius: var(--radius);
  padding: 30px; text-align: center; cursor: pointer; align-items: center;
  background: rgba(27, 228, 255, .04); color: #fff !important; font-size: 17px !important;
}
.drop.over { background: rgba(27, 228, 255, .12); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop small { color: var(--muted); font-weight: 500; }
.drop-icon { font-size: 34px; color: var(--cyan); }
.format-help p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.fmt { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 8px; display: block; overflow-x: auto; }
.fmt th, .fmt td { border: 1px solid rgba(120, 170, 230, .2); padding: 6px 10px; text-align: left; }
.fmt th { background: var(--letter); }
.fmt td { background: var(--navy); }
.row-errors { background: rgba(255, 170, 0, .08); border: 1px solid rgba(255, 170, 0, .35); border-radius: 12px; padding: 10px 14px; font-size: 13px; color: #ffd98a; max-height: 200px; overflow: auto; }
.row-errors ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- users ---------- */
.user-form { max-width: 1100px; margin: 0 auto 22px; }
.user-form h2 { margin: 0; font-size: 20px; }
.user-form-row { display: grid; grid-template-columns: 1.3fr 1.2fr auto auto; gap: 14px; align-items: end; }
.pw-row { display: flex; gap: 8px; }
.pw-row input { flex: 1; min-width: 0; }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; padding-bottom: 12px; white-space: nowrap; }
.check input { width: 18px; height: 18px; accent-color: var(--cyan); }
/* ---------- filter bar ---------- */
.filters { max-width: 1100px; margin: 0 auto 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1.5px solid rgba(120, 170, 230, .3); border-radius: 999px; overflow: hidden; background: var(--navy); }
.seg button { border: none; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; padding: 9px 16px; }
.seg button + button { border-left: 1px solid rgba(120, 170, 230, .2); }
.seg button:hover { color: #fff; }
.seg button.on { background: var(--letter); color: #fff; }
.seg-label { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-right: -4px; }
.filter-search {
  flex: 1 1 260px; min-width: 0; background: var(--navy); color: #fff;
  border: 1.5px solid rgba(120, 170, 230, .3); border-radius: 999px; padding: 9px 16px; font-size: 15px; font-weight: 500;
}
.filter-search:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(27, 228, 255, .15); }
.filter-clear:disabled { opacity: .4; cursor: default; }
.filter-count { color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
mark { background: rgba(255, 200, 0, .85); color: #111; border-radius: 3px; padding: 0 2px; }
.pub-tag { color: #5fe08a; font-weight: 700; }
.match-tag { color: #ffd24a; font-weight: 700; }
.pub-dot { display: block; margin-top: 4px; font-size: 11px; color: #5fe08a; font-weight: 700; }
.qrow-answer { margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--muted); }
@media (max-width: 600px) {
  .filters { gap: 8px; }
  .seg-label { width: 100%; margin: 4px 0 -4px; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 9px 6px; }
}

/* ---------- question list ---------- */
.question-list { max-width: 1100px; margin: 0 auto; display: grid; gap: 8px; }
.qrow {
  display: grid; grid-template-columns: 110px 1fr auto auto; align-items: center; gap: 16px;
  background: var(--navy); border: 1px solid rgba(120, 170, 230, .12); border-radius: 14px; padding: 10px 16px;
}
.qrow:hover { border-color: rgba(27, 228, 255, .35); }
.qrow.last { border-color: var(--cyan); box-shadow: 0 0 14px rgba(27, 228, 255, .25); }
.qrow-id { font-weight: 700; color: var(--cyan); font-size: 14px; letter-spacing: .5px; overflow-wrap: anywhere; }
.qrow-text { font-weight: 600; font-size: 16px; line-height: 1.35; min-width: 0; }
@media (max-width: 600px) {
  .qrow { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .qrow-id { grid-column: 1 / -1; }
  .qrow .rv-chip { grid-column: 1; justify-self: start; }
  .qrow .small-btn.open { grid-row: 2 / span 2; grid-column: 2; }
}

.user-list { max-width: 1100px; margin: 0 auto; display: grid; gap: 10px; }
.user {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px;
  background: var(--navy); border: 1px solid rgba(120, 170, 230, .12); border-radius: 14px;
}
.user-email { flex: 1; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(196, 60, 255, .25); color: #e8b8ff; margin-left: 8px; }
.tag.you { background: rgba(27, 228, 255, .18); color: var(--cyan); }
@media (max-width: 760px) {
  .user-form-row { grid-template-columns: 1fr; }
  .user { flex-wrap: wrap; }
  .batch { border-radius: 22px; grid-template-columns: 70px 90px 1fr; }
  .batch-count, .batch-region { grid-row: span 2; }
  .batch-region { font-size: 17px; }
  .batch-region.multi { font-size: 14px; }
  .batch-region small { white-space: normal; }
  .batch-info { padding: 12px 14px 6px; }
  .batch-actions { grid-column: 3; padding: 0 12px 12px; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
  .batch-actions .small-btn { padding: 6px 9px; font-size: 13px; }
}

/* ---------- loading, modal, toast ---------- */
.loading { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .7); display: grid; place-content: center; justify-items: center; gap: 14px; font-weight: 600; }
.spinner { width: 64px; height: 64px; border-radius: 50%; border: 5px solid rgba(27, 228, 255, .2); border-top-color: var(--cyan); animation: spin .9s linear infinite; filter: drop-shadow(0 0 8px var(--cyan)); }
@keyframes spin { to { transform: rotate(360deg); } }

.modal-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .65); display: grid; place-items: center; padding: 16px; }
.modal { width: min(580px, 100%); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.modal h2 { margin: 0; font-size: 22px; }
.modal p { margin: 0; color: #d6e2f0; line-height: 1.5; }
.modal input { background: var(--navy); color: #fff; border: 1.5px solid rgba(120, 170, 230, .25); border-radius: 12px; padding: 12px 14px; font-size: 16px; width: 100%; }
.modal input:focus { outline: none; border-color: var(--cyan); }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 70;
  background: #0c1a30; border: 1px solid var(--cyan); color: #fff; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; box-shadow: 0 0 20px rgba(27, 228, 255, .35);
  max-width: calc(100% - 32px); text-align: center;
}
.toast.error { border-color: var(--danger); box-shadow: 0 0 20px rgba(255, 90, 78, .35); }

/* =========================================================
   QUESTION EDITOR — laid out on a fixed 1522 x 812 stage
   (the proportions of the Outsmarted game screen) and
   scaled to fit the window.
   ========================================================= */
.editor-screen { padding: 0 0 40px; min-height: 100vh; overflow-x: hidden; }
.stage-wrap { position: relative; width: 100%; }
.stage { position: absolute; width: 1522px; height: 812px; transform-origin: top left; }

/* details panel under the game view */
.details { max-width: 1200px; margin: 24px auto 0; padding: 22px 26px 26px; width: calc(100% - 32px); }
.details-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.details-head h2 { margin: 0; font-size: 22px; letter-spacing: .5px; }
.details-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 16px; }
.detail { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.detail.wide { grid-column: 1 / -1; }
.detail-label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.detail-link { text-transform: none; font-weight: 600; margin-left: 6px; }
.detail-value {
  background: var(--navy); color: #fff; border: 1.5px solid rgba(120, 170, 230, .2); border-radius: 12px;
  padding: 10px 12px; font-size: 15px; font-weight: 500; line-height: 1.45; resize: none; overflow: hidden;
  min-height: 44px; width: 100%;
}
.detail-value:hover { border-color: rgba(120, 170, 230, .4); }
.detail-value:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(27, 228, 255, .15); }

.q-image {
  position: absolute; left: 0; top: 0; width: 810px; height: 442px;
  border-bottom-right-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, rgba(20, 40, 70, .75), rgba(5, 12, 25, .85));
}
.q-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.q-image-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 60px; text-align: center; line-height: 1.4; color: rgba(160, 190, 225, .55); font-weight: 600; font-size: 20px; }

.stage-icons { position: absolute; right: 50px; top: 0; display: flex; gap: 26px; align-items: center; }
.stage-icon { background: none; border: none; color: #d9d9d9; padding: 6px; }
.stage-icon:hover { color: #fff; }
.stage-x { width: 46px; height: 44px; margin-top: 0; font-size: 30px; border-top: none; border-radius: 0 0 4px 4px; }

.batch-title { position: absolute; left: 830px; width: 680px; top: 104px; text-align: center; font-weight: 800; font-size: 20px; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.batch-meta { position: absolute; left: 830px; width: 680px; top: 140px; text-align: center; color: var(--muted); font-size: 15px; font-weight: 500; line-height: 1.4; }

.lifeline-bar {
  position: absolute; left: 888px; top: 240px; width: 492px; height: 156px;
  border-radius: 60px; background: rgba(30, 45, 70, .55);
  display: flex; align-items: center; justify-content: center; padding-left: 60px; gap: 0;
}
.lifeline {
  position: relative; width: 132px; height: 74px; border-radius: 999px;
  border: 5px solid transparent; color: #fff; font-weight: 700; font-size: 32px;
  display: grid; place-items: center; letter-spacing: 1px;
  background:
    linear-gradient(#0c0f2e, #0c0f2e) padding-box,
    linear-gradient(90deg, var(--purple), var(--blue)) border-box;
  box-shadow: 0 0 12px rgba(180, 70, 255, .9), 0 0 26px rgba(90, 120, 255, .55), inset 0 0 12px rgba(180, 80, 255, .5);
  transition: filter .12s, transform .12s;
}
.lifeline:hover:not(:disabled) { filter: brightness(1.2); transform: translateY(-1px); }
.lifeline:disabled { opacity: .35; cursor: default; box-shadow: none; }
.lifeline.save { width: 138px; font-size: 30px; }
.lifeline.save.dirty { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 20px rgba(210, 90, 255, 1), 0 0 40px rgba(90, 120, 255, .8), inset 0 0 14px rgba(180, 80, 255, .6); } }
.joiner { width: 14px; height: 4px; background: linear-gradient(90deg, var(--purple), var(--blue)); box-shadow: 0 0 6px var(--purple); }
.badge {
  position: absolute; top: -24px; left: 50%; transform: translateX(-50%);
  min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px;
  background: #e8412c; border: 3px solid #fff; color: #fff; font-size: 17px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.save-state { position: absolute; left: 888px; width: 552px; top: 406px; text-align: center; color: var(--muted); font-size: 15px; font-weight: 500; }

.counter {
  position: absolute; left: 30px; top: 505px; width: 300px; height: 300px;
  background: none; border: none; padding: 0; color: var(--cyan);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.counter-ring { position: absolute; inset: 0; }
.counter-num { font-family: 'Orbitron', monospace; font-weight: 800; font-size: 84px; line-height: 1; text-shadow: 0 0 12px var(--cyan), 0 0 24px rgba(27, 228, 255, .6); }
.counter-of { font-family: 'Orbitron', monospace; font-weight: 600; font-size: 22px; margin-top: 8px; text-shadow: 0 0 8px var(--cyan); }
.counter:hover .counter-num { filter: brightness(1.25); }

.q-text, .answer-text {
  background: transparent; color: #fff; border: 2px solid transparent; resize: none;
  font-weight: 700; margin: 0; overflow: hidden;
  transition: border-color .12s, background .12s;
}
.q-text {
  position: absolute; left: 392px; top: 472px; width: 1122px; height: 106px;
  padding: 6px 10px; font-size: 29px; line-height: 1.2; border-radius: 10px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}
.q-text:hover { border-color: rgba(255, 255, 255, .22); }
.q-text:focus, .answer-text:focus { outline: none; border-color: var(--cyan); background: rgba(27, 228, 255, .06); }

.answers { position: absolute; left: 402px; top: 588px; width: 1104px; display: grid; grid-template-columns: 538px 538px; column-gap: 28px; row-gap: 12px; }
.answer { display: flex; height: 88px; border-radius: 999px; overflow: hidden; background: var(--navy); }
.answer-letter {
  flex: 0 0 88px; border: none; background: var(--letter); color: #fff;
  font-weight: 700; font-size: 28px; position: relative; transition: background .12s;
}
.answer-letter:hover { background: var(--letter-hover); }
.answer.correct .answer-letter { background: var(--correct); }
.answer.correct { box-shadow: inset 0 0 0 3px var(--correct), 0 0 16px rgba(34, 163, 74, .45); }
.answer.correct .answer-letter::after {
  content: '✓'; position: absolute; right: 6px; bottom: 6px; font-size: 16px;
}
.answer-text {
  flex: 1; min-width: 0; height: 100%; padding: 0 22px 0 30px; font-size: 28px; line-height: 1.15;
  border-radius: 0 999px 999px 0; display: block;
}
.answer-text:hover { background: rgba(255, 255, 255, .04); }
.hint { position: absolute; left: 402px; top: 784px; width: 1104px; text-align: center; color: rgba(160, 190, 225, .6); font-size: 14px; font-weight: 500; }


/* ---------- review / approval ---------- */
.rv-progress { display: flex; align-items: center; gap: 10px; margin: 3px 0 2px; font-size: 13px; font-weight: 600; color: var(--muted); min-width: 0; }
.rv-bar { flex: 0 0 110px; height: 7px; border-radius: 99px; background: rgba(120, 170, 230, .18); overflow: hidden; }
.rv-bar span { display: block; height: 100%; background: linear-gradient(90deg, #1b9e4b, #5fe08a); border-radius: 99px; }
.rv-progress.done .rv-text { color: #5fe08a; }
.rv-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-rej { color: var(--rejected); }
@media (max-width: 760px) { .rv-bar { flex-basis: 44px; } .rv-progress { gap: 6px; font-size: 12px; } }
.small-btn.publish[aria-disabled="true"] { opacity: .45; filter: grayscale(.6); }

.rv-chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.rv-chip.unchecked { background: rgba(160, 180, 210, .15); color: var(--muted); }
.rv-chip.approved { background: rgba(34, 163, 74, .22); color: #5fe08a; }
.rv-chip.rejected { background: rgba(255, 138, 31, .2); color: #ffb366; }
.qrow-note { margin-top: 4px; font-size: 14px; font-weight: 500; color: #ffb366; }

/* on the game stage (1522 x 812 coordinates) */
.review-strip { position: absolute; left: 830px; width: 680px; top: 172px; display: flex; justify-content: center; align-items: center; gap: 12px; }
.review-pill {
  border: 1.5px solid rgba(160, 180, 210, .35); background: rgba(10, 17, 32, .75); color: var(--muted);
  border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 700; max-width: 330px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.review-pill.approved { border-color: var(--approved); color: #5fe08a; background: rgba(34, 163, 74, .15); }
.review-pill.rejected { border-color: var(--rejected); color: #ffb366; background: rgba(255, 138, 31, .12); }
.rv-btn {
  border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 800; letter-spacing: .5px; color: #fff; white-space: nowrap;
  border: 2px solid transparent; transition: filter .12s, transform .12s;
}
.rv-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.rv-btn.approve { background: var(--approved); border-color: #5fe08a; box-shadow: 0 0 12px rgba(34, 163, 74, .5); }
.rv-btn.approve.undo { background: rgba(34, 163, 74, .15); color: #5fe08a; box-shadow: none; }
.rv-btn.reject { background: rgba(255, 138, 31, .15); border-color: var(--rejected); color: #ffb366; }

.review-note { border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; line-height: 1.45; }
.review-note div { margin-top: 4px; font-size: 16px; }
.review-note.rejected { background: rgba(255, 138, 31, .12); border: 1.5px solid var(--rejected); color: #ffd2a6; }
.review-note.unchecked { background: rgba(160, 180, 210, .08); border: 1.5px dashed rgba(160, 180, 210, .4); color: var(--muted); }

/* ---------- translation ---------- */
.lang-code { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .5px; }
.lang.busy { opacity: .55; cursor: default; }
.lang small { color: var(--muted); font-weight: 500; }
.tr-jobs { display: flex; flex-wrap: wrap; gap: 6px; margin: 3px 0; }
.tr-chip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tr-chip.running { background: rgba(27, 228, 255, .14); color: var(--cyan); }
.tr-chip.done { background: rgba(27, 228, 255, .12); color: #8fdcff; }
.tr-chip.failed { background: rgba(255, 90, 78, .18); color: #ffb3ad; cursor: help; }
.tr-from { color: var(--cyan); font-weight: 700; }

/* ---------- compact batch rows (v10) ---------- */
.batch-list { gap: 8px; }
.batch { grid-template-columns: 78px 92px 1fr auto; min-height: 0; }
.batch-count { font-size: 17px; }
.batch-region { font-size: 17px; padding: 4px 4px; }
.batch-region.multi { font-size: 13px; }
.batch-count small, .batch-region small { font-size: 9.5px; margin-top: 1px; }
.batch-info { padding: 7px 16px; gap: 1px; }
.batch-name { font-size: 16px; line-height: 1.25; }
.batch-sub { font-size: 12px; line-height: 1.3; }
.rv-progress { margin: 1px 0; font-size: 12px; }
.rv-bar { height: 5px; }
.tr-jobs { margin: 1px 0; }
.tr-chip { padding: 1px 8px; font-size: 11px; }
.batch-actions { gap: 6px; padding-right: 16px; }
.batch-actions .small-btn { padding: 5px 10px; font-size: 13px; border-radius: 9px; }
@media (max-width: 760px) {
  .batch { grid-template-columns: 62px 74px 1fr; }
  .batch-count, .batch-region { font-size: 15px; }
  .batch-region.multi { font-size: 12px; }
  .batch-info { padding: 8px 12px 4px; }
  .batch-actions { padding: 0 10px 8px; }
}

/* ---------- access levels / delete question (v11) ---------- */
.review-strip { left: 790px; width: 725px; gap: 10px; }
.review-pill { max-width: 250px; font-size: 14px; padding: 8px 14px; }
.rv-btn { font-size: 14px; padding: 8px 14px; }
.rv-btn.delete { background: rgba(255, 60, 60, .12); border-color: #ff5a4e; color: #ffb3ad; }
.rv-btn.delete:hover { background: rgba(255, 60, 60, .3); }
.lifeline.save.view-only { opacity: .35; box-shadow: none; }
.warn-text { color: #ffb3ad !important; font-weight: 600; background: rgba(255, 60, 50, .1); border: 1px solid rgba(255, 90, 78, .4); border-radius: 10px; padding: 10px 12px; }
.role-select {
  background: var(--navy); color: #fff; border: 1.5px solid rgba(120, 170, 230, .25); border-radius: 12px;
  padding: 11px 12px; font-size: 16px; font-weight: 600; font-family: inherit;
}
.role-select:focus { outline: none; border-color: var(--cyan); }
.modal-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.modal-field .role-select { width: 100%; }
.user-form-row { grid-template-columns: 1.3fr 1.2fr 150px auto; }
.tag.role-admin { background: rgba(196, 60, 255, .25); color: #e8b8ff; }
.tag.role-checker { background: rgba(34, 163, 74, .22); color: #5fe08a; }
.tag.role-reader { background: rgba(160, 180, 210, .18); color: var(--muted); }
@media (max-width: 760px) { .user-form-row { grid-template-columns: 1fr; } }

/* ---------- images (v12) ---------- */
.img-tools { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 10px; }
.img-btn {
  border: 1.5px solid rgba(27, 228, 255, .7); background: rgba(5, 12, 25, .8); color: var(--cyan);
  border-radius: 999px; padding: 9px 16px; font-size: 16px; font-weight: 800; letter-spacing: .5px;
  box-shadow: 0 0 10px rgba(27, 228, 255, .25);
}
.img-btn:hover { background: rgba(27, 228, 255, .18); }
.img-btn.remove { border-color: rgba(255, 90, 78, .7); color: #ffb3ad; box-shadow: none; }
.img-btn.remove:hover { background: rgba(255, 60, 60, .2); }
.img-badge {
  position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px;
  background: rgba(5, 12, 25, .85); color: #ffd24a; font-size: 14px; font-weight: 700;
}
.img-badge.licensed { color: #5fe08a; }
.image-field { margin-bottom: 16px; }
.image-field input.detail-value { min-height: 44px; }
.image-note { margin-top: 6px; }

.picker { width: min(980px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.picker-head { display: flex; justify-content: space-between; align-items: center; }
.picker-head h2 { margin: 0; font-size: 22px; }
.picker-head .exit-btn { width: 40px; height: 40px; font-size: 22px; }
.pk-question { font-size: 14px; }
.pk-search { display: flex; gap: 10px; }
.pk-search input { flex: 1; min-width: 0; background: var(--navy); color: #fff; border: 1.5px solid rgba(120, 170, 230, .3); border-radius: 999px; padding: 10px 16px; font-size: 16px; font-family: inherit; }
.pk-search input:focus { outline: none; border-color: var(--cyan); }
.pk-suggest { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 30px; font-size: 14px; }
.pk-chip { border: 1px solid rgba(196, 60, 255, .6); background: rgba(196, 60, 255, .14); color: #e8b8ff; border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 600; }
.pk-chip:hover { background: rgba(196, 60, 255, .3); }
.pk-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; min-height: 140px; }
.pk-msg { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 30px 10px; margin: 0; line-height: 1.5; }
.pk-item { border: 2px solid transparent; border-radius: 12px; background: var(--navy); padding: 4px; color: var(--muted); font-size: 12px; font-weight: 600; display: flex; flex-direction: column; gap: 4px; }
.pk-item img { width: 100%; aspect-ratio: 11 / 6; object-fit: cover; border-radius: 8px; display: block; }
.pk-item:hover { border-color: rgba(27, 228, 255, .5); }
.pk-item.picked { border-color: var(--cyan); box-shadow: 0 0 14px rgba(27, 228, 255, .45); color: #fff; }

/* ---------- upload + crop (v13) ---------- */
.img-drop {
  position: absolute; inset: 10px; border: 4px dashed var(--cyan); border-radius: 14px;
  background: rgba(27, 228, 255, .14); display: grid; place-items: center; pointer-events: none;
  color: #fff; font-size: 30px; font-weight: 800; text-shadow: 0 2px 10px #000;
}
.cropper { width: min(940px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.cr-frame { position: relative; width: 100%; aspect-ratio: 11 / 6; border-radius: 10px; overflow: hidden; outline: 3px solid var(--cyan); box-shadow: 0 0 18px rgba(27, 228, 255, .35); background: #000; }
.cr-frame canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.cr-frame canvas:active { cursor: grabbing; }
.cr-controls { display: flex; align-items: center; gap: 12px; }
.cr-controls input[type=range] { flex: 1; accent-color: var(--cyan); height: 22px; }
.cr-z { font-size: 22px; font-weight: 800; color: var(--muted); width: 14px; text-align: center; }
.cr-info { margin: 0; font-size: 14px; font-weight: 600; color: #5fe08a; }
.cr-info.warn { color: #ffd24a; }

/* ---------- v14: accents, details fields, batch groups ---------- */
.accent-bar { position: absolute; left: 402px; top: 779px; width: 1104px; display: flex; flex-wrap: nowrap; gap: 4px; align-items: center; justify-content: center; }
.accent-label { font-size: 13px; font-weight: 800; color: var(--cyan); margin-right: 6px; letter-spacing: .5px; }
.accent-key {
  min-width: 30px; height: 28px; padding: 0 6px; border-radius: 7px; border: 1px solid rgba(27, 228, 255, .45);
  background: rgba(10, 17, 32, .85); color: #fff; font-size: 17px; font-weight: 600; line-height: 1;
}
.accent-key:hover { background: rgba(27, 228, 255, .2); }

.detail-select { min-height: 44px; font-family: inherit; appearance: auto; cursor: pointer; }
.detail-select:disabled { opacity: .8; cursor: default; }
.detail-static { background: rgba(10, 17, 32, .5); border: 1.5px dashed rgba(120, 170, 230, .2); border-radius: 12px; padding: 10px 12px; font-size: 15px; font-weight: 500; color: #d6e2f0; min-height: 44px; }
.detail-hint { text-transform: none; font-weight: 500; letter-spacing: 0; color: rgba(160, 190, 225, .6); margin-left: 6px; }
.tag-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--navy); border: 1.5px solid rgba(120, 170, 230, .2); border-radius: 12px; padding: 8px 10px; min-height: 44px; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; background: rgba(27, 228, 255, .14); border: 1px solid rgba(27, 228, 255, .45); color: var(--cyan); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 14px; font-weight: 700; }
.tag-x { border: none; background: none; color: var(--cyan); font-size: 17px; line-height: 1; padding: 0 4px; }
.tag-x:hover { color: #fff; }
.tag-input { flex: 1; min-width: 180px; background: transparent; border: none; color: #fff; font-size: 15px; font-family: inherit; padding: 4px; }
.tag-input:focus { outline: none; }

.batch.child { margin-left: 56px; width: calc(100% - 56px); position: relative; }
.batch.child::before {
  content: ''; position: absolute; left: -34px; top: -9px; width: 24px; height: calc(50% + 9px);
  border-left: 2px solid rgba(123, 63, 196, .6); border-bottom: 2px solid rgba(123, 63, 196, .6); border-bottom-left-radius: 10px;
}
@media (max-width: 760px) { .batch.child { margin-left: 22px; width: calc(100% - 22px); } .batch.child::before { left: -16px; width: 12px; } }
.ql-title-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rename-btn { background: rgba(27, 228, 255, .1); border: 1px solid rgba(27, 228, 255, .45); border-radius: 10px; font-size: 18px; padding: 6px 9px; line-height: 1; flex: none; }
.rename-btn:hover { background: rgba(27, 228, 255, .25); }
.batch.child { overflow: visible; }
.batch.child .batch-count { border-radius: 999px 0 0 999px; }
@media (max-width: 760px) { .batch.child .batch-count { border-radius: 22px 0 0 22px; } }

/* ---------- EN UK source toggle (v15) ---------- */
.src-toggle {
  border: 2px solid #ffd24a; background: rgba(255, 210, 74, .12); color: #ffd24a; border-radius: 999px;
  padding: 7px 16px; font-size: 17px; font-weight: 800; letter-spacing: .5px; white-space: nowrap;
}
.src-toggle:hover { background: rgba(255, 210, 74, .25); }
.src-toggle.on { background: #ffd24a; color: #111; }
.stage.showing-source .q-text, .stage.showing-source .answer-text { color: #ffe9a8; }
.stage.showing-source .answer { box-shadow: inset 0 0 0 2px rgba(255, 210, 74, .55); }
.stage.showing-source .answer.correct { box-shadow: inset 0 0 0 3px var(--correct), 0 0 0 2px rgba(255, 210, 74, .55); }
.stage.showing-source .hint { color: #ffd24a; font-weight: 700; }
.source-line { margin-top: 4px; font-size: 14px; color: #ffe9a8; background: rgba(255, 210, 74, .08); border-left: 3px solid #ffd24a; border-radius: 6px; padding: 6px 10px; line-height: 1.4; }
.source-line b { color: #ffd24a; font-size: 12px; margin-right: 6px; }

.user-dates { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; color: #d6e2f0; white-space: nowrap; }
.user-dates b { color: #fff; }
@media (max-width: 760px) { .user-dates { align-items: flex-start; width: 100%; } }

/* ---------- v17: review row never spills over the picture ---------- */
.review-strip { left: 830px; width: 680px; gap: 8px; flex-wrap: nowrap; justify-content: center; }
.review-strip > * { flex: none; }
.review-strip .review-pill { flex: 0 1 auto; min-width: 0; max-width: 240px; font-size: 13px; padding: 7px 12px; }
.review-strip .rv-btn { font-size: 13px; padding: 7px 12px; letter-spacing: .3px; }
