:root {
    --background-color: #0b0f1a;
    --primary-color: #f5f5f5;
    --accent-color: #ffd23f;
    --font-color: #f5f5f5;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    height: 100%;
    background: var(--background-color);
    color: var(--font-color);
    font-family: system-ui, sans-serif;
}

.display {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.background:not([src]) {
    display: none;
}

.chrome,
.stage,
.status-footer {
    position: relative;
    z-index: 1;
}

.logo {
    max-height: 6rem;
    margin-bottom: 1rem;
}

.logo:not([src]) {
    display: none;
}

.title {
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    margin: 0;
}

.subtitle {
    color: var(--primary-color);
    opacity: 0.8;
    margin: 0.25rem 0 1.5rem;
}

.jackpot {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 700;
    color: var(--accent-color);
    font-variant-numeric: tabular-nums;
}

.pause-overlay {
    margin-top: 1rem;
}

.pause-image {
    max-height: 8rem;
    margin-top: 0.5rem;
}

.pause-image:not([src]) {
    display: none;
}

.winner-image {
    max-height: 10rem;
    margin-bottom: 1rem;
}

.winner-image:not([src]) {
    display: none;
}

.cta-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    background: var(--accent-color);
    color: #0b0f1a;
    font-weight: 600;
    text-decoration: none;
}

#end-audio:not([src]) {
    display: none;
}

.status-footer {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    font-size: 0.75rem;
    opacity: 0.5;
}

/* Screens are shown/hidden by JS toggling the "hidden" utility class. */
.hidden {
    display: none !important;
}

/* Clean Mode (?clean=1): strip non-essential chrome for projection/OBS. */
body.clean-mode .status-footer {
    display: none;
}

.controls {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.control-button {
    padding: 0.6rem 1.75rem;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--accent-color);
    color: #0b0f1a;
}

.control-button:hover {
    filter: brightness(1.08);
}

.control-button-end {
    background: transparent;
    color: var(--font-color);
    border: 1px solid currentColor;
}

.control-error {
    width: 100%;
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: #ff6b6b;
}

body.clean-mode .controls {
    display: none;
}
