* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --correct: #10b981;
    --correct-dark: #059669;
    --wrong: #EF4444;
    --wrong-dark: #DC2626;
    --skip: #F59E0B;
    --skip-dark: #D97706;
    --bg: #0a0e1a;
    --card-bg: rgba(30,34,51,.8);
    --surface: rgba(20,24,41,.6);
    --text: #e2e8f0;
    --text-dim: #64748b;
}

html { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #0a0e1a;
    color: #e2e8f0;
    min-height: 100dvh;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* Hub topbar */
.hub-topbar{position:sticky;top:0;z-index:100;background:rgba(10,14,26,.88);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.06);padding:10px 16px}
.hub-home{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:#a78bfa;font-size:.8rem;font-weight:700;letter-spacing:2px;transition:opacity .2s}
.hub-home:active{opacity:.7}
.hub-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;background:linear-gradient(135deg,#7c3aed,#3b82f6);border-radius:6px;font-size:.65rem;color:#fff}
body:has(#game-screen.active) .hub-topbar,body:has(#ol-game-describer.active) .hub-topbar,body:has(#ol-game-opponent.active) .hub-topbar,body:has(#ol-game-teammate.active) .hub-topbar{display:none}

.screen { display: none; min-height: 100dvh; padding: 20px; }
.screen.active { display: flex; align-items: center; justify-content: center; }

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(20,24,41,.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(124,58,237,.15);
    color: white;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 2000;
    transition: transform 0.3s;
    white-space: nowrap;
}
.toast.visible { transform: translateX(-50%) translateY(0); }

/* Version Tag */
.version-tag {
    position: fixed;
    bottom: 4px;
    right: 8px;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.15);
    z-index: 1;
}

/* Menu */
.menu-container { width: 100%; max-width: 400px; text-align: center; }

.game-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 12px;
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.subtitle { color: #64748b; font-size: 0.9rem; margin-bottom: 32px; }

.settings-box {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.setting-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.setting-row:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.06); }
.setting-row label { font-size: 0.95rem; color: var(--text-dim); }

.team-name-input {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 8px 12px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    width: 140px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}
.team-name-input:focus { border-color: rgba(124,58,237,.5); }

.team-label { font-weight: 700 !important; font-size: 0.9rem !important; padding: 4px 10px; border-radius: 8px; }

.stepper { display: flex; align-items: center; gap: 12px; }
.stepper span { font-size: 1.2rem; font-weight: 700; min-width: 36px; text-align: center; }

.stepper-btn {
    width: 42px; height: 42px; border-radius: 50%; border: 2px solid #a78bfa;
    background: transparent; color: #a78bfa; font-size: 1.4rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.stepper-btn:active { background: #7c3aed; color: white; transform: scale(0.9); }

.btn-primary {
    width: 100%; padding: 16px; border: none; border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    box-shadow: 0 4px 16px rgba(124,58,237,.3);
    color: white; font-size: 1.1rem; font-weight: 700; letter-spacing: 2px;
    cursor: pointer; transition: transform 0.15s, opacity 0.15s, box-shadow 0.2s;
}
.btn-primary:active { transform: scale(0.97); opacity: 0.9; }
.btn-primary:disabled { opacity: 0.4; }

/* Mode Buttons */
.mode-btn { margin-bottom: 16px; }
.online-btn { background: linear-gradient(135deg, #60a5fa, #3b82f6); box-shadow: 0 4px 16px rgba(59,130,246,.3); }

.topbar-back { text-align: left; margin-bottom: 16px; }

.or-divider {
    color: var(--text-dim); font-size: 0.9rem; margin: 16px 0;
    display: flex; align-items: center; gap: 16px;
}
.or-divider::before, .or-divider::after {
    content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.06);
}

/* Turn Screen */
.turn-container { width: 100%; max-width: 400px; text-align: center; }

.turn-team-badge {
    display: inline-block; padding: 10px 32px; border-radius: 50px;
    font-size: 1.5rem; font-weight: 800; margin-bottom: 16px; letter-spacing: 1px;
}

.turn-info { color: var(--text-dim); margin-bottom: 8px; font-size: 1rem; }
.turn-round { color: var(--text-dim); margin-bottom: 16px; font-size: 0.9rem; }
.turn-wait { color: var(--text-dim); font-size: 1rem; margin-top: 16px; }

/* Scoreboard */
.scoreboard {
    background: rgba(20,24,41,.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 24px;
}
.score-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.score-row:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.06); }
.score-team-name { font-weight: 600; font-size: 0.95rem; }
.score-value { font-weight: 800; font-size: 1.1rem; }

/* Game Screen */
.game-topbar { display: flex; justify-content: flex-end; padding: 0 0 4px; align-items: center; }

.btn-quit {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,.08);
    color: var(--text-dim);
    font-size: 0.8rem; font-weight: 600; padding: 6px 14px; border-radius: 20px; cursor: pointer;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-quit:active { background: rgba(239, 68, 68, 0.3); color: var(--wrong); }

.game-header { display: flex; justify-content: space-between; align-items: center; padding: 4px 0 12px; }

.team-indicator { font-size: 1.1rem; font-weight: 700; padding: 8px 18px; border-radius: 20px; }

.timer { font-size: 2.8rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.timer.warning { color: var(--wrong); animation: pulse 0.5s ease-in-out infinite; }
.big-timer { font-size: 5rem; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.score-display { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.correct-count { font-size: 1.6rem; font-weight: 800; color: var(--correct); }
.skip-count { font-size: 1rem; color: var(--text-dim); }

/* Card */
.card-area { flex: 1; display: flex; align-items: center; justify-content: center; padding: 12px 0; }
#game-screen.active, #ol-game-describer.active, #ol-game-opponent.active { flex-direction: column; }

.tabu-card {
    width: 100%; max-width: 680px;
    background: rgba(30,34,51,.9);
    border-radius: 20px;
    padding: 32px; text-align: center;
    border: 2px solid rgba(124, 58, 237, 0.25);
    transition: transform 0.2s;
}
.tabu-card.flip { animation: cardFlip 0.3s ease; }
@keyframes cardFlip { 0% { transform: scale(0.9); opacity: 0.5; } 100% { transform: scale(1); opacity: 1; } }

.main-word {
    font-size: 3rem; font-weight: 900; letter-spacing: 4px; margin-bottom: 20px;
    color: var(--text); word-break: break-word;
}
.opponent-hidden { color: var(--text-dim); font-size: 4rem; }

.divider { height: 2px; background: linear-gradient(90deg, transparent, var(--wrong), transparent); margin-bottom: 16px; }

.taboo-words { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.taboo-words li {
    font-size: 1.8rem; font-weight: 700; color: var(--wrong);
    padding: 14px 12px; border-radius: 12px; background: rgba(239, 68, 68, 0.08);
}

.opponent-card { border-color: rgba(239, 68, 68, 0.3); }

/* Game Actions */
.game-actions {
    display: flex; gap: 14px; padding: 16px 0;
    padding-bottom: max(24px, calc(env(safe-area-inset-bottom) + 14px));
    margin-bottom: 10px;
}

.game-actions button {
    flex: 1; padding: 28px 16px; border: none; border-radius: 20px;
    font-size: 1.3rem; font-weight: 800; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    transition: transform 0.1s; color: white; min-height: 100px;
}
.game-actions button:active { transform: scale(0.93); }

.btn-icon { font-size: 2.8rem; font-weight: 900; }
.btn-correct { background: var(--correct); }
.btn-wrong { background: var(--wrong); }
.btn-skip { background: var(--skip); }
.btn-skip:disabled { opacity: 0.4; transform: none !important; }

.tabu-buzzer {
    width: 100%; min-height: 120px; font-size: 1.5rem;
    animation: buzzerPulse 2s ease-in-out infinite;
}
@keyframes buzzerPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 20px 10px rgba(239, 68, 68, 0.2); }
}

/* Round End */
.round-end-container { width: 100%; max-width: 400px; text-align: center; }

.round-team-name {
    font-size: 1.3rem; font-weight: 800; padding: 8px 24px;
    border-radius: 30px; display: inline-block; margin-bottom: 20px;
}

.round-stats { display: flex; justify-content: center; gap: 20px; margin-bottom: 16px; }

.stat {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 14px 20px; border-radius: 14px; background: var(--surface); min-width: 80px;
}
.stat-number { font-size: 2rem; font-weight: 900; }
.stat.correct .stat-number { color: var(--correct); }
.stat.wrong .stat-number { color: var(--wrong); }
.stat.skipped .stat-number { color: var(--skip); }
.stat-label { font-size: 0.8rem; color: var(--text-dim); }

.round-score-change { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; }

/* End Screen */
.end-container { width: 100%; max-width: 400px; text-align: center; }
.trophy { font-size: 4rem; margin-bottom: 8px; }
.winner-name {
    font-size: 2rem; font-weight: 900; padding: 8px 24px;
    border-radius: 30px; display: inline-block;
}
.winner-label { font-size: 1.1rem; color: var(--text-dim); margin: 8px 0 24px; }
.final-scoreboard {
    background: rgba(20,24,41,.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 24px;
}

/* Team Colors */
.team-0 { background: rgba(108, 60, 225, 0.2); color: #A78BFA; }
.team-1 { background: rgba(236, 72, 153, 0.2); color: #F472B6; }
.team-2 { background: rgba(34, 197, 94, 0.2); color: #4ADE80; }
.team-3 { background: rgba(245, 158, 11, 0.2); color: #FBBF24; }

.team-0-solid { background: #6C3CE1; color: white; }
.team-1-solid { background: #EC4899; color: white; }
.team-2-solid { background: #22C55E; color: white; }
.team-3-solid { background: #F59E0B; color: white; }

.team-0-border { border-color: #6C3CE1; }
.team-1-border { border-color: #EC4899; }
.team-2-border { border-color: #22C55E; }
.team-3-border { border-color: #F59E0B; }

/* ═══════════════════════════════════════
   ONLINE MOD STILLER
   ═══════════════════════════════════════ */

/* Lobby */
.ol-lobby-container { width: 100%; max-width: 500px; overflow-y: auto; max-height: 100dvh; }

.lobby-code-area {
    text-align: center; margin-bottom: 20px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.lobby-code-label { font-size: 0.85rem; color: var(--text-dim); }
.lobby-code {
    font-size: 2.5rem; font-weight: 900; letter-spacing: 8px;
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.ol-teams-area {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 12px; margin-bottom: 20px;
}

.ol-team-col {
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px; padding: 0;
    border: 1px solid rgba(255,255,255,.08); overflow: hidden;
}
.ol-team-header {
    padding: 10px; text-align: center; font-weight: 700; font-size: 0.95rem;
}
.ol-team-player {
    padding: 8px 12px; font-size: 0.9rem; color: var(--text);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.unassigned-col { grid-column: 1 / -1; }
.unassigned-header { background: rgba(124,58,237,.1); color: #94a3b8; }

.ol-team-select {
    grid-column: 1 / -1; display: flex; flex-wrap: wrap;
    gap: 8px; justify-content: center; padding: 12px 0;
}
.team-select-label {
    width: 100%; text-align: center; font-size: 0.85rem;
    color: var(--text-dim); margin-bottom: 4px;
}
.btn-team-select {
    padding: 10px 20px; border: none; border-radius: 12px;
    font-weight: 700; font-size: 0.9rem; cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
}
.btn-team-select:active { transform: scale(0.93); opacity: 0.9; }

.dot-offline {
    display: inline-block; width: 8px; height: 8px;
    border-radius: 50%; background: var(--wrong); margin-left: 4px;
    vertical-align: middle;
}

.btn-invite {
    width: 100%; padding: 12px; margin-bottom: 16px;
    background: rgba(124,58,237,.1); border: 1px solid rgba(124,58,237,.25);
    border-radius: 14px; color: #a78bfa; font-size: .9rem; font-weight: 600;
    cursor: pointer; transition: background .2s;
}
.btn-invite:active { background: rgba(124,58,237,.2); }

/* Online Role Badges */
.ol-role-badge {
    padding: 6px 16px; border-radius: 20px; font-size: 0.8rem;
    font-weight: 800; letter-spacing: 1px;
}
.describer-badge { background: var(--primary); color: white; }
.opponent-badge { background: var(--wrong); color: white; }
.teammate-badge { background: var(--correct); color: white; }

/* Teammate View */
#ol-game-teammate.active {
    flex-direction: column;
}
.teammate-view {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 16px; text-align: center;
    flex: 1; width: 100%;
}
.teammate-info { font-size: 1.3rem; font-weight: 700; color: var(--text); }
.teammate-hint { font-size: 1rem; color: var(--text-dim); }
.teammate-stats {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: var(--surface); padding: 16px 32px; border-radius: 16px;
}

/* Install Banner */
.install-banner {
    position: fixed; bottom: -200px; left: 0; right: 0;
    background: rgba(20,24,41,.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(124,58,237,.2);
    padding: 16px 20px; padding-bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 1000; transition: bottom 0.4s ease;
}
.install-banner.visible { bottom: 0; }

.install-content { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.install-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 900; color: white; flex-shrink: 0;
}
.install-text { display: flex; flex-direction: column; gap: 2px; }
.install-text strong { font-size: 0.95rem; color: var(--text); }
.install-text span { font-size: 0.8rem; color: var(--text-dim); }
.install-actions { display: flex; gap: 10px; }
.install-actions button {
    flex: 1; padding: 10px; border: none; border-radius: 10px;
    font-weight: 700; font-size: 0.9rem; cursor: pointer;
}
#install-btn {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    box-shadow: 0 4px 16px rgba(124,58,237,.3);
    color: white;
}
.install-dismiss {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--text-dim);
}

/* Resume Dialog */
.resume-dialog {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.7); z-index: 999;
    align-items: center; justify-content: center; padding: 20px;
}
.resume-dialog.visible { display: flex; }

/* Responsive - small phones */
@media (max-width: 360px) {
    .game-title { font-size: 3rem; letter-spacing: 8px; }
    .main-word { font-size: 2rem; }
    .taboo-words li { font-size: 1.2rem; padding: 8px; }
    .tabu-card { padding: 18px 14px; }
    .game-actions button { padding: 14px 8px; font-size: 1rem; min-height: 70px; }
    .btn-icon { font-size: 2rem; }
    .timer { font-size: 2.2rem; }
    .team-indicator { font-size: .9rem; padding: 6px 12px; }
    .btn-primary { padding: 14px; font-size: 1rem; }
    .lobby-code { font-size: 2rem; letter-spacing: 6px; }
}

/* Responsive - small height */
@media (max-height: 650px) {
    .main-word { font-size: 1.6rem; }
    .taboo-words li { font-size: 1rem; padding: 4px; }
    .tabu-card { padding: 16px 14px; }
    .game-actions button { padding: 10px 8px; min-height: 60px; }
    .btn-icon { font-size: 1.8rem; }
    .game-header { padding: 2px 0 6px; }
}

/* All game screens: always fit viewport */
#game-screen.active, #ol-game-describer.active, #ol-game-opponent.active, #ol-game-teammate.active {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    justify-content: flex-start;
}
.card-area { flex: 1; min-height: 0; overflow-y: auto; }
.game-actions { flex-shrink: 0; }
.game-header { flex-shrink: 0; }
.game-topbar { flex-shrink: 0; }

/* ═══════ ANIMATIONS ═══════ */
.screen.active { animation: screenIn .35s ease-out; }
@keyframes screenIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.tabu-card { animation: cardIn .3s ease-out; }
@keyframes cardIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }

.ol-team-col { animation: teamSlide .35s ease-out both; }
@keyframes teamSlide { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.score-row { animation: fadeSlide .3s ease-out both; }
.stat { animation: fadeSlide .3s ease-out both; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.result-player, .round-team-name, .winner-name { animation: resultPop .4s ease-out; }
@keyframes resultPop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }

.btn-primary, .btn-team-select, .game-actions button { transition: transform .12s, opacity .12s, box-shadow .2s; }

/* ═══════ PC / DESKTOP ═══════ */
@media (min-width: 768px) {
    .menu-container { max-width: 600px; }
    .turn-container { max-width: 600px; }
    .round-end-container { max-width: 600px; }
    .end-container { max-width: 600px; }
    .ol-lobby-container { max-width: 750px; }

    .game-title { font-size: 5.5rem; letter-spacing: 16px; }
    .subtitle { font-size: 1.1rem; margin-bottom: 40px; }

    .btn-primary { padding: 20px; font-size: 1.2rem; border-radius: 16px; }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(124,58,237,.4); }
    .mode-btn { margin-bottom: 20px; }

    .settings-box { padding: 28px; border-radius: 20px; }
    .setting-row { padding: 16px 0; }
    .setting-row label { font-size: 1.1rem; }
    .stepper-btn { width: 52px; height: 52px; font-size: 1.6rem; }
    .stepper span { font-size: 1.4rem; }
    .team-name-input { width: 180px; padding: 10px 14px; font-size: 1.1rem; }

    .main-word { font-size: 4rem; margin-bottom: 28px; }
    .taboo-words li { font-size: 2.2rem; padding: 18px 16px; border-radius: 14px; }
    .tabu-card { padding: 44px; border-radius: 28px; max-width: 750px; }
    .divider { margin-bottom: 20px; }

    .game-actions { gap: 18px; padding: 20px 0; }
    .game-actions button { padding: 36px 20px; font-size: 1.5rem; min-height: 130px; border-radius: 24px; }
    .game-actions button:hover { transform: translateY(-3px); }
    .btn-icon { font-size: 3.4rem; }

    .timer { font-size: 3.6rem; }
    .big-timer { font-size: 6rem; }
    .team-indicator { font-size: 1.3rem; padding: 10px 26px; border-radius: 24px; }
    .correct-count { font-size: 2rem; }
    .skip-count { font-size: 1.15rem; }

    .turn-team-badge { font-size: 1.8rem; padding: 14px 44px; border-radius: 60px; }
    .turn-info { font-size: 1.15rem; }

    .scoreboard { padding: 22px; border-radius: 16px; }
    .score-team-name { font-size: 1.1rem; }
    .score-value { font-size: 1.3rem; }

    .round-stats { gap: 24px; }
    .stat { padding: 20px 30px; min-width: 110px; border-radius: 18px; }
    .stat-number { font-size: 2.6rem; }
    .stat-label { font-size: .9rem; }
    .round-score-change { font-size: 1.8rem; }
    .round-team-name { font-size: 1.5rem; padding: 10px 28px; }

    .lobby-code { font-size: 3.2rem; letter-spacing: 12px; }
    .lobby-code-label { font-size: 1rem; }
    .ol-teams-area { gap: 16px; }
    .ol-team-header { padding: 14px; font-size: 1.1rem; }
    .ol-team-player { padding: 12px 16px; font-size: 1.05rem; }
    .btn-team-select { padding: 14px 28px; font-size: 1.05rem; border-radius: 14px; }
    .btn-team-select:hover { transform: translateY(-2px); }
    .team-select-label { font-size: 1rem; }

    .trophy { font-size: 5.5rem; }
    .winner-name { font-size: 2.8rem; padding: 12px 32px; }
    .winner-label { font-size: 1.2rem; }
    .final-scoreboard { padding: 22px; border-radius: 16px; }

    .tabu-buzzer { min-height: 100px; font-size: 1.6rem; }

    .btn-quit { font-size: .9rem; padding: 8px 18px; }
    .btn-quit:hover { background: rgba(239,68,68,.2); color: var(--wrong); }

    .toast { font-size: 1.05rem; padding: 14px 32px; }

    .btn-invite { padding: 14px; font-size: 1rem; }
    .btn-invite:hover { background: rgba(124,58,237,.2); }

    /* PC: game screens - override sizes for desktop */
    #ol-game-describer.active,
    #ol-game-opponent.active,
    #ol-game-teammate.active,
    #game-screen.active {
        padding: 12px 24px;
    }
    .tabu-card { padding: 20px 24px; max-width: 650px; }
    .main-word { font-size: 2.4rem; margin-bottom: 12px; }
    .taboo-words li { font-size: 1.3rem; padding: 8px 10px; }
    .game-actions { padding: 8px 0; margin-bottom: 0; }
    .game-actions button { padding: 18px 16px; min-height: 70px; font-size: 1.2rem; }
    .game-header { padding: 2px 0 8px; }
    .tabu-buzzer { min-height: 70px; font-size: 1.4rem; }
}

/* ===== Ses & animasyon guncellemesi (v10) ===== */
.card-area.fx-ok { animation: tabuFlashOk .5s ease; border-radius: 20px; }
@keyframes tabuFlashOk {
  0% { background: rgba(34,197,94,0); }
  25% { background: rgba(34,197,94,.35); box-shadow: 0 0 34px rgba(34,197,94,.45); }
  100% { background: rgba(34,197,94,0); }
}
.card-area.fx-shake { animation: tabuShake .45s ease; border-radius: 20px; }
@keyframes tabuShake {
  0%, 100% { transform: translateX(0); background: rgba(239,68,68,0); }
  15% { transform: translateX(-10px); background: rgba(239,68,68,.25); }
  30% { transform: translateX(9px); }
  45% { transform: translateX(-7px); background: rgba(239,68,68,.18); }
  60% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
  90% { transform: translateX(2px); background: rgba(239,68,68,0); }
}

.tabu-card.slide-in { animation: cardSlideIn .3s ease-out; }
@keyframes cardSlideIn { from { opacity: 0; transform: translateX(90px); } to { opacity: 1; transform: translateX(0); } }

.correct-count { display: inline-block; }
.score-pop { animation: scorePop .45s ease; }
@keyframes scorePop { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

.team-indicator, .turn-team-badge { animation: teamGlow 2s ease-in-out infinite; }
@keyframes teamGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(124,58,237,.18); }
  50% { box-shadow: 0 0 26px rgba(124,58,237,.45); }
}

.confetti-wrap { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 80; }
.confetti-piece { position: absolute; top: -14px; width: 9px; height: 9px; border-radius: 2px; opacity: 0; animation: confettiFall 3s linear forwards; }
@keyframes confettiFall { 0% { opacity: 1; transform: translateY(0) rotate(0deg); } 100% { opacity: .85; transform: translateY(105vh) rotate(560deg); } }

/* Kick butonu (lobi) */
.kick-btn{width:26px;height:26px;border-radius:8px;border:1px solid rgba(239,68,68,.4);background:rgba(239,68,68,.12);color:#f87171;font-size:.75rem;font-weight:800;cursor:pointer;flex-shrink:0;margin-left:auto}
.kick-btn.confirm{background:rgba(239,68,68,.5);color:#fff}
.ol-team-player .kick-btn{float:right;margin:-3px 0 0 8px}
