/* Private rooms (privroom.js, 2026-11-10): the create window, the games in the bottle's place, the invite card on top
   of the chat. */

/* ── the window (like the gift window: sections on a soft card) ── */
.priv-win { display: flex; flex-direction: column; gap: 12px; padding: 4px 2px 10px; }
.priv-sec { background: var(--card, #fff); border: 1px solid rgba(123, 47, 247, .14); border-radius: 16px; padding: 12px; box-shadow: 0 2px 10px rgba(60, 20, 120, .06); }
.priv-sec h4 { margin: 0 0 10px; font-size: 15px; font-weight: 800; color: #3d2a70; }
.priv-label { display: block; margin: 10px 0 6px; font-size: 12.5px; font-weight: 700; color: #5b4d7a; }
.priv-name, .priv-code-in { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #d9cdf5; font-size: 15px; background: #fbf9ff; }
.priv-name:focus, .priv-code-in:focus { outline: none; border-color: #7b2ff7; box-shadow: 0 0 0 3px rgba(123, 47, 247, .15); }
.priv-code-in { text-transform: uppercase; letter-spacing: .18em; font-weight: 800; text-align: center; }
.priv-join { display: flex; gap: 8px; align-items: stretch; }
.priv-join .priv-code-in { flex: 1; min-width: 0; }
.priv-seats { display: flex; flex-wrap: wrap; gap: 6px; }
.priv-seat { flex: 1 0 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 6px; border-radius: 12px; border: 1.5px solid #e2d9f7; background: #faf7ff; color: #3d2a70; cursor: pointer; }
.priv-seat b { font-size: 17px; }
.priv-seat small { font-size: 10.5px; color: #7a6d98; white-space: nowrap; }
.priv-seat.on { border-color: #7b2ff7; background: linear-gradient(135deg, #7b2ff7, #ff3d8b); color: #fff; }
.priv-seat.on small { color: #fde7ff; }
.priv-count { font-weight: 600; color: #8a7fb0; }
.priv-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.priv-game { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 8px; border-radius: 14px; border: 1.5px solid #e9e1fb; background: #fff; color: #3d2a70; cursor: pointer; text-align: center; }
.priv-game-ico { font-size: 28px; line-height: 1; }
.priv-game b { font-size: 12px; line-height: 1.25; }
.priv-check { position: absolute; top: 5px; inset-inline-end: 6px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; background: #e9e1fb; color: transparent; }
.priv-game.on { border-color: #7b2ff7; background: #f4ecff; box-shadow: 0 3px 10px rgba(123, 47, 247, .18); }
.priv-game.on .priv-check { background: #7b2ff7; color: #fff; }
.priv-rules { margin: 12px 0 0; padding: 10px 12px 10px 28px; border-radius: 12px; background: #fff8e1; color: #5c3c00; font-size: 12px; line-height: 1.55; }
[dir="rtl"] .priv-rules { padding: 10px 28px 10px 12px; }
.priv-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.priv-price { font-size: 13px; font-weight: 700; color: #3d2a70; display: inline-flex; align-items: center; gap: 4px; }
.priv-go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border: 0; border-radius: 24px; font-size: 15px; font-weight: 800; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #7b2ff7, #ff3d8b); box-shadow: 0 4px 14px rgba(255, 61, 139, .35); }
.priv-go:disabled { opacity: .6; }
.priv-go .price { color: #fff; }
.priv-mini { display: inline-flex; align-items: center; gap: 4px; padding: 6px 11px; border-radius: 14px; border: 1px solid #d9cdf5; background: #fff; color: #4b2fa0; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.priv-mini.primary { background: #7b2ff7; border-color: #7b2ff7; color: #fff; }
.priv-mine-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.priv-mine-row b { flex: 1 1 120px; min-width: 0; }
.priv-mine-row code, .priv-invite code, .priv-pick-code code { padding: 2px 8px; border-radius: 8px; background: #efe7ff; color: #4b2fa0; font-weight: 800; letter-spacing: .14em; font-size: 14px; }

/* ── the table: the games in the bottle's place (the bottle hidden) ── */
.priv-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(300 * var(--u)); display: flex; flex-direction: column; align-items: center; gap: calc(8 * var(--u)); z-index: 3; pointer-events: auto; }
.priv-mid-name { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: calc(5 * var(--u)) calc(14 * var(--u)); border-radius: 999px; background: rgba(30, 10, 60, .62); color: #fff;
  font-size: max(11px, calc(15 * var(--u))); backdrop-filter: blur(4px); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.priv-mid-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.priv-mid-games { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(8 * var(--u)); }
.priv-mid-game { width: calc(78 * var(--u)); min-width: 50px; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; border-radius: calc(18 * var(--u));
  border: 2px solid rgba(255, 255, 255, .85); background: linear-gradient(160deg, rgba(123, 47, 247, .92), rgba(255, 61, 139, .92)); color: #fff; cursor: pointer;
  box-shadow: 0 4px 14px rgba(60, 10, 90, .35); transition: transform .15s; }
.priv-mid-game:hover, .priv-mid-game:focus-visible { transform: translateY(-2px) scale(1.04); }
.priv-mid-game span { font-size: max(20px, calc(30 * var(--u))); line-height: 1; }
.priv-mid-game small { font-size: max(9px, calc(11 * var(--u))); font-weight: 700; line-height: 1.15; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.priv-mid-hint { font-size: max(10px, calc(12 * var(--u))); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); font-weight: 600; }
.is-priv .table-status { display: none; }

/* ── who to play with ── */
.priv-pick-lead { margin: 0 0 10px; font-size: 14px; }
.priv-pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.priv-pick-p { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 14px; border: 1px solid #e9e1fb; background: #fff; cursor: pointer; }
.priv-pick-p img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.priv-pick-p b { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.priv-pick-code { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 10px; }

/* ── the invite card on top of the room's chat ── */
.priv-invite { width: calc(100% - 12px); box-sizing: border-box; margin: 6px auto 8px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, #f4ecff, #ffe8f3);
  border: 1px solid #d9c2ff; color: #3d2a70; box-shadow: 0 2px 8px rgba(123, 47, 247, .15); display: flex; flex-direction: column; gap: 7px; }
.priv-invite-head { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.priv-invite-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.priv-invite-head small { padding: 2px 8px; border-radius: 10px; background: #7b2ff7; color: #fff; font-size: 10.5px; font-weight: 700; }
.priv-invite-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; font-weight: 600; }
.priv-invite-row input { flex: 1 1 140px; min-width: 0; padding: 5px 8px; border-radius: 10px; border: 1px solid #d9cdf5; background: #fff; font-size: 11.5px; color: #4b2fa0; }
.priv-invite-note { margin: 0; font-size: 11px; line-height: 1.45; color: #6b5d8c; }

/* a private room's locked seat (fewer seats than the table's 12): the place kept, dimmed, with a lock */
.seat.empty.locked { cursor: default; opacity: .55; }
.seat.empty.locked .seat-photo { background: rgba(20, 10, 40, .35); border-style: dashed; }
.seat.empty.locked .seat-photo.shaped .seat-shape { background: rgba(20, 10, 40, .35); }
.seat-lock { position: relative; font-size: calc(26 * var(--u)); filter: grayscale(.2); }

/* ── a private room's call (privcall.js): the bar next to the music card, the floating one on a phone, the seats ── */
.pc-bar { margin: 8px 10px; padding: 9px 10px; border-radius: 14px; background: linear-gradient(135deg, #f4ecff, #ffe8f3); border: 1px solid #d9c2ff; color: #3d2a70; display: flex; flex-direction: column; gap: 7px; }
.pc-bar.in { background: linear-gradient(135deg, #e7f9ef, #e6f3ff); border-color: #9be3bd; }
.pc-head { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pc-head small { margin-inline-start: auto; color: #6b5d8c; font-size: 11.5px; }
.pc-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pc-btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 18px; border: 0; cursor: pointer; font-size: 12.5px; font-weight: 800; color: #fff; background: #7b2ff7; box-shadow: 0 2px 8px rgba(123, 47, 247, .25); }
.pc-btn.join.video { background: linear-gradient(135deg, #ff3d8b, #ff7a59); }
.pc-btn.mic, .pc-btn.cam { background: #fff; color: #3d2a70; border: 1px solid #cbbcf0; box-shadow: none; }
.pc-btn.off { background: #f1f1f4; color: #8a8f98; }
.pc-btn.leave { background: #e5383b; }
.pc-btn.leave span { display: inline-block; transform: rotate(135deg); }
.pc-muted { color: #c0392b; font-weight: 700; }
.pc-float { margin-top: calc(6 * var(--u)); z-index: 6; padding: 5px 8px; border-radius: 22px; background: rgba(25, 10, 50, .72); backdrop-filter: blur(4px); box-shadow: 0 3px 12px rgba(0, 0, 0, .3); }
.pc-float .pc-row { flex-wrap: nowrap; gap: 5px; }
.pc-float .pc-btn { padding: 7px 10px; font-size: 15px; }
.pc-float .pc-btn.mic, .pc-float .pc-btn.cam { background: rgba(255, 255, 255, .92); }
.pc-n { color: #fff; font-weight: 700; padding: 0 4px; }
/* the seats: a live face over the photo, a glow while speaking, the 🎙️ mark */
.seat .pc-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transform: scaleX(-1); }
.seat .seat-shape .seat-name { z-index: 2; }
.seat.pc-speaking .seat-photo { box-shadow: 0 0 0 calc(3 * var(--u)) #2ecc71, 0 0 calc(16 * var(--u)) rgba(46, 204, 113, .9); }
.pc-mark { position: absolute; bottom: calc(26 * var(--u)); inset-inline-end: calc(-4 * var(--u)); z-index: 4; width: calc(24 * var(--u)); height: calc(24 * var(--u)); min-width: 16px; min-height: 16px; display: grid; place-items: center;
  border-radius: 50%; background: #fff; font-size: max(10px, calc(13 * var(--u))); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.seat.pc-silenced .pc-mark { background: #ffe1e1; }
