* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #05060f; color: #eef; font-family: "Trebuchet MS", Verdana, sans-serif; }
body { display: flex; align-items: center; justify-content: center; }
#frame { position: relative; width: 960px; height: 540px; box-shadow: 0 0 40px #3a2a8a; border-radius: 6px; overflow: hidden; }
canvas { display: block; width: 960px; height: 540px; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(6, 8, 30, 0.82); text-align: center; padding: 14px; }
.hidden { display: none !important; }
h1 { margin: 0; font-size: 52px; letter-spacing: 4px; color: #ffe15a; text-shadow: 4px 4px 0 #c2185b, 8px 8px 0 #2a1a6a; }
h2 { margin: 0 0 6px; font-size: 17px; color: #7cf3ff; }
.tag { margin: 0; color: #cfd8ff; }
.cols { display: flex; gap: 12px; align-items: stretch; }
.panel { background: rgba(255,255,255,0.07); border: 1px solid rgba(124,243,255,0.3); border-radius: 8px; padding: 10px 12px; text-align: left; font-size: 13px; width: 300px; }
.cols.two .panel { width: 290px; }
.instructions { margin: 0; padding-left: 18px; }
.instructions li { margin-bottom: 4px; }
.keys td { padding: 2px 4px; vertical-align: top; }
kbd { display: inline-block; min-width: 18px; padding: 1px 4px; margin: 0 1px; border-radius: 4px; background: #2a2f55; border-bottom: 2px solid #111; font-size: 11px; text-align: center; }
.scores { margin: 0; padding-left: 24px; min-height: 40px; }
.scores li { display: flex; justify-content: space-between; gap: 8px; }
.scores li span:last-child { color: #ffe15a; }
.small { font-size: 12px; color: #aab; margin: 2px 0; min-height: 14px; }
.stats { font-size: 20px; margin: 0; }
.row { display: flex; gap: 8px; justify-content: center; }
button { font: inherit; cursor: pointer; border: none; border-radius: 6px; padding: 7px 14px; background: #7cf3ff; color: #05060f; font-weight: bold; }
button:hover { filter: brightness(1.15); }
button:disabled { opacity: 0.5; cursor: default; }
button.big { font-size: 20px; padding: 10px 28px; background: #ffe15a; }
button.alt { background: #7cf3ff; }
button.corner { position: absolute; right: 8px; bottom: 8px; font-size: 12px; padding: 4px 8px; background: rgba(255,255,255,0.15); color: #fff; }
input { font: inherit; padding: 6px 8px; border-radius: 6px; border: 2px solid #7cf3ff; background: #0b1030; color: #fff; width: 200px; }
label { font-size: 13px; display: block; margin-bottom: 4px; }
.ok { color: #7dff9a; } .err { color: #ff8a8a; }
.keys td:first-child { white-space: nowrap; }

/* Fighter select (title screen). */
#screen-title { gap: 6px; }
#screen-title h1 { font-size: 40px; }
#screen-title .panel { font-size: 12px; padding: 8px 10px; }
#screen-title .instructions li { margin-bottom: 2px; }
.fighters { display: flex; gap: 8px; justify-content: center; }
.fighter { display: flex; align-items: center; gap: 6px; width: 246px; padding: 4px 8px; text-align: left; background: rgba(255,255,255,0.07); color: #eef; border: 2px solid rgba(124,243,255,0.25); font-weight: normal; }
.fighter[aria-checked="true"] { border-color: #ffe15a; background: rgba(255,225,90,0.14); }
.fighter canvas { width: 44px; height: 58px; flex: none; }
.fighter b { display: block; font-size: 14px; color: #ffe15a; }
.fighter .moves, .fighter .bars { display: block; font-size: 11px; color: #cfd8ff; }
