* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: #0f172a;
    color: #f8fafc;
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}
#app { display: flex; flex-direction: column; height: 100%; }
#game-header {
    background: #1e293b;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #334155;
}
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: bold;
}
.badge.warning { background: #eab308; color: #000; }
.badge.success { background: #22c55e; color: #fff; }
.badge.error { background: #ef4444; color: #fff; }

#game-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #090d16;
}
#gameCanvas {
    background: #111827;
    border: 2px solid #374151;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.5);
}
#invite-panel {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 2px solid #3b82f6;
    text-align: center;
    z-index: 10;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.7);
}
.room-code-box {
    font-size: 2rem;
    font-weight: 800;
    color: #60a5fa;
    margin: 1rem 0;
    letter-spacing: 0.2rem;
}
.qrcode-container {
    background: #fff;
    padding: 1rem;
    display: inline-block;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}
.hidden { display: none !important; }
#debug-panel {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    border: 1px solid #4b5563;
    padding: 10px;
    font-family: monospace;
    font-size: 12px;
    max-height: 150px;
    overflow-y: auto;
    width: 350px;
    pointer-events: none;
}