html, body { margin: 0; height: 100%; background: #0d0f0a; overflow: hidden; color: #f2efe2;
  font-family: system-ui, "Segoe UI", Roboto, Ubuntu, sans-serif; }
body { display: flex; align-items: center; justify-content: center; }
canvas { width: min(100vw, calc(100vh * 16 / 9)); height: auto; aspect-ratio: 16 / 9; display: block;
  touch-action: none; user-select: none; }
.hidden { display: none !important; }

.overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 10, 6, .72); backdrop-filter: blur(3px); }
.card { width: min(420px, 90vw); box-sizing: border-box; background: #1a1d15; border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px; padding: 28px 28px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
h1 { margin: 0; font-size: 44px; font-weight: 900; color: #ffe08a; line-height: 1.05; }
.sub { margin: 6px 0 22px; color: #cfc9a8; }
label { display: block; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .7); margin-bottom: 14px; }
input { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 12px 14px; font-size: 16px;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, .18); background: #0f110c; color: #fff; outline: none; }
input:focus { border-color: #e0b84a; }
button { font: inherit; font-weight: 800; font-size: 16px; padding: 12px 16px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .1); color: #fff; }
button:hover { background: rgba(255, 255, 255, .18); }
button:disabled { opacity: .5; cursor: default; }
button.primary { width: 100%; background: #e0b84a; color: #1d1a10; border-color: #fff1b8; }
button.primary:hover { background: #f6d266; }
.or { text-align: center; font-size: 13px; color: rgba(255, 255, 255, .55); margin: 18px 0 10px; }
.row { display: flex; gap: 8px; }
.row input { margin: 0; text-transform: uppercase; letter-spacing: 6px; font-weight: 800; text-align: center; }
.row button { flex: none; }
.error { min-height: 20px; color: #ff8a70; font-size: 14px; margin: 12px 0 0; }
.help { font-size: 12px; color: rgba(255, 255, 255, .45); margin: 10px 0 0; line-height: 1.5; }

#roombar { position: fixed; left: 12px; bottom: 12px; display: flex; gap: 8px; align-items: center; font-size: 14px;
  background: rgba(12, 14, 10, .78); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; padding: 6px 8px 6px 12px; }
#roombar b { color: #ffe08a; letter-spacing: 3px; }
#roombar span { user-select: none; }
#roombar button { font-size: 13px; padding: 6px 10px; }

input.code { text-transform: uppercase; letter-spacing: 4px; font-weight: 800; text-align: center; }
.codebox { margin: 0 0 18px; padding: 14px; border-radius: 10px; background: #0f110c; border: 1px dashed rgba(255, 224, 138, .5);
  text-align: center; font-size: 15px; color: rgba(255, 255, 255, .6); }
.codebox b { display: block; font-size: 30px; letter-spacing: 5px; color: #ffe08a; margin-bottom: 4px; }
.admin-actions { margin-top: 10px; }
.admin-actions button, .admin-actions a { flex: 1; font-size: 14px; padding: 10px; }
.admin-actions a { display: flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 800;
  color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .1); }
.admin-actions a:hover { background: rgba(255, 255, 255, .18); }
