html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: white;
    color: black;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

#content > .row {
    flex: 1 1 auto;
    min-height: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: 50%;
    transform: translateX(-50%);
}

#jumbo {
    width: calc(100% - 10px);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 0 5px;
}

.jumbo-spacer {
    flex: 1;
    min-width: 0;
}

#logo {
    height: 55px;
    width: 55px;
    background-size: 65px;
    display: inline-block;
    background-image: url("/menu-icons/rascal.png");
    background-color: lightgray;
    outline: 5px solid black;
    margin-top: 0;
    flex: none;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}

h1 {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 40px;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 0;
    flex: none;
}

nav {
    margin-top: 20px !important;
    text-align: center;
    width: calc(100% - 70px) !important;
}
nav > a {
    display: inline-block;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 300;
    width: 15%;
    text-align: center;
}

#login-menu {
    display: flex;
    align-items: center;
    flex: none;
    gap: 10px;
    padding: 10px 14px 10px 10px;
    outline: 5px solid black;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    transition: background-color 0.2s ease-out, color 0.2s ease-out;
}
#login-menu > #profile-picture {
    position: relative;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-image: url("/menu-icons/white-rascal.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
#login-menu > #profile-picture.is-avatar {
    background-image: none;
    box-sizing: border-box;
    padding: 3px;
}
#login-menu > #profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
#login-menu .profile-status {
    position: absolute;
    width: 14px;
    height: 14px;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    outline: 2px solid white;
    box-sizing: border-box;
}
#login-menu .profile-status i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 58%;
    filter: invert(1);
}
#login-menu .profile-status.is-ink i {
    filter: none;
}
#login-menu > #profile-name {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 1.2em;
    margin: 0;
    min-width: 0;
}
.login-label-short {
    display: none;
}
#login-menu:hover {
    background-color: lightgray;
    cursor: pointer;
}

.home-board {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    width: min(240px, 100%);
    aspect-ratio: 1;
    margin: 0 auto;
    border: 4px solid black;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 8px 16px;
    container-type: inline-size;
    transform: rotate(-5deg);
}
.home-board > span {
    background: white;
}
.home-board > span.sq {
    background: #ececec;
}
.demo-layer {
    position: absolute;
    inset: 0;
    opacity: 1;
    transition: opacity 0.54s ease;
}
.demo-layer.dim {
    opacity: 0;
}
.demo-piece {
    position: absolute;
    width: 25%;
    height: 25%;
    z-index: 2;
    transition: left 0.62s ease, top 0.62s ease, opacity 0.4s ease, transform 0.4s ease;
}
.demo-piece.fall {
    transition: left 0.62s ease, top 0.28s cubic-bezier(0.45, 0, 1, 1), opacity 0.32s ease, transform 0.32s ease;
}
.demo-piece.rise {
    transition: left 0.62s ease, top 0.28s cubic-bezier(0.15, 0.7, 0.2, 1), opacity 0.32s ease, transform 0.32s ease;
}
.demo-piece.arrive {
    opacity: 0;
    transform: scale(0.72);
}
.demo-piece img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4%;
    box-sizing: border-box;
    display: block;
}
.demo-piece.goal img {
    filter: drop-shadow(0 0 10px #deab1f);
}
.demo-piece.floor {
    z-index: 1;
}
.demo-piece.floor img {
    padding: 0;
}
.demo-piece.tile img {
    opacity: 0.8;
}
.demo-piece.slope::after {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 8px;
    pointer-events: none;
}
.demo-piece.slope-tr::after {
    box-shadow: inset 0 7px 0 deepskyblue, inset -7px 0 0 deepskyblue;
}
.demo-piece.pop img {
    animation: demo-pop 0.35s ease;
}
.demo-piece.hop img {
    animation: demo-hop 0.64s ease;
}
.demo-piece.fade {
    opacity: 0;
}
.demo-piece.gone {
    opacity: 0;
    transform: scale(0.35);
}
.demo-piece.hit img {
    filter: drop-shadow(0 0 10px #b42318);
}
.demo-count {
    position: absolute;
    inset: 16%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: aqua;
    border: 2px dashed aqua;
    border-radius: 8px;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 9cqi;
    line-height: 1;
    pointer-events: none;
}
.demo-piece.potion {
    z-index: 1;
}
.demo-potion {
    position: absolute;
    left: 20%;
    top: 20%;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    outline: 5px solid black;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
}
.demo-potion.is-stopper {
    filter: invert(10%) sepia(41%) saturate(7451%) hue-rotate(357deg) brightness(95%) contrast(116%);
}
.demo-potion.is-swapper {
    filter: invert(53%) sepia(100%) saturate(2841%) hue-rotate(10deg) brightness(95%) contrast(101%);
}
.demo-potion.is-upsider {
    filter: invert(17%) sepia(87%) saturate(3914%) hue-rotate(240deg) brightness(69%) contrast(161%);
}
.demo-potion.is-inverter {
    filter: invert(21%) sepia(95%) saturate(5599%) hue-rotate(122deg) brightness(96%) contrast(104%);
}
.demo-potion.is-transformer {
    filter: invert(11%) sepia(100%) saturate(6995%) hue-rotate(292deg) brightness(90%) contrast(107%);
}
.demo-potion.is-crowned {
    filter: none;
}
.demo-badge {
    position: absolute;
    width: 38%;
    height: 38%;
    right: 6%;
    bottom: 6%;
    border-radius: 50%;
    background-color: black;
    outline: 2px solid white;
}
.demo-badge.is-upsider {
    background-color: mediumblue;
}
.demo-badge.is-inverter {
    background-color: #008000;
}
.demo-badge::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: center / 58% no-repeat;
    filter: invert(1);
}
.demo-badge.is-upsider::before {
    background-image: url("/pieces/potions/upsider.png");
}
.demo-badge.is-inverter::before {
    background-image: url("/pieces/potions/inverter.png");
}
.demo-badge.is-crowned::before {
    background-image: url("/pieces/potions/crowned.png");
}
@keyframes demo-hop {
    0% { transform: translateY(0); }
    45% { transform: translateY(-62%); }
    100% { transform: translateY(0); }
}
@keyframes demo-pop {
    0% { transform: scale(0.72); }
    100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .demo-layer,
    .demo-piece,
    .demo-piece.hop img,
    .demo-piece.pop img,
    .home-tagline .ht-wave > span {
        animation: none;
        transition: none;
    }
}
#playbutton {
    margin-top: 16px;
}
.b80 {
    width: 70%;
    margin-top: 16px;
    margin-right: 0 !important;
}

#playbanner > button,
.button {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 1.0em;
    background-color: #2f36ff;
    padding: 8px 16px;
    color: white;
    border-radius: 12px;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    outline: none;
    transition: background-color 0.2s ease-in, transform 0.2s ease-in;
    cursor: pointer;
    margin-right: 12px;
}
#playbanner > button:hover,
.button:hover {
    background-color: rgb(29, 34, 183);
    transform: scale(1.1);
}

#editorbutton {
    background-color: #666 !important;
}

#leaderboard {
    width: 550px;
    min-width: 450px;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
#iframe-leaderboard {
    width: 100%;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
}

.row {
    box-sizing: border-box;
    display: flex;
    width: calc(100% - 70px + 4rem);
    margin-top: 1.5rem;
    gap: 3rem;
}
.row > div {
    flex: 0.5;
}

.title-card {
    width: calc(100% - 4rem);
    background-color: black;
    color: white;
    font-size: 1.5em;
    padding: 1rem 2rem;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    border-radius: 1rem;
    margin: 0;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}

#profile-content {
    width: calc(100% - 1rem);
    padding-left: 1rem;
}

.writeable > p {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    margin: 0;
    margin-bottom: 1rem;
}
.writeable > p > a {
    text-decoration: none;
    color: #2f36ff;
}
.writeable > ul {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
}
.writeable > h3 {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    margin: 0;
    margin-bottom: 1rem;
}

.input {
    padding: 0.5rem 0;
    border: none;
    width: 100%;
    border-bottom: 5px solid #eee;
    font-size: 0.9em;
    background-color: white;
    margin-bottom: 1rem;
}
.input:focus {
    border: none;
    outline: none;
    border-bottom: 5px solid black;
}
.input-label {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    text-align: left;
    font-weight: 600;
    margin: 0;
}

.card {
    width: calc(100% - 4rem - 10px);
    border: 5px solid black;
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}
.checker {
    background-image: linear-gradient(45deg, #f9f9f9 25%, transparent 25%), linear-gradient(-45deg, #f9f9f9 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f9f9f9 75%), linear-gradient(-45deg, transparent 75%, #f9f9f9 75%);
    background-size: 50px 50px;
    background-position: 0 0, 0 25px, 25px -25px, -25px 0px;
}

.card > p {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
}

.lsh-title {
    margin: 0;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 1.3em;
    margin-bottom: 1rem;
    font-weight: 600;
}
.home-tagline {
    margin: 0 0 0.85rem;
    text-align: center;
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.35;
    color: black;
}
.home-tagline .ht-punch {
    display: inline-block;
    margin: 0 0.08em;
    padding: 0.02em 0.38em 0.06em;
    background: black;
    color: white;
    border-radius: 0.32em;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    vertical-align: baseline;
}
.home-tagline .ht-wave > span {
    display: inline-block;
    animation: ht-wave 1.8s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.09s);
}
.home-tagline .ht-wave-space {
    width: 0.32em;
    animation: none;
}
@keyframes ht-wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.28em); }
}
.home-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin: 0 0 1rem;
}
.home-actions .button {
    font-size: 1.05rem;
}
.home-actions .button {
    flex: 1 1 10.5rem;
    width: auto;
    max-width: 16rem;
    margin: 0;
}
.home-actions #playbutton {
    margin-top: 0;
}
.home-actions #login-note {
    flex: 1 1 100%;
    margin: 0;
    text-align: center;
}

#level-select {
    margin-bottom: 3rem;
    flex: 1;
}
#level-select-title {
    width: calc(100% - 4rem) !important;
    margin-bottom: 1rem;
}
.level-row {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    gap: 0.45rem;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 1rem;
    padding: 0.38rem 0.25rem 0.38rem 0.65rem;
}
.community-card {
    container-type: inline-size;
    container-name: community;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-sizing: border-box;
    width: 100%;
    margin-top: 16px;
    padding: 0.45rem 0.7rem 0.45rem 0.85rem;
    border: 3px solid black;
    border-radius: 0.85rem;
    background: white;
    text-align: left;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
}
.community-card-copy {
    flex: 1;
    min-width: 0;
}
.community-card p {
    margin: 0;
}
.community-card-flag {
    color: #2e35fd;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}
.community-card-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.1rem 0.45rem;
    margin-top: 0.1rem;
    min-width: 0;
}
.community-card-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
}
.community-card-meta {
    color: #666;
    font-size: 0.78rem;
    line-height: 1.2;
}
.community-card-meta a {
    color: #2f36ff;
    text-decoration: none;
}
.community-card > .button {
    flex: none;
    margin: 0;
    padding: 0.28rem 0.65rem;
    border-radius: 0.55rem;
    box-shadow: none;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
.community-card > .button:hover {
    transform: none;
}
@container community (max-width: 24rem) {
    .community-card-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.05rem;
    }
    .community-card-name {
        white-space: normal;
    }
}
.level-row-odd {
    background-color: #f4f4f4;
    border-radius: 0.55rem;
}
.level-chapter-group {
    padding-top: 0.7rem;
}
.level-chapter {
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    gap: 0.5rem;
    margin: 0 0 0.35rem;
    padding: 0.45rem 0.75rem;
    background-color: black;
    color: white;
    border-radius: 1rem;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
}
.level-chapter:has(.level-chapter-progress) {
    padding-bottom: 0.62rem;
}
.level-chapter-progress {
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.28rem;
    height: 2px;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.28);
}
.level-chapter-progress > span {
    display: block;
    height: 100%;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.85);
}
.level-chapter-name {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: white;
}
.level-chapter-span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #ccc;
}
.pack-group {
    padding-top: 0.7rem;
}
button.pack-header {
    font: inherit;
    color: white;
    border: none;
    cursor: pointer;
    text-align: left;
    margin-bottom: 0.15rem;
}
.pack-group.is-locked .pack-header {
    cursor: default;
}
.pack-group:not(.is-open) .pack-levels {
    display: none;
}
.pack-chevron {
    margin-left: auto;
    width: 0.45rem;
    height: 0.45rem;
    flex: none;
    box-sizing: border-box;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}
.pack-group.is-open .pack-chevron {
    transform: rotate(45deg);
}
.pack-icon {
    width: 1rem;
    height: 1rem;
    flex: none;
    object-fit: contain;
    filter: invert(1);
}
.pack-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.08rem;
    min-width: 0;
    flex: 1;
}
.pack-unlock {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
}
.pack-note {
    margin: 0 0.75rem 0.35rem calc(0.75rem + 1.5rem);
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: #555;
}
.pack-group:not(.is-open) .pack-blurb {
    display: none;
}
.level-row > p {
    margin: 0;
}
.level-no {
    flex: 0 0 2.5rem;
    font-weight: 700;
    font-size: 0.92rem;
    color: maroon;
}
.level-name {
    color: black;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}
.level-meta {
    display: block;
    margin-top: 0.08rem;
    font-size: 0.78rem;
    color: #666;
    line-height: 1.3;
}
.level-author {
    color: black;
    text-decoration: none;
}
.level-author:hover {
    color: #2e35fe;
}
.level-moves {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.15rem;
}
.level-moves > img {
    width: 15px;
    height: 15px;
    margin-right: 0;
}
.level-play {
    flex-shrink: 0;
    height: auto;
    background-color: #2f36ff;
    color: white;
    padding: 0.22rem 0.7rem;
    border-radius: 0.55rem;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 2px 4px;
    outline: none;
    font-size: 0.85rem;
    transition: background-color 0.2s ease-in;
    cursor: pointer;
    margin-right: 0;
}
.level-play:hover {
    background-color: #1d22b7;
}

.ind,
.move-counter {
    cursor: default;
}

.shadow {
    filter: invert(52%) sepia(7%) saturate(0%) hue-rotate(255deg) brightness(96%) contrast(96%);
    opacity: 0.7;
}

.completed {
    filter: invert(0%) sepia(99%) saturate(7466%) hue-rotate(19deg) brightness(96%) contrast(102%);
}

.golden {
    filter: invert(16%) sepia(96%) saturate(6018%) hue-rotate(244deg) brightness(102%) contrast(104%);
}

.level-moves:hover > .ind {
    display: none;
}
.level-moves:hover > .move-counter {
    display: inline-block;
}

.move-counter {
    margin: 0;
    font-size: 0.9rem;
    display: none;
    font-weight: 600;
    white-space: nowrap;
}

#error-login {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    background-color: maroon;
    color: white;
    padding: 0.5rem 1rem;
    display: block;
    width: calc(100% - 2rem);
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    border-radius: 0.5rem;
    margin-top: 0;
}

#login-note {
    margin-bottom: 0;
    color: #666;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.4;
}
#login-note > a {
    color: #2f36ff;
    text-decoration: none;
}

.changelog-launch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin-top: 16px;
    padding: 0.45rem 0.7rem 0.45rem 0.85rem;
    border: 3px solid black;
    border-radius: 0.85rem;
    background: white;
    color: black;
    text-align: left;
    cursor: pointer;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
}
.changelog-launch-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
#changelog-version {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
}
#changelog-date {
    margin-top: 0.1rem;
    color: #666;
    font-size: 0.78rem;
    line-height: 1.2;
}
.changelog-launch-more {
    flex: none;
    background: #2f36ff;
    color: white;
    border-radius: 0.55rem;
    padding: 0.28rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
}
#changelog-dialog {
    width: min(36rem, calc(100vw - 2rem));
    max-height: min(82vh, 42rem);
    margin: auto;
    padding: 1.1rem 1.15rem 1rem;
    border: 5px solid black;
    border-radius: 1rem;
    box-sizing: border-box;
    text-align: left;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
}
#changelog-dialog > h3 {
    display: inline-block;
    margin: 0 0 0.8rem;
    padding: 0.35rem 0.85rem;
    background: black;
    color: white;
    border-radius: 0.7rem;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 8px 14px;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}
#changelog-dialog::backdrop {
    background: rgba(0, 0, 0, 0.45);
}
#changelog-content {
    overflow: auto;
    max-height: min(64vh, 32rem);
    font-size: 0.95rem;
    line-height: 1.4;
}
#changelog-content > b {
    display: block;
    margin: 0.85rem 0 0.25rem;
}
#changelog-content > b:first-child {
    margin-top: 0;
}
#changelog-content p {
    margin: 0 0 0.55rem;
}
#changelog-content ul {
    margin: 0 0 0.65rem;
    padding-left: 1.2rem;
}
#changelog-close {
    margin: 0.85rem 0 0;
}

.small-title {
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    min-height: 3rem;
    height: auto;
    width: 100%;
    background-color: black;
    border-radius: 1rem;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    color: white;
    margin-bottom: 0.5rem;
}

#level-switcher {
    display: flex;
    justify-content: space-around;
}

.small-title > a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: white;
    text-decoration: none;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    margin-top: 0;
    padding: 0.7rem 0.4rem;
}

.about-sideimage {
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    width: 240px;
    height: 240px;
    border-radius: 0.5rem;
}

.about-page {
    box-sizing: border-box;
    width: calc(100% - 70px + 4rem);
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.about-page .card {
    width: auto;
    box-sizing: border-box;
}

.about-panel {
    text-align: left;
}

.about-panel > h3 {
    display: inline-block;
    background: black;
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 0.7rem;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 8px 14px;
}

.about-lead,
.about-credits,
.about-policy {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.about-policy {
    grid-template-columns: minmax(0, 1fr) 280px;
}

.about-lead-copy,
.about-policy-copy {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.about-shot {
    box-sizing: border-box;
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
    justify-self: center;
    position: sticky;
    top: 1.25rem;
    padding: 14px;
    border: 5px solid black;
    border-radius: 1.1rem;
    background-image: linear-gradient(45deg, #f3f3f3 25%, transparent 25%), linear-gradient(-45deg, #f3f3f3 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f3f3f3 75%), linear-gradient(-45deg, transparent 75%, #f3f3f3 75%);
    background-size: 28px 28px;
    background-position: 0 0, 0 14px, 14px -14px, -14px 0;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}

.about-shot .about-sideimage {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
    margin: 0;
    border: 4px solid black;
    box-shadow: none;
}

.about-lead .about-shot {
    transform: rotate(-1.5deg);
}

.about-credits .about-shot {
    transform: rotate(1.5deg);
}

.about-policy .about-shot {
    transform: rotate(1.5deg);
}

.about-pair {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 1.5rem;
    align-items: stretch;
}

.about-panel-ink {
    background: black;
    color: white;
    border-color: black;
}

.about-panel-ink > h3 {
    background: white;
    color: black;
}

.about-panel-ink > p > a {
    color: #c5cbff;
}

.about-credits-card > p {
    margin-left: 0.15rem;
    padding-left: 0.95rem;
    border-left: 5px solid black;
}

.about-credits-card > p:last-child {
    margin-bottom: 0;
}

.about-page ul {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.about-page li {
    border: 3px solid black;
    border-radius: 0.7rem;
    padding: 0.5rem 0.75rem;
    background: #f7f7f7;
}

#p-warning {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    text-align: left;
    margin-bottom: 1rem;
}
#p-warning > p {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    margin: 0;
}
#p-warning > ul {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    margin: 0;
}

.level-author {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: inherit;
}

.level-clears {
    flex: 0 0 auto;
    min-width: 46px;
    text-align: center;
}

.level-clears b,
.level-clears span {
    display: block;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
}

.level-clears b {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
}

.level-clears span {
    color: #666;
    font-size: 10px;
    font-weight: 400;
    white-space: nowrap;
}

.level-date {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: inherit;
    color: #888;
    white-space: nowrap;
}

.level-pending {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: inherit;
    color: #b42318;
    font-weight: 700;
}

.level-diff {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: inherit;
    color: #2e35fd;
    font-weight: 600;
}

.level-diff-expert {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: inherit;
    color: #800000;
    font-weight: 700;
}

.count-amount {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.row > .level-column {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
    min-height: 0;
}

#level-scroll {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow-y: auto;
}

#level-tools {
    box-sizing: border-box;
    flex: none;
    margin-bottom: 0.55rem;
    padding: 0.7rem 0.85rem 0.75rem;
    border: 3px solid black;
    border-radius: 0.85rem;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    background-color: #fff;
    background-image: linear-gradient(45deg, #fafafa 25%, transparent 25%), linear-gradient(-45deg, #fafafa 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #fafafa 75%), linear-gradient(-45deg, transparent 75%, #fafafa 75%);
    background-size: 72px 72px;
    background-position: 0 0, 0 36px, 36px -36px, -36px 0px;
}

#score-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.score-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.32rem 0.6rem 0.32rem 0.45rem;
    border: 2px solid #ddd;
    border-radius: 0.7rem;
    background: white;
    color: black;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.score-chip:hover {
    background: white;
    border-color: #888;
}

.score-chip.is-on,
.score-chip.is-on:hover {
    background: white;
    border-color: black;
}

.score-chip.is-on .count-amount,
.score-chip.is-on .score-label {
    color: maroon;
}

.score-chip.is-empty {
    opacity: 0.4;
    cursor: default;
}

.score-chip.is-empty:hover {
    background: white;
    border-color: #ddd;
}

.score-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.05rem;
}

.score-icons > img {
    width: 16px;
    height: 16px;
}

.score-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}

.score-label {
    font-size: 0.68rem;
    color: #333;
}

#level-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem 0.7rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

#level-query {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex: 1 1 14rem;
    min-width: 0;
}

#level-search {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 0.95rem;
    appearance: none;
    box-sizing: border-box;
    border: 2px solid #ddd;
    border-radius: 0.7rem;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0.42rem 0.7rem;
    background-color: white;
    color: black;
}

#level-search:focus {
    outline: none;
    border-color: black;
}

#level-search::-webkit-search-decoration,
#level-search::-webkit-search-cancel-button,
#level-search::-webkit-search-results-button,
#level-search::-webkit-search-results-decoration {
    appearance: none;
}

#community-diffs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.diff-chip {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 0.85rem;
    border: none;
    background: #efefef;
    color: #222;
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    cursor: pointer;
}

.diff-chip:hover {
    background: #e2e2e2;
}

.diff-chip.is-on,
.diff-chip.is-on:hover {
    background: black;
    color: white;
    font-weight: 700;
}

#level-filter-count {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
}

#level-empty {
    margin: 0.75rem 0 0;
    padding-left: 0.65rem;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 0.9rem;
    color: #666;
}

#level-empty[hidden] {
    display: none;
}

#qrender {
    max-height: calc(100vh - 2rem);
    overflow: auto;
}

#qrender-admin {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 3px dotted #ddd;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
}

#qrender-admin[hidden] {
    display: none;
}

#qadmin-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#qrender-admin.is-collapsed {
    gap: 0;
    padding-top: 0;
    border-top: none;
}

#qrender-admin.is-collapsed #qadmin-body {
    display: none;
}

#qrender-admin #qadmin-toggle,
#qrender-admin #qadmin-toggle:hover {
    border: 2px solid black;
    background: white;
    color: black;
    font-weight: 700;
}

.qadmin-actions,
.qadmin-name,
.qadmin-diff,
#qrender-actions {
    display: grid;
    gap: 8px;
    align-items: center;
}

.qadmin-actions,
#qrender-actions {
    grid-template-columns: 1fr 1fr;
}

.qadmin-name {
    grid-template-columns: 1fr auto;
}

.qadmin-diff {
    grid-template-columns: auto 1fr;
}

#qrender-admin button,
#qrender-admin select,
#qrender-admin input {
    box-sizing: border-box;
    height: 36px;
    margin: 0;
    font: inherit;
    font-size: 15px;
    background: white;
    color: black;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 0 10px;
}

#qrender-admin button,
#qrender-admin select {
    cursor: pointer;
}

#qrender-admin button:hover,
#qrender-admin select:hover,
#qrender-admin input:hover {
    border-color: #888;
}

#qrender-admin input,
#qrender-admin select {
    width: 100%;
    min-width: 0;
}

#qrender-admin select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #333 50%), linear-gradient(135deg, #333 50%, transparent 50%);
    background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 26px;
}

.qadmin-diff > span {
    font-size: 15px;
    font-weight: 700;
}

#qadmin-solve:disabled,
#qadmin-author:disabled,
#qadmin-solve:disabled:hover,
#qadmin-author:disabled:hover {
    background: #f3f3f3;
    color: #777;
    border-color: #ddd;
    cursor: default;
}

#qrender-admin #qadmin-approve,
#qrender-admin #qadmin-approve:disabled,
#qrender-admin #qadmin-approve:hover,
#qrender-admin #qadmin-approve:disabled:hover {
    background: #1d7a32;
    color: white;
    border-color: #145624;
}

#qrender-admin #qadmin-disapprove,
#qrender-admin #qadmin-disapprove:disabled,
#qrender-admin #qadmin-disapprove:hover,
#qrender-admin #qadmin-disapprove:disabled:hover {
    background: #b42318;
    color: white;
    border-color: #7f1a12;
}

#qrender-admin #qadmin-approve:disabled,
#qrender-admin #qadmin-disapprove:disabled {
    cursor: default;
}

#qadmin-status {
    margin: 0;
    text-align: center;
    color: #333;
    font-size: 14px;
    font-weight: 700;
}

#qadmin-status[hidden] {
    display: none;
}

#qrender-actions {
    margin-top: 12px;
}

#qrender-actions .button {
    width: 100%;
    margin: 0;
}

#qrender-actions .button:hover {
    transform: none;
}

#qrenderclose {
    background-color: #666;
}

#replay-level-name {
    margin: 0;
}
#replay-level-name > p {
    text-align: center;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 30px;
    margin: 0;
    font-weight: 600;
}

#replay-level-stars > .level-moves {
    height: 30px;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 3px dotted #ddd;
}

#replay-level-stars > .level-moves > .ind {
    height: 30px;
    width: 30px;
    margin: 0;
}

#replay-level-stars > .level-moves > .move-counter {
    font-size: 24px;
    text-align: center;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    margin: 0;
}

@media screen and (max-width: 1200px) {
    #content > .row {
        flex: 1 0 auto;
        min-height: auto;
    }

    .row > .level-column {
        flex: 1 0 auto;
    }

    #level-scroll {
        max-height: calc(100vh - 12rem);
        max-height: calc(100dvh - 12rem);
        min-height: 12rem;
    }

    .row {
        width: calc(100% - 4rem);
        margin-left: 2rem;
        margin-right: 2rem;
        padding: 0;
        flex-direction: column;
    }
    #leaderboard {
        width: 100%;
        height: auto;
        min-height: 350px;
        flex: 1 1 auto;
        min-width: 0;
        margin-bottom: 0;
    }
    nav > a {
        font-weight: 300 !important;
    }

    #jumbo h1 {
        font-size: 30px;
    }
    #logo {
        height: 45px;
        width: 45px;
        background-size: 55px;
    }
    #login-menu {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 42%;
        gap: 8px;
        padding: 6px 10px 6px 6px;
        outline-width: 4px;
    }
    #profile-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    #jumbo {
        padding: 0 2rem;
        width: calc(100% - 4rem);
    }
    nav {
        border-radius: 0 !important;
    }
    #level-select {
        margin-bottom: 0;
    }
    #level-select-title {
        width: calc(100% - 1rem);
    }

    #profile-content {
        padding-left: 0;
        width: 100%;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 860px) {
    .about-page {
        width: calc(100% - 2rem);
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .about-lead,
    .about-credits,
    .about-policy,
    .about-pair {
        grid-template-columns: 1fr;
    }

    .about-shot {
        position: static;
        transform: none;
        min-width: 0;
        width: min(100%, 280px);
        max-width: 280px;
        margin: 0 auto;
        justify-self: center;
    }

    .about-credits .about-shot {
        display: none;
    }

    .about-policy .about-shot {
        order: -1;
    }

    .about-sideimage {
        margin: 0 auto;
    }

    #remove-image {
        display: none;
    }

    #show-image {
        display: block !important;
        box-sizing: border-box;
        width: min(100%, 250px);
        height: auto;
        margin: 0 auto;
        border: 5px solid black;
        border-radius: 1rem;
    }
}
@media screen and (max-width: 700px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    #jumbo {
        flex-wrap: nowrap;
        column-gap: 10px;
        box-sizing: border-box;
        width: 100%;
        padding: 0 0.75rem;
    }

    #jumbo h1 {
        white-space: nowrap;
        font-size: clamp(18px, 5.2vw, 22px);
    }

    #logo {
        width: 42px;
        height: 42px;
        background-size: 50px;
        outline-width: 4px;
    }

    #login-menu {
        box-sizing: border-box;
        height: 42px;
        max-width: 46%;
        padding: 3px 10px 3px 3px;
        outline-width: 4px;
    }

    #profile-name {
        font-size: 1rem;
    }

    nav.title-card {
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
        width: 100% !important;
        margin-left: 0;
        margin-right: 0;
        padding: 0.8rem 0.35rem;
        border-radius: 0 !important;
    }

    nav > a {
        width: auto !important;
        flex: 1 1 0;
        min-width: 0;
        font-size: 13px;
        font-weight: 400 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .button,
    #playbanner > button {
        font-size: 14px;
        padding: 6px 12px;
    }

    .row {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0 0.45rem;
    }

    .row,
    .card,
    .level-row,
    #level-select-title,
    #error-login,
    .small-title {
        box-sizing: border-box;
        max-width: 100%;
    }

    .card,
    .level-row,
    #level-select-title,
    #error-login,
    .small-title {
        width: 100% !important;
    }

    .card {
        padding: 0.9rem 0.7rem;
    }

    #p-warning > ul,
    .writeable > ul,
    .card > ul {
        padding-left: 1.15rem;
        margin-top: 0.4rem;
        margin-bottom: 0;
    }

    .card > p,
    .writeable > p,
    #p-warning > p,
    #p-warning > ul,
    .writeable > ul {
        font-size: 14px;
        line-height: 1.35;
    }

    .lsh-title,
    .writeable > h3,
    .card > p.lsh-title {
        font-size: 15px;
    }

    .card > p.home-tagline {
        font-size: clamp(1.05rem, 4.5vw, 1.25rem);
    }

    .home-actions .button {
        min-height: 0;
        font-size: 14px;
        padding: 6px 12px;
    }

    .home-actions .button {
        flex-basis: 8.5rem;
        max-width: none;
    }

    #login-note {
        font-size: 14px;
    }

    .input {
        font-size: 15px;
        padding: 0.28rem 0;
        margin-bottom: 0.7rem;
        border-bottom-width: 3px;
    }

    .input:focus {
        border-bottom-width: 3px;
    }

    .small-title {
        min-height: 2.4rem;
        border-radius: 0.75rem;
    }

    .small-title > a {
        font-size: 13px;
        padding: 0.35rem 0.2rem;
    }

    .score-chip {
        padding: 0.18rem 0.45rem 0.18rem 0.32rem;
        gap: 0.28rem;
    }

    .level-chapter-name {
        font-size: 0.78rem;
    }

    .level-chapter-span,
    .pack-unlock,
    .pack-note {
        font-size: 0.7rem;
    }
    .pack-note {
        margin-left: calc(0.55rem + 1.5rem);
        margin-right: 0.55rem;
    }
    .pack-group {
        padding-top: 0.6rem;
    }

    .level-row {
        font-size: 13px;
        padding: 0.35rem 0.05rem 0.35rem 0.2rem;
        gap: 0.3rem;
    }

    .level-chapter-group {
        padding-top: 0.6rem;
    }

    .level-chapter {
        margin-top: 0;
        padding: 0.4rem 0.55rem;
        border-radius: 0.75rem;
    }

    .level-no {
        flex: 0 0 1.85rem;
        font-size: 12px;
    }

    .level-name {
        min-width: 0;
        overflow: hidden;
        line-height: 1.25;
        white-space: normal;
    }

    .level-meta,
    .level-diff,
    .level-diff-expert,
    .level-author,
    .level-date {
        font-size: 11px;
    }

    .level-clears b {
        font-size: 13px;
    }

    .level-clears span {
        font-size: 10px;
    }

    .level-moves {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }

    .level-moves > img {
        width: 16px;
        height: 16px;
    }

    .level-play {
        padding: 0.2rem 0.5rem;
        font-size: 13px;
    }

    .row > .level-column {
        height: auto;
        max-height: none;
    }

    #level-scroll {
        flex: 1 1 auto;
        height: auto;
        max-height: calc(100vh - 12rem);
        max-height: calc(100dvh - 12rem);
        min-height: 10rem;
    }

    #level-tools {
        padding: 0.4rem 0.45rem 0.45rem;
    }

    #level-bar {
        align-items: center;
        gap: 0.35rem 0.45rem;
        margin-bottom: 0.4rem;
        padding-bottom: 0.4rem;
    }

    #level-query {
        flex: 1 1 100%;
        gap: 0.4rem;
    }

    #level-search {
        font-size: 14px;
        line-height: 1.2;
        padding: 0.18rem 0.45rem;
        border-radius: 0.45rem;
    }

    #score-filters {
        gap: 0.28rem;
    }

    .score-chip {
        padding: 0.1rem 0.32rem 0.1rem 0.2rem;
        gap: 0.22rem;
        border-radius: 0.45rem;
    }

    .score-icons > img {
        width: 12px;
        height: 12px;
    }

    .score-meta {
        flex-direction: row;
        align-items: baseline;
        gap: 0.22rem;
    }

    .count-amount {
        font-size: 0.72rem;
    }

    .score-label {
        font-size: 10px;
    }

    #community-diffs {
        flex: 1 1 100%;
        justify-content: flex-start;
        gap: 0.25rem;
    }

    .diff-chip {
        font-size: 11px;
        padding: 0.1rem 0.38rem;
    }

    #qrender-admin button,
    #qrender-admin select,
    #qrender-admin input {
        height: 30px;
        font-size: 13px;
        border-radius: 8px;
        padding: 0 8px;
    }

    #replay-level-name > p {
        font-size: 20px;
    }

    .about-page {
        width: calc(100% - 1.5rem);
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }

    dialog {
        max-width: calc(100vw - 2rem);
        box-sizing: border-box;
    }

    #qrender {
        padding: 16px !important;
    }

    dialog iframe {
        width: 100% !important;
        max-width: 440px;
    }
}

@media screen and (max-width: 540px) {
    #jumbo {
        column-gap: 8px;
        padding: 0 0.65rem;
    }

    #jumbo h1 {
        font-size: clamp(17px, 5.2vw, 20px);
    }

    #logo {
        width: 40px;
        height: 40px;
        background-size: 48px;
    }

    #login-menu {
        flex: none;
        width: 40px;
        height: 40px;
        max-width: none;
        padding: 0;
        gap: 0;
        justify-content: center;
    }

    #login-menu.is-guest {
        width: auto;
        height: 40px;
        padding: 0 12px;
        gap: 0;
        background-color: #2f36ff;
        color: white;
    }

    #login-menu.is-guest:hover {
        background-color: rgb(29, 34, 183);
    }

    #login-menu.is-guest > #profile-picture {
        display: none;
    }

    #profile-name {
        display: none;
    }

    #login-menu.is-guest #profile-name {
        display: block;
        color: white;
        font-size: 14px;
        font-weight: 700;
        white-space: nowrap;
    }

    #login-menu.is-guest .login-label-full {
        display: none;
    }

    #login-menu.is-guest .login-label-short {
        display: inline;
    }

    #login-menu > #profile-picture {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background-size: 48px;
    }

    #login-menu > #profile-picture.is-avatar {
        padding: 4px;
    }

    #login-menu .profile-status {
        width: 14px;
        height: 14px;
        right: 3px;
        bottom: 3px;
        outline-width: 2px;
    }
}
