/* ========================================================================== */
/* FIND DIFFERENCE: SPOT & SOLVE - MAIN ENGINE & VIEWPORT STYLES               */
/* ========================================================================== */

:root {
    --bg-dark: #0f0c1b;
    --bg-card: #2a2540;
    --primary-purple: #8b3dff;
    --accent-yellow: #ffc82c;
    --accent-green: #37d67a;
    --text-light: #ffffff;
    --font-heading: 'Fredoka One', cursive, sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

/* Pause only screens confirmed invisible by AnimationVisibilityManager. */
.animations-suspended,
.animations-suspended *,
.animations-suspended::before,
.animations-suspended::after,
.animations-suspended *::before,
.animations-suspended *::after {
    animation-play-state: paused !important;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: #05040a;
    font-family: var(--font-body);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/* 100% FULL RESPONSIVE VIEWPORT CONTAINER (PHONES, TABLETS & IPADS)          */
/* -------------------------------------------------------------------------- */
#game-app-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: 100vw; /* 100% full width on phones, tablets & iPads */
    margin: 0 auto;
    background-color: var(--bg-dark);
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Centered Max-Width Viewport for Large Desktop Monitors Only */
@media (min-width: 1025px) and (pointer: fine) {
    #game-app-container {
        max-width: 480px;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
    }
}

/* Base Game Screen Layer */
.game-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #0b0914;
    color: var(--text-light);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.1s ease;
}

.game-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
