@font-face {
    font-family: "Minifont";
    src: url("/assets/fonts/minifont/Minifont-Regular.ttf?v=1") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --voxel-black: #000;
    --voxel-white: #fff;
    --voxel-accent: #36a32f;
    --voxel-page-background: #97dfff;
    --voxel-focus: #777;
    --voxel-shadow: rgba(0, 0, 0, 0.38);
    --homepage-panel-gap: 20px;
    --world-card-gap: 14px;
    --voxel-font: "Minifont", monospace;
    font-synthesis: none;
}

.pixel-panel {
    color: var(--voxel-black);
    background: var(--voxel-white);
    border: 4px solid var(--voxel-black);
    border-radius: 0;
    box-shadow: 8px 8px 0 var(--voxel-shadow);
    box-sizing: border-box;
    image-rendering: pixelated;
}

.voxel-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 14px;
    border: 3px solid var(--voxel-black);
    border-radius: 0;
    color: var(--voxel-black);
    background: var(--voxel-white);
    font: 500 18px/1 var(--voxel-font);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    appearance: none;
}

.voxel-menu-button--primary {
    color: var(--voxel-white);
    background: var(--voxel-black);
    font-weight: 700;
}

.voxel-menu-button--accent {
    color: var(--voxel-white);
    background: var(--voxel-accent);
    font-weight: 700;
}

.voxel-menu-button:not(.voxel-menu-button--close):not(.voxel-menu-button--stable-hover):hover,
.voxel-menu-button--stable-hover.voxel-menu-button--hovered {
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
}

.voxel-menu-button--close:hover {
    transform: none;
    box-shadow: none;
}

.voxel-menu-button:active {
    transform: translate(0, 0);
    box-shadow: none;
}

.voxel-menu-button:focus-visible,
.voxel-menu-input:focus-visible,
.voxel-menu-crumb:focus-visible,
.world-card:focus-visible,
.footer-link:focus-visible,
.brand-link:focus-visible {
    outline: 3px solid var(--voxel-focus);
    outline-offset: 3px;
}

.voxel-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.voxel-menu-grid-span {
    grid-column: 1 / -1;
}

.voxel-menu-input {
    min-height: 46px;
    padding: 10px 12px;
    border: 3px dotted var(--voxel-black);
    border-radius: 0;
    color: var(--voxel-black);
    background: var(--voxel-white);
    font: 500 18px/1 var(--voxel-font);
    box-sizing: border-box;
}

.voxel-menu-range {
    width: 100%;
    height: 30px;
    margin: 4px 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
}

.voxel-menu-range::-webkit-slider-runnable-track {
    height: 12px;
    border: 3px solid var(--voxel-black);
    background: var(--voxel-white);
    box-sizing: border-box;
}

.voxel-menu-range::-webkit-slider-thumb {
    width: 18px;
    height: 26px;
    margin-top: -10px;
    border: 3px solid var(--voxel-black);
    border-radius: 0;
    background: var(--voxel-white);
    appearance: none;
    -webkit-appearance: none;
}

.voxel-menu-range::-moz-range-track {
    height: 8px;
    border: 3px solid var(--voxel-black);
    background: var(--voxel-white);
}

.voxel-menu-range::-moz-range-thumb {
    width: 14px;
    height: 22px;
    border: 3px solid var(--voxel-black);
    border-radius: 0;
    background: var(--voxel-white);
}

.miniwelt-page {
    min-width: 280px;
    min-height: 100%;
    margin: 0;
    color: var(--voxel-black);
    background: var(--voxel-page-background);
    font-family: var(--voxel-font);
    image-rendering: pixelated;
}

.miniwelt-page *,
.miniwelt-page *::before,
.miniwelt-page *::after {
    box-sizing: border-box;
}

.miniwelt-page img {
    max-width: 100%;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 10px;
    left: 10px;
    padding: 10px 12px;
    border: 3px solid var(--voxel-black);
    color: var(--voxel-white);
    background: var(--voxel-black);
    font: 700 16px/1 var(--voxel-font);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.homepage-shell {
    width: min(1480px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.site-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 18px 20px;
    margin: 0 auto var(--homepage-panel-gap);
}

.brand-link {
    display: block;
    flex: 0 1 340px;
    min-width: 180px;
}

.brand-logo {
    display: block;
    width: 200px;
    height: auto;
    image-rendering: pixelated;
}

.site-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.site-nav .voxel-menu-button {
    min-width: 158px;
}

.homepage-main {
    display: grid;
    gap: var(--homepage-panel-gap);
}

.homepage-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 470px;
    overflow: hidden;
    padding: 12px clamp(8px, 2vw, 36px) 24px;
    background: #6ad1ff;
}

.homepage-hero-copy {
    position: relative;
    z-index: 2;
    width: min(56%, 760px);
}

.homepage-hero-title {
    max-width: 760px;
    margin: 0;
    font-size: clamp(44px, 6vw, 72px);
    line-height: 1.08;
    letter-spacing: 0.01em;
}

.homepage-hero-title span {
    display: block;
}

.homepage-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: clamp(22px, 3vw, 38px);
}

.homepage-hero-actions .voxel-menu-button {
    min-width: 190px;
}

.homepage-shell .voxel-menu-button:not(.voxel-menu-button--close):not(.voxel-menu-button--stable-hover):active,
.homepage-shell .voxel-menu-button--stable-hover.voxel-menu-button--hovered:active {
    transform: translate(0px, 0px);
    box-shadow: none;
}

.homepage-hero-model {
    position: absolute;
    z-index: 1;
    inset: 0;
    height: auto;
}

.homepage-hero-model > canvas {
    display: block;
    image-rendering: pixelated;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.homepage-hero-model.is-dragging > canvas {
    cursor: grabbing;
}

.homepage-hero-clouds {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.homepage-hero-cloud {
    position: absolute;
    inset: 0;
    animation: homepage-cloud-drift var(--cloud-duration) linear var(--cloud-delay) infinite;
}

.homepage-hero-cloud-shape {
    position: absolute;
    top: var(--cloud-top);
    left: calc(var(--cloud-left) + 24px);
    width: 12px;
    height: 12px;
    opacity: 0.86;
    background: var(--voxel-white);
    box-shadow:
        12px 0 0 var(--voxel-white),
        -12px 12px 0 var(--voxel-white),
        0 12px 0 var(--voxel-white),
        12px 12px 0 var(--voxel-white),
        24px 12px 0 var(--voxel-white);
}

.homepage-hero-cloud-shape + .homepage-hero-cloud-shape {
    left: calc(var(--cloud-left) + 100% + 24px);
}

@keyframes homepage-cloud-drift {
    from { translate: 0 0; }
    to { translate: -100% 0; }
}

.world-section {
    padding: clamp(20px, 3vw, 34px);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1;
}

.section-copy {
    margin: 8px 0 0;
    font-size: 17px;
    line-height: 1.35;
}

.section-count {
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 2px solid var(--voxel-black);
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
}

.world-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--world-card-gap);
}

.world-grid--public {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.miniwelt-page[data-account-page="profile"] .world-grid--public {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.world-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 3px solid var(--voxel-black);
    color: var(--voxel-black);
    background: var(--voxel-white);
    box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.28);
    text-decoration: none;
    image-rendering: pixelated;
}

.world-card-link {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.world-card--empty {
    min-height: 240px;
    border-style: dashed;
}

.world-vote {
    min-height: 42px;
    border: 0;
    border-top: 3px solid var(--voxel-black);
    padding: 8px 12px;
    color: var(--voxel-black);
    background: var(--voxel-white);
    font: 700 16px/1 var(--voxel-font);
    cursor: pointer;
}

.world-vote:hover,
.world-vote:focus-visible {
    color: var(--voxel-white);
    background: var(--voxel-black);
}

.discovery-sort {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.discovery-sort .voxel-menu-button:not(.last) {
    border-right: none;
}

.discovery-sort .voxel-menu-button:hover {
    transform: translate(0px, 0px) !important;
    box-shadow: none !important;
}

.discovery-more {
    width: 100%;
    margin-top: 20px;
}

.world-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 9px 0 rgba(0, 0, 0, 0.15);
}

.world-card:active {
    transform: translate(2px, 2px);
    box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.35);
}

.world-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin: 0;
    border-bottom: 3px solid var(--voxel-black);
    background: #8ed169;
}

.world-thumbnail > img:first-child {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    transform: scale(1.02);
}

.world-badges {
    position: absolute;
    top: 9px;
    left: 9px;
    display: grid;
    gap: 5px;
}

.world-visibility-icon {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 29px;
    height: 29px;
    image-rendering: pixelated;
}

.world-badge {
    display: block;
    padding: 6px 7px;
    border: 2px solid var(--voxel-black);
    color: var(--voxel-black);
    background: var(--voxel-white);
    font-size: 13px;
    line-height: 1;
}

.world-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.world-card-heading {
    min-width: 0;
}

.world-card-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.world-author {
    display: block;
    margin-top: 6px;
    color: inherit;
    font-size: 13px;
    line-height: 1.2;
    opacity: 0.66;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.world-description {
    margin: 5px 0 0px;
    font-size: 15px;
    line-height: 1.35;
}

.site-footer {
    width: 100%;
    padding: clamp(22px, 3vw, 34px);
    margin: var(--homepage-panel-gap) auto 0;
}

.footer-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 3px dotted var(--voxel-black);
}

.footer-title {
    margin: 0;
    font-size: 28px;
    line-height: 1;
}

.footer-tagline {
    max-width: 620px;
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.35;
}

.footer-note {
    flex: 0 0 auto;
    font-size: 13px;
    line-height: 1.2;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    gap: 28px;
}

.footer-column h2 {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1;
}

.footer-column ul {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-link {
    color: var(--voxel-black);
    font-size: 15px;
    line-height: 1.2;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.footer-link:hover {
    color: var(--voxel-white);
    background: var(--voxel-black);
    text-decoration: none;
}

.route-shell {
    width: min(720px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: max(24px, env(safe-area-inset-top)) 0 max(36px, env(safe-area-inset-bottom));
    display: grid;
    align-content: center;
    gap: 20px;
}

.miniwelt-page[data-account-page="profile"] .route-shell {
    width: min(900px, calc(100% - 48px));
    padding: 28px 0 56px;
    align-content: start;
}

.route-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
}

.route-logo {
    display: block;
    width: min(200px, 60vw);
    height: auto;
    image-rendering: pixelated;
}

[hidden] {
    display: none !important;
}

.route-card {
    padding: clamp(22px, 5vw, 42px);
}

.route-title {
    margin: 0;
    font-size: clamp(30px, 8vw, 52px);
    line-height: 1;
}

.route-copy {
    max-width: 620px;
    margin: 18px 0 0;
    font-size: clamp(17px, 3vw, 20px);
    line-height: 1.35;
}

.route-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
}

.route-note {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 3px dotted var(--voxel-black);
    font-size: 14px;
    line-height: 1.3;
}

.account-status {
    min-height: 1.4em;
    margin: 18px 0 0;
    font-size: 16px;
    line-height: 1.35;
}

.account-status:empty {
    min-height: 0;
    margin: 0;
}

.account-status[data-kind="error"] {
    margin-top: 18px;
    padding: 10px;
    color: var(--voxel-white);
    background: var(--voxel-black);
}

.account-status[data-kind="success"] {
    margin-top: 18px;
    border: 3px solid var(--voxel-black);
    padding: 10px;
}

.account-google-button {
    width: 100%;
    min-height: 52px;
    margin-top: 18px;
}

.account-google-button > div,
.account-google-button iframe {
    width: 100% !important;
    max-width: none !important;
}

.account-form {
    display: grid;
    gap: 18px;
}

.account-field {
    display: grid;
    gap: 7px;
    font-size: 17px;
    line-height: 1.25;
}

.account-field small {
    font-size: 13px;
    line-height: 1.3;
}

.account-input {
    width: 100%;
    min-height: 48px;
    border: 3px solid var(--voxel-black);
    border-radius: 0;
    padding: 8px 10px;
    color: var(--voxel-black);
    background: var(--voxel-white);
    font: 400 19px/1 "Minifont", ui-monospace, monospace;
    box-sizing: border-box;
}

.account-input:focus {
    outline: 3px solid var(--voxel-black);
    outline-offset: 3px;
}

.profile-summary-card {
    display: grid;
    gap: 12px;
    padding: clamp(18px, 2.4vw, 26px);
}

.profile-summary {
    margin: 0;
    font-size: clamp(19px, 2.4vw, 28px);
    font-weight: 400;
    line-height: 1.2;
}

.profile-description {
    margin: 2px 0 0;
    font-size: 17px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.profile-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-social-links:empty {
    display: none;
}

.profile-social-link {
    min-height: 40px;
    gap: 8px;
    padding: 7px 10px;
    font-size: 16px;
}

.profile-social-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    image-rendering: pixelated;
}

.profile-editor-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.profile-description-input {
    min-height: 132px;
    resize: vertical;
}

.profile-character-count {
    margin: 0;
    font-size: 15px;
    text-align: right;
}

.profile-link-editor-list {
    display: grid;
    gap: 8px;
}

.profile-link-editor-row {
    display: grid;
    grid-template-columns: 38px 32px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 3px solid var(--voxel-black);
    background: var(--voxel-white);
}

.profile-link-editor-row.is-dragging {
    opacity: 0.55;
}

.profile-link-editor-handle,
.profile-link-icon-choice {
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: var(--voxel-black);
    background: var(--voxel-white);
}

.profile-link-editor-handle {
    width: 38px;
    height: 34px;
    border: 2px solid var(--voxel-black);
    font: 700 18px/1 var(--voxel-font);
    cursor: grab;
    touch-action: none;
}

.profile-link-editor-row img,
.profile-link-icon-choice img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    image-rendering: pixelated;
}

.profile-link-editor-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-link-editor-action {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 15px;
}

.profile-icon-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-link-icon-choice {
    width: 88px;
    height: 88px;
    border: 0;
    cursor: pointer;
}

.profile-link-icon-choice img {
    width: 64px;
    height: 64px;
}

.profile-link-icon-choice[aria-pressed="true"] {
    border: 3px solid var(--voxel-black);
}

.profile-link-icon-choice:focus-visible {
    outline: 3px solid var(--voxel-focus);
    outline-offset: 3px;
}

.profile-account-actions {
    display: grid;
    gap: 18px;
}

.profile-account-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.profile-account-actions-grid > :first-child {
    grid-column: 1 / -1;
}

.account-dialog {
    width: min(660px, calc(100% - 28px));
    max-width: none;
    max-height: calc(100dvh - 28px);
    padding: 0;
    border: 0;
    color: var(--voxel-black);
    background: transparent;
    overflow: visible;
}

.account-dialog::backdrop {
    background: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.login-dialog {
    width: min(560px, calc(100% - 28px));
}

.account-dialog-panel.login-dialog-panel {
    padding: 16px;
    box-shadow: 0 0 0 3px var(--voxel-white), 8px 10px 0 var(--voxel-shadow);
}

.login-dialog-panel .account-dialog-title {
    font-weight: 700;
}

.account-dialog-panel {
    max-height: calc(100dvh - 40px);
    padding: 20px;
    overflow: auto;
    font-family: var(--voxel-font);
}

.account-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--voxel-black);
}

.account-dialog-title {
    margin: 0;
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 400;
    line-height: 1;
}

.account-dialog-close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    color: var(--voxel-black);
    background: var(--voxel-white);
    font: 400 34px/1 var(--voxel-font);
    cursor: pointer;
}

.account-dialog-close:focus-visible {
    outline: 3px solid var(--voxel-black);
    outline-offset: 2px;
}

.account-dialog-body,
.account-dialog-form {
    display: grid;
    gap: 14px;
}

.account-dialog-body {
    padding-top: 18px;
}

.account-dialog-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

@media (max-width: 1180px) {
    .world-grid--public {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .homepage-shell {
        width: min(100% - 30px, 720px);
        padding-top: 18px;
    }

    .miniwelt-page[data-account-page="profile"] .route-shell {
        width: min(100% - 30px, 720px);
        padding-top: 18px;
    }

    .site-header {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-link {
        flex-basis: auto;
    }

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

    .world-grid,
    .world-grid--public {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .homepage-hero {
        align-items: end;
        min-height: clamp(560px, 76vw, 610px);
        padding: 0 16px 16px;
    }

    .homepage-hero-copy {
        width: 100%;
    }

    .homepage-hero-model {
        inset: 0;
    }

    .homepage-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .homepage-shell {
        width: calc(100% - 20px);
        padding: 10px 0 34px;
    }

    .miniwelt-page[data-account-page="profile"] .route-shell {
        width: calc(100% - 20px);
        padding: 10px 0 34px;
    }

    .miniwelt-page {
        background-attachment: scroll;
    }

    .site-header,
    .world-section,
    .site-footer {
        padding: 16px;
    }

    .site-header {
        gap: 16px;
        margin-bottom: 20px;
    }

    .route-header {
        gap: 8px;
        padding: 12px;
    }

    .route-header .brand-link {
        min-width: 0;
    }

    .route-header .route-logo {
        width: min(200px, calc(100vw - 150px));
    }

    .brand-logo {
        width: 200px;
    }

    .site-nav,
    .homepage-hero-actions,
    .world-grid,
    .world-grid--public,
    .profile-account-actions-grid,
    .profile-editor-actions,
    .voxel-menu-grid,
    .route-actions,
    .account-dialog-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-account-actions-grid > :first-child {
        grid-column: auto;
    }

    .profile-link-editor-row {
        grid-template-columns: 38px 28px minmax(0, 1fr) auto;
    }

    .profile-link-editor-row .profile-link-editor-action:last-child {
        grid-column: 3 / -1;
    }

    .account-dialog {
        width: calc(100% - 20px);
        max-height: calc(100dvh - 20px);
    }

    .account-dialog-panel {
        max-height: calc(100dvh - 28px);
        padding: 16px;
    }

    .section-heading,
    .footer-intro {
        align-items: start;
        flex-direction: column;
    }

    .section-count,
    .footer-note {
        white-space: normal;
    }

    .homepage-hero {
        --homepage-hero-scene-height: clamp(180px, 48vw, 220px);
        display: block;
        min-height: 0;
        padding: var(--homepage-hero-scene-height) 10px 10px;
    }

    .homepage-hero-model {
        inset: 0 0 auto;
        height: var(--homepage-hero-scene-height);
    }

    .homepage-hero-title {
        font-size: clamp(28px, 7.7vw, 32px);
        overflow-wrap: anywhere;
    }
}

@media (max-width: 400px) {
    .discovery-sort {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
    }

    .discovery-sort .voxel-menu-button {
        min-width: 0;
    }

    .discovery-sort .voxel-menu-button:not(.last) {
        border-right: 3px solid var(--voxel-black);
        border-bottom: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .world-card,
    .voxel-menu-button {
        transition: none;
    }

    .homepage-hero-cloud {
        animation: none;
    }

    .homepage-hero-cloud-shape + .homepage-hero-cloud-shape {
        display: none;
    }
}

.admin-shell {
    width: min(1380px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: max(24px, env(safe-area-inset-top)) 0 max(48px, env(safe-area-inset-bottom));
    display: grid;
    align-content: start;
    gap: 20px;
}

.admin-dashboard {
    display: grid;
    gap: 20px;
}

.admin-section {
    padding: clamp(20px, 3vw, 34px);
}

.admin-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1;
}

.admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.admin-metric {
    min-width: 0;
    padding: 14px;
    border: 3px solid var(--voxel-black);
    display: grid;
    gap: 7px;
}

.admin-metric strong {
    overflow-wrap: anywhere;
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1;
}

.admin-metric span,
.admin-meta,
.admin-copy {
    font-size: 15px;
    line-height: 1.35;
}

.admin-table-wrap {
    overflow-x: auto;
    margin-top: 18px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 9px;
    border: 2px solid var(--voxel-black);
    text-align: left;
    white-space: nowrap;
}

.admin-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.admin-list-card {
    padding: 14px;
    border: 3px solid var(--voxel-black);
}

.admin-list-card h3,
.admin-list-card p {
    margin: 0;
}

.admin-meta {
    margin-top: 6px !important;
}

.admin-copy {
    margin-top: 12px !important;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.admin-actions .voxel-menu-button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 14px;
}

.admin-select {
    width: min(230px, 100%);
}

.admin-search {
    display: flex;
    gap: 8px;
}

.legal-shell {
    width: min(820px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: max(24px, env(safe-area-inset-top)) 0 max(48px, env(safe-area-inset-bottom));
    display: grid;
    align-content: start;
    gap: 20px;
}

.legal-card {
    padding: clamp(22px, 5vw, 48px);
}

.legal-card h1 {
    margin: 0 0 24px;
    font-size: clamp(34px, 8vw, 58px);
    line-height: 1;
}

.legal-card h2 {
    margin: 30px 0 10px;
    font-size: 25px;
    line-height: 1;
}

.legal-card p {
    font-size: 17px;
    line-height: 1.55;
}

.pixel-panel ul {
    padding-left: 24px;
    list-style: none;
}

.pixel-panel li {
    position: relative;
}

.pixel-panel li::before {
    position: absolute;
    top: 0.55em;
    left: -15px;
    width: 5px;
    height: 5px;
    content: "";
    background: var(--voxel-black);
}

.updates-intro {
    margin: 0;
}

.updates-list {
    margin-top: 26px;
    border-top: 3px dotted var(--voxel-black);
}

.updates-day {
    padding: 22px 0;
    border-bottom: 3px dotted var(--voxel-black);
}

.updates-day h2 {
    margin: 0;
}

.updates-day ul {
    margin: 12px 0 0;
    padding-left: 24px;
    font-size: 17px;
    line-height: 1.55;
}

.legal-placeholder {
    padding: 12px;
    border: 3px solid var(--voxel-black);
    color: var(--voxel-white);
    background: var(--voxel-black);
    font-weight: 700;
}

@media (max-width: 860px) {
    .admin-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .admin-shell {
        width: calc(100% - 20px);
        padding-top: 10px;
    }

    .legal-shell {
        width: calc(100% - 20px);
        padding-top: 10px;
    }

    .admin-metric-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-search {
        width: 100%;
        flex-direction: column;
    }
}
