

/* Start:/games/mahjong/style.css?17736224114229*/
/* =========================================
   MAHJONG SOLITAIRE STYLES
========================================= */

.mahjong-page {
    background: radial-gradient(circle at center, #2c3e50 0%, #000000 100%);
    min-height: calc(100vh - 150px);
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    overflow: hidden;
}

.mahjong-container {
    position: relative;
    width: 100%;
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- UI Header --- */
.mahjong-ui {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin-bottom: 30px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}
.mahjong-stats { display: flex; gap: 30px; font-size: 18px; font-weight: 600; }
.stat-box span { color: #ff5252; font-size: 22px; margin-left: 8px; }

.mahjong-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}
.mahjong-btn:hover { background: rgba(255,255,255,0.3); }
.mahjong-btn.primary { background: #c62828; border-color: #c62828; }
.mahjong-btn.primary:hover { background: #e53935; transform: scale(1.05); }

/* --- Board --- */
.mahjong-board-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    /* Для мобильных масштабирование задается через JS */
}

#mahjong-board {
    position: relative;
    /* Размеры задаются в JS в зависимости от сетки */
}

/* --- Tiles (Фишки) --- */
.mahjong-tile {
    position: absolute;
    width: 50px;
    height: 70px;
    background: #fdfdfd;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 44px; /* Размер символа */
    cursor: pointer;
    user-select: none;
    /* Эффект 3D костяшки (белый верх, зеленоватый низ) */
    box-shadow: 
        -2px 2px 0px #e0e0e0, 
        -4px 4px 0px #8eb09b, 
        -6px 6px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s, filter 0.2s, opacity 0.3s;
    will-change: transform, opacity;
    /* Шрифты с поддержкой эмодзи маджонга */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    color: #1a1a1a;
}

/* Заблокированная фишка (нельзя кликнуть) */
.mahjong-tile.blocked {
    filter: brightness(0.6);
    cursor: not-allowed;
}

/* Выбранная фишка */
.mahjong-tile.selected {
    transform: translate(2px, -2px) !important; /* Приподнимаем */
    box-shadow: 0 0 15px 5px rgba(255, 82, 82, 0.8), -2px 2px 0px #e0e0e0, -4px 4px 0px #8eb09b !important;
    z-index: 1000 !important;
}

/* Анимация совпадения (исчезновение) */
.mahjong-tile.matched {
    opacity: 0;
    transform: scale(1.5) !important;
    pointer-events: none;
}
/* --- Navigation --- */
.mahjong-nav {
    width: 100%;
    max-width: 1280px;
    margin-bottom: 20px;
}
.mahjong-back-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.mahjong-back-link:hover {
    opacity: 1;
}
/* --- Экран победы (Overlay) --- */
#mahjong-win-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    z-index: 2000;
    border-radius: 20px;
    text-align: center;
}
#mahjong-win-screen h2 {
    font-size: 48px;
    color: #ff5252;
    margin-bottom: 20px;
}
.hidden {
    display: none !important;
}
/* End */
/* /games/mahjong/style.css?17736224114229 */
