/* Monkey Scoring - Base styles
   Event colors: black (#0d0d0d background) and yellow (#d4b800 accent) */

:root {
    --color-bg:      #0d0d0d;
    --color-surface: #1a1a1a;
    --color-accent:  #d4b800;   /* event yellow */
    --color-text:    #e0e0e0;
    --color-muted:   #666;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* Landscape on iOS would otherwise inflate every font on its own. */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: monospace;
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* App-like feel once installed: no pull-to-refresh mid-scoring, no scroll
       chaining out of the page. */
    overscroll-behavior-y: contain;
}

/* Faded brand background on every page. Painted by a fixed pseudo-element so
   it works even when a page stylesheet overrides the body background; low
   opacity keeps text readable. `contain` keeps the whole image visible. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url("/static/background.jpg") center / contain no-repeat;
    opacity: 0.14;
    pointer-events: none;
}

.container {
    text-align: center;
    padding: 2rem;
}

h1 {
    font-size: 2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.status.ok {
    color: #4caf50;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.checklist {
    list-style: none;
    text-align: left;
    display: inline-block;
}

.checklist li {
    padding: 0.3rem 0;
    color: #9e9e9e;
    font-size: 0.9rem;
}

.checklist li::before {
    content: "[x] ";
    color: var(--color-accent);
}

.ga-floating-logout {
    position: fixed;
    top: 0.5rem;
    right: 0.7rem;
    z-index: 9999;
    color: #555;
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: #111;
    border: 1px solid #222;
    border-radius: 5px;
    padding: 0.3rem 0.6rem;
    transition: color 0.12s, border-color 0.12s;
}
.ga-floating-logout:hover {
    color: #ddd;
    border-color: #555;
}
.ga-floating-login {
    color: #77aadd;
    border-color: #335588;
}
.ga-floating-login:hover {
    color: #aaccff;
    border-color: #6699cc;
}

.comp-name-link {
    color: inherit;
    text-decoration: none;
}
.comp-name-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Phones ------------------------------------------------------------- */
@media (max-width: 640px) {
    /* The floating login/logout pill sits over page headers: keep it thumb
       sized and clear of the notch. */
    .ga-floating-logout {
        top: max(0.5rem, env(safe-area-inset-top));
        padding: 0.45rem 0.7rem;
    }

    /* Under 16px, iOS zooms the page in as soon as a field takes focus. Pages
       that need a different size override this in their own stylesheet. */
    input,
    select,
    textarea {
        font-size: 16px;
    }
}
