:root {
    --venture-ink: #20243a;
    --venture-indigo: #5145cd;
    --venture-purple: #7c3aed;
    --venture-coral: #ef6a67;
    --venture-gold: #f4b740;
    --venture-paper: #fffdf8;
}

html, body {
    color: var(--venture-ink);
    font-family: Inter, ui-rounded, 'Segoe UI', system-ui, sans-serif;
}

body {
    background:
        radial-gradient(circle at 78% 6%, rgba(244, 183, 64, .14), transparent 26rem),
        radial-gradient(circle at 20% 94%, rgba(124, 58, 237, .09), transparent 30rem),
        #f7f4ee;
}

a, .btn-link {
    color: #5546c7;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--venture-indigo), var(--venture-purple));
    border-color: var(--venture-indigo);
    box-shadow: 0 .25rem .7rem rgba(81, 69, 205, .2);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: linear-gradient(135deg, #4338b7, #6d28d9);
    border-color: #4338b7;
}

.btn {
    border-radius: .65rem;
    font-weight: 650;
}

.btn-success {
    background: linear-gradient(135deg, #087f67, #0e9f6e);
    border-color: #087f67;
}

main:not(:has(.game-page)) > .content {
    margin-inline: auto;
    max-width: 90rem;
    padding-bottom: 4rem;
}

main:not(:has(.game-page)) h1 {
    color: #2e276f;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.15rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -.045em;
    margin-top: .55rem;
}

main:not(:has(.game-page)) h1::after {
    background: linear-gradient(90deg, var(--venture-coral), var(--venture-gold));
    border-radius: 99rem;
    content: "";
    display: block;
    height: .3rem;
    margin-top: .55rem;
    width: 4.5rem;
}

.lead {
    color: #605d73;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.game-page {
    color: var(--game-text-colour, #212529);
    font-family: var(--game-font, 'Helvetica Neue', Helvetica, Arial, sans-serif);
    min-height: calc(100vh - 2.2rem);
}

main:has(.game-page) {
    background: var(--game-page-background, #fff);
}

.game-page h1,
.game-page .game-text h2,
.game-page .game-text h3,
.game-page .game-text h4,
.game-page .game-text h5,
.game-page .game-text h6 {
    color: var(--game-heading-colour, inherit);
    font-family: var(--game-heading-font, var(--game-font, 'Helvetica Neue', Helvetica, Arial, sans-serif));
}

.game-player {
    max-width: 52rem;
}

.game-scene-image {
    aspect-ratio: 16 / 7;
    border-radius: .65rem;
    display: block;
    margin-bottom: 1.5rem;
    object-fit: cover;
    width: 100%;
}

.game-library-logo {
    aspect-ratio: 1;
    border-radius: 1rem;
    display: block;
    margin: 1.25rem auto 0;
    max-width: calc(100% - 2.5rem);
    object-fit: cover;
    width: 12rem;
}

.game-library-card {
    color: inherit;
    display: block;
    height: 100%;
    text-decoration: none;
}

.game-library-card .card {
    background: rgba(255, 253, 248, .92);
    border: 1px solid rgba(81, 69, 205, .15);
    border-radius: 1.15rem;
    box-shadow: 0 .35rem 1.2rem rgba(39, 32, 87, .08);
    overflow: hidden;
    position: relative;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.game-library-card .card::before {
    background: linear-gradient(90deg, var(--venture-coral), var(--venture-gold), var(--venture-purple));
    content: "";
    height: .35rem;
    inset: 0 0 auto;
    position: absolute;
}

.game-library-card:hover .card,
.game-library-card:focus-visible .card {
    border-color: rgba(81, 69, 205, .55);
    box-shadow: 0 1rem 2rem rgba(39, 32, 87, .16);
    transform: translateY(-5px) rotate(.15deg);
}

.game-library-card:focus-visible {
    border-radius: .375rem;
    outline: .2rem solid rgba(13, 110, 253, .35);
    outline-offset: .2rem;
}

.game-inventory {
    background: var(--game-panel-background, #f4f6f8);
    border: 1px solid var(--game-panel-border, #d9dee3);
    border-radius: .5rem;
    margin-bottom: 1.5rem;
    padding: .75rem 1rem;
}

.game-text {
    font-family: var(--game-story-font, Georgia, 'Times New Roman', serif);
    font-size: 1.12rem;
    line-height: 1.75;
    margin-bottom: 1.75rem;
}

.game-text h2,
.game-text h3,
.game-text h4,
.game-text h5,
.game-text h6 {
    margin-top: 1.5rem;
}

.game-text::after {
    clear: both;
    content: "";
    display: block;
}

.game-inline-image {
    display: block;
    margin-block: .5rem 1rem;
    max-width: min(100%, 24rem);
}

.game-inline-image img {
    border-radius: var(--game-image-radius, .65rem);
    display: block;
    height: auto;
    max-width: 100%;
}

.game-inline-image-left {
    float: left;
    margin-right: 1.25rem;
}

.game-inline-image-right {
    float: right;
    margin-left: 1.25rem;
}

.game-inline-image-center {
    margin-inline: auto;
}

.game-inline-image-missing {
    color: #b42318;
    font-style: italic;
}

@media (max-width: 575.98px) {
    .game-inline-image-left,
    .game-inline-image-right {
        float: none;
        margin-inline: auto;
    }
}

.game-colour-red { color: #b42318; }
.game-colour-orange { color: #b54708; }
.game-colour-yellow { color: #8a6100; }
.game-colour-green { color: #067647; }
.game-colour-blue { color: #175cd3; }
.game-colour-purple { color: #6938ef; }
.game-colour-black { color: #101828; }
.game-colour-white { color: #fff; background: #344054; padding: 0 .15rem; }

.game-style-left,
.game-style-center,
.game-style-right {
    display: block;
    width: 100%;
}

.game-style-left { text-align: left; }
.game-style-center { text-align: center; }
.game-style-right { text-align: right; }

.game-style-underlined {
    text-decoration: underline;
}

.game-style-struck {
    text-decoration: line-through;
}

.game-style-serif {
    font-family: Georgia, 'Times New Roman', serif;
}

.game-style-monospace {
    font-family: 'Cascadia Mono', Consolas, monospace;
}

.game-style-uppercase {
    letter-spacing: .14em;
    text-transform: uppercase;
}

.game-style-large {
    font-size: 1.45em;
}

.game-style-small {
    font-size: .75em;
}

.game-style-speech,
.speech {
    color: var(--game-speech-colour, var(--game-accent, #5145cd));
    font-style: italic;
    quotes: "“" "”";
}

.game-style-speech::before,
.speech::before {
    content: open-quote;
}

.game-style-speech::after,
.speech::after {
    content: close-quote;
}

.game-style-light-swatch {
    background: #f4f1e8;
    border-radius: .2rem;
    padding: .1rem .35rem;
}

.game-choices {
    display: grid;
    gap: .75rem;
}

.game-choice {
    border-color: var(--game-accent, #0d6efd);
    color: var(--game-accent, #0d6efd);
    text-align: left;
}

.game-choice:hover,
.game-choice:focus-visible {
    background: var(--game-accent, #0d6efd);
    border-color: var(--game-accent, #0d6efd);
    color: var(--game-accent-text, #fff);
}

.game-choice-number {
    font-weight: 700;
}

.game-ending {
    margin-top: 1.5rem;
}

.game-inline-link {
    appearance: none;
    background: none;
    border: 0;
    color: var(--game-link-colour, #006bb7);
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
}

.game-inline-link:hover,
.game-inline-link:focus-visible {
    color: var(--game-link-hover-colour, #0a58ca);
}

.game-link-dialog {
    border: 0;
    border-radius: .75rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .25);
    max-width: min(32rem, calc(100vw - 2rem));
    padding: 0;
    width: 100%;
}

.game-link-dialog::backdrop {
    background: rgba(16, 24, 40, .55);
}

.game-link-dialog-content {
    padding: 1.5rem;
}

.help-page {
    max-width: 78rem;
}

.help-header {
    margin-bottom: 2.25rem;
    max-width: 52rem;
}

.help-kicker {
    color: #7a3470;
    display: block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.help-layout {
    align-items: start;
    display: grid;
    gap: clamp(2rem, 5vw, 4.5rem);
    grid-template-columns: 14rem minmax(0, 1fr);
}

.help-sidebar {
    min-width: 0;
    position: sticky;
    top: 1.5rem;
}

.help-content {
    min-width: 0;
}

.help-page section {
    border-top: 1px solid rgba(81, 69, 205, .16);
    margin-top: 4.5rem;
    padding-top: 1.25rem;
    scroll-margin-top: 1rem;
}

.help-page section:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.help-page h3 {
    color: #393174;
    font-size: 1.15rem;
    margin-top: 2rem;
    scroll-margin-top: 1rem;
}

.help-page h3 > a {
    color: inherit;
    text-decoration: none;
}

.help-page h3 > a:hover {
    text-decoration: underline;
    text-decoration-color: var(--venture-coral);
    text-underline-offset: .25rem;
}

.help-heading-link {
    align-items: baseline;
    color: #2e276f;
    display: flex;
    gap: .6rem;
    text-decoration: none;
}

.help-heading-link h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.025em;
}

.help-heading-link span {
    color: var(--venture-coral);
    opacity: 0;
}

.help-heading-link:hover span,
.help-heading-link:focus-visible span {
    opacity: 1;
}

.help-page pre {
    background: linear-gradient(145deg, #171827, #242641);
    border: 1px solid #36395e;
    border-radius: .8rem;
    box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 .5rem 1.2rem rgba(32, 36, 58, .1);
    color: #eef4f8;
    overflow-x: auto;
    padding: 1rem 1.25rem;
}

.help-page code {
    font-family: Consolas, 'Courier New', monospace;
}

.help-toc {
    align-items: stretch;
    background: rgba(255, 253, 248, .9);
    border: 1px solid rgba(81, 69, 205, .16);
    border-radius: .9rem;
    box-shadow: 0 .45rem 1.4rem rgba(39, 32, 87, .06);
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .8rem;
}

.help-toc-title {
    color: #777287;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    padding: .35rem .55rem .55rem;
    text-transform: uppercase;
}

.help-toc a {
    border-radius: .5rem;
    color: #4b4565;
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.3;
    padding: .55rem;
    text-decoration: none;
}

.help-toc a:hover,
.help-toc a:focus-visible {
    background: #eeeafd;
    color: #3f3293;
}

.help-example {
    background: rgba(255, 253, 248, .7);
    border: 1px solid rgba(81, 69, 205, .14);
    border-radius: 1rem;
    margin-top: 1.5rem;
    padding: .1rem 1.25rem 1.25rem;
}

.help-table-wrap {
    border: 1px solid rgba(81, 69, 205, .16);
    border-radius: .8rem;
    margin: 1.25rem 0;
    overflow-x: auto;
}

.help-reference-table {
    background: rgba(255, 253, 248, .72);
    border-collapse: collapse;
    min-width: 38rem;
    width: 100%;
}

.help-reference-table th,
.help-reference-table td {
    border-bottom: 1px solid rgba(81, 69, 205, .12);
    padding: .75rem .9rem;
    text-align: left;
    vertical-align: top;
}

.help-reference-table th {
    background: #eeeafd;
    color: #393174;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.help-reference-table tbody tr:last-child td {
    border-bottom: 0;
}

.help-command-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.help-command-list article {
    background: rgba(255, 253, 248, .72);
    border: 1px solid rgba(81, 69, 205, .14);
    border-radius: .8rem;
    padding: 0 1.1rem 1rem;
}

.help-command-list article h3 {
    margin-top: 1rem;
}

.help-command-list article pre {
    margin-bottom: 0;
}

.help-underlined { text-decoration: underline; }
.help-serif { font-family: Georgia, 'Times New Roman', serif; }
.help-uppercase { text-transform: uppercase; }
.help-large { font-size: 1.2em; }
.help-speech { font-family: Georgia, 'Times New Roman', serif; font-style: italic; }
.help-colour-red { color: #c62828; }
.help-colour-orange { color: #d65f00; }
.help-colour-yellow { color: #8a7000; }
.help-colour-green { color: #087f5b; }
.help-colour-blue { color: #1769aa; }
.help-colour-purple { color: #7c3aed; }
.help-colour-white { background: #34364d; color: #fff; padding-inline: .2rem; }

.help-footer {
    align-items: center;
    border-top: 1px solid rgba(81, 69, 205, .18);
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 4.5rem;
    padding-top: 1.5rem;
}

.help-footer p {
    flex-basis: 100%;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

@media (max-width: 850px) {
    .help-layout {
        grid-template-columns: 1fr;
    }

    .help-sidebar {
        position: static;
    }

    .help-toc {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .help-toc-title {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .help-toc {
        grid-template-columns: 1fr;
    }
}

.faq-list {
    display: grid;
    gap: .75rem;
}

.faq-list details {
    background: rgba(255, 253, 248, .85);
    border: 1px solid rgba(81, 69, 205, .16);
    border-radius: .85rem;
    box-shadow: 0 .25rem .8rem rgba(39, 32, 87, .05);
    padding: 1rem 1.15rem;
}

.faq-list summary {
    color: #3b337f;
    cursor: pointer;
    font-weight: 600;
}

.faq-list details p {
    margin: .75rem 0 0;
}

.badge.text-bg-secondary {
    background: #eeeafd !important;
    border: 1px solid #d9d2fa;
    color: #4a3ca2 !important;
    font-weight: 650;
}

.form-control,
.form-select {
    border-color: #cbc6dc;
    border-radius: .65rem;
}

.alert {
    border: 0;
    border-radius: .85rem;
    box-shadow: 0 .3rem .9rem rgba(39, 32, 87, .06);
}

.home-hero {
    align-items: center;
    display: grid;
    gap: clamp(2rem, 6vw, 6rem);
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, .6fr);
    min-height: 31rem;
    padding: clamp(2rem, 5vw, 5rem) 0;
}

.home-hero-copy {
    max-width: 48rem;
}

.home-kicker {
    color: #7a3470;
    display: inline-block;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .15em;
    margin-bottom: .65rem;
    text-transform: uppercase;
}

.home-hero .lead {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.65;
    max-width: 44rem;
}

.home-hero-logo {
    aspect-ratio: 1;
    display: block;
    filter: drop-shadow(.55rem .65rem .18rem rgba(31, 24, 70, .3));
    height: auto;
    max-width: 22rem;
    width: 100%;
}

.home-features {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 3rem;
}

.home-features article {
    background: rgba(255, 253, 248, .88);
    border: 1px solid rgba(81, 69, 205, .14);
    border-radius: 1.15rem;
    box-shadow: 0 .5rem 1.5rem rgba(39, 32, 87, .07);
    padding: 1.6rem;
}

.home-feature-icon {
    color: var(--venture-coral);
    font-size: 2rem;
    font-weight: 800;
}

.home-features h2 {
    color: #393174;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: .55rem 0;
}

.home-features p {
    color: #605d73;
    line-height: 1.6;
    margin: 0;
}

.home-callout {
    align-items: center;
    background: linear-gradient(110deg, #29245f, #5145cd);
    border-radius: 1.15rem;
    box-shadow: 0 1rem 2rem rgba(39, 32, 87, .16);
    color: #fff;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding: 1.5rem 1.75rem;
}

.home-callout p {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.home-callout a {
    color: #ffe49a;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .home-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .home-hero-logo {
        max-width: 16rem;
    }

    .home-features {
        grid-template-columns: 1fr;
    }

    .home-callout {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .game-library-card .card {
        transition: none;
    }
}
.code-mirror-editor {
    background: var(--venture-paper);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
}

.code-mirror-editor:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.code-mirror-editor .cm-editor.cm-focused {
    outline: none;
}

.code-mirror-editor .cm-game-directive {
    color: #8a2be2;
    font-weight: 700;
}

.code-mirror-editor .cm-game-heading {
    color: #087990;
    font-weight: 700;
}

.code-mirror-editor .cm-game-string {
    color: #198754;
}

.game-editor-files .card-body {
    max-height: 24rem;
    overflow: auto;
}

.game-file-menu {
    background: #f8f7fc;
    display: grid;
    gap: .8rem;
    padding: .8rem;
}

.game-file-action-group {
    display: grid;
    gap: .4rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-file-action-heading {
    color: #777287;
    font-size: .68rem;
    font-weight: 800;
    grid-column: 1 / -1;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.game-file-action-group .btn {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    margin: 0;
    min-height: 2rem;
    white-space: nowrap;
    width: 100%;
}

.game-file-tree ul {
    border-left: 1px solid rgba(81, 69, 205, .16);
    margin-left: .65rem;
    padding-left: .45rem;
}

.game-file-tree-item {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: .4rem;
    color: var(--venture-ink);
    display: flex;
    font-family: var(--bs-font-monospace);
    font-size: .82rem;
    gap: .35rem;
    padding: .25rem .35rem;
    text-align: left;
    width: 100%;
}

.game-file-tree-item:hover {
    background: rgba(81, 69, 205, .08);
}

.game-file-tree-item.active {
    background: #eeeafd;
    color: #3f3293;
    font-weight: 700;
}

.game-editor-file-heading {
    align-items: center;
    display: flex;
    gap: .5rem;
}

.game-editor-heading-row {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.game-editor-heading-tools {
    align-items: center;
    display: flex;
    gap: .5rem;
    min-width: 0;
    width: min(100%, 52rem);
}

.game-editor-fullscreen-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.game-editor-workspace.is-fullscreen {
    background: var(--venture-paper);
    display: flex;
    flex-direction: column;
    inset: 0;
    padding: 1rem;
    position: fixed;
    z-index: 2000;
}

.game-editor-fullscreen-layout::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--venture-paper);
    z-index: 1999;
}

.game-editor-fullscreen-layout .game-editor-files {
    position: fixed;
    inset: 1rem auto 1rem 1rem;
    width: 16rem;
    margin-top: 0 !important;
    overflow-y: auto;
    z-index: 2001;
}

.game-editor-fullscreen-layout .game-editor-workspace.is-fullscreen {
    left: 18rem;
    overflow-y: auto;
}

.game-editor-workspace.is-fullscreen .game-editor-heading-row {
    flex-wrap: wrap;
}

.game-editor-workspace.is-fullscreen .game-editor-heading-tools {
    flex-wrap: wrap;
    width: 100%;
}

.game-editor-workspace.is-fullscreen .game-editor-search {
    flex: 1 1 20rem;
    flex-wrap: wrap;
}

.game-editor-workspace.is-fullscreen .code-mirror-editor {
    flex: 1 1 auto;
    min-height: 0;
}

.game-editor-workspace.is-fullscreen .game-editor-validation-results {
    flex: 0 1 auto;
    max-height: 35vh;
    overflow-y: auto;
}

.game-editor-workspace.is-fullscreen .code-mirror-editor .cm-editor {
    height: 100% !important;
}

.game-editor-workspace.is-fullscreen .code-mirror-editor .cm-content {
    min-height: calc(100vh - 6rem) !important;
}

.game-editor-search {
    display: flex;
    max-width: 44rem;
    width: 100%;
}

.game-editor-search .form-control {
    border-radius: 0;
    min-width: 8rem;
}

.game-editor-search .form-control:first-of-type {
    border-radius: .5rem 0 0 .5rem;
}

.game-editor-search .form-control:not(:first-of-type) {
    margin-left: -1px;
}

.game-editor-search .btn {
    border-radius: 0;
    margin-left: -1px;
}

.game-editor-search .btn:last-child {
    border-radius: 0 .5rem .5rem 0;
}

.game-editor-search-message {
    color: var(--bs-danger-text-emphasis);
    font-size: .82rem;
    margin: -.25rem 0 .5rem auto;
    max-width: 44rem;
}

@media (max-width: 575.98px) {
    .game-editor-heading-row {
        align-items: stretch;
        flex-direction: column;
    }

    .game-editor-search {
        max-width: none;
    }
}

.validation-issue-link {
    padding: 0;
    text-align: left;
    text-decoration: none;
}

.validation-issue-link:hover,
.validation-issue-link:focus-visible {
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .game-editor-heading-row,
    .game-editor-heading-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .game-editor-workspace.is-fullscreen {
        padding: .65rem;
    }

    .game-editor-fullscreen-layout .game-editor-files {
        inset: .65rem .65rem auto;
        width: auto;
        height: 30vh;
    }

    .game-editor-fullscreen-layout .game-editor-workspace.is-fullscreen {
        left: 0;
        top: calc(30vh + 1.3rem);
    }

    .code-mirror-editor .cm-editor {
        height: 28rem !important;
        font-size: 1rem !important;
    }

    .code-mirror-editor .cm-content {
        min-height: 27rem !important;
    }
}
.blog-page {
    width: min(52rem, 100%);
    margin-inline: auto;
}

.blog-header {
    margin-block: 1rem 2.5rem;
}

.blog-header .eyebrow {
    color: var(--bs-primary);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.blog-list {
    display: grid;
    gap: 1.25rem;
}

.blog-card,
.blog-empty {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(81, 69, 205, .18);
    border-radius: 1rem;
    background: var(--venture-paper);
    box-shadow: 0 .5rem 1.5rem rgba(37, 28, 91, .08);
}

.blog-card h2 a {
    color: inherit;
    text-decoration: none;
}

.blog-card h2 a:hover,
.blog-read-more:hover {
    color: var(--bs-primary);
}

.blog-meta {
    color: var(--bs-secondary-color);
    font-size: .88rem;
}

.blog-read-more {
    font-weight: 700;
    text-decoration: none;
}

.not-found-page {
    width: min(42rem, 100%);
    margin: clamp(3rem, 10vh, 7rem) auto;
    text-align: center;
}

.not-found-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .15em;
    margin-bottom: 1rem;
    color: var(--bs-primary);
    font-size: clamp(4rem, 14vw, 8rem);
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.08em;
}

.not-found-mark strong {
    font-size: .52em;
    transform: rotate(12deg);
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    margin-top: 2rem;
}

.home-blog {
    margin-top: clamp(3rem, 7vw, 5rem);
}

.home-blog-heading {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.home-blog-heading h2 {
    margin: .25rem 0 0;
}

.home-blog-heading > a {
    font-weight: 700;
    text-decoration: none;
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-blog-grid .blog-card {
    display: flex;
    flex-direction: column;
}

.home-blog-grid .blog-card h3 a {
    color: inherit;
    text-decoration: none;
}

.home-blog-grid .blog-read-more {
    margin-top: auto;
}

.blog-article {
    max-width: 48rem;
}

.blog-article footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(81, 69, 205, .18);
}

.blog-markdown {
    line-height: 1.75;
}

.blog-markdown h2,
.blog-markdown h3 {
    margin-top: 2em;
}

.blog-markdown blockquote {
    margin-inline: 0;
    padding: .25rem 1.25rem;
    border-left: .3rem solid var(--bs-primary);
    color: var(--bs-secondary-color);
}

.blog-markdown pre {
    padding: 1rem;
    overflow-x: auto;
    border-radius: .65rem;
    background: #17132b;
    color: #f6f2ff;
}

.blog-markdown img {
    max-width: 100%;
    height: auto;
    border-radius: .65rem;
}

.blog-markdown table {
    width: 100%;
    margin-block: 1rem;
}

.blog-markdown th,
.blog-markdown td {
    padding: .5rem;
    border: 1px solid rgba(81, 69, 205, .2);
}

.admin-blog-header {
    display: flex;
    gap: 1rem;
    align-items: start;
    justify-content: space-between;
}

.admin-blog-layout {
    display: grid;
    grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.blog-post-list .list-group-item {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    text-align: left;
}

.blog-editor-tabs {
    display: flex;
    gap: .5rem;
    margin-block: 1.5rem .75rem;
}

.blog-preview {
    min-height: 36rem;
    padding: 1.25rem;
    border: 1px solid rgba(81, 69, 205, .18);
    border-radius: .5rem;
    background: var(--venture-paper);
}

@media (max-width: 800px) {
    .admin-blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-post-list {
        max-height: 16rem;
        overflow-y: auto;
    }

    .home-blog-grid {
        grid-template-columns: 1fr;
    }
}

.game-editor-image-preview {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    margin: 1rem auto;
}
.password-field > .form-control {
    padding-right: 3.25rem;
}

.password-field > label {
    max-width: calc(100% - 3.25rem);
}

.password-toggle {
    position: absolute;
    top: .4375rem;
    right: .375rem;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: .375rem;
    background: transparent;
    color: var(--venture-ink);
    cursor: pointer;
}

.password-toggle:hover {
    background: rgba(81, 69, 205, .08);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--venture-indigo);
    outline-offset: -2px;
}

.password-eye-slash {
    display: none;
}

.password-toggle.is-visible .password-eye-slash {
    display: initial;
}
