* { box-sizing: border-box; }
body {
    margin: 0;
    padding: 27px 15px 36px;
    background: #080b36 url("assets/blue-noise.gif") repeat;
    background-size: 144px 144px;
    color: #e6eaff;
    font: 21px/1.45 Arial, Helvetica, sans-serif;
}
a { color: #9ad8ff; text-decoration: underline; }
a:visited { color: #cab7ff; }
a:hover { color: #fff27b; }
a:focus-visible { outline: 3px dotted #fff27b; outline-offset: 4.5px; }
img { border: 0; max-width: 100%; height: auto; }
table { border-collapse: collapse; }
p { margin: 0 0 18px; }
h1, h2 { color: #fff27b; }
h1 { margin: 0 0 24px; font: bold 33px/1.2 Arial, Helvetica, sans-serif; }
h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.3; }
.site {
    width: 1308px;
    max-width: 100%;
    margin: 0 auto;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 18px 0;
}
@media screen and (min-width: 931px) {
    .site {
        --content-center-offset: 126px;
        position: relative;
        left: calc(-1 * var(--content-center-offset));
    }
    .masthead {
        position: relative;
        left: var(--content-center-offset);
    }
    .sidebar {
        transform: translateX(-48px);
    }
    .footer {
        position: relative;
        left: var(--content-center-offset);
    }
}
.masthead { padding: 0 0 21px; text-align: center; }
.masthead-inner { display: block; }
.logo-img { display: block; width: 580.5px; margin: 0 auto 60px; animation: logo-rock 4s ease-in-out infinite; transform-origin: 50% 65%; }
@keyframes logo-rock {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}
.tagline { margin: 7.5px 0 15px; color: #bcd9ff; font-size: 18px; }
.sidebar { position: relative; width: 234px; padding: 12px 0 0; vertical-align: top; text-align: center; }
.sidebar-rail { position: absolute; inset: -57px 0; overflow: hidden; pointer-events: none; mask-image: linear-gradient(to bottom, transparent, #000 63px, #000 calc(100% - 63px), transparent); transform: scaleX(-1); container-type: size; }
.sidebar-rail::before { content: ""; position: absolute; top: 0; left: calc(50% + 52.5px); width: 100cqh; height: 105px; background: url("assets/portal-ui/sidebar-strip-v2.png") repeat-x left top / 768px 105px; transform: rotate(90deg); transform-origin: top left; }
.navigation { position: relative; width: 100%; table-layout: fixed; margin-bottom: 33px; }
.navigation td { padding: 0; }
.navigation a {
    position: relative;
    display: block;
    width: 100%;
    z-index: 1;
    text-decoration: none;
}
.navigation .nav-button { position: relative; display: block; width: 177px; max-width: 100%; aspect-ratio: 156 / 148; margin: 0 auto; }
.navigation img { position: absolute; top: 0; left: 0; display: block; width: 100%; max-width: none; height: auto; }
.navigation .nav-button-wide img { width: calc(100% * 181 / 156); left: calc(-100% * 7 / 156); }
.navigation a:hover, .navigation a:focus-visible { z-index: 2; animation: tilt 1s infinite; }
.navigation a.current img { filter: drop-shadow(0 0 7.5px #ec8bff); }
@keyframes tilt {
    0%, 100% { transform: rotate(-7.5deg); }
    50% { transform: scale(1.5); }
}
@media (prefers-reduced-motion: reduce) {
    .logo-img, .navigation a:hover, .navigation a:focus-visible { animation: none; }
}
.main { padding: 27px 27px 15px; border: 4.5px ridge #7786c3; background: #0b1239; vertical-align: top; }
.welcome-table { width: 100%; table-layout: fixed; }
.welcome-copy { padding-right: 21px; }
.welcome-copy h1 { font-size: 31.5px; }
.happy-cell { width: 243px; text-align: center; }
.happy-render { display: block; width: 243px; margin: 0 auto; }
.caption { margin: 12px 0 0; color: #bcd9ff; font-size: 18px; text-align: center; }
hr { width: 100%; max-width: 765px; height: 28.5px; margin: 21px auto; border: 0; background: url("assets/classic/divider.gif") center / 100% 100% no-repeat; }
.explore-table { width: 100%; margin: 0 0 30px; }
.explore-table td { padding: 9px 0; }
.explore-table h2 { font-size: 25.5px; }
.explore-table p { margin-bottom: 7.5px; font-size: 19.5px; }
.explore-table .portal-cell { width: 147px; padding: 12px 24px 12px 0; }
.portal-cell img { display: block; width: 123px; margin: 0 auto; }
.updates { margin: 0 0 24px; border: 1.5px solid #6171b5; background: #101b4d; font-size: 19.5px; }
.section-title, .updates h2 { padding: 7.5px 13.5px 7.5px 42px; border-top: 1.5px solid #869cda; border-bottom: 1.5px solid #000727; background: #273b84 url("assets/portal-ui/header-walnut.png") no-repeat 12px center; color: #ffffff; font: bold 19.5px/1.4 Arial, Helvetica, sans-serif; }
.section-title, .updates h2 { background-size: 22.5px 22.5px; }
.updates h2 { margin: 0; }
.new-badge { float: right; width: 46.5px; height: 19.5px; margin-top: 3px; }
.updates .post-list { padding: 0 18px; }
.updates .updates-more { margin: 0; padding: 13.5px 18px; border-top: 1.5px dotted #53639e; text-align: right; }
.closing { margin: 21px 0 9px; color: #bcd9ff; font-size: 18px; text-align: center; }
.footer { padding: 21px 12px; color: #bcd9ff; font: 16.5px/1.7 Arial, Helvetica, sans-serif; text-align: center; }
.footer p { margin: 7.5px 0; }
.footer-menu { color: #8c9de0; }
.footer-menu a { white-space: nowrap; }
.page-intro { margin-bottom: 30px; }
.breadcrumbs { margin: 0 0 24px; color: #acb9db; font-size: 16.5px; }
.content-section { margin-bottom: 33px; }
.section-title { margin: 0 0 18px; }
.archive-list { width: 100%; font-size: 19.5px; }
.archive-list td { padding: 15px 12px; vertical-align: top; border-bottom: 1.5px dotted #53639e; }
.archive-label { width: 30%; font-weight: bold; }
.archive-list p { margin: 0 0 6px; }
.small, .inline-note { font-size: 18px; }
.muted { color: #acb9db; }
.inline-note { padding: 15px 18px; border: 1.5px dashed #6171b5; background: #101b4d; }
.collection-status { color: #bcd9ff; font-size: 16.5px; }
.empty-collection { margin-bottom: 33px; padding: 21px; border: 1.5px solid #53639e; background: #101b4d; }
.empty-collection h2 { font-size: 24px; }
.empty-collection p:last-child { margin-bottom: 0; }
.empty-collection .collection-status { margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1.5px; }
.flash-game { width: 960px; max-width: 100%; aspect-ratio: 16 / 13; margin: 24px auto; border: 4.5px ridge #7786c3; background: #000; }
.flash-game object, .flash-game ruffle-object, .flash-game ruffle-embed, .flash-game ruffle-player { display: block; width: 100%; height: 100%; }
.post-preview { padding: 21px 0; border-bottom: 1.5px dotted #53639e; }
.post-preview:last-child { border-bottom: 0; }
.post-date { margin: 0 0 7.5px; color: #bcd9ff; font-size: 16.5px; }
.post-preview h3 { margin: 0 0 12px; font-size: 24px; line-height: 1.3; }
.post-preview p:not(.post-date) { margin-bottom: 12px; }
.read-post { font-size: 18px; }
.devlog-entry h1 { margin-top: 12px; }
.devlog-entry h2 { margin-top: 36px; }
.devlog-entry img, .devlog-entry video { display: block; max-width: 100%; height: auto; margin: 24px auto; }
.devlog-posts > .devlog-entry { padding: 36px 0; border-bottom: 1.5px dotted #53639e; scroll-margin-top: 24px; }
.devlog-posts > .devlog-entry:first-child { padding-top: 6px; }
.devlog-posts > .devlog-entry:last-child { border-bottom: 0; }
.devlog-entry .post-title { margin: 6px 0 27px; font-size: 31.5px; line-height: 1.25; }
.post-title a, .post-title a:visited { color: #fff27b; text-decoration: none; }
.post-title a:hover { text-decoration: underline; }
.post-body { overflow-wrap: anywhere; }
.post-body h2 { margin: 36px 0 15px; }
.post-body h3 { color: #fff27b; margin: 30px 0 12px; }
.post-body blockquote { margin: 24px 0; padding: 6px 21px; border-left: 4.5px solid #7786c3; color: #bcd9ff; }
.post-body pre { overflow-x: auto; padding: 18px; background: #080b25; border: 1.5px solid #53639e; white-space: pre-wrap; }
.post-body li { margin-bottom: 7.5px; }
.post-body iframe { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 24px auto; border: 0; }
.post-body .ql-align-center { text-align: center; }
.post-body .ql-align-right { text-align: right; }
.post-body .ql-align-justify { text-align: justify; }
.post-navigation { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 18px; margin: 36px 0 12px; padding-top: 21px; border-top: 1.5px dotted #53639e; font-size: 18px; }
.post-navigation a { white-space: nowrap; }
@media screen and (max-width: 930px) {
    body { padding: 18px 9px; font-size: 21px; }
    .site, .site > tbody, .site > tbody > tr, .site > tbody > tr > td { display: block; width: 100%; }
    .site { border-spacing: 0; }
    .masthead { padding: 0 0 15px; }
    .logo-img { width: 472.5px; max-width: calc(100% - 24px); margin-bottom: 55.5px; }
    .tagline { font-size: 16.5px; }
    .sidebar { padding: 0 0 18px; }
    .sidebar-rail { display: none; }
    .navigation { display: block; margin: 0; }
    .navigation > tbody { display: flex; flex-wrap: wrap; justify-content: center; gap: 4.5px; }
    .navigation tr, .navigation td { display: block; padding: 0; }
    .navigation tr { flex: 0 0 calc((100% - 9px) / 3); }
    .navigation .nav-button { width: 100%; max-width: 168px; }
    .main { padding: 24px 18px 15px; }
    h1, .welcome-copy h1 { font-size: 31.5px; }
    .welcome-table, .welcome-table > tbody, .welcome-table > tbody > tr, .welcome-table > tbody > tr > td { display: block; width: 100%; }
    .welcome-copy { padding: 0; }
    .happy-cell { padding: 9px 0 0; }
    .happy-render { width: 210px; }
    .explore-table .portal-cell { width: 117px; padding-right: 18px; }
    .explore-table h2 { font-size: 24px; }
    .archive-list td { display: block; width: 100%; padding: 12px 6px; }
    .archive-list .archive-label { padding-bottom: 0; border: 0; }
    .archive-list td:last-child { padding-top: 6px; }
}
@media screen and (min-width: 931px) and (max-width: 1650px) {
    .sidebar {
        transform: translateX(51px);
    }
    .navigation .nav-button {
        width: 150px;
    }
}

@media screen and (min-width: 931px) and (max-width: 1350px) {
    .sidebar { transform: translateX(58px); }
    .navigation .nav-button { width: 132px; }
}

.framed-video { position: relative; width: 100%; aspect-ratio: 1420 / 860; margin: 30px 0; }
.framed-video iframe { position: absolute; left: 4.929577%; top: 8.139535%; width: 90.140845%; height: 83.72093%; border: 0; border-radius: 3.90625% / 6.944444%; background: #000; }
.framed-video::after { content: ""; position: absolute; inset: 0; background: url("assets/portal-ui/youtube-frame-v2.png") center / 100% 100% no-repeat; pointer-events: none; }
