
        /* Base Styles & Mobile First Reset derived from File 1 */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            background-color: #111;
            color: #fff;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            overflow: hidden;

            background-image: url('images/dealornodeal4.jpg');
            background-repeat: no-repeat;
            background-attachment: fixed;
            background-position: left;
            background-size: 100% 100%;
        }

        #big {
            height: fit-content;
            width: fit-content;
            background-color: transparent;
            font-size: 2.5rem;
            font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
            color: rgb(33, 150, 243);
            text-align: center;
            letter-spacing: 2px;
            margin-bottom: 15px;
        }

        /* Game Arena Canvas Container matched with File 1 dimensions */
        .game-wrapper {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background-color: #000;
            border: 4px solid #fff;
            width: 600px;
            height: 450px;
            max-width: 95vw;
            max-height: 65vh;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
            border-radius: 4px;
            perspective: 1200px;
        }

        /* 3D Shiny Gold Coin Configurations */
        .coin-container {
            width: 160px;
            height: 160px;
            position: relative;
            transform-style: preserve-3d;
            transition: transform 0.1s linear;
        }

        .coin-face {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
            font-size: 2rem;
            font-weight: bold;
            border: 6px double #b3923b;
            box-shadow: inset 0 0 20px rgba(0,0,0,0.3), 0 0 25px rgba(255, 215, 0, 0.4);
        }

        /* Front Face (Heads) - Shiny Gold Gradient Layer */
        .front-face {
            background: radial-gradient(circle, #ffe875 0%, #ffd700 60%, #b3923b 100%);
            color: #5c4308;
            text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
            transform: rotateY(0deg);
        }

        /* Back Face (Tails) - Shiny Gold Gradient Layer */
        .back-face {
            background: radial-gradient(circle, #ffe875 0%, #ffd700 60%, #b3923b 100%);
            color: #5c4308;
            text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
            transform: rotateY(180deg);
        }

        /* Micro Reflection Polish Rim Effect */
        .coin-face::after {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.2) 100%);
            pointer-events: none;
        }

        /* Action Panel Console derived from File 1 */
        #buttonsdiv {
            display: flex;
            gap: 15px;
            height: fit-content;
            width: fit-content;
            margin-top: 20px;
            margin-left: auto;
            margin-right: auto;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        /* Control classes managing clean UI removal during spin intervals */
        .hidden-controls {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none;
        }

        #button {
            background-color: rgb(33, 150, 243);
            color: black;
            height: 45px;
            width: 120px;
            font-size: 1.1rem;
            font-weight: bold;
            border-radius: 20px;
            border: 2px solid black;
            cursor: pointer;
        }

        #button2 {
            background-color: rgb(187, 0, 0);
            color: black;
            height: 45px;
            width: 120px;
            font-size: 1.1rem;
            font-weight: bold;
            border-radius: 20px;
            border: 2px solid black;
            cursor: pointer;
        }

        #button:hover, #button2:hover {
            opacity: 0.8;
        }

        /* ==========================================================================
           Responsive Media Breakpoints derived from File 1
           ========================================================================== */

        /* 1. Micro Phones / Small Viewports (0px - 320px) */
        @media screen and (max-width: 320px) {
            body { justify-content: flex-start; padding-top: 10px; }
            #big { font-size: 1.5rem; }
            .game-wrapper { border-width: 2px; }
            .coin-container { width: 110px; height: 110px; }
            .coin-face { font-size: 1.4rem; border-width: 4px; }
            #button, #button2 { height: 35px; width: 90px; font-size: 0.9rem; border-radius: 12px; }
        }

        /* 2. Compact Smartphones (321px - 365px) */
        @media screen and (min-width: 321px) and (max-width: 365px) {
            body { justify-content: flex-start; padding-top: 15px; }
            #big { font-size: 1.8rem; }
            .game-wrapper { border-width: 2.5px; }
            .coin-container { width: 120px; height: 120px; }
            .coin-face { font-size: 1.5rem; }
            #button, #button2 { height: 38px; width: 100px; font-size: 0.95rem; }
        }

        /* 3. Medium Smartphones (366px - 375px) */
        @media screen and (min-width: 366px) and (max-width: 375px) {
            body { justify-content: flex-start; padding-top: 20px; }
            #big { font-size: 2rem; }
        }

        /* 4. Large Smartphones (376px - 400px) */
        @media screen and (min-width: 376px) and (max-width: 400px) {
            body { justify-content: flex-start; padding-top: 25px; }
            #big { font-size: 2.2rem; }
        }

        /* 5. Phablets / Small Tablets (401px - 600px) */
        @media screen and (min-width: 401px) and (max-width: 600px) {
            body { justify-content: flex-start; padding-top: 30px; }
        }

        /* 6. Tablets / Laptops (601px - 1200px) */
        @media screen and (min-width: 601px) and (max-width: 1200px) {
            #big { font-size: 2.8rem; }
        }

        /* 7. Desktop Monitors (1201px - 1500px) */
        @media screen and (min-width: 1201px) and (max-width: 1500px) {
            #big { font-size: 3.5rem; }
        }