#unity-game {
    background: linear-gradient(135deg, #1e2a3a, #2b3d52);
    padding: 40px 0;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.unity-header { margin-bottom: 1rem; }
.unity-header h1 { font-size: clamp(1.4rem, 4vw, 2.2rem); margin: 0; color: #fff; }
.unity-version { color: #9db3c9; font-size: .85rem; margin-top: .25rem; letter-spacing:.5px; }

#unity-wrapper { width:100%; max-width:1920px; margin:0 auto; padding:0 1rem; box-sizing:border-box; display:flex; flex-direction:column; align-items:center; justify-content:center; }

#unity-top-bar { display:flex; justify-content:center; align-items:center; margin-bottom:.5rem; flex-wrap:wrap; gap:1.25rem; width:100%; }
.unity-stats { display:flex; gap:1rem; font-size:.85rem; color:#cfd8e3; }
.unity-stats .total { opacity:.8; }

/* Generic small button (kept for other uses) */
.unity-btn { width:40px; height:40px; border:none; border-radius:8px; background:#123552; cursor:pointer; transition:background .2s; position:relative; }
.unity-btn:hover { background:#1b4d74; }

/* Dedicated fullscreen button (larger, clear icon) */
#unity-fullscreen-button { width:56px; height:56px; border-radius:12px; background:#123552 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M4 9V4h5V2H2v7h2zm15-5v5h2V2h-7v2h5zM4 15H2v7h7v-2H4v-5zm17 5h-5v2h7v-7h-2v5z'/></svg>") center/60% no-repeat; }
#unity-fullscreen-button:hover { background-color:#1b4d74; }
#unity-fullscreen-button:focus { outline:2px solid #52a8ff; outline-offset:2px; }
#unity-fullscreen-button.fs-active { background:#123552 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 4H4v5H2V2h7v2zm13-2h-7v2h5v5h2V2zM4 15v5h5v2H2v-7h2zm13 5v-5h-2v7h7v-2h-5z'/></svg>") center/60% no-repeat; }

@media (max-width: 900px) {
    #unity-fullscreen-button { width:50px; height:50px; }
}
@media (max-width: 600px) {
    #unity-fullscreen-button { width:48px; height:48px; }
}

#unity-container { position:relative; margin-left:auto !important; margin-right:auto !important; }
#unity-container, #unity-canvas { z-index: 10; }
#unity-game { position:relative; padding-top:80px; }

/* Mobile fullscreen adjustments */
body.unity-mobile-fullscreen { overscroll-behavior:none; background:#000; }
body.unity-mobile-fullscreen #unity-game { padding-top:8px; }
nav.unity-hide-nav-mobile { height:0 !important; min-height:0 !important; overflow:hidden !important; padding:0 !important; margin:0 !important; border:none !important; }

/* Ensure container doesn't shrink below canvas */
#unity-container { flex:0 0 auto; }

#unity-mobile-controls { position:absolute; inset:0; pointer-events:none; }
#unity-mobile-controls.hidden { display:none; }

#orientation-lock { position:fixed; inset:0; background:rgba(0,0,0,.85); display:flex; align-items:center; justify-content:center; z-index:1000; }
#orientation-lock.hidden { display:none; }
#orientation-lock .orientation-content { background:#13202d; padding:2rem 2.5rem; border:2px solid #275d8d; border-radius:16px; color:#fff; font-size:1rem; max-width:320px; text-align:center; box-shadow:0 8px 24px rgba(0,0,0,.6); }

.ad-slot { margin:1.25rem auto 0; width:100%; max-width:970px; min-height:90px; display:flex; justify-content:center; align-items:center; }
.ad-placeholder { background:#13202d; border:2px dashed #2a6aa5; color:#5fa9e6; padding:1.25rem 2rem; font-size:.9rem; border-radius:12px; font-weight:600; letter-spacing:.5px; }
.ad-slot.secondary { margin-top:2rem; }
ins.adsbygoogle.responsive-ad { width:100%; min-height:90px; }
.ad-fallback { background:#222; padding:.75rem 1rem; border:1px solid #333; border-radius:8px; font-size:.75rem; color:#aaa; }

/* Loading bar improvements */
#unity-loading-bar { height:18px; margin:10px 0 0; background:#1b1f24; border:1px solid #2c475d; }
#unity-progress-bar-full { background:linear-gradient(90deg,#0d79d9,#12b0ff); box-shadow:0 0 8px rgba(18,176,255,.6); }

/* Responsive adjustments */
@media (max-width: 900px) {
    #unity-game { padding: 20px 0 40px; }
    .unity-stats { width:100%; justify-content:center; }
    #unity-top-bar { justify-content:center; }
    .ad-slot { max-width:100%; }
}

/* Mobile canvas fill */
.unity-mobile { width:100%; }
.unity-mobile #unity-canvas { display:block; margin:0 auto; }
.unity-btn.small { width:auto; padding:.4rem .9rem; font-size:.75rem; background:#1b4d74; }
.unity-btn.small:hover { background:#226295; }

/* High-DPI tweak (optional placeholder) */
@media (max-width:600px) {
    .unity-header h1 { font-size:1.6rem; }
    .unity-version { font-size:.75rem; }
    #unity-wrapper { padding:0 .5rem; }
}

#unity-container {
    background: #000;
    border: 3px solid var(--primary-blue);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#unity-loading-bar {
    width: 100%;
    height: 20px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
    position: relative;
}

#unity-progress-bar-full {
    width: 0;
    height: 100%;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

body {
    margin: 0;
    background-color: #1d2b3a; /* match your theme */
    overflow-x: hidden;
}

.visit-counter {
    font-size: 1rem;
    color: #555;
    text-align: center;
    margin-top: 10px;
}