.stadium-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--app-stadium-sky-1) 0%, var(--app-stadium-sky-2) 100%);
    border-radius: 8px;
    padding: 0;
}

/* On mobile, let the stadium canvas bleed past the page padding to be bigger. */
@media screen and (max-width: 768px) {
    .stadium-wrapper {
        margin: 0 -2rem;
        border-radius: 0;
    }
}

.stadium-wrapper canvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Shown in place of the canvas when a WebGL context can't be created. */
.stadium-webgl-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 180px;
    padding: 2rem;
    color: var(--app-stadium-ink);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Only a canvas whose OrbitControls are enabled invites dragging. */
.stadium-wrapper-interactive canvas {
    cursor: grab;
}

.stadium-wrapper-interactive canvas:active {
    cursor: grabbing;
}

.stadium-controls-toggle {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--app-white-rgb), 0.25);
    border-radius: 50%;
    background: rgba(var(--app-stadium-controls-rgb), 0.55);
    color: var(--app-ink-on-accent);
    cursor: pointer;
}

.stadium-controls-toggle:hover,
.stadium-controls-toggle[aria-pressed="true"] {
    background: rgba(var(--app-stadium-controls-rgb), 0.85);
    border-color: rgba(var(--app-white-rgb), 0.5);
}

/* Keep the button clear of the mobile bleed-out edge. */
@media screen and (max-width: 768px) {
    .stadium-controls-toggle {
        top: 0.75rem;
        right: 2.5rem;
    }
}

/* Time-of-day slider under the 3D view: dawn → day → dusk → night. */
.stadium-daylight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.stadium-daylight__label {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    margin: 0;
    min-width: 8.5rem;
}

.stadium-daylight__caption {
    font-size: 0.75rem;
    opacity: 0.6;
}

.stadium-daylight__value {
    font-size: 0.9rem;
    font-weight: 600;
}

.stadium-daylight__slider {
    flex: 1;
}

.form-range {
    max-width: 150px;
}

/* Bootstrap's range track is `--bs-tertiary-bg`, which is all but white and
   disappears on the page background — grey it, and make the knob the accent
   colour with a dark rim so it reads on top. The vendor pseudo-elements need
   separate rules: a single unknown selector would drop the whole list. */
.stadium-daylight__slider::-webkit-slider-runnable-track {
    height: 0.5rem;
    background-color: var(--bs-gray-400);
    border-radius: 1rem;
}

.stadium-daylight__slider::-moz-range-track {
    height: 0.5rem;
    background-color: var(--bs-gray-400);
    border-radius: 1rem;
}

[data-bs-theme=dark] .stadium-daylight__slider::-webkit-slider-runnable-track {
    background-color: var(--bs-border-color);
}

[data-bs-theme=dark] .stadium-daylight__slider::-moz-range-track {
    background-color: var(--bs-border-color);
}

.stadium-daylight__slider::-webkit-slider-thumb {
    box-sizing: border-box;
    width: 1.15rem;
    height: 1.15rem;
    /* Bootstrap centres a borderless 1rem knob on the track; this one is bigger. */
    margin-top: -0.325rem;
    background-color: var(--app-ground-lift);
    box-shadow: 0 0 3px rgba(var(--app-black-rgb), 0.3);
}

.stadium-daylight__slider::-moz-range-thumb {
    box-sizing: border-box;
    width: 1.15rem;
    height: 1.15rem;
    background-color: var(--bs-info);
    border: 2px solid var(--app-ink);
}

/* Bootstrap greys the knob out while dragging — keep it blue, just pressed. */
.stadium-daylight__slider::-webkit-slider-thumb:active {
    background-color: var(--bs-info);
    filter: brightness(0.88);
}

.stadium-daylight__slider::-moz-range-thumb:active {
    background-color: var(--bs-info);
    filter: brightness(0.88);
}

/* Ticket prices (#649): a stand whose name wraps onto a second line used to
   push its own input a line below its neighbours'. The cell fills the height of
   its row — its column is a flex item, so it stretches — and the label takes
   the slack, which leaves every input sitting on the row's bottom edge. */
.ticket-price-cell {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ticket-price-cell__label {
    flex: 1 0 auto;
}
