

/* Start:/games/tangram/style.css?17736247792880*/
/* =========================================
   TANGRAM STYLES (WEB 3.0)
========================================= */

.tangram-page {
    background: radial-gradient(circle at top right, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: calc(100vh - 150px);
    padding: 40px 0;
    display: flex;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.tangram-container {
    width: 100%;
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0px;
}

/* --- Header UI --- */
.tangram-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.tangram-back-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.tangram-back-link:hover { opacity: 1; }

.tangram-ui {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.level-selector select {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    margin-left: 10px;
}
.level-selector select option { background: #1a1a2e; }

.tangram-btn {
    background: linear-gradient(135deg, #e94560, #c62828);
    border: none;
    color: #fff;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.tangram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

/* --- Board --- */
.tangram-board-wrapper {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.tangram-instruction {
    text-align: center;
    color: rgba(255,255,255,0.6);
    padding: 15px;
    font-size: 14px;
}

#tangram-board {
    width: 100%;
    height: auto;
    max-height: 70vh;
    display: block;
    touch-action: none; /* Предотвращает скролл экрана при перетаскивании на мобилках */
}

/* Анимации в SVG */
.tangram-piece { cursor: grab; transition: filter 0.2s; }
.tangram-piece:active { cursor: grabbing; filter: brightness(1.2) drop-shadow(0 10px 15px rgba(0,0,0,0.5)); }
.tangram-piece.locked { cursor: default; filter: brightness(1.1); pointer-events: none; }

/* End */
/* /games/tangram/style.css?17736247792880 */
