/* Fast IT Solutions - quiz na zywo. Kolory wg ksiegi znaku. */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,700;1,400&display=swap');

:root {
  --red: #e52142;
  --red2: #e42726;
  --grey: #727272;
  --ink: #0a0a0c;
  --ink2: #141418;
  --ink3: #1e1e24;
  --line: #2b2b33;
  --text: #f4f4f6;
  --muted: #a1a1ad;

  /* barwy odpowiedzi (A, B, C...) */
  --a0: #e52142;
  --a1: #2d7ff9;
  --a2: #f5a623;
  --a3: #12b886;
  --a4: #8b5cf6;
  --a5: #64748b;

  /* barwy graczy w rankingu - kolejnosc zwalidowana pod katem
     rozroznialnosci przy daltonizmie na czarnym tle */
  --s0: #3987e5;
  --s1: #d95926;
  --s2: #199e70;
  --s3: #c98500;
  --s4: #d55181;
  --s5: #008300;
  --s6: #9085e9;
  --s7: #e66767;

  /* drugi poziom dla graczy 9-16: te same barwy rozjaśnione.
     Rozróżnienie w parze jest tylko pomocnicze - tożsamość niesie nazwa gracza. */
  --s8: #8cb9f0;
  --s9: #e99f81;
  --s10: #7ac7ac;
  --s11: #e0b86b;
  --s12: #e79ab6;
  --s13: #6bb76b;
  --s14: #bfb8f2;
  --s15: #f0a7a7;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Ubuntu, 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-text-size-adjust: 100%;
}

body { min-height: 100vh; min-height: 100dvh; }

.logo { display: block; height: 44px; width: auto; }
.logo-lg { height: 76px; }

.brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: #000;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

h1 { font-size: 30px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.02em; }
h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
p.lead { color: var(--muted); margin: 0 0 24px; line-height: 1.6; }

.card {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 16px;
}

label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px; font-weight: 400; }

input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%;
  background: var(--ink3);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229, 33, 66, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: filter .15s ease, transform .05s ease;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--grey); filter: none; }
.btn.sm { padding: 8px 14px; font-size: 14px; }
.btn.block { width: 100%; }

.msg { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 12px 0; line-height: 1.5; }
.msg.err { background: rgba(229, 33, 66, .14); border: 1px solid rgba(229, 33, 66, .45); color: #ffc9d3; }
.msg.ok  { background: rgba(18, 184, 134, .14); border: 1px solid rgba(18, 184, 134, .45); color: #b7f0dc; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- kafelki odpowiedzi (wspolne dla ekranu i telefonu) ---------- */
.answers { display: grid; gap: 12px; }
.answers.cols-1 { grid-template-columns: 1fr; }
.answers.cols-2 { grid-template-columns: repeat(2, 1fr); }
.answers.cols-3 { grid-template-columns: repeat(3, 1fr); }

.ans {
  display: flex;
  align-items: center;
  gap: 14px;
  border: none;
  border-radius: 14px;
  padding: 20px 22px;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  text-align: left;
  line-height: 1.3;
  cursor: pointer;
  transition: transform .08s ease, opacity .2s ease;
}
.ans:active { transform: scale(.985); }
.ans .shape { font-size: 1.15em; opacity: .9; flex: none; }
.ans .txt { flex: 1; }
.ans.dim { opacity: .28; }
.ans.win { outline: 4px solid #fff; outline-offset: 3px; }

.a-0 { background: var(--a0); }
.a-1 { background: var(--a1); }
.a-2 { background: var(--a2); color: #2a1a00; }
.a-3 { background: var(--a3); color: #04241a; }
.a-4 { background: var(--a4); }
.a-5 { background: var(--a5); }
