*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{width:100%;height:100%;overflow:hidden;background:#1b2340;touch-action:none;user-select:none;-webkit-user-select:none;
  font-family:"Trebuchet MS","Arial Rounded MT Bold",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#1b2340}
canvas{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none}
button{font:inherit;cursor:pointer;border:0;color:inherit}
.panel{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:10px;z-index:5;background:rgba(27,35,64,.35)}
.panel.show{display:flex}
#free{background:rgba(27,35,64,.7)}
.menuCard{position:relative;width:min(470px,100%);max-height:100%;overflow:auto;background:#fffdf6;border:4px solid #1b2340;border-radius:22px;
  padding:12px 16px 12px;text-align:center;box-shadow:0 7px 0 #1b2340,0 18px 40px rgba(0,0,0,.35);
  background-image:linear-gradient(90deg,rgba(255,77,77,.13) 0 50%,rgba(46,139,255,.13) 50% 100%)}
h1{font-size:38px;line-height:1.05;font-weight:900;color:#ffd84a;letter-spacing:.3px;
  text-shadow:3px 3px 0 #1b2340,-2px 2px 0 #1b2340,2px -2px 0 #1b2340,-2px -2px 0 #1b2340,0 6px 0 #1b2340}
.sub{display:inline-block;font-size:17px;font-weight:900;color:#fff;background:#14b8a6;border:3px solid #1b2340;border-radius:12px;
  padding:1px 12px;margin:6px 0 8px;transform:rotate(-2deg)}
h2{font-size:26px;font-weight:900;margin-bottom:10px}
.vs{display:flex;align-items:center;justify-content:center;gap:6px}
.pick{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px}
.tag{font-weight:900;font-size:13px;color:#fff;border-radius:9px;padding:1px 9px;border:2px solid #1b2340}
.p1 .tag{background:#ff4d4d}.p2 .tag{background:#2e8bff}
.ava{width:108px;height:108px;border-radius:24px;border:4px solid #1b2340;overflow:hidden;background:#ffd0cc;display:grid;place-items:center;
  box-shadow:0 4px 0 #1b2340;transform:rotate(-3deg)}
.p2 .ava{background:#cfe5ff;transform:rotate(3deg)}
.ava img{width:100%;height:100%;object-fit:contain;object-position:50% 100%;padding-top:4px}
.nm{font-weight:900;font-size:16px;min-width:76px}
.row{display:flex;gap:4px;align-items:center}
.arr{width:32px;height:30px;border-radius:9px;background:#fff;border:3px solid #1b2340;font-size:12px;box-shadow:0 3px 0 #1b2340}
.x{font-size:30px;font-weight:900;color:#ffd84a;text-shadow:2px 2px 0 #1b2340,-2px -2px 0 #1b2340,2px -2px 0 #1b2340,-2px 2px 0 #1b2340}
.big{display:block;width:100%;margin:10px 0 6px;padding:13px 0;font-size:32px;font-weight:900;color:#fff;border-radius:18px;
  background:linear-gradient(#ffb23f,#ff7a1a);border:4px solid #1b2340;box-shadow:0 6px 0 #1b2340;letter-spacing:2px;
  text-shadow:0 3px 0 #1b2340}
.big:active{transform:translateY(4px);box-shadow:0 2px 0 #1b2340}
.small{margin-top:10px;padding:8px 22px;font-size:17px;font-weight:900;border-radius:14px;background:#fff;border:3px solid #1b2340;box-shadow:0 3px 0 #1b2340}
.opts{margin-top:10px;display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}
.opt{padding:6px 10px;border-radius:12px;background:#fff;border:3px solid #1b2340;font-weight:900;font-size:14px}
.opt.sel{background:#ffd84a}
.opt.free{background:#c9f3ee}
.keys{display:flex;gap:8px;justify-content:center;margin-top:2px;flex-wrap:wrap}
.kp{display:flex;align-items:center;gap:3px;padding:4px 8px;border-radius:12px;border:2px solid #1b2340}
.k1{background:#ffd0cc}.k2{background:#cfe5ff}
.kp.off{opacity:.35}
.kp b{margin-right:4px;font-size:13px}
.k{display:inline-grid;place-items:center;min-width:24px;height:24px;border-radius:6px;background:#fff;border:2px solid #1b2340;
  box-shadow:0 2px 0 #1b2340;font-weight:900;font-size:13px}
.touch{font-size:13px;font-weight:700;margin-top:7px}
.intro{font-size:12.5px;line-height:1.35;margin-top:6px;color:#45506e}
#duelGrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.dbtn{display:flex;align-items:center;gap:8px;padding:10px 8px;border-radius:14px;background:#fff;border:3px solid #1b2340;
  box-shadow:0 3px 0 #1b2340;font-weight:900;font-size:15px;text-align:left}
.dbtn i{font-style:normal;font-size:24px}
#hudBtns{position:fixed;z-index:6;display:flex;gap:6px;top:8px;right:8px}
#btnHome.hide{display:none}
.round{width:38px;height:38px;border-radius:50%;background:#fff;border:3px solid #1b2340;display:grid;place-items:center;box-shadow:0 3px 0 #1b2340;padding:0}
.round svg{width:20px;height:20px;fill:none;stroke:#1b2340;stroke-width:2.4;stroke-linejoin:round;stroke-linecap:round}
#btnHome svg path{fill:#1b2340;stroke:none}
#btnMute .off{display:none}#btnMute.muted .on{display:none}#btnMute.muted .off{display:inline}
#btnMute path{fill:none}
@media (max-height:660px){h1{font-size:30px}.ava{width:84px;height:84px}.big{padding:9px 0;font-size:26px;margin:8px 0 5px}.intro{display:none}}
@media (max-height:500px){.menuCard{padding:7px 12px;width:min(600px,100%)}h1{font-size:26px}.sub{font-size:14px;margin:2px 0 4px}.tag{display:none}
  .ava{width:62px;height:62px;border-width:3px;border-radius:16px}.nm{font-size:14px}.arr{height:26px}.big{padding:6px 0;font-size:24px;margin:6px 0}
  .keys{margin-top:4px}.touch{display:none}}
