:root {
  --bg-0: #4a060c;
  --bg-1: #7a0d16;
  --bg-2: #a51420;
  --gold: #ffd33d;
  --gold-deep: #e6a700;
  --ink: #2a0508;
  --paper: #fff;
  --glass: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Kolor-fallback: overscroll / obszar poza treścią jest bordowy, nie czarny.
   Bez background-attachment: fixed — powoduje bugi renderowania (szczególnie iOS Safari). */
html { background-color: var(--bg-0); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--paper);
  background:
    radial-gradient(1200px 700px at 50% -10%, var(--bg-2), transparent 60%),
    linear-gradient(160deg, var(--bg-1), var(--bg-0)) var(--bg-0);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 18px 40px;
}

/* Header */
.head { text-align: center; margin: 8px 0 18px; }
.head h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 2.8rem);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.ball-emoji { filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)); }
.brand {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.sub { margin: 6px 0 0; opacity: 0.82; font-size: 0.98rem; }

/* Panel / editor */
.panel { margin: 0 0 18px; }
details {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 4px 16px;
  backdrop-filter: blur(6px);
}
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 12px 2px;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary .hint { font-size: 0.8rem; opacity: 0.7; }
summary strong { color: var(--gold); font-size: 1.05em; }
.editor-label { display: block; font-size: 0.85rem; opacity: 0.85; margin: 4px 0 6px; }
textarea {
  width: 100%;
  resize: vertical;
  min-height: 150px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
  padding: 12px;
  line-height: 1.5;
}
textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.editor-actions { display: flex; align-items: center; gap: 12px; margin: 12px 0 6px; }
.editor-msg { font-size: 0.85rem; opacity: 0.9; }

/* Buttons */
.btn {
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  border: 0;
  padding: 14px 30px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: var(--ink);
  font-size: 1.25rem;
  padding: 16px 48px;
  box-shadow: 0 10px 24px rgba(255, 190, 40, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.05); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }
.controls { display: flex; justify-content: center; gap: 12px; margin: 22px 0 4px; flex-wrap: wrap; }
.draw-note { text-align: center; margin: 8px 0 0; font-size: 0.78rem; opacity: 0.62; }

/* Link do historii */
.hist-link {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s ease;
}
.hist-link:hover { background: rgba(255, 255, 255, 0.2); }

/* Strona /historia */
.wrap.wrap-narrow { max-width: 720px; }
.hist-status, .hist-count { text-align: center; opacity: 0.75; font-size: 0.9rem; }
.hist-count { margin: 0 0 16px; }
.hist-item {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 14px;
  box-shadow: var(--shadow);
}
.hist-when { font-size: 0.82rem; opacity: 0.7; }
.hist-winner { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; font-size: 1.15rem; }
.hist-winner strong { color: var(--gold); }
.hist-order {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px 14px; counter-reset: h;
}
.hist-order li { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; counter-increment: h; }
.hist-order li::before { content: counter(h) "."; opacity: 0.55; min-width: 20px; font-variant-numeric: tabular-nums; }
.hist-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset -2px -2px 3px rgba(0,0,0,0.35); }

/* Layout: maszyna + wynik. Desktop = dwie kolumny (wynik po prawej). */
.stage {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  align-items: start;
  margin-top: 4px;
}

/* Machine / drum */
.machine { margin: 6px 0 0; }
.drum {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: clamp(260px, 82vw, 420px);
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.22), transparent 42%),
    radial-gradient(circle at 50% 55%, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.62));
  border: 6px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow), inset 0 0 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.drum-glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 20%, rgba(255, 255, 255, 0.4), transparent 32%),
    radial-gradient(circle at 72% 82%, rgba(255, 255, 255, 0.08), transparent 30%);
  pointer-events: none;
  z-index: 200;
}
.balls { position: absolute; inset: 0; }

/* Kule — pseudo-3D: kula z połyskiem + rzucany cień (drop-shadow) od światła u góry.
   Pozycja/skala/warstwa (z-index) sterowane z JS przez silnik fizyki. */
.ball {
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  box-shadow:
    inset -5px -7px 14px rgba(0, 0, 0, 0.45),
    inset 4px 5px 10px rgba(255, 255, 255, 0.55),
    0 2px 4px rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.5));
  transform: translate3d(-999px, -999px, 0);
  will-change: transform;
}
.ball::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 18%;
  width: 34%;
  height: 26%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  filter: blur(1.5px);
  pointer-events: none;
}
.ball.drawn { pointer-events: none; }

/* Legend */
.legend {
  list-style: none;
  margin: 18px auto 0;
  padding: 0;
  max-width: 420px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px 14px;
  font-size: 0.9rem;
}
.legend li { display: flex; align-items: center; gap: 8px; opacity: 0.92; }
.legend .chip {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800; color: #fff; flex: 0 0 auto;
  box-shadow: inset -2px -3px 6px rgba(0,0,0,0.35), inset 2px 2px 4px rgba(255,255,255,0.4);
}

/* Results */
.results { min-width: 0; }
.results-placeholder { display: none; }
.results.has-result .results-placeholder { display: none; }
.winner:empty { display: none; }
.winner {
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 211, 61, 0.22), rgba(255, 211, 61, 0.08));
  border: 1px solid rgba(255, 211, 61, 0.5);
  border-radius: var(--radius);
  padding: 22px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  animation: rise 0.4s ease both;
}
.winner .crown { font-size: 2rem; }
.winner .label { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; margin: 4px 0; }
.winner .name { font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 800; color: var(--gold); word-break: break-word; }

.ranking { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ranking li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px 16px;
  animation: rise 0.3s ease both;
}
.ranking .place {
  flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; background: rgba(0, 0, 0, 0.3);
}
.ranking .dot {
  width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto;
  box-shadow: inset -2px -2px 4px rgba(0,0,0,0.35);
}
.ranking .who { font-size: 1.1rem; font-weight: 600; word-break: break-word; }
.ranking li:first-child { border-color: rgba(255, 211, 61, 0.5); background: rgba(255, 211, 61, 0.12); }
.ranking li:first-child .place { background: var(--gold); color: var(--ink); }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Toast (easter egg feedback) */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 0, 3, 0.94);
  border: 1px solid rgba(255, 211, 61, 0.55);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: var(--shadow);
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Desktop: wynik po prawej stronie maszyny */
@media (min-width: 900px) {
  .wrap { max-width: 1040px; }
  .stage { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 34px; }
  .col-machine { position: sticky; top: 20px; }
  .results-placeholder {
    display: grid;
    place-items: center;
    min-height: 240px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.6);
    padding: 24px;
  }
  .results.has-result .results-placeholder { display: none; }
}

/* Mobile: nieco mniejszy zoom maszyny */
@media (max-width: 560px) {
  .drum { max-width: 288px; }
  .legend { font-size: 0.84rem; gap: 6px 10px; max-width: 320px; }
  .head h1 { font-size: clamp(1.8rem, 9vw, 2.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  .winner, .ranking li { animation: none; }
  .toast { transition: opacity 0.2s ease; }
}

/* Baner zaplanowanego losowania (na stronie głównej) */
.result-badge {
  background: rgba(255, 211, 61, 0.16);
  border: 1px solid rgba(255, 211, 61, 0.45);
  color: var(--paper);
  border-radius: 12px;
  padding: 8px 14px;
  margin-bottom: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
}

/* Odliczanie do zaplanowanego losowania (strona główna) */
.countdown {
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}
.cd-title { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.cd-timer {
  font-size: clamp(1.9rem, 9vw, 2.8rem);
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}

/* Znacznik „zaplanowane" w /historia */
.hist-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hist-badge {
  font-size: 0.72rem; padding: 2px 8px; border-radius: 999px;
  background: rgba(255, 211, 61, 0.18); border: 1px solid rgba(255, 211, 61, 0.4);
}

/* ---- Panel damianadmin ---- */
.admin-card {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 18px;
  margin: 0 0 18px;
  backdrop-filter: blur(6px);
}
.admin-card h2 { margin: 0 0 12px; font-size: 1.15rem; }
.adm-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.28);
  color: var(--paper);
  font: inherit; font-size: 1rem;
  padding: 10px 12px;
  margin-bottom: 4px;
}
.adm-input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.adm-input option { color: #111; }
.adm-row { display: flex; gap: 10px; }
.adm-num { max-width: 120px; }
.adm-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.adm-hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); margin: 16px 0; }
.adm-hint, .adm-empty { font-size: 0.85rem; opacity: 0.7; margin: 4px 0; }
.adm-state { font-size: 0.9rem; opacity: 0.85; margin: 0 0 10px; }
.adm-state.adm-on { color: var(--gold); opacity: 1; }
.adm-list { margin-top: 14px; display: grid; gap: 8px; }
.adm-row-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px; padding: 10px 14px;
  flex-wrap: wrap; min-width: 0;
}
.adm-row-main { min-width: 0; flex: 1 1 200px; }
.adm-row-title { font-weight: 700; font-size: 0.98rem; overflow-wrap: anywhere; }
.adm-row-sub { font-size: 0.8rem; opacity: 0.72; margin-top: 2px; overflow-wrap: anywhere; }
.adm-row-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; flex-wrap: wrap; }
.adm-check { font-size: 0.82rem; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; cursor: pointer; }
.adm-check input { flex: 0 0 auto; }
.adm-check-lg { white-space: normal; align-items: flex-start; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn-xs { padding: 5px 12px; font-size: 0.78rem; font-weight: 700; }
.btn-danger {
  background: linear-gradient(180deg, #e6194B, #a51420);
  color: #fff;
  box-shadow: 0 4px 12px rgba(230, 25, 75, 0.3);
}
.btn-danger:hover:not(:disabled) { filter: brightness(1.08); }
.adm-status { font-size: 0.72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.st-wait { background: rgba(255, 255, 255, 0.16); }
.st-live { background: rgba(60, 180, 75, 0.3); border: 1px solid rgba(60, 180, 75, 0.5); }
.st-done { background: rgba(0, 0, 0, 0.3); opacity: 0.7; }

.adv-unlock { display: block; width: 100%; margin: 0 0 18px; }
.extra-unlock { margin: 12px 0 2px; }
.adm-sub { margin: 4px 0 10px; font-size: 1rem; opacity: 0.9; }
.adm-check-lg { font-size: 0.95rem; margin-bottom: 12px; }

/* Bramka KEL (modal + czytnik PDF 2-kolumnowy) */
.kel-modal {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(10, 0, 3, 0.88);
  display: grid; place-items: center; padding: 16px;
}
.kel-modal[hidden] { display: none; }
.kel-box {
  background: var(--bg-1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 22px;
  max-width: 760px; width: 100%;
  box-shadow: var(--shadow);
}
.kel-info { text-align: center; padding: 18px 6px; }
.kel-lock { font-size: 2.4rem; }
.kel-info h3 { margin: 10px 0 6px; }
.kel-count { opacity: 0.85; margin-top: 14px; font-weight: 700; }
.kel-reader-head { font-size: 0.85rem; opacity: 0.85; margin-bottom: 10px; text-align: center; }
.kel-pages {
  max-height: 62vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
}
.kel-pages:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.kel-page {
  width: 100%;
  aspect-ratio: 1 / 1.414;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}

/* Pytanie zabezpieczające */
.kel-question { text-align: center; padding: 18px 6px; }
.kel-question h3 { margin: 8px 0 6px; }
.kel-q { font-size: 1.25rem; font-weight: 800; margin: 8px 0; }
.kel-answer { margin: 6px 0 12px; }
.kel-answer strong { color: var(--gold); }
#kelAnswerInput { max-width: 320px; margin: 0 auto 4px; text-align: center; }
.kel-question .adm-actions { justify-content: center; }
.kel-progress { font-size: 0.78rem; opacity: 0.6; margin: 0 0 6px; letter-spacing: 0.08em; }
.kel-err { color: #ff8a8a; font-size: 0.85rem; margin: 8px 0 0; }

/* Zabezpieczenia przed wyjeżdżaniem treści poza ramki */
.adm-row { flex-wrap: wrap; }
.adm-row > .adm-input { min-width: 0; }
.editor-msg, .adm-state, .adm-hint { overflow-wrap: anywhere; }

/* Zwycięzca zawsze w kadrze na mobile (scroll do niego po losowaniu) */
.winner { scroll-margin-top: 12px; }

/* ---- Losowanie jawne (overlay) ---- */
.jawne-overlay { position: fixed; inset: 0; z-index: 220; background: rgba(10, 0, 3, 0.9); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.jawne-overlay[hidden] { display: none; }
.jawne-box { position: relative; background: var(--bg-1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius); padding: 24px; max-width: 560px; width: 100%; box-shadow: var(--shadow); max-height: 92vh; overflow-y: auto; }
.jawne-close { position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, 0.14); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 1.05rem; cursor: pointer; }
.jawne-title { text-align: center; margin: 0 0 16px; }
.jawne-msg { text-align: center; margin: 6px 0 12px; }
.jawne-warn, .jawne-flash { text-align: center; color: var(--gold); font-size: 0.9rem; }
.jawne-online { text-align: center; opacity: 0.65; font-size: 0.8rem; margin-top: 12px; }
.jawne-pick { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin: 8px 0; }
.jawne-check { display: flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.jawne-check input { flex: 0 0 auto; }
.jawne-name-btn { width: 100%; }
.jawne-actions { display: flex; justify-content: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.jawne-roster { display: grid; gap: 6px; margin: 12px 0; }
.jawne-roster-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; padding: 8px 12px; }
.jawne-r-name { font-weight: 600; overflow-wrap: anywhere; }
.jawne-r-status { font-size: 0.72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; flex: 0 0 auto; }
.jawne-status { text-align: center; opacity: 0.8; font-size: 0.9rem; margin: 6px 0; }
.jawne-wait-note { color: var(--gold); font-weight: 700; }
.jawne-winner { text-align: center; background: linear-gradient(180deg, rgba(255, 211, 61, 0.22), rgba(255, 211, 61, 0.08)); border: 1px solid rgba(255, 211, 61, 0.5); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.jawne-winner .crown { font-size: 2rem; }
.jawne-winner .label { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.jawne-winner .name { font-size: clamp(1.7rem, 8vw, 2.4rem); font-weight: 800; color: var(--gold); overflow-wrap: anywhere; }
.jawne-ranking { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.jawne-ranking li { display: flex; align-items: center; gap: 10px; background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; padding: 8px 12px; }
.jawne-ranking .place { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: rgba(0, 0, 0, 0.3); flex: 0 0 auto; }
.jawne-ranking li:first-child { border-color: rgba(255, 211, 61, 0.5); background: rgba(255, 211, 61, 0.12); }
.jawne-ranking li:first-child .place { background: var(--gold); color: var(--ink); }
.jawne-ranking .who { overflow-wrap: anywhere; }
.jawne-reset-name {
  background: rgba(255, 255, 255, 0.16); border: 0; color: #fff;
  border-radius: 50%; width: 26px; height: 26px; font-size: 0.95rem;
  cursor: pointer; vertical-align: middle; line-height: 1;
}
.jawne-reset-name:hover { background: rgba(255, 255, 255, 0.28); }

/* Glow bębna — sygnał uczciwości losowania */
.drum.glow-fair {
  box-shadow: var(--shadow), inset 0 0 60px rgba(0, 0, 0, 0.6), 0 0 44px 5px rgba(52, 199, 89, 0.8);
}
.drum.glow-rigged { animation: riggedGlow 1.8s ease-in-out infinite; }
@keyframes riggedGlow {
  0%, 100% { box-shadow: var(--shadow), inset 0 0 60px rgba(0, 0, 0, 0.6), 0 0 50px 7px rgba(255, 210, 60, 0.95); }
  50% { box-shadow: var(--shadow), inset 0 0 60px rgba(0, 0, 0, 0.6), 0 0 26px 2px rgba(0, 0, 0, 0.95); }
}
@media (prefers-reduced-motion: reduce) {
  .drum.glow-rigged { animation: none; box-shadow: var(--shadow), inset 0 0 60px rgba(0, 0, 0, 0.6), 0 0 44px 5px rgba(255, 210, 60, 0.85); }
}
