[hidden] { display: none !important; }
:root { --ink: #1d2433; --card: #ffffffee; --accent: #e4572e; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #6fa287; font: 15px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); }
canvas { display: block; touch-action: none; }
#hud { position: fixed; top: 12px; left: 12px; right: 12px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; pointer-events: none; }
#hud > * { background: var(--card); border-radius: 12px; padding: 8px 12px; box-shadow: 0 2px 10px #0002; pointer-events: auto; }
.ficha { display: flex; gap: 10px; align-items: center; } .ficha i { width: 14px; height: 14px; border-radius: 50%; display: block; }
.ficha small, .tokens small { display: block; color: #667; font-size: 12px; } .tokens span { font-weight: 700; font-size: 18px; }
#b-kart { border: 0; font: inherit; font-weight: 700; background: var(--accent); color: #fff; cursor: pointer; }
#alta { position: fixed; inset: 0; display: grid; place-items: center; background: #1d243399; padding: 16px; }
#alta form { background: #fff; border-radius: 16px; padding: 24px; width: 100%; max-width: 360px; display: grid; gap: 10px; }
#alta h1 { margin: 0; } #alta input, #alta button { font: inherit; padding: 12px; border-radius: 10px; border: 1px solid #ccd; }
#alta button { background: var(--accent); color: #fff; border: 0; font-weight: 700; cursor: pointer; }
.err { color: #c62828; min-height: 1em; margin: 0; } .nota { color: #667; font-size: 12px; margin: 0; }
#aviso { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; }
