@font-face { font-family: 'Luckiest Guy'; src: url('./assets/luckiest-guy-v25-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; src: url('./assets/nunito-v32-latin-regular.woff2') format('woff2'); }

:root { --bg-dark: #0B0E14; --neon-blue: #00E5FF; --neon-red: #FF0055; --neon-green: #00FF87; --neon-gold: #FFD700; }
* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; touch-action: manipulation;}
body { font-family: 'Nunito', sans-serif; background: var(--bg-dark); color: white; overflow: hidden; width: 100vw; height: 100dvh; overscroll-behavior: none;}
h1, h2, h3, .luckiest { font-family: 'Luckiest Guy', cursive; letter-spacing: 2px; }
.hidden { display: none !important; } .hidden-ui { display: none; }

/* Fixed Inputs (High Readability) */
input[type="text"], input[type="password"] {
    width: 85%; max-width: 400px; padding: 15px; font-family: 'Nunito', sans-serif; font-size: 1.5rem; font-weight: 800; letter-spacing: 1px;
    border-radius: 8px; border: 2px solid var(--neon-blue); background: rgba(0,0,0,0.5); color: white;
    text-align: center; margin-bottom: 15px; outline: none; transition: 0.3s; flex-shrink: 0;
}
input[type="text"]:focus, input[type="password"]:focus { box-shadow: 0 0 15px var(--neon-blue); }

/* Buttons */
.btn { font-family: 'Luckiest Guy'; font-size: 1.2rem; padding: 15px; border-radius: 8px; border: none; cursor: pointer; text-transform: uppercase; width: 100%; max-width: 400px; margin-bottom: 10px; transition: 0.2s; letter-spacing: 1px; flex-shrink: 0;}
.btn:active { transform: scale(0.95); }
.btn-blue { background: var(--neon-blue); color: black; box-shadow: 0 0 15px rgba(0,229,255,0.4); }
.btn-red { background: var(--neon-red); color: white; box-shadow: 0 0 15px rgba(255,0,85,0.4); }
.btn-green { background: var(--neon-green); color: black; box-shadow: 0 0 15px rgba(0,255,135,0.4); }
.btn-gold { background: var(--neon-gold); color: black; box-shadow: 0 0 15px rgba(255,215,0,0.4); }

/* Mobile Wrapper */
.mobile-wrapper { height: 100dvh; width: 100vw; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2dvh 4vw; padding-bottom: max(2dvh, env(safe-area-inset-bottom, 2dvh)); box-sizing: border-box; min-width: 0; min-height: 0;}

/* Buzzer Button */
.buzzer-btn { width: clamp(200px, 60vw, 250px); height: clamp(200px, 60vw, 250px); border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ff4d4d, #cc0000); border: 15px solid #800000; color: white; font-family: 'Luckiest Guy'; font-size: 4rem; cursor: pointer; box-shadow: 0 20px 0 #4d0000, 0 30px 20px rgba(0,0,0,0.8); transition: transform 0.1s, box-shadow 0.1s; margin-top: 5vh; flex-shrink: 0;}
.buzzer-btn:active { transform: translateY(20px); box-shadow: 0 0px 0 #4d0000, 0 10px 10px rgba(0,0,0,0.8); background: radial-gradient(circle at 30% 30%, #cc0000, #990000); }

/* Host Step-by-Step Wizard */
.host-step { display: none; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; text-align: center; }
.host-step.active { display: flex; animation: fadeIn 0.3s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* TV Authentic Elements */
.golden-layout { display: flex; height: 100%; width: 100%; }
.sidebar { flex: 0 0 300px; padding: 20px; border-right: 4px solid var(--neon-blue); display: flex; flex-direction: column; background: rgba(0,0,0,0.5); }
.main-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }

.round-bank { font-family: 'Luckiest Guy'; font-size: 4rem; color: yellow; background: #000; padding: 5px 30px; border: 4px solid #FF8C00; border-radius: 20px; margin-bottom: 10px; text-shadow: 2px 2px 0 #333; }
.tv-board { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; width: 100%; max-width: 900px; background: #001f3f; padding: 20px; border-radius: 20px; border: 8px solid #FF8C00; box-shadow: 0 0 30px rgba(0,0,0,0.8) inset; }
.tv-card { height: 70px; background: linear-gradient(to bottom, #0052cc, #003380); border: 3px solid #FF8C00; border-radius: 40px; display: flex; align-items: center; justify-content: center; font-family: 'Luckiest Guy'; font-size: 2rem; color: #fff; text-shadow: 2px 2px 0 #000; transition: transform 0.6s; transform-style: preserve-3d; }
.tv-card .front, .tv-card .back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; align-items: center; justify-content: space-between; padding: 0 25px; border-radius: 40px; }
.tv-card .front { justify-content: center; background: linear-gradient(to bottom, #0052cc, #003380); }
.tv-card .back { background: linear-gradient(to bottom, #111, #333); transform: rotateX(180deg); }
.tv-card.revealed { transform: rotateX(180deg); }
.tv-card.revealed .pts { background: #0052cc; border-left: 3px solid #FF8C00; height: 100%; display: flex; align-items: center; padding: 0 20px; border-radius: 0 35px 35px 0; margin-right: -25px; color: yellow; }

/* ORIENTATION LOCKS & WARNINGS */
.orientation-warning { position: fixed; inset: 0; background: var(--bg-dark); z-index: 99999; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.orientation-warning h1 { font-size: 5rem; margin: 0 0 20px 0; }
.orientation-warning h2 { font-size: 2rem; color: var(--neon-gold); font-family: 'Luckiest Guy', cursive; }

@media (orientation: portrait) { body.host-client #landscape-warning { display: flex !important; } body.host-client .host-ui-wrap, body.host-client .golden-layout { display: none !important; } }
