:root {
    color-scheme: dark;
    --bg: #0A0A0D;
    --panel: rgba(20, 22, 27, .78);
    --panel-solid: #15171d;
    --panel-strong: rgba(36, 39, 48, .86);
    --text: #f7f8fb;
    --muted: #a5adbb;
    --line: rgba(255, 255, 255, .11);
    --line-strong: rgba(255, 255, 255, .22);
    --accent: #ff4d5d;
    --accent-2: #61d9ff;
    --accent-3: #b8f35a;
    --ok: #4fc08d;
    --radius: 8px;
    --blur: blur(22px) saturate(1.18);
    --shadow: 0 22px 70px rgba(0, 0, 0, .38);
    --inner-line: inset 0 1px 0 rgba(255, 255, 255, .075);
    --glass: rgba(255, 255, 255, .06);
    --glass-strong: rgba(255, 255, 255, .095);
    --character-card-width: 56px;
    --character-card-height: 56px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
    cursor: url("/assets/img/functional/cursor.png") 4 4, auto;
}

body.is-modal-scroll-locked {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a,
button,
[role="button"],
summary {
    cursor: url("/assets/img/functional/cursor.png") 4 4, pointer;
}

button,
input,
select {
    font: inherit;
}

* {
    scrollbar-color: rgba(255, 255, 255, .22) transparent;
    scrollbar-width: thin;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .32);
    background-clip: padding-box;
}

.site-header,
.site-footer {
    position: relative;
    z-index: 50;
}

.site-shell {
    width: min(1360px, calc(100% - clamp(24px, 4vw, 56px)));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid transparent;
    background: transparent;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 118px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .36) 46%, transparent 100%);
    opacity: 1;
    pointer-events: none;
    transition: opacity .2s ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
    border-bottom-color: transparent;
    background: rgba(7, 8, 11, .72);
    box-shadow: 0 14px 48px rgba(0, 0, 0, .22), var(--inner-line);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
}

.site-header.is-scrolled::before,
.site-header.is-menu-open::before {
    opacity: 0;
}

.site-header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 16px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgb(9, 10, 13);
    color: var(--muted);
}

.site-footer-inner {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

.brand {
    color: var(--text);
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.brand-redacted,
.text-redacted {
    display: inline-block;
    width: 156px;
    height: 18px;
    border-radius: 2px;
    background: #ff3d3d;
    vertical-align: middle;
}

.brand-redacted {
    width: 168px;
    height: 20px;
}

.menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--inner-line);
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.menu-toggle svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.menu-toggle:hover {
    border-color: var(--line-strong);
    background: var(--glass-strong);
    transform: translateY(-1px);
}

.site-menu-placeholder {
    position: fixed;
    top: 92px;
    right: max(-72px, calc((100vw - 1190px) / 2 - 64px));
    z-index: 70;
    width: min(560px, calc(100vw - 32px));
}

.site-menu-placeholder[hidden] {
    display: none;
}

.site-menu-card {
    min-height: 548px;
    overflow: hidden;
    border-radius: 75px;
    background: rgba(255, 255, 255, .2);
    box-shadow: inset 0 0 0 10px #212121, 0 34px 100px rgba(0, 0, 0, .48);
    -webkit-backdrop-filter: blur(28px) saturate(1.18);
    backdrop-filter: blur(28px) saturate(1.18);
    padding: 28px 0 42px;
}

.phone-status {
    display: grid;
    grid-template-columns: 1fr 190px 1fr;
    align-items: center;
    gap: 18px;
    padding: 0 36px 24px;
    color: #fff;
}

.phone-time {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .02em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .36);
}

.phone-island {
    justify-self: center;
    width: 190px;
    height: 34px;
    border-radius: 999px;
    background: #212121;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 28px rgba(0, 0, 0, .28);
}

.phone-system-icons {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.phone-system-icons svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.4;
}

.menu-profile {
    position: relative;
    overflow: hidden;
    min-height: 272px;
    margin: 0 38px;
    border-radius: 34px;
    background: #212121;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 70px rgba(0, 0, 0, .32);
}

.menu-profile-main {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-height: 180px;
    padding: 12px 26px 18px;
}

.profile-avatar {
    position: relative;
    display: grid;
    place-items: center;
    z-index: 4;
    width: 152px;
    height: 152px;
    flex: 0 0 auto;
    border: 5px solid rgba(255, 255, 255, .44);
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
    transform: translateY(24px);
}

.profile-avatar-image,
.profile-avatar-frame {
    position: absolute;
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    object-fit: contain;
}

.profile-avatar-frame {
    inset: 0;
    width: 100%;
    height: 100%;
}

.profile-info {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding-top: 28px;
}

.profile-info strong {
    color: #fff;
    font-size: clamp(26px, 4.2vw, 34px);
    font-weight: 760;
    line-height: 1;
}

.profile-info span {
    color: #C1C1C1;
    font-size: 18px;
    font-weight: 750;
}

.profile-info b {
    color: #F3B64B;
    font-size: 1.25em;
}

.profile-ribbon {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 0;
    height: calc(100% - 78px);
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(33, 33, 33, .38), rgba(33, 33, 33, .24)),
        #212121;
}

.profile-ribbon::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(33, 33, 33, 0), rgba(33, 33, 33, .38) 100%);
    pointer-events: none;
}

.ribbon-marquee {
    position: absolute;
    left: -260px;
    display: flex;
    gap: 0;
    width: max-content;
    opacity: .32;
    will-change: transform;
}

.ribbon-marquee span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 430px;
    height: 120px;
}

.ribbon-marquee img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, .06));
}

.ribbon-marquee-one {
    top: -48px;
    animation: ribbonMoveLeft 18s linear infinite;
}

.ribbon-marquee-two {
    top: 76px;
    animation: ribbonMoveRight 22s linear infinite;
}

.ribbon-marquee-three {
    top: 200px;
    animation: ribbonMoveLeft 19s linear infinite;
}

.profile-level {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    align-content: end;
    gap: 8px;
    height: 78px;
    padding: 16px 16px 12px;
    border-radius: 0 0 28px 28px;
    background: #CCF92C;
}

.profile-level-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    color: #252525;
    font-weight: 850;
}

.profile-level-meta span {
    order: 1;
    font-size: 18px;
    line-height: 1;
}

.profile-level-meta strong {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    order: 2;
    font-size: 22px;
    line-height: 1;
}

.profile-level-meta b {
    font-size: 42px;
    line-height: .8;
}

.profile-progress {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(37, 37, 37, .18);
}

.profile-progress span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: #fff;
}

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

    to {
        transform: translateX(-220px);
    }
}

@keyframes ribbonMoveRight {
    from {
        transform: translateX(-220px);
    }

    to {
        transform: translateX(0);
    }
}

.page-hero {
    position: relative;
    height: min(420px, 58vh);
    min-height: 340px;
    display: grid;
    align-items: end;
    overflow: hidden;
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .42) 54%, var(--bg) 100%),
        var(--hero-bg, url("/assets/img/bg/bg-main-test.jpg"));
    background-position: center;
    background-size: cover;
}

.tier-hero {
    --hero-bg: url("/assets/img/bg/bg-tier.jpg");
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, var(--bg));
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    padding: 118px 0 56px;
}

.page-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 0 0 14px;
    background: linear-gradient(90deg, #f7f8fb 0%, #61d9ff 42%, #ffb156 74%, #ff4d5d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(12px, 1.25vw, 15px);
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.kicker-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    transform: translateY(1px);
}

.page-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(48px, 7.6vw, 118px);
    font-weight: 950;
    line-height: .9;
    text-transform: uppercase;
}

.page-hero p:not(.page-kicker) {
    max-width: 620px;
    margin: 18px 0 0;
    color: rgba(247, 248, 251, .72);
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.55;
}

.section-tabs {
    position: sticky;
    top: 72px;
    z-index: 45;
    border-bottom: 1px solid var(--line);
    background: rgb(9, 10, 13);
}

.section-tabs-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 58px;
    overflow: hidden;
}

.section-tab,
.section-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-width: max-content;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 500;
    padding: 0 14px;
}

.section-tab:hover,
.section-more:hover {
    color: var(--text);
}

.section-tab.is-active {
    color: var(--text);
    font-weight: 600;
}

.section-tab.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: #fff;
}

.section-tab[hidden],
.section-more[hidden] {
    display: none;
}

.section-more span {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    margin-left: 8px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.home {
    min-height: 220px;
    padding: clamp(24px, 4vw, 56px) 0;
}

.home-main {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 118px 0 72px;
}

.home-bg {
    position: absolute;
    inset: 0 0 auto;
    height: min(540px, 76vh);
    background-image:
        linear-gradient(180deg, rgba(9, 10, 13, .52) 0%, rgba(9, 10, 13, .62) 46%, rgba(9, 10, 13, .88) 76%, var(--bg) 100%),
        url("/assets/img/bg/bg-main-test.jpg");
    background-position: center top, center;
    background-size: cover, cover;
    pointer-events: none;
}

.home-bg::after {
    display: none;
}

.home-shell {
    position: relative;
    z-index: 1;
    width: min(1190px, calc(100% - clamp(20px, 4vw, 48px)));
    margin: 0 auto;
}

.home-start {
    display: grid;
    gap: 24px;
}

.home-heading {
    display: grid;
    gap: 10px;
}

.home-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 6.05vw, 72px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: .95;
    text-transform: uppercase;
}

.home-kicker-icon {
    display: inline-block;
    width: .72em;
    height: .72em;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 0 26px rgba(255, 255, 255, .16);
}

.home-kicker .kicker-dot {
    width: .12em;
    height: .12em;
    transform: none;
}

.home-heading p {
    max-width: 680px;
    margin: 0;
    color: #ACAFB7;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.55;
}

.home-hero {
    display: grid;
    align-items: end;
    min-height: 62vh;
    max-width: 900px;
}

.eyebrow {
    color: var(--accent-2);
    font-weight: 700;
    text-transform: uppercase;
}

.home h1 {
    margin: 0 0 16px;
    font-size: clamp(40px, 8vw, 88px);
    line-height: .95;
}

.home p {
    max-width: 620px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.forbidden-page {
    position: fixed;
    inset: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: linear-gradient(180deg, #101217 0%, #0A0A0D 100%);
}

.forbidden-page::before {
    content: "";
    position: fixed;
    left: 50%;
    top: 30%;
    width: 88vmin;
    height: 88vmin;
    border-radius: 50%;
    background: rgba(255, 61, 61, .2);
    filter: blur(86px);
    opacity: .58;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.forbidden-screen {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    height: 100vh;
    height: 100dvh;
    padding: 24px;
    overflow: hidden;
}

.forbidden-message {
    width: min(100%, 920px);
    max-width: 920px;
    text-align: center;
}

.forbidden-message h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 8.4vw, 112px);
    font-weight: 900;
    line-height: .92;
    white-space: nowrap;
    text-align: center;
}

.forbidden-message p {
    max-width: 560px;
    margin: 18px auto 0;
    color: #ACAFB7;
    font-size: clamp(15px, 2.4vw, 20px);
    line-height: 1.55;
}

.primary-link,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 650;
    box-shadow: var(--inner-line);
    transition: transform .16s ease, border-color .16s ease, background .16s ease, filter .16s ease, box-shadow .16s ease;
}

.button svg {
    width: 17px;
    height: 17px;
    margin-right: 8px;
}

.mobile-label {
    display: none;
}

.primary-link,
.button-main {
    background: #f7f8fb;
    color: #08090c;
    box-shadow: 0 14px 34px rgba(255, 255, 255, .13), var(--inner-line);
}

.button-soft {
    background: rgba(255, 255, 255, .105);
    border-color: rgba(255, 255, 255, .16);
    color: var(--text);
}

.button-danger {
    background: rgba(255, 61, 61, .095);
    border-color: rgba(255, 61, 61, .24);
    color: rgb(255, 61, 61);
}

.button:hover,
.primary-link:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.tier-app {
    width: min(1360px, calc(100% - clamp(24px, 4vw, 56px)));
    margin: 0 auto;
    padding: clamp(24px, 2.4vw, 36px) 0 clamp(38px, 5vw, 72px);
}

.tier-toolbar {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(220px, 1fr) minmax(160px, 220px);
    gap: 12px;
    align-items: end;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .095);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)), rgb(13, 14, 18);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28), var(--inner-line);
}

.field-group {
    display: grid;
    gap: 6px;
}

.field-group label {
    color: #979DA6;
    font-size: 13px;
    font-weight: 650;
    text-transform: none;
}

.field-group input,
.field-group select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #23262C;
    border-radius: var(--radius);
    background: #181A22;
    color: #7D7B82;
    padding: 0 12px;
    font-size: 13px;
    outline: 0;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.field-group input::placeholder,
.pool-search::placeholder {
    color: #7D7B82;
    opacity: 1;
}

.field-group select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(247, 248, 251, .68) 50%),
        linear-gradient(135deg, rgba(247, 248, 251, .68) 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 50%,
        calc(100% - 16px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    padding-right: 42px;
}

.field-group input:focus,
.field-group select:focus,
.pool-search:focus,
.quick-add-search:focus {
    border-color: rgba(97, 217, 255, .62);
    box-shadow: 0 0 0 4px rgba(97, 217, 255, .11);
    background-color: #181A22;
}

.toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.tier-actions {
    align-items: center;
    justify-content: flex-start;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.tier-actions .button {
    flex: 0 0 auto;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 500;
}

.tier-actions .button-soft {
    border-color: #272A30;
    background: #171920;
    color: #fff;
}

.tier-display-settings {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 0;
}


.toggle-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 0 12px;
    user-select: none;
}

.toggle-control input {
    width: 15px;
    height: 15px;
    accent-color: var(--accent-2);
}

.toggle-control:has(input:checked) {
    color: var(--text);
}

.tier-display-settings .toggle-control + .toggle-control {
    position: relative;
    border-left: 0;
    border-radius: 0;
    padding-left: 14px;
}

.tier-display-settings .toggle-control + .toggle-control::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 18px;
    background: var(--line);
    transform: translateY(-50%);
}

.tier-layout {
    display: grid;
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.tier-workspace {
    min-width: 0;
    border: 1px solid #26282F;
    border-radius: 14px;
    background: #11131C;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28), var(--inner-line);
    padding: 22px;
}

.tier-editor-head {
    margin-bottom: 16px;
}

.tier-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tier-editable-title {
    min-width: 0;
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 2.4vw, 36px);
    font-weight: 650;
    line-height: 1.05;
    outline: 0;
}

.tier-editable-description {
    max-width: 680px;
    min-height: 23px;
    margin: 8px 0 0;
    color: #ACAFB7;
    font-size: 15px;
    line-height: 1.5;
    outline: 0;
}

.tier-editable-title:empty::before,
.tier-editable-description:empty::before {
    content: attr(data-placeholder);
    color: #ACAFB7;
}

.tier-edit-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .045);
    color: var(--muted);
    cursor: pointer;
}

.tier-edit-icon svg {
    width: 15px;
    height: 15px;
}

.tier-board {
    display: grid;
    gap: 14px;
}

.tier-row {
    position: relative;
    display: grid;
    grid-template-columns: var(--tier-label-width, 80px) minmax(0, 1fr) 76px;
    min-height: 118px;
    border: 1px solid var(--tier-border);
    border-radius: 12px;
    background: #151920;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .25), var(--inner-line);
    transition: border-color .16s ease, background .16s ease;
}

.tier-row-controls {
    display: flex;
    grid-column: 3;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    padding: 8px 14px 8px 10px;
    border: 0;
    background: #151920;
}

.tier-row-move-controls {
    display: grid;
    gap: 5px;
}

.tier-row-control {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, .055);
    color: rgba(255, 255, 255, .5);
    cursor: pointer;
    padding: 4px;
    transition: background .16s ease, color .16s ease, opacity .16s ease;
}

.tier-row-control svg {
    width: 15px;
    height: 15px;
}

.tier-row-control:hover:not(:disabled) {
    background: rgba(255, 255, 255, .115);
    color: rgba(255, 255, 255, .86);
}

.tier-row-control:disabled {
    cursor: not-allowed;
    opacity: .32;
}

.tier-row-delete:hover {
    background: rgba(255, 61, 61, .18);
    color: rgb(255, 82, 82);
}

.tier-label {
    grid-column: 1;
    grid-row: 1;
    appearance: none;
    display: grid;
    gap: 4px;
    place-items: center;
    align-content: center;
    align-self: stretch;
    width: var(--tier-label-width, 80px);
    height: 100%;
    border: 0;
    border-right: 1px solid var(--tier-border);
    background: var(--tier-bg);
    color: var(--tier-color);
    cursor: pointer;
    font-weight: 900;
    line-height: 1;
    padding: 10px 9px;
    text-align: center;
}

.tier-label:hover {
    filter: brightness(1.14);
}

.tier-label-main {
    font-size: var(--tier-title-size, 20px);
    max-width: calc(var(--tier-label-width, 80px) - 18px);
    hyphens: auto;
    overflow-wrap: anywhere;
    white-space: normal;
}

.tier-label-subtitle {
    font-size: var(--tier-subtitle-size, 12px);
    font-weight: 800;
    max-width: calc(var(--tier-label-width, 80px) - 18px);
    opacity: .78;
    hyphens: auto;
    overflow-wrap: anywhere;
    white-space: normal;
}

.tier-items {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--tier-card-size, 96px), var(--tier-card-size, 96px)));
    justify-content: start;
    gap: 10px;
    align-content: flex-start;
    min-height: 116px;
    padding: 10px 18px;
    background: #151920;
}

.tier-drop-placeholder {
    position: absolute;
    inset: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #96999F;
    cursor: default;
    font-size: 13px;
    font-weight: 600;
    pointer-events: auto;
    text-align: center;
}

.tier-drop-placeholder svg {
    width: 18px;
    height: 18px;
    color: #96999F;
}

.placeholder-mobile {
    display: none;
}

.tier-items:has(.character-card) .tier-drop-placeholder {
    display: none;
}

.tier-items.is-over,
.character-grid.is-over {
    outline: 2px solid rgba(97, 217, 255, .72);
    outline-offset: -5px;
}

.tier-items.is-over .tier-drop-placeholder {
    color: rgba(247, 248, 251, .72);
}

.tier-items.is-over {
    background:
        linear-gradient(90deg, rgba(97, 217, 255, .18), transparent 60%),
        rgba(255, 255, 255, .018);
}

.quick-add-slot {
    display: grid;
    grid-template-rows: 96px;
    gap: 0;
    align-items: start;
    justify-items: center;
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .58);
    cursor: pointer;
    padding: 0;
}

.quick-add-plus {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border: 1px dashed rgba(255, 255, 255, .22);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    box-shadow: none;
    font-size: 34px;
    font-weight: 500;
    line-height: 1;
}

.quick-add-slot-label {
    display: none;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.quick-add-slot:hover .quick-add-plus {
    border-color: rgba(255, 255, 255, .52);
    background: rgba(255, 255, 255, .075);
    color: var(--text);
}

.character-panel {
    display: flex;
    flex-direction: column;
    height: var(--character-panel-height, auto);
    max-height: var(--character-panel-height, none);
    border: 1px solid #26282F;
    border-radius: 14px;
    background: #11131C;
    overflow: hidden;
    position: sticky;
    top: 144px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28), var(--inner-line);
}

.sidebar-section + .sidebar-section {
    border-top: 1px solid #26282F;
}

.character-sidebar {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.tier-sidebar-settings {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.tier-sidebar-settings h2 {
    margin: 0;
    color: #fff;
    font-size: 16px;
}

.field-group label span {
    color: rgba(165, 173, 187, .62);
    font-weight: 500;
    text-transform: none;
}

.panel-head {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 0;
    background: #11131C;
}

.panel-head h2 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    letter-spacing: .02em;
}

.panel-head span {
    color: var(--muted);
    font-size: 13px;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--character-card-width), 1fr));
    align-content: start;
    justify-content: stretch;
    flex: 1 1 auto;
    gap: 8px;
    min-height: 0;
    overflow: auto;
    padding: 14px;
    scrollbar-gutter: stable;
}

.character-filters {
    display: grid;
    gap: 14px;
    flex: 0 0 auto;
    padding: 14px;
    border-bottom: 1px solid #26282F;
    background: #11131C;
}

.filter-block {
    display: grid;
    gap: 8px;
}

.filter-block p {
    margin: 0;
    color: #979DA6;
    font-size: 12px;
    font-weight: 650;
    text-transform: none;
}

.pool-search {
    width: 100%;
    min-height: 40px;
    border: 1px solid #23262C;
    border-radius: var(--radius);
    background: #181A22;
    color: #7D7B82;
    outline: 0;
    padding: 0 12px;
    font-size: 13px;
}

.character-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rank-filter-button {
    -webkit-appearance: none;
    appearance: none;
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .045);
    color: var(--rank-color);
    cursor: pointer;
    font-weight: 900;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.rank-filter-button img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.rank-filter-button[data-active="true"],
.rank-filter-button.is-active,
.rank-filter-button[aria-pressed="true"] {
    border-color: var(--rank-color);
    background: rgba(255, 255, 255, .095);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .028), 0 10px 24px rgba(0, 0, 0, .2);
}

.character-card {
    position: relative;
    flex: 0 0 var(--character-card-width);
    width: var(--character-card-width);
    height: var(--character-card-height);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 10px;
    background: rgba(255, 255, 255, .045);
    color: var(--text);
    padding: 0;
    cursor: grab;
    touch-action: none;
    user-select: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.character-card:hover {
    border-color: rgba(255, 255, 255, .34);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .32), 0 0 0 3px rgba(255, 255, 255, .03);
    transform: translateY(-2px);
}

.character-grid .character-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

.tier-items .character-card {
    display: grid;
    grid-template-rows: var(--tier-card-size, 96px);
    width: var(--tier-card-size, 96px);
    height: auto;
    aspect-ratio: auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.tier-items .character-card:hover {
    box-shadow: none;
}

.character-card:active {
    cursor: grabbing;
}

.avatar {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-grid .avatar {
    transform: scale(1.08);
    transform-origin: center top;
}

.tier-items .avatar {
    width: var(--tier-card-size, 96px);
    height: var(--tier-card-size, 96px);
    border-radius: 10px;
    box-shadow: none;
    transform: none;
}

.character-rank-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(to top, var(--rank-color) 0%, rgba(255, 255, 255, 0) 62%);
    pointer-events: none;
}

.tier-items .character-rank-glow {
    inset: 0 auto auto 0;
    width: var(--tier-card-size, 96px);
    height: var(--tier-card-size, 96px);
    border-radius: 10px;
}

.character-element-badge {
    display: none;
}

.character-rank-badge {
    display: none;
}

.tier-items .character-rank-badge {
    position: absolute;
    left: -4px;
    top: -4px;
    z-index: 2;
    display: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .86);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
    padding: 2px;
}

.tier-items .character-element-badge {
    position: absolute;
    right: -4px;
    top: calc(var(--tier-card-size, 96px) - 20px);
    bottom: auto;
    z-index: 2;
    display: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .92);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .34), 0 0 0 1px rgba(255, 255, 255, .12);
    padding: 3px;
}

.tier-character-name {
    display: none;
}

.tier-items .tier-character-name {
    display: none;
    margin-top: 6px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.show-tier-elements .tier-items .character-element-badge {
    display: block;
}

.show-tier-ranks .tier-items .character-rank-badge {
    display: block;
}

.show-tier-names .quick-add-slot {
    grid-template-rows: 96px auto;
    gap: 6px;
    height: 116px;
}

.show-tier-names .tier-row {
    min-height: 138px;
}

.show-tier-names .tier-items {
    min-height: 136px;
}

.show-tier-names .quick-add-slot-label {
    display: block;
}

.show-tier-names .tier-items .character-card {
    grid-template-rows: var(--tier-card-size, 96px) auto;
    height: auto;
    min-height: 0;
}

.show-tier-names .tier-items .tier-character-name {
    display: block;
}

.drag-ghost {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    opacity: .9;
    transform: translate(-50%, -50%) scale(1.04);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .35);
}

.export-canvas {
    display: none;
}

.tier-popover {
    position: fixed;
    z-index: 1100;
    display: flex;
    gap: 4px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: var(--radius);
    background: rgba(12, 14, 18, .96);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .42), var(--inner-line);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
}

.tier-popover[hidden] {
    display: none;
}

.tier-popover-button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--tier-border);
    border-radius: 6px;
    background: var(--tier-bg);
    color: var(--tier-color);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
}

.tier-popover-button:hover {
    filter: brightness(1.08);
}

.quick-add-modal {
    width: min(760px, calc(100vw - 28px));
    max-height: min(760px, calc(100vh - 28px));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)), rgba(12, 14, 18, .97);
    color: var(--text);
    padding: 0;
    box-shadow: 0 30px 96px rgba(0, 0, 0, .58), var(--inner-line);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    overscroll-behavior: contain;
}

.row-edit-modal,
.row-create-modal,
.tier-reset-modal,
.row-delete-modal {
    width: min(440px, calc(100vw - 28px));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)), rgba(12, 14, 18, .97);
    color: var(--text);
    padding: 0;
    box-shadow: 0 30px 96px rgba(0, 0, 0, .58), var(--inner-line);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
}

.row-edit-modal::backdrop,
.row-create-modal::backdrop,
.tier-reset-modal::backdrop,
.row-delete-modal::backdrop {
    background: rgba(0, 0, 0, .72);
}

.row-edit-dialog,
.row-create-dialog,
.tier-reset-dialog,
.row-delete-dialog {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 18px;
}

.row-create-actions,
.tier-reset-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.tier-reset-text {
    margin: 0;
    color: #ACAFB7;
    font-size: 14px;
    line-height: 1.45;
}

.row-edit-dialog .field-group:has(#rowSubtitleInput),
.row-edit-dialog .range-field {
    display: none;
}

.row-edit-preview {
    display: grid;
    grid-template-columns: var(--preview-label-width, 80px) minmax(0, 1fr);
    min-height: 112px;
    border: 1px solid var(--tier-border);
    border-radius: 12px;
    background: rgb(15, 16, 20);
    overflow: hidden;
    box-shadow: var(--inner-line);
}

.row-edit-preview-label {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    height: 100%;
    border-right: 1px solid var(--tier-border);
    background: var(--tier-bg);
    color: var(--tier-color);
    font-weight: 900;
    line-height: 1;
    padding: 10px 9px;
    text-align: center;
}

.row-edit-preview-label span,
.row-edit-preview-label small {
    max-width: 100%;
    hyphens: auto;
    overflow-wrap: anywhere;
    white-space: normal;
}

.row-edit-preview-label small {
    font-weight: 800;
    opacity: .78;
}

.row-edit-preview-fill {
    background: rgba(255, 255, 255, .012);
}

.range-field {
    display: grid;
    gap: 8px;
}

.range-field label {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.range-field input {
    width: 100%;
    accent-color: var(--accent-2);
}

.range-field input[type="range"] {
    cursor: pointer;
}

.row-color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.row-color-button {
    position: relative;
    display: block;
    width: 38px;
    height: 38px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: var(--row-color);
    cursor: pointer;
}

.row-color-button[data-active="true"] {
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .08);
}

.row-custom-color {
    width: 38px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius);
    background: conic-gradient(from 45deg, #ff3d3d, #ff7a00, #ffd600, #7fd600, #4aadff, #cb459f, #ff3d3d);
    cursor: pointer;
    padding: 0;
}

.row-edit-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.row-edit-actions > div {
    display: flex;
    gap: 8px;
}

.quick-add-modal::backdrop {
    background: rgba(0, 0, 0, .72);
}

.quick-add-dialog {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 18px;
}

.quick-add-sheet-handle {
    display: none;
}

.quick-add-head,
.quick-add-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.quick-add-actions .button-main {
    border-color: rgba(97, 217, 255, .9);
    background: #61D9FF;
    color: #fff;
    box-shadow: 0 12px 30px rgba(97, 217, 255, .22), var(--inner-line);
}

.quick-add-head h2 {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 48px);
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-add-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .045);
    color: var(--text);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    box-shadow: var(--inner-line);
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.quick-add-close:hover {
    border-color: var(--line-strong);
    background: var(--glass-strong);
    transform: translateY(-1px);
}

.quick-add-search {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .045);
    color: var(--text);
    padding: 0 12px;
}

.quick-add-section-title {
    margin: 0 0 -6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

.quick-add-elements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-element-button {
    -webkit-appearance: none;
    appearance: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .045);
    cursor: pointer;
    box-shadow: var(--inner-line);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.quick-element-button:hover,
.rank-filter-button:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, .085);
    transform: translateY(-1px);
}

.quick-element-button[data-active="true"],
.quick-element-button.is-active,
.quick-element-button[aria-pressed="true"] {
    border-color: var(--accent-2);
    background: rgba(97, 217, 255, .105);
    box-shadow: 0 0 0 3px rgba(97, 217, 255, .08), var(--inner-line);
}

.quick-element-button img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.quick-add-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    align-content: start;
    align-items: start;
    gap: 10px;
    height: min(390px, 48vh);
    overflow: auto;
    padding: 2px 4px 2px 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.quick-character {
    display: grid;
    grid-template-rows: 72px minmax(12px, auto);
    gap: 7px;
    justify-items: center;
    align-self: start;
    min-height: 104px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    cursor: pointer;
    overflow: visible;
    padding: 0 6px 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: var(--inner-line);
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.quick-character[data-selected="true"] {
    border-color: var(--accent-2);
    background: rgba(97, 217, 255, .105);
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(97, 217, 255, .08), var(--inner-line);
}

.quick-character-image {
    position: relative;
    width: calc(100% + 12px);
    height: 72px;
    overflow: hidden;
    border-radius: 10px 10px 6px 6px;
}

.quick-character-image > img:first-child {
    width: 100%;
    height: 100%;
    border-radius: 10px 10px 6px 6px;
    object-fit: cover;
}

.quick-character-element {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .9);
    padding: 3px;
}

.quick-add-empty {
    grid-column: 1 / -1;
    align-self: center;
    justify-self: center;
    margin: 12px 0;
    color: var(--muted);
    text-align: center;
}

.quick-add-submit-placeholder,
.quick-add-actions .button[disabled] {
    cursor: not-allowed;
    border-color: rgba(88, 166, 213, .55);
    background: #58A6D5;
    color: #fff;
    opacity: .62;
    filter: none;
}

@media (max-width: 1120px) {
    .home-main {
        padding-top: 104px;
    }

    .tier-toolbar,
    .tier-layout {
        grid-template-columns: 1fr;
    }

    .character-panel {
        height: auto;
        max-height: none;
        position: static;
        top: auto;
    }

    .character-sidebar {
        display: none;
    }

    .character-grid {
        overflow: visible;
    }

    .toolbar-actions {
        justify-content: center;
    }

    .toolbar-actions .button {
        flex: 0 0 auto;
    }

    .tier-actions {
        justify-content: center;
    }

    .tier-actions .button {
        flex: 0 0 auto;
    }

}

@media (max-width: 620px) {
    .site-shell,
    .tier-app {
        width: min(100% - 20px, 1360px);
    }

    .site-header-inner {
        min-height: 64px;
    }

    .site-menu-placeholder {
        top: 74px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100vw - 20px);
    }

    .site-menu-card {
        min-height: 520px;
        border-radius: 42px;
        box-shadow: inset 0 0 0 7px #212121, 0 28px 76px rgba(0, 0, 0, .48);
        padding: 20px 0 30px;
    }

    .phone-status {
        grid-template-columns: 1fr 116px 1fr;
        gap: 10px;
        padding: 0 22px 20px;
    }

    .phone-island {
        width: 116px;
        height: 28px;
    }

    .phone-time {
        font-size: 15px;
    }

    .phone-system-icons {
        gap: 7px;
    }

    .phone-system-icons svg {
        width: 18px;
        height: 18px;
    }

    .menu-profile {
        min-height: 262px;
        margin: 0 24px;
        border-radius: 28px;
    }

    .menu-profile-main {
        align-items: flex-start;
        gap: 15px;
        min-height: 174px;
        padding: 14px 18px 18px;
    }

    .profile-avatar {
        width: 112px;
        height: 112px;
        border-width: 4px;
        background: transparent;
        transform: translateY(24px);
    }

    .profile-info strong {
        font-size: 24px;
        font-weight: 760;
    }

    .profile-info {
        padding-top: 26px;
    }

    .profile-info span {
        font-size: 14px;
    }

    .profile-ribbon {
        height: calc(100% - 72px);
    }

    .ribbon-marquee span {
        width: 330px;
        height: 92px;
    }

    .ribbon-marquee-two {
        top: 62px;
    }

    .ribbon-marquee-three {
        top: 152px;
    }

    .profile-level {
        left: 0;
        right: 0;
        bottom: 0;
        height: 72px;
        padding: 14px 12px 10px;
    }

    .profile-level-meta {
        gap: 8px;
    }

    .profile-level-meta,
    .profile-level-meta strong {
        font-size: 15px;
    }

    .profile-level-meta b {
        font-size: 34px;
    }

    .page-hero {
        height: 320px;
        min-height: 320px;
    }

    .page-hero-content {
        padding: 104px 0 38px;
    }

    .section-tabs {
        top: 64px;
    }

    .section-tabs-inner {
        min-height: 52px;
    }

    .section-tab,
    .section-more {
        padding: 0 11px;
        font-size: 13px;
    }

    .tier-app {
        padding-top: 14px;
    }

    .home-main {
        padding: 92px 0 44px;
    }

    .home-bg {
        height: 540px;
    }

    .home-start {
        gap: 14px;
    }

    .home-kicker {
        flex-wrap: wrap;
        gap: 9px;
        font-size: clamp(34px, 10vw, 48px);
    }

    .tier-workspace {
        padding: 14px;
    }

    .tier-row {
        grid-template-columns: min(var(--tier-label-width, 54px), 42vw) minmax(0, 1fr) 42px;
        min-height: 80px;
    }

    .tier-row-controls {
        display: flex;
        grid-column: 3;
        grid-row: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 9px;
        height: 100%;
        padding: 7px 8px 7px 5px;
        background: #151920;
    }

    .tier-row-move-controls {
        display: grid;
        order: 1;
        gap: 5px;
    }

    .tier-row-control {
        width: 28px;
        height: 28px;
        border: 1px solid #272A30;
        background: #171920;
        color: #96999F;
        padding: 5px;
    }

    .tier-row-control svg {
        width: 14px;
        height: 14px;
    }

    .tier-row-delete {
        order: 2;
        color: rgb(255, 82, 82);
    }

    .tier-row-delete:hover {
        background: rgba(255, 61, 61, .18);
        color: rgb(255, 82, 82);
    }

    .tier-label {
        width: min(var(--tier-label-width, 54px), 42vw);
        height: 100%;
        font-size: 18px;
    }

    .tier-items {
        grid-template-columns: repeat(auto-fill, minmax(var(--tier-card-size, 60px), var(--tier-card-size, 60px)));
        justify-content: start;
        gap: 8px 10px;
        min-height: 78px;
        padding: 8px;
    }

    .tier-drop-placeholder {
        inset: 8px;
        cursor: pointer;
        font-size: 12px;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }

    .tier-drop-placeholder svg {
        width: 34px;
        height: 34px;
        border: 1px dashed rgba(150, 153, 159, .58);
        border-radius: 9px;
        padding: 8px;
        color: #96999F;
    }

    .placeholder-desktop {
        display: none;
    }

    .placeholder-mobile {
        display: inline;
    }

    .tier-items .character-card {
        width: var(--tier-card-size, 60px);
        height: auto;
        aspect-ratio: auto;
    }

    .button {
        min-height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }

    .quick-add-modal {
        position: fixed;
        inset: auto 0 0;
        width: 100%;
        max-width: none;
        height: min(88vh, 760px);
        height: min(88dvh, 760px);
        max-height: calc(100dvh - 18px);
        margin: 0;
        border: 1px solid #26282F;
        border-bottom: 0;
        border-radius: 30px 30px 0 0;
        background: #11131C;
        color: #fff;
        box-shadow: 0 -24px 80px rgba(0, 0, 0, .62), var(--inner-line);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .quick-add-modal::backdrop {
        background: rgba(0, 0, 0, .62);
    }

    .quick-add-dialog {
        display: flex;
        flex-direction: column;
        gap: 12px;
        height: 100%;
        max-height: 100%;
        padding: 10px 14px max(14px, env(safe-area-inset-bottom));
        overflow: hidden;
    }

    .quick-add-sheet-handle {
        -webkit-appearance: none;
        appearance: none;
        display: block;
        align-self: center;
        width: 46px;
        height: 5px;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, .72);
        cursor: pointer;
        padding: 0;
        margin: 2px 0 4px;
    }

    .quick-add-head h2 {
        color: #fff;
        font-size: 18px;
        font-weight: 650;
    }

    .quick-add-close {
        width: 32px;
        height: 32px;
        border-color: #26282F;
        background: #171920;
        color: #ACAFB7;
        box-shadow: none;
        transform: none;
    }

    .quick-add-search {
        min-height: 40px;
        border-color: #23262C;
        background: #181A22;
        color: #7D7B82;
        font-size: 13px;
    }

    .quick-add-search::placeholder {
        color: #7D7B82;
        opacity: 1;
    }

    .quick-add-section-title {
        color: #979DA6;
        font-size: 12px;
    }

    .quick-element-button,
    .rank-filter-button {
        border-color: #23262C;
        background: #181A22;
        box-shadow: none;
    }

    .quick-add-actions {
        flex: 0 0 auto;
        justify-content: flex-end;
        gap: 8px;
        padding-top: 2px;
    }

    .quick-add-slot {
        grid-template-rows: 60px;
        gap: 0;
        flex-basis: 60px;
        width: 60px;
        height: 60px;
    }

    .quick-add-plus {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .quick-add-slot-label {
        font-size: 9px;
    }

    .tier-items .avatar,
    .tier-items .character-rank-glow {
        width: var(--tier-card-size, 60px);
        height: var(--tier-card-size, 60px);
    }

    .tier-items .character-element-badge {
        right: -3px;
        top: calc(var(--tier-card-size, 60px) - 15px);
        bottom: auto;
        width: 18px;
        height: 18px;
        padding: 2px;
    }

    .show-tier-names .quick-add-slot,
    .show-tier-names .tier-items .character-card {
        height: auto;
    }

    .show-tier-names .quick-add-slot {
        grid-template-rows: 60px auto;
        gap: 5px;
    }

    .show-tier-names .tier-row {
        min-height: 96px;
    }

    .show-tier-names .tier-items {
        min-height: 92px;
    }

    .tier-items .tier-character-name {
        margin-top: 5px;
        font-size: 9px;
    }

    .desktop-label {
        display: none;
    }

    .mobile-label {
        display: inline;
    }

    .quick-add-grid {
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        align-items: flex-start;
        gap: 10px 8px;
        flex: 1 1 auto;
        min-height: 180px;
        height: auto;
        overflow: auto;
        padding: 2px 2px 14px 0;
    }

    .quick-element-button:hover,
    .rank-filter-button:hover {
        border-color: rgba(255, 255, 255, .1);
        background: rgba(255, 255, 255, .045);
        transform: none;
    }

    .quick-character {
        flex: 0 0 calc((100% - 32px) / 5);
        grid-template-rows: 1fr;
        min-height: 0;
        aspect-ratio: 1;
        padding: 0;
        overflow: hidden;
    }

    .quick-character-image {
        width: 100%;
        height: 100%;
        border-radius: 10px;
    }

    .quick-character-image > img:first-child {
        border-radius: 10px;
    }

    .quick-character-element,
    .quick-character > span:not(.quick-character-image) {
        display: none;
    }

}
