/* ============================================
   NightCrew — Neon Night Design System
   ============================================ */
:root {
  --bg: #0a0a12;
  --bg2: #12121f;
  --pink: #ff2e88;
  --violet: #7b2eff;
  --cyan: #00e5ff;
  --gold: #ffb800;
  --green: #00e676;
  --red: #ff4757;
  --text: #f4f4fa;
  --muted: rgba(244, 244, 250, 0.55);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --grad: linear-gradient(90deg, var(--pink), var(--violet), var(--cyan));
  --radius: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { height: 100%; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.hidden { display: none !important; }

/* ——— Fundal aurora ——— */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 55vw; height: 55vw; background: var(--violet); top: -15%; left: -10%; }
.aurora span:nth-child(2) { width: 45vw; height: 45vw; background: var(--pink); bottom: -10%; right: -5%; animation-delay: -8s; }
.aurora span:nth-child(3) { width: 35vw; height: 35vw; background: #0066aa; top: 40%; left: 50%; animation-delay: -14s; opacity: 0.22; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vw, -4vh) scale(1.15); }
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

/* ——— Butoane ——— */
.btn-primary {
  display: inline-block; border: none; border-radius: 16px;
  background: var(--grad); background-size: 180% 100%;
  color: #fff; font-weight: 800; font-size: 16px;
  padding: 13px 22px; text-decoration: none; text-align: center;
  transition: transform 0.12s ease, background-position 0.4s ease, box-shadow 0.2s;
  box-shadow: 0 4px 22px rgba(123, 46, 255, 0.4);
}
.btn-primary:hover { background-position: 100% 0; }
.btn-primary:active { transform: scale(0.96); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary.big { width: 100%; padding: 17px; font-size: 18px; }

.btn-ghost {
  display: inline-block; border-radius: 14px; padding: 12px 18px;
  background: rgba(255,255,255,0.07); color: var(--text);
  border: 1px solid var(--glass-border); font-weight: 600; font-size: 15px;
  transition: transform 0.12s, background 0.2s;
}
.btn-ghost:active { transform: scale(0.96); }
.btn-ghost.danger { border-color: rgba(255,71,87,0.5); color: #ff8a94; }

.icon-btn {
  background: rgba(255,255,255,0.08); border: 1px solid var(--glass-border);
  border-radius: 12px; font-size: 19px; padding: 8px 11px; color: var(--text);
  transition: transform 0.12s;
}
.icon-btn:active { transform: scale(0.9); }

/* ============================================
   LANDING
   ============================================ */
.landing { display: flex; flex-direction: column; align-items: center; padding: 0 18px 60px; }

.hero { text-align: center; padding: 60px 10px 34px; max-width: 720px; }
.logo { font-size: 22px; font-weight: 900; letter-spacing: 1px; margin-bottom: 26px; }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.15; font-weight: 900; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.br-desk { display: none; }

.entry { width: 100%; max-width: 460px; }
.entry-card { padding: 26px 22px; }
.tabs-mini { display: flex; gap: 8px; margin-bottom: 20px; background: rgba(0,0,0,0.25); padding: 6px; border-radius: 14px; }
.tabs-mini button {
  flex: 1; border: none; border-radius: 10px; padding: 11px 6px; font-weight: 700; font-size: 14px;
  background: transparent; color: var(--muted); transition: all 0.2s;
}
.tabs-mini button.active { background: var(--grad); color: #fff; box-shadow: 0 3px 14px rgba(123,46,255,0.4); }

.entry-form { display: flex; flex-direction: column; gap: 16px; }
.entry-form label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.entry-form label small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.entry-form input {
  margin-top: 7px; width: 100%; padding: 15px 16px; font-size: 17px; color: var(--text);
  background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); border-radius: 14px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.entry-form input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(123,46,255,0.25); }
.code-input { text-transform: uppercase; letter-spacing: 8px; text-align: center; font-weight: 900; font-size: 24px !important; }
.err { color: var(--red); margin-top: 14px; text-align: center; font-weight: 600; min-height: 20px; }

.features {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  width: 100%; max-width: 920px; margin-top: 44px;
}
.feat { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.feat span { font-size: 28px; }
.feat b { font-size: 17px; }
.feat small { color: var(--muted); line-height: 1.5; }

.foot { margin-top: 40px; text-align: center; color: var(--muted); font-size: 13px; padding: 0 10px; }

/* ============================================
   CAMERA (room)
   ============================================ */
.room { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding-bottom: 92px; }

.topbar {
  position: sticky; top: 10px; z-index: 40; margin: 10px 12px 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 18px;
}
.room-name { font-weight: 800; font-size: 17px; max-width: 52vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-code {
  margin-top: 3px; background: none; border: none; color: var(--muted);
  font-size: 12px; letter-spacing: 2px; padding: 2px 0;
}
.room-code b { color: var(--cyan); letter-spacing: 3px; }
.top-actions { display: flex; gap: 8px; }

/* banda de jucători */
.players-strip {
  display: flex; gap: 10px; overflow-x: auto; padding: 14px 16px 6px;
  scrollbar-width: none;
}
.players-strip::-webkit-scrollbar { display: none; }
.pavatar { position: relative; flex: 0 0 auto; text-align: center; width: 56px; }
.pavatar .circle {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 17px; color: #0a0a12;
  border: 3px solid transparent; transition: border-color 0.2s;
}
.pavatar.me .circle { border-color: var(--cyan); }
.pavatar .pname { font-size: 10px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pavatar .crown { position: absolute; top: -8px; right: 2px; font-size: 13px; }
.pavatar .ppts { position: absolute; bottom: 14px; right: -2px; background: var(--violet); color: #fff; font-size: 9px; font-weight: 800; border-radius: 8px; padding: 1px 5px; }

.room-main { flex: 1; padding: 10px 14px 0; max-width: 640px; width: 100%; margin: 0 auto; }
.view { animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* bara de taburi */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-around;
  border-radius: 22px 22px 0 0; padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
  background: rgba(14, 14, 26, 0.85);
}
.tab {
  background: none; border: none; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 12px; min-width: 60px;
  transition: color 0.2s, background 0.2s;
}
.tab span { font-size: 21px; }
.tab.active { color: #fff; background: rgba(123, 46, 255, 0.25); }
.tab .badge-dot { position: absolute; width: 8px; height: 8px; background: var(--red); border-radius: 50%; }

/* ——— Carduri generice ——— */
.card { padding: 18px; margin-bottom: 14px; }
.card h3 { font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.section-title { font-size: 20px; font-weight: 900; margin: 4px 0 14px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ——— Game picker ——— */
.game-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.game-card {
  padding: 18px 14px; text-align: center; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--text);
  transition: transform 0.15s, border-color 0.2s;
}
.game-card:active { transform: scale(0.95); }
.game-card .gi { font-size: 34px; display: block; margin-bottom: 8px; }
.game-card b { font-size: 14px; display: block; }
.game-card small { color: var(--muted); font-size: 11px; display: block; margin-top: 4px; line-height: 1.4; }
.wait-host { text-align: center; padding: 26px 10px; color: var(--muted); }
.wait-host .big-emoji { font-size: 44px; display: block; margin-bottom: 12px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ——— Adevăr sau Provocare ——— */
.phase-label { text-align: center; color: var(--muted); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.turn-banner { text-align: center; font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.turn-banner .hl { color: var(--cyan); }
.choice-btns { display: flex; gap: 12px; }
.choice-btns .btn-primary { flex: 1; padding: 22px 10px; font-size: 19px; }
.choice-btns .truth { background: linear-gradient(135deg, var(--cyan), var(--violet)); }
.choice-btns .dare { background: linear-gradient(135deg, var(--pink), var(--violet)); }

.big-card {
  border-radius: 24px; padding: 30px 22px; text-align: center;
  border: 1px solid var(--glass-border); margin-bottom: 16px;
  animation: cardIn 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
  min-height: 150px; display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.big-card.truth { background: linear-gradient(150deg, rgba(0,229,255,0.16), rgba(123,46,255,0.14)); }
.big-card.dare { background: linear-gradient(150deg, rgba(255,46,136,0.16), rgba(123,46,255,0.14)); }
.big-card .ct { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.big-card .cx { font-size: 20px; font-weight: 800; line-height: 1.45; }
@keyframes cardIn { from { transform: rotateY(90deg) scale(0.8); opacity: 0; } to { transform: none; opacity: 1; } }

/* ——— Voturi / rezultate ——— */
.vote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.vote-btn {
  padding: 14px 10px; border-radius: 14px; border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.05); color: var(--text); font-weight: 700; font-size: 15px;
  transition: all 0.15s;
}
.vote-btn:active { transform: scale(0.95); }
.vote-btn.selected { background: rgba(123,46,255,0.35); border-color: var(--violet); box-shadow: 0 0 14px rgba(123,46,255,0.4); }
.vote-meta { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 12px; }

.result-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.result-row .rn { width: 90px; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-row .bar { flex: 1; height: 22px; background: rgba(255,255,255,0.06); border-radius: 11px; overflow: hidden; }
.result-row .bar i { display: block; height: 100%; background: var(--grad); border-radius: 11px; transition: width 0.8s cubic-bezier(0.2,1,0.3,1); }
.result-row .rc { width: 28px; text-align: right; font-weight: 800; color: var(--cyan); }
.winner-banner {
  text-align: center; padding: 16px; border-radius: 16px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(255,184,0,0.2), rgba(255,46,136,0.15));
  border: 1px solid rgba(255,184,0,0.4); font-size: 18px; font-weight: 900;
  animation: pop 0.5s cubic-bezier(0.2,1.6,0.4,1);
}
@keyframes pop { from { transform: scale(0.7); opacity: 0; } to { transform: none; opacity: 1; } }

.answer-piles { display: flex; gap: 16px; }
.pile { flex: 1; border-radius: 16px; padding: 14px; text-align: center; }
.pile.have { background: rgba(255,46,136,0.12); border: 1px solid rgba(255,46,136,0.35); }
.pile.never { background: rgba(0,229,255,0.1); border: 1px solid rgba(0,229,255,0.3); }
.pile h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.pile .pn { font-size: 14px; font-weight: 700; padding: 4px 0; }

/* ——— Roată ——— */
.wheel-wrap { text-align: center; }
.wheel-wrap canvas { max-width: 300px; width: 82vw; touch-action: manipulation; }
.dare-result {
  margin: 14px 0; padding: 16px; border-radius: 16px; text-align: center;
  background: linear-gradient(135deg, rgba(123,46,255,0.2), rgba(255,46,136,0.15));
  border: 1px solid var(--glass-border); animation: pop 0.5s cubic-bezier(0.2,1.6,0.4,1);
}
.dare-result .who { font-size: 20px; font-weight: 900; color: var(--gold); }
.dare-result .what { margin-top: 8px; font-size: 16px; font-weight: 700; }

/* ——— Bomba ——— */
.bomb-screen { text-align: center; padding: 20px 10px; }
.bomb-icon { font-size: 72px; animation: bombPulse 1s ease-in-out infinite; }
@keyframes bombPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.bomb-timer-bar { height: 14px; background: rgba(255,255,255,0.08); border-radius: 7px; overflow: hidden; margin: 18px 0; }
.bomb-timer-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--red)); transition: width 1s linear; }
.bomb-q { font-size: 21px; font-weight: 900; margin: 14px 0 20px; min-height: 56px; }
.pass-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pass-btn {
  padding: 12px 16px; border-radius: 30px; font-weight: 800; font-size: 15px;
  border: 1px solid var(--glass-border); color: var(--text); background: rgba(255,255,255,0.07);
}
.pass-btn:active { transform: scale(0.93); background: rgba(255,46,136,0.3); }

/* ——— Bingo ——— */
.bingo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
.bingo-cell {
  aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.05); color: var(--text);
  font-size: 9.5px; font-weight: 600; padding: 4px; line-height: 1.25;
  display: flex; align-items: center; justify-content: center; text-align: center;
  transition: all 0.15s; overflow: hidden;
}
.bingo-cell:active { transform: scale(0.92); }
.bingo-cell.free { background: rgba(255,184,0,0.25); border-color: var(--gold); font-size: 11px; }
.bingo-cell.pending { background: rgba(255,184,0,0.3); border-color: var(--gold); box-shadow: 0 0 10px rgba(255,184,0,0.3); }
.bingo-cell.confirmed { background: rgba(0,230,118,0.25); border-color: var(--green); box-shadow: 0 0 10px rgba(0,230,118,0.25); }
.confirm-row {
  display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px;
  background: rgba(255,184,0,0.1); border: 1px solid rgba(255,184,0,0.3); margin-bottom: 8px; font-size: 13px;
}
.confirm-row .mini { margin-left: auto; display: flex; gap: 6px; }
.mini-btn { border: none; border-radius: 8px; padding: 7px 10px; font-weight: 800; font-size: 13px; }
.mini-btn.ok { background: var(--green); color: #04250f; }
.mini-btn.no { background: rgba(255,71,87,0.8); color: #fff; }

/* ——— Unelte ——— */
.tool-card { padding: 18px; margin-bottom: 16px; }
.tool-card h3 { display: flex; align-items: center; gap: 8px; }
.inline-form { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.inline-form input {
  flex: 1; min-width: 100px; padding: 12px 14px; border-radius: 12px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); color: var(--text); font-size: 15px; outline: none;
}
.inline-form input:focus { border-color: var(--violet); }

.expense-row, .settle-row, .venue-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  background: rgba(255,255,255,0.04); border-radius: 12px; margin-bottom: 8px; font-size: 14px;
}
.expense-row .amt { font-weight: 900; color: var(--gold); white-space: nowrap; }
.expense-row .note { color: var(--muted); flex: 1; overflow: hidden; text-overflow: ellipsis; }
.settle-row .arrow { color: var(--cyan); font-weight: 900; }
.settle-row .amt { margin-left: auto; font-weight: 900; color: var(--green); white-space: nowrap; }
.del-x { background: none; border: none; color: var(--muted); font-size: 16px; padding: 4px; }
.del-x:active { color: var(--red); }

.drink-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.drink-btn {
  padding: 16px 6px; border-radius: 16px; border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.05); color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; transition: transform 0.1s;
}
.drink-btn span { font-size: 30px; }
.drink-btn:active { transform: scale(0.92); background: rgba(123,46,255,0.3); }
.tally-row { display: flex; justify-content: space-between; padding: 8px 4px; border-bottom: 1px dashed rgba(255,255,255,0.08); font-size: 14px; }
.tally-row:last-child { border-bottom: none; }
.tally-row b { color: var(--cyan); }
.bac-box { text-align: center; padding: 14px; border-radius: 14px; background: rgba(0,229,255,0.08); border: 1px solid rgba(0,229,255,0.25); margin-top: 12px; }
.bac-box .val { font-size: 30px; font-weight: 900; color: var(--cyan); }
.bac-box small { color: var(--muted); display: block; margin-top: 6px; line-height: 1.5; }

.venue-row .vname { font-weight: 800; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.venue-row .vcount { background: var(--violet); border-radius: 10px; padding: 3px 9px; font-size: 13px; font-weight: 800; }
.venue-row .vlink { color: var(--cyan); text-decoration: none; font-size: 18px; }
.vote-mini { border: 1px solid var(--glass-border); background: rgba(255,255,255,0.06); color: var(--text); border-radius: 10px; padding: 8px 12px; font-weight: 800; }
.vote-mini.selected { background: rgba(0,230,118,0.25); border-color: var(--green); }

/* ——— Poze ——— */
.upload-zone { text-align: center; padding: 20px; border: 2px dashed var(--glass-border); border-radius: var(--radius); margin-bottom: 16px; }
.photos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-item { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--bg2); animation: pop 0.4s; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-item .ph-del {
  position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,0.65); color: #fff; border: none; font-size: 13px;
}
.photo-item .ph-by { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; padding: 3px 6px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: rgba(255,255,255,0.85); }

/* ——— Siguranță ——— */
#btn-sos {
  position: fixed; right: 14px; bottom: 96px; z-index: 60;
  width: 64px; height: 64px; border-radius: 50%; border: none;
  background: radial-gradient(circle at 30% 30%, #ff6b7a, #d4002a);
  color: #fff; font-weight: 900; font-size: 15px; letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(255, 40, 60, 0.55); user-select: none; touch-action: none;
}
#btn-sos.holding { animation: sosHold 1s linear infinite; }
@keyframes sosHold { 0%,100% { box-shadow: 0 0 0 0 rgba(255,40,60,0.7); } 50% { box-shadow: 0 0 0 14px rgba(255,40,60,0.15); } }
.hold-hint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }

#sos-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(120, 0, 10, 0.96);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 30px; text-align: center;
}
#sos-overlay h2 { font-size: 34px; animation: sosFlash 0.8s step-end infinite; }
@keyframes sosFlash { 50% { opacity: 0.35; } }
.sos-pulse { position: absolute; width: 240px; height: 240px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.4); animation: pulseRing 1.6s ease-out infinite; }
@keyframes pulseRing { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
#sos-text { font-size: 19px; font-weight: 700; max-width: 400px; }

.safety-card { text-align: center; padding: 22px 18px; }
.safety-card .si { font-size: 42px; }
.safety-card h4 { margin: 10px 0 6px; font-size: 17px; }
.safety-card p { color: var(--muted); font-size: 13px; line-height: 1.55; margin-bottom: 14px; }
.checkin-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: rgba(255,255,255,0.05); border-radius: 12px; margin-bottom: 8px; font-size: 14px; }
.checkin-row .ago { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.checkin-row.alerted { border: 1px solid var(--red); background: rgba(255,71,87,0.12); }
.quick-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.quick-links a { text-decoration: none; }

/* ——— Clasament ——— */
.lb-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; background: rgba(255,255,255,0.05); margin-bottom: 8px; }
.lb-row.first { background: linear-gradient(90deg, rgba(255,184,0,0.2), rgba(255,184,0,0.05)); border: 1px solid rgba(255,184,0,0.35); }
.lb-row.me { border: 1px solid var(--cyan); }
.lb-row .pos { font-size: 20px; width: 34px; text-align: center; }
.lb-row .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.lb-row .nm { font-weight: 800; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row .pts { font-weight: 900; color: var(--cyan); }
.kick-btn { background: none; border: none; font-size: 15px; opacity: 0.6; }
.kick-btn:active { opacity: 1; }

/* ——— Modal ——— */
#modal { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { max-width: 440px; width: 100%; padding: 24px; max-height: 85vh; overflow-y: auto; }
.modal-card h3 { margin-bottom: 16px; font-size: 19px; }
.modal-card .row-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-card .row-actions > * { flex: 1; }
.modal-card textarea, .modal-card select, .modal-card input {
  width: 100%; padding: 13px; border-radius: 12px; margin-bottom: 10px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); color: var(--text); font-size: 15px; outline: none;
}
.modal-card textarea { min-height: 130px; resize: vertical; }

/* ——— Ecran noapte încheiată ——— */
#ended-overlay { position: fixed; inset: 0; z-index: 180; background: rgba(6,6,12,0.92); display: flex; align-items: center; justify-content: center; padding: 18px; overflow-y: auto; }
.ended-card { max-width: 480px; width: 100%; padding: 26px; text-align: center; }
.ended-card h2 { margin-bottom: 8px; }
.ended-card p { color: var(--muted); margin-bottom: 16px; }
.ended-card iframe { width: 100%; height: 460px; border: none; border-radius: 16px; background: transparent; }
.ended-card .row-actions { display: flex; gap: 10px; margin: 16px 0 10px; }
.ended-card .row-actions > * { flex: 1; }
.ended-card small { color: var(--muted); }

/* ——— Confetti & toast ——— */
#fx-confetti { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
#toasts { position: fixed; top: 76px; left: 0; right: 0; z-index: 250; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  background: rgba(20, 20, 36, 0.95); border: 1px solid var(--glass-border);
  border-radius: 30px; padding: 10px 18px; font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow); animation: toastIn 0.3s cubic-bezier(0.2,1.4,0.4,1);
  max-width: 90vw;
}
.toast.me-points { border-color: var(--gold); color: var(--gold); }
@keyframes toastIn { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.out { transition: opacity 0.4s, transform 0.4s; opacity: 0; transform: translateY(-10px); }

/* ——— Utilitare ——— */
.row-actions { display: flex; gap: 10px; }
.row-actions > * { flex: 1; }

/* ——— Cărți de joc (Sus-Jos & Paharul Regelui) ——— */
.playing-card {
  width: 110px; height: 154px; border-radius: 12px; margin: 0 auto;
  background: linear-gradient(160deg, #ffffff, #e8e8f2); color: #16162a;
  position: relative; box-shadow: 0 8px 24px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(0,0,0,0.08);
  font-weight: 900; user-select: none;
  animation: cardIn 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.playing-card .corner { position: absolute; top: 8px; left: 10px; font-size: 20px; line-height: 1; text-align: center; }
.playing-card .corner small { display: block; font-size: 16px; }
.playing-card .center-suit { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 56px; }
.playing-card.red { color: #d4002a; }
.playing-card.card-back {
  background: repeating-linear-gradient(45deg, #7b2eff 0 8px, #ff2e88 8px 16px, #12121f 16px 24px);
  cursor: pointer; transition: transform 0.15s, box-shadow 0.2s;
}
.playing-card.card-back:active { transform: scale(0.94) rotate(-2deg); }
.playing-card.card-back .back-logo {
  position: absolute; inset: 10px; border: 2px solid rgba(255,255,255,0.5); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 34px; color: #fff;
}
.card-row { display: flex; gap: 14px; justify-content: center; align-items: center; margin: 14px 0; }
.mini-cards { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.mini-card {
  min-width: 34px; padding: 5px 4px; border-radius: 6px; background: #fff; color: #16162a;
  font-weight: 900; font-size: 13px; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.mini-card.red { color: #d4002a; }

.guess-btns { display: flex; gap: 12px; }
.guess-btns .btn-primary { flex: 1; padding: 20px 10px; font-size: 18px; }
.guess-btns .low { background: linear-gradient(135deg, #00b8d4, #7b2eff); }
.guess-btns .high { background: linear-gradient(135deg, #ff2e88, #ff6d00); }

.streak-chip {
  display: inline-block; background: rgba(255,184,0,0.15); border: 1px solid rgba(255,184,0,0.45);
  color: var(--gold); border-radius: 20px; padding: 5px 14px; font-weight: 800; font-size: 13px;
}

/* ——— Barcuța ——— */
.big-counter {
  font-size: 84px; font-weight: 900; text-align: center; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 6px 0 2px; animation: pop 0.35s;
}
.bc-btns { display: flex; gap: 12px; margin-top: 16px; }
.bc-btns button { flex: 1; padding: 22px 10px; font-size: 20px; border-radius: 18px; font-weight: 900; border: none; color: #fff; }
.bc-num { background: linear-gradient(135deg, #00b8d4, #7b2eff); }
.bc-boat { background: linear-gradient(135deg, #ff2e88, #ff6d00); }
.bc-btns button:active { transform: scale(0.95); }
.bc-meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--muted); }
.bc-meta b { color: var(--cyan); }
.last-result { text-align: center; padding: 10px; border-radius: 12px; margin-top: 12px; font-weight: 700; font-size: 14px; }
.last-result.ok { background: rgba(0,230,118,0.12); border: 1px solid rgba(0,230,118,0.35); }
.last-result.bad { background: rgba(255,71,87,0.12); border: 1px solid rgba(255,71,87,0.4); }

/* ——— Paharul Regelui ——— */
.kings-meter { display: flex; gap: 8px; justify-content: center; margin: 12px 0; font-size: 26px; }
.kings-meter .used { filter: none; }
.kings-meter .left { filter: grayscale(1) opacity(0.35); }
.rule-card {
  margin-top: 14px; padding: 16px; border-radius: 16px; text-align: center;
  background: linear-gradient(135deg, rgba(255,184,0,0.14), rgba(123,46,255,0.12));
  border: 1px solid rgba(255,184,0,0.35); animation: pop 0.5s cubic-bezier(0.2,1.6,0.4,1);
}
.rule-card .rule-rank { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.rule-card .rule-text { font-size: 17px; font-weight: 800; line-height: 1.45; }
.spice-pick { display: flex; gap: 8px; margin-bottom: 6px; }
.spice-pick button { flex: 1; padding: 14px 6px; border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.05); color: var(--text); font-weight: 800; }
.spice-pick button.sel { background: rgba(123,46,255,0.35); border-color: var(--violet); }
.empty-state { text-align: center; padding: 30px 12px; color: var(--muted); }
.empty-state .big-emoji { font-size: 40px; display: block; margin-bottom: 10px; }

/* ——— Desktop ——— */
@media (min-width: 768px) {
  .br-desk { display: inline; }
  .features { grid-template-columns: repeat(4, 1fr); }
  .room-main { max-width: 680px; }
  .topbar { max-width: 680px; margin-left: auto; margin-right: auto; }
  .tabbar { max-width: 560px; left: 50%; transform: translateX(-50%); bottom: 14px; border-radius: 26px; }
  .room { padding-bottom: 110px; }
  .players-strip { max-width: 680px; margin: 0 auto; }
  #btn-sos { right: calc(50% - 320px); }
}
