:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-elevated: #222230;
    --gold-primary: #FFD700;
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    --gold-glow: 0 0 30px rgba(255, 215, 0, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-elevated: 0 12px 40px rgba(0, 0, 0, 0.5);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --safe-top: env(safe-area-inset-top, 47px);
    --safe-bottom: env(safe-area-inset-bottom, 34px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* App Container with gradient background */
.app-container {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
    background: 
        radial-gradient(ellipse at top, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(255, 140, 0, 0.05) 0%, transparent 40%),
        var(--bg-primary);
}

@media (orientation: landscape) {
    :root {
        --safe-top: env(safe-area-inset-top, 0px);
        --safe-bottom: env(safe-area-inset-bottom, 0px);
    }
    
    .nav-content {
        height: 48px;
        padding: 0 16px;
    }
    
    .content {
        padding: 0 16px 16px;
    }
    
    .install-button-wrapper {
        bottom: 12px;
        left: 12px;
        right: 12px;
    }
}

/* Modern Glass Navigation */
.ios-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: saturate(200%) blur(20px);
    -webkit-backdrop-filter: saturate(200%) blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-content {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
}

.nav-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-right {
    margin-left: auto;
}

/* Large Title with better styling */
.large-title-section {
    margin: 0;
    text-align: center;
}

.title-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Language Selector - Modern Style */
.lang-selector {
    position: relative;
}

.lang-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
}

.lang-btn:active {
    transform: scale(0.96);
    background: var(--bg-elevated);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-width: 160px;
    box-shadow: var(--shadow-elevated);
    border: 1px solid var(--border-subtle);
    z-index: 200;
}

.lang-dropdown.show {
    display: block;
    animation: dropdownIn 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes dropdownIn {
    from { opacity: 0; transform: scale(0.9) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.lang-option {
    padding: 14px 16px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:active {
    background: var(--bg-elevated);
}

.lang-option.active {
    color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.1);
}

.flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.flag-img {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 3px;
}

/* Content Area */
.content {
    padding: 0 20px 20px;
}

/* Modern Card Banner */
.banner-section {
    margin-bottom: 24px;
}

.banner-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
}

.banner-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
    width: 200%;
    height: 100%;
}

.banner-slide {
    width: 50%;
    height: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s;
}

.dot.active {
    background: var(--gold-primary);
    width: 24px;
    border-radius: 4px;
}

/* Modern Card Button */
.game-button-wrapper {
    margin-bottom: 28px;
}

.ios-button-primary {
    display: block;
    width: 100%;
    padding: 18px 24px;
    background: var(--gold-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: #000;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    box-shadow: var(--gold-glow), 0 4px 20px rgba(255, 140, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.ios-button-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.ios-button-primary:active {
    transform: scale(0.98) translateY(2px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.ios-button-primary:active::before {
    left: 100%;
}

/* Modern Card List - Separate Items with Spacing */
.ios-list-section {
    margin-bottom: 24px;
}

.ios-list-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 0 16px 4px;
}

.ios-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ios-list-item {
    display: flex;
    align-items: center;
    padding: 0 20px;
    min-height: 72px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
}

.ios-list-item:active {
    background: var(--bg-elevated);
    transform: scale(0.98);
}

.item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-right: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.item-icon.gold {
    background: var(--gold-gradient);
}

.item-icon.blue {
    background: linear-gradient(135deg, #0a84ff 0%, #0051d5 100%);
}

.item-icon.purple {
    background: linear-gradient(135deg, #bf5af2 0%, #7c3aed 100%);
}

.item-icon.green {
    background: linear-gradient(135deg, #30d158 0%, #248a3d 100%);
}

.item-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.item-label {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.item-detail {
    display: flex;
    align-items: center;
}

.ios-chevron {
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 300;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: block;
    opacity: 1;
}

.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 85vh;
    background: var(--bg-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 1002;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    padding-bottom: var(--safe-bottom);
    border-top: 1px solid var(--border-subtle);
}

.bottom-sheet.show {
    transform: translateY(0);
}

.sheet-handle {
    width: 40px;
    height: 5px;
    background: var(--text-muted);
    border-radius: 3px;
    margin: 12px auto;
    flex-shrink: 0;
    opacity: 0.5;
}

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.sheet-title {
    font-size: 18px;
    font-weight: 700;
}

.sheet-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sheet-action {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 10px;
    cursor: pointer;
    background: rgba(147, 51, 234, 0.18);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(147, 51, 234, 0.28);
    text-decoration: none;
}

.sheet-action:active {
    background: rgba(147, 51, 234, 0.28);
}

.sheet-close {
    color: var(--gold-primary);
    font-size: 16px;
    font-weight: 600;
    padding: 4px 12px;
    cursor: pointer;
    background: rgba(255, 215, 0, 0.1);
    border-radius: var(--radius-sm);
}

.sheet-content {
    flex: 1;
    overflow: hidden;
}

.sheet-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Glass Install Button Styles */
.install-button-wrapper {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
}

.glass-install-btn {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: float 4s infinite ease-in-out;
}

.glass-install-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.glass-install-btn:active {
    transform: translateY(0) scale(0.98);
    background: rgba(255, 255, 255, 0.2);
}

.glass-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 18px;
}

.glass-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.glass-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.sparkle {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 12px;
    animation: sparkle 1.5s infinite;
}

.app-icon {
    font-size: 18px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.glass-text {
    flex: 1;
    text-align: left;
}

.glass-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.glass-subtitle {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.glass-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 40%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 60%);
    transform: rotate(45deg);
    animation: shineMove 3s infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8) translateY(0px);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) translateY(-3px);
    }
}

@keyframes shineMove {
    0% {
        transform: translateX(-150%) translateY(-150%) rotate(45deg);
        opacity: 0;
    }
    50% {
        transform: translateX(0%) translateY(0%) rotate(45deg);
        opacity: 0.3;
    }
    100% {
        transform: translateX(150%) translateY(150%) rotate(45deg);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);
    }
}

.install-button-wrapper.hidden {
    display: none;
}

/* Blog Section Styles */
.blog-section {
    margin-top: 24px;
    margin-bottom: 24px;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
}

.blog-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.blog-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:active .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 16px 20px 20px;
}

.blog-date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.blog-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.blog-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Promotions Grid Styles */
.promo-section {
    margin-top: 24px;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.promo-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.promo-card:active {
    transform: scale(0.96);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.promo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold-gradient);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.promo-badge.hot {
    background: linear-gradient(135deg, #ff3b30 0%, #c62828 100%);
    color: #fff;
}

.promo-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.promo-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.promo-desc {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Games Slider Styles */
.games-section {
    margin-top: 24px;
}

.games-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.games-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 12px;
    padding: 4px 20px;
    scroll-padding: 0 20px;
}

.games-slider::-webkit-scrollbar {
    display: none;
}

.game-slide {
    flex: 0 0 85%;
    scroll-snap-align: center;
    cursor: pointer;
}

.game-slide-inner {
    background: transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-slide:active .game-slide-inner {
    transform: scale(0.98);
}

.game-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.slider-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.4;
}

.slider-dot.active {
    background: var(--gold-primary);
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

/* Modern Play Button Styles */
.modern-play-button {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 24px 0;
    animation: bounce 2s infinite;
}

.button-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(255, 140, 0, 0.4);
}

.button-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
}

.play-icon-wrapper {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.play-icon {
    font-size: 12px;
    color: #fff;
    font-weight: bold;
    margin-left: 2px;
}

.play-text {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

.button-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.modern-play-button:active {
    transform: scale(0.98);
}

.modern-play-button:active .button-bg {
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.5);
}

.modern-play-button:active .button-shine {
    animation: shine 0.6s ease;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

/* Service Cards Styles */
.services-cards {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin: 24px 0;
}

.service-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card.deposit {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.service-card.telegram {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(147, 51, 234, 0.05) 100%);
    border: 1px solid rgba(147, 51, 234, 0.2);
}

.service-card:active {
    transform: scale(0.98);
}

.service-card.deposit:active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
}

.service-card.telegram:active {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2) 0%, rgba(147, 51, 234, 0.1) 100%);
}

.service-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.service-card.deposit .service-icon-wrapper {
    background: transparent;
}

.service-card.telegram .service-icon-wrapper {
    background: transparent;
}

.service-icon {
    font-size: 28px;
    filter: none;
}

.service-content {
    flex: 1;
}

.service-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.service-desc {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.service-arrow {
    display: none;
}

body.game-frame-open {
    overflow: hidden;
}

.game-frame-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 2000;
    display: none;
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
}

.game-frame-overlay.show {
    display: block;
}

.game-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.game-frame-controls {
    position: absolute;
    top: calc(var(--safe-top) + 12px);
    left: calc(var(--safe-left) + 12px);
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.18);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    touch-action: none;
    z-index: 2001;
    opacity: 0.65;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.game-frame-controls:focus-within {
    opacity: 1;
    background: rgba(0, 0, 0, 0.26);
}

.game-frame-btn {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.16);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.game-frame-btn:active {
    transform: scale(0.96);
    background: rgba(0, 0, 0, 0.35);
}

.game-frame-btn-close {
    font-size: 22px;
}
