* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #070708; overflow: hidden; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #eee; }
canvas#game { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }

#menu { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; pointer-events: none; }
#menu.show { display: flex; background: radial-gradient(ellipse at center, rgba(0,0,0,0.35), rgba(0,0,0,0.75)); }
.panel { pointer-events: auto; width: min(560px, 92vw); max-height: 92vh; overflow-y: auto; padding: 28px 30px 24px; background: rgba(12,10,12,0.86); border: 1px solid rgba(255,60,60,0.35); border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.6) inset; scrollbar-width: thin; scrollbar-color: #5a1a1a transparent; }
.panel.wide { width: min(760px, 94vw); }
.panel h1 { margin: 0 0 4px; font: 400 54px/1 Impact, 'Arial Black', sans-serif; letter-spacing: 2px; color: #fff; text-shadow: 0 3px 0 #000, 0 0 30px rgba(255,0,0,0.35); }
.panel h1 span { color: #e01b24; margin-left: 10px; }
.panel .sub { color: #b9b9b9; margin-bottom: 18px; font-size: 14px; }
.items { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 4px; background: rgba(255,255,255,0.035); border-left: 3px solid transparent; cursor: pointer; font-size: 17px; transition: background 0.08s; user-select: none; }
.item small { display: block; color: #8b8b8b; font-size: 12px; margin-top: 2px; }
.item.btn { flex-direction: column; align-items: flex-start; gap: 0; font: 400 22px Impact, 'Arial Black', sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.item.btn small { font-family: system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
.item.big { font-size: 30px; text-align: center; align-items: center; background: rgba(224,27,36,0.18); }
.item.focus { background: rgba(224,27,36,0.32); border-left-color: #ff3b3b; }
.item .val { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; white-space: nowrap; }
.item .val a { color: #ff5a5a; opacity: 0.6; padding: 0 4px; }
.item.focus .val a { opacity: 1; }
.item .on { color: #6dff8a; } .item .off { color: #ff6060; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid #000; }
.hdr { margin: 14px 0 2px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #ff6a6a; }
table.ctl { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
table.ctl th { text-align: left; color: #ff6a6a; font-weight: 600; padding: 6px; border-bottom: 1px solid #333; }
table.ctl td { padding: 6px; border-bottom: 1px solid #1f1f1f; color: #ddd; }
table.ctl td:first-child { color: #9a9a9a; }
.tip { color: #aaa; font-size: 13px; line-height: 1.5; }
.tip b { color: #fff; }

#toasts { position: fixed; top: 90px; right: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; z-index: 10; }
.toast { background: rgba(10,10,10,0.88); border-left: 4px solid #fff; padding: 10px 16px; font-size: 16px; border-radius: 3px; animation: tin 0.18s ease-out; transition: opacity 0.4s, transform 0.4s; }
.toast.out { opacity: 0; transform: translateX(30px); }
@keyframes tin { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
#age { position: fixed; left: 12px; bottom: 8px; font-size: 11px; color: rgba(255,255,255,0.3); pointer-events: none; }

.mv { margin: 18px 0 4px; font: 400 18px Impact, 'Arial Black', sans-serif; letter-spacing: 1px; color: #ff6a6a; }
table.moves td { font-size: 13px; }
.note { color: #9a9a9a; font-size: 12.5px; padding: 2px 14px 6px; line-height: 1.4; }
