.stage {
    container-type: inline-size;
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    background:
        radial-gradient(ellipse 60% 95% at 50% 100%, rgba(113, 165, 75, 0.14), transparent 70%),
        rgb(246, 246, 246);
    border-radius: 50% 50% 12px 12px / 60% 60% 12px 12px;
    font-family: "Titillium Web", sans-serif;
}

.stage-arcs {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
}

.stage-arcs path {
    stroke: rgba(0, 0, 0, 0.15);
    stroke-width: 1.5px;
    stroke-dasharray: 5 5;
    vector-effect: non-scaling-stroke;
}

.stage-seats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.seat,
.stage-conductor {
    box-sizing: border-box;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    min-width: calc(9cqw * var(--seat-scale, 1));
    padding: calc(0.6cqw * var(--seat-scale, 1)) calc(0.9cqw * var(--seat-scale, 1));
    transform: translate(-50%, -50%);
    text-align: center;
    line-height: 1.15;
    background: #fff;
    border-top: 0.5cqw solid var(--seat-color, #333);
    border-radius: 1cqw;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.seat-part {
    font-size: clamp(8px, calc(1.3cqw * var(--seat-scale, 1)), 17px);
    color: var(--seat-color, #555);
    font-weight: 600;
    white-space: nowrap;
}

.seat-name {
    font-size: clamp(9px, calc(1.75cqw * var(--seat-scale, 1)), 23px);
    color: #222;
    white-space: nowrap;
}

.stage-conductor {
    left: 50%;
    --seat-color: #222;
    background: #222;
}

.stage-conductor .seat-part {
    color: #cfe6bf;
}

.stage-conductor .seat-name {
    color: #fff;
}

.stage-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    font-size: 17px;
}

.stage-legend li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stage-legend li::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--seat-color);
}

/* Below this width the names would overlap, so narrow screens scroll the stage sideways instead. */
.stage-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
}

.stage-scroll .stage {
    min-width: 560px;
}

.stage-hint {
    display: none;
    margin: 8px 0 0;
    text-align: center;
    font-size: 14px;
    color: #888;
}

@media (max-width: 600px) {
    .stage-hint {
        display: block;
    }
}
