/* Rimvis Neto: Kas nupirks Lietuvą? – žaidimo išvaizda */
:root {
  --bg: #0b3d2e;
  --bg2: #0f5240;
  --bg3: #126148;
  --ink: #1f2937;
  --muted: #6b7280;
  --card: #ffffff;
  --yellow: #fdb913;
  --yellow2: #ffcf3f;
  --green: #006a44;
  --green2: #0a8a5a;
  --red: #c1272d;
  --line: #e5e7eb;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 800; overscroll-behavior: none; }
body { overflow: hidden; -webkit-user-select: none; user-select: none; }
input { -webkit-user-select: text; user-select: text; }
button { font: inherit; cursor: pointer; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.screen { position: fixed; inset: 0; display: none; }
.screen.active { display: block; }

/* ---------- mygtukai ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 16px; padding: 12px 18px; font-weight: 900; font-size: 16px; min-height: 48px; text-decoration: none; color: var(--ink); background: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18); transition: transform 0.08s, box-shadow 0.08s, opacity 0.2s; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18); }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn-big { font-size: 20px; min-height: 60px; padding: 14px 22px; width: 100%; border-radius: 20px; }
.btn-yellow { background: var(--yellow); color: #2b2100; box-shadow: 0 5px 0 #b07d00; }
.btn-yellow:active { box-shadow: 0 2px 0 #b07d00; }
.btn-green { background: var(--green2); color: #fff; box-shadow: 0 5px 0 #05553a; }
.btn-red { background: #ef4444; color: #fff; box-shadow: 0 5px 0 #a31f1f; }
.btn-light { background: #f3f4f6; box-shadow: 0 3px 0 #d1d5db; }
.btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: none; }
.btn-wa { background: #25d366; color: #073b1e; box-shadow: 0 5px 0 #149447; }
.full { width: 100%; }
.link { background: none; border: 0; color: #d1fae5; font-weight: 800; font-size: 15px; padding: 10px 8px; text-decoration: none; }
.link.light { color: #a7f3d0; }
.pulse { animation: pulseBtn 1.6s ease-in-out infinite; }
@keyframes pulseBtn { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 19px; display: inline-flex; align-items: center; justify-content: center; }
.pill { background: rgba(255, 255, 255, 0.14); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 900; white-space: nowrap; }
.pill.dim { opacity: 0.7; letter-spacing: 2px; }

/* ---------- logotipas ---------- */
.logo { text-align: center; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); }
.logo-top { font-size: 22px; font-weight: 900; letter-spacing: 4px; text-transform: uppercase; color: var(--yellow); }
.logo-main { font-size: 44px; line-height: 1.02; font-weight: 900; margin-top: 4px; }
.logo.small .logo-top { font-size: 15px; letter-spacing: 3px; }
.logo.small .logo-main { font-size: 28px; }

/* ---------- pradžia ---------- */
#scr-start { background: var(--bg); }
.start-bg { position: absolute; inset: 0; background-size: cover; background-position: center 20%; filter: saturate(1.05); }
.start-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 61, 46, 0.25) 0%, rgba(11, 61, 46, 0.55) 45%, rgba(11, 61, 46, 0.96) 78%); }
.start-inner { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 22px calc(28px + var(--safe-b)); display: flex; flex-direction: column; gap: 18px; max-width: 520px; margin: 0 auto; }
.start-note { text-align: center; color: #d1fae5; font-size: 14px; }

/* ---------- intro ---------- */
#scr-video { background: #000; }
#intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.skip { position: absolute; right: 14px; top: calc(14px + var(--safe-t)); min-height: 40px; padding: 8px 14px; font-size: 15px; z-index: 3; }
.titlecard { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: radial-gradient(circle at 50% 40%, #136b4f 0%, #0b3d2e 70%); color: #fff; opacity: 0; pointer-events: none; transition: opacity 0.6s; z-index: 2; }
.titlecard.on { opacity: 1; pointer-events: auto; }
.tc-top { font-size: 24px; letter-spacing: 6px; text-transform: uppercase; color: var(--yellow); font-weight: 900; transform: translateY(20px); opacity: 0; transition: all 0.7s 0.2s; }
.tc-main { font-size: 46px; line-height: 1.05; font-weight: 900; margin: 10px 0 14px; transform: scale(0.7); opacity: 0; transition: all 0.8s cubic-bezier(.2, 1.6, .4, 1) 0.9s; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.3); }
.tc-sub { font-size: 17px; color: #d1fae5; opacity: 0; transition: opacity 0.8s 1.8s; }
.titlecard.on .tc-top, .titlecard.on .tc-main, .titlecard.on .tc-sub { opacity: 1; transform: none; }

/* ---------- meniu ---------- */
#scr-home, #scr-room { background: radial-gradient(circle at 50% 0%, #15704f 0%, var(--bg) 60%); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.home, .room { max-width: 480px; margin: 0 auto; padding: calc(22px + var(--safe-t)) 16px calc(28px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--card); border-radius: 22px; padding: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.card-title { font-size: 18px; font-weight: 900; margin-bottom: 10px; }
.lbl { font-size: 14px; color: var(--muted); margin: 6px 0 6px; font-weight: 900; }
.lbl.light { color: #a7f3d0; text-align: center; }
.input { width: 100%; border: 3px solid var(--line); border-radius: 14px; padding: 12px 14px; font: 900 18px Nunito, system-ui, sans-serif; color: var(--ink); background: #fff; outline: none; }
.input:focus { border-color: var(--yellow); }
.token-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.token-pick button { aspect-ratio: 1; border-radius: 14px; border: 3px solid var(--line); background: #f9fafb; font-size: 26px; }
.token-pick button.sel { border-color: var(--yellow); background: #fff7d6; transform: scale(1.06); }
.token-pick button.taken { opacity: 0.3; }
.or { display: flex; align-items: center; gap: 10px; color: #a7f3d0; font-size: 14px; }
.or::before, .or::after { content: ''; flex: 1; height: 2px; background: rgba(255, 255, 255, 0.18); }
.join-row { display: flex; gap: 10px; }
.code-input { text-transform: uppercase; letter-spacing: 6px; text-align: center; font-size: 22px; }
.home-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }

/* ---------- laukimo kambarys ---------- */
.room-head { position: relative; text-align: center; color: #fff; }
#btn-mic-room { position: absolute; top: 0; right: 0; }
.room-code { font-size: 54px; letter-spacing: 12px; font-weight: 900; color: var(--yellow); text-shadow: 0 4px 0 rgba(0, 0, 0, 0.3); margin: 2px 0 10px; padding-left: 12px; }
.invite-row { display: flex; gap: 8px; justify-content: center; }
.invite-row .btn { flex: 1; max-width: 170px; }
.invite-row .btn-ghost { flex: 0 0 56px; }
.room-players { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.rp { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #f9fafb; }
.rp .tok { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); flex: 0 0 auto; }
.rp .nm { flex: 1; font-size: 17px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp .tag { font-size: 12px; color: var(--muted); font-weight: 800; }
.rp .x { border: 0; background: #fee2e2; color: #b91c1c; width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
.rp.me { background: #fff7d6; }
.rp.off { opacity: 0.5; }
.seg { display: flex; background: #f3f4f6; border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 11px; padding: 10px 6px; font-weight: 900; font-size: 15px; color: var(--muted); }
.seg button.sel { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
.seg.locked button { pointer-events: none; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 2px 4px; font-weight: 700; }
.room-wait { color: #fff; text-align: center; font-size: 17px; padding: 8px; }
.howto-row { display: flex; align-items: center; gap: 10px; font-size: 15px; padding: 5px 0; color: #374151; }
.howto-row span { font-size: 22px; width: 30px; text-align: center; flex: 0 0 auto; }
.link.dark { color: var(--green); padding: 8px 0 0; }
.prank-hint { color: #a7f3d0; text-align: center; font-size: 13px; }
#scr-room .prankbar { position: static; border-radius: 18px; }

/* ---------- žaidimas ---------- */
#scr-game.active { display: flex; flex-direction: column; height: 100%; }
.topbar { display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--safe-t)) 10px 6px; background: var(--bg); z-index: 3; }
.spacer { flex: 1; }
.board-wrap { position: relative; flex: 1 1 auto; min-height: 180px; overflow: hidden; background: #a4d4f2; }
#board { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }
.players { display: flex; gap: 8px; overflow-x: auto; padding: 8px 10px; background: var(--bg); scrollbar-width: none; flex: 0 0 auto; }
.players::-webkit-scrollbar { display: none; }
.pc { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 16px; background: var(--bg2); color: #fff; border: 2px solid transparent; min-width: 118px; transition: border-color 0.2s, background 0.2s; }
.pc .tok { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; border: 2.5px solid #fff; flex: 0 0 auto; }
.pc .nm { font-size: 14px; font-weight: 900; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc .cash { font-size: 15px; font-weight: 900; color: var(--yellow); }
.pc .cash.bump { animation: bump 0.5s; }
.pc.cur { border-color: var(--yellow); background: var(--bg3); }
.pc.me { background: #14532d; }
.pc.me .tok { box-shadow: 0 0 0 3px var(--yellow); }
.pc.off { opacity: 0.55; }
.pc.bk { opacity: 0.4; filter: grayscale(1); }
.pc .badge { position: absolute; top: -6px; right: -4px; font-size: 14px; }
.pc .splat-mark { position: absolute; inset: 0; border-radius: 16px; pointer-events: none; opacity: 0.85; transition: opacity 1.2s; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
.panel { background: #fff; border-radius: 22px 22px 0 0; padding: 10px 14px 8px; flex: 0 0 auto; box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.2); position: relative; z-index: 2; }
.last-text { font-size: 14px; color: var(--muted); min-height: 20px; line-height: 1.35; margin-bottom: 8px; font-weight: 800; }
.last-text.fresh { animation: fadeIn 0.4s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.action { min-height: 64px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.status { font-size: 17px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.status .tok { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.deal { display: flex; align-items: center; gap: 12px; }
.deal .ico { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 30px; background: #f3f4f6; border: 3px solid; flex: 0 0 auto; }
.deal .t1 { font-size: 17px; font-weight: 900; line-height: 1.15; }
.deal .t2 { font-size: 13px; color: var(--muted); font-weight: 800; }
.fork-btn { text-align: left; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.2; }
.fork-btn small { font-size: 12px; opacity: 0.8; font-weight: 800; }
.timer { height: 5px; background: #f3f4f6; border-radius: 99px; overflow: hidden; margin-top: 8px; }
#timer-bar { height: 100%; width: 0; background: var(--yellow); border-radius: 99px; }
#timer-bar.low { background: #ef4444; }

/* kauliukai */
.dice-overlay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 16px; pointer-events: none; z-index: 4; }
.die { width: 64px; height: 64px; background: #fff; border-radius: 16px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), inset 0 -5px 0 #e5e7eb; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 10px; }
.die i { width: 11px; height: 11px; border-radius: 50%; background: #1f2937; align-self: center; justify-self: center; visibility: hidden; }
.die i.on { visibility: visible; }
.dice-overlay.rolling .die { animation: rollDie 0.18s linear infinite; }
.dice-overlay.done .die { animation: landDie 0.4s ease-out; }
@keyframes rollDie { 0% { transform: rotate(0) translateY(0); } 50% { transform: rotate(14deg) translateY(-8px); } 100% { transform: rotate(-10deg) translateY(0); } }
@keyframes landDie { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* iššokantys pranešimai ant lentos */
.popup { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); width: min(92%, 420px); background: #fff; border-radius: 20px; padding: 14px 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); z-index: 5; display: flex; gap: 12px; align-items: center; animation: popIn 0.35s cubic-bezier(.2, 1.4, .4, 1); }
.popup .pi { font-size: 38px; flex: 0 0 auto; }
.popup .pt { font-size: 16px; font-weight: 900; line-height: 1.25; }
.popup .ps { font-size: 13px; color: var(--muted); font-weight: 800; margin-top: 2px; }
.popup.card-pop { border: 4px solid var(--yellow); background: #fffaf0; }
.popup.out { animation: popOut 0.3s forwards; }
@keyframes popIn { from { transform: translateX(-50%) scale(0.6); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
@keyframes popOut { to { transform: translateX(-50%) scale(0.8); opacity: 0; } }

/* pokštų juosta */
.prankbar { display: flex; gap: 6px; padding: 8px 10px calc(8px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line); flex: 0 0 auto; overflow-x: auto; scrollbar-width: none; }
.prankbar::-webkit-scrollbar { display: none; }
.prankbar button { flex: 1 0 52px; border: 0; background: #f3f4f6; border-radius: 14px; padding: 6px 4px 4px; font-size: 24px; line-height: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; }
.prankbar button small { font-size: 11px; color: var(--muted); font-weight: 900; }
.prankbar button:active { transform: scale(0.92); }
.prankbar button.cool { opacity: 0.4; }
.cep-ico { display: inline-block; width: 30px; height: 19px; border-radius: 50%; background: radial-gradient(ellipse at 35% 35%, #f4ead1 0%, #d9c79c 60%, #b9a274 100%); box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.12); margin: 2px 0 3px; }

/* aptaškymas per visą ekraną */
.splat { position: fixed; inset: 0; z-index: 50; pointer-events: auto; display: flex; align-items: center; justify-content: center; }
.splat svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.splat .who { position: absolute; bottom: calc(18% + var(--safe-b)); left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.72); color: #fff; border-radius: 999px; padding: 10px 18px; font-size: 17px; font-weight: 900; white-space: nowrap; }
.splat.shake { animation: shake 0.4s; }
.splat.fade { transition: opacity 0.9s; opacity: 0; }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translate(-10px, 6px); } 40% { transform: translate(9px, -6px); } 60% { transform: translate(-6px, -4px); } 80% { transform: translate(5px, 4px); } }
.fly { position: fixed; z-index: 45; font-size: 34px; pointer-events: none; left: 0; top: 0; will-change: transform; }
.emo-float { position: fixed; z-index: 44; font-size: 38px; pointer-events: none; animation: emoUp 1.8s ease-out forwards; }
@keyframes emoUp { 0% { transform: translate(-50%, 0) scale(0.6); opacity: 0; } 15% { transform: translate(-50%, -20px) scale(1.2); opacity: 1; } 100% { transform: translate(-50%, -120px) scale(1); opacity: 0; } }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* modalai */
.modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.modal-back { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); animation: fadeIn 0.2s; }
.modal-box { position: relative; background: #fff; width: 100%; max-width: 520px; border-radius: 26px 26px 0 0; padding: 18px 18px calc(18px + var(--safe-b)); max-height: 88%; overflow-y: auto; animation: sheetUp 0.28s cubic-bezier(.2, 1.1, .4, 1); }
@keyframes sheetUp { from { transform: translateY(40%); opacity: 0.4; } to { transform: none; opacity: 1; } }
.modal h2 { margin: 0 0 4px; font-size: 22px; font-weight: 900; }
.modal .sub { color: var(--muted); font-size: 14px; margin-bottom: 12px; font-weight: 800; }
.modal .close { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 12px; border: 0; background: #f3f4f6; font-size: 18px; }
.rent-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 15px; }
.rent-table td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.rent-table td:last-child { text-align: right; font-weight: 900; }
.rent-table tr.cur td { background: #fff7d6; }
.chip { display: inline-flex; align-items: center; gap: 4px; color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 900; }
.pick-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.pick-list .btn { justify-content: flex-start; font-size: 18px; }
.pick-list .tok { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.prank-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.prank-grid button { border: 0; border-radius: 16px; background: #f3f4f6; padding: 12px 4px; font-size: 30px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.prank-grid button small { font-size: 12px; color: var(--muted); }
.emoji-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.emoji-grid button { border: 0; border-radius: 16px; background: #f3f4f6; font-size: 34px; padding: 10px 0; }
.stepper { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.stepper button { width: 52px; height: 52px; border-radius: 14px; border: 0; background: #f3f4f6; font-size: 22px; font-weight: 900; }
.stepper .val { flex: 1; text-align: center; font-size: 30px; font-weight: 900; }
.stepper input[type=range] { width: 100%; }
.menu-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.menu-list .btn { justify-content: flex-start; }
.rules { font-size: 15px; line-height: 1.45; font-weight: 700; color: #374151; }
.rules li { margin-bottom: 8px; }
.rules b { color: var(--ink); }
.log-list { font-size: 14px; line-height: 1.4; font-weight: 700; color: #374151; }
.log-list div { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* rezultatai */
.results { text-align: center; }
.results .crown { font-size: 54px; line-height: 1; }
.results .win-tok { width: 86px; height: 86px; border-radius: 50%; margin: 6px auto; display: flex; align-items: center; justify-content: center; font-size: 46px; border: 5px solid #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.results .win-name { font-size: 26px; font-weight: 900; }
.results .win-sub { font-size: 17px; color: var(--green); font-weight: 900; margin-bottom: 12px; }
.rank { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #f9fafb; margin-bottom: 6px; text-align: left; }
.rank .n { width: 26px; font-size: 18px; font-weight: 900; color: var(--muted); }
.rank .tok { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; border: 2px solid #fff; }
.rank .nm { flex: 1; font-weight: 900; }
.rank .v { font-weight: 900; }
.rank .s { font-size: 12px; color: var(--muted); }

/* pranešimai */
.toast { position: fixed; left: 50%; top: calc(64px + var(--safe-t)); transform: translateX(-50%); background: #111827; color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 15px; font-weight: 900; z-index: 90; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); max-width: 92%; text-align: center; animation: fadeIn 0.25s; }
.net { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translateX(-50%); background: #b91c1c; color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 900; z-index: 95; }

/* platūs ekranai: lenta kairėje, valdymas dešinėje */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  #scr-game.active { display: grid; grid-template-columns: 1fr 400px; grid-template-rows: auto 1fr auto auto; }
  .topbar { grid-column: 1 / 3; }
  .board-wrap { grid-column: 1; grid-row: 2 / 5; }
  .players { grid-column: 2; grid-row: 2; flex-direction: column; overflow-y: auto; overflow-x: hidden; align-content: start; }
  .pc { min-width: 0; }
  .pc .nm { max-width: 220px; }
  .panel { grid-column: 2; grid-row: 3; border-radius: 22px 0 0 0; }
  #scr-game .prankbar-slot { grid-column: 2; grid-row: 4; }
  .modal { align-items: center; }
  .modal-box { border-radius: 26px; }
}

/* ---------- pokalbis balsu ---------- */
.mic-btn.live { background: #16a34a; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); }
.mic-btn.muted { background: #b91c1c; }
.pc .mic { position: absolute; bottom: -6px; right: -4px; font-size: 12px; line-height: 1; }
.rp .mic { font-size: 16px; flex: 0 0 auto; }
.pc.talk .tok, .rp.talk .tok { box-shadow: 0 0 0 3px #22c55e, 0 0 14px 3px rgba(34, 197, 94, 0.85); }
.voice-audio { display: none; }
