body {
    background:
        repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, 0.28) 2px 3px),
        var(--bg);
}

::selection {
    color: #000;
    background: var(--green);
}

::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
    box-shadow: inset 1px 0 0 var(--line-soft);
}

::-webkit-scrollbar-thumb {
    background: var(--purple);
    box-shadow: inset 2px 2px 0 var(--purple-hot), inset -2px -2px 0 #2a0f5c;
}

@supports not selector(::-webkit-scrollbar) {
    html {
        scrollbar-color: var(--purple) var(--bg);
    }
}

.site-nav a.active::after,
.site-nav a:hover::after {
    display: none;
}

.site-nav a:hover,
.site-nav a.active {
    background: var(--purple);
    box-shadow: 0 0 0 4px var(--purple);
}

.game-title::after {
    content: "";
    display: inline-block;
    width: 0.42em;
    height: 0.09em;
    margin: 0 -0.5em 0 0.08em;
    background: var(--green);
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .game-title::after {
        animation: none;
    }
}

.wide,
.box {
    box-shadow:
        inset 0 0 0 1px var(--line-soft),
        inset 2px 2px 0 rgba(236, 228, 216, 0.1),
        inset -2px -2px 0 rgba(0, 0, 0, 0.55);
}

.wide > .section-head,
.box > .box-head {
    min-height: 34px;
    border-bottom: 0;
    background: linear-gradient(90deg, var(--purple), #2a0f5c 75%);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.6);
}

.wide > .section-head {
    margin: -26px -30px 22px;
    padding: 4px 8px 4px 12px;
}

.box > .box-head {
    margin: -20px -24px 14px;
    padding: 4px 8px 4px 12px;
}

.wide > .section-head h2,
.box > .box-head {
    font-family: var(--pixel);
    font-weight: 400;
    font-size: 17px;
    letter-spacing: 0.08em;
    color: #fff;
}

.wide > .section-head h2::before,
.box > .box-head .square {
    width: 12px;
    height: 12px;
    background: var(--paper);
    box-shadow: inset -2px -2px 0 var(--ink-3);
}

.wide > .section-head .sub {
    color: rgba(255, 255, 255, 0.7);
}

.wide > .section-head::after,
.box > .box-head::after {
    content: "";
    flex: none;
    width: 58px;
    height: 18px;
    margin-left: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='18' shape-rendering='crispEdges'%3E%3Cg fill='%23e6ddcf'%3E%3Crect width='18' height='18'/%3E%3Crect x='20' width='18' height='18'/%3E%3Crect x='40' width='18' height='18'/%3E%3C/g%3E%3Cg fill='%238a8178'%3E%3Crect y='16' width='18' height='2'/%3E%3Crect x='16' width='2' height='18'/%3E%3Crect x='20' y='16' width='18' height='2'/%3E%3Crect x='36' width='2' height='18'/%3E%3Crect x='40' y='16' width='18' height='2'/%3E%3Crect x='56' width='2' height='18'/%3E%3C/g%3E%3Cg fill='%23191515'%3E%3Crect x='5' y='11' width='7' height='2'/%3E%3Crect x='25' y='4' width='8' height='8' fill='none' stroke='%23191515' stroke-width='2'/%3E%3Cpath d='M45 4h2l2 2 2-2h2v2l-2 2 2 2v2h-2l-2-2-2 2h-2v-2l2-2-2-2z'/%3E%3C/g%3E%3C/svg%3E") no-repeat;
}

.wide > .section-head:not(:has(.merch-all))::after,
.box > .box-head::after {
    margin-left: auto;
}

.studio .clover {
    top: 9px;
    left: 10px;
    right: auto;
    width: 16px;
    height: 16px;
    fill: #fff;
}

.studio .box-head .square {
    visibility: hidden;
}

.btn-solid {
    box-shadow:
        inset 2px 2px 0 #fff,
        inset -2px -2px 0 var(--ink-3),
        3px 3px 0 #0007;
}

.btn-solid:hover {
    box-shadow:
        inset 2px 2px 0 #fff,
        inset -2px -2px 0 var(--ink-3),
        4px 4px 0 var(--purple);
}

.btn-solid:active,
.btn-line:active {
    transform: translate(2px, 2px);
    box-shadow: inset 2px 2px 0 var(--ink-3), inset -2px -2px 0 #fff;
}

.site-foot {
    border-top: 0;
    box-shadow: inset 0 2px 0 rgba(236, 228, 216, 0.25);
}

.foot-clock {
    flex: none;
    padding: 5px 12px;
    font-family: var(--mono);
    font-size: 15px;
    letter-spacing: 0.06em;
    color: var(--ink-2);
    box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.7), inset -1px -1px 0 rgba(236, 228, 216, 0.25);
}

@media (max-width: 600px) {
    .studio .clover {
        top: 8px;
        left: 6px;
        width: 12px;
        height: 12px;
    }
    .wide > .section-head {
        margin: -16px -12px 14px;
        padding: 3px 6px 3px 8px;
    }

    .box > .box-head {
        margin: -14px -10px 12px -4px;
        padding: 3px 6px 3px 8px;
    }

    .wide > .section-head,
    .box > .box-head {
        min-height: 28px;
    }

    .wide > .section-head h2,
    .box > .box-head {
        font-size: 13px;
    }

    .wide > .section-head h2::before,
    .box > .box-head .square {
        width: 9px;
        height: 9px;
        margin-right: 8px;
    }

    .wide > .section-head::after,
    .box > .box-head::after {
        width: 44px;
        height: 14px;
        margin-left: 10px;
        background-size: 44px 14px;
    }

    .foot-clock {
        font-size: 12px;
        padding: 3px 8px;
    }
}
