* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #165F84;
    color: #FFF;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.logo {
    max-width: 200px;
    height: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sound-control {
    position: absolute;
    top: 0;
    right: 0;
    background: #336F91;
    border: none;
    color: #FFF;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-control span,
.sound-control svg {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-control:hover {
    background: rgba(22, 95, 132, 0.5);
}

.sound-control:focus-visible {
    outline: 2px solid #FFF;
    outline-offset: 2px;
}

.sound-control.muted {
    background: #5686A3;
}

.sound-control.muted:hover {
    background: rgba(22, 95, 132, 0.5);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px 8px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.game-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.game-card:focus-visible {
    outline: 2px solid #FFF;
    outline-offset: 2px;
}

.game-card:active {
    transform: scale(0.96);
}

.game-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFF;
}

.game-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.2;
}

.product-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    text-align: center;
}

.product-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.product-description {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.4;
}

.product-images {
    display: flex;
    justify-content: center;
}

.product-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

.cache-status {
    text-align: center;
    font-size: 12px;
    opacity: 0.5;
    padding: 12px 0;
    transition: opacity 0.4s;
}

.cache-status.ready {
    opacity: 0.7;
}

@media (max-width: 480px) {
    .sound-control {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
