/* SpotSurf's own touches on the panel: the in-game announcement window's look,
   from the game's menus (ink, celeste, neon, cut corners). */

.spotsurf-stage {
    display: flex;
    justify-content: center;
    padding: 32px 16px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 70% 20%, rgba(46, 242, 255, .18), transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(127, 214, 255, .14), transparent 50%),
        #0b0d11;
}

.spotsurf-modal {
    width: 100%;
    max-width: 560px;
    background: #f4f7fa;
    color: #0b0d11;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    overflow: hidden;
}

.spotsurf-modal__image {
    aspect-ratio: 16 / 9;
    background: #1c2230 center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a96a8;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.spotsurf-modal__words {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spotsurf-modal__kicker {
    font: 500 10px/1 ui-monospace, "IBM Plex Mono", monospace;
    letter-spacing: .18em;
    color: #0e7fa8;
}

.spotsurf-modal__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
}

.spotsurf-modal__body {
    font-size: 14px;
    line-height: 1.45;
    color: #3a4250;
    white-space: pre-line;
}

.spotsurf-modal__button {
    align-self: flex-start;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 46px;
    padding: 0 34px 0 20px;
    background: #0b0d11;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .16em;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
}

.spotsurf-diamond {
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
    background: #2ef2ff;
    box-shadow: 0 0 6px #2ef2ff, 0 0 14px rgba(46, 242, 255, .7);
}

/* The catalogue's previews: a ship turning on the same dark stage, and a
   universe variant's colours. */

.spotsurf-stage--3d {
    position: relative;
    padding: 0;
    min-height: 420px;
}

.spotsurf-stage--3d model-viewer {
    width: 100%;
    height: 420px;
    background: transparent;
    --poster-color: transparent;
}

.spotsurf-stage__empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a96a8;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    pointer-events: none;
}

.spotsurf-universe {
    position: relative;
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: #0b1030;
}

.spotsurf-universe__planet {
    position: absolute;
    width: 26%;
    aspect-ratio: 1;
    right: 14%;
    top: 12%;
    border-radius: 50%;
}

.spotsurf-universe__ring {
    position: absolute;
    width: 48%;
    aspect-ratio: 1;
    left: 26%;
    top: 14%;
    border: 3px solid #2ef2ff;
    border-radius: 50%;
    opacity: .85;
}

.spotsurf-universe__road {
    position: absolute;
    left: 30%;
    right: 30%;
    bottom: -10%;
    height: 45%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .14));
    clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
}

/* A trail flowing from a ship, drawn on a canvas as the form is filled in. */

.spotsurf-stage--trail {
    padding: 0;
    overflow: hidden;
}

.spotsurf-stage--trail canvas {
    display: block;
    width: 100%;
    height: 300px;
}

/* The authenticator's QR code: dark on white in either theme, as the apps read it. */
.spotsurf-qr {
    display: inline-block;
    padding: 8px;
    background: #fff;
    border-radius: 8px;
}

.spotsurf-qr svg {
    display: block;
    width: 184px;
    height: 184px;
}

/* The steps between the password and the panel may be taller than the screen: clear of the corner links. */
.spotsurf-step {
    padding: 56px 0 32px;
}
