:root { --bg: #0B0F1A; --panel: #151C2C; --line: #2A3550; --ok: #2EE6D6; --lime: #A6E22E; --warn: #FFB020; --bad: #FF3B4E; --text: #E6EDF7; --mute: #8A97B0; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(ellipse at 50% 0%, #162036 0%, var(--bg) 60%); color: var(--text); font: 16px/1.45 Inter, Rajdhani, system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
#app { max-width: 760px; margin: 0 auto; padding: 14px 14px 40px; }
h1, h2, h3 { font-family: Orbitron, Rajdhani, system-ui, sans-serif; letter-spacing: 1.5px; margin: .6em 0 .4em; }
h1 { font-size: clamp(24px, 6vw, 40px); } h2 { font-size: 21px; } h3 { font-size: 16px; color: var(--mute); text-transform: uppercase; }
.logo { color: var(--ok); text-align: center; text-shadow: 0 0 24px rgba(46,230,214,.35); margin-top: 24px; }
.muted { color: var(--mute); } .small { font-size: 13px; } .ok { color: var(--ok); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.screen { display: flex; flex-direction: column; gap: 12px; }
button { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
button.go { background: linear-gradient(180deg, #2EE6D6, #1fb9ab); color: #04201e; font-weight: 700; border: 0; padding: 14px 18px; font-size: 17px; }
button.ghost { background: transparent; }
.row { display: flex; gap: 10px; } .row .go { flex: 1; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--mute); font-size: 14px; }
.quit { font-size: 12px; padding: 5px 10px; }
.handoff { align-items: center; text-align: center; min-height: 80vh; justify-content: center; gap: 16px; }
.handoff .who { display: flex; flex-direction: column; align-items: center; }
.handoff .go { min-width: 260px; }
.menu label { display: block; margin: 12px 0; } .menu input[type=range] { width: 100%; accent-color: var(--ok); }
.menu .chk { display: flex; gap: 8px; align-items: center; }
.names { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.names input { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--text); font: inherit; }
.board { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.board.mini { padding: 6px 10px; }
.gauge { position: relative; width: 170px; height: 112px; }
.gtxt { position: absolute; inset: 52px 0 0; text-align: center; }
.gl { font-size: 10px; color: var(--mute); letter-spacing: 2px; } .gb { font-family: Orbitron, system-ui, sans-serif; font-weight: 700; font-size: 17px; } .gn { font-family: 'JetBrains Mono', monospace; color: var(--text); }
.gauge.critical { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .55; } }
.station { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; flex: 1; min-width: 260px; }
.mod { background: #101626; border: 1px solid var(--line); border-radius: 10px; padding: 6px 4px; text-align: center; font-size: 11px; display: flex; flex-direction: column; gap: 2px; }
.mod .mi { color: var(--ok); font-size: 14px; } .mod.broken { border-color: var(--bad); color: var(--bad); animation: blink 1.2s infinite; } .mod.broken .mi { color: var(--bad); }
.strip { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { width: 86px; text-align: center; font-size: 12px; position: relative; }
.chip .nm { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.dim { opacity: .5; } .chip.sleep { opacity: .8; filter: saturate(.6); }
.chip .st { color: var(--mute); font-size: 11px; min-height: 14px; }
.tag { display: inline-block; font-size: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; color: var(--mute); } .tag.cap { color: var(--warn); border-color: var(--warn); }
.pips { display: flex; gap: 3px; justify-content: center; margin: 2px 0; } .pips i { width: 14px; height: 7px; border-radius: 3px; background: #26304a; } .pips i.pulse { animation: blink .8s infinite; } .pips.ai { color: var(--mute); font-size: 11px; }
.legend { text-align: center; font-size: 12px; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 3px 0 8px; vertical-align: middle; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { text-align: left; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.opt small { color: var(--mute); } .opt.sel { border-color: var(--ok); box-shadow: 0 0 0 2px rgba(46,230,214,.35) inset; } .opt.disabled { opacity: .4; }
.chipbtn { padding: 6px; border-radius: 14px; align-items: center; } .chipbtn.sel { border-color: var(--ok); } .bottle { display: block; min-height: 18px; }
.private { background: #10202a; border: 1px solid #1d4a52; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.pill { align-self: flex-start; border-radius: 999px; padding: 3px 12px; font-weight: 700; background: #12363a; color: var(--ok); } .pill.saboteur { background: #3a1219; color: var(--bad); } .pill.ai { background: #2e2a12; color: var(--warn); }
.pinfo { font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rolecard { text-align: center; align-items: center; border: 1px solid #1d4a52; border-radius: 20px; padding: 22px 16px; background: #0f1b24; } .rolecard.saboteur { border-color: #5a1c26; background: #1d0f14; } .rolecard.ai { border-color: #5a4a12; background: #1d1a0d; }
.ricon { font-size: 54px; line-height: 1; } .win { background: #0B0F1A; border-radius: 12px; padding: 10px; font-size: 14px; } .allies { color: var(--bad); }
.eventcard { text-align: center; background: var(--panel); border: 1px solid var(--warn); border-radius: 18px; padding: 18px; } .eventcard h1 { color: var(--warn); margin: .2em 0; }
.timer { font-family: 'JetBrains Mono', monospace; font-size: 54px; text-align: center; } .timer.urgent { color: var(--bad); animation: blink 1s infinite; }
.news { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; } .news li { background: var(--panel); border-left: 3px solid var(--ok); border-radius: 8px; padding: 8px 10px; }
.votes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .vote { font-size: 12px; border-radius: 8px; padding: 2px 8px; } .vote.yes { background: #0f3a37; color: var(--ok); } .vote.no { background: #3a1219; color: var(--bad); }
.proposal { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.over { text-align: center; } .over.crew h1 { color: var(--ok); } .over.saboteur h1 { color: var(--bad); }
.roles { display: flex; flex-direction: column; gap: 6px; text-align: left; } .rrow { display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 12px; padding: 4px 10px; } .rrow span { margin-left: auto; color: var(--mute); } .rrow.won { border: 1px solid var(--ok); }
details { text-align: left; background: var(--panel); border-radius: 10px; padding: 6px 10px; } summary { cursor: pointer; color: var(--mute); }
@media (max-width: 520px) { .chip { width: 72px; } .gauge { width: 150px; } }

.hidden { display: none !important; }
.txt { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--text); font: inherit; width: 100%; }
.txt.code { text-transform: uppercase; letter-spacing: 4px; text-align: center; width: auto; flex: 1; }
.localbox { background: var(--panel); border-radius: 14px; padding: 10px 14px; } .localbox summary { cursor: pointer; color: var(--mute); }
.lcode { text-align: center; } .code { font-size: 44px; font-weight: 800; letter-spacing: 8px; color: var(--ok); line-height: 1.1; }
.plist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; } .plist li { display: flex; align-items: center; gap: 8px; background: var(--panel); border-radius: 10px; padding: 8px 12px; } .plist li.off { opacity: .5; } .kick { margin-left: auto; padding: 3px 9px; font-size: 12px; }
#status { position: fixed; left: 50%; top: 10px; transform: translateX(-50%); background: rgba(21,28,44,.95); border: 1px solid var(--line); border-radius: 10px; padding: 8px 16px; z-index: 50; font-size: 14px; }
#live { position: fixed; inset: 0; background: #05070d; z-index: 5; }
#live canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#hud { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 8px; }
#hud > * { pointer-events: auto; }
.htop { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: rgba(15,20,32,.82); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; font-size: 14px; }
.htop .tmr { font-family: 'JetBrains Mono', monospace; margin-left: 6px; font-weight: 700; } .tmr.urgent { color: var(--bad); }
.hrole { color: var(--ok); font-weight: 700; } .hmods { display: flex; gap: 4px; } .hm.ok { color: var(--ok); } .hm.broken { color: var(--bad); animation: blink 1s infinite; } .hox b { color: var(--warn); }
.hact { align-self: center; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; background: rgba(15,20,32,.85); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; max-width: min(640px, 100%); margin-bottom: 6px; }
.hact .go { min-width: 190px; } .wbar { width: 220px; height: 10px; background: #26304a; border-radius: 6px; overflow: hidden; } .wbar i { display: block; height: 100%; background: var(--ok); }
.toasts { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; } .toast { background: rgba(15,20,32,.92); border: 1px solid var(--warn); color: var(--warn); border-radius: 10px; padding: 6px 14px; font-size: 14px; }
#meet { position: absolute; inset: 0; background: rgba(5,8,16,.97); overflow-y: auto; z-index: 6; }
.mwrap { max-width: 720px; margin: 0 auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.mhead { display: flex; justify-content: space-between; align-items: baseline; } .mhead h2 { margin: 0; } .mtimer { font-family: 'JetBrains Mono', monospace; font-size: 30px; } .mtimer.urgent { color: var(--bad); }
.mchat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px; } .mlog { max-height: 170px; overflow-y: auto; font-size: 14px; display: flex; flex-direction: column; gap: 3px; padding: 4px 6px; } .cm.dead { color: var(--mute); } .cm.react { font-size: 18px; }
.mchat .row input { flex: 1; background: #0f1524; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; color: var(--text); font: inherit; }
button.go.no { background: linear-gradient(180deg, #ff5a6a, #d6303f); color: #fff; }
.pips i { background: #26304a; }

#sndbtn { position: fixed; right: 10px; bottom: 10px; z-index: 40; padding: 6px 10px; border-radius: 999px; background: rgba(21,28,44,.9); }
#sndpop { position: fixed; right: 10px; bottom: 54px; z-index: 40; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; width: 210px; font-size: 14px; }
#sndpop input[type=range] { width: 100%; accent-color: var(--ok); } #sndpop .chk { display: flex; gap: 8px; align-items: center; }
.hbtn { padding: 3px 9px; margin-left: auto; }
html, body { overscroll-behavior: none; }
#live { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
@media (pointer: coarse) {
  #sndbtn { right: auto; left: 10px; bottom: auto; top: 54px; }
  #sndpop { right: auto; left: 10px; bottom: auto; top: 96px; }
  .htop { font-size: 12px; gap: 8px; padding: 4px 8px; }
  .hact { position: fixed; right: 10px; bottom: 10px; flex-direction: column; align-items: stretch; margin: 0; max-width: 46vw; padding: 8px; }
  .hact .go { min-width: 0; padding: 18px 14px; font-size: 16px; }
  .hact.muted, .hact.bad { max-width: 52vw; font-size: 12px; }
  .wbar { width: 100%; height: 12px; }
  .toasts { top: 40px; }
  .mwrap { padding: 8px; gap: 8px; } .mhead h2 { font-size: 17px; } .mtimer { font-size: 24px; }
  .mwrap .board { padding: 6px; gap: 6px; } .mwrap .gauge { width: 130px; height: 80px; transform: scale(.8); transform-origin: left center; } .mwrap .station { min-width: 0; font-size: 10px; }
  .mlog { max-height: 110px; } button.go { padding: 14px 16px; }
}

/* ulohy udrzby (zoznam vlavo pod horným pruhom) */
.htasks { position: absolute; top: 58px; left: 10px; background: rgba(15,20,32,.78); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; line-height: 1.5; max-width: 260px; pointer-events: none; }
.htasks b { color: var(--accent, #2EE6D6); display: block; } .htasks .muted { opacity: .65; font-size: 11px; } .htasks .tdone { color: #58d68d; text-decoration: line-through; opacity: .75; }
@media (pointer: coarse) { .htasks { top: 38px; font-size: 11px; padding: 5px 8px; max-width: 200px; line-height: 1.35; } .htasks .muted { font-size: 9px; } }

/* minihry uloh */
.mg { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(3,5,10,.72); }
.mgcard { background: #121a2c; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; width: min(440px, 94vw); text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.mgcard h3 { margin: 0 0 4px; } .mghint { margin: 0 0 12px; opacity: .75; font-size: 13px; } .mgbody { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.mgmsg { min-height: 22px; margin: 8px 0 2px; font-weight: 700; } .mgmsg.ok { color: #58d68d; } .mgmsg.bad { color: #ff6b7a; }
.mgx { margin-top: 4px; }
.fdev { width: 220px; height: 90px; background: #1b2540; border: 2px solid #3a4670; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.fslot { width: 130px; height: 56px; background: #0b1020; border-radius: 28px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.fcart { width: 110px; height: 40px; border-radius: 20px; transition: transform .5s, opacity .5s; } .fcart.old { background: linear-gradient(#7a5a3a, #4a3524); } .fcart.old.out { transform: translateY(120px); opacity: 0; }
.fcart.new { background: linear-gradient(#5fe6d8, #1a8f86); } .fhand { height: 46px; display: flex; align-items: center; } .fhand .fcart.in { transform: none; } .fslot .fcart.new { transform: rotate(var(--turn, 0deg)); transition: transform .3s; }
.cwrap { position: relative; display: flex; justify-content: space-between; width: 280px; } .ccol { display: flex; flex-direction: column; gap: 14px; z-index: 1; } .clines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cbtn { width: 46px; height: 32px; border-radius: 8px; border: 3px solid rgba(255,255,255,.25); cursor: pointer; } .cbtn.sel { border-color: #fff; transform: scale(1.12); } .cbtn:disabled { opacity: .55; cursor: default; }
.vbar { position: relative; width: 320px; height: 34px; background: #0b1020; border: 2px solid #3a4670; border-radius: 8px; } .vzone { position: absolute; top: 0; bottom: 0; background: rgba(88,214,141,.45); border-left: 2px solid #58d68d; border-right: 2px solid #58d68d; }
.vneedle { position: absolute; top: -4px; bottom: -4px; width: 4px; margin-left: -2px; background: #ffb020; border-radius: 2px; } .vcnt { opacity: .7; }
.tank { position: relative; width: 90px; height: 170px; background: #0b1020; border: 2px solid #3a4670; border-radius: 12px; overflow: hidden; } .tfill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(#5ab4ff, #2a6fd0); } .tgreen { position: absolute; left: 0; right: 0; bottom: 70%; height: 22%; background: rgba(88,214,141,.35); border-top: 2px solid #58d68d; border-bottom: 2px solid #58d68d; z-index: 1; }
.hold { touch-action: none; user-select: none; min-width: 200px; padding: 16px; } .hold.on { filter: brightness(1.3); }
.sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .sbtn { width: 90px; height: 70px; border-radius: 12px; border: 3px solid var(--c); background: color-mix(in srgb, var(--c) 18%, #0b1020); cursor: pointer; } .sbtn.lit { background: var(--c); box-shadow: 0 0 22px var(--c); } .sinfo { opacity: .8; }
.crack { position: relative; width: 320px; height: 160px; background: #1a2238; border: 2px solid #3a4670; border-radius: 10px; } .crack svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cdot { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid #ffb020; background: #0b1020; color: #ffb020; font-weight: 700; cursor: pointer; } .cdot.done { background: #58d68d; color: #0b1020; border-color: #58d68d; }
@media (pointer: coarse) { .mgcard { padding: 10px 14px; } .mghint { margin-bottom: 6px; } .mgbody { min-height: 120px; gap: 8px; } .tank { height: 120px; } .crack { height: 120px; } }

/* Maskarny ples: sud (zastupny), banner roly */
.courtcard, .rolebanner { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); background: rgba(15,20,32,.94); border: 1px solid var(--line); border-radius: 16px; padding: 14px 26px; text-align: center; max-width: min(520px, 92vw); pointer-events: none; }
.courtcard h2, .rolebanner h2 { margin: 0 0 6px; } .rolebanner.bad { border-color: var(--bad); } .rolebanner.bad h2 { color: var(--bad); } .rolebanner.ok h2 { color: var(--ok); }

/* sud */
#court { position: absolute; inset: 0; z-index: 8; background: rgba(5,7,13,.9); display: flex; flex-direction: column; gap: 8px; padding: 10px; padding-top: 56px; overflow: hidden; }
#court.hidden, #gchat.hidden { display: none; }
.ct-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; background: rgba(15,20,32,.9); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; }
.ct-head .tmr { font-family: monospace; font-weight: 700; margin-left: 8px; } .ct-head .tmr.urgent { color: var(--bad); } .trust { color: var(--warn); letter-spacing: 3px; }
.ct-body { flex: 1 1 auto; overflow-y: auto; background: rgba(15,20,32,.7); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.ct-list { list-style: none; padding: 0; margin: 0; } .ct-players { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.ct-p { display: flex; align-items: center; gap: 8px; background: #151c2c; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; } .ct-p.sel { border-color: var(--bad); background: #2a1620; } .ct-p button { margin-left: auto; padding: 6px 10px; font-size: 14px; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); vertical-align: middle; }
.ct-acc { font-size: 18px; } .ct-alibi, .ct-diary { background: #151c2c; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; } .ct-d { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.ct-vote { display: flex; gap: 12px; flex-wrap: wrap; } .ct-vote .go { min-width: 160px; } .ct-vote .bad { background: linear-gradient(180deg, #ff5a6a, #d6303f); color: #fff; }
.ct-verdict { text-align: center; padding: 14px; border-radius: 12px; border: 2px solid var(--line); } .ct-verdict.bad { border-color: var(--bad); } .ct-verdict.ok { border-color: var(--ok); } .ct-verdict h2 { margin: 0 0 6px; }
.ct-chat { flex: 0 0 auto; background: rgba(15,20,32,.9); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.ct-log { height: 110px; overflow-y: auto; font-size: 14px; } .ct-log .gh { color: #b7c4e0; opacity: .85; } .ct-row { display: flex; gap: 8px; } .ct-row .txt { flex: 1; }
#gchat { position: absolute; left: 10px; bottom: 10px; width: min(320px, 60vw); background: rgba(15,20,32,.82); border: 1px solid var(--line); border-radius: 12px; padding: 8px; z-index: 6; pointer-events: auto; }
.gc-log { max-height: 120px; overflow-y: auto; font-size: 13px; margin-bottom: 6px; color: #cfd8ee; }
@media (pointer: coarse) { #court { padding-top: 44px; } .ct-log { height: 70px; } }
.hlook { color: #e8c66a; font-size: 13px; }
.ct-p .look, .ct-list .muted { font-size: 12px; line-height: 1.2; }

.hnotes { position: absolute; left: 10px; top: 70px; max-width: min(300px, 55vw); background: rgba(15,20,32,.85); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 12px; pointer-events: none; } .hnotes b { color: #e8c66a; display: block; }

/* minihry uloh vecera */
.mg { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(3,5,10,.72); }
.mgcard { background: #1a1320; border: 1px solid #5a4630; border-radius: 16px; padding: 18px 22px; width: min(440px, 94vw); text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.mgcard h3 { margin: 0 0 4px; color: #e8c66a; } .mghint { margin: 0 0 12px; opacity: .75; font-size: 13px; } .mgbody { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.mgmsg { min-height: 22px; margin: 8px 0 2px; font-weight: 700; } .mgmsg.ok { color: #58d68d; } .mgmsg.bad { color: #ff6b7a; } .mgx { margin-top: 4px; }
.cndl { position: relative; width: 320px; height: 150px; background: #261a22; border: 2px solid #5a4630; border-radius: 10px; } .cn { position: absolute; width: 22px; height: 54px; background: linear-gradient(#f4ecd8, #cdbf9a); border: 0; border-radius: 4px; padding: 0; cursor: pointer; } .cn i { position: absolute; left: 7px; top: -14px; width: 8px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: transparent; } .cn.on i { background: radial-gradient(#fff3b0, #ff9a3c); box-shadow: 0 0 16px 6px rgba(255,170,60,.7); }
.vbar { position: relative; width: 320px; height: 34px; background: #0b1020; border: 2px solid #5a4630; border-radius: 8px; } .vzone { position: absolute; top: 0; bottom: 0; background: rgba(88,214,141,.45); border-left: 2px solid #58d68d; border-right: 2px solid #58d68d; } .vneedle { position: absolute; top: -4px; bottom: -4px; width: 4px; margin-left: -2px; background: #ffb020; border-radius: 2px; } .vcnt { opacity: .7; }
.bk-pat { display: flex; gap: 6px; align-items: center; } .bk-pat i { display: inline-block; width: 22px; height: 22px; border-radius: 4px; } .bk-row { display: flex; gap: 8px; align-items: flex-end; } .bk { width: 34px; border: 2px solid rgba(255,255,255,.25); border-radius: 4px; cursor: pointer; }
.tank { position: relative; width: 90px; height: 170px; background: #0b1020; border: 2px solid #5a4630; border-radius: 12px; overflow: hidden; } .tfill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(#5ab4ff, #2a6fd0); } .tgreen { position: absolute; left: 0; right: 0; bottom: 70%; height: 22%; background: rgba(88,214,141,.35); border-top: 2px solid #58d68d; border-bottom: 2px solid #58d68d; z-index: 1; }
.hold { touch-action: none; user-select: none; min-width: 200px; padding: 16px; } .hold.on { filter: brightness(1.3); }
.pt-wall { width: 260px; height: 130px; background: #3a2c3a; border-radius: 8px; display: flex; align-items: center; justify-content: center; } .pt { width: 90px; height: 70px; background: #c8a860; border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: transform .15s; } .pt-in { width: 76px; height: 56px; background: #3a5a7a; display: flex; align-items: center; justify-content: center; font-size: 30px; } .pt-btns { display: flex; gap: 8px; }
.gl-row { display: flex; gap: 14px; align-items: flex-end; height: 110px; } .gl { background: transparent; border: 0; cursor: pointer; padding: 0 4px; line-height: 1; }
.hmood b { color: #e8c66a; } .htasks { position: absolute; top: 58px; left: 10px; background: rgba(15,20,32,.78); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; line-height: 1.5; max-width: 270px; pointer-events: none; } .htasks b { color: #e8c66a; display: block; } .htasks .muted { opacity: .65; font-size: 11px; } .htasks .tdone { color: #58d68d; text-decoration: line-through; opacity: .75; }
@media (pointer: coarse) { .mgcard { padding: 10px 14px; } .mgbody { min-height: 120px; gap: 8px; } .htasks { top: 40px; font-size: 11px; padding: 5px 8px; max-width: 210px; line-height: 1.35; } }
.htasks { top: 88px; } .hnotes { top: 88px; left: auto; right: 10px; }
@media (pointer: coarse) { .htasks { top: 62px; } .hnotes { top: 62px; } }
.rolelist { background: rgba(15,20,32,.6); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; } .rolelist summary { cursor: pointer; } .rolelist h4.team { margin: 12px 0 4px; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; } .rolelist h4.vrahovia { color: var(--bad); } .rolelist h4.hostia { color: var(--ok); } .rolelist h4.neutralni { color: var(--warn); } .rolelist .rl { margin: 6px 0; }

/* novy HUD: zony namiesto jedneho zahlavia */
#hud { display: block; }
#hud > * { position: absolute; pointer-events: auto; }
.hbar { top: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 18px; align-items: center; background: rgba(15,20,32,.85); border: 1px solid var(--line); border-radius: 999px; padding: 5px 18px; font-size: 14px; pointer-events: none; white-space: nowrap; }
.hbar .bar { display: inline-block; width: 110px; height: 8px; background: #26304a; border-radius: 6px; overflow: hidden; vertical-align: middle; margin: 0 4px; } .hbar .bar i { display: block; height: 100%; background: linear-gradient(90deg, #e8c66a, #ffd166); }
.toasts { top: 52px; left: 50%; transform: translateX(-50%); position: absolute; }
.htasks { top: 52px; left: 10px; } .hnotes { top: 215px; right: 10px; left: auto; max-width: min(260px, 40vw); }
.hrole { left: 10px; bottom: 10px; width: min(300px, 44vw); background: rgba(15,20,32,.88); border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 12px; padding: 8px 12px; font-size: 13px; line-height: 1.4; cursor: default; }
.hrole.killer { border-left-color: var(--bad); } .hrole.neutral { border-left-color: var(--warn); } .hrole .rn { font-size: 16px; font-weight: 700; } .hrole .team { font-size: 11px; letter-spacing: 1px; padding: 1px 7px; border-radius: 6px; background: rgba(46,230,214,.18); color: var(--ok); margin-right: 4px; } .hrole.killer .team { background: rgba(255,59,78,.2); color: var(--bad); } .hrole.neutral .team { background: rgba(255,176,32,.2); color: var(--warn); }
.hrole .ra { color: #e8c66a; } .hrole .rd { opacity: .75; font-size: 12px; margin: 3px 0; } .hrole .rl { font-size: 12px; } .hrole:not(.open) .rd, .hrole:not(.open) .rl, .hrole:not(.open) .muted { display: none; }
.hactions { bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hactions .arow { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; } .hactions .ahint { font-size: 11px; opacity: .55; }
.ab { position: relative; min-width: 104px; padding: 8px 10px 6px; border-radius: 12px; border: 2px solid var(--c, #2A3550); background: rgba(15,20,32,.9); color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.15; }
.ab .key { position: absolute; top: -9px; left: 8px; font-style: normal; font-size: 11px; font-weight: 800; background: var(--c, #2A3550); color: #0b0f1a; border-radius: 5px; padding: 0 6px; } .ab b { font-size: 14px; } .ab small { font-size: 11px; opacity: .7; }
.ab.kill { --c: #ff3b4e; } .ab.task { --c: #2EE6D6; } .ab.report { --c: #FFB020; } .ab.ability { --c: #b388ff; } .ab.bell { --c: #e8c66a; }
.ab:not(:disabled) { background: color-mix(in srgb, var(--c) 22%, #0f1420); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 40%, transparent); } .ab:disabled { opacity: .45; filter: grayscale(.5); cursor: default; }
.wmsg { font-size: 13px; } .hactions .wbar { width: 240px; }
@media (pointer: coarse) {
  .hbar { gap: 8px; padding: 3px 10px; font-size: 11px; } .hbar .bar { width: 60px; }
  .hrole { width: min(210px, 36vw); font-size: 11px; padding: 5px 8px; } .hrole .rn { font-size: 13px; } .hrole .ra { display: none; } .hrole.open .ra { display: block; }
  .hactions { left: auto; right: 8px; bottom: 8px; transform: none; align-items: flex-end; } .hactions .arow { flex-direction: column; align-items: stretch; } .ab { min-width: 130px; padding: 12px 10px 8px; } .ab b { font-size: 15px; } .hactions .ahint { display: none; }
  .htasks { top: 34px; } .hnotes { top: 160px; } .toasts { top: 32px; }
}

/* sudna siej: scena vlavo, panel vpravo */
#court { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 10px; padding: 10px; padding-top: 10px; }
.ct-scene { position: relative; min-height: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #0a0710; } .ct-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ct-mic { position: absolute; left: 10px; bottom: 10px; z-index: 2; font-size: 13px; padding: 8px 12px; background: rgba(15,20,32,.9); } .ct-mic.on { border-color: var(--ok); color: var(--ok); }
.ct-side { display: flex; flex-direction: column; gap: 8px; min-height: 0; } .ct-side .ct-body { flex: 1 1 auto; }
@media (max-width: 860px), (pointer: coarse) and (max-width: 1000px) { #court { grid-template-columns: 1fr; grid-template-rows: minmax(150px, 38vh) minmax(0, 1fr); } .ct-log { height: 60px; } }

.ab.main { min-width: 124px; box-shadow: 0 0 0 2px rgba(255,255,255,.25); } .ab .key { white-space: nowrap; }

.hfull { top: 8px; right: 10px; padding: 4px 10px; font-size: 15px; z-index: 3; }

/* zvuk: tlacidlo hore vedla celoobrazovkoveho, na desktope aj na mobile */
#sndbtn { position: fixed; left: auto !important; bottom: auto !important; right: 62px !important; top: 8px !important; z-index: 40; width: auto; padding: 4px 10px; }
#sndpop { position: fixed; left: auto !important; bottom: auto !important; right: 10px !important; top: 48px !important; z-index: 40; width: 200px; }
/* mobil: kompaktne akcie (bez podtitulkov), aby sa zmestili vedla minimapy */
@media (pointer: coarse) {
  .ab { min-width: 118px; padding: 5px 10px 4px; border-radius: 10px; } .ab small { display: none; } .ab b { font-size: 13px; } .ab .key { font-size: 10px; top: -8px; }
  .hactions { bottom: 6px; right: 6px; } .hactions .arow { gap: 6px; }
  .hfull { top: 6px; right: 8px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  #court { grid-template-columns: minmax(0, 1fr) 300px !important; grid-template-rows: none !important; padding: 6px; gap: 6px; }
  .ct-log { height: 44px; } .ct-body { font-size: 12px; } .ct-head { padding: 4px 10px; font-size: 12px; } .ct-mic { font-size: 11px; padding: 5px 8px; }
}

#hud.hidden { display: none; }
.ct-vote { position: sticky; bottom: 0; background: rgba(15,20,32,.96); padding: 6px 0; z-index: 1; }

.ab.sab { border-color: #b0407a; background: rgba(176,64,122,.16); }

.hmic { top: 8px; right: 56px; padding: 4px 10px; font-size: 15px; z-index: 3; }
@media (max-width: 760px) { .hmic { top: 6px; right: 52px; } }

/* ---- mobil / dotyk: jedno miesto pre ovladacie tlacidla, ziadne prekryvanie, bez zoomu dvojklikom ---- */
html, body, button, #live, #hud { touch-action: manipulation; }
#live, #hud { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.hfull, .hmic, #sndbtn { width: 40px; height: 34px; padding: 0 !important; display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }
.hfull { top: 8px; right: 10px; } .hmic { top: 8px; right: 56px; } #sndbtn { top: 8px !important; right: 102px !important; }
body:not(.ingame) #sndbtn { right: 10px !important; }
@media (pointer: coarse) {
  body.ingame #sndbtn { left: 100px !important; right: auto !important; top: 36px !important; }
  body.ingame #sndpop { left: 8px !important; right: auto !important; top: 76px !important; }
  .hfull { left: 8px; right: auto; top: 36px; } .hmic { left: 54px; right: auto; top: 36px; }
  .hbar { left: 8px; right: 8px; transform: none; justify-content: center; gap: 10px; top: 6px; } .hbar .bar { width: 44px; }
  .htasks { top: 76px !important; left: 8px; } .hnotes { top: 150px; }
  .toasts { top: 76px; max-width: 70vw; } .toast { font-size: 12px; padding: 6px 10px; }
  .rolebanner { top: 16%; max-width: 78vw; padding: 8px 14px; } .rolebanner h2 { font-size: 17px; } .rolebanner p { font-size: 12px; margin: 3px 0; }
}
@media (pointer: coarse) and (orientation: landscape) {
  body.ingame #sndbtn { top: 6px !important; } .hfull, .hmic { top: 6px; }
  .hbar { left: 50%; right: auto; transform: translateX(-50%); width: max-content; max-width: 56vw; }
  .htasks { top: 46px !important; max-width: 200px; } .hnotes { top: 46px; } .toasts { top: 46px; }
  .hactions .arow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .ab { min-width: 108px; }
  .rolebanner { top: 12%; max-width: 50vw; }
}
