
.rp-shell {
    --rp-ink: #17213a;
    --rp-paper: #fff7df;
    --rp-accent: #ff5b3d;
    --rp-accent-2: #ffd447;
    --rp-green: #4bb36b;
    max-width: 1100px;
    margin: 30px auto;
    padding: 18px;
    border: 4px solid var(--rp-ink);
    border-radius: 24px;
    background: var(--rp-paper);
    box-shadow: 10px 10px 0 var(--rp-ink);
    font-family: "Trebuchet MS", Arial, sans-serif;
    color: var(--rp-ink);
}

.rp-header,
.rp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.rp-header {
    padding: 4px 4px 16px;
}

.rp-header h2,
.rp-card h3 {
    margin: 2px 0 0;
    line-height: 1;
}

.rp-header h2 {
    font-size: clamp(28px, 5vw, 52px);
}

.rp-kicker {
    font-size: 12px;
    letter-spacing: .16em;
    font-weight: 900;
    text-transform: uppercase;
    opacity: .72;
}

.rp-scoreboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.rp-scoreboard span {
    background: white;
    border: 3px solid var(--rp-ink);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
}

.rp-stage-wrap {
    position: relative;
    overflow: hidden;
    border: 4px solid var(--rp-ink);
    border-radius: 18px;
    background: #7fd6ff;
    aspect-ratio: 16 / 9;
}

.rp-canvas {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    background: #7fd6ff;
}

.rp-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(23, 33, 58, .18);
    backdrop-filter: blur(2px);
}

.rp-overlay.is-hidden {
    display: none;
}

.rp-card {
    width: min(520px, 92%);
    padding: 28px;
    text-align: center;
    background: #fff7df;
    border: 4px solid var(--rp-ink);
    border-radius: 22px;
    box-shadow: 8px 8px 0 var(--rp-ink);
}

.rp-card h3 {
    font-size: clamp(34px, 6vw, 64px);
}

.rp-card p {
    max-width: 430px;
    margin: 14px auto 20px;
    font-weight: 700;
}

.rp-button,
.rp-mobile-controls button {
    border: 3px solid var(--rp-ink);
    background: var(--rp-accent);
    color: white;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--rp-ink);
    transition: transform .08s ease, box-shadow .08s ease;
}

.rp-button {
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 17px;
}

.rp-button:active,
.rp-mobile-controls button:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--rp-ink);
}

.rp-help {
    margin-top: 16px;
    font-size: 12px;
    opacity: .72;
    font-weight: 700;
}

.rp-footer {
    padding: 14px 4px 2px;
    font-size: 12px;
    opacity: .78;
}

.rp-link-button {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 900;
    text-decoration: underline;
    cursor: pointer;
}

.rp-mobile-controls {
    display: none;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 10px;
    margin-top: 14px;
}

.rp-mobile-controls button {
    min-height: 52px;
    border-radius: 15px;
    color: var(--rp-ink);
    background: var(--rp-accent-2);
}

.rp-mobile-controls .rp-jump {
    background: var(--rp-green);
    color: white;
}

@media (max-width: 760px) {
    .rp-shell {
        margin: 14px 0;
        padding: 10px;
        border-radius: 16px;
        box-shadow: 5px 5px 0 var(--rp-ink);
    }

    .rp-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .rp-scoreboard {
        justify-content: flex-start;
    }

    .rp-mobile-controls {
        display: grid;
    }

    .rp-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
