.game-board {
    display: grid;
    grid-template-columns: repeat(4, var(--tile-size));
    grid-template-rows: repeat(4, var(--tile-size));
    gap: var(--tile-gap);
    padding: var(--board-padding);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.3);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.tile-card {
    width: var(--tile-size);
    height: var(--tile-size);
    border-radius: var(--radius-md);
    background: var(--color-white);
    border: 2.5px solid rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.18s ease,
                border-color 0.18s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255,255,255,0.8);
    user-select: none;
    will-change: transform;
}

.tile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--tile-accent-color, #2196F3);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.tile-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 60%);
    pointer-events: none;
    border-radius: inherit;
}

.tile-card:hover {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255,255,255,0.8);
}

.tile-card:active {
    transform: translateY(0) scale(0.96);
}

.tile-card.tile--selected {
    border-color: #1E88E5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.45),
                0 8px 24px rgba(30, 136, 229, 0.3),
                inset 0 1px 0 rgba(255,255,255,0.8);
    transform: translateY(-4px) scale(1.03);
    background: #E3F2FD;
}

.tile-card.tile--matched {
    animation: tileMatchGlow 0.5s ease, tileRemovePop 0.45s ease 0.12s forwards;
    pointer-events: none;
    cursor: default;
}

.tile-card.tile--mismatch {
    animation: tileMismatchShake 0.5s ease;
    border-color: #EF5350;
    background: #FFEBEE;
}

.tile-icon {
    width: 65%;
    height: 65%;
    display: block;
    flex-shrink: 0;
}

.score-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
}

.score-label {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
}

.score-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-sun);
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
    display: inline-block;
}

.score-value.score--pop {
    animation: scorePopBounce 0.35s ease;
}

.score-value.score--shake {
    animation: tileMismatchShake 0.4s ease;
    color: #FF5252;
}

.board-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
