/* ==========================================================================
   SilesiaFly - egzaminy, style frontendu
   Paleta zgodna z motywem. Zmienne z fallbackiem, zeby wtyczka dzialala
   takze poza tym motywem.
   ========================================================================== */

.sfe-wrap {
  --e-dark:  var(--sf-slate,  #151E24);
  --e-dark2: var(--sf-slate2, #1E2A32);
  --e-line:  var(--sf-line,   #DCE4E8);
  --e-steel: var(--sf-steel,  #5A6B74);
  --e-cool:  var(--sf-cool,   #3D7A8C);
  --e-ember: var(--sf-ember,  #F4632B);
  --e-amber: var(--sf-amber,  #FFAE1F);
  --e-white: #FFFFFF;

  max-width: 820px;
  margin: 0 auto;
  font-family: inherit;
}

/* ---------- PRZYCISKI ---------- */

.sfe-btn {
  display: inline-block;
  padding: 14px 26px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.sfe-btn-p { background: var(--e-ember); color: #fff; }
.sfe-btn-p:hover { background: #DD5622; color: #fff; }
.sfe-btn-p:disabled { opacity: .6; cursor: default; }
.sfe-btn-s {
  background: transparent;
  color: var(--e-white);
  border: 1.5px solid rgba(255,255,255,.28);
}
.sfe-btn-s:hover { border-color: rgba(255,255,255,.5); color: #fff; }

/* ---------- EKRAN STARTOWY ---------- */

.sfe-intro {
  background: var(--e-dark2);
  border-radius: 14px;
  padding: 32px 28px;
  color: var(--e-white);
}
.sfe-intro h3 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  color: var(--e-white);
}
.sfe-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 10px;
}
.sfe-facts li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
  font-size: 14.5px;
}
.sfe-facts span { color: #9DAEB8; }
.sfe-facts strong { color: var(--e-white); }

.sfe-warn {
  background: rgba(244,99,43,.1);
  border-left: 3px solid var(--e-ember);
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
  margin-bottom: 22px;
  font-size: 14px;
  color: #C9D6DC;
  line-height: 1.6;
}
.sfe-warn strong { color: var(--e-white); display: block; margin-bottom: 6px; }
.sfe-warn p { margin: 0 0 8px; }
.sfe-warn p:last-child { margin-bottom: 0; }

/* ---------- BLOKADA DOSTEPU ---------- */

.sfe-locked {
  background: var(--e-dark2);
  border-radius: 14px;
  padding: 32px 28px;
  color: #9DAEB8;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.sfe-locked strong { color: var(--e-white); }
.sfe-locked p { margin: 0 0 12px; }

/* ---------- TEST ---------- */

.sfe-quiz {
  background: var(--e-dark2);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.sfe-quiz.is-flagged {
  box-shadow: 0 0 0 3px rgba(244,99,43,.55);
}

.sfe-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.sfe-count, .sfe-score {
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  font-size: 12px;
  white-space: nowrap;
}
.sfe-count { color: #8FA3AE; }
.sfe-score { color: var(--e-amber); }
.sfe-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.12);
  border-radius: 2px;
  overflow: hidden;
}
.sfe-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--e-cool), var(--e-ember));
  transition: width .35s ease;
}

.sfe-body { padding: 30px 26px; }
.sfe-cat {
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--e-amber);
  margin-bottom: 12px;
}
.sfe-q {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--e-white);
  margin-bottom: 22px;
}

.sfe-opts { display: grid; gap: 10px; }
.sfe-opt {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 14px 17px;
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.11);
  border-radius: 9px;
  color: var(--e-white);
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: .14s;
}
.sfe-opt:hover:not(:disabled) {
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
}
.sfe-opt:disabled { cursor: default; }
.sfe-opt.is-ok { border-color: #3FB07A; background: rgba(63,176,122,.16); }
.sfe-opt.is-no { border-color: #D9534F; background: rgba(217,83,79,.14); }
.sfe-ltr {
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #8FA3AE;
  width: 18px;
  flex-shrink: 0;
}

.sfe-expl {
  display: none;
  margin-top: 16px;
  padding: 14px 17px;
  background: rgba(255,255,255,.05);
  border-left: 3px solid var(--e-cool);
  border-radius: 0 7px 7px 0;
  font-size: 14.5px;
  color: #B9C9D2;
  line-height: 1.6;
}
.sfe-expl.is-on { display: block; }

.sfe-foot { display: none; padding: 0 26px 26px; }
.sfe-foot.is-on { display: block; }
.sfe-foot .sfe-btn { width: 100%; }

/* ---------- WYNIK ---------- */

.sfe-result {
  background: var(--e-dark2);
  border-radius: 14px;
  padding: 34px 26px;
  text-align: center;
  color: var(--e-white);
}
.sfe-final {
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 8px;
}
.sfe-verdict {
  color: #9DAEB8;
  font-size: 16px;
  margin: 0 0 24px;
}

.sfe-break {
  max-width: 460px;
  margin: 0 auto 26px;
  display: grid;
  gap: 10px;
  text-align: left;
}
.sfe-row {
  display: grid;
  grid-template-columns: 1fr 90px 46px;
  align-items: center;
  gap: 12px;
}
.sfe-rcat { font-size: 13.5px; color: #B9C9D2; }
.sfe-rbar {
  height: 5px;
  background: rgba(255,255,255,.12);
  border-radius: 3px;
  overflow: hidden;
}
.sfe-rbar i { display: block; height: 100%; border-radius: 3px; }
.sfe-rbar i.is-good { background: #3FB07A; }
.sfe-rbar i.is-mid  { background: var(--e-amber); }
.sfe-rbar i.is-low  { background: #D9534F; }
.sfe-rnum {
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: #8FA3AE;
  text-align: right;
}

.sfe-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- BLAD ---------- */

.sfe-error {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(217,83,79,.12);
  border-left: 3px solid #D9534F;
  border-radius: 0 8px 8px 0;
  color: #E8A9A5;
  font-size: 14px;
}

/* ---------- MOBILE ---------- */

@media (max-width: 640px) {
  .sfe-body { padding: 24px 20px; }
  .sfe-q { font-size: 18px; }
  .sfe-top { flex-wrap: wrap; }
  .sfe-bar { order: 3; flex-basis: 100%; }
  .sfe-row { grid-template-columns: 1fr 60px 44px; gap: 8px; }
  .sfe-actions { flex-direction: column; }
  .sfe-actions .sfe-btn { width: 100%; text-align: center; }
}

/* ==========================================================================
   DOSTEP DO MATERIALOW
   ========================================================================== */

.sfe-gate {
  max-width: 640px;
  margin: 40px auto;
}
.sfe-gate-inner {
  background: var(--sf-slate2, #1E2A32);
  border-radius: 14px;
  padding: 34px 30px;
  text-align: center;
  color: #9DAEB8;
}
.sfe-gate-label {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--sf-amber, #FFAE1F);
  margin: 0 0 14px;
}
.sfe-gate-inner h3 {
  color: #fff;
  font-size: 21px;
  margin: 0 0 12px;
}
.sfe-gate-inner p {
  margin: 0 0 16px;
  line-height: 1.6;
  font-size: 15px;
}

.sfe-gate-products {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}
.sfe-gate-product {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color .16s ease;
}
.sfe-gate-product:hover {
  border-color: var(--sf-ember, #F4632B);
}
.sfe-gate-pname {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-align: left;
}
.sfe-gate-pprice {
  color: var(--sf-amber, #FFAE1F);
  font-weight: 700;
  white-space: nowrap;
}
.sfe-gate-pprice del { opacity: .5; font-weight: 400; }

.sfe-gate-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 !important;
}

/* ---------- SPIS MATERIALOW ---------- */

.sfe-materials { max-width: 760px; }

.sfe-mat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 2px;
}
.sfe-mat-list li a {
  display: block;
  padding: 15px 20px;
  background: var(--sf-white, #fff);
  border: 1px solid var(--sf-line, #DCE4E8);
  color: var(--sf-slate, #151E24);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  transition: border-color .15s ease;
}
.sfe-mat-list li:first-child a { border-radius: 10px 10px 0 0; }
.sfe-mat-list li:last-child a { border-radius: 0 0 10px 10px; }
.sfe-mat-list li a:hover {
  border-color: var(--sf-cool, #3D7A8C);
  color: var(--sf-ember, #F4632B);
}

.sfe-mat-h {
  font-size: 18px;
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sf-line, #DCE4E8);
}

.sfe-results {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.sfe-results td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--sf-line, #DCE4E8);
  color: var(--sf-steel, #5A6B74);
}
.sfe-results td:first-child { color: var(--sf-slate, #151E24); font-weight: 500; }
.sfe-results td:last-child { text-align: right; }

@media (max-width: 640px) {
  .sfe-gate-inner { padding: 26px 20px; }
  .sfe-gate-product { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sfe-gate-actions { flex-direction: column; }
  .sfe-gate-actions .sfe-btn { width: 100%; }
}

/* ==========================================================================
   MATERIALY SZKOLENIOWE - rozwijane tematy z postepem
   ========================================================================== */

.sfm {
  max-width: 820px;
  margin: 0 auto 40px;
}

/* ---------- NAGLOWEK Z POSTEPEM ---------- */

.sfm-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: var(--sf-white, #fff);
  border: 1px solid var(--sf-line, #DCE4E8);
  border-radius: 12px;
  margin-bottom: 18px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.sfm-progress { flex: 1; display: flex; align-items: center; gap: 14px; }
.sfm-count {
  font-family: ui-monospace, monospace;
  font-size: 12.5px;
  color: var(--sf-steel, #5A6B74);
  white-space: nowrap;
}
.sfm-bar {
  flex: 1;
  height: 5px;
  background: var(--sf-line, #DCE4E8);
  border-radius: 3px;
  overflow: hidden;
}
.sfm-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sf-cool, #3D7A8C), var(--sf-ember, #F4632B));
  transition: width .3s ease;
}
.sfm-expand {
  background: transparent;
  border: 1.5px solid var(--sf-line, #DCE4E8);
  border-radius: 7px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--sf-steel, #5A6B74);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s ease;
}
.sfm-expand:hover {
  border-color: var(--sf-slate, #151E24);
  color: var(--sf-slate, #151E24);
}

/* ---------- LISTA TEMATOW ---------- */

.sfm-list {
  border: 1px solid var(--sf-line, #DCE4E8);
  border-radius: 12px;
  overflow: hidden;
  background: var(--sf-white, #fff);
}
.sfm-item + .sfm-item { border-top: 1px solid var(--sf-line, #DCE4E8); }

.sfm-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background .14s ease;
}
.sfm-toggle:hover { background: rgba(61, 122, 140, .045); }

.sfm-num {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--sf-steel, #5A6B74);
  min-width: 34px;
  flex-shrink: 0;
}
.sfm-title {
  flex: 1;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--sf-slate, #151E24);
  line-height: 1.4;
}

.sfm-check {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--sf-line, #DCE4E8);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: .16s;
}
.sfm-item.is-done .sfm-check {
  background: #2E8B5F;
  border-color: #2E8B5F;
}
.sfm-item.is-done .sfm-check::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.sfm-item.is-done .sfm-title { color: var(--sf-steel, #5A6B74); }

.sfm-arrow {
  width: 9px;
  height: 9px;
  border: solid var(--sf-steel, #5A6B74);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  margin-top: -4px;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.sfm-item.is-open .sfm-arrow { transform: rotate(-135deg); margin-top: 2px; }

/* ---------- TRESC ---------- */

.sfm-body {
  display: none;
  padding: 0 20px 22px 68px;
}
.sfm-item.is-open .sfm-body { display: block; }

.sfm-content {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--sf-slate, #151E24);
}
.sfm-content p { margin: 0 0 14px; }
.sfm-content p:last-child { margin-bottom: 0; }
.sfm-content ul, .sfm-content ol { margin: 0 0 14px; padding-left: 20px; }
.sfm-content li { margin-bottom: 7px; }
.sfm-content strong { font-weight: 600; }

.sfm-actions { margin-top: 18px; }
.sfm-done {
  background: var(--sf-ember, #F4632B);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 20px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}
.sfm-done:hover { background: #DD5622; }
.sfm-done:disabled { opacity: .6; cursor: default; }
.sfm-item.is-done .sfm-done {
  background: transparent;
  color: var(--sf-steel, #5A6B74);
  border: 1.5px solid var(--sf-line, #DCE4E8);
}
.sfm-item.is-done .sfm-done:hover {
  background: transparent;
  border-color: var(--sf-steel, #5A6B74);
}

/* ---------- KONIEC KATEGORII ---------- */

.sfm-finish {
  margin-top: 20px;
  padding: 22px 24px;
  background: rgba(46, 139, 95, .07);
  border-left: 3px solid #2E8B5F;
  border-radius: 0 10px 10px 0;
}
.sfm-finish p { margin: 0 0 6px; font-size: 15px; }
.sfm-finish p:last-child { margin-bottom: 0; color: var(--sf-steel, #5A6B74); }

/* ---------- PODSUMOWANIE POSTEPU ---------- */

.sfm-summary { display: grid; gap: 2px; }
.sfm-sum-row {
  display: grid;
  grid-template-columns: 1fr 120px 60px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--sf-white, #fff);
  border: 1px solid var(--sf-line, #DCE4E8);
  text-decoration: none;
  transition: border-color .15s ease;
}
.sfm-sum-row:first-child { border-radius: 10px 10px 0 0; }
.sfm-sum-row:last-child { border-radius: 0 0 10px 10px; }
.sfm-sum-row:hover { border-color: var(--sf-cool, #3D7A8C); }
.sfm-sum-title { font-size: 15px; font-weight: 500; color: var(--sf-slate, #151E24); }
.sfm-sum-bar {
  height: 5px;
  background: var(--sf-line, #DCE4E8);
  border-radius: 3px;
  overflow: hidden;
}
.sfm-sum-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sf-cool, #3D7A8C), var(--sf-ember, #F4632B));
}
.sfm-sum-num {
  font-family: ui-monospace, monospace;
  font-size: 12.5px;
  color: var(--sf-steel, #5A6B74);
  text-align: right;
}

/* ---------- MOBILE ---------- */

@media (max-width: 640px) {
  .sfm-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    position: static;
  }
  .sfm-expand { width: 100%; }
  .sfm-toggle { padding: 14px 16px; gap: 10px; }
  .sfm-num { min-width: 30px; font-size: 11px; }
  .sfm-title { font-size: 14.5px; }
  .sfm-body { padding: 0 16px 20px 16px; }
  .sfm-content { font-size: 15px; }
  .sfm-done { width: 100%; }
  .sfm-sum-row { grid-template-columns: 1fr 70px 50px; gap: 10px; padding: 12px 14px; }
}

/* ==========================================================================
   EGZAMIN OFICJALNY (Wytyczne 1/2025)
   ========================================================================== */

.sfx {
  max-width: 720px;
  margin: 0 auto;
  --e-dark:  var(--sf-slate,  #151E24);
  --e-dark2: var(--sf-slate2, #1E2A32);
  --e-line:  var(--sf-line,   #DCE4E8);
  --e-steel: var(--sf-steel,  #5A6B74);
  --e-cool:  var(--sf-cool,   #3D7A8C);
  --e-ember: var(--sf-ember,  #F4632B);
  --e-amber: var(--sf-amber,  #FFAE1F);
}

.sfx-panel {
  background: var(--e-dark2);
  border-radius: 14px;
  padding: 34px 30px;
  color: #9DAEB8;
}
.sfx-label {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--e-amber);
  margin: 0 0 12px;
}
.sfx-panel h3 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 10px;
}
.sfx-hint, .sfx-who {
  font-size: 14.5px;
  margin: 0 0 20px;
  line-height: 1.55;
}
.sfx-who { color: var(--e-amber); font-weight: 500; }

/* ---------- KOD ---------- */

#sfxCodeInput {
  width: 100%;
  padding: 16px 18px;
  font-family: ui-monospace, monospace;
  font-size: 26px;
  letter-spacing: 6px;
  text-align: center;
  text-transform: uppercase;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.16);
  border-radius: 10px;
  color: #fff;
  margin-bottom: 16px;
  box-sizing: border-box;
}
#sfxCodeInput:focus {
  outline: none;
  border-color: var(--e-ember);
}
#sfxCodeInput::placeholder { color: rgba(255,255,255,.2); }

.sfx-err {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(217,83,79,.14);
  border-left: 3px solid #D9534F;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: #E8A9A5;
}

/* ---------- ZASADY ---------- */

.sfx-rules {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 1px;
}
.sfx-rules li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
  font-size: 14.5px;
}
.sfx-rules span { color: #9DAEB8; }
.sfx-rules strong { color: #fff; }

.sfx-note {
  background: rgba(244,99,43,.09);
  border-left: 3px solid var(--e-ember);
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #C9D6DC;
}
.sfx-note p { margin: 0 0 10px; }
.sfx-note p:last-child { margin-bottom: 0; }
.sfx-note strong { color: #fff; }

.sfx-accept {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(255,255,255,.05);
  border-radius: 9px;
  margin-bottom: 20px;
  cursor: pointer;
  font-size: 14.5px;
  line-height: 1.5;
}
.sfx-accept input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--e-ember);
}

.sfx-panel .sfe-btn { width: 100%; }

/* ---------- EGZAMIN ---------- */

.sfx-quiz { padding: 0; transition: box-shadow .2s ease; }
.sfx-quiz.is-flagged { box-shadow: 0 0 0 3px rgba(244,99,43,.55); }

.sfx-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 26px;
}
.sfx-pos {
  font-family: ui-monospace, monospace;
  font-size: 12.5px;
  color: #8FA3AE;
}
.sfx-clock {
  font-family: ui-monospace, monospace;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  transition: color .3s ease;
}
.sfx-clock.is-low { color: var(--e-amber); }
.sfx-clock.is-critical {
  color: #FF6B5A;
  animation: sfxPulse 1s ease-in-out infinite;
}
@keyframes sfxPulse { 50% { opacity: .5; } }

.sfx-bar {
  height: 3px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
}
.sfx-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--e-cool), var(--e-ember));
  transition: width .3s ease;
}

.sfx-body { padding: 28px 26px; }
.sfx-cat {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--e-amber);
  margin-bottom: 12px;
}
.sfx-q {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 22px;
}

.sfx-opts { display: grid; gap: 10px; }
.sfx-opt {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 15px 18px;
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.11);
  border-radius: 9px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: .14s;
}
.sfx-opt:hover:not(:disabled) {
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
}
.sfx-opt:disabled { cursor: default; opacity: .55; }
.sfx-opt.is-picked {
  border-color: var(--e-ember);
  background: rgba(244,99,43,.14);
  opacity: 1;
}
.sfx-ltr {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #8FA3AE;
  width: 18px;
  flex-shrink: 0;
}

.sfx-foot { display: none; padding: 0 26px 26px; }
.sfx-foot.is-on { display: block; }

/* ---------- KONIEC ---------- */

.sfx-done { text-align: center; }
.sfx-done h3 { margin-bottom: 12px; }
.sfx-done p { font-size: 15px; margin: 0; }

/* ---------- MOBILE ---------- */

@media (max-width: 640px) {
  .sfx-panel { padding: 26px 20px; }
  .sfx-body { padding: 22px 18px; }
  .sfx-top { padding: 14px 18px; }
  .sfx-foot { padding: 0 18px 20px; }
  .sfx-q { font-size: 18px; }
  #sfxCodeInput { font-size: 21px; letter-spacing: 4px; padding: 14px; }
  .sfx-clock { font-size: 18px; }
}

/* pole imienia w tescie grupowym */
.sfg-name {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.16);
  border-radius: 10px;
  color: #fff;
  margin: 0 0 18px;
  box-sizing: border-box;
  font-family: inherit;
  display: block;
}

/* pole kodu w tescie grupowym - wlasny odstep, zeby nie sklejalo sie
   z polem imienia */
#sfgCode {
  margin-bottom: 12px !important;
  letter-spacing: 5px;
}
.sfg-name:focus { outline: none; border-color: var(--sf-ember, #F4632B); }
.sfg-name::placeholder { color: rgba(255,255,255,.3); }


/* wynik w tescie grupowym */
#sfgResult { text-align: center; }
#sfgResult .sfe-final {
  font-size: 46px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
#sfgResult .sfe-verdict { color: #9DAEB8; font-size: 16px; margin: 0 0 24px; }
#sfgResult .sfe-break { text-align: left; max-width: 460px; margin: 0 auto; }

/* wybor kandydata z listy w sesji grupowej */
.sfx-names {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
}
.sfx-name {
  width: 100%;
  text-align: left;
  padding: 15px 18px;
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 9px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: .14s;
}
.sfx-name:hover:not(:disabled) {
  border-color: var(--sf-ember, #F4632B);
  background: rgba(255,255,255,.08);
}
.sfx-name:disabled { opacity: .4; cursor: default; }
.sfx-name.is-picked {
  border-color: var(--sf-ember, #F4632B);
  background: rgba(244,99,43,.16);
  opacity: 1;
}

/* ==========================================================================
   NAWIGACJA W EGZAMINIE
   ========================================================================== */

.sfx-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 26px 20px;
}
.sfx-dot {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.12);
  color: #8FA3AE;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  cursor: pointer;
  transition: .14s;
  padding: 0;
}
.sfx-dot:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.sfx-dot.is-done {
  background: rgba(61,122,140,.3);
  border-color: rgba(61,122,140,.6);
  color: #fff;
}
.sfx-dot.is-here {
  border-color: var(--sf-ember, #F4632B);
  background: rgba(244,99,43,.2);
  color: #fff;
  font-weight: 600;
}

.sfx-moves {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.sfx-move {
  flex: 1;
  padding: 11px 16px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: .14s;
}
.sfx-move:hover:not(:disabled) { border-color: rgba(255,255,255,.5); }
.sfx-move:disabled { opacity: .3; cursor: default; }

@media (max-width: 640px) {
  .sfx-nav { padding: 0 18px 16px; gap: 5px; }
  .sfx-dot { width: 28px; height: 28px; font-size: 11px; }
}
