/*
 * Greka biblijna — quiz styles. Project language English; UI text is Polish.
 * Light is default; [data-theme="dark"] inverts. Mirrors the visual language of
 * the Strzałki game (/gra/game.css): branded dark/gold buttons on a light host.
 */
.gq-root {
  --gq-fg: #0a0a0a;
  --gq-muted: #6b7280;
  --gq-accent: #E8A317;
  --gq-card-bg: #fff8e7;
  --gq-card-border: rgba(10, 10, 10, 0.12);
  --gq-btn-bg: #0a0a0a;
  --gq-btn-fg: #FFD60A;
  --gq-ok: #1a7f37;
  --gq-ok-bg: #e5f4ea;
  --gq-bad: #B22834;
  --gq-bad-bg: #fbe7e8;
  --gq-overlay-bg: rgba(10, 10, 10, 0.55);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--gq-fg);
  position: relative;
}

.gq-root[data-theme="dark"] {
  --gq-fg: #fbf7ef;
  --gq-muted: #9aa0a6;
  --gq-card-bg: #161616;
  --gq-card-border: rgba(255, 255, 255, 0.14);
}

/* ---- HUD ------------------------------------------------------------------ */
.gq-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
  flex-wrap: wrap;
}
.gq-info { display: flex; gap: 16px; align-items: baseline; font-weight: 700; color: #0a0a0a; }
.gq-level { font-size: 1.05rem; }
.gq-score { font-size: 1.05rem; font-weight: 800; color: #B22834; }
.gq-combo { font-size: 1rem; font-weight: 800; }

.gq-btn {
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--gq-btn-fg);
  background: var(--gq-btn-bg);
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  cursor: pointer;
  transition: transform .1s ease, filter .1s ease;
}
.gq-btn:hover { filter: brightness(1.12); }
.gq-btn:active { transform: translateY(1px); }
.gq-restart { padding: 8px 14px; font-size: 0.9rem; }

/* "Grasz jako: <name>" chip */
.gq-playas {
  align-self: center;
  font-family: inherit;
  background: transparent;
  border: 1px dashed var(--gq-card-border);
  border-radius: 999px;
  padding: 5px 14px;
  color: var(--gq-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.gq-playas-name { color: var(--gq-fg); font-weight: 800; }
.gq-playas-act { margin-left: 6px; opacity: 0.7; }

.gq-progress {
  color: var(--gq-muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Stage ---------------------------------------------------------------- */
.gq-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.gq-prompt {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  color: var(--gq-fg);
}
.gq-card {
  width: 100%;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gq-card-bg);
  border: 2px solid var(--gq-card-border);
  border-radius: 18px;
  font-weight: 800;
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  color: var(--gq-fg);
  padding: 18px 14px;
  text-align: center;
  transition: background-color .25s ease, border-color .25s ease;
}
/* Single letters render huge; words a touch smaller so long ones still fit. */
.gq-card--letter { font-size: clamp(3.2rem, 16vw, 5.5rem); }
.gq-card--flash-ok { border-color: var(--gq-ok); background: var(--gq-ok-bg); }
.gq-card--flash-bad { border-color: var(--gq-bad); background: var(--gq-bad-bg); }
.gq-root[data-theme="dark"] .gq-card--flash-ok { background: #10331d; }
.gq-root[data-theme="dark"] .gq-card--flash-bad { background: #3a1416; }

.gq-options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gq-option {
  width: 100%;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gq-fg);
  background: var(--gq-card-bg);
  border: 2px solid var(--gq-card-border);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: transform .08s ease, border-color .12s ease, background-color .12s ease;
}
.gq-option:hover:not(:disabled) { border-color: var(--gq-accent); }
.gq-option:active:not(:disabled) { transform: translateY(1px); }
.gq-option:disabled { cursor: default; }
.gq-option--ok { border-color: var(--gq-ok); background: var(--gq-ok-bg); color: var(--gq-ok); }
.gq-option--bad { border-color: var(--gq-bad); background: var(--gq-bad-bg); color: var(--gq-bad); }
.gq-root[data-theme="dark"] .gq-option--ok { background: #10331d; color: #7ee2a0; }
.gq-root[data-theme="dark"] .gq-option--bad { background: #3a1416; color: #ff9ba3; }

.gq-feedback {
  margin: 0;
  min-height: 2.4em;
  text-align: center;
  font-weight: 700;
  line-height: 1.4;
}
.gq-feedback--ok { color: var(--gq-ok); }
.gq-feedback--bad { color: var(--gq-bad); }
.gq-hint { font-weight: 600; color: var(--gq-muted); font-size: 0.9rem; }

/* ---- Overlay (between levels / finished) ---------------------------------- */
.gq-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gq-overlay-bg);
  border-radius: 18px;
  z-index: 5;
  padding: 20px;
}
.gq-overlay[hidden] { display: none; }
.gq-overlay-card {
  background: var(--gq-card-bg);
  border: 2px solid var(--gq-card-border);
  border-radius: 18px;
  padding: 26px 22px;
  text-align: center;
  max-width: 420px;
}
.gq-overlay-title { margin: 0 0 10px; font-size: 1.4rem; color: var(--gq-fg); }
.gq-overlay-desc { margin: 0 0 20px; color: var(--gq-muted); line-height: 1.5; }
.gq-overlay-card .gq-btn { font-size: 1.05rem; padding: 12px 26px; }

/* ---- Leaderboard ---------------------------------------------------------- */
.gq-leaderboard {
  width: 100%;
  margin-top: 6px;
  border-top: 1px solid var(--gq-card-border);
  padding-top: 14px;
}
.gq-lb-title {
  margin: 0 0 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gq-muted);
}
.gq-lb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.gq-lb-empty { color: var(--gq-muted); font-style: italic; }
.gq-lb-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 10px;
}
.gq-lb-me { background: rgba(232, 163, 23, 0.16); }
.gq-lb-rank { width: 1.8em; color: var(--gq-muted); font-weight: 800; }
.gq-lb-name { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gq-lb-pts { font-weight: 800; color: #B22834; font-variant-numeric: tabular-nums; }

/* ---- Name gate ------------------------------------------------------------ */
.gq-namegate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gq-overlay-bg);
  border-radius: 18px;
  z-index: 10;
  padding: 20px;
}
.gq-namegate[hidden] { display: none; }
.gq-namegate-card {
  background: var(--gq-card-bg);
  border: 2px solid var(--gq-card-border);
  border-radius: 18px;
  padding: 26px 22px;
  text-align: center;
  max-width: 420px;
  width: 100%;
}
.gq-namegate-title { margin: 0 0 10px; font-size: 1.35rem; color: var(--gq-fg); }
.gq-namegate-desc { margin: 0 0 18px; color: var(--gq-muted); line-height: 1.5; font-size: 0.95rem; }
.gq-name-input {
  width: 100%;
  font-family: inherit;
  font-size: 1.15rem;
  padding: 12px 14px;
  border: 2px solid var(--gq-card-border);
  border-radius: 12px;
  margin-bottom: 14px;
  background: #fff;
  color: #0a0a0a;
}
.gq-name-input:focus { outline: none; border-color: var(--gq-accent); }
.gq-name-go { width: 100%; font-size: 1.05rem; padding: 12px; }
