/* ChatUni - Grid CSS */
/* Griglia, sidebar, celle, volume, timer, search */

/* Main wrapper */
.main-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    width: auto;
    padding: 0 10px;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .main-wrapper {
        gap: 40px;
        padding: 0 20px;
    }
}

/* Top Bar - Barra orizzontale in alto */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;


    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Grid layout wrapper - Sidebar a sinistra, griglia a destra */
.grid-layout-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    z-index: 10;
    width: 100%;
    max-width: 1600px;
    height: calc(94vh - 60px);
    padding-top: 40px;

}

/* Exit wrapper - Vecchia posizione (non usata) */
.exit-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
    position: relative;
}

/* Exit wrapper - NUOVA posizione: in alto a destra */
.exit-wrapper-top-right {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

/* Sidebar - Contiene ricerca, knob volume e pulsanti */
.sidebar-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 280px;
    /*  min-height: 85vh;*/
    padding: 15px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    border: 1px solid rgba(0, 242, 255, 0.1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

#sidebar-matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.30;
    pointer-events: none;
}

.sidebar-controls>*:not(#sidebar-matrix-canvas) {
    position: relative;
    z-index: 1;
}

/* Search */
.search-bar-sidebar {
    width: 100%;
    padding: 0 5px;
}

.search-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

#sector-search-input {
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 4px;
    color: #00f2ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    padding: 8px;
    flex: 1;
    min-width: 0;
    outline: none;
    transition: 0.3s;
}

#sector-search-btn {
    flex: 0 0 auto;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid #00f2ff;
    color: #00f2ff;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: 0.3s;
}

#sector-search-btn:hover {
    background: rgba(0, 242, 255, 0.3);
    box-shadow: 0 0 10px #00f2ff;
}

.search-line {
    height: 1px;
    background: linear-gradient(to right, #00f2ff, transparent);
    width: 100%;
}

/* Sector name con frecce */
.grid-header-sidebar {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
}

.sector-nav-arrows {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.sector-nav-btn {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.3);
    color: #00f2ff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-family: 'Orbitron', sans-serif;
}

.sector-nav-btn:hover {
    background: rgba(0, 242, 255, 0.25);
    border-color: #00f2ff;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
    color: #fff;
}

#sector-name {
    font-size: 1rem;
    color: #00f2ff;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.6);
    letter-spacing: 2px;
    margin: 0;
    white-space: nowrap;
}

/* Grid - Occupa gran parte dello spazio disponibile */
.grid-container {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 15px;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-width: 0;
}

.grid-item {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.square-number {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 0.6rem;
    color: rgba(0, 255, 65, 0.5);
    pointer-events: none;
}

.grid-item:hover {
    background: #000000 !important;
    border-color: #00ff41 !important;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
    transform: scale(1.05);
}

.grid-item:hover .square-number {
    color: #00ff41 !important;
    font-size: 0.85rem;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff41;
}

/* Occupied */
.grid-item.occupied {
    background: rgba(255, 0, 255, 0.1);
    border: 2px solid #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
}

.grid-item.locked {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.occupied-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.locked-label {
    font-size: 0.75rem;
    font-weight: bold;
    color: #00ff41;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
}

/* Exit e Home buttons container */
.top-right-buttons {
    display: flex;
    gap: 10px;
    flex-direction: row;
    align-items: center;
}

/* Exit button - ORIZZONTALE (non verticale) */
.cyber-exit-btn {
    writing-mode: horizontal-tb;
    background: rgba(20, 0, 0, 0.9);
    border: 1px solid rgba(255, 0, 60, 0.4);
    color: #ff003c;
    padding: 8px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 3px;
    cursor: pointer;
    transition: 0.3s;
    text-shadow: 0 0 10px #ff003c;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.2);
    border-radius: 8px;
    z-index: 100;
}

.cyber-exit-btn:hover {
    background: rgba(255, 0, 60, 0.3);
    border-color: #ff003c;
    box-shadow: 0 0 25px rgba(255, 0, 60, 0.5);
    color: #fff;
}

/* Home button */
.cyber-home-btn {
    writing-mode: horizontal-tb;
    background: rgba(0, 20, 20, 0.9);
    border: 1px solid rgba(0, 242, 255, 0.4);
    color: #00f2ff;
    padding: 8px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    text-shadow: 0 0 10px #00f2ff;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
    border-radius: 8px;
    z-index: 100;
}

.cyber-home-btn:hover {
    background: rgba(0, 242, 255, 0.3);
    border-color: #00f2ff;
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.5);
    color: #fff;
}

/* Premium button */
.cyber-premium-btn {
    writing-mode: horizontal-tb;
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.2), rgba(255, 102, 0, 0.2));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 184, 0, 0.6);
    color: #ffb800;
    padding: 8px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    text-shadow: 0 0 10px #ffb800;
    box-shadow: 0 0 15px rgba(255, 184, 0, 0.3);
    border-radius: 8px;
    z-index: 100;
}

.cyber-premium-btn:hover {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.4), rgba(255, 102, 0, 0.4));
    border-color: #ffb800;
    box-shadow: 0 0 25px rgba(255, 184, 0, 0.6);
    color: #fff;
    transform: scale(1.05);
}

/* Top Bar Buttons - Pulsanti nella top bar (stesse dimensioni sidebar) */
.top-bar-btn {
    padding: 8px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 6px;
    background: rgba(0, 242, 255, 0.05);
    color: #00f2ff;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.5);
    white-space: nowrap;
    text-align: center;
}

.top-bar-btn:hover {
    background: rgba(0, 242, 255, 0.15);
    border-color: #00f2ff;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
    transform: scale(1.05);
}

/* Hamburger Button - Hidden by default, shown only on mobile */
.hamburger-btn {
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    height: 35px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 242, 255, 0.4);
    border-radius: 6px;
    cursor: pointer;
    padding: 5px 12px;
    z-index: 1100;
    position: relative;
}

.hamburger-icon-wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 22px;
    height: 16px;
}

.hamburger-btn span.hamburger-label {
    color: #00f2ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.5);
    display: block;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    transform: none !important;
    opacity: 1 !important;
}

.hamburger-btn .hamburger-icon-wrap span {
    display: block;
    width: 100%;
    height: 3px;
    background: #00f2ff;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger-btn.active .hamburger-icon-wrap span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active .hamburger-icon-wrap span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-icon-wrap span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
}



/* Mobile Menu - Staircase dropdown for mobile */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 2px solid rgba(0, 242, 255, 0.3);
    padding: 15px 10px;
    z-index: 1050;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    transform: translateY(0);
}

.mobile-menu-btn {
    width: 100%;
    padding: 15px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 242, 255, 0.05);
    color: #00f2ff;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.5);
    text-align: left;
    white-space: nowrap;
    /* Staircase effect removed - buttons now align straight down */
    margin-left: 0;
}

.mobile-menu-btn:hover {
    background: rgba(0, 242, 255, 0.15);
    border-color: #00f2ff;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

/* Timer */
.cyber-timer {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    color: #00f2ff;
    padding: 5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #00f2ff;
    min-width: 180px;
    z-index: 110;
    pointer-events: none;
}

/* Timer nella nuova posizione (exit-wrapper-top-right) */
.exit-wrapper-top-right .cyber-timer {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-bottom: 5px;
    font-size: 0.65rem;
    min-width: auto;
}

/* Navigation */
.nav-arrow {
    position: fixed;
    bottom: 20px;
    font-size: 3rem;
    color: #00f2ff;
    cursor: pointer;
    z-index: 1000;
    text-shadow: 0 0 15px #00f2ff;
    transition: 0.3s;
    padding: 20px;
    user-select: none;
}

.nav-arrow:hover {
    color: #ff00ff;
    text-shadow: 0 0 15px #ff00ff;
    transform: scale(1.2);
}

.nav-arrow.left {
    left: 20px;
}

.nav-arrow.right {
    right: 20px;
}

/* Volume Knob Container - Dentro sidebar */
.volume-knob-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 5px 0;
}

/* Griglia pulsanti nella sidebar (2 per riga) */
.sidebar-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    padding: 10px 0;
}

.sidebar-btn {
    padding: 8px 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 6px;
    background: rgba(0, 242, 255, 0.05);
    color: #00f2ff;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.5);

    text-align: center;
}

.sidebar-btn:hover {
    background: rgba(0, 242, 255, 0.15);
    border-color: #00f2ff;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
    transform: scale(1.05);
}

/* Username button styling */
.username-btn {
    background: rgba(0, 255, 65, 0.1) !important;
    border-color: #00ff41 !important;
    color: #00ff41 !important;
    font-weight: bold !important;
}

.username-btn:hover {
    background: rgba(0, 255, 65, 0.2) !important;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4) !important;
}

/* User limits info */
.user-limits-info {
    background: rgba(0, 20, 20, 0.8);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    width: 280px;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.user-limits-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00f2ff, #00ff41, #ff00ff);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.limits-title {
    color: #00f2ff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 15px 0;
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.6);
    border-bottom: 1px solid rgba(0, 242, 255, 0.3);
    padding-bottom: 8px;
}

.limits-content {
    color: #fff;
    font-size: 0.8rem;
    line-height: 1.4;
}

.limits-content p {
    margin-bottom: 12px;
    color: #ddd;
}

.limits-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tcg-bank-btn {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    color: #ffd700;
}

.limits-content li {
    margin-bottom: 8px;
    padding: 6px 8px;
    background: rgba(0, 242, 255, 0.05);
    border-left: 3px solid rgba(0, 242, 255, 0.3);
    border-radius: 4px;
}

.limits-content strong {
    color: #00f2ff;
}

.limit-value {
    color: #00ff41;
    font-weight: bold;
}

.limit-status {
    font-size: 0.7rem;
    color: #00f2ff;
    margin-bottom: 5px;
    font-family: 'Orbitron', sans-serif;
}

.limit-warning {
    color: #ff003c;
    text-shadow: 0 0 5px #ff003c;
}

/* ═══════════════════════════════════════════════════════════════════
   OPEN TORTUGA - Celle Pubbliche
   ═══════════════════════════════════════════════════════════════════ */

.grid-item.open-tortuga {
    background: rgba(0, 255, 65, 0.15) !important;
    border: 2px solid #00ff41 !important;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    animation: open-tortuga-pulse 3s infinite;
}

@keyframes open-tortuga-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
    }
}

.grid-item.open-tortuga:hover {
    background: rgba(0, 255, 65, 0.25) !important;
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.6) !important;
    transform: scale(1.08);
}

.open-tortuga-label {
    position: absolute;
    bottom: 8px;
    font-size: 0.5rem;
    color: #00ff41;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
    pointer-events: none;
}

.participant-count {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.6rem;
    color: #00f2ff;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 10px;
    border: 1px solid rgba(0, 242, 255, 0.3);
    pointer-events: none;
    font-family: 'Orbitron', sans-serif;
}

.grid-item.open-tortuga.full {
    background: rgba(255, 184, 0, 0.2) !important;
    border-color: #ffb800 !important;
    animation: open-tortuga-full-pulse 2s infinite;
}

@keyframes open-tortuga-full-pulse {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 184, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 184, 0, 0.5);
    }
}

.grid-item.open-tortuga.full .open-tortuga-label {
    color: #ffb800;
}

.grid-item.open-tortuga.full .participant-count {
    color: #ffb800;
    border-color: rgba(255, 184, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════
   GAME ZONE - Settori 500-1000
   ═══════════════════════════════════════════════════════════════════ */

.grid-container.game-sector {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.05), rgba(255, 0, 60, 0.05));
    border: 2px solid rgba(255, 102, 0, 0.3);
}

.grid-item.game-cell {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 102, 0, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.grid-item.game-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 102, 0, 0.1) 50%, transparent 60%);
    animation: game-shine 3s infinite;
}

@keyframes game-shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.grid-item.game-cell:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.6);
    border-color: #ff6600;
}

.grid-item.game-cell.free {
    border-color: #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.grid-item.game-cell.free:hover {
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
    border-color: #00ff41;
}

.grid-item.game-cell.occupied {
    border-color: #ff003c;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.5);
    animation: occupied-pulse 2s infinite;
}

@keyframes occupied-pulse {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 0, 60, 0.5);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 0, 60, 0.8);
    }
}

.game-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 5px rgba(255, 102, 0, 0.8));
}

.occupied-label {
    position: absolute;
    bottom: 5px;
    font-size: 0.5rem;
    color: #ff003c;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 0, 60, 0.8);
}

.free-label {
    position: absolute;
    bottom: 5px;
    font-size: 0.5rem;
    color: #00ff41;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.8);
}

/* Blink animation for timer warning */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* 🃏 PokerTortuga Premium Styles */
.grid-item.poker-cell {
    background: radial-gradient(circle at center, rgba(0, 80, 40, 0.6) 0%, rgba(0, 20, 10, 0.9) 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: inset 0 0 15px rgba(0, 255, 65, 0.1);
    position: relative;
    overflow: hidden;
}

.grid-item.poker-cell::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 215, 0, 0.1), transparent 20%);
    animation: poker-rotate 10s linear infinite;
    pointer-events: none;
}

@keyframes poker-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.grid-item.poker-cell:hover {
    border-color: #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5), inset 0 0 10px rgba(0, 255, 65, 0.2);
    transform: scale(1.1) rotate(1deg);
}

.grid-item.poker-cell .game-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.grid-item.poker-cell:hover .game-icon {
    transform: scale(1.2) translateY(-5px);
}

.grid-item.poker-cell .free-label {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
    font-size: 0.6rem;
}

.grid-item.poker-cell.occupied {
    border-color: #ff003c;
    background: radial-gradient(circle at center, rgba(60, 0, 0, 0.6) 0%, rgba(20, 0, 0, 0.9) 100%);
}