@font-face {
    font-family: "ChronoType";
    src: url("/plugin-assets/hero/fonts/ChronoType.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

* {
    box-sizing: border-box;
}

body {
    --twitch-purple: #9146ff;
    --twitch-purple-deep: #3b256f;
    --twitch-purple-soft: rgba(145, 70, 255, 0.28);
    --rarity-common-border: rgb(132, 224, 153);
    --rarity-common-bg: rgba(132, 224, 153, 0.78);
    --rarity-rare-border: rgb(137, 218, 255);
    --rarity-rare-bg: rgba(137, 218, 255, 0.78);
    --rarity-epic-border: rgb(205, 167, 242);
    --rarity-epic-bg: rgba(205, 167, 242, 0.78);
    --rarity-legendary-border: rgb(255, 249, 103);
    --rarity-legendary-bg: rgba(255, 249, 103, 0.78);
    --rarity-heroic-border: rgb(255, 118, 118);
    --rarity-heroic-bg: rgba(255, 117, 117, 0.78);
    margin: 0;
    min-height: 100vh;
    background: #141414;
    color: #f4f0e8;
    font-family: "ChronoType", Arial, Helvetica, sans-serif;
    font-size: 18px;
}

a {
    color: #8fd3ff;
}

main {
    min-height: 100vh;
}

.site-nav-panel {
    position: fixed;
    top: 22px;
    right: 28px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.site-mobile-menu-button,
.site-mobile-nav-backdrop {
    display: none;
}

.site-nav-user-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
}

.site-user-menu {
    position: relative;
    align-self: flex-end;
}

.site-user-menu summary {
    list-style: none;
    cursor: pointer;
}

.site-user-menu summary::-webkit-details-marker {
    display: none;
}

.twitch-login-button,
.twitch-user-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--twitch-purple);
    border-radius: 8px;
    color: #f4f0e8;
    font-family: inherit;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.twitch-login-button,
.twitch-user-pill {
    gap: 10px;
    padding: 9px 14px 9px 12px;
    background: var(--twitch-purple-deep);
}

.site-user-menu-caret {
    display: inline-block;
    font-size: 13px;
    line-height: 1;
    transform: rotate(180deg);
}

.site-user-menu[open] .site-user-menu-caret {
    transform: rotate(0deg);
}

.site-user-menu-logout {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #8f4d54;
    border-radius: 7px;
    background: #3a2326;
    color: #ffd6da;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.site-user-menu-logout:focus-visible,
.site-user-menu-logout:hover {
    border-color: #d86b76;
    background: #4a292e;
    color: #fff1f2;
    outline: none;
}

.twitch-login-button img,
.twitch-user-pill img {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    object-fit: contain;
}

.twitch-login-button:focus-visible,
.twitch-login-button:hover {
    filter: brightness(1.12);
    outline: none;
}

.twitch-user-pill {
    border-color: #6f4bd1;
    background: #26202f;
}

.site-nav-panel .loadout-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    font-size: 18px;
}

.site-nav-main-links,
.site-nav-admin-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.site-nav-panel .loadout-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #4c5658;
    border-radius: 7px;
    background: #1f2324;
    color: #d9d1c4;
    line-height: 1;
    text-decoration: none;
}

.site-nav-panel .loadout-actions a:focus-visible,
.site-nav-panel .loadout-actions a:hover {
    border-color: #8fd3ff;
    background: #26343a;
    color: #f4f0e8;
    outline: none;
}

.site-nav-panel .loadout-actions a.is-active {
    border-color: #8fd3ff;
    background: #183240;
    color: #f4f0e8;
}

.site-nav-panel .loadout-actions-divider {
    height: 20px;
}

@media (min-width: 641px) {
    .site-nav-panel-logged-in {
        align-items: flex-end;
        max-width: calc(100vw - 56px);
    }

    .site-nav-panel-logged-in .loadout-actions {
        min-width: 0;
    }

    .site-nav-panel-logged-in .site-nav-main-links,
    .site-nav-panel-logged-in .site-nav-admin-links {
        max-width: 100%;
        flex-wrap: wrap;
    }

    .site-nav-panel-about {
        position: absolute;
        top: 14px;
        right: 0;
        z-index: 20;
        width: auto;
        max-width: min(520px, calc(50vw - 32px));
        margin: 0;
        padding: 0;
        background: transparent;
    }

    .landing-hero-banner .site-nav-panel-about {
        gap: 10px;
    }
}

.landing-page {
    display: block;
    min-height: 100vh;
    padding: 0 32px 32px;
}

.landing-hero-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    padding: 24px 0;
    border-bottom: 1px solid var(--twitch-purple-soft);
}

.landing-hero-banner-authenticated {
    min-height: 170px;
}

.landing-hero-banner h1 {
    margin: 0;
    color: #f4f0e8;
    font-size: 56px;
    line-height: 1.05;
    text-align: center;
    text-shadow:
        -2px -2px 0 var(--twitch-purple),
        2px -2px 0 var(--twitch-purple),
        -2px 2px 0 var(--twitch-purple),
        2px 2px 0 var(--twitch-purple),
        0 0 18px rgba(145, 70, 255, 0.5);
}

.landing-sprite-banner {
    position: relative;
    width: min(100%, 1180px);
    height: 180px;
    margin: 38px auto 0;
    overflow: hidden;
    border-top: 1px solid var(--twitch-purple-soft);
    border-bottom: 1px solid var(--twitch-purple-soft);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
    image-rendering: pixelated;
}

.landing-sprite-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("/plugin-assets/hero/assets/backdrops/oceanwalk.png");
    background-repeat: repeat-x;
    background-position: 0 0;
    background-size: 1296px 180px;
    image-rendering: pixelated;
    animation: landingBackdropParallax 48s linear infinite;
    will-change: background-position;
}

.landing-sprite-runner {
    position: absolute;
    z-index: 1;
    top: var(--landing-sprite-top, 28px);
    left: 100%;
    width: 140px;
    height: 130px;
    display: grid;
    place-items: center;
    animation: landingSpriteFloat var(--landing-sprite-duration, 22s) linear forwards;
    will-change: transform;
}

.landing-sprite-character {
    --hero-scale: 3;
}

.landing-tagline {
    max-width: 820px;
    margin: 34px auto 0;
    color: #d9d1c4;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.landing-instruction {
    max-width: 780px;
    margin: 20px auto 0;
    color: #f4f0e8;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.08;
    text-align: center;
}

.landing-note {
    max-width: 760px;
    margin: 28px auto 0;
    color: #8f8980;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.landing-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: min(100%, 900px);
    margin: 36px auto 0;
}

.landing-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 8px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--twitch-purple-soft);
    border-radius: 8px;
    background: #18151d;
}

.landing-step-number {
    display: inline-grid;
    place-items: center;
    grid-row: span 2;
    width: 28px;
    height: 28px;
    border: 1px solid var(--twitch-purple);
    border-radius: 50%;
    color: #f4f0e8;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.landing-step strong {
    min-width: 0;
    color: #f4f0e8;
    font-size: 19px;
    line-height: 1;
}

.landing-step span:last-child {
    min-width: 0;
    color: #adadb8;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.landing-command-preview {
    display: grid;
    gap: 0;
    width: min(100%, 440px);
    margin: 36px auto 0;
    padding: 0;
    border: 1px solid var(--twitch-purple-soft);
    border-radius: 6px;
    background: #18181b;
    color: #efeff1;
    font-family: Inter, Roobert, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    overflow: hidden;
    text-align: left;
}

.landing-command-header {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-bottom: 1px solid #2f2f35;
    background: #1f1f23;
}

.landing-command-header span {
    color: #adadb8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.landing-command-line {
    display: block;
    min-height: 28px;
    padding: 5px 12px;
}

.landing-command-user {
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.landing-command-user::after {
    content: ":";
    color: #f4f0e8;
    font-weight: 400;
}

.landing-command-user-viewer {
    color: #00ad96;
}

.landing-command-user-bot {
    color: #bf94ff;
}

.landing-command-user-green {
    color: #00ad96;
}

.landing-command-user-orange {
    color: #ffb84d;
}

.landing-command-user-blue {
    color: #1f69ff;
}

.landing-command-user-pink {
    color: #ff75e6;
}

.landing-command-user-yellow {
    color: #d1b300;
}

.landing-command-user-red {
    color: #ff4f4f;
}

.landing-command-message {
    color: #efeff1;
    font-size: 14px;
    font-weight: 400;
    overflow-wrap: anywhere;
}

@keyframes landingSpriteFloat {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100vw - 280px));
    }
}

@keyframes landingBackdropParallax {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -1296px 0;
    }
}

.loadout-page {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100vh;
    overflow: hidden;
    padding: 24px 32px;
}

.loadout-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 0 18px;
    background: #141414;
}

.loadout-header .site-nav-panel-logged-in {
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
    align-items: flex-end;
    min-width: 0;
    max-width: min(100%, 820px);
}

.loadout-header .loadout-actions {
    min-width: 0;
}

.loadout-header .site-nav-main-links,
.loadout-header .site-nav-admin-links {
    flex-wrap: wrap;
}

.loadout-header h1 {
    margin: 0;
    font-size: 48px;
    line-height: 1.1;
}

.loadout-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.loadout-actions-divider {
    width: 1px;
    height: 24px;
    background: #4c5658;
}

.eyebrow {
    margin: 0 0 6px;
    color: #f3b562;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.loadout-layout {
    display: grid;
    grid-template-columns: minmax(360px, 42%) minmax(0, 1fr);
    gap: 24px;
    max-width: 1440px;
    height: auto;
    width: 100%;
    margin: 0 auto;
    min-height: 0;
}

.room-layout {
    display: grid;
    place-items: start center;
    min-height: 0;
    width: 100%;
    max-width: 1216px;
    margin: 0 auto;
}

.room-preview {
    width: min(100%, 1216px);
}

.loadout-stage.room-stage {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 304 / 126;
    place-items: stretch;
    background: #1f2324;
}

.room-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    image-rendering: pixelated;
}

.room-wall,
.room-floor {
    position: absolute;
    left: 0;
    width: 100%;
    background-repeat: no-repeat;
    background-size: 100% auto;
    image-rendering: pixelated;
}

.room-wall {
    top: 0;
    height: 64.285714%;
    background-image: url("/plugin-assets/hero/assets/housing/01-wall.png");
    background-position: top center;
}

.room-floor {
    bottom: 0;
    height: 35.714286%;
    background-image: url("/plugin-assets/hero/assets/housing/01-floor.png");
    background-position: bottom center;
}

.room-canvas > .room-character {
    --hero-scale: 6;
    position: absolute;
    left: 50%;
    top: auto;
    bottom: 110px;
    z-index: 2;
    margin-left: -20px;
}

.room-username {
    position: absolute;
    left: 50%;
    bottom: 27px;
    z-index: 3;
    max-width: 220px;
    color: #f4f0e8;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.75);
    transform: translateX(-50%);
    overflow-wrap: anywhere;
}

.room-canvas-pair .room-character-owner {
    left: 66.666%;
}

.room-canvas-pair .room-character-visitor {
    left: 33.333%;
}

.room-canvas-pair .room-username-owner {
    left: 66.666%;
}

.room-canvas-pair .room-username-visitor {
    left: 33.333%;
}

.loadout-preview {
    position: sticky;
    top: 24px;
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: start;
    min-height: 0;
    height: auto;
}

.loadout-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
    height: clamp(400px, 54vh, 500px);
    max-height: 500px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #313131;
    border-radius: 8px;
    background-color: #1f2324;
    image-rendering: pixelated;
}

.loadout-stage-room {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.loadout-stage-bedroom {
    background-image: url("/plugin-assets/hero/assets/rooms/bedroom.png");
}

.loadout-stage-shower {
    background-image: url("/plugin-assets/hero/assets/rooms/shower.png");
}

.loadout-stage-shop {
    background-image: url("/plugin-assets/hero/assets/rooms/shop.png");
}

.loadout-stage-gym {
    background-image: url("/plugin-assets/hero/assets/rooms/gym.png");
}

.loadout-stage-room::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.45);
}

.loadout-stage-room.is-background-hidden {
    background-image: none;
}

.loadout-stage-room.is-background-hidden::before {
    display: none;
}

.loadout-stage > .character {
    --hero-scale: 6;
    z-index: 1;
    top: 60px;
}

.loadout-stage.room-stage .room-canvas > .room-character {
    --hero-scale: 6;
    top: auto;
    bottom: 120px;
}

.loadout-background-toggle {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #4c5658;
    border-radius: 6px;
    background: rgba(18, 21, 22, 0.88);
    color: #f4f0e8;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.loadout-background-toggle:hover {
    background: rgba(35, 41, 43, 0.94);
}

.loadout-preview-label {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 6px 8px;
    border: 1px solid #4c5658;
    border-radius: 6px;
    background: rgba(18, 21, 22, 0.88);
    color: #f4f0e8;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.buy-command-instruction {
    margin: 18px 0 0;
    padding-top: 18px;
    border-top: 1px solid #4c5658;
    color: #f3b562;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.buy-command-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 12px;
}

.buy-command-input {
    min-width: 0;
    height: 66px;
    padding: 10px 14px;
    border: 1px solid #464646;
    border-radius: 8px;
    background: #1f1f1f;
    color: #f4f0e8;
    font: inherit;
    font-size: 26px;
    font-weight: 700;
}

.buy-command-copy {
    position: relative;
    height: 66px;
    padding: 0 18px;
    border: 1px solid #8fd3ff;
    border-radius: 8px;
    background: #183240;
    color: #f4f0e8;
    font: inherit;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.buy-command-copy:focus-visible,
.buy-command-copy:hover {
    filter: brightness(1.1);
    outline: none;
}

.buy-command-copy.is-copy-success {
    border-color: #62d184;
    background: #1f6f3a;
    color: transparent;
}

.buy-command-copy.is-copy-success::after {
    content: "\2713";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #f4fff6;
    font-size: 24px;
    line-height: 1;
}

.buy-command-selected-card {
    display: grid;
    justify-items: center;
    min-height: 0;
    margin-top: 14px;
}

.buy-command-selected-card:empty {
    display: none;
}

.buy-command-selected-card-item {
    width: min(100%, 180px);
    pointer-events: none;
}

.buy-command-selected-card-item .loot-card-button {
    cursor: default;
}

.buy-command-selected-card-item .loot-card-button:disabled {
    opacity: 1;
}

.buy-command-selected-card-item .loot-card-button,
.buy-command-selected-card-item .loot-card-button:disabled,
.buy-command-selected-card-item .loot-card-button:focus-visible,
.buy-command-selected-card-item .loot-card-button:hover {
    border-color: #464646;
    box-shadow: none;
    outline: none;
}

.buy-command-selected-swatches {
    display: flex;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.buy-command-selected-swatch {
    width: 22px;
    height: 22px;
    border: 1px solid #8f8980;
    border-radius: 5px;
    background: var(--selected-swatch-color, #000000);
}

.loadout-items {
    min-height: 0;
    overflow-y: auto;
    padding: 0 8px 32px 0;
    overscroll-behavior: contain;
}

.mannequin-dummy {
    --hero-scale: 8;
}

.item-card-dummy {
    --hero-scale: 2;
}

.dummy-head-only .back-arm-wrap,
.dummy-head-only .back-leg-wrap,
.dummy-head-only .body-wrap,
.dummy-head-only .front-leg-wrap,
.dummy-head-only .front-arm-wrap {
    display: none;
}

.dummy-no-head .head-wrap {
    display: none;
}

.dummy-legs-only .back-arm-wrap,
.dummy-legs-only .body-wrap,
.dummy-legs-only .head-wrap,
.dummy-legs-only .front-arm-wrap {
    display: none;
}

.loadout-controls {
    display: grid;
    gap: 12px;
    margin: 0 0 22px;
}

.loadout-controls p {
    margin: 0;
    color: #d9d1c4;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.08;
}

.skin-tone-options {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.eye-style-options {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 8px;
}

.hair-style-options {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 8px;
}

.gear-style-options {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 8px;
}

#hat-style-label + .gear-style-options {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.skin-tone-button {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 58px;
    padding: 7px 9px;
    border: 1px solid #464646;
    border-radius: 8px;
    background: #242424;
    color: #f4f0e8;
    font: inherit;
    cursor: pointer;
}

.skin-tone-button.is-locked {
    opacity: 0.68;
    cursor: not-allowed;
}

.skin-tone-button.is-selected {
    border-color: #8fd3ff;
    box-shadow: 0 0 0 2px rgba(143, 211, 255, 0.2);
}

.skin-tone-swatch {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: var(--tone-color);
}

.skin-tone-name {
    overflow: hidden;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.skin-tone-status {
    grid-column: 2;
    overflow: hidden;
    color: #b9b0a3;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.eye-style-button {
    min-width: 0;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid #464646;
    border-radius: 8px;
    background: #242424;
    color: #f4f0e8;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.hair-style-button {
    min-width: 0;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid #464646;
    border-radius: 8px;
    background: #242424;
    color: #f4f0e8;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.gear-style-button {
    display: grid;
    place-items: center;
    gap: 4px;
    min-width: 0;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid #464646;
    border-radius: 8px;
    background: #242424;
    color: #f4f0e8;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.gear-style-button[data-hero-hat-style] {
    min-height: 118px;
    padding: 12px 8px 10px;
}

.loot-admin-toolbar {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    justify-content: flex-end;
    padding: 0 0 12px;
    background: #141414;
}

.loot-save-button {
    min-height: 46px;
    padding: 8px 16px;
    border: 1px solid #8fd3ff;
    border-radius: 8px;
    background: #183240;
    color: #f4f0e8;
    font: inherit;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

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

.loot-admin-options .loot-card {
    align-content: end;
}

.loot-browser-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.emote-action-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.emote-action-button {
    min-width: 92px;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #8fd3ff;
    border-radius: 8px;
    background: #183240;
    color: #f4f0e8;
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.emote-action-button-stop {
    border-color: #e08b8b;
    background: #3c2020;
}

.emote-action-button:focus-visible,
.emote-action-button:hover {
    filter: brightness(1.1);
    outline: none;
}

.item-card,
.loot-card {
    display: grid;
    gap: 6px;
    min-width: 0;
    position: relative;
}

.loot-section-name-input,
.loot-card-cost-input {
    width: 100%;
    min-width: 0;
    max-width: 520px;
    height: 50px;
    padding: 7px 10px;
    border: 1px solid #464646;
    border-radius: 8px;
    background: #1f1f1f;
    color: #f4f0e8;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
}

.loot-section-rarity-costs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0 12px;
    padding: 0;
    border: 0;
    max-width: 520px;
}

.loot-section-rarity-cost {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-width: 0;
    height: 38px;
    padding: 4px 7px;
    border: 1px solid #464646;
    border-radius: 8px;
    background: #1f1f1f;
    color: #d9d1c4;
    font-size: 16px;
    font-weight: 800;
}

.loot-section-rarity-cost input {
    min-width: 0;
    width: 100%;
    border: 0;
    background: transparent;
    color: #f4f0e8;
    font: inherit;
    font-size: 16px;
    text-align: right;
}

.loot-section-rarity-cost input:focus {
    outline: none;
}

.loot-section-rarity-cost input::-webkit-outer-spin-button,
.loot-section-rarity-cost input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.loot-section-rarity-cost input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.loot-section-rarity-cost:focus-within {
    border-color: #8fd3ff;
    box-shadow: 0 0 0 2px rgba(143, 211, 255, 0.2);
}

.loot-card-cost-input {
    max-width: none;
    height: 44px;
    padding: 5px 8px;
    font-size: 17px;
    text-align: center;
}

.loot-card-rarity-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.loot-card-rarity-option {
    position: relative;
    display: block;
    min-width: 0;
    height: 34px;
    cursor: pointer;
}

.loot-card-rarity-option span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 1px solid #464646;
    border-radius: 6px;
    background: #1f1f1f;
    color: #f4f0e8;
    font-size: 15px;
    font-weight: 800;
}

.loot-card-rarity-option:nth-child(1) span {
    color: #f4f0e8;
}

.loot-card-rarity-option:nth-child(4) span {
    color: #fff8eb;
}

.loot-card-rarity-option:nth-child(5) span {
    color: #fff0f0;
}

.loot-card-rarity-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.loot-card-rarity-option input:checked + span {
    box-shadow: 0 0 0 2px rgba(244, 240, 232, 0.5);
}

.loot-card-rarity-option:nth-child(1) input:checked + span {
    border-color: var(--rarity-common-border);
}

.loot-card-rarity-option:nth-child(2) input:checked + span {
    border-color: var(--rarity-rare-border);
}

.loot-card-rarity-option:nth-child(3) input:checked + span {
    border-color: var(--rarity-epic-border);
}

.loot-card-rarity-option:nth-child(4) input:checked + span {
    border-color: var(--rarity-legendary-border);
}

.loot-card-rarity-option:nth-child(5) input:checked + span {
    border-color: var(--rarity-heroic-border);
}

.loot-card-rarity-option input:focus-visible + span {
    outline: 2px solid rgba(143, 211, 255, 0.55);
    outline-offset: 2px;
}

.loot-card-enabled-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    height: 40px;
    color: #d9d1c4;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
}

.loot-card-enabled-toggle input {
    width: 14px;
    height: 14px;
    margin: 0;
}

.loot-section-name-input:focus,
.loot-card-cost-input:focus {
    border-color: #8fd3ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(143, 211, 255, 0.2);
}

.item-card-button,
.loot-card-button {
    display: grid;
    place-items: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
    min-height: 96px;
    padding: 10px 8px;
    border: 1px solid #464646;
    border-radius: 8px;
    background: #242424;
    color: #f4f0e8;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
}

.loot-card-button.loot-rarity-common {
    --loot-card-rarity-color: var(--rarity-common-border);
}

.loot-card-button.loot-rarity-rare {
    --loot-card-rarity-color: var(--rarity-rare-border);
}

.loot-card-button.loot-rarity-epic {
    --loot-card-rarity-color: var(--rarity-epic-border);
}

.loot-card-button.loot-rarity-legendary {
    --loot-card-rarity-color: var(--rarity-legendary-border);
}

.loot-card-button.loot-rarity-heroic {
    --loot-card-rarity-color: var(--rarity-heroic-border);
}

.loot-card-button::after {
    content: "";
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 18px;
    border-radius: 8px 8px 0 0;
    background: var(--loot-card-rarity-color, transparent);
    pointer-events: none;
}

.loot-card-button.loot-rarity-common::after,
.loot-card-button.loot-rarity-rare::after,
.loot-card-button.loot-rarity-epic::after,
.loot-card-button.loot-rarity-legendary::after,
.loot-card-button.loot-rarity-heroic::after {
    display: block;
}

.loot-card-button.loot-rarity-common,
.loot-card-button.loot-rarity-rare,
.loot-card-button.loot-rarity-epic,
.loot-card-button.loot-rarity-legendary,
.loot-card-button.loot-rarity-heroic {
    min-height: 114px;
    padding-top: 28px;
}

.item-card-preview {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 64px;
}

.item-card-preview-eyes {
    height: 116px;
    min-height: 116px;
    overflow: hidden;
}

.item-card-preview-face-acc {
    height: 116px;
    min-height: 116px;
    overflow: hidden;
}

.item-card-preview-hair {
    height: 124px;
    min-height: 124px;
    overflow: hidden;
}

.item-card-preview-hats {
    justify-self: center;
    width: 100%;
    height: 96px;
    min-height: 96px;
    overflow: visible;
}

.item-card-preview-armor {
    height: 132px;
    min-height: 132px;
    overflow: hidden;
}

.item-card-preview-back-acc {
    height: 132px;
    min-height: 132px;
    overflow: hidden;
}

.item-card-preview-shoes {
    height: 108px;
    min-height: 108px;
    overflow: hidden;
}

.item-card-name,
.loot-card-button [data-loot-card-name] {
    max-width: 100%;
    font-size: 18px;
    letter-spacing: 2px;
    overflow-wrap: anywhere;
    line-height: 1.2;
    text-align: center;
}

.item-card-button:focus-visible,
.item-card-button:hover,
.loot-card-button:focus-visible,
.loot-card-button:hover {
    border-color: #8fd3ff;
}

.item-card-button.is-selected,
.loot-card-button.is-selected {
    border-color: #9fdcff;
    background: #213848;
    box-shadow: 0 0 0 2px rgba(159, 220, 255, 0.22);
}

.loot-card-button-owned {
    opacity: 0.52;
}

.loot-card-button-owned:disabled {
    cursor: not-allowed;
}

.loot-card-button-disabled {
    opacity: 0.36;
    filter: grayscale(0.85);
}

.loot-card-button-owned.is-selected,
.loot-card-button-owned:focus-visible,
.loot-card-button-owned:hover {
    opacity: 0.82;
}

.loot-card-button-disabled.is-selected,
.loot-card-button-disabled:focus-visible,
.loot-card-button-disabled:hover {
    opacity: 0.68;
}

.item-card-status {
    margin-top: -4px;
    color: #b9b0a3;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.1;
    text-transform: uppercase;
}

.loot-card-transaction {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    min-width: 56px;
    height: 34px;
    padding: 0 7px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.loot-card-transaction-buy {
    background: #1f8f49;
}

.loot-card-transaction-refund {
    background: #b23b3b;
}

.loot-card-transaction:focus-visible,
.loot-card-transaction:hover {
    border-color: #ffffff;
    filter: brightness(1.08);
}

.admin-user-loot-page {
    display: block;
    min-height: 100vh;
    height: auto;
    overflow: visible;
}

.admin-user-loot-search {
    display: grid;
    align-content: start;
    gap: 4px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto 16px;
}

.admin-user-loot-search label {
    color: #d9d1c4;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
}

.admin-user-loot-search-row {
    display: grid;
    grid-template-columns: minmax(0, 360px) 104px;
    align-items: center;
    gap: 8px;
}

.admin-user-loot-search input {
    box-sizing: border-box;
    min-width: 0;
    height: 42px;
    padding: 7px 10px;
    border: 1px solid #464646;
    border-radius: 8px;
    background: #1f1f1f;
    color: #f4f0e8;
    font: inherit;
    font-size: 18px;
    line-height: 1;
}

.admin-user-loot-search input:focus {
    border-color: #8fd3ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(143, 211, 255, 0.2);
}

.admin-user-loot-search button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #8fd3ff;
    border-radius: 8px;
    background: #183240;
    color: #f4f0e8;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.admin-user-loot-layout {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    align-items: start;
    height: auto;
    min-height: 0;
}

.admin-user-loot-preview {
    position: static;
    display: grid;
    grid-template-rows: auto auto;
    gap: 12px;
    min-width: 0;
}

.admin-user-loot-preview .loadout-stage {
    height: 280px;
    min-height: 280px;
    max-height: 280px;
}

.admin-user-loot-preview .loadout-stage > .character {
    --hero-scale: 4.4;
    top: 18px;
}

.admin-user-loot-user {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #b9b0a3;
    font-size: 20px;
}

.admin-user-loot-user strong {
    color: #f4f0e8;
    font-size: 24px;
}

.admin-user-loot-results {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
    overflow: visible;
    padding: 0;
}

.admin-user-loot-result {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid #313131;
    border-radius: 8px;
    background: #1d1d1d;
}

.admin-user-loot-card .loot-card-button {
    min-height: 156px;
    height: 156px;
}

.admin-user-loot-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0;
}

.admin-user-loot-info div {
    min-width: 0;
}

.admin-user-loot-info dt {
    margin: 0 0 4px;
    color: #b9b0a3;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-user-loot-info dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #f4f0e8;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.admin-user-loot-info code {
    color: #8fd3ff;
    font-family: "ChronoType", Arial, Helvetica, sans-serif;
    font-size: 18px;
}

.admin-user-loot-empty {
    max-width: 1440px;
    margin: 0 auto;
    color: #d9d1c4;
    font-size: 22px;
    font-weight: 700;
}

.admin-user-list {
    width: 100%;
    max-width: 1440px;
    margin: 18px auto 0;
    padding-bottom: 32px;
}

.admin-user-list-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 10px;
}

.admin-user-list-header h2 {
    margin: 0;
    color: #f4f0e8;
    font-size: 28px;
}

.admin-user-list-header span {
    color: #b9b0a3;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-user-list-table-wrap {
    max-height: clamp(420px, 56vh, 720px);
    overflow: auto;
    border: 1px solid #313131;
    border-radius: 8px;
    background: #1d1d1d;
}

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

.admin-user-list-table th,
.admin-user-list-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #313131;
    text-align: left;
}

.admin-user-list-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #242424;
    color: #b9b0a3;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-user-list-table tr:last-child td {
    border-bottom: 0;
}

.admin-user-list-table code {
    color: #8fd3ff;
    font-family: "ChronoType", Arial, Helvetica, sans-serif;
    font-size: 18px;
}

.item-card-button[data-hero-hat-style],
.loot-card-button[data-hero-hat-style] {
    min-height: 118px;
}

.loot-skin-preview {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: var(--tone-color);
}

.loot-none-preview {
    width: 46px;
    height: 46px;
}

.loot-asset-preview {
    position: relative;
    width: 64px;
    height: 64px;
    background-image: var(--loot-preview-url);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    image-rendering: pixelated;
}

.loot-layered-preview {
    background-image: none;
}

.loot-asset-layer {
    position: absolute;
    inset: 0;
    background-image: var(--loot-preview-url);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    image-rendering: pixelated;
}

.hat-button-preview {
    position: relative;
    display: block;
    image-rendering: pixelated;
}

.gear-style-button .hat-button-preview {
    width: 112px;
    height: 84px;
    overflow: visible;
}

.hat-button-layer {
    position: absolute;
    left: 50%;
    top: 58%;
    width: 112px;
    height: 112px;
    background-image: var(--hat-preview-url);
    background-repeat: no-repeat;
    background-size: 224px 224px;
    image-rendering: pixelated;
    transform: translate(-50%, -50%);
}

.hat-button-color {
    background-position: -112px 0;
}

.hat-button-outline {
    background-position: 0 -112px;
}

.hat-item-preview {
    width: 128px;
    height: 96px;
    overflow: visible;
}

.hat-item-preview .hat-button-layer {
    left: 50%;
    top: 68%;
    width: 140px;
    height: 140px;
    background-size: 280px 280px;
    transform: translate(-50%, -50%);
}

.hat-item-preview .hat-button-color {
    background-position: -140px 0;
}

.hat-item-preview .hat-button-outline {
    background-position: 0 -140px;
}

.eye-style-button:focus-visible,
.eye-style-button:hover,
.hair-style-button:focus-visible,
.hair-style-button:hover,
.gear-style-button:focus-visible,
.gear-style-button:hover {
    border-color: #8fd3ff;
}

.eye-color-control,
.hair-color-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 220px;
    min-height: 52px;
    color: #d9d1c4;
    font-size: 22px;
    font-weight: 700;
}

.barber-section-color-controls,
.hair-color-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.custom-color-control {
    position: relative;
}

.custom-color-label {
    white-space: nowrap;
}

.custom-color-value {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.custom-color-picker {
    position: relative;
    display: inline-flex;
}

.custom-color-trigger {
    width: 48px;
    height: 40px;
    padding: 0;
    border: 1px solid #464646;
    border-radius: 8px;
    background: #242424;
    cursor: pointer;
}

.custom-color-trigger:focus-visible,
.custom-color-trigger:hover {
    border-color: #8fd3ff;
    outline: none;
}

.custom-color-swatch {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 7px;
    background: var(--custom-color, #000000);
    box-shadow: inset 0 0 0 3px rgba(20, 20, 20, 0.55);
}

.custom-color-popover {
    position: fixed;
    top: var(--custom-popover-top, 0);
    left: var(--custom-popover-left, 0);
    z-index: 10000;
    display: none;
    width: 230px;
    padding: 10px;
    border: 1px solid #4c5658;
    border-radius: 8px;
    background: #181b1c;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.custom-color-picker.is-open .custom-color-popover {
    display: grid;
    gap: 10px;
}

.custom-color-plane {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 0.66;
    border: 1px solid #464646;
    border-radius: 6px;
    background:
        linear-gradient(to top, #000000, transparent),
        linear-gradient(to right, #ffffff, hsla(var(--custom-hue, 0), 100%, 50%, 1));
    cursor: crosshair;
    touch-action: none;
}

.custom-color-plane-cursor {
    position: absolute;
    left: calc(var(--custom-saturation, 1) * 100%);
    top: calc((1 - var(--custom-value, 1)) * 100%);
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.custom-color-hue {
    appearance: none;
    width: 100%;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        #ff0000 0%,
        #ffff00 16.666%,
        #00ff00 33.333%,
        #00ffff 50%,
        #0000ff 66.666%,
        #ff00ff 83.333%,
        #ff0000 100%
    );
    cursor: pointer;
    touch-action: none;
}

.custom-color-hue::-webkit-slider-runnable-track {
    height: 18px;
    border: 1px solid #464646;
    border-radius: 999px;
    background: transparent;
}

.custom-color-hue::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -1px;
    border: 2px solid #f4f0e8;
    border-radius: 999px;
    background: hsl(var(--custom-hue, 0), 100%, 50%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9);
}

.custom-color-hue::-moz-range-track {
    height: 18px;
    border: 1px solid #464646;
    border-radius: 999px;
    background: transparent;
}

.custom-color-hue::-moz-range-progress {
    height: 18px;
    border-radius: 999px;
    background: transparent;
}

.custom-color-hue::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 2px solid #f4f0e8;
    border-radius: 999px;
    background: hsl(var(--custom-hue, 0), 100%, 50%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9);
}

.custom-color-hex {
    width: 100%;
    height: 34px;
    padding: 5px 8px;
    border: 1px solid #464646;
    border-radius: 6px;
    background: #242424;
    color: #f4f0e8;
    font-family: inherit;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
}

.custom-color-hex:focus {
    border-color: #8fd3ff;
    outline: none;
}

.custom-color-ok {
    justify-self: end;
    min-height: 32px;
    padding: 5px 12px;
    border: 1px solid #6f4bd1;
    border-radius: 6px;
    background: rgba(111, 75, 209, 0.22);
    color: #f4f0e8;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.custom-color-ok:focus-visible,
.custom-color-ok:hover {
    border-color: #bf94ff;
    outline: none;
}

@media (max-width: 640px) {
    body {
        --site-nav-width: min(82vw, 312px);
        --site-nav-offset: 0px;
    }

    body.site-nav-open {
        --site-nav-offset: var(--site-nav-width);
        overflow: hidden;
    }

    body.site-nav-dragging {
        --site-nav-offset: var(--site-nav-drag-x, 0px);
    }

    .site-mobile-menu-button {
        position: static;
        order: 1;
        z-index: 1;
        display: inline-grid;
        place-items: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid #4c5658;
        border-radius: 8px;
        background: rgba(18, 21, 22, 0.94);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
        cursor: pointer;
        touch-action: manipulation;
    }

    .site-mobile-menu-button span {
        display: block;
        width: 22px;
        height: 2px;
        margin: 2px 0;
        border-radius: 2px;
        background: #f4f0e8;
    }

    .site-mobile-menu-button:focus-visible,
    .site-mobile-menu-button:hover {
        border-color: #8fd3ff;
        outline: none;
    }

    .site-mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 82;
        display: block;
        background: rgba(0, 0, 0, 0);
        pointer-events: none;
        transition: background 160ms ease;
    }

    body.site-nav-open .site-mobile-nav-backdrop {
        background: rgba(0, 0, 0, 0);
        pointer-events: auto;
    }

    .site-nav-panel-logged-in,
    .landing-hero-banner .site-nav-panel-about,
    .loadout-header .site-nav-panel-logged-in {
        order: 4;
        position: static;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        z-index: auto;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        width: auto;
        max-width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        overflow: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
        transform: none;
        transition: none;
        will-change: auto;
        touch-action: manipulation;
    }

    .loadout-header .site-nav-panel-logged-in {
        justify-self: end;
    }

    .site-nav-panel-logged-in .site-user-menu,
    .loadout-header .site-nav-panel-logged-in .site-user-menu {
        align-self: stretch;
        justify-self: auto;
        grid-column: auto;
        grid-row: auto;
        width: 100%;
    }

    .site-nav-panel-logged-in .twitch-user-pill {
        justify-content: flex-start;
        width: 100%;
        max-width: min(42vw, 190px);
        min-height: 42px;
        padding: 9px 10px;
        overflow: hidden;
    }

    .site-nav-panel-logged-in .twitch-user-pill span:not(.site-user-menu-caret) {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-user-menu-logout {
        position: absolute;
        justify-content: flex-start;
        width: auto;
        margin-top: 8px;
    }

    .site-nav-panel-logged-in .loadout-actions,
    .loadout-header .site-nav-panel-logged-in .loadout-actions {
        box-sizing: border-box;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 85;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        justify-self: auto;
        grid-column: auto;
        grid-row: auto;
        gap: 14px;
        width: var(--site-nav-width);
        max-width: var(--site-nav-width);
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 76px 14px 18px;
        overflow-y: auto;
        background: #181b1d;
        border-right: 0;
        box-shadow: inset -1px 0 #313b3e;
        transform: translateX(calc(var(--site-nav-offset) - var(--site-nav-width)));
        transition: transform 180ms ease;
        will-change: transform;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }

    body.site-nav-dragging .site-nav-panel-logged-in .loadout-actions {
        transition: none;
    }

    .loadout-header > div:first-child,
    .loadout-header .site-mobile-menu-button,
    .loadout-header .site-nav-panel-logged-in > .site-user-menu,
    .loadout-layout,
    .landing-hero-banner > h1,
    .landing-hero-banner .site-mobile-menu-button,
    .landing-hero-banner .site-nav-panel-about > .site-user-menu,
    .landing-sprite-banner,
    .landing-tagline,
    .landing-instruction,
    .landing-steps,
    .landing-command-preview {
        transform: translateX(var(--site-nav-offset));
        transition: transform 180ms ease;
        will-change: transform;
    }

    body.site-nav-dragging .loadout-header > div:first-child,
    body.site-nav-dragging .loadout-header .site-mobile-menu-button,
    body.site-nav-dragging .loadout-header .site-nav-panel-logged-in > .site-user-menu,
    body.site-nav-dragging .loadout-layout,
    body.site-nav-dragging .landing-hero-banner > h1,
    body.site-nav-dragging .landing-hero-banner .site-mobile-menu-button,
    body.site-nav-dragging .landing-hero-banner .site-nav-panel-about > .site-user-menu,
    body.site-nav-dragging .landing-sprite-banner,
    body.site-nav-dragging .landing-tagline,
    body.site-nav-dragging .landing-instruction,
    body.site-nav-dragging .landing-steps,
    body.site-nav-dragging .landing-command-preview {
        transition: none;
    }

    .site-nav-panel-logged-in .site-nav-main-links,
    .site-nav-panel-logged-in .site-nav-admin-links,
    .loadout-header .site-nav-panel-logged-in .site-nav-main-links,
    .loadout-header .site-nav-panel-logged-in .site-nav-admin-links {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        justify-content: stretch;
        gap: 8px;
        width: 100%;
    }

    .site-nav-panel-logged-in .loadout-actions a {
        justify-content: flex-start;
        width: 100%;
        min-height: 42px;
        padding: 10px 12px;
        font-size: 18px;
    }

    .site-nav-panel-logged-in .loadout-actions-divider {
        display: block;
        width: 100%;
        height: 1px;
        margin: 2px 0;
        background: #4c5658;
    }

    .site-nav-panel-logged-in .site-nav-admin-links {
        padding-top: 14px;
        border-top: 1px solid #4c5658;
    }

    .custom-color-popover {
        width: min(330px, calc(100vw - 24px));
        padding: 14px;
        gap: 14px;
    }

    .custom-color-plane {
        aspect-ratio: 1 / 0.78;
    }

    .custom-color-plane-cursor {
        width: 16px;
        height: 16px;
    }

    .custom-color-hue,
    .custom-color-hue::-webkit-slider-runnable-track {
        height: 28px;
    }

    .custom-color-hue::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
        margin-top: -1px;
    }

    .custom-color-hue::-moz-range-track,
    .custom-color-hue::-moz-range-progress {
        height: 28px;
    }

    .custom-color-hue::-moz-range-thumb {
        width: 26px;
        height: 26px;
    }

    .custom-color-hex {
        height: 40px;
        font-size: 20px;
    }

    .custom-color-ok {
        min-height: 38px;
        padding: 7px 14px;
        font-size: 18px;
    }

    .landing-hero-banner {
        min-height: 170px;
        padding-top: 82px;
    }

    .landing-hero-banner-authenticated {
        flex-direction: column;
        align-items: stretch;
        min-height: 112px;
        padding-top: 24px;
    }

    .landing-hero-banner-authenticated .site-mobile-menu-button {
        position: absolute;
        top: 24px;
        left: 0;
    }

    .landing-hero-banner-authenticated h1 {
        align-self: center;
    }

    .landing-hero-banner-authenticated .site-nav-panel-about {
        order: -1;
        width: 100%;
        margin-bottom: 18px;
        padding-left: 56px;
        justify-content: flex-end;
    }

    .landing-hero-banner-authenticated .site-nav-panel-about .site-user-menu {
        width: auto;
        margin-left: auto;
    }

    .landing-hero-banner-authenticated .site-nav-panel-about .twitch-user-pill {
        width: auto;
    }

    .site-nav-panel-logged-in + .landing-page .landing-hero-banner {
        min-height: 112px;
        padding-top: 24px;
    }

    .landing-tagline,
    .landing-note {
        line-height: 1.08;
    }

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

    .loadout-page {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding: 0 20px 20px;
    }

    .loadout-header {
        position: sticky;
        top: 0;
        z-index: 90;
        display: grid;
        grid-template-columns: 44px auto minmax(0, 1fr) minmax(0, auto);
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        margin-bottom: 0;
        background: #141414;
    }

    .loadout-header > div:first-child {
        order: 2;
        min-width: 0;
    }

    .loadout-header .eyebrow {
        display: none;
    }

    .loadout-header h1 {
        font-size: 24px;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .loadout-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        height: auto;
    }

    .room-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        height: auto;
    }

    .loadout-preview {
        position: sticky;
        top: 64px;
        z-index: 20;
        padding-bottom: 10px;
        background: #141414;
    }

    .room-preview {
        position: static;
        width: 100%;
    }

    .loadout-stage.room-stage {
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 304 / 126;
    }

    .room-canvas > .room-character {
        --hero-scale: 2.4;
        bottom: 28px;
    }

    .room-username {
        bottom: 13px;
        max-width: 160px;
        font-size: 20px;
    }

    .loadout-preview-purchase {
        grid-template-columns: minmax(0, 1fr) minmax(118px, 42%);
        grid-template-rows: auto auto auto;
        align-items: stretch;
        gap: 8px 10px;
        padding: 8px 0 10px;
        background: #141414;
        border-bottom: 1px solid #313131;
    }

    .loadout-stage {
        height: clamp(360px, 42vh, 440px);
        min-height: 360px;
        max-height: 440px;
    }

    .loadout-preview:not(.loadout-preview-purchase) .loadout-stage {
        height: clamp(165px, 23vh, 218px);
        min-height: 165px;
        max-height: 218px;
    }

    .room-preview:not(.loadout-preview-purchase) .loadout-stage.room-stage {
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 304 / 126;
    }

    .loadout-preview:not(.loadout-preview-purchase) .loadout-stage > .character {
        top: -6px;
    }

    .loadout-preview:not(.loadout-preview-purchase) .loadout-stage-room {
        background-position: center 65%;
    }

    .room-preview .loadout-stage.room-stage .room-canvas > .room-character {
        --hero-scale: 2.4;
        top: auto;
        bottom: 28px;
    }

    .loadout-preview-purchase .loadout-stage {
        grid-column: 1;
        grid-row: 1;
        height: 180px;
        min-height: 180px;
        max-height: 180px;
        background-size: 135% auto;
    }

    .loadout-preview-purchase .loadout-stage > .character {
        --hero-scale: 4;
        top: 12px;
    }

    .loadout-preview-purchase .loadout-preview-label {
        top: 6px;
        right: 6px;
        padding: 4px 6px;
        font-size: 11px;
    }

    .loadout-preview-purchase .loadout-background-toggle {
        right: 6px;
        bottom: 6px;
        min-height: 28px;
        padding: 5px 7px;
        font-size: 11px;
    }

    .loadout-preview-purchase .buy-command-selected-card {
        grid-column: 2;
        grid-row: 1;
        align-content: stretch;
        justify-items: stretch;
        min-height: 180px;
        margin-top: 0;
    }

    .loadout-preview-purchase .buy-command-selected-card-item {
        width: 100%;
    }

    .loadout-preview-purchase .buy-command-selected-card-item .loot-card-button {
        min-height: 180px;
        padding: 20px 6px 8px;
    }

    .loadout-preview-purchase .buy-command-instruction {
        grid-column: 1 / -1;
        grid-row: 2;
        margin: 0;
        padding-top: 8px;
        font-size: 16px;
        line-height: 1.05;
    }

    .loadout-preview-purchase .buy-command-panel {
        grid-column: 1 / -1;
        grid-row: 3;
        gap: 8px;
        margin-top: 0;
    }

    .loadout-preview-purchase .buy-command-input {
        height: 44px;
        padding: 7px 9px;
        font-size: 17px;
    }

    .loadout-preview-purchase .buy-command-copy {
        height: 44px;
        padding: 0 10px;
        font-size: 16px;
    }

    .loadout-items {
        margin-top: 18px;
        overflow: visible;
        padding: 0;
    }

    .skin-tone-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eye-style-options {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hair-style-options {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .gear-style-options {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    #hat-style-label + .gear-style-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .loot-admin-options,
    .loot-browser-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-user-loot-result,
    .admin-user-loot-info {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-user-loot-search-row {
        grid-template-columns: minmax(0, 1fr) 96px;
    }

    .admin-user-loot-search button {
        width: 96px;
    }

    .admin-user-loot-layout {
        grid-template-columns: minmax(0, 1fr);
        height: auto;
    }

    .admin-user-loot-preview {
        position: static;
    }

    .admin-user-loot-preview .loadout-stage {
        height: 220px;
        min-height: 220px;
        max-height: 220px;
    }

    .admin-user-loot-preview .loadout-stage > .character {
        --hero-scale: 3.4;
        top: 10px;
    }

    .admin-user-loot-user {
        font-size: 17px;
    }

    .admin-user-loot-user strong {
        font-size: 20px;
    }

    .admin-user-loot-card .loot-card-button {
        height: 132px;
        min-height: 132px;
    }

    .admin-user-list-table {
        font-size: 17px;
    }

    .admin-user-list-table th,
    .admin-user-list-table td {
        padding: 9px 10px;
    }

    .admin-user-list-table code {
        font-size: 16px;
    }
}

@media (max-width: 900px), (pointer: coarse) {
    .room-preview .loadout-stage.room-stage .room-canvas > .room-character {
        --hero-scale: 2.4 !important;
        top: auto !important;
        bottom: 48px !important;
        transform: skewY(var(--hero-turn-skew-y)) scaleX(calc(2.4 * var(--hero-facing-scale-x) * var(--hero-turn-scale-x))) scaleY(2.4) !important;
    }
}
