/* /Components/PlayerPanel.razor.rz.scp.css */
.player[b-wzoja2dtzx] {
    box-sizing: border-box;
    width: min(664px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: clamp(14px, 3.8vw, 18px);
    text-align: center;
}

    .player p[b-wzoja2dtzx] {
        margin: 0;
    }

form[b-wzoja2dtzx] {
    width: 100%;
    display: flex;
    gap: 8px;
}

input[b-wzoja2dtzx] {
    box-sizing: border-box;
    flex: 1 1 0;
    min-width: 0;
    height: 48px;
    padding: 0 12px;
    font: inherit;
    color: #f2f2f2;
    background: #2b2d35;
    border: 1px solid #4a4d58;
    border-radius: 6px;
}

form button[b-wzoja2dtzx] {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 20px;
    font-size: inherit;
}

button.link[b-wzoja2dtzx] {
    height: auto;
    padding: 4px 8px;
    font-size: inherit;
    color: #9a9ca5;
    background: none;
    text-decoration: underline;
}

.code-box[b-wzoja2dtzx] {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #d8c27a;
    border-radius: 8px;
}

    .code-box code[b-wzoja2dtzx] {
        max-width: 100%;
        font-size: clamp(18px, 5.5vw, 26px);
        letter-spacing: 0.05em;
        color: #d8c27a;
        overflow-wrap: anywhere;
        user-select: all;
    }

    .code-box .buttons[b-wzoja2dtzx] {
        display: flex;
        gap: 8px;
    }

    .code-box .buttons button[b-wzoja2dtzx] {
        height: 44px;
        padding: 0 16px;
        font-size: inherit;
    }

.warning[b-wzoja2dtzx] {
    color: #d8c27a;
}

.error[b-wzoja2dtzx] {
    color: #ff8a80;
}
/* /Components/Rescue.razor.rz.scp.css */
/* Timeline (2.5 s): the hero rolls out of the maze (0-0.7 s) and hops up to the tower (to 1.15 s),
   the portcullis rises (1.1-1.4 s), the princess walks out (1.3-1.75 s), sparkles and hearts follow,
   and the caption pops in at 1.6 s; Rescue.razor ends the scene at 2.5 s. */
.rescue[b-s0oz91ui1o] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 17, 22, 0.94);
    outline: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    animation: fade-in-b-s0oz91ui1o 0.25s both;
}

    .rescue svg[b-s0oz91ui1o] {
        width: min(100% - 24px, 640px);
        max-height: calc(100% - 24px);
        animation: pop-in-b-s0oz91ui1o 0.35s ease-out both;
    }

.walls[b-s0oz91ui1o] {
    fill: none;
    stroke: #4d382a;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

    .walls.thin[b-s0oz91ui1o] {
        stroke-width: 3;
        opacity: 0.5;
    }

.stone[b-s0oz91ui1o] {
    fill: #d9ccb0;
    stroke: #4d382a;
    stroke-width: 3;
    stroke-linejoin: round;
}

.bars[b-s0oz91ui1o] {
    stroke: #d8c27a;
    stroke-width: 3.5;
    stroke-linecap: round;
    animation: lift-b-s0oz91ui1o 0.3s 1.1s ease-in both;
}

.hero[b-s0oz91ui1o] {
    animation: hop-up-b-s0oz91ui1o 1.15s both;
}

.spin[b-s0oz91ui1o] {
    animation: roll-b-s0oz91ui1o 0.7s cubic-bezier(0.3, 0.1, 0.6, 1) both;
}

/* Squash on landing, pressed against the ground under the ball. */
.squash[b-s0oz91ui1o] {
    transform-origin: 0 15px;
    animation: land-b-s0oz91ui1o 0.25s 1.15s ease-out;
}

.princess[b-s0oz91ui1o] {
    animation: walk-out-b-s0oz91ui1o 0.45s 1.3s linear both;
}

.sparkle[b-s0oz91ui1o] {
    animation: twinkle-b-s0oz91ui1o 0.5s ease-out both;
}

.heart[b-s0oz91ui1o] {
    animation: float-up-b-s0oz91ui1o 0.7s ease-out both;
}

.cheer[b-s0oz91ui1o] {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 2px;
    fill: #d8c27a;
    text-anchor: middle;
    transform-box: fill-box;
    transform-origin: center;
    animation: cheer-b-s0oz91ui1o 0.9s 1.6s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

/* Reduced motion: the final frame shows at once. The scene then ends after 1 s. */
@media (prefers-reduced-motion: reduce) {
    .rescue[b-s0oz91ui1o], .rescue *[b-s0oz91ui1o] {
        animation: none;
    }
}

@keyframes fade-in-b-s0oz91ui1o {
    from {
        opacity: 0;
    }
}

@keyframes pop-in-b-s0oz91ui1o {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
}

/* Offsets from the final spot on the plinth: rolling along the ground, then one hop onto the step and one onto the plinth. */
@keyframes hop-up-b-s0oz91ui1o {
    0% {
        transform: translate(-188px, 26px);
        animation-timing-function: cubic-bezier(0.3, 0.1, 0.6, 1);
    }

    60% {
        transform: translate(-74px, 26px);
        animation-timing-function: ease-out;
    }

    70% {
        transform: translate(-57px, -4px);
        animation-timing-function: ease-in;
    }

    80% {
        transform: translate(-40px, 13px);
        animation-timing-function: ease-out;
    }

    90% {
        transform: translate(-20px, -18px);
        animation-timing-function: ease-in;
    }

    100% {
        transform: none;
    }
}

/* One clockwise turn, ending upright with the face toward the tower. */
@keyframes roll-b-s0oz91ui1o {
    from {
        transform: rotate(-360deg);
    }
}

@keyframes land-b-s0oz91ui1o {
    from {
        transform: scale(1.2, 0.8);
    }
}

/* The markup holds the raised position; the animation starts closed. */
@keyframes lift-b-s0oz91ui1o {
    from {
        transform: none;
    }
}

/* From the doorway to beside the hero, bobbing with each step and growing slightly as she comes forward. */
@keyframes walk-out-b-s0oz91ui1o {
    0% {
        transform: translate(33px, 0) scale(0.9);
    }

    25% {
        transform: translate(25px, -3px) scale(0.93);
    }

    50% {
        transform: translate(17px, 0) scale(0.96);
    }

    75% {
        transform: translate(8px, -3px) scale(0.98);
    }

    100% {
        transform: none;
    }
}

@keyframes twinkle-b-s0oz91ui1o {
    from {
        transform: scale(0) rotate(-120deg);
    }

    60% {
        transform: scale(1.3);
    }
}

@keyframes float-up-b-s0oz91ui1o {
    from {
        opacity: 0;
        transform: translate(0, 26px) scale(0.3);
    }

    40% {
        opacity: 1;
    }
}

@keyframes cheer-b-s0oz91ui1o {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.6);
    }

    45%, to {
        opacity: 1;
        transform: none;
    }
}
/* /Components/RunSubmit.razor.rz.scp.css */
.run-submit p[b-9g7oxyqxca] {
    margin: 0;
    font-size: clamp(15px, 4vw, 22px);
    color: #9a9ca5;
}

    .run-submit p a[b-9g7oxyqxca] {
        color: #d8c27a;
    }
/* /Pages/Ranking.razor.rz.scp.css */
/* The page scrolls inside itself because the app locks the document height. */
.ranking[b-2ynmc6qrek] {
    box-sizing: border-box;
    height: 100%;
    height: 100dvh;
    overflow-y: auto;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

h1[b-2ynmc6qrek] {
    margin: 0;
    font-size: clamp(24px, 7vw, 40px);
    font-weight: normal;
    text-align: center;
}

.hint[b-2ynmc6qrek], .error[b-2ynmc6qrek] {
    margin: 0;
    color: #9a9ca5;
    font-size: clamp(14px, 3.8vw, 18px);
    text-align: center;
}

.error[b-2ynmc6qrek] {
    color: #ff8a80;
}

ol[b-2ynmc6qrek] {
    box-sizing: border-box;
    width: min(520px, 100%);
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

li[b-2ynmc6qrek] {
    display: grid;
    grid-template-columns: 2em minmax(0, 1fr) auto 1em;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: clamp(15px, 4.2vw, 20px);
    background: #2b2d35;
    border-radius: 6px;
}

    li.me[b-2ynmc6qrek] {
        outline: 2px solid #d8c27a;
    }

    li.apart[b-2ynmc6qrek] {
        margin-top: 10px;
    }

    li .rank[b-2ynmc6qrek] {
        color: #d8c27a;
        font-variant-numeric: tabular-nums;
    }

    li .nickname[b-2ynmc6qrek] {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    li .result[b-2ynmc6qrek] {
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    li .verified[b-2ynmc6qrek] {
        color: #7bc67e;
    }

.back[b-2ynmc6qrek] {
    color: #d8c27a;
    font-size: clamp(16px, 4.5vw, 22px);
}

.levels-nav[b-2ynmc6qrek] {
    display: flex;
    gap: 24px;
    align-items: center;
}

    .levels-nav a[b-2ynmc6qrek] {
        color: #d8c27a;
        font-size: clamp(16px, 4.5vw, 22px);
    }
