/*
 * Drift King - base.css
 * Font, THEME COLORS (edit the variables below), page reset, canvas and screen containers.
 */

/* ===== FONT: Lilita One (SIL Open Font License), loaded from the local fonts folder ===== */
@font-face {
    font-family: "Lilita One";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/LilitaOne-Regular.ttf") format("truetype");
}

/* ===== THEME COLORS: change these to re-color the menus and buttons ===== */
:root {
    --color-outline: #7a2408; /* Dark outline / shadow of big text and buttons */
    --color-accent: #ffb547; /* Main accent: panel borders, glows, selected items */
    --color-accent-light: #ffd27a; /* Light accent: labels, ribbons */
    --color-orange: #ff8a1f; /* Orange used in logo, bars and gradients */
    --color-panel-dark: #0d2436; /* Dark blue: panels, pills, bars */
    --color-panel-mid: #1b4a63; /* Mid blue: pills, booster cards */
    --color-button-outline: #0a4f5c; /* Teal button outline and shadow */
    --color-brown: #6e3a0c; /* Brown panel shadow */
    --color-text-light: #bfeff0; /* Light cyan text */
}

/* ===== LAYOUT VARIABLES (safe area, round button size) ===== */
:root {
    --st: calc(12px + env(safe-area-inset-top));
    --sr: calc(12px + env(safe-area-inset-right));
    --sb: calc(12px + env(safe-area-inset-bottom));
    --sl: calc(12px + env(safe-area-inset-left));
    --rb: clamp(48px, 13vmin, 60px);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
}
html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: "Lilita One", sans-serif;
    background: linear-gradient(#d7f5ff 0%, #ffe0b8 55%, #ffa23a 100%);
    color: #fff;
}
canvas {
    display: block;
    position: fixed;
    inset: 0;
}
#vig {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(60, 20, 0, 0.28) 100%);
}
/* screens: container + plain divs NEVER catch clicks, only real controls do */
.scr {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition:
        opacity 0.3s,
        transform 0.3s;
    pointer-events: none;
}
.scr button,
.scr input,
.scr .panel {
    pointer-events: auto;
}
.hide {
    opacity: 0;
    transform: scale(0.94);
    visibility: hidden;
}
svg.i {
    width: 1.1em;
    height: 1.1em;
    fill: currentColor;
    vertical-align: -0.17em;
    margin-right: 0.35em;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35));
    pointer-events: none;
}
