:root {
    --slabShadow: 8px 8px 0 #111, 9px 9px 0 white;
    --slabShadowMedium: 4px 4px 0 #111, 5px 5px 0 white;
}

body, html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-color: black;
    color: white;
    font-family: 'NSimSun', 'SimSun', 'Courier New', monospace;
    font-size: 20px;
    line-height: 1.55;
    scrollbar-width: thin;
    scrollbar-color: #2c2c2c black;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    background: black;
}

::-webkit-scrollbar-track {
    background: black;
}

::-webkit-scrollbar-thumb {
    background: black;
    border: 1px solid white;
    box-shadow: var(--slabShadowMedium);
}

::-webkit-scrollbar-thumb:hover {
    background: #111;
}

::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

::-webkit-scrollbar-corner {
    background: black;
}

#slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    image-rendering: auto;
    z-index: 0;
}

main {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 48px auto;
    padding: 36px 40px 40px;
    border: 1px solid white;
    background-color: black;
    box-sizing: border-box;
}

header {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: -16px;
}

h1, h2 {
    font-weight: normal;
    letter-spacing: 0.08em;
}

h1 {
    margin: 0;
    font-size: 40px;
    font-weight: bold;
}

.stretch {
    width: max-content;
    white-space: nowrap;
    transform-origin: left top;
}

.stretch.is-wrapped {
    width: auto;
    max-width: 100%;
    white-space: normal;
    transform: none;
}

p.stretch.is-wrapped {
    align-self: stretch;
    width: 100%;
}

h2 {
    margin: 0 0 14px 0;
    font-size: 26px;
}

.tagline {
    margin-top: 0;
    align-self: flex-start;
    font-size: inherit;
    font-weight: normal;
    font-synthesis: none;
}

.icon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 6px;
}

.platforms {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.platform {
    height: 34px;
    width: auto;
    display: block;
}

.platform.windows {
    height: 38px;
}

.links {
    margin: 0;
    text-align: right;
}

.links .separator {
    display: inline-block;
    height: 34px;
    font-size: 34px;
    line-height: 34px;
    vertical-align: middle;
}

.list-toggle {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: white;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 0.16em;
    cursor: pointer;
}

.mail-slot {
    height: 0;
    overflow: hidden;
}

.mail-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
}

.mail-prompt {
    margin: 0;
}

.mail-fields {
    display: flex;
    gap: 8px;
}

.mail-note {
    margin: 0;
    padding: 8px 10px;
    border: 1px solid white;
    background: black;
}

.mail-list input,
.mail-list button {
    background: black;
    color: white;
    border: 1px solid white;
    font: inherit;
    padding: 4px 8px;
}

.mail-list input {
    flex: 1;
    min-width: 0;
}

.mail-list button {
    margin: 0;
    text-decoration: none;
    box-shadow: var(--slabShadowMedium);
    cursor: pointer;
}

.folder {
    position: relative;
    margin-top: 64px;
}

.folder-tab {
    position: absolute;
    left: 0;
    top: -27px;
    height: 28px;
    line-height: 26px;
    padding: 0 18px;
    border: 1px solid white;
    border-bottom: 1px solid black;
    background: black;
    color: white;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
}

.folder-frame {
    border: 1px solid white;
    background: black;
    box-shadow: var(--slabShadow);
    line-height: 0;
}

.folder-cover {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.folder-cover img,
.sheet img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(1);
}

.sheet {
    height: 0;
    overflow: hidden;
    transition: height 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

.sheet:nth-child(2) {
    transition-delay: 0.26s;
}

.sheet:nth-child(3) {
    transition-delay: 0s;
}

.folder.is-open .sheet {
    height: var(--sheet-height, 0px);
}

.folder.is-open .sheet:nth-child(2) {
    transition-delay: 0s;
}

.folder.is-open .sheet:nth-child(3) {
    transition-delay: 0.28s;
}

.sheet a {
    display: block;
    text-decoration: none;
}

.sheet img {
    border-top: 1px solid white;
    box-sizing: border-box;
    transform: translateY(-28px);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.sheet:nth-child(2) img {
    transition-delay: 0.26s;
}

.folder.is-open .sheet img {
    transform: translateY(0);
}

.folder.is-open .sheet:nth-child(2) img {
    transition-delay: 0s;
}

.folder.is-open .sheet:nth-child(3) img {
    transition-delay: 0.28s;
}

.games {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-top: 28px;
}

p {
    margin: 0 0 12px 0;
    line-height: 1.3;
    text-align: justify;
}

a {
    color: white;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.separator {
    margin: 0 8px;
}

.site-foot {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-top: 52px;
    margin-bottom: -16px;
}

@media (max-width: 900px) {
    main {
        margin: 20px 12px;
        padding: 24px 16px 28px;
    }

    p {
        text-align: left;
    }

    .games {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 720px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    main {
        margin: 8px;
        padding: 16px 12px 18px;
    }

    .title-row {
        flex-wrap: wrap;
        gap: 4px 16px;
        margin-top: 0;
    }

    .stretch,
    .stretch.is-wrapped,
    p.stretch.is-wrapped {
        width: auto;
        max-width: 100%;
        white-space: normal;
    }

    .tagline {
        align-self: stretch;
        width: 100%;
    }

    .icon-row {
        flex-wrap: wrap;
        align-items: center;
        row-gap: 8px;
    }

    .folder {
        margin-top: 44px;
    }

    .site-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-top: 36px;
        margin-bottom: 0;
        font-size: 16px;
    }

    .mail-note,
    .mail-note a {
        overflow-wrap: anywhere;
    }
}
