/* =====================================================================
   GLOBAL RESET & FULLSCREEN CANVAS (TMA SAFE-AREA READY)
   ===================================================================== */
:root {
    --safe-top: max(14px, env(safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px));
    --safe-bottom: max(20px, env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
    --safe-left: max(14px, env(safe-area-inset-left, 0px));
    --safe-right: max(14px, env(safe-area-inset-right, 0px));
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #236bb8;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    inset: 0;
    z-index: 1;
}

/* =====================================================================
   SCREEN WEATHER / DAMAGE VIGNETTES
   ===================================================================== */
#damage-vignette,
#frost-vignette {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.22s ease;
}

#damage-vignette {
    background: radial-gradient(circle at center, rgba(255, 25, 45, 0) 52%, rgba(255, 20, 45, 0.58) 100%);
}

#frost-vignette {
    background: radial-gradient(circle at center, rgba(160, 225, 255, 0) 48%, rgba(185, 235, 255, 0.55) 100%);
}
