/* Laikinas bazinis stilius prototipui. Tikras dizainas – plano 5 žingsnyje (maketai „dizaino idejos“). */
:root {
  --bg: #14091f; --panel: #21113a; --line: #3a2360; --text: #f3ecff; --muted: #b6a6d4;
  --accent: #9349D8; --pink: #FE17FF; --deep: #6525C2; --ok: #16B16A; --bad: #e0445e;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: #d9b8ff; }
h1 { font-size: 1.6rem; margin: .4em 0; } h2 { font-size: 1.3rem; margin: .6em 0 .4em; } h3 { margin: .6em 0 .3em; }
code { background: #0006; padding: 0 .3em; border-radius: 4px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }
.muted { color: var(--muted); } .hint { color: var(--muted); font-size: .9rem; }
.center { text-align: center; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.between { justify-content: space-between; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.narrow { max-width: 420px; }
label { display: block; margin: 8px 0; }
label.inline { display: inline-flex; gap: 6px; align-items: center; margin-right: 14px; }
label.opt { display: flex; gap: 6px; align-items: center; }
input, select, textarea { font: inherit; color: var(--text); background: #0b0514; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; margin-top: 4px; }
label.inline input, label.opt input[type=radio], input[type=checkbox], input[type=radio] { width: auto; margin: 0; }
.row input, .row select { width: auto; margin-top: 0; }
input.tiny { width: 64px; padding: 4px 6px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; }
button, .btn { font: inherit; font-weight: 600; cursor: pointer; display: inline-block; text-decoration: none; color: #fff;
  background: var(--accent); border: 0; border-radius: 10px; padding: 10px 16px; margin: 4px 0; }
button:disabled { opacity: .45; cursor: default; }
button.secondary, .btn.secondary { background: #ffffff1a; }
button.danger { background: var(--bad); } button.ok { background: var(--ok); }
button.small, .btn.small { padding: 6px 10px; font-size: .9rem; }
button.big { font-size: 1.15rem; padding: 14px 22px; }
button.tiny-btn { padding: 3px 8px; font-size: .85rem; margin: 0 1px; }
.flash { padding: 10px 14px; border-radius: 10px; margin: 10px 0; background: #16b16a33; border: 1px solid var(--ok); }
.flash.error { background: #e0445e33; border-color: var(--bad); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .8rem; background: #ffffff1f; }
.tag.active, .tag.running { background: #16b16a55; } .tag.blocked, .tag.deleted { background: #e0445e66; }
.tag.done { background: #6525c2aa; } .tag.skipped { opacity: .5; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap { overflow-x: auto; }
tr.voided td { opacity: .45; text-decoration: line-through; }
.topnav { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.topnav a { text-decoration: none; } .topnav a.on { color: var(--pink); }
.stats { display: flex; flex-wrap: wrap; gap: 12px; } .stats div { background: var(--panel); padding: 10px 14px; border-radius: 10px; }
.stats b { font-size: 1.4rem; margin-right: 6px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cards { display: flex; gap: 16px; flex-wrap: wrap; }
.card.big { flex: 1 1 240px; background: var(--panel); border: 1px solid var(--line); padding: 28px; border-radius: 16px; text-align: center; font-size: 1.3rem; text-decoration: none; }
.logo-preview { max-height: 60px; vertical-align: middle; background: #fff; border-radius: 6px; }
.copybox { background: #0006; padding: 10px 14px; border-radius: 10px; margin: 12px 0; }

/* ---- Programos ekranai ---- */
body.app { min-height: 100vh; }
body.offline::before { content: "Nėra ryšio… / Offline…"; position: fixed; top: 0; left: 0; right: 0; background: var(--bad); text-align: center; z-index: 10; padding: 4px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #000d; padding: 10px 16px; border-radius: 10px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 20; max-width: 90vw; }
#toast.show { opacity: 1; }
.phone, .player { max-width: 520px; margin: 0 auto; padding: 12px 16px 90px; }
.bar { display: flex; gap: 10px; align-items: center; padding: 6px 0 10px; color: var(--muted); }
.logo-small { max-height: 36px; max-width: 120px; background: #fff; border-radius: 6px; padding: 2px; }
.big-msg { font-size: 1.6rem; padding: 60px 10px; }
.pin-input { font-size: 2rem; text-align: center; letter-spacing: .2em; }
.lang-switch { display: flex; gap: 16px; }
.team-list { display: grid; gap: 8px; margin-bottom: 12px; }
.team-option { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); padding: 12px; border-radius: 10px; margin: 0; }
.team-option span { flex: 1; } .team-option.full { opacity: .5; }
.mates { list-style: none; padding: 0; } .mates li.off { opacity: .5; }
.question { font-size: 1.35rem; }
.target { text-align: center; font-size: 1.2rem; background: #6525c255; border-radius: 12px; padding: 10px; margin: 10px 0; }
.target b { color: var(--pink); font-size: 1.5rem; }
.timer { text-align: center; font-size: 3.4rem; font-variant-numeric: tabular-nums; font-weight: 700; margin: 12px 0; }
.timer.over { font-size: 1.6rem; color: var(--muted); }
.stop { display: block; width: 100%; font-size: 2.6rem; padding: 36px 0; border-radius: 20px; background: var(--pink); }
.huge { font-size: 2rem; }
.notice { background: #ffffff14; border-radius: 10px; padding: 10px 12px; } .notice.strong { background: #fe17ff44; font-weight: 700; }
.countdown { text-align: center; font-size: 2.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.countdown.low, [data-until].low { color: var(--bad); }
.options { display: grid; gap: 10px; margin: 12px 0; }
.opt { display: block; width: 100%; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 1.1rem; font-weight: 500; color: var(--text); }
.opt b { color: var(--pink); margin-right: 8px; }
.opt.correct { background: #16b16a66; border-color: var(--ok); } .opt.chosen { outline: 2px solid var(--pink); }
.textanswer { display: flex; gap: 8px; } .textanswer input { margin: 0; }
.result { font-size: 1.3rem; padding: 12px; border-radius: 12px; background: #ffffff14; margin: 10px 0; }
.result.correct { background: #16b16a55; } .result.wrong, .result.timeout { background: #e0445e55; }
.result em { font-style: normal; font-weight: 700; margin-left: 8px; }
.reveal { background: #16b16a33; border-radius: 10px; padding: 10px; margin: 10px 0; }
.queue { padding-left: 22px; } .queue li { margin: 6px 0; } .queue li.me { color: var(--pink); }
.queue li.wrong, .queue li.timeout { opacity: .55; } .queue em { color: var(--ok); font-style: normal; }
.mystats { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; background: var(--panel); border-top: 1px solid var(--line); padding: 8px; }
.mystats div { text-align: center; } .mystats small { display: block; color: var(--muted); font-size: .75rem; } .mystats b { font-size: 1.2rem; }
.score td:last-child { text-align: right; font-weight: 700; } .score tr.mine { color: var(--pink); }
.podium { background: var(--panel); border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.podium span { display: block; color: var(--muted); } .podium.p1 { border: 2px solid gold; }
.podium em { font-style: normal; color: var(--muted); }
.pulse { animation: pulse 1.6s infinite; } @keyframes pulse { 50% { opacity: .4; } }
/* Juokingi spėjimai: apklausos rezultatas */
.survey { list-style: none; padding: 0; margin: 10px 0; }
.survey li { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr auto; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 6px 0; }
.survey li.correct { background: #16b16a55; border-color: var(--ok); } .survey li.chosen { outline: 2px solid var(--pink); }
.survey .sv-label b { color: var(--pink); margin-right: 6px; } .survey em { font-style: normal; color: var(--muted); white-space: nowrap; }
.sv-bar { height: 10px; background: #ffffff14; border-radius: 5px; overflow: hidden; } .sv-bar i { display: block; height: 100%; background: var(--pink); }
.funny li { margin: 4px 0; } .funny em { font-style: normal; color: var(--ok); font-weight: 700; }
/* Kas čia per garsas?: apskritimo nuotrauka, grotuvas, atsakymai */
.kg-img { display: block; width: min(56vw, 240px); aspect-ratio: 1; margin: 10px auto; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--accent); box-shadow: 0 0 24px #9349d866; background: var(--panel); }
.kg-img-empty { display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.kg-play { font-size: 1.2rem; padding: 12px 26px; border-radius: 99px; } .kg-play.on { background: var(--pink); }
.kg-send { width: 100%; margin-top: 10px; }
.kg-answers { list-style: none; padding: 0; } .kg-answers li { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 6px 0; }
.kg-answers li.correct { background: #16b16a55; border-color: var(--ok); } .kg-answers li.mine { outline: 2px solid var(--pink); }
.kg-ok, .kg-bonus { font-style: normal; font-weight: 700; color: var(--ok); } .kg-bonus { color: var(--pink); }
.kg-unlock { text-align: center; margin: 10px 0; }
.kg-host-top { display: flex; gap: 14px; align-items: center; } .kg-host-top .kg-img { width: 90px; margin: 0; flex: none; border-width: 3px; }
.kg-host-top .kg-img-empty { font-size: 2rem; }
.kg-teams select { width: auto; padding: 2px 4px; margin: 0; }
.kk-img { display: block; width: 100%; max-width: 520px; aspect-ratio: 4 / 3; object-fit: cover; margin: 10px auto; border-radius: 18px;
  border: 2px solid var(--line); background: var(--panel); }
.kk-desc { text-align: center; font-size: 1.15rem; white-space: pre-line; max-width: 640px; margin: 8px auto; }
.kk-label { display: block; margin-top: 8px; }
.kk-input { display: flex; gap: 8px; align-items: center; } .kk-input input { font-size: 1.6rem; text-align: right; flex: 1; margin: 0; }
.kk-input span { font-size: 1.6rem; font-weight: 700; }
.kk-preview { text-align: center; font-size: 1.2rem; font-weight: 700; min-height: 1.5em; margin: 6px 0; }
.kk-price { text-align: center; font-size: 1.4rem; margin: 10px 0; } .kk-price b { color: var(--ok); font-size: 1.3em; }
.kk-count { font-style: normal; float: right; opacity: .8; }
.kk-top { padding-left: 1.4em; } .kk-top li { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 6px 0; }
.kk-top li.win { background: #16b16a55; border-color: var(--ok); } .kk-top li.mine { outline: 2px solid var(--pink); }
.kk-top em { font-style: normal; opacity: .85; } .kk-top .kk-pts { color: var(--ok); font-weight: 700; opacity: 1; }
.kk-host-top { display: flex; gap: 14px; align-items: flex-start; } .kk-host-top .kk-img { width: 200px; margin: 0; flex: none; }
.kk-desc-host { white-space: pre-line; margin-top: 0; } .kk-host-price { font-size: 1.4rem; color: var(--ok); }
.game-img-preview { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }

/* Projektorius */
.screen { padding: 2vh 3vw; font-size: 2.2vh; }
.screen-head { display: flex; align-items: center; gap: 2vw; } .screen-head h1 { flex: 1; font-size: 4vh; }
.screen .logo { max-height: 8vh; background: #fff; border-radius: 8px; padding: 4px; }
.pin-small { font-size: 3vh; color: var(--muted); }
.lobby { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3vw; align-items: start; }
.join { text-align: center; } .qr svg { width: 34vh; height: 34vh; background: #fff; border-radius: 12px; }
.pin { font-size: 9vh; font-weight: 800; letter-spacing: .1em; color: var(--pink); } .url { color: var(--muted); }
.teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(22vw, 1fr)); gap: 1.5vh; }
.team { background: var(--panel); border-radius: 12px; padding: 1vh 1.2vw; }
.screen .question { font-size: 5vh; text-align: center; } .screen .target { font-size: 3.5vh; } .screen .target b { font-size: 5vh; }
.screen .timer { font-size: 14vh; } .screen .countdown { font-size: 8vh; } .countdown-big { font-size: 18vh !important; color: var(--pink); }
.screen .opt { font-size: 3.4vh; } .screen .options { grid-template-columns: 1fr 1fr; }
.screen .result, .screen .answering { font-size: 4vh; text-align: center; }
.screen .score { font-size: 3.2vh; } .screen h2 { font-size: 4.5vh; text-align: center; }
.screen .podium { font-size: 3.4vh; }
.screen .kg-img { width: min(34vh, 40vw); } .screen .kg-img-empty { font-size: 14vh; } .screen .kg-answers li { font-size: 3vh; }
.screen .kg-play { font-size: 3vh; }
.screen .kk-img { width: min(48vh, 64vw); max-width: none; margin: 1vh auto; } .screen .kk-desc { font-size: 3.2vh; max-width: 80vw; }
.screen .kk-price { font-size: 5vh; } .screen .kk-top li { font-size: 3vh; }
.screen .survey li { font-size: 3.2vh; } .screen .guessed, .screen .funny { font-size: 3vh; text-align: center; list-style: none; }

/* Vedėjas */
.host { padding: 10px 14px 40px; max-width: 1300px; margin: 0 auto; }
.host-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.host-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.global { margin: 8px 0; }
.host-opts li.correct { color: var(--ok); font-weight: 700; }
.compact td, .compact th { padding: 4px 6px; font-size: .92rem; } tr.now { background: #fe17ff22; }
.team-block { border-top: 1px solid var(--line); padding: 6px 0; } .team-block h3 { font-size: 1rem; }
.prow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 3px 0; }
.pname { flex: 1; min-width: 80px; } .pts { font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.prow select { width: auto; padding: 2px 4px; margin: 0; font-size: .85rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; } .dot.on { background: var(--ok); } .dot.off { background: #666; }
.qr-small svg { width: 150px; height: 150px; background: #fff; border-radius: 8px; }
.answer-text { font-size: 1.2rem; color: var(--pink); }
@media (max-width: 800px) { .host-grid, .lobby { grid-template-columns: 1fr; } }
.langsw { float: right; font-size: .9em; }

/* ---- Klausimų sąrašas (savininkas) ---- */
.qtable td, .qtable th { vertical-align: middle; }
.qtable .chk { width: 32px; }
.qtable .acts { white-space: nowrap; text-align: right; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; }
.dot.on { background: var(--ok); box-shadow: 0 0 6px #16b16a99; } .dot.off { background: var(--bad); box-shadow: 0 0 6px #e0445e99; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; margin: 0 2px;
  border-radius: 8px; background: #ffffff1a; color: var(--text); border: 0; vertical-align: middle; }
.icon-btn:hover { background: var(--accent); } .icon-btn.del:hover { background: var(--bad); } .icon-btn.pub:hover { background: var(--ok); }
.stats .st-ok b { color: var(--ok); } .stats .st-bad b { color: var(--bad); } .stats .st-skip b { color: var(--muted); }
ul.errs { margin: 0; padding-left: 18px; color: #ffb3c0; }
details summary { cursor: pointer; margin: 10px 0; }
