/* ==========================
   BUD RUN
========================== */

.budrun-page {
    min-height: 260px;
    margin: 0;
    padding: 20px;

    background:
        radial-gradient(circle, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.04)),
        #fff0b8;
    background-size: 7px 7px, 100% 100%, 100% 100%;

    border-right: 4px solid #111;
    border-bottom: 4px solid #111;
    border-left: 4px solid #111;
}

.budrun-title-panel {
    position: relative;
    overflow: hidden;

    margin-bottom: 14px;
    padding: 12px;

    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.18) 2px, transparent 2px),
        linear-gradient(135deg, #164f7d, #2f89c7);
    background-size: 12px 12px, 100% 100%;

    border: 5px solid #111;
    text-align: center;
}

.budrun-title-panel::before,
.budrun-title-panel::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    background: #d92d1f;
    border: 4px solid #111;
    transform: rotate(45deg);
}

.budrun-title-panel::before {
    top: -48px;
    left: -36px;
}

.budrun-title-panel::after {
    right: -36px;
    bottom: -48px;
}

.budrun-logo {
    position: relative;
    z-index: 1;

    display: block;
    width: min(100%, 390px);
    height: auto;
    margin: 0 auto;
}

.budrun-title-panel h1 {
    margin: 0;
}

.budrun-tagline {
    position: relative;
    z-index: 1;
    display: inline-block;

    margin: 8px 0 0;
    padding: 6px 14px;

    background: #f6d13d;
    border: 3px solid #111;

    font-size: clamp(0.82rem, 2vw, 1rem);
    font-style: italic;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.budrun-start-panel,
.budrun-game-panel {
    padding: 14px;
    background: #f8e9bd;
    border: 4px solid #111;
}

.budrun-start-panel[hidden],
.budrun-game-panel[hidden] {
    display: none;
}

.budrun-start-art,
.budrun-scene-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border: 4px solid #111;
}

.budrun-intro {
    max-width: 620px;
    margin: 14px auto;

    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
}

.budrun-scene {
    margin: 0;
}

.budrun-story {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    margin-top: 14px;
    padding: 16px;

    background:
        radial-gradient(circle, rgba(0, 0, 0, 0.07) 1px, transparent 1px),
        #fff0b8;
    background-size: 7px 7px;

    border: 4px solid #111;

    font-family: "Trebuchet MS", Arial, sans-serif;
    text-align: center;
}

.budrun-story p,
.budrun-story ul {
    width: 100%;
    max-width: 620px;
    margin: 0;

    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.45;
    text-wrap: pretty;
}

.budrun-story ul {
    padding: 10px 14px;
    list-style: none;
    background: #f6d13d;
    border: 3px solid #111;
}

.budrun-story li + li {
    margin-top: 5px;
}

.budrun-story li::before {
    content: "★";
    margin-right: 8px;
    color: #d92d1f;
}

.budrun-page button,
.budrun-back-link {
    display: block;
    width: 100%;
    max-width: 560px;

    margin: 0 auto;
    padding: 12px 16px;

    background:
        radial-gradient(circle, rgba(0, 0, 0, 0.09) 1px, transparent 1px),
        #f6d13d;
    background-size: 6px 6px;
    color: #111;

    border: 3px solid #111;
    box-shadow: 4px 4px 0 #111;
    cursor: pointer;

    font: inherit;
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        transform 160ms ease,
        background-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease;
}

.budrun-start-button {
    background: #d92d1f;
    color: #fff;
    font-size: 1.08rem;
}

.budrun-story button {
    font-size: 1.47rem;
}

.budrun-back-link {
    max-width: 280px;
    margin-top: 14px;
    background: #2f6fa3;
    color: #fff;
}

.budrun-page button:hover,
.budrun-page button:focus-visible,
.budrun-back-link:hover,
.budrun-back-link:focus-visible {
    background: #d92d1f;
    color: #fff;
    outline: 3px solid #2f6fa3;
    outline-offset: 2px;
    transform: translateY(-2px) scale(1.01);
}

.budrun-page button:active,
.budrun-back-link:active {
    box-shadow: 1px 1px 0 #111;
    transform: translateY(2px);
}

@media (max-width: 760px) {
    .budrun-page {
        min-height: auto;
        padding: 12px 10px 16px;
        border-right: 0;
        border-left: 0;
    }

    .budrun-title-panel {
        margin-bottom: 12px;
        border-width: 4px;
    }

    .budrun-start-panel,
    .budrun-game-panel {
        padding: 10px;
        border-width: 3px;
    }

    .budrun-start-art,
    .budrun-scene-image,
    .budrun-story {
        border-width: 3px;
    }

    .budrun-story {
        padding: 12px;
    }

    .budrun-story p,
    .budrun-story ul {
        font-size: 1.4rem;
    }

    .budrun-story button {
        font-size: 1.35rem;
    }
}

@media (hover: none) {
    .budrun-page button:hover,
    .budrun-back-link:hover {
        outline-color: transparent;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .budrun-page button,
    .budrun-back-link {
        transition: none;
    }

    .budrun-page button:hover,
    .budrun-page button:focus-visible,
    .budrun-page button:active,
    .budrun-back-link:hover,
    .budrun-back-link:focus-visible,
    .budrun-back-link:active {
        transform: none;
    }
}
