.mj-root{--mj-ink:#e4e4e4;--mj-muted:#8a8aa0;--mj-gold:#ffc82c;--mj-hp:#ff416c;--mj-sp:#4169e1;min-height:100dvh;padding:1.1rem 1rem calc(4.6rem + env(safe-area-inset-bottom,0px));color:var(--mj-ink);background:#121220;font-family:Segoe UI,Sarabun,system-ui,sans-serif}.mj-kicker{letter-spacing:.2em;text-transform:uppercase;color:var(--mj-gold);margin:0;font-size:.68rem;font-weight:800}.mj-title{color:var(--mj-gold);letter-spacing:.04em;margin:.35rem 0 0;font-size:clamp(1.8rem,7vw,2.8rem)}.mj-play-title{margin:.2rem 0 0;font-size:1.2rem}.mj-lead{color:#bbb;max-width:36rem;line-height:1.5}.mj-setup{max-width:44rem;margin:1.2rem auto 0}.mj-setup h2{margin:1.2rem 0 .6rem;font-size:1rem}.mj-setup h2.is-dim,.mj-heroes.is-dim{opacity:.35;pointer-events:none}.mj-heroes{grid-template-columns:repeat(3,1fr);gap:.6rem;display:grid}.mj-hero,.mj-btn,.mj-card{appearance:none;font:inherit;cursor:pointer}.mj-hero{color:var(--mj-ink);text-align:center;background:#2a2a40;border:2px solid #444;border-radius:.8rem;gap:.25rem;padding:.9rem .6rem;display:grid}.mj-hero.is-brawler{border-color:#ff4d4d}.mj-hero.is-controller{border-color:#00d2ff}.mj-hero.is-spellcaster{border-color:gold}.mj-hero.is-on{border-width:3px;transform:scale(1.04)}.mj-hero span{color:var(--mj-muted);font-size:.75rem}.mj-btn{color:#fff;border:none;border-radius:999px;padding:.8rem 1.1rem;font-weight:800}.mj-btn:disabled{opacity:.4;cursor:not-allowed}.mj-btn-ghost{color:#ccc;background:0 0;border:2px solid #555;margin-top:1rem}.mj-btn-switch{background:#3d4a8a}.mj-btn-end{background:#c0392b}.mj-play{gap:.7rem;max-width:46rem;margin:0 auto;display:grid}.mj-header{justify-content:space-between;align-items:flex-end;gap:.7rem;display:flex}.mj-header-actions{gap:.4rem;display:flex}.mj-hud{background:#1e1e2f;border:1px solid #2a2a35;border-radius:.8rem;padding:.7rem .8rem}.mj-hud-top{flex-wrap:wrap;align-items:baseline;gap:.45rem .8rem;margin-bottom:.4rem;display:flex}.mj-active{font-size:.82rem;font-weight:800}.mj-active.is-brawler{color:#ff4d4d}.mj-active.is-controller{color:#00d2ff}.mj-active.is-spellcaster{color:gold}.mj-reserve{color:var(--mj-muted);font-size:.75rem}.mj-bar-row{grid-template-columns:2rem 1fr 3.4rem;align-items:center;gap:.4rem;font-size:.78rem;display:grid}.mj-bar{background:#111;border-radius:999px;height:.55rem;overflow:hidden}.mj-bar__fill{height:100%}.mj-bar__fill.is-hp{background:var(--mj-hp)}.mj-bar__fill.is-sp{background:var(--mj-sp)}.mj-mana{flex-wrap:wrap;align-items:center;gap:.45rem;margin-top:.4rem;font-size:.78rem;display:flex}.mj-gems{gap:.2rem;display:flex}.mj-gems i{background:#333;border-radius:999px;width:.7rem;height:.7rem;display:block}.mj-gems i.is-on{background:#7dd3fc}.mj-piles{color:var(--mj-muted);margin-left:auto}.mj-log{background:#0f0f1a;border-radius:.6rem;min-height:4.6rem;max-height:6.5rem;padding:.5rem .7rem;font-size:.78rem;overflow:auto}.mj-log p{margin:0 0 .2rem}.mj-log .is-player{color:#68d391}.mj-log .is-ai{color:#fc8181}.mj-log .is-turn{color:var(--mj-gold)}.mj-hand{flex-wrap:wrap;justify-content:center;gap:.45rem;min-height:8rem;display:flex}.mj-card{width:7.2rem;min-height:8.4rem;color:var(--mj-ink);text-align:left;background:#252538;border:2px solid #444;border-radius:.55rem;flex-direction:column;gap:.25rem;padding:.45rem;display:flex}.mj-card.is-brawler{border-color:#ff4d4d}.mj-card.is-controller{border-color:#00d2ff}.mj-card.is-spellcaster{border-color:gold}.mj-card.is-neutral{border-color:#888}.mj-card.is-playable{cursor:pointer}.mj-card.is-off{opacity:.45}.mj-card.is-bottom{opacity:.55;border-style:dashed}.mj-card__cost{background:#555;border-radius:999px;align-self:flex-start;place-items:center;width:1.4rem;height:1.4rem;font-size:.75rem;font-weight:800;display:grid}.mj-card__name{font-size:.78rem;font-weight:800}.mj-card__text{color:#c8c8d8;flex:1;font-size:.62rem;line-height:1.3}.mj-card__type{color:var(--mj-muted);text-transform:uppercase;font-size:.58rem}.mj-controls{grid-template-columns:1fr 1fr;gap:.5rem;display:grid}.mj-modal{background:#1e1e2f;border:1px solid #333;border-radius:1rem;width:min(36rem,100%);max-height:min(84vh,42rem);padding:1.2rem;overflow:auto}.mj-modal h2{color:var(--mj-gold);margin:0 0 .5rem}.mj-help ul{padding-left:1.1rem}.mj-result{text-align:center}.mj-result.is-player h2{color:#68d391}.mj-result.is-ai h2{color:#fc8181}.mj-modal .mj-btn{width:100%;margin-top:.9rem}@media (max-width:640px){.mj-heroes{grid-template-columns:1fr}.mj-card{width:6.4rem;min-height:7.6rem}}
