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

html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* Prevents the whole page from scrolling */
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #050814;
    color: #ffffff;
}

.page-wrapper {
    height: 100%;       /* Fill the screen exactly */
    display: flex;
    flex-direction: column; /* Stack Header -> Game -> Footer */
}

/* Header / footer */

.header,
.footer {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header, .footer {
    flex: 0 0 auto; 
    z-index: 10;
}

.logo-text {
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 12px;
    opacity: 0.9;
}

.footer-text {
    font-size: 11px;
    opacity: 0.6;
}

/* game section */

.game-section {
    flex: 1; 
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #050814;
    display: flex;
    align-items: center;    /* Keeps game vertically centered in the safe zone */
    justify-content: center;
}

.game-frame-full {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    max-width: 450px; /* Desktop "Virtual Phone" width */
}

/* On Mobile: Let it fill the whole screen */
@media (max-width: 480px) {
    .game-frame-full {
        max-width: 100%;
    }
}

/* Banner  */

.consent-banner {
    position: fixed;
    inset: auto 0 0 0;
    background: rgba(0, 0, 0, 0.90);
    color: #fff;
    padding: 12px 16px;
    z-index: 9999;
    font-size: 13px;
}

.consent-banner.hidden {
    display: none;
}

.consent-content {
    max-width: 900px;
    margin: 0 auto;
}

.consent-buttons {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.consent-buttons button {
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

#consent-accept-all {
    background: #00c853;
    color: #fff;
}

#consent-necessary-only {
    background: #424242;
    color: #fff;
}

@media (max-width: 480px) {
    .consent-banner {
        font-size: 12px;
    }
}
