html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    background: #1f1e1a;
}
/* The picture of the site lies under the canvas: it shows until the player draws its first frame. */
#unity-container {
    position: fixed;
    inset: 0;
    background: #1f1e1a url('background.jpg') center / cover no-repeat;
}
#unity-canvas {
    width: 100%;
    height: 100%;
    background: transparent;
}

/* While the site loads: the logo at the top, the name of the site and the bar over the lower part of the picture. */
#unity-loading-bar {
    position: fixed;
    inset: 0;
    display: none;
    box-sizing: border-box;
    padding: clamp(20px, 4.5vh, 48px) clamp(20px, 4vw, 56px);
    background:
        linear-gradient(to bottom, rgba(24, 23, 19, 0.55) 0%, rgba(24, 23, 19, 0) 22%),
        linear-gradient(to top, rgba(24, 23, 19, 0.9) 0%, rgba(24, 23, 19, 0.55) 24%, rgba(24, 23, 19, 0) 52%);
    color: #F4EDE2;
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
#unity-loading-bar.done { opacity: 0; }
#site-logo {
    display: block;
    height: clamp(30px, 4.6vh, 44px);
    /* The logo file is green on nothing: drawn white here. */
    filter: brightness(0) invert(1);
    opacity: 0.95;
}
#site-loading {
    position: absolute;
    left: clamp(20px, 4vw, 56px);
    right: clamp(20px, 4vw, 56px);
    bottom: clamp(24px, 5vh, 52px);
}
#site-name {
    max-width: 900px;
    font-size: clamp(26px, 3.4vw, 46px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: 0.01em;
}
#site-address {
    max-width: 720px;
    margin-top: 10px;
    font-size: clamp(11px, 1.05vw, 14px);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    opacity: 0.72;
}
#site-address:empty { display: none; }
#site-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: clamp(18px, 3.2vh, 30px);
}
#unity-progress-bar-empty {
    flex: 1 1 auto;
    max-width: 420px;
    height: 4px;
    border-radius: 2px;
    background: rgba(244, 237, 226, 0.26);
    overflow: hidden;
}
#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    border-radius: 2px;
    background: #F4EDE2;
    transition: width 0.3s ease;
}
#site-percent {
    min-width: 96px;
    font-size: 13px;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    opacity: 0.85;
}
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }
