/* --- Inclusive stage enter screen --- */

.enter-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 10002;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
}

.enter-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.enter-screen__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 860px;
    width: calc(100% - 32px);
    padding: 32px 20px 28px;
    font-family: system-ui, -apple-system, sans-serif;
    color: #fff;
    text-align: center;
}

.enter-screen__panel {
    display: none;
}

.enter-screen__logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.enter-screen__tag {
    display: none;
}

.enter-screen__title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.enter-screen__subtitle {
    margin: -8px 0 0;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
}

.enter-screen__boards {
    width: 100%;
}

.enter-screen__launch {
    padding: 12px 48px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: transparent;
    border: 1px solid #fff;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.enter-screen__launch:hover:not(:disabled) {
    background: #fff;
    color: #000;
}

.enter-screen__launch:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* --- Intro video (Launch Scales) — YouTube 360 default --- */
.intro-video {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    background: #000;
    z-index: 10004;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.intro-video.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-video__viewport {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.intro-video__player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.intro-video__yt,
.intro-video__yt iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.intro-video__drag-surface {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: grab;
    touch-action: none;
}

.intro-video__drag-surface.is-dragging {
    cursor: grabbing;
}

.intro-video__hint {
    margin: 0;
    padding: 10px 16px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    pointer-events: none;
}

.intro-video__skip {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    padding: 8px 18px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.intro-video__skip:hover {
    background: #fff;
    color: #000;
}

/* --- Shared scoreboard UI blocks --- */
.scoreboard-ui {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.scoreboard-ui__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.scoreboard-ui__label--secondary {
    margin-top: 8px;
}

.scoreboard-ui__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.scoreboard-ui__territory-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.scoreboard-ui__territory-name {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.scoreboard-ui__territory-value {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.scoreboard-ui__totals {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.scoreboard-ui__sep { color: rgba(255, 255, 255, 0.25); }
.scoreboard-ui__empty {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.scoreboard-ui__ecology {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.scoreboard-ui__ecology-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 11px;
}

.scoreboard-ui__ecology-label {
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
}

.scoreboard-ui__ecology-values {
    display: flex;
    gap: 12px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.75);
}

.scoreboard-ui__impact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.scoreboard-ui__impact-title {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-bottom: 4px;
}

.scoreboard-ui__impact-header,
.scoreboard-ui__impact-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    font-size: 10px;
    text-align: center;
}

.scoreboard-ui__impact-header {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.scoreboard-ui__impact-label {
    text-align: left;
    color: rgba(255, 255, 255, 0.55);
}

.scoreboard-ui__impact-present,
.scoreboard-ui__impact-projection {
    color: rgba(255, 255, 255, 0.75);
}

/* --- Stage fade overlay --- */
#stage-fade {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10003;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 1.2s ease;
}

#stage-fade.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* --- Scene stage visibility --- */
a-scene[data-stage="inclusive"] .a-canvas {
    visibility: hidden !important;
}

@media (max-width: 600px) {
    .scoreboard-ui__grid {
        grid-template-columns: 1fr;
    }
}
