*{box-sizing:border-box;margin:0;padding:0}
html,body{width:100%;height:100%;overflow:hidden;background:#0d2a12;font-family:Arial,"Helvetica Neue",sans-serif;color:#fff;
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;touch-action:none}
#app{position:fixed;left:0;top:0;right:0;bottom:0}
#cv{position:absolute;left:0;top:0;width:100%;height:100%;display:block}
[hidden]{display:none!important}

.hud{position:absolute;left:50%;top:8px;transform:translateX(-50%);background:rgba(10,30,14,.78);border-radius:12px;padding:6px 12px 5px;
  min-width:280px;max-width:96%;box-shadow:0 2px 10px rgba(0,0,0,.3)}
.hud-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.hud-t{display:flex;align-items:center;gap:6px;font-size:15px;min-width:0;flex:1}
.hud-t b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hud-r{justify-content:flex-end}
.hud-t img{width:28px;height:21px;border-radius:2px;flex:none;box-shadow:0 0 0 1px rgba(255,255,255,.35)}
.hud-score{font-size:22px;font-weight:700;letter-spacing:1px;flex:none}
.hud-dots{margin-top:4px;font-size:12px;color:#cfe8cf}
.hud-stage{flex:none;opacity:.85}
.dots{display:flex;gap:4px;flex:1}
.dots+.hud-stage+.dots{justify-content:flex-end}
.dot{width:12px;height:12px;border-radius:50%;border:2px solid rgba(255,255,255,.55)}
.dot.g{background:#43c463;border-color:#43c463}
.dot.m{background:#e0453a;border-color:#e0453a}

.tip{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);background:rgba(0,0,0,.6);padding:8px 14px;border-radius:18px;
  font-size:15px;white-space:nowrap;pointer-events:none}
.flash{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);font-size:44px;font-weight:900;letter-spacing:2px;
  text-shadow:0 3px 12px rgba(0,0,0,.6);pointer-events:none;white-space:nowrap}
.flash.good{color:#6cff8a}.flash.bad{color:#ff7466}
.pause-btn{position:absolute;right:10px;top:10px;width:40px;height:40px;border-radius:50%;border:0;background:rgba(0,0,0,.45);color:#fff;
  font-weight:700;font-size:15px;cursor:pointer}

.screen{position:absolute;left:0;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;
  background:rgba(6,22,9,.72);padding:12px}
.card{background:#12381a;border:1px solid #2e7d32;border-radius:16px;padding:22px 20px;width:100%;max-width:380px;text-align:center;
  box-shadow:0 8px 30px rgba(0,0,0,.45);max-height:100%;overflow:auto}
.card-wide{max-width:640px}
h1{font-size:32px;margin-bottom:6px}
h2{font-size:24px;margin-bottom:12px}
.sub{color:#cfe8cf;font-size:15px;line-height:1.4;margin-bottom:16px}
.btn{display:block;width:100%;border:0;border-radius:10px;background:#43a047;color:#fff;font-size:18px;font-weight:700;padding:13px 10px;
  margin:8px 0 0;cursor:pointer}
.btn:active{transform:translateY(1px)}
.btn-ghost{background:transparent;border:2px solid #4caf50;color:#dff3df;font-weight:600;font-size:16px;padding:10px}
.btn-rv{background:#f9a825;color:#1a1a1a}
.stats{margin-top:14px;font-size:14px;color:#b9d8b9;line-height:1.5}

.teams{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px;margin-bottom:10px}
.team{background:#0d2a12;border:2px solid #245f2a;border-radius:10px;padding:8px 4px;cursor:pointer;color:#fff;font-size:13px;line-height:1.2}
.team img{width:48px;height:36px;display:block;margin:0 auto 5px;border-radius:2px}
.team:hover,.team:focus{border-color:#6cff8a}
.team .tier{display:block;color:#f9d65c;font-size:11px;margin-top:2px;letter-spacing:1px}

.stage-l{color:#f9d65c;font-weight:700;font-size:16px;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px}
.vs{display:flex;align-items:center;justify-content:center;gap:12px;font-size:20px;font-weight:700;margin-bottom:12px}
.vs span{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0}
.vs img{width:56px;height:42px;border-radius:3px}
.vs i{font-style:normal;opacity:.6}
.bracket{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:6px 0 10px;font-size:11px;text-align:left}
.bk-col h4{font-size:11px;color:#9fc79f;margin-bottom:4px;text-align:center}
.bk-m{background:#0d2a12;border-radius:6px;padding:3px 5px;margin-bottom:4px}
.bk-m div{display:flex;align-items:center;gap:4px;white-space:nowrap;overflow:hidden}
.bk-m img{width:16px;height:12px;flex:none}
.bk-m .w{font-weight:700;color:#fff}.bk-m .l{color:#7fa37f}
.bk-m.me{outline:1px solid #f9d65c}
.res-score{font-size:34px;font-weight:900;margin-bottom:6px}
.rules p{text-align:left;font-size:15px;line-height:1.45;margin-bottom:10px;color:#e6f4e6}
@media (max-width:520px){.bracket{display:none}h1{font-size:28px}.hud{min-width:0;width:94%}.hud-t{font-size:13px}.hud-t img{width:22px;height:17px}.flash{font-size:34px}}
@media (max-height:440px){.card{padding:14px}.btn{padding:9px;font-size:16px}h1{font-size:24px}}
@media (max-height:480px){.hud{top:4px;padding:3px 10px 3px}.hud-score{font-size:18px}.hud-t{font-size:13px}.hud-t img{width:22px;height:17px}.dot{width:9px;height:9px}.hud-dots{margin-top:2px}.tip{bottom:6px;font-size:13px;padding:5px 10px}.flash{font-size:32px}}
@media (max-width:620px){.pause-btn{top:auto;bottom:10px;right:10px}}
