/* PixelGaunt Live page */
.lv-head{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.lv-pill{display:inline-flex;align-items:center;gap:7px;padding:5px 12px;border-radius:999px;background:#e11d48;color:#fff;font:800 .8rem Inter,system-ui,sans-serif;letter-spacing:1.5px}
.lv-pill:before{content:"";width:8px;height:8px;border-radius:50%;background:#fff;animation:lvp 1.2s infinite}
@keyframes lvp{50%{opacity:.25}}
.lv-play{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border-radius:10px;background:var(--neon-cyan,#38bdf8);color:#04121f;font:700 .9rem Inter,system-ui,sans-serif;text-decoration:none}
.lv-play:hover{filter:brightness(1.1)}
#live-root{max-width:1100px;margin:0 auto;padding:0 16px 40px}
.lv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:14px}
.lv-card{min-width:0;position:relative;display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(148,163,184,.25);color:#e2e8f0}
.lv-grid .lv-card{cursor:pointer;transition:border-color .15s,transform .15s}
.lv-grid .lv-card:hover{border-color:var(--neon-cyan,#38bdf8);transform:translateY(-2px)}
.lv-grid .lv-card.on{border-color:#fbbf24;box-shadow:0 0 0 2px rgba(251,191,36,.3)}
.lv-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.lv-pl{overflow:hidden;display:flex;align-items:center;gap:6px;min-width:0;flex:1;padding:4px 8px;border-radius:9px;border:1.5px solid transparent;flex-wrap:nowrap;height:34px}
.lv-pl.p1{flex-direction:row-reverse;text-align:right}
.lv-pl.turn{border-color:rgba(56,189,248,.7);background:rgba(56,189,248,.1)}
.lv-pl.win{border-color:#fbbf24;background:rgba(251,191,36,.14)}
.lv-pl .nm{font:700 .9rem Inter,system-ui,sans-serif;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.lv-card.big .lv-pl .nm{font-size:1.1rem}
.lv-pl .gp{font:600 .72rem Inter,system-ui,sans-serif;font-style:normal;color:#94a3b8;white-space:nowrap}.lv-pl .nm{flex:0 1 auto;min-width:0}.lv-vs{font:700 .72rem Inter,system-ui,sans-serif;color:#64748b;text-transform:uppercase}
.lv-cv{position:relative;border-radius:10px;overflow:hidden;background:#05060a;line-height:0}
.lv-cv canvas{width:100%;height:auto;display:block}
.lv-banner{position:absolute;inset:0;display:none;align-items:center;justify-content:center;background:rgba(3,6,15,.72);color:#fbbf24;font:800 clamp(1.1rem,4vw,2rem) 'Space Grotesk',Inter,sans-serif;text-align:center;padding:10px;line-height:1.2}
.lv-banner.on{display:flex}
.lv-bot{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;min-height:22px}
.lv-bot .msg{font:600 .8rem Inter,system-ui,sans-serif;color:#cbd5e1;text-align:center;max-width:46vw}
.lv-card.big .lv-bot .msg{font-size:.95rem}
.tray{display:flex;gap:3px;flex-wrap:wrap}
.tray:last-child{justify-content:flex-end}
.bd{width:14px;height:14px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.35)}
@media(max-width:620px){.lv-grid{grid-template-columns:minmax(0,1fr)}.lv-pl{padding:4px 6px;gap:4px}.lv-pl .nm{font-size:.82rem}.lv-pl .gp{font-size:.66rem}.lv-bot{grid-template-columns:1fr}.lv-bot .msg{order:-1;max-width:none}.tray,.tray:last-child{justify-content:center}}
@media(prefers-reduced-motion:reduce){.lv-pill:before{animation:none}}

.lv-tag{display:flex;gap:8px;align-items:baseline;justify-content:space-between;font:600 .74rem Inter,system-ui,sans-serif;color:#94a3b8}
.lv-tag b{color:#fbbf24;font-size:.82rem}
.lv-pl .nm{flex:0 1 auto;min-width:0}
.lv-pl .bot{flex:none;width:20px;height:20px;display:block}
.lv-top.one{justify-content:center}.lv-top.one .lv-pl{flex:0 1 auto;max-width:100%}
.lv-bot.one{grid-template-columns:1fr}.lv-bot.one .tray{display:none}.lv-bot.one .msg{max-width:none}
.lv-modal{position:fixed;inset:0;z-index:9000;display:none;align-items:center;justify-content:center;padding:10px}
.lv-modal.on{display:flex}
.lv-back{position:absolute;inset:0;background:rgba(2,4,12,.85)}
.lv-box{position:relative;width:min(96vw,1000px,calc((92vh - 150px)*1.83));display:flex;flex-direction:column;gap:12px;align-items:center}
.lv-box .lv-card{width:100%;background:#0b1020;box-sizing:border-box}
.lv-x{position:absolute;top:-14px;right:-6px;z-index:2;width:34px;height:34px;border-radius:50%;border:0;background:#e11d48;color:#fff;font:700 1.4rem/1 Inter,sans-serif;cursor:pointer}
html.lv-lock{overflow:hidden}
/* v3: live/offline tiles */
.lv-grid{grid-template-columns:repeat(auto-fill,minmax(min(340px,100%),1fr))}
#live-root{max-width:1180px}
.lv-tl{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;min-width:0}
.lv-tl span{font-weight:600;color:#94a3b8}
.lv-st{flex:none;font:800 .66rem Inter,system-ui,sans-serif;letter-spacing:1.2px;padding:3px 8px;border-radius:999px}
.lv-st.on{background:#e11d48;color:#fff;display:inline-flex;align-items:center;gap:6px}
.lv-st.on:before{content:"";width:6px;height:6px;border-radius:50%;background:#fff;animation:lvp 1.2s infinite}
.lv-st.off{background:rgba(148,163,184,.2);color:#94a3b8}
.lv-card.off{opacity:.82}.lv-card.off .lv-top{visibility:hidden}
.lv-card.off{cursor:default}.lv-card.off:hover{transform:none;border-color:rgba(148,163,184,.25)}
.lv-banner.off{background:rgba(3,6,15,.35);color:#cbd5e1;font-size:clamp(.9rem,2.4vw,1.2rem);letter-spacing:4px}
.lv-grid .lv-card:not(.off){cursor:pointer}
.lv-tag{align-items:center}

/* real games in a small screen */
.lv-cv{position:relative}
.lv-ifr{position:absolute;left:0;top:0;transform-origin:0 0;border:0;background:#000;pointer-events:none;display:block;max-width:none}
.lv-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.lv-card.off .lv-poster{filter:grayscale(.6) brightness(.5)}
.lv-card.xl{position:fixed;z-index:9001;left:50%;top:50%;transform:translate(-50%,-50%) !important;width:min(96vw,1000px,calc((92vh - 170px)*var(--ga,1)));background:#0b1020;box-shadow:0 0 0 100vmax rgba(2,4,12,.85)}
.lv-card.xl .lv-cv{aspect-ratio:var(--ga,1)}
.lv-modal.frame .lv-box{visibility:hidden;height:0}
.lv-modal.frame .lv-back{z-index:9000}
.lv-xl-close,.lv-xl-play{display:none}
.lv-card.xl .lv-xl-close{display:flex;position:absolute;top:-14px;right:-6px;z-index:3;width:34px;height:34px;border-radius:50%;border:0;background:#e11d48;color:#fff;font:700 1.4rem/1 Inter,sans-serif;cursor:pointer;align-items:center;justify-content:center}
.lv-card.xl .lv-xl-play{display:inline-flex;align-self:center;justify-content:center}
