#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

/* The exhibits, down the left under the badge. */
#list {
    left: max(14px, env(safe-area-inset-left));
    top: calc(max(14px, env(safe-area-inset-top)) + 58px);
    transform: none;
    display: flex;
    flex-direction: column;
    padding: 10px;
    z-index: 2;
}

#list button, #clips button {
    text-align: left;
    padding: 9px 10px;
    white-space: nowrap;
    clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

#list button:hover, #clips button:hover { color: var(--punch); }
#list button.on, #clips button.on { color: #000; background: var(--punch); }

/* The picture the models were made from, top-right. */
#source {
    left: auto;
    right: max(14px, env(safe-area-inset-right));
    top: max(14px, env(safe-area-inset-top));
    transform: none;
    margin: 0;
    padding: 10px;
    z-index: 2;
}

#source img { display: block; height: 150px; width: auto; }
#source[hidden] { display: none; }

/* Clips for the models on show, above the bar. */
#clips {
    bottom: calc(var(--gap) + 66px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    padding: 8px 10px;
    max-width: min(900px, calc(100vw - 32px));
    max-height: 30vh;
    overflow-y: auto;
    z-index: 2;
}

#clips[hidden] { display: none; }

/* Each model's numbers, on the floor in front of it. */
#labels { position: fixed; inset: 0; pointer-events: none; }

.label {
    position: absolute;
    transform: translate(-50%, 0);
    text-align: center;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
}

.label b { display: block; font: 700 17px/1.3 "Chakra Petch", sans-serif; color: var(--punch); }
.label span { display: block; color: #d0d0d6; }

@media (max-width: 700px) {
    #source img { height: 90px; }
    #list { padding: 6px; }
    #list button { padding: 7px 8px; }
    .label { font-size: 11px; }
    .label b { font-size: 14px; }
}
