:root { --bg: #0b1120; --surface: #1e293b; --accent: #38bdf8; --text: #f1f5f9; }
* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; -webkit-tap-highlight-color: transparent; }

body { 
    font-family: sans-serif; background: var(--bg); color: var(--text); 
    height: 100vh; overflow: hidden; display: flex; justify-content: center; 
}

.game-container { 
    width: 100%; max-width: 400px; height: 100%; 
    display: flex; flex-direction: column; padding: 10px 15px;
}

.top-bar { padding: 10px 0; }
.score-row { display: flex; justify-content: space-between; align-items: center; }
.logo-text { font-weight: 900; color: var(--accent); letter-spacing: 2px; }
.badge { background: var(--surface); padding: 8px 12px; border-radius: 10px; font-weight: bold; }

.play-zone { 
    flex: 1; display: flex; flex-direction: column; 
    justify-content: center; align-items: center; position: relative; 
}

.main-card {
    width: 280px; height: 360px; background: var(--surface); 
    border-radius: 25px; border: 4px solid var(--accent); 
    padding: 20px; display: none; flex-direction: column; 
    align-items: center; justify-content: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5); position: relative;
}

#main-word { font-size: 1.7rem; color: var(--accent); margin-bottom: 15px; text-align: center; }
.sep { width: 40px; height: 3px; background: var(--accent); margin-bottom: 15px; opacity: 0.3; }
#forbidden-words li { list-style: none; font-size: 1.1rem; color: #fb923c; margin: 6px 0; font-weight: 700; }

.btn { 
    width: 250px; padding: 16px; border-radius: 15px; border: none; 
    background: var(--accent); color: var(--bg); font-size: 1rem; 
    font-weight: 800; cursor: pointer; margin-top: 20px;
}

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.95); display: none; justify-content: center; align-items: center; z-index: 2000; }
.modal-card { background: var(--surface); padding: 25px; border-radius: 25px; width: 85%; max-width: 320px; text-align: center; border: 1px solid var(--accent); }
.score-circle { width: 80px; height: 80px; border-radius: 50%; border: 4px solid #22c55e; display: flex; justify-content: center; align-items: center; margin: 15px auto; font-size: 2.2rem; color: #22c55e; font-weight: 900; }

#loader { position: fixed; inset: 0; background: var(--bg); display: flex; justify-content: center; align-items: center; z-index: 3000; }
.spinner { width: 30px; height: 30px; border: 3px solid rgba(56,189,248,0.1); border-top-color: var(--accent); border-radius: 50%; animation: s 0.8s linear infinite; }
@keyframes s { 100% { transform: rotate(360deg); } }