:root {
    font-family: system-ui, Arial, sans-serif;
    color: #15233a;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

#map {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: #dce8f0;
    z-index: 0;
}

.panel {
    position: fixed;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    box-shadow: 0 5px 25px #13213b2f;
}

.game-panel {
    top: 16px;
    right: 16px;
    width: min(380px, calc(100vw - 32px));
    padding: 16px;
}

.brand-panel {
    bottom: 16px;
    right: 16px;
    max-width: min(315px, calc(100vw - 32px));
    padding: 12px;
    text-align: center;
}

.logo {
    display: block;
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
    margin: 0 auto 7px;
}

.brand-name {
    margin: 0;
    font-size: .92rem;
    line-height: 1.3;
    font-weight: 750;
}

.brand-title {
    margin: 7px 0 0;
    font-size: .84rem;
    color: #435674;
}

h1 {
    margin: 0 0 8px;
    font-size: 1.45rem;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 0 0 10px;
    font-size: .95rem;
}

#timer {
    font-variant-numeric: tabular-nums;
}

#timer.urgent {
    color: #c51d32;
}

#task {
    margin: 0 0 8px;
    font-size: 1.12rem;
    font-weight: 750;
}

#message {
    margin: 0 0 12px;
    min-height: 2.7em;
    font-size: .92rem;
    line-height: 1.4;
}

button {
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    background: #1556c0;
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: #0e3e8c;
}

button:focus-visible {
    outline: 3px solid #eaa724;
    outline-offset: 2px;
}

.leaflet-control-attribution {
    font-size: 11px;
}

@media (max-width: 760px) {
    .game-panel {
        top: 8px;
        left: 8px;
        width: min(355px, calc(100vw - 16px));
        padding: 12px;
    }

    .brand-panel {
        top: auto;
        bottom: 28px;
        right: 8px;
        max-width: 175px;
        padding: 8px;
    }

    .logo {
        max-width: 40px;
        max-height: 40px;
    }

    .brand-name {
        font-size: .68rem;
    }

    .brand-title {
        display: none;
    }
}