/* common.css — „რისკი" საერთო სტილი (TV game-show ესთეტიკა) */
:root {
  --bg: #050b1f;
  --bg2: #0a1635;
  --panel: #10204d;
  --panel2: #16306e;
  --gold: #ffcb45;
  --gold2: #ffa600;
  --blue: #2e6bff;
  --green: #1fbf6b;
  --red: #ff4b5c;
  --text: #eaf0ff;
  --muted: #8aa0d8;
  --line: #24407e;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: "BPG Nino Mtavruli", "FiraGO", "Helvetica Neue", system-ui, sans-serif;
  background: radial-gradient(1200px 700px at 50% -10%, var(--bg2), var(--bg)) fixed;
  color: var(--text);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

.brand { color: var(--gold); font-weight: 800; letter-spacing: 1px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }

button {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .05s, background .15s, opacity .15s;
}
button:hover:not(:disabled) { background: var(--blue); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .4; cursor: not-allowed; }
button.primary { background: linear-gradient(180deg, var(--gold), var(--gold2)); color: #2a1a00; font-weight: 800; border: none; }
button.green { background: var(--green); border: none; }
button.red { background: var(--red); border: none; }
button.ghost { background: transparent; }

input, select {
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .8rem;
  background: var(--panel2);
  border: 1px solid var(--line);
}
.pill.live { background: var(--red); border: none; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* მოთამაშის ქულის ჩიპები */
.scorebar { display: flex; gap: 14px; justify-content: center; }
.scorechip {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 16px;
  min-width: 150px;
  text-align: center;
}
.scorechip.active { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; }
.scorechip.answering { background: var(--green); }
.scorechip .nm { font-size: .9rem; color: var(--muted); }
.scorechip.active .nm { color: var(--gold); }
.scorechip .sc { font-size: 1.8rem; font-weight: 800; }
.scorechip .sc.neg { color: var(--red); }

.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--panel2); border: 1px solid var(--line);
  padding: 12px 20px; border-radius: 10px; box-shadow: var(--shadow);
  opacity: 0; transition: opacity .2s; z-index: 99; max-width: 80vw;
}
.toast.show { opacity: 1; }
.toast.err { background: var(--red); border: none; }
