/* ================================================================
    IMPORT OTHER CSS FILES
    Only CORE stylesheets belong here — anything that ships with the
    client itself. Page CSS (welcome, home, and every future page)
    now lives in the assets repo and is injected at runtime by
    cache.js's applyStyles(), NOT loaded via @import. Leaving a page's
    @import here after it moves out will 404 against this repo and
    the browser will refuse it as CSS (wrong MIME type from the dev
    server's 404-as-HTML response) — if you add a new CORE-only
    stylesheet later, @import it here; page stylesheets never go here.
================================================================ */
@import "pages/loading.css";
@import "notification.css";

/* ROOT */
html,
body {
    margin: 0;
}

:root {
    /* Common type scale — clamp(min, vmin-preferred, max).
    vmin scales with whichever dimension is smaller, so text never
    gets too big on 4K or too small on a narrow phone. */
    --ls-font-detail:    clamp(0.9rem, 1.6vmin, 1.6rem);
    --ls-font-title:     clamp(2.2rem, 5.5vmin, 5rem);
    --ls-font-percent:   clamp(1.6rem, 3vmin, 3rem);
    --ls-font-disclaim:  clamp(0.7rem, 1.1vmin, 1rem);
    --ls-bar-height:     clamp(2.2rem, 4.5vmin, 4.5rem);
    --ls-bar-width:      min(75vw, 900px);
    --ls-logo-size:      clamp(80px, 12vmin, 220px);
    --ls-bottom-pad:     clamp(4vh, 8vh, 12vh);
}
[hidden] {
  display: none !important;
}
/* Shows pages and animates the transitions */
.page-container {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
}

.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.page.active {
    display: block;
    opacity: 1;
}
.page.fading-out {
    display: block;
    opacity: 0;
}

/* FONTS */
@font-face {
  font-family: 'lilita-one';
  src: url('../assets/fonts/LilitaOne-Regular.woff2') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'lilita-one-bold';
  src: url('../assets/fonts/LilitaOne-Regular.woff2') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* KEYFRAMES */
@keyframes pulse-energy {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}
@keyframes lsn-in {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}