:root {
  --ink: #131a3e;
  --ink-deep: #0b1030;
  --panel: #1c2452;
  --panel-2: #252f66;
  --line: #34407e;
  --cream: #f6f1ec;
  --muted: #a6aed4;
  --a1: #e0475b; --a1d: #b8344a;
  --a2: #3b6fe0; --a2d: #2c55b4;
  --a3: #e5a530; --a3d: #b98220;
  --a4: #2e9e6e; --a4d: #237a55;
  --ok: #2e9e6e;
  --bad: #e0475b;
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --r: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--cream);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }
img { max-width: 100%; }
.hidden { display: none !important; }

/* faixa de fundo: losangos sutis evocando o pentágono GHTech + o salto da HAJJ */
.stage {
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 85% -10%, #26306c 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #0d143a 0%, transparent 60%),
    var(--ink);
}

/* ---------- botões ---------- */
.btn {
  text-decoration: none; display: inline-block; text-align: center;
  border: 0; border-radius: 10px; padding: .75em 1.4em;
  background: var(--cream); color: var(--ink); font-weight: 600;
  box-shadow: 0 4px 0 #b9b0a6; transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #b9b0a6; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:active { transform: none; }
.btn.danger { background: var(--bad); color: #fff; box-shadow: 0 4px 0 var(--a1d); }
.btn.small { padding: .45em .9em; font-size: .9rem; box-shadow: 0 3px 0 #b9b0a6; }
.btn.ghost.small { box-shadow: inset 0 0 0 2px var(--line); }
.icon-btn {
  background: transparent; border: 0; color: var(--muted); padding: .35em .5em; border-radius: 8px;
}
.icon-btn:hover { color: var(--cream); background: var(--panel-2); }

/* ---------- formulários ---------- */
label.field { display: block; margin-bottom: 1rem; }
label.field > span { display: block; font-size: .9rem; color: var(--muted); margin-bottom: .35rem; }
.input, select.input, textarea.input {
  width: 100%; background: var(--ink-deep); border: 2px solid var(--line); border-radius: 10px;
  padding: .7em .9em; outline: none;
}
.input:focus { border-color: var(--cream); }
.error { color: #ffb3bd; min-height: 1.3em; font-size: .95rem; }

/* ---------- formas das alternativas ---------- */
.shape { width: 1em; height: 1em; display: inline-block; flex: none; }
.c0 { background: var(--a1); } .c1 { background: var(--a2); } .c2 { background: var(--a3); } .c3 { background: var(--a4); }

/* ---------- marcas ---------- */
.brands { display: flex; align-items: center; gap: 1.1rem; }
.brands img { display: block; height: 34px; width: auto; }
.brands img.hajj { height: 30px; }
.brands .sep { width: 1px; align-self: stretch; background: var(--line); }

/* ============================================================ JOGADOR */
.player { min-height: 100dvh; display: flex; flex-direction: column; }
.player header {
  display: flex; justify-content: space-between; align-items: center;
  padding: max(.8rem, env(safe-area-inset-top)) 1rem .8rem; background: rgba(11,16,48,.6);
  font-weight: 600;
}
.player header .score { background: var(--cream); color: var(--ink); padding: .2em .7em; border-radius: 999px; }
.player main { flex: 1; display: flex; flex-direction: column; }
.center-screen {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem 1.4rem; gap: 1rem;
}
.join-card { width: min(360px, 100%); display: flex; flex-direction: column; gap: .8rem; }
.join-card .brands { justify-content: center; margin-bottom: 1.6rem; }
.join-card .brands img { height: 40px; }
.join-card .brands img.hajj { height: 34px; }
.join-card .input { text-align: center; font-size: 1.4rem; font-weight: 700; padding: .8em; background: #fff; color: var(--ink); border-color: #fff; }
.join-card .input::placeholder { color: #9aa0bd; font-weight: 500; }
.join-card .btn { font-size: 1.2rem; padding: .85em; background: var(--ink-deep); color: var(--cream); box-shadow: 0 4px 0 #000; }
.join-title { font-family: var(--display); font-size: 2rem; margin: 0; font-weight: 600; }
.big-msg { font-size: 1.6rem; font-weight: 700; margin: 0; }
.sub-msg { color: var(--muted); margin: 0; font-size: 1.05rem; max-width: 26ch; }
.nick-chip { background: var(--panel); padding: .5em 1.1em; border-radius: 999px; font-weight: 600; font-size: 1.2rem; }

.answer-grid {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; padding: .7rem;
  padding-bottom: max(.7rem, env(safe-area-inset-bottom));
}
.answer-grid.two { grid-template-columns: 1fr; }
.answer-btn {
  border: 0; border-radius: var(--r); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 0 rgba(0,0,0,.35); transition: transform .08s;
}
.answer-btn:active { transform: scale(.97); }
.answer-btn .shape { width: 34%; height: auto; aspect-ratio: 1; max-width: 120px; background: #fff; }
.answer-btn.c0 { background: var(--a1); } .answer-btn.c1 { background: var(--a2); }
.answer-btn.c2 { background: var(--a3); } .answer-btn.c3 { background: var(--a4); }
.answer-btn.dim { opacity: .25; }

.feedback { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; padding: 2rem; }
.feedback.ok { background: var(--ok); }
.feedback.bad { background: var(--bad); }
.feedback.none { background: var(--panel); }
.feedback h2 { font-size: 2.4rem; margin: 0; }
.feedback .mark { width: 96px; height: 96px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; }
.feedback .mark svg { width: 56px; height: 56px; }
.feedback .pts { background: rgba(0,0,0,.25); padding: .4em 1.2em; border-radius: 999px; font-size: 1.4rem; font-weight: 700; }
.feedback .rank { font-size: 1.15rem; }
.player footer { padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(11,16,48,.6); display: flex; justify-content: space-between; font-weight: 600; }

.spinner { width: 54px; height: 54px; border-radius: 50%; border: 6px solid var(--panel-2); border-top-color: var(--cream); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================ TELÃO */
.host { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.host-top .brands img { height: 50px; }
.host-top .brands img.hajj { height: 44px; }
.host-top { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 2rem; gap: 1rem; }
.host-top .tools { display: flex; gap: .5rem; }
.host-body { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 0 2rem 1.5rem; }

/* lobby */
.lobby-head {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem;
  background: var(--cream); color: var(--ink); border-radius: 20px; padding: 1.4rem 2.2rem;
}
.lobby-head .join-how { font-size: clamp(1.1rem, 1.8vw, 1.6rem); line-height: 1.35; }
.lobby-head .join-how strong { font-weight: 700; }
.lobby-head .pin-label { font-size: 1rem; color: #5b6290; text-align: right; }
.pin {
  font-weight: 800; letter-spacing: .06em; line-height: 1; font-size: clamp(4rem, 9vw, 8.5rem);
  font-variant-numeric: tabular-nums;
}
.lobby-mid { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 0 1rem; }
.lobby-title { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 600; margin: 0; }
.count-pill { background: var(--panel); padding: .5em 1.1em; border-radius: 12px; font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; gap: .6rem; }
.lobby-players { flex: 1; overflow: auto; display: flex; flex-wrap: wrap; align-content: flex-start; gap: .7rem; padding: .4rem 0; }
.lobby-players .p {
  background: var(--panel-2); border: 0; border-radius: 10px; padding: .55em 1em; font-size: 1.35rem; font-weight: 600;
  animation: pop .35s cubic-bezier(.2,1.6,.4,1);
}
.lobby-players .p:hover { background: var(--bad); text-decoration: line-through; }
.lobby-empty { color: var(--muted); font-size: 1.4rem; margin: auto; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lobby-foot { display: flex; justify-content: flex-end; gap: .8rem; padding-top: 1rem; }
.lobby-foot .btn { font-size: 1.3rem; padding: .7em 2em; }

/* pergunta */
.q-text {
  background: var(--cream); color: var(--ink); border-radius: 18px; text-align: center;
  font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 3rem); line-height: 1.2; padding: 1.1rem 2rem;
}
.q-mid { flex: 1; min-height: 0; display: grid; grid-template-columns: 160px 1fr 160px; align-items: center; gap: 1rem; padding: 1.2rem 0; }
.q-mid .media { height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.q-mid .media img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 14px; }
.q-mid .media.empty .shape-row { display: flex; gap: 1.2rem; opacity: .9; }
.q-mid .media.empty .shape { width: 70px; height: 70px; }
.timer { width: 140px; height: 140px; position: relative; display: grid; place-items: center; }
.timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.timer .num { font-size: 3.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.timer.hurry .num { animation: pulse .5s ease-in-out infinite alternate; color: #ffd0d6; }
@keyframes pulse { to { transform: scale(1.15); } }
.answers-stat { text-align: center; }
.answers-stat .n { font-size: 3.2rem; font-weight: 800; display: block; line-height: 1; }
.answers-stat .l { color: var(--muted); font-size: 1.1rem; }
.alts { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.alt {
  display: flex; align-items: center; gap: 1.1rem; border-radius: 14px; padding: 1.1rem 1.4rem; min-height: 96px;
  font-size: clamp(1.2rem, 2vw, 1.9rem); font-weight: 700; color: #fff; box-shadow: 0 6px 0 rgba(0,0,0,.3);
  transition: opacity .3s;
}
.alt .shape { width: 2.2rem; height: 2.2rem; background: #fff; }
.alt.c0 { background: var(--a1); } .alt.c1 { background: var(--a2); } .alt.c2 { background: var(--a3); } .alt.c3 { background: var(--a4); }
.alt.wrong { opacity: .28; }
.alt .check { margin-left: auto; width: 2.4rem; height: 2.4rem; }

/* intro da pergunta */
.intro { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.8rem; }
.intro .qnum { font-size: 1.4rem; color: var(--muted); font-weight: 600; }
.intro h2 { font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.15; margin: 0; max-width: 22ch; }
.intro .bar { width: min(560px, 70%); height: 10px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.intro .bar i { display: block; height: 100%; background: var(--cream); width: 0; }
.badge-double { background: var(--a3); color: var(--ink); padding: .35em 1em; border-radius: 99px; font-weight: 800; }

/* resultado */
.chart { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 150px)); justify-content: center; align-items: end; gap: 2.4rem; padding: 1.2rem 0 .6rem; }
.chart .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .5rem; }
.chart .bar { width: 100%; border-radius: 10px 10px 0 0; min-height: 10px; transition: height .8s cubic-bezier(.2,.9,.3,1); }
.chart .lbl { display: flex; align-items: center; gap: .5rem; font-size: 1.8rem; font-weight: 800; }
.chart .lbl .shape { width: 1.4rem; height: 1.4rem; background: currentColor; }
.chart .col.wrong { opacity: .35; }

/* placar */
.board { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .8rem; padding-top: 1rem; }
.board h2 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 0 .8rem; font-weight: 600; }
.board .row {
  width: min(900px, 100%); display: grid; grid-template-columns: 3rem 1fr auto auto; align-items: center; gap: 1.2rem;
  background: var(--panel); border-radius: 14px; padding: 1rem 1.6rem; font-size: 1.7rem; font-weight: 700;
  animation: slideIn .5s both;
}
.board .row:first-of-type { background: var(--cream); color: var(--ink); }
.board .row .pos { opacity: .6; }
.board .row .gain { font-size: 1.1rem; color: #8fe0b8; font-weight: 600; }
.board .row:first-of-type .gain { color: var(--a4d); }
.board .row .up { font-size: 1.1rem; color: #8fe0b8; }
@keyframes slideIn { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }

/* pódio */
.podium { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 1.4rem; padding-top: 1rem; position: relative; }
.podium .place { width: min(280px, 26vw); display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.podium .who { text-align: center; opacity: 0; animation: fadeUp .6s forwards; }
.podium .who .nick { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 700; line-height: 1.1; word-break: break-word; }
.podium .who .pts { color: var(--muted); font-size: 1.3rem; font-weight: 600; }
.podium .block {
  width: 100%; border-radius: 14px 14px 0 0; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 1rem; font-size: 4rem; font-weight: 800; color: var(--ink); transform-origin: bottom;
  animation: grow .8s cubic-bezier(.2,.9,.3,1) both;
}
.podium .p1 .block { height: 44vh; background: var(--cream); }
.podium .p2 .block { height: 32vh; background: #c9cde4; }
.podium .p3 .block { height: 24vh; background: #9ea6cf; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fadeUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
.host-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1rem; }
.host-foot .meta { color: var(--muted); font-size: 1.1rem; font-weight: 600; }
.host-foot .btn { font-size: 1.15rem; }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--cream); color: var(--ink);
  padding: .8em 1.4em; border-radius: 12px; font-weight: 600; z-index: 50; box-shadow: 0 8px 30px rgba(0,0,0,.4);
}

/* ============================================================ PAINEL */
.admin { min-height: 100vh; }
.admin-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 2rem; border-bottom: 1px solid var(--line); background: var(--ink-deep);
}
.admin-top nav { display: flex; gap: .3rem; }
.admin-top nav button { background: transparent; border: 0; padding: .55em 1em; border-radius: 9px; color: var(--muted); font-weight: 600; }
.admin-top nav button.active, .admin-top nav button:hover { background: var(--panel); color: var(--cream); }
.admin-top .user { color: var(--muted); font-size: .95rem; display: flex; align-items: center; gap: .7rem; }
.admin-main { max-width: 1180px; margin: 0 auto; padding: 2rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.6rem; }
.page-head h1 { font-family: var(--display); font-weight: 600; font-size: 2.3rem; margin: 0; }
.page-head p { margin: .3rem 0 0; color: var(--muted); }

.quiz-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.1rem; }
.quiz-card { background: var(--panel); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.quiz-card .cover { aspect-ratio: 16/7; background: var(--panel-2); display: flex; align-items: flex-end; padding: .8rem 1rem; position: relative; overflow: hidden; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; }
.quiz-card .cover .shapes { display: flex; gap: .4rem; position: relative; }
.bg-preview { aspect-ratio: 16/9; border-radius: 12px; background: var(--ink); border: 2px solid var(--line); padding: 4% 4%; display: flex; flex-direction: column; gap: 4%; overflow: hidden; }
.bg-preview .mock-card { background: var(--cream); border-radius: 10px; height: 26%; display: flex; align-items: center; justify-content: space-between; padding: 0 4%; }
.bg-preview .mock-qr { width: 14%; aspect-ratio: 1; background: repeating-linear-gradient(45deg, var(--ink) 0 4px, transparent 4px 8px); border-radius: 3px; }
.bg-preview .mock-pin { color: var(--ink); font-weight: 800; font-size: clamp(1.2rem, 4vw, 2.2rem); }
.bg-preview .mock-title { font-family: var(--display); font-size: clamp(1rem, 2.6vw, 1.5rem); font-weight: 600; }
.bg-preview .mock-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.bg-preview .mock-chips i { font-style: normal; background: var(--panel-2); padding: .3em .8em; border-radius: 8px; font-weight: 600; font-size: .9rem; }
.cover-edit { aspect-ratio: 16/7; border-radius: 12px; background: var(--ink-deep); position: relative; overflow: hidden; display: grid; place-items: center; border: 2px dashed var(--line); touch-action: none; }
.cover-edit.has { cursor: grab; border-style: solid; }
.cover-edit.has:active { cursor: grabbing; }
.quiz-card .cover .shapes .shape { width: 16px; height: 16px; }
.quiz-card .body { padding: 1rem 1.1rem; flex: 1; }
.quiz-card h3 { margin: 0 0 .3rem; font-size: 1.2rem; }
.quiz-card .meta { color: var(--muted); font-size: .9rem; }
.quiz-card .actions .icon-btn { font-size: .9rem; padding: .35em .4em; }
.quiz-card .actions .btn { white-space: nowrap; }
.quiz-card .actions { display: flex; gap: .1rem; flex-wrap: nowrap; padding: 0 1.1rem 1.1rem; align-items: center; }
.quiz-card .actions .btn:first-child { margin-right: auto; }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); background: var(--panel); border-radius: 16px; }
.empty-state h3 { color: var(--cream); font-size: 1.4rem; margin: 0 0 .4rem; }

table.data { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 14px; overflow: hidden; }
table.data th, table.data td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
table.data th { color: var(--muted); font-weight: 600; font-size: .9rem; background: var(--ink-deep); }
table.data tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login-card { width: min(400px, 100%); background: var(--panel); border-radius: 20px; padding: 2.2rem; }
.login-card .brands { justify-content: center; margin-bottom: 1.8rem; }
.login-card h1 { font-family: var(--display); font-weight: 600; font-size: 1.8rem; margin: 0 0 1.4rem; text-align: center; }
.login-card .btn { width: 100%; margin-top: .4rem; }

/* editor */
.admin.editing { height: 100vh; display: flex; flex-direction: column; }
.admin.editing #page { flex: 1; min-height: 0; }
.editor { display: grid; grid-template-columns: 250px 1fr; height: 100%; }
.editor-side { background: var(--ink-deep); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.editor-side .list { flex: 1; overflow: auto; padding: .8rem; display: flex; flex-direction: column; gap: .5rem; }
.q-thumb {
  background: var(--panel); border: 2px solid transparent; border-radius: 12px; padding: .6rem .7rem; text-align: left;
  display: grid; grid-template-columns: 1.6rem 1fr auto; gap: .4rem; align-items: start; width: 100%;
}
.q-thumb.active { border-color: var(--cream); }
.q-thumb.invalid .n { color: #ffb3bd; }
.q-thumb .n { font-weight: 800; color: var(--muted); }
.q-thumb .t { font-size: .9rem; line-height: 1.3; max-height: 2.6em; overflow: hidden; }
.q-thumb .mv { display: flex; flex-direction: column; }
.q-thumb .mv button { background: none; border: 0; color: var(--muted); padding: 0 .2rem; line-height: 1; font-size: .8rem; }
.q-thumb .mv button:hover { color: var(--cream); }
.editor-side .side-actions { padding: .8rem; display: flex; flex-direction: column; gap: .5rem; border-top: 1px solid var(--line); }
.editor-main { overflow: auto; padding: 1.6rem 2rem 3rem; }
.editor-bar { display: flex; gap: .7rem; align-items: center; margin-bottom: 1.4rem; flex-wrap: wrap; }
.editor-bar .title-input { flex: 1; min-width: 240px; font-size: 1.3rem; font-weight: 700; }
.q-editor { max-width: 980px; margin: 0 auto; }
.q-editor textarea.qtext { font-size: 1.5rem; font-weight: 700; text-align: center; min-height: 96px; resize: vertical; background: var(--cream); color: var(--ink); border-color: var(--cream); }
.q-opts { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.q-opts label.field { margin: 0; min-width: 170px; }
.img-drop {
  border: 2px dashed var(--line); border-radius: 14px; min-height: 180px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .6rem; color: var(--muted); margin: 1rem 0; padding: 1rem; position: relative;
}
.img-drop img { max-height: 240px; border-radius: 10px; }
.img-drop .rm { position: absolute; top: .6rem; right: .6rem; }
.alt-edit { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.alt-row { display: flex; align-items: center; gap: .7rem; border-radius: 12px; padding: .7rem .9rem; }
.alt-row.c0 { background: var(--a1); } .alt-row.c1 { background: var(--a2); } .alt-row.c2 { background: var(--a3); } .alt-row.c3 { background: var(--a4); }
.alt-row .shape { background: #fff; width: 1.6rem; height: 1.6rem; }
.alt-row input[type=text] { flex: 1; background: rgba(255,255,255,.95); color: var(--ink); border: 0; border-radius: 8px; padding: .65em .8em; font-weight: 600; }
.alt-row input[type=text]:disabled { background: rgba(255,255,255,.75); }
.correct-toggle { width: 42px; height: 42px; border-radius: 50%; border: 3px solid #fff; background: transparent; display: grid; place-items: center; flex: none; }
.correct-toggle svg { width: 22px; height: 22px; opacity: 0; }
.correct-toggle.on { background: #fff; }
.correct-toggle.on svg { opacity: 1; }
.hint { color: var(--muted); font-size: .9rem; }

.modal-bg { position: fixed; inset: 0; background: rgba(5,8,25,.75); display: grid; place-items: center; z-index: 40; padding: 1rem; }
.modal { background: var(--panel); border-radius: 18px; padding: 1.8rem; width: min(520px, 100%); max-height: 90vh; overflow: auto; }
.modal h2 { margin: 0 0 1rem; }
.modal .actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }

@media (max-width: 860px) {
  .admin.editing { height: auto; }
  .editor { grid-template-columns: 1fr; height: auto; }
  .editor-side .list { flex-direction: row; overflow-x: auto; }
  .q-thumb { min-width: 180px; }
  .alt-edit { grid-template-columns: 1fr; }
  .admin-top { flex-wrap: wrap; padding: 1rem; }
  .admin-main { padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* cadastro do jogador (v2) */
.lead-form { gap: .55rem; }
.lead-form .brands { margin-bottom: .6rem; }
.lead-form .form-title { margin: 0 0 .3rem; font-weight: 700; font-size: 1.25rem; text-align: center; }
.lead-form .input { font-size: 1.05rem; font-weight: 600; padding: .7em .9em; text-align: left; }
.lead-form .input.bad { border-color: var(--bad); box-shadow: 0 0 0 2px var(--bad); }
.consent { background: rgba(11,16,48,.55); border-radius: 12px; padding: .8rem .9rem; font-size: .82rem; line-height: 1.45; color: var(--muted); text-align: left; }
.consent p { margin: 0 0 .6rem; }
.consent strong { color: var(--cream); }
.consent .check { display: flex; gap: .6rem; align-items: flex-start; color: var(--cream); font-size: .9rem; cursor: pointer; padding: .3rem; border-radius: 8px; }
.consent .check.bad { box-shadow: 0 0 0 2px var(--bad); }
.consent .check input { width: 1.3rem; height: 1.3rem; flex: none; margin-top: .1rem; accent-color: var(--a4); }
.consent a, .modal.privacy a { color: var(--cream); text-decoration: underline; }
.modal.privacy { font-size: .92rem; line-height: 1.5; color: var(--muted); max-height: 85vh; }
.modal.privacy h2 { color: var(--cream); }
.modal.privacy h3 { color: var(--cream); font-size: 1rem; margin: 1rem 0 .3rem; }
.modal.privacy p { margin: 0 0 .5rem; }
.modal.privacy strong { color: var(--cream); }
