/* style.css - Neon Dark Cyberpunk 4-Kişilik Mayın Tarlası */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
    --bg-dark: #080b12;
    --bg-card: rgba(16, 22, 36, 0.75);
    --bg-card-hover: rgba(23, 31, 52, 0.85);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-bright: rgba(255, 255, 255, 0.18);
    
    /* 4 Oyuncu Renkleri */
    --p1-color: #00f0ff;
    --p1-glow: rgba(0, 240, 255, 0.5);
    --p1-bg: rgba(0, 240, 255, 0.15);
    
    --p2-color: #00ff88;
    --p2-glow: rgba(0, 255, 136, 0.5);
    --p2-bg: rgba(0, 255, 136, 0.15);
    
    --p3-color: #bd00ff;
    --p3-glow: rgba(189, 0, 255, 0.5);
    --p3-bg: rgba(189, 0, 255, 0.15);
    
    --p4-color: #ff9100;
    --p4-glow: rgba(255, 145, 0, 0.5);
    --p4-bg: rgba(255, 145, 0, 0.15);

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --danger-red: #ff3366;
    --danger-glow: rgba(255, 51, 102, 0.5);
    
    --cell-size: 42px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(0, 240, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(189, 0, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.9) 0%, var(--bg-dark) 100%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Arka plan partikül / canvas katmanı */
#fx-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
}

/* Ana Konteyner */
.app-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Üst Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    margin-bottom: 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.brand-logo:hover {
    transform: translateY(-1px);
}

.brand-logo-badge {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(189, 0, 255, 0.25));
    border: 1.5px solid rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.35), inset 0 0 10px rgba(189, 0, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover .brand-logo-badge {
    transform: scale(1.1) rotate(-3deg);
    border-color: #00f0ff;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6), inset 0 0 12px rgba(189, 0, 255, 0.5);
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.logo-sub-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    font-size: 13px;
    background: #0a0c16;
    border: 1.5px solid rgba(0, 240, 255, 0.7);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 240, 255, 0.5);
    transition: transform 0.2s ease;
}

.brand-logo:hover .logo-sub-badge {
    transform: scale(1.15);
}

/* Hub Hero Big Centerpiece Logo */
.hub-hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.hub-hero-logo-img {
    width: 128px;
    height: 128px;
    border-radius: 28px;
    border: 2px solid rgba(0, 240, 255, 0.7);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.5), 0 0 70px rgba(189, 0, 255, 0.3), inset 0 0 20px rgba(0, 240, 255, 0.2);
    object-fit: cover;
    animation: floatHeroLogo 3.6s ease-in-out infinite alternate;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.hub-hero-logo-img:hover {
    transform: scale(1.08) rotate(2deg);
    border-color: #00ff88;
    box-shadow: 0 0 45px rgba(0, 255, 136, 0.6), 0 0 90px rgba(0, 240, 255, 0.4);
}

@keyframes floatHeroLogo {
    0% {
        transform: translateY(0px) rotate(0deg);
        filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.5));
    }
    100% {
        transform: translateY(-8px) rotate(1deg);
        filter: drop-shadow(0 0 30px rgba(189, 0, 255, 0.7));
    }
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6));
    animation: floatIcon 3s ease-in-out infinite alternate;
}

@keyframes floatIcon {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-4px) rotate(6deg); }
}

.brand-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #00f0ff 0%, #00ff88 50%, #bd00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text .badge {
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.room-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 6px 14px;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--p1-color);
}

.room-code-label {
    font-weight: 700;
    letter-spacing: 1.5px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--border-glass-bright);
    transform: translateY(-2px);
}

.btn-share {
    background: linear-gradient(135deg, #00f0ff, #00b4d8);
    color: #06101e;
    font-weight: 700;
    border: none;
    padding: 8px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-share:hover {
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

/* 4 Oyuncu Kartları Grid */
.players-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.player-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Oyuncu Temaları */
.player-card.player-0 { --p-color: var(--p1-color); --p-glow: var(--p1-glow); --p-bg: var(--p1-bg); }
.player-card.player-1 { --p-color: var(--p2-color); --p-glow: var(--p2-glow); --p-bg: var(--p2-bg); }
.player-card.player-2 { --p-color: var(--p3-color); --p-glow: var(--p3-glow); --p-bg: var(--p3-bg); }
.player-card.player-3 { --p-color: var(--p4-color); --p-glow: var(--p4-glow); --p-bg: var(--p4-bg); }

.player-card.active-turn {
    border-color: var(--p-color);
    box-shadow: 0 0 20px var(--p-glow), inset 0 0 15px var(--p-bg);
    transform: translateY(-3px) scale(1.02);
}

.player-card.active-turn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--p-color);
    box-shadow: 0 0 10px var(--p-color);
}

.player-card.waiting-slot {
    opacity: 0.5;
    border-style: dashed;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-identity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: var(--p-bg);
    border: 1px solid var(--p-color);
    box-shadow: 0 0 8px var(--p-glow);
}

.player-name-wrap {
    display: flex;
    flex-direction: column;
}

.player-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
}

.player-role {
    font-size: 0.65rem;
    color: var(--p-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.turn-pill {
    display: none;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    background: var(--p-color);
    color: #06101e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulsePill 1.2s infinite alternate;
}

.player-card.active-turn .turn-pill {
    display: block;
}

@keyframes pulsePill {
    0% { transform: scale(0.95); opacity: 0.85; }
    100% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 10px var(--p-color); }
}

.player-stats {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: 'JetBrains Mono', monospace;
}

.stat-score {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--p-color);
}

.stat-details {
    display: flex;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-lives {
    color: #ff477e;
    letter-spacing: 2px;
}

/* Süre & Sıra Uyarı Barı */
.turn-status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.turn-status-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
}

.turn-pulse-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--p1-color);
    box-shadow: 0 0 10px var(--p1-color);
    animation: dotBlink 1s infinite alternate;
}

@keyframes dotBlink {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 1; }
}

.timer-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

.timer-bar-container {
    width: 140px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.timer-bar-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #00ff88, #00f0ff);
    transition: width 0.1s linear, background-color 0.3s ease;
}

.timer-seconds {
    font-size: 0.95rem;
    min-width: 32px;
    text-align: right;
}

/* Oyun Alanı ve Board */
.game-viewport {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px 0;
}

.board-container {
    background: rgba(12, 17, 29, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--border-glass-bright);
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 0, 0, 0.4);
    display: inline-block;
    transition: transform 0.1s ease;
    overflow: auto;
    max-width: 100%;
}

.board-container.shake {
    animation: boardShake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes boardShake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(4px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
    40%, 60% { transform: translate3d(6px, 0, 0); }
}

.grid-board {
    display: grid;
    gap: 4px;
}

/* Hücreler */
.cell {
    width: var(--cell-size);
    height: var(--cell-size);
    background: linear-gradient(145deg, #1a2236, #121827);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 1.15rem;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.cell:hover:not(.revealed):not(.flagged) {
    background: linear-gradient(145deg, #242f4c, #171f33);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.cell:active:not(.revealed) {
    transform: scale(0.94);
}

/* Açılmış Hücre */
.cell.revealed {
    background: #0d121f;
    border-color: rgba(255, 255, 255, 0.04);
    cursor: default;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Oyuncuya Göre Açılmış Renk Sistemi (ÇOK ÖNEMLİ KURAL) */
.cell.revealed.owner-0 {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.22), #0b1322);
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.25), inset 0 0 8px rgba(0, 240, 255, 0.15);
}

.cell.revealed.owner-1 {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.22), #0b1c16);
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.25), inset 0 0 8px rgba(0, 255, 136, 0.15);
}

.cell.revealed.owner-2 {
    background: linear-gradient(135deg, rgba(189, 0, 255, 0.22), #180b24);
    border-color: rgba(189, 0, 255, 0.6);
    box-shadow: 0 0 10px rgba(189, 0, 255, 0.25), inset 0 0 8px rgba(189, 0, 255, 0.15);
}

.cell.revealed.owner-3 {
    background: linear-gradient(135deg, rgba(255, 145, 0, 0.22), #221509);
    border-color: rgba(255, 145, 0, 0.6);
    box-shadow: 0 0 10px rgba(255, 145, 0, 0.25), inset 0 0 8px rgba(255, 145, 0, 0.15);
}

/* Sayı Renkleri */
.cell[data-num="1"] { color: #38bdf8; text-shadow: 0 0 8px rgba(56, 189, 248, 0.5); }
.cell[data-num="2"] { color: #4ade80; text-shadow: 0 0 8px rgba(74, 222, 128, 0.5); }
.cell[data-num="3"] { color: #f87171; text-shadow: 0 0 8px rgba(248, 113, 113, 0.5); }
.cell[data-num="4"] { color: #818cf8; text-shadow: 0 0 8px rgba(129, 140, 248, 0.5); }
.cell[data-num="5"] { color: #fb923c; text-shadow: 0 0 8px rgba(251, 146, 60, 0.5); }
.cell[data-num="6"] { color: #2dd4bf; text-shadow: 0 0 8px rgba(45, 212, 191, 0.5); }
.cell[data-num="7"] { color: #e879f9; text-shadow: 0 0 8px rgba(232, 121, 249, 0.5); }
.cell[data-num="8"] { color: #facc15; text-shadow: 0 0 8px rgba(250, 204, 21, 0.5); }

/* Patlayan Mayın */
.cell.mine-detonated {
    background: radial-gradient(circle, #ff2255 0%, #300611 100%) !important;
    border-color: #ff2255 !important;
    box-shadow: 0 0 20px rgba(255, 34, 85, 0.8) !important;
    animation: minePop 0.4s ease-out;
}

@keyframes minePop {
    0% { transform: scale(0.6); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Bayrak */
.cell.flagged {
    border-color: rgba(255, 200, 0, 0.5);
    background: rgba(255, 200, 0, 0.08);
}

.cell.flagged.owner-0 { border-color: var(--p1-color); background: var(--p1-bg); }
.cell.flagged.owner-1 { border-color: var(--p2-color); background: var(--p2-bg); }
.cell.flagged.owner-2 { border-color: var(--p3-color); background: var(--p3-bg); }
.cell.flagged.owner-3 { border-color: var(--p4-color); background: var(--p4-bg); }

/* Alt Kontrol & Tepki Çubuğu */
.bottom-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 10px 18px;
    margin-top: 16px;
}

/* Mobil Mod Seçici (Aç / Bayrak) */
.mode-toggle-group {
    display: flex;
    background: rgba(0, 0, 0, 0.35);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}

.btn-mode {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-mode.active {
    background: #1e293b;
    color: #00f0ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Canlı Tepki Emojileri */
.reaction-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-reaction {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 1.15rem;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
}

.btn-reaction:hover {
    transform: scale(1.2) translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.btn-reaction:active {
    transform: scale(0.95);
}

/* Skor & Puan Uçan Metin (Floater) */
.score-floater {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1000;
    animation: floatUpFade 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes floatUpFade {
    0% { transform: translate(-50%, 0) scale(0.8); opacity: 0; }
    20% { transform: translate(-50%, -10px) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -40px) scale(1); opacity: 0; }
}

/* Yüzen Emoji Tepkisi */
.emoji-floater {
    position: absolute;
    font-size: 2.2rem;
    pointer-events: none;
    z-index: 1001;
    animation: floatEmoji 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes floatEmoji {
    0% { transform: translate(-50%, 0) scale(0.5); opacity: 0; }
    25% { transform: translate(-50%, -30px) scale(1.3); opacity: 1; }
    75% { transform: translate(-50%, -80px) scale(1.1); opacity: 0.9; }
    100% { transform: translate(-50%, -130px) scale(0.7); opacity: 0; }
}

/* Modallar */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 13, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 16px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #101624;
    border: 1px solid var(--border-glass-bright);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    padding: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #00f0ff, #bd00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: -12px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-text {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-text:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #00f0ff, #0077b6);
    color: #040914;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4);
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid var(--border-glass);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Lobi Bağlantı Paylaşım Kutusu */
.share-link-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 8px 12px;
    border-radius: 10px;
}

.share-link-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #00f0ff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    outline: none;
}

.copy-btn {
    background: #00f0ff;
    color: #040914;
    font-weight: 700;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.copy-btn:hover {
    transform: scale(1.05);
}

/* Toast Bildirim */
.toast-msg {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: rgba(16, 22, 36, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #00f0ff;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-msg.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Mobil / Küçük Ekran Uyumluluğu */
@media (max-width: 820px) {
    :root {
        --cell-size: 32px;
    }

    .players-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-text h1 {
        font-size: 1rem;
    }

    .board-container {
        padding: 8px;
    }

    .cell {
        font-size: 0.95rem;
    }

    .bottom-controls {
        flex-direction: column;
        gap: 12px;
    }

    .mode-toggle-group {
        width: 100%;
        justify-content: center;
    }

    .btn-mode {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --cell-size: 26px;
    }

    .app-container {
        padding: 8px;
    }

    .top-header {
        padding: 8px 12px;
    }

    .btn-share span {
        display: none;
    }
}

/* ==========================================================================
   DEDİKED LOBİ VE GÖRÜNÜM (VIEW) YÖNETİMİ
   ========================================================================== */
.view-container {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeInView 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInView {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Lobi Kartı ve Düzeni */
.lobby-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass-bright);
    border-radius: 24px;
    width: 100%;
    max-width: 860px;
    padding: 28px 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), inset 0 0 30px rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: auto;
}

.lobby-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 18px;
}

.lobby-title-area h2 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00f0ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lobby-title-area p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.lobby-share-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp {
    background: #25D366;
    color: #062410;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-whatsapp:hover {
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
}

/* 4 Kişilik Lobi Slotları */
.lobby-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.lobby-slot {
    background: rgba(13, 19, 32, 0.75);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lobby-slot.player-0 { --slot-color: var(--p1-color); --slot-glow: var(--p1-glow); --slot-bg: var(--p1-bg); }
.lobby-slot.player-1 { --slot-color: var(--p2-color); --slot-glow: var(--p2-glow); --slot-bg: var(--p2-bg); }
.lobby-slot.player-2 { --slot-color: var(--p3-color); --slot-glow: var(--p3-glow); --slot-bg: var(--p3-bg); }
.lobby-slot.player-3 { --slot-color: var(--p4-color); --slot-glow: var(--p4-glow); --slot-bg: var(--p4-bg); }

.lobby-slot.filled {
    border-color: var(--slot-color);
    background: linear-gradient(180deg, var(--slot-bg) 0%, rgba(13, 19, 32, 0.85) 100%);
    box-shadow: 0 0 16px var(--slot-glow);
}

.lobby-slot.empty {
    border-style: dashed;
    opacity: 0.45;
}

.slot-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: var(--slot-bg);
    border: 2px solid var(--slot-color);
    box-shadow: 0 0 12px var(--slot-glow);
}

.lobby-slot.empty .slot-avatar {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    color: var(--text-muted);
}

.slot-name-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.slot-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slot-input-name {
    width: 90%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--slot-color);
    border-radius: 6px;
    padding: 4px 8px;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    outline: none;
}

.slot-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slot-badge.host {
    background: #00f0ff;
    color: #040914;
}

.slot-badge.ready {
    background: #00ff88;
    color: #04140a;
}

.slot-badge.waiting {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Lobi Oyun Ayarları */
.lobby-settings-box {
    background: rgba(8, 12, 20, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-badge {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 8px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.setting-col label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.option-btn-group {
    display: flex;
    background: rgba(0, 0, 0, 0.35);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border-glass);
    gap: 4px;
}

.btn-option {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 7px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-option.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(0, 255, 136, 0.25));
    border: 1px solid rgba(0, 240, 255, 0.5);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-option:disabled {
    cursor: default;
    opacity: 0.75;
}

/* Lobi Buton & Durum Çubuğu */
.lobby-actions-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.btn-start-game {
    background: linear-gradient(135deg, #00ff88 0%, #00f0ff 100%);
    color: #041812;
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    border: none;
    padding: 16px 40px;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 4px 25px rgba(0, 255, 136, 0.4);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-start-game:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 30px rgba(0, 255, 136, 0.6);
}

.btn-start-game:active {
    transform: scale(0.98);
}

.waiting-host-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(189, 0, 255, 0.1);
    border: 1px solid rgba(189, 0, 255, 0.3);
    padding: 14px 24px;
    border-radius: 14px;
    color: #bd00ff;
    font-weight: 700;
    font-size: 0.95rem;
    animation: pulseWait 1.8s infinite alternate;
}

@keyframes pulseWait {
    0% { transform: scale(0.98); opacity: 0.8; box-shadow: 0 0 10px rgba(189, 0, 255, 0.2); }
    100% { transform: scale(1.01); opacity: 1; box-shadow: 0 0 20px rgba(189, 0, 255, 0.45); }
}

@media (max-width: 820px) {
    .lobby-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .lobby-card {
        padding: 20px 16px;
    }
}

/* ==========================================================================
   ANA MENÜ (ARCADE HUB) GÖRÜNÜMÜ
   ========================================================================== */
.hub-wrapper {
    max-width: 960px;
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: center;
}

.hub-hero h1 {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #00f0ff 0%, #00ff88 35%, #bd00ff 70%, #ff9100 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.hub-hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.hub-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.hub-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass-bright);
    border-radius: 24px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hub-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--card-accent), transparent 70%);
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

.hub-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--card-accent);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px var(--card-glow);
}

.hub-card:hover::before {
    opacity: 0.35;
}

.hub-card.card-mines {
    --card-accent: #00f0ff;
    --card-glow: rgba(0, 240, 255, 0.4);
}

.hub-card.card-uno {
    --card-accent: #ff2a5f;
    --card-glow: rgba(255, 42, 95, 0.4);
}

.hub-card.card-monopoly {
    --card-accent: #ffd600;
    --card-glow: rgba(255, 214, 0, 0.4);
}

.hub-badge {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--card-accent);
    border: 1px solid var(--card-accent);
}

.hub-icon-wrap {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px var(--card-glow));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hub-card:hover .hub-icon-wrap {
    transform: scale(1.15) rotate(5deg);
}

.hub-card h3 {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
}

.hub-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.btn-hub-play {
    background: var(--card-accent);
    color: #050d18;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px var(--card-glow);
    transition: all 0.2s ease;
    margin-top: auto;
}

.hub-card:hover .btn-hub-play {
    transform: scale(1.05);
    box-shadow: 0 6px 24px var(--card-glow);
}

/* ==========================================================================
   UNO OYUN MASASI (CYBER UNO ARENA)
   ========================================================================== */
.uno-arena-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

/* Rakipler Üst & Yan Çubukları */
.uno-opponents-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.uno-seat {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.uno-seat.active-turn {
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4), inset 0 0 10px rgba(0, 255, 136, 0.15);
    transform: translateY(-2px);
}

.seat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.seat-info {
    display: flex;
    flex-direction: column;
}

.seat-name {
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
}

.seat-cards-badge {
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.seat-uno-warning {
    display: none;
    font-size: 0.65rem;
    font-weight: 900;
    background: #ff2a5f;
    color: #fff;
    padding: 2px 6px;
    border-radius: 8px;
    animation: pulsePill 0.8s infinite alternate;
}

.uno-seat.has-one-card .seat-uno-warning {
    display: inline-block;
}

/* UNO Orta Oyun Masası */
.uno-center-table {
    background: radial-gradient(circle at 50% 50%, rgba(18, 28, 48, 0.95) 0%, rgba(8, 14, 26, 0.95) 100%);
    border: 2px solid var(--border-glass-bright);
    border-radius: 28px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), inset 0 0 50px rgba(0, 0, 0, 0.5);
    min-height: 280px;
}

/* Yön ve Aktif Renk Gösterge Çemberi */
.table-aura {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.35;
    pointer-events: none;
    transition: background 0.5s ease;
}

.table-aura.color-red { background: #ff2a5f; }
.table-aura.color-blue { background: #00a8ff; }
.table-aura.color-green { background: #00e676; }
.table-aura.color-yellow { background: #ffd600; }

.direction-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-glass);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.direction-arrows {
    font-size: 1rem;
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.direction-indicator.reversed .direction-arrows {
    transform: scaleX(-1);
    color: #ff9100;
}

/* Deste ve Atılan Kartlar Yığını */
.pile-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 10;
}

/* Deste (Draw Pile) */
.draw-pile {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.draw-pile:hover {
    transform: translateY(-4px);
}

.draw-pile:active {
    transform: scale(0.96);
}

.draw-pile-counter {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    color: #94a3b8;
    white-space: nowrap;
}

/* Atılan Kartlar Yığını (Discard Pile) */
.discard-pile {
    position: relative;
    width: 76px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Kartın Masaya Oturma Fiziği Animasyonu */
@keyframes cardSlam {
    0% { transform: translate(-50%, -50%) scale(1.4) rotate(-20deg); opacity: 0; }
    70% { transform: translate(-50%, -50%) scale(0.95) rotate(var(--target-rot)); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1) rotate(var(--target-rot)); opacity: 1; }
}

.card-slam-active {
    animation: cardSlam 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* ==========================================================================
   UNO KART TASARIMI (Vektörel & 3D)
   ========================================================================== */
.uno-card {
    width: 76px;
    height: 112px;
    border-radius: 12px;
    border: 3px solid #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    cursor: pointer;
    overflow: hidden;
    user-select: none;
    background-clip: padding-box;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

/* Kart Renkleri */
.uno-card.color-red {
    background: linear-gradient(145deg, #ff2a5f, #c70032);
}
.uno-card.color-blue {
    background: linear-gradient(145deg, #00a8ff, #0066cc);
}
.uno-card.color-green {
    background: linear-gradient(145deg, #00e676, #009944);
}
.uno-card.color-yellow {
    background: linear-gradient(145deg, #ffd600, #ff9100);
}
.uno-card.color-wild {
    background: linear-gradient(135deg, #222, #0d0d14);
}

/* İç Beyaz Oval Halka */
.uno-card-inner-oval {
    position: absolute;
    width: 60px;
    height: 94px;
    border-radius: 50%;
    transform: rotate(-28deg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.05);
}

.uno-card.color-wild .uno-card-inner-oval {
    background: conic-gradient(#ff2a5f 0deg 90deg, #00a8ff 90deg 180deg, #ffd600 180deg 270deg, #00e676 270deg 360deg);
    border-color: #ffffff;
}

/* Ortadaki Büyük Sembol */
.uno-card-symbol {
    font-size: 2.2rem;
    color: #ffffff;
    text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.uno-card.color-wild .uno-card-symbol {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0,0,0,0.9), 2px 2px 4px #000;
}

/* Köşelerdeki Küçük Semboller */
.uno-card-corner {
    position: absolute;
    font-size: 0.8rem;
    color: #ffffff;
    font-weight: 900;
    line-height: 1;
    z-index: 3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.uno-card-corner.top-left {
    top: 5px;
    left: 6px;
}

.uno-card-corner.bottom-right {
    bottom: 5px;
    right: 6px;
    transform: rotate(180deg);
}

/* Kart Arkası */
.uno-card.card-back {
    background: linear-gradient(145deg, #161b26, #090c14);
    border-color: #2b3548;
}

.uno-card-back-logo {
    transform: rotate(-25deg);
    font-size: 1.25rem;
    font-weight: 900;
    color: #ff2a5f;
    text-shadow: 0 0 12px rgba(255, 42, 95, 0.8), 2px 2px 0 #ffd600;
    letter-spacing: 1px;
}

/* Oynanabilir Kart Parlaması */
.uno-card.playable {
    animation: playableGlow 1.5s infinite alternate;
    cursor: pointer;
}

@keyframes playableGlow {
    0% { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 6px rgba(255, 255, 255, 0.4); }
    100% { box-shadow: 0 8px 24px rgba(0, 255, 136, 0.6), 0 0 16px rgba(0, 255, 136, 0.8); }
}

/* ==========================================================================
   OYUNCUNUN ELİ (YELPAZE DÜZENİ)
   ========================================================================== */
.uno-player-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.uno-action-bar {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* UNO Bağırma Butonu */
.btn-uno-shout {
    background: linear-gradient(135deg, #ff2a5f 0%, #ff8800 100%);
    color: #fff;
    font-weight: 900;
    font-size: 1.15rem;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 42, 95, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    animation: flamePulse 1.2s infinite alternate;
}

@keyframes flamePulse {
    0% { transform: scale(0.96); box-shadow: 0 4px 15px rgba(255, 42, 95, 0.4); }
    100% { transform: scale(1.04); box-shadow: 0 6px 30px rgba(255, 136, 0, 0.8); }
}

.btn-uno-shout:hover {
    transform: scale(1.08);
}

.btn-uno-shout.disabled {
    opacity: 0.5;
    animation: none;
    pointer-events: none;
}

/* Eldeki Kartların Yelpazesi */
.uno-hand-fan {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    min-height: 135px;
    padding: 10px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.uno-hand-fan .uno-card {
    margin-left: -28px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), margin 0.2s ease, z-index 0.1s ease;
}

.uno-hand-fan .uno-card:first-child {
    margin-left: 0;
}

.uno-hand-fan .uno-card:hover {
    transform: translateY(-28px) scale(1.15) !important;
    z-index: 100 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   JOKER RENK SEÇİCİ MODALI
   ========================================================================== */
.wild-color-wheel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 220px;
    height: 220px;
    margin: 10px auto;
}

.wild-quadrant {
    border-radius: 16px;
    border: none;
    cursor: pointer;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wild-quadrant.q-red { background: #ff2a5f; box-shadow: 0 4px 15px rgba(255, 42, 95, 0.4); }
.wild-quadrant.q-blue { background: #00a8ff; box-shadow: 0 4px 15px rgba(0, 168, 255, 0.4); }
.wild-quadrant.q-green { background: #00e676; box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4); }
.wild-quadrant.q-yellow { background: #ffd600; color: #000; box-shadow: 0 4px 15px rgba(255, 214, 0, 0.4); }

.wild-quadrant:hover {
    transform: scale(1.1);
    z-index: 5;
}

/* ==========================================================================
   CYBER MONOPOLY ARENA & BOARD STYLES
   ========================================================================== */
.monopoly-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Üst Oyuncu Cüzdan Çubuğu */
.monopoly-players-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
}

.monopoly-player-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1.5px solid var(--border-glass);
    border-radius: 14px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.monopoly-player-card.active-turn {
    border-color: var(--p-color, #00f0ff);
    box-shadow: 0 0 20px var(--p-glow, rgba(0, 240, 255, 0.4)), inset 0 0 10px var(--p-glow, rgba(0, 240, 255, 0.2));
    transform: translateY(-2px);
}

.monopoly-player-card.bankrupt {
    opacity: 0.35;
    filter: grayscale(1);
    border-color: #ff3366 !important;
}

.m-player-token {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 1px solid var(--p-color, #fff);
    flex-shrink: 0;
}

.m-player-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.m-player-name {
    font-weight: 800;
    font-size: 0.82rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-player-money {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 0.9rem;
    color: #00ff88;
}

.m-player-props {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Tahta Konteyneri */
.monopoly-board-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 6px 0;
}

.monopoly-board {
    display: grid;
    grid-template-columns: 1.3fr repeat(6, 1fr) 1.3fr;
    grid-template-rows: 1.3fr repeat(6, 1fr) 1.3fr;
    gap: 4px;
    width: min(94vw, 680px);
    height: min(94vw, 680px);
    background: #090d18;
    border: 2px solid rgba(0, 240, 255, 0.4);
    border-radius: 18px;
    padding: 6px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 240, 255, 0.2);
    position: relative;
    user-select: none;
}

/* Kare Stili (.m-tile) */
.m-tile {
    background: rgba(18, 25, 44, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 4px 2px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.m-tile:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.04);
    z-index: 10;
}

.m-tile.owned {
    border-color: var(--owner-color, #00f0ff);
    box-shadow: inset 0 0 12px var(--owner-glow, rgba(0, 240, 255, 0.3));
}

.tile-color-bar {
    width: 100%;
    height: 10px;
    border-radius: 4px 4px 0 0;
    margin-bottom: 2px;
    flex-shrink: 0;
}

.tile-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.tile-name {
    font-size: 0.62rem;
    font-weight: 700;
    color: #e2e8f0;
    text-align: center;
    line-height: 1.1;
    max-height: 2.2em;
    overflow: hidden;
    padding: 0 2px;
}

.tile-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 800;
    color: #00ff88;
}

/* Köşe Kareler */
.m-tile.tile-corner {
    background: rgba(25, 35, 60, 0.95);
    border: 1.5px solid rgba(0, 240, 255, 0.3);
    justify-content: center;
    gap: 4px;
}
.m-tile.tile-corner .tile-icon {
    font-size: 1.6rem;
}
.m-tile.tile-corner .tile-name {
    font-size: 0.65rem;
    font-weight: 800;
}

/* Piyon Yuvaları */
.tile-tokens {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 18px;
    width: 100%;
}

.token-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    background: #0c101d;
    border: 1.5px solid var(--p-color, #fff);
    box-shadow: 0 0 6px var(--p-glow, rgba(0, 240, 255, 0.6));
    animation: tokenHop 0.35s ease-out;
}

@keyframes tokenHop {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.3); }
    100% { transform: translateY(0) scale(1); }
}

/* Merkez Avlu */
.monopoly-center {
    grid-column: 2 / 8;
    grid-row: 2 / 8;
    background: radial-gradient(circle at 50% 50%, rgba(20, 28, 50, 0.92) 0%, rgba(8, 12, 22, 0.97) 100%);
    border: 1px dashed rgba(0, 240, 255, 0.25);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

/* 3D Zar Sahnesi */
.dice-stage {
    display: flex;
    gap: 20px;
    perspective: 800px;
}

.dice-cube {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #182238, #0e1424);
    border: 2px solid #00f0ff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    color: #00f0ff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.4);
    transition: transform 0.2s ease;
    user-select: none;
}

.dice-rolling {
    animation: diceSpin3D 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) infinite alternate;
}

@keyframes diceSpin3D {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1.1); }
    50% { transform: rotateX(180deg) rotateY(90deg) rotateZ(180deg) scale(0.9); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg) scale(1.15); }
}

/* Aksiyon Butonları */
.monopoly-actions-wrap {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-monopoly-roll {
    font-size: 1.15rem;
    font-weight: 900;
    padding: 12px 32px;
    border-radius: 14px;
    background: linear-gradient(135deg, #00f0ff, #00ff88);
    color: #050d18;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.5);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-monopoly-roll:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.6);
}

.btn-monopoly-roll:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

/* Olay Akışı / Ticker */
.monopoly-feed {
    width: 90%;
    max-height: 56px;
    overflow-y: hidden;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

/* Tapu Önizleme Modalı */
.deed-card-preview {
    background: #0f172a;
    border: 2px solid #00f0ff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.deed-header {
    background: #00f0ff;
    color: #050d18;
    padding: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.deed-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #f1f5f9;
}

.deed-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #00ff88;
}

.chance-card-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
    animation: floatIcon 2.5s ease-in-out infinite alternate;
}

@media (max-width: 960px) {
    .hub-games-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .uno-card {
        width: 58px;
        height: 86px;
    }
    .uno-card-symbol {
        font-size: 1.6rem;
    }
    .uno-hand-fan .uno-card {
        margin-left: -22px;
    }
}

@media (max-width: 620px) {
    .monopoly-players-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .tile-name {
        font-size: 0.52rem;
    }
    .tile-price {
        font-size: 0.52rem;
    }
    .dice-cube {
        width: 44px;
        height: 44px;
        font-size: 1.7rem;
    }
    .btn-monopoly-roll {
        padding: 10px 20px;
        font-size: 1rem;
    }
}


