:root {
  --bg: #0a0d1a; --panel: rgba(16, 20, 40, 0.72); --line: rgba(255,255,255,0.1);
  --txt: #eef1ff; --muted: #9aa3c7; --accent: #ffd75e; --accent2: #4cd6ff; --good: #5ee38a; --warn: #ff7b7b;
  --tc: #ffd75e; --td: #8a6510;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--txt); font-family: Rubik, system-ui, -apple-system, "Segoe UI", sans-serif; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#labels { position: fixed; inset: 0; pointer-events: none; }
#vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.45) 100%); }
.blabel { position: absolute; left: 0; top: 0; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0,0,0,0.45); padding: 2px 7px; border-radius: 10px; white-space: nowrap; text-shadow: 0 1px 2px #000; }
svg { width: 1em; height: 1em; vertical-align: -0.15em; }

.screen { position: fixed; inset: 0; display: none; }
.screen.active { display: flex; align-items: center; justify-content: center; }
.glass { background: var(--panel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08); }

/* ---------- tlačítka ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.14); background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)); color: var(--txt); font: inherit; font-weight: 600; cursor: pointer; transition: transform .08s, background .15s, box-shadow .15s; }
.btn:hover:not(:disabled) { background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08)); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.primary { background: linear-gradient(180deg, #ffe38a, #f2b21b); color: #3a2300; border-color: #ffd75e; box-shadow: 0 6px 20px rgba(255,190,50,0.35); }
.btn.primary:hover:not(:disabled) { background: linear-gradient(180deg, #fff0b0, #f9c23a); }
.btn.big { padding: 14px 22px; font-size: 17px; }
.btn.mini { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.icon { width: 40px; height: 40px; padding: 0; font-size: 18px; }
.btn.icon.off { opacity: 0.6; }
.btn svg { font-size: 1.2em; }
.link { background: none; border: none; color: var(--accent2); font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; }
input, select { font: inherit; color: var(--txt); background: rgba(0,0,0,0.35); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; }
input:focus, select:focus { border-color: var(--accent2); }
select option { color: #111; }

/* ---------- menu ---------- */
.menu-card { width: min(460px, calc(100vw - 32px)); padding: 28px 28px 20px; text-align: center; }
.logo { font-weight: 900; font-size: 54px; line-height: 0.95; letter-spacing: -1px; }
.logo .l1 { display: block; color: #fff; text-shadow: 0 4px 0 #1a1f3a, 0 8px 24px rgba(0,0,0,0.5); }
.logo .l2 { display: block; background: linear-gradient(180deg, #ffe38a, #f2a41b); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #6b3d00); }
.tag { color: var(--muted); margin: 12px 0 18px; }
.field { display: block; text-align: left; margin-bottom: 14px; }
.field span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.field input { width: 100%; font-size: 16px; }
.menu-btns { display: grid; gap: 10px; }
.join-row { display: flex; gap: 8px; margin-top: 12px; }
.join-row input { flex: 1; min-width: 0; width: 40%; text-transform: uppercase; letter-spacing: 3px; font-weight: 700; text-align: center; }
.menu-foot { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); align-items: center; }

/* ---------- lobby ---------- */
.lobby { width: min(760px, calc(100vw - 24px)); padding: 20px 22px; max-height: calc(100vh - 24px); overflow: auto; }
.lobby header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.lobby .kind { color: var(--muted); font-size: 13px; }
.lobby .code { font-size: 22px; }
.lobby .code b { font-size: 30px; letter-spacing: 4px; color: var(--accent); }
.invite { display: flex; gap: 6px; }
.invite input { width: 230px; font-size: 12px; }
.teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.teamcol { border: 2px solid var(--tc); border-radius: 14px; padding: 12px; background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 22%, transparent), transparent); display: flex; flex-direction: column; gap: 8px; }
.thead { display: flex; align-items: center; gap: 6px; }
.thead .tname { flex: 1; font-weight: 800; font-size: 17px; }
.arrow { background: rgba(0,0,0,0.3); border: 1px solid var(--line); color: #fff; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.arrow:disabled { opacity: 0.3; cursor: default; }
.plist { min-height: 96px; display: flex; flex-direction: column; gap: 4px; }
.pl { background: rgba(0,0,0,0.3); border-radius: 8px; padding: 6px 10px; display: flex; align-items: center; gap: 8px; }
.pl .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.pl.off .dot { background: var(--warn); }
.pl.me { outline: 1px solid var(--tc); }
.pl em { color: var(--accent); font-style: normal; font-size: 11px; margin-left: auto; }
.pl.bot { color: var(--muted); }
.vs { align-self: center; font-weight: 900; font-size: 22px; color: var(--muted); }
.lobby-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.lobby-row .grow { flex: 1; }
.settings label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

/* ---------- HUD ---------- */
#screen-game { pointer-events: none; }
#screen-game > * { pointer-events: none; }
#screen-game > .overlay { pointer-events: auto; }
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud > * { pointer-events: auto; }
.scoreboard { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 14px; }
.steam { display: flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.steam .sval { font-size: 30px; font-weight: 900; color: var(--tc); min-width: 34px; text-align: center; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.steam.mine .sname { text-decoration: underline var(--tc); text-underline-offset: 4px; }
.smid { text-align: center; font-size: 12px; color: var(--muted); min-width: 90px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0 10px; }
.smid #turn-info { font-size: 14px; color: var(--txt); font-weight: 600; }
.phase { position: absolute; top: 74px; left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 12px; display: flex; align-items: center; gap: 12px; min-width: 300px; justify-content: center; }
#phase-text { font-weight: 600; font-size: 14px; }
.timer { width: 120px; height: 8px; background: rgba(0,0,0,0.4); border-radius: 4px; overflow: hidden; }
#timer-bar { height: 100%; background: linear-gradient(90deg, var(--good), var(--accent)); transform-origin: left; transform: scaleX(0); }
#timer-num { font-weight: 800; min-width: 24px; text-align: right; color: var(--accent); }
#hud[data-state="sim"] .timer, #hud[data-state="sim"] #timer-num, #hud[data-state="goal"] .timer, #hud[data-state="end"] .timer { display: none; }
#mode-hint { position: absolute; top: 128px; left: 50%; transform: translateX(-50%); padding: 8px 14px; border-radius: 10px; font-size: 13px; color: var(--accent); }
#power-meter { position: absolute; bottom: 110px; left: 50%; transform: translateX(-50%); width: 220px; height: 12px; background: rgba(0,0,0,0.5); border-radius: 6px; overflow: hidden; opacity: 0; transition: opacity .15s; border: 1px solid var(--line); --p: 0; }
#power-meter.show { opacity: 1; }
#power-meter .pm-fill { height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, #5ee38a, #ffd75e 60%, #ff5a4a); }
.hud-left { position: absolute; left: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
#powers { display: flex; gap: 8px; padding: 8px; border-radius: 14px; }
.pslot { width: 78px; height: 78px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,0.35); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; font: inherit; transition: transform .1s, box-shadow .15s; }
.pslot:not(.empty):not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--accent), 0 6px 18px rgba(255,215,94,0.35); }
.pslot:disabled:not(.empty) { opacity: 0.55; }
.pslot .pico { font-size: 28px; color: var(--accent); display: flex; }
.pslot .pico.dim { color: rgba(255,255,255,0.2); font-size: 26px; font-weight: 900; }
.pslot .pname { font-size: 10px; font-weight: 600; text-align: center; line-height: 1.1; }
#opp-powers { font-size: 12px; color: var(--muted); padding-left: 6px; }
.hud-right { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mini-row { display: flex; gap: 6px; }
#btn-ready { padding: 14px 26px; font-size: 18px; }
#formation-panel { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 10px 12px; width: min(520px, calc(100vw - 24px)); text-align: center; background: rgba(16, 20, 40, 0.6); }
#formation-panel h3 { margin: 0 0 8px; font-size: 14px; }
#formation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fcard { background: rgba(0,0,0,0.35); border: 2px solid var(--line); border-radius: 12px; padding: 6px; color: #fff; cursor: pointer; font: inherit; transition: border-color .15s, transform .1s; }
.fcard:hover { transform: translateY(-2px); }
.fcard.sel { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,215,94,0.3); }
.fcard .fdiag { width: 100%; height: auto; border-radius: 6px; }
.fcard .fname { font-weight: 800; margin-top: 4px; font-size: 13px; }
.fcard .ftip { font-size: 11px; color: var(--muted); text-align: left; line-height: 1.35; }
#formation-opp { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- banner ---------- */
.banner { position: fixed; top: 34%; left: 50%; transform: translate(-50%, -50%) scale(0.8); font-weight: 900; font-size: 56px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; text-shadow: 0 4px 0 rgba(0,0,0,0.5), 0 12px 40px rgba(0,0,0,0.6); letter-spacing: -1px; }
.banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.banner small { display: block; font-size: 18px; letter-spacing: 4px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.banner.goal { color: var(--accent); font-size: 80px; }
.banner.goal small { color: #fff; }
.banner.kick { color: #fff; font-size: 36px; }
.banner.replay { color: var(--accent2); font-size: 34px; }
.banner.mine, .banner.theirs { font-size: 34px; }
.banner.mine { color: var(--good); }
.banner.theirs { color: var(--warn); }
.banner svg { font-size: 1em; }

/* ---------- konec ---------- */
.overlay { position: fixed; inset: 0; pointer-events: auto; background: rgba(4, 6, 16, 0.6); display: flex; align-items: center; justify-content: center; z-index: 20; }
.end-card { width: min(560px, calc(100vw - 24px)); padding: 24px; text-align: center; border-top: 4px solid var(--wc, var(--accent)); }
.end-card h2 { margin: 0 0 12px; font-size: 40px; color: var(--wc, var(--accent)); }
#end-score { display: flex; align-items: center; justify-content: center; gap: 16px; font-weight: 700; }
#end-score b { font-size: 44px; font-weight: 900; }
#end-score span { display: flex; align-items: center; gap: 6px; color: var(--tc); }
.stats { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.stats th { color: var(--muted); font-weight: 600; text-align: left; padding: 6px; border-bottom: 1px solid var(--line); }
.stats td { padding: 6px; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: left; }
.end-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- nápověda ---------- */
.help-card { width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; padding: 22px; position: relative; text-align: left; }
.help-card .close { position: absolute; right: 12px; top: 12px; }
.help-card h2 { margin: 0 0 10px; }
.help-card h3 { margin: 18px 0 8px; color: var(--accent); }
.howto { padding-left: 20px; line-height: 1.5; margin: 0; }
.howto li { margin-bottom: 6px; }
.hgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hp, .hf { display: flex; gap: 10px; align-items: flex-start; background: rgba(0,0,0,0.3); border-radius: 10px; padding: 8px; font-size: 13px; line-height: 1.35; }
.hp .pico { font-size: 26px; color: var(--accent); flex-shrink: 0; display: flex; }
.hf .fdiag { width: 96px; flex-shrink: 0; border-radius: 4px; }
.hp b, .hf b { color: #fff; }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 20px); background: rgba(10, 14, 30, 0.92); border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; font-size: 14px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 40; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.warn { border-color: var(--warn); color: #ffd2d2; }
.toast.good { border-color: var(--good); color: #d8ffe4; }

/* ---------- mobil ---------- */
@media (max-width: 720px) {
  .logo { font-size: 42px; }
  .teams { grid-template-columns: 1fr; }
  .vs { display: none; }
  .scoreboard { top: 6px; padding: 6px 10px; gap: 6px; }
  .steam .sname { display: none; }
  .steam .sval { font-size: 24px; }
  .phase { top: 60px; min-width: 0; width: calc(100vw - 20px); padding: 6px 10px; }
  #phase-text { font-size: 12px; }
  .pslot { width: 62px; height: 62px; }
  .pslot .pname { display: none; }
  #btn-ready { padding: 12px 18px; font-size: 16px; }
  #formation-panel { bottom: 100px; }
  #formation-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .fcard .ftip { display: none; }
  .banner { font-size: 40px; }
  .banner.goal { font-size: 56px; }
  .hgrid { grid-template-columns: 1fr; }
}

/* ---------- výběr typu hráče + aréna ---------- */
.classpick { margin-top: 12px; }
.cp-title { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.cp-title small { opacity: 0.8; }
#class-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ccard { background: rgba(0,0,0,0.3); border: 2px solid var(--line); border-radius: 10px; padding: 8px 6px; color: #fff; cursor: pointer; font: inherit; text-align: center; transition: border-color .15s, transform .1s; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ccard:hover { transform: translateY(-2px); }
.ccard.sel { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,215,94,0.3); }
.ccard .cico { font-size: 26px; color: var(--accent); display: flex; }
.ccard .cname { font-weight: 800; font-size: 13px; }
.ccard .cbars { width: 100%; display: grid; gap: 2px; }
.ccard .cbar { height: 4px; background: rgba(255,255,255,0.12); border-radius: 2px; overflow: hidden; }
.ccard .cbar i { display: block; height: 100%; background: var(--accent2); }
.ccard .cbar.k i { background: var(--warn); }
.ccard .cbar.s i { background: var(--good); }
.ccard .cdesc { font-size: 10px; color: var(--muted); line-height: 1.25; }
.pl .pcls { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.arena-desc { font-size: 11px; color: var(--muted); max-width: 240px; }
.settings label { min-width: 200px; }
.hc { display: flex; gap: 10px; align-items: flex-start; background: rgba(0,0,0,0.3); border-radius: 10px; padding: 8px; font-size: 13px; line-height: 1.35; }
.hc .cico { font-size: 26px; color: var(--accent); flex-shrink: 0; display: flex; }
.hc b { color: #fff; }
@media (max-width: 720px) {
  #class-grid { grid-template-columns: repeat(3, 1fr); }
  .ccard .cdesc { display: none; }
}

/* ---------- sloty bobblů v lobby ---------- */
.slots { display: grid; gap: 4px; }
.slot { display: grid; grid-template-columns: 22px 30px 1fr 30px auto; align-items: center; gap: 4px; background: rgba(0,0,0,0.3); border-radius: 8px; padding: 3px 6px; font-size: 13px; }
.slot .sn { font-weight: 800; color: var(--tc); text-align: center; }
.slot .sname { display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; }
.slot .sname svg { color: var(--accent); font-size: 18px; flex-shrink: 0; }
.slot .arrow { width: 28px; height: 26px; }
.slot .sowner { font-size: 10px; color: var(--muted); margin-left: auto; }
.ccard { cursor: default; }
.ccard:hover { transform: none; }

.flegend { color: var(--txt); font-size: 12px; }
.flegend b { color: var(--accent); margin-left: 6px; }

/* ---------- panel hráčů ---------- */
#players-panel { position: absolute; left: 14px; top: 14px; padding: 8px 10px; border-radius: 12px; font-size: 12px; min-width: 150px; }
#players-panel .pp-team { display: flex; align-items: center; gap: 6px; font-weight: 800; margin: 2px 0 3px; color: var(--tc); }
#players-panel .pp-team + .pp-team { margin-top: 8px; }
#players-panel .pp-row { display: flex; align-items: center; gap: 6px; padding: 2px 0; color: var(--txt); }
#players-panel .pp-row.me { font-weight: 700; }
#players-panel .pp-row.off { opacity: 0.5; }
#players-panel .st { width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; background: rgba(255,255,255,0.12); color: var(--muted); flex-shrink: 0; }
#players-panel .st.ok { background: var(--good); color: #0b2a14; }
#players-panel .st.bot { background: rgba(255,255,255,0.08); }
#players-panel .pp-cnt { color: var(--muted); font-weight: 400; margin-left: auto; font-size: 11px; }
@media (max-width: 720px) { #players-panel { top: auto; bottom: 96px; left: 8px; font-size: 11px; min-width: 0; } }

/* ---------- emoty ---------- */
#emotes { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px 6px; border-radius: 12px; }
#emotes button { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: rgba(0,0,0,0.3); font-size: 20px; cursor: pointer; line-height: 1; padding: 0; transition: transform .08s; }
#emotes button:hover { transform: translateY(-2px) scale(1.08); background: rgba(255,255,255,0.12); }
#emote-layer { position: fixed; inset: 0; pointer-events: none; }
.ebubble { position: absolute; left: 0; top: 0; font-size: 30px; background: rgba(255,255,255,0.95); color: #111; border-radius: 16px 16px 16px 4px; padding: 4px 10px; box-shadow: 0 6px 20px rgba(0,0,0,0.4); animation: epop 2.2s ease-out forwards; white-space: nowrap; }
.ebubble small { display: block; font-size: 11px; font-weight: 700; color: #555; text-align: center; }
@keyframes epop { 0% { transform: translate(-50%,-100%) scale(0.4); opacity: 0; } 12% { transform: translate(-50%,-115%) scale(1.15); opacity: 1; } 22% { transform: translate(-50%,-110%) scale(1); } 80% { opacity: 1; } 100% { transform: translate(-50%,-150%) scale(0.9); opacity: 0; } }
.pl .kick { margin-left: auto; background: none; border: none; color: var(--warn); cursor: pointer; font-size: 14px; padding: 0 4px; }
.pl em + .kick { margin-left: 4px; }
.mstats { font-size: 12px; color: var(--muted); }
.mstats b { color: var(--accent); }
@media (max-width: 720px) { #emotes { bottom: 100px; left: auto; right: 8px; transform: none; flex-wrap: wrap; width: 92px; } #emotes button { width: 40px; height: 40px; } }

.slot .owner { background: rgba(255,255,255,0.08); border: 1px solid var(--line); color: var(--txt); border-radius: 7px; padding: 3px 7px; font: inherit; font-size: 11px; cursor: pointer; white-space: nowrap; max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
.slot .owner.auto { color: var(--muted); }
.slot .owner.me { border-color: var(--accent); color: var(--accent); }
.slot .owner:disabled { cursor: default; opacity: 0.7; }
.banner .by { display: block; font-size: 18px; color: #fff; letter-spacing: 0; text-transform: none; margin-top: 4px; }
.banner.golden { color: #ffd75e; font-size: 40px; }

/* ---------- chat ---------- */
.chat { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.chat-log { max-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.chat-log .msg { display: flex; gap: 6px; align-items: baseline; }
.chat-log .msg b { color: var(--tc, #fff); white-space: nowrap; }
.chat-log .msg.sys { color: var(--muted); font-style: italic; }
.chat-form { display: flex; gap: 6px; margin-top: 6px; }
.chat-form input { flex: 1; min-width: 0; padding: 8px 10px; }
#game-chat { position: absolute; left: 14px; bottom: 112px; width: min(340px, calc(100vw - 28px)); pointer-events: none; }
#game-chat .chat-log { max-height: 140px; overflow: hidden; }
#game-chat .msg { background: rgba(10,14,30,0.7); padding: 3px 8px; border-radius: 8px; width: fit-content; max-width: 100%; animation: chatfade 9s forwards; }
@keyframes chatfade { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
#game-chat .chat-form { pointer-events: auto; }
#game-chat .chat-form input { background: rgba(10,14,30,0.9); }
.sound-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.sound-row label { display: flex; align-items: center; gap: 8px; }
@media (max-width: 720px) { #game-chat { bottom: 150px; width: calc(100vw - 110px); } }
