@import url("https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&display=swap");

@font-face {
    font-family: "TikTok Sans Local";
    src: url("/assets/fonts/TikTokSans-Variable.woff2") format("woff2-variations");
    font-style: oblique -12deg 0deg;
    font-weight: 300 900;
    font-stretch: 75% 150%;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --font-heading: "TikTok Sans Local", Arial, sans-serif;
    --font-body: "Onest", Inter, Arial, sans-serif;
    --accent-red: #c9434e;
    --accent-red-deep: #7b2029;
    --accent-gold: #a87330;
    --accent-gold-deep: #5d3b1d;
    font-family: var(--font-body);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    color: #fff;
}

.start-page {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background: #0f0f0f;
}

.home-shell {
    width: min(960px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 40px;
}

.site-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
    color: #fff;
    font-family: var(--font-heading);
    font-optical-sizing: auto;
    font-stretch: 123.2%;
    font-style: oblique -6deg;
    font-variation-settings: "slnt" -6, "wdth" 123.2, "wght" 645;
    font-size: 20px;
    font-weight: 645;
    line-height: 1;
    text-decoration: none;
}

.navbar-brand img {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.navbar-socials {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}

.navbar-socials a {
    --social-shadow: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border-radius: 10px;
    transition: box-shadow 160ms ease, filter 160ms ease, transform 160ms ease;
}

.navbar-socials .navbar-social-telegram {
    --social-shadow: rgba(42, 171, 238, 0.48);
    background: linear-gradient(180deg, #2aabee 0%, #229ed9 100%);
}

.navbar-socials .navbar-social-vk {
    --social-shadow: rgba(0, 119, 255, 0.48);
    background: #0077ff;
}

.navbar-socials img {
    display: block;
    width: 100%;
    height: 100%;
}

@media (hover: hover) and (pointer: fine) {
    .navbar-socials a:hover {
        box-shadow: 0 0 18px var(--social-shadow);
        filter: brightness(1.08);
        transform: scale(1.06);
    }
}

.navbar-socials a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    color: #77777d;
    font-size: 12px;
    line-height: 1;
}

.breadcrumbs a {
    color: #a4a3a3;
    text-decoration: none;
    transition: color 160ms ease;
}

.breadcrumbs [aria-current="page"] {
    color: #fff;
}

.breadcrumbs svg {
    width: 14px;
    height: 14px;
    stroke-width: 1.7;
}

.breadcrumbs a:focus-visible {
    outline: 2px solid #c93b45;
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .breadcrumbs a:hover {
        color: #c93b45;
    }
}

.characters-page .home-banner {
    margin-top: 14px;
}

.home-banner {
    position: relative;
    height: 320px;
    margin-top: 26px;
    overflow: hidden;
    border-radius: 20px;
    background: #1f1f1f;
}

.home-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-banner > img {
    position: relative;
    z-index: 0;
}

.hero-pulse,
.hero-particles,
.character-rain {
    position: absolute;
    display: block;
    pointer-events: none;
    mix-blend-mode: screen;
}

.hero-pulse {
    z-index: 1;
    top: -55%;
    right: -35%;
    bottom: auto;
    width: 95%;
    height: 130%;
    opacity: 0;
    background: radial-gradient(ellipse at 60% 45%, rgba(201, 59, 69, 0.78) 0%, rgba(168, 31, 46, 0.38) 32%, rgba(168, 31, 46, 0) 72%);
    filter: blur(14px);
    transform: scale(0.92);
    transform-origin: 100% 0;
}

.hero-pulse-white {
    background: radial-gradient(ellipse at 60% 45%, rgba(255, 255, 255, 0.82) 0%, rgba(218, 228, 240, 0.38) 32%, rgba(218, 228, 240, 0) 72%);
}

.hero-particles,
.character-rain {
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-particles {
    opacity: 0.9;
}

.character-rain {
    opacity: 0.72;
}

.character-fog {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.character-fog-cloud {
    position: absolute;
    right: var(--fog-right);
    bottom: var(--fog-bottom);
    width: var(--fog-width);
    height: var(--fog-height);
    opacity: 0;
    background:
        radial-gradient(ellipse at 34% 54%, rgba(238, 242, 247, 0.64) 0%, rgba(218, 226, 234, 0.35) 25%, transparent 58%),
        radial-gradient(ellipse at 67% 42%, rgba(225, 232, 239, 0.54) 0%, rgba(197, 208, 219, 0.28) 30%, transparent 64%),
        radial-gradient(ellipse at 55% 72%, rgba(166, 179, 192, 0.28) 0%, rgba(135, 149, 163, 0.12) 34%, transparent 69%),
        radial-gradient(ellipse at 78% 75%, rgba(232, 237, 243, 0.42) 0%, rgba(188, 200, 212, 0.17) 35%, transparent 72%);
    filter: blur(var(--fog-blur));
    animation: character-fog-cloud-drift var(--fog-duration) ease-in-out var(--fog-delay) infinite;
    will-change: opacity, transform;
}

.character-fog-cloud:nth-child(1) {
    --fog-right: -12%;
    --fog-bottom: -24%;
    --fog-width: 44%;
    --fog-height: 34%;
    --fog-blur: 17px;
    --fog-duration: 21s;
    --fog-delay: -3s;
    --fog-opacity: 0.66;
    --fog-drift: -65%;
}

.character-fog-cloud:nth-child(2) {
    --fog-right: -2%;
    --fog-bottom: -11%;
    --fog-width: 38%;
    --fog-height: 31%;
    --fog-blur: 20px;
    --fog-duration: 26s;
    --fog-delay: -15s;
    --fog-opacity: 0.58;
    --fog-drift: -68%;
}

.character-fog-cloud:nth-child(3) {
    --fog-right: 5%;
    --fog-bottom: 1%;
    --fog-width: 31%;
    --fog-height: 25%;
    --fog-blur: 15px;
    --fog-duration: 18s;
    --fog-delay: -9s;
    --fog-opacity: 0.48;
    --fog-drift: -58%;
}

.character-fog-cloud:nth-child(4) {
    --fog-right: 10%;
    --fog-bottom: -5%;
    --fog-width: 28%;
    --fog-height: 21%;
    --fog-blur: 13px;
    --fog-duration: 16s;
    --fog-delay: -12s;
    --fog-opacity: 0.44;
    --fog-drift: -52%;
}

.character-fog-cloud:nth-child(5) {
    --fog-right: 0%;
    --fog-bottom: 7%;
    --fog-width: 34%;
    --fog-height: 29%;
    --fog-blur: 22px;
    --fog-duration: 29s;
    --fog-delay: -20s;
    --fog-opacity: 0.42;
    --fog-drift: -62%;
}

.character-fog-cloud:nth-child(6) {
    --fog-right: 7%;
    --fog-bottom: -18%;
    --fog-width: 42%;
    --fog-height: 34%;
    --fog-blur: 25px;
    --fog-duration: 34s;
    --fog-delay: -26s;
    --fog-opacity: 0.4;
    --fog-drift: -44%;
}

@keyframes character-fog-cloud-drift {
    0% { opacity: 0; transform: translate3d(28%, 4%, 0) scale(0.9); }
    18% { opacity: var(--fog-opacity); }
    58% { opacity: calc(var(--fog-opacity) * 0.92); }
    100% { opacity: 0; transform: translate3d(var(--fog-drift), -2%, 0) scale(1.14); }
}

@media (prefers-reduced-motion: reduce) {
    .character-fog-cloud {
        opacity: calc(var(--fog-opacity) * 0.75);
        animation: none;
    }
}

.banner-content {
    position: absolute;
    z-index: 3;
    inset: 30px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
}

.banner-copy {
    max-width: min(620px, 100%);
    font-family: var(--font-heading);
    font-optical-sizing: auto;
    font-style: normal;
}

.banner-copy h1,
.banner-copy p {
    margin: 0;
}

.banner-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a81f2e;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 15px;
    font-style: normal;
    font-weight: 650;
    line-height: 1.25;
    text-align: left;
    text-shadow: 0 1px 12px rgba(168, 31, 46, 0.4);
    -webkit-tap-highlight-color: transparent;
}

.banner-eyebrow:focus-visible {
    outline: 2px solid #c93b45;
    outline-offset: 5px;
    border-radius: 4px;
}

.banner-eyebrow img {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.translation-tooltip {
    position: fixed;
    z-index: 1000;
    width: max-content;
    max-width: min(320px, calc(100vw - 24px));
    padding: 11px 13px 12px;
    visibility: hidden;
    border: 1px solid #303034;
    border-radius: 12px;
    background: #151517;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
    opacity: 0;
    color: #fff;
    font-family: var(--font-body);
    pointer-events: none;
    transform: scale(0.97);
    transform-origin: 50% 100%;
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.translation-tooltip.is-visible {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}

.translation-tooltip[data-placement="bottom"] {
    transform-origin: 50% 0;
}

.translation-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #151517;
    transform: translateX(-50%) rotate(45deg);
}

.translation-tooltip[data-placement="top"]::after {
    bottom: -5px;
    border-right: 1px solid #303034;
    border-bottom: 1px solid #303034;
}

.translation-tooltip[data-placement="bottom"]::after {
    top: -5px;
    border-top: 1px solid #303034;
    border-left: 1px solid #303034;
}

.translation-tooltip-label,
.translation-tooltip-text {
    display: block;
}

.translation-tooltip-label {
    margin-bottom: 4px;
    color: #8d8d92;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.translation-tooltip-text {
    font-size: 13px;
    line-height: 1.45;
}

.translation-tooltip-speaker {
    color: #c93b45;
}

.banner-copy h1 {
    font-size: clamp(38px, 5vw, 58px);
    font-stretch: 123.2%;
    font-style: oblique -6deg;
    font-variation-settings: "slnt" -6, "wdth" 123.2, "wght" 782;
    font-weight: 782;
    line-height: 1.1;
    text-transform: uppercase;
}

.banner-copy h1 span {
    display: block;
}

.banner-title-accent {
    color: #c93b45;
}

.banner-copy p {
    margin-top: 10px;
    padding-left: 14px;
    border-left: 3px solid #c93b45;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(14px, 1.8vw, 17px);
    font-variation-settings: "slnt" 0, "wdth" 100, "wght" 440;
    font-weight: 440;
    line-height: 1.45;
}

.banner-copy p span {
    display: inline;
}

.banner-copy p span + span::before {
    content: " ";
}

.character-dossier {
    --dossier-accent: #c93b45;
    min-height: 390px;
    margin-top: 14px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid #28282a;
    border-radius: 24px;
    background: linear-gradient(45deg, #141416 0%, #1a1b1c 100%);
}

.character-dossier-daffodil {
    --dossier-accent: #3576ef;
}

.dossier-header {
    width: 100%;
}

.dossier-content {
    display: grid;
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(18px, 2.5vw, 28px);
}

.dossier-portrait {
    align-self: stretch;
    min-height: 340px;
    padding: 12px;
    border: 1px solid #303034;
    border-radius: 14px;
    background: #202024;
}

.dossier-portrait-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 316px;
    overflow: hidden;
    background: #1b1e28;
}

.dossier-portrait-inner::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(9, 10, 14, 0.24) 100%);
    pointer-events: none;
}

.dossier-portrait-background {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dossier-character-art {
    position: absolute;
    z-index: 1;
    top: -2%;
    left: 50%;
    display: block;
    width: auto;
    height: 235%;
    max-width: none;
    object-fit: contain;
    object-position: center top;
    transform: translateX(-50%);
    user-select: none;
}

.dossier-copy {
    width: 100%;
    max-width: 560px;
    padding-top: 4px;
}

.dossier-copy h1,
.dossier-copy p,
.dossier-record-heading {
    margin: 0;
}

.dossier-record-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #8f9299;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.08em;
    line-height: 1.3;
}

.dossier-record-heading strong {
    flex: 0 0 auto;
    color: var(--dossier-accent);
    font: inherit;
}

.dossier-record-divider {
    width: 100%;
    height: 1px;
    margin: 12px 0 24px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.14) 18%, rgba(255, 255, 255, 0.14) 82%, transparent 100%);
}

.dossier-field-label {
    display: block;
    margin-bottom: 9px;
    color: #777b83;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.dossier-copy h1 {
    background: linear-gradient(110deg, #ffffff 0%, #eceef1 28%, #adb2bb 50%, #f7f8fa 72%, #c8ccd3 100%);
    background-clip: text;
    color: transparent;
    font-family: var(--font-heading);
    font-size: clamp(42px, 5.6vw, 56px);
    font-stretch: 123.2%;
    font-style: oblique -6deg;
    font-variation-settings: "slnt" -6, "wdth" 123.2, "wght" 782;
    font-weight: 782;
    line-height: 0.95;
    text-transform: uppercase;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dossier-attributes {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.dossier-attribute {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 112px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
}

.dossier-attribute > img {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.dossier-attribute > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
}

.dossier-attribute small {
    color: #777b83;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.15;
}

.dossier-attribute strong {
    color: #e8e9eb;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.dossier-description {
    max-width: 440px;
    margin-top: 20px;
    padding-left: 14px;
    border-left: 3px solid var(--dossier-accent);
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.6;
}

.character-profile-layout {
    --character-accent: #c93b45;
    --character-accent-rgb: 201, 59, 69;
    display: grid;
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    margin-top: 14px;
}

.daffodil-profile-layout {
    --character-accent: #3576ef;
    --character-accent-rgb: 53, 118, 239;
}

.character-profile-island,
.character-function-island {
    overflow: hidden;
    border: 1px solid #28282a;
    border-radius: 22px;
    background: linear-gradient(45deg, #141416 0%, #1a1b1c 100%);
}

.character-profile-portrait {
    position: relative;
    isolation: isolate;
    height: 360px;
    overflow: hidden;
}

.character-profile-portrait::after {
    content: "";
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    height: 42%;
    background: linear-gradient(180deg, transparent 0%, rgba(23, 23, 25, 0.72) 53%, #171719 100%);
    pointer-events: none;
}

.character-profile-portrait-background {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
}

.character-profile-portrait-glow {
    position: absolute;
    z-index: 1;
    top: 8%;
    right: -30%;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(var(--character-accent-rgb), 0.38);
    filter: blur(58px);
    pointer-events: none;
}

.character-profile-portrait-art {
    position: absolute;
    z-index: 2;
    top: -3%;
    left: 50%;
    display: block;
    width: auto;
    height: 205%;
    max-width: none;
    object-fit: contain;
    object-position: center top;
    transform: translateX(-50%);
    user-select: none;
}

.character-profile-portrait-title {
    position: absolute;
    z-index: 4;
    right: 24px;
    bottom: 12px;
    left: 24px;
}

.character-profile-portrait-title h1 {
    margin: 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 34px;
    font-stretch: 123.2%;
    font-style: oblique -6deg;
    font-variation-settings: "slnt" -6, "wdth" 123.2, "wght" 782;
    font-weight: 782;
    line-height: 0.95;
    text-transform: uppercase;
}

.character-profile-stars {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    color: var(--character-accent);
}

.character-profile-stars svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke-width: 1.5;
}

.character-profile-portrait-traits {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 12px;
}

.character-profile-portrait-trait {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    backdrop-filter: blur(6px);
}

.character-profile-portrait-trait img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.character-profile-portrait-rank {
    color: #ffe974;
}

.character-profile-body {
    padding: 16px 24px 24px;
}

.character-profile-summary + .character-combat-role {
    margin-top: 18px;
}

.character-combat-role > h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.character-combat-role > h2::before,
.character-combat-role > h2::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
}

.character-combat-role > h2::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14));
}

.character-combat-role > h2::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent);
}

.character-combat-role > h2 span {
    flex: 0 0 auto;
}

.character-combat-role-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
}

.character-combat-role-list > div {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-direction: column;
    gap: 7px;
    padding: 5px 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
}

.character-combat-role-list > div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.character-combat-role-list img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.character-profile-summary {
    margin: 18px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    background: #191b1f;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.55;
}

.character-profile-divider {
    width: 100%;
    height: 1px;
    margin: 22px 0 10px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.14) 18%, rgba(255, 255, 255, 0.14) 82%, transparent 100%);
}

.character-profile-heading {
    margin: 0 0 10px;
    padding-left: 11px;
    border-left: 3px solid var(--character-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: uppercase;
}

.character-profile-facts {
    margin: 0;
}

.character-profile-facts > div {
    display: grid;
    grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1.25fr);
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.character-profile-facts > div:first-child {
    border-top: 0;
}

.character-profile-facts dt,
.character-profile-facts dd {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
}

.character-profile-facts dt {
    color: #74777e;
}

.character-profile-facts dd {
    color: rgba(255, 255, 255, 0.82);
    text-align: right;
}

.character-function-island {
    min-width: 0;
}

.character-function-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 12px;
}

.character-function-tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(78px, 1fr));
    gap: 0;
    margin: 0;
    padding: 5px;
    overflow-x: auto;
    border: 1px solid #28282a;
    border-radius: 16px;
    background: linear-gradient(45deg, #141416 0%, #1a1b1c 100%);
    scrollbar-width: none;
}

.character-function-tabs::-webkit-scrollbar {
    display: none;
}

.character-tab-indicator {
    position: absolute;
    z-index: 0;
    top: 5px;
    left: 0;
    height: calc(100% - 10px);
    border: 1px solid rgba(var(--character-accent-rgb), 0.42);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(var(--character-accent-rgb), 0.26), rgba(var(--character-accent-rgb), 0.14));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    pointer-events: none;
}

.character-tab-indicator.is-ready {
    transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1), width 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.character-function-tabs button {
    position: relative;
    z-index: 1;
    height: 40px;
    min-width: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #85888f;
    font: inherit;
    font-size: 11px;
    font-weight: 550;
    line-height: 1;
    cursor: pointer;
    transition: color 220ms ease;
}

.character-function-tabs button[aria-selected="true"] {
    color: #fff;
}

.character-function-tabs button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.32);
    outline-offset: -3px;
}

.character-function-panels {
    min-height: 286px;
    padding: 18px 24px 24px;
    overflow: hidden;
    transition: height 290ms cubic-bezier(0.22, 1, 0.36, 1);
}

.character-function-panel[hidden] {
    display: none;
}

.character-function-panel {
    opacity: 1;
    transform: translateY(0);
}

.character-function-panel.is-leaving {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.character-function-panel.is-entering {
    opacity: 0;
    transform: translateY(6px);
}

.character-function-panel.is-entering.is-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 290ms cubic-bezier(0.22, 1, 0.36, 1), transform 290ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
    .character-tab-indicator.is-ready {
        transition: none;
    }

    .character-function-panels,
    .character-function-panel,
    .character-function-panel.is-leaving,
    .character-function-panel.is-entering.is-active {
        transition-duration: 1ms;
        transform: none;
    }
}

.character-function-panel > header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.character-function-panel > header > span {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(var(--character-accent-rgb), 0.28);
    border-radius: 10px;
    background: rgba(var(--character-accent-rgb), 0.08);
    color: var(--character-accent);
    font-size: 11px;
    font-weight: 650;
}

.character-function-panel h2,
.character-function-panel p {
    margin: 0;
}

.character-function-panel h2 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 22px;
    font-stretch: 115%;
    font-variation-settings: "slnt" 0, "wdth" 115, "wght" 645;
    font-weight: 645;
    line-height: 1.1;
}

.character-function-panel header p {
    margin-top: 6px;
    color: #85888f;
    font-size: 12px;
    line-height: 1.45;
}

.character-function-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.character-function-grid > div {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: #191b1f;
}

.character-function-grid small,
.character-function-grid strong {
    display: block;
}

.character-function-grid small {
    color: #72767e;
    font-size: 10px;
    line-height: 1.3;
}

.character-function-grid strong {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 550;
    line-height: 1.4;
}

.tierlist-workspace {
    --tier-avatar-size: 64px;
    --tier-row-padding-y: 4px;
    --tier-name-space: 0px;
    margin-top: 40px;
}

.tierlist-workspace.show-names .tierlist-row-content:has(> .tierlist-character:not(.tierlist-sortable-fallback):not(.tierlist-sortable-placeholder)) {
    --tier-name-space: 18px;
}

.tierlist-workspace > h1 {
    margin: 0 0 12px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(30px, 5vw, 42px);
    font-stretch: 123.2%;
    font-style: oblique -6deg;
    font-variation-settings: "slnt" -6, "wdth" 123.2, "wght" 645;
    font-weight: 645;
    line-height: 1;
    text-transform: uppercase;
}

.tierlist-intro {
    margin: 0 0 24px;
    color: #a4a3a3;
    font-size: 14px;
    line-height: 1.5;
}

.tierlist-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.38fr);
    gap: 14px;
}

.tierlist-custom-category {
    grid-column: 1 / -1;
}

.tierlist-custom-category[hidden] {
    display: none;
}

.tierlist-field {
    position: relative;
    display: block;
    min-width: 0;
}

.tierlist-field > span {
    display: block;
    margin-bottom: 10px;
    color: #c7c9ce;
    font-size: 12px;
    font-weight: 550;
    line-height: 1.3;
}

.tierlist-field > span small {
    color: #73767d;
    font: inherit;
}

.tierlist-field input,
.tierlist-field select,
.tier-category-trigger {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid #28282a;
    border-radius: 14px;
    outline: 0;
    background: linear-gradient(45deg, #141416 0%, #1a1b1c 100%);
    color: #fff;
    font: inherit;
    font-size: 13px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.tierlist-field input::placeholder {
    color: #686b72;
}

.tierlist-field input:focus,
.tierlist-field select:focus {
    border-color: rgba(201, 59, 69, 0.62);
    box-shadow: 0 0 0 3px rgba(201, 59, 69, 0.08);
}

.tierlist-field select {
    padding-right: 42px;
    appearance: none;
    cursor: pointer;
}

.tier-category-trigger { padding-right: 42px; text-align: left; cursor: pointer; }
.tier-category-trigger:focus-visible { outline: 2px solid #c93b45; outline-offset: 2px; }
.tier-category-options {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    padding: 5px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #34363b;
    border-radius: 12px;
    background: #191b1f;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.tier-category-options button {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #b9bbc1;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}
.tier-category-options button[aria-selected="true"] { background: #47262c; color: #fff; }
.tier-category-options button:focus-visible { outline: 1px solid #df5863; outline-offset: -1px; }
@media (hover: hover) and (pointer: fine) {
    .tier-category-options button:hover { background: #303238; color: #fff; }
}

.tierlist-category > svg {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 20px;
    height: 20px;
    color: #777a81;
    pointer-events: none;
}

.tierlist-board {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    padding: 10px;
    border: 1px solid #28282a;
    border-radius: 18px;
    background: linear-gradient(45deg, #141416 0%, #1a1b1c 100%);
}

.tierlist-row {
    position: relative;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
    min-height: 72px;
}

.tier-row-handle {
    position: absolute;
    top: 0;
    right: 100%;
    width: 30px;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a7a9af;
    opacity: 0;
    pointer-events: none;
    cursor: grab;
    touch-action: none;
    transition: opacity 150ms ease;
}

.tier-row-handle svg { width: 20px; height: 20px; }
.tier-row-handle:active { cursor: grabbing; }
.tier-row-handle:focus-visible { opacity: 1; outline: 2px solid #c93b45; outline-offset: -3px; }

@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
    /* Extend the hit area outside the board without taking space from its content. */
    .tierlist-board > .tierlist-row { margin-left: -42px; padding-left: 42px; }
    .tierlist-board > .tier-row-fallback { margin-left: 0; }
    .tier-row-fallback { padding-left: 42px; }
    .tier-row-handle { left: 0; right: auto; width: 28px; }
    .tierlist-row:hover > .tier-row-handle,
    .tier-row-handle:focus-visible { opacity: 1; pointer-events: auto; }
    .is-dragging-character .tier-row-handle { opacity: 0; pointer-events: none; }
    .is-dragging-row .tierlist-row-actions { opacity: 0; pointer-events: none; }
}

.tier-row-fallback { opacity: 1 !important; pointer-events: none; z-index: 1200 !important; }
.tier-row-fallback .tier-row-handle,
.tier-row-fallback .tierlist-row-actions { display: none; }
.tier-row-placeholder > .tierlist-row-label { opacity: 0.3; }

@media (max-width: 760px), (pointer: coarse) {
    .tier-row-handle { display: none; }
    .tierlist-row-label { touch-action: none; -webkit-touch-callout: none; }
    .tierlist-row-name[readonly] { user-select: none; -webkit-user-select: none; }
    .tier-row-fallback > .tierlist-row-content { visibility: hidden; }
    .tier-row-fallback > .tierlist-row-label { height: var(--drag-label-height); align-self: start; }
}

.tierlist-row-label {
    position: relative;
    display: grid;
    min-width: 0;
    width: 88px;
    min-height: 72px;
    align-self: stretch;
    justify-self: center;
    place-items: center;
    border-radius: 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-family: var(--font-heading);
    font-size: 14px;
    font-stretch: 115%;
    font-variation-settings: "slnt" 0, "wdth" 115, "wght" 700;
    font-weight: 700;
    line-height: 1;
    padding: 18px 7px;
}

.tierlist-row-label:has(.tierlist-row-name:focus),
.tierlist-row-label.is-color-editing {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: -2px;
}

.tierlist-row-name {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 1.15em;
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
    resize: none;
    overflow: hidden;
    appearance: none;
}

.tier-color-trigger {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
}

.tier-color-trigger::after {
    content: "";
    width: 9px;
    height: 9px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: var(--tier-selected-color);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.tier-color-panel {
    position: fixed;
    z-index: 1100;
    width: min(280px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px;
    border: 1px solid #34363b;
    border-radius: 12px;
    background: #191b1f;
    color: #fff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

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

.tier-color-panel header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tier-color-panel h2 { margin: 0; font-size: 15px; font-weight: 600; }

.tier-color-close {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #26282d;
    color: #fff;
    cursor: pointer;
}

.tier-color-close svg { width: 18px; height: 18px; }

.tier-color-presets {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.tier-color-presets button {
    height: 30px;
    border: 2px solid transparent;
    border-radius: 6px;
    background: var(--swatch-color);
    cursor: pointer;
}

.tier-color-presets button[aria-pressed="true"] {
    border-color: #fff;
    box-shadow: inset 0 0 0 1px #222;
}

.tier-color-surface {
    position: relative;
    height: 130px;
    border-radius: 7px;
    background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent), hsl(var(--color-hue, 0) 100% 50%);
    touch-action: none;
    cursor: crosshair;
}

.tier-color-cursor {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #222;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.tier-color-panel > label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    font-size: 12px;
    color: #b8bbc1;
}

.tier-color-hue {
    flex: 1;
    min-width: 0;
    height: 18px;
    margin: 0;
    appearance: none;
    border-radius: 9px;
    background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
    cursor: pointer;
}

.tier-color-hue::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 22px;
    border: 2px solid white;
    border-radius: 5px;
    background: #34363b;
}

.tier-color-hue::-moz-range-thumb {
    width: 8px;
    height: 18px;
    border: 2px solid white;
    border-radius: 5px;
    background: #34363b;
}

.tier-color-panel :focus-visible,
.tier-color-trigger:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.tierlist-row-s-plus .tierlist-row-label,
.tier-placement-option[data-target-tier="s-plus"] {
    background: #bb2c36;
    color: #fff;
}

.tierlist-row-s .tierlist-row-label,
.tier-placement-option[data-target-tier="s"] {
    background: #fc343e;
    color: #fff;
}

.tierlist-row-a .tierlist-row-label,
.tier-placement-option[data-target-tier="a"] {
    background: #fa861f;
    color: #19120b;
}

.tierlist-row-b .tierlist-row-label,
.tier-placement-option[data-target-tier="b"] {
    background: #fde652;
    color: #19160a;
}

.tierlist-row-c .tierlist-row-label,
.tier-placement-option[data-target-tier="c"] {
    background: #60c63f;
    color: #0c170f;
}

.tierlist-row-custom .tierlist-row-label {
    background: #aeaeae;
    color: #252525;
}

.tierlist-row-content {
    display: flex;
    min-width: 0;
    min-height: calc(var(--tier-avatar-size) + var(--tier-row-padding-y) * 2 + 2px + var(--tier-name-space));
    align-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 5px;
    padding: var(--tier-row-padding-y) 44px var(--tier-row-padding-y) 7px;
    border: 1px solid #282a2e;
    border-radius: 10px;
    background: linear-gradient(45deg, #141416 0%, #1a1b1c 100%);
    transition: min-height 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tierlist-row-actions {
    position: absolute;
    z-index: 3;
    right: 8px;
    top: 50%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateY(-50%);
}

.tierlist-row-actions button {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 4px;
    border: 1px solid #34363b;
    border-radius: 5px;
    background: #202226;
    color: #b8bbc1;
    cursor: pointer;
    touch-action: manipulation;
}

.tierlist-row-actions svg { width: 16px; height: 16px; pointer-events: none; }
.tierlist-row-actions button:disabled { opacity: 0.3; cursor: not-allowed; }
.tierlist-row-actions button:focus-visible { outline: 2px solid #df5863; outline-offset: 2px; }

@media (hover: hover) and (pointer: fine) {
    .tierlist-row-actions { opacity: 0; pointer-events: none; transition: opacity 150ms ease; }
    .tierlist-row:hover .tierlist-row-actions { opacity: 1; pointer-events: auto; }
    .tierlist-row-actions button:not(:disabled):hover { border-color: #666970; color: #fff; }
    .tierlist-row-actions [data-row-action="delete"]:hover { background: #54272d; color: #ff858e; border-color: #a8454e; }
}

@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
    .tierlist-workspace.is-dragging-character .tierlist-row .tierlist-row-actions {
        opacity: 0;
        pointer-events: none;
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tierlist-row-actions { transition: none; }
}

.tierlist-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding: 10px;
    border: 1px solid #28282a;
    border-radius: 16px;
    background: linear-gradient(45deg, #141416 0%, #1a1b1c 100%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.tierlist-toolbar-secondary {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.tierlist-actions.tierlist-actions-primary {
    flex-wrap: nowrap;
}

.tierlist-display-settings {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: center;
}

.tierlist-display-settings label,
.tier-zero-toggle,
.tierlist-future-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #a7a9af;
    font-size: 11px;
    line-height: 1.3;
    cursor: pointer;
}

.tierlist-display-settings input,
.tier-zero-toggle input,
.tierlist-future-toggle input {
    position: relative;
    flex: 0 0 32px;
    width: 32px;
    height: 18px;
    margin: 0;
    appearance: none;
    border: 1px solid #555961;
    border-radius: 999px;
    background: #292c32;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.tierlist-toggle-mobile-suffix {
    display: none;
}

.tierlist-display-settings input::before,
.tier-zero-toggle input::before,
.tierlist-future-toggle input::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #a7a9af;
    transform: translateX(0);
    transition: background-color 180ms ease, transform 180ms ease;
}

.tierlist-display-settings input:checked,
.tier-zero-toggle input:checked,
.tierlist-future-toggle input:checked {
    border-color: #df5863;
    background: #c93b45;
    box-shadow: 0 0 0 3px rgba(201, 59, 69, 0.1);
}

.tierlist-display-settings input:checked::before,
.tier-zero-toggle input:checked::before,
.tierlist-future-toggle input:checked::before {
    background: #fff;
    transform: translateX(14px);
}

@media (prefers-reduced-motion: reduce) {
    .tierlist-display-settings input,
    .tier-zero-toggle input,
    .tier-zero-toggle input::before,
    .tierlist-display-settings input::before {
        transition: none;
    }
}

.tierlist-display-settings input:focus-visible,
.tier-zero-toggle input:focus-visible {
    outline: 2px solid rgba(239, 114, 124, 0.8);
    outline-offset: 3px;
}

.tierlist-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0;
}

.tierlist-actions-export {
    justify-self: end;
}

.tierlist-action-save {
    position: relative;
    white-space: nowrap;
}

.tierlist-action {
    display: inline-flex;
    width: fit-content;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid #303238;
    border-radius: 12px;
    background: #191b1f;
    color: #e9eaec;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.tierlist-action svg {
    width: 17px;
    height: 17px;
    stroke-width: 1.8;
}

.tierlist-action-save {
    border-color: #e05a65;
    background: linear-gradient(135deg, #dc4955 0%, #b72d39 100%);
    box-shadow: 0 8px 22px rgba(201, 59, 69, 0.2);
    color: #fff;
}

.tierlist-action-reset:disabled {
    border-color: #303238;
    background: #191b1f;
    color: #747780;
    opacity: 0.55;
    cursor: not-allowed;
}

.tierlist-action-save:disabled { opacity: 0.65; cursor: wait; }
.tier-export-status { margin: 12px 0 0; color: #d9dade; font-size: 13px; }

.tier-reset-dialog,
.tier-import-dialog {
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 24px;
    border: 1px solid #34363b;
    border-radius: 16px;
    background: linear-gradient(45deg, #141416, #1a1b1c);
    color: #fff;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

.tier-reset-dialog::backdrop,
.tier-import-dialog::backdrop {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.tier-reset-dialog h2, .tier-import-dialog h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.2; }
.tier-reset-dialog p, .tier-import-dialog p { margin: 0; color: #a7a9af; font-size: 14px; line-height: 1.55; }
.tier-import-confirm { border-color: #df5863; background: #bb2c36; color: #fff; }
.tier-import-cancel:focus,
.tier-import-cancel:focus-visible { outline: none; border-color: #303238; box-shadow: none; }
.tier-reset-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.tier-reset-confirm { background: #bb2c36; border-color: #df5863; color: #fff; }

@media (max-width: 440px) {
    .tier-reset-dialog { padding: 20px; }
    .tier-reset-actions .tierlist-action { flex: 1; }
}

@media (hover: hover) and (pointer: fine) {
    .tierlist-action:not(:disabled):hover {
        border-color: #464950;
        filter: brightness(1.08);
    }

    .tierlist-action-save:hover {
        border-color: #ef727c;
        box-shadow: 0 9px 28px rgba(201, 59, 69, 0.3);
    }
}

.tierlist-action:focus-visible,
.tierlist-character:focus-visible {
    outline: 2px solid rgba(201, 59, 69, 0.72);
    outline-offset: 3px;
}

.tierlist-character-picker {
    margin-top: 14px;
    padding: 18px;
    border: 1px solid #28282a;
    border-radius: 16px;
    background: linear-gradient(45deg, #141416 0%, #1a1b1c 100%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.tierlist-character-picker > header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.tierlist-character-picker h2 {
    margin: 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 26px;
    font-stretch: 115%;
    font-variation-settings: "slnt" 0, "wdth" 115, "wght" 645;
    font-weight: 645;
    line-height: 1;
}

.tierlist-future-toggle {
    margin-left: auto;
    max-width: 100%;
    gap: 10px;
    font-size: 12px;
}

.tierlist-future-toggle input:focus-visible {
    outline: 2px solid #c93b45;
    outline-offset: 3px;
}

.tierlist-character-grid:not(.show-upcoming) > [data-upcoming="true"] {
    display: none;
}

@keyframes tierlist-upcoming-appear {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
    .tierlist-character-grid.show-upcoming > [data-upcoming="true"] {
        animation: tierlist-upcoming-appear 360ms cubic-bezier(0.22, 1, 0.36, 1);
    }
}

.tierlist-character-grid {
    display: grid;
    min-height: 74px;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 8px;
}

.tierlist-character {
    --tier-character-accent: #858991;
    display: flex;
    min-width: 0;
    align-items: stretch;
    flex-direction: column;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d9dade;
    font: inherit;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

.tierlist-character[data-rank="s"] {
    --tier-rank-gradient: linear-gradient(0deg, rgba(254, 182, 22, 0.72) 0%, rgba(254, 182, 22, 0.24) 43%, rgba(254, 182, 22, 0) 80%);
}

.tierlist-character[data-rank="a"] {
    --tier-rank-gradient: linear-gradient(0deg, rgba(203, 69, 159, 0.72) 0%, rgba(203, 69, 159, 0.24) 43%, rgba(203, 69, 159, 0) 80%);
}

.tierlist-character[data-element="anima"] {
    --tier-character-accent: #44dab5;
}

.tierlist-character[data-element="cosmos"] {
    --tier-character-accent: #c2d1eb;
}

.tierlist-character[data-element=""] {
    --tier-character-accent: #e0e0e0;
}

.tierlist-character[data-element="lakshana"] {
    --tier-character-accent: #f2de36;
}

.tierlist-character[data-element="chaos"] {
    --tier-character-accent: #756fff;
}

.tierlist-character[data-element="psycho"] {
    --tier-character-accent: #088ad6;
}

.tierlist-character[data-element="incantation"] {
    --tier-character-accent: #fa4a68;
}

.tierlist-character-media {
    position: relative;
    display: block;
    box-sizing: border-box;
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 1;
    overflow: visible;
    isolation: isolate;
    border: 0;
    border-radius: 11px;
    transition: filter 160ms ease;
}

.tierlist-character-visual {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    border-radius: inherit;
    background: #151619;
}

.tierlist-character-media::after {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    box-sizing: border-box;
    border: 2px solid transparent;
    border-radius: inherit;
    pointer-events: none;
    transition: border-color 160ms ease;
}

.tierlist-character-visual::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    background: var(--tier-rank-gradient, linear-gradient(0deg, rgba(130, 134, 142, 0.5), transparent 78%));
    pointer-events: none;
}

.tierlist-workspace.show-element-border .tierlist-character-media::after {
    border-color: var(--tier-character-accent);
}

.tierlist-character-avatar {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tierlist-character-rank,
.tierlist-character-element {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    line-height: 0;
    position: absolute;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(8, 9, 12, 0.82);
    backdrop-filter: blur(5px);
    z-index: 4;
}

.tierlist-character-rank {
    top: -5px;
    left: -5px;
}

.tierlist-character-element {
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
}

.tierlist-workspace:not(.show-rank) .tierlist-character-rank,
.tierlist-workspace:not(.show-elements) .tierlist-character-element {
    display: none;
}

.tierlist-character-rank img,
.tierlist-character-element img {
    display: block;
    width: 15px;
    height: 15px;
    object-fit: contain;
}

.tierlist-character-element img {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}

.tierlist-character-name {
    --name-gap: 4px;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 260ms cubic-bezier(0.22, 1, 0.36, 1), margin-top 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tierlist-workspace.show-names .tierlist-character-name {
    max-height: 1.25em;
    margin-top: var(--name-gap);
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .tierlist-row-content {
        transition: none;
    }

    .tierlist-character-name {
        transition: none;
        transform: none;
    }
}

.tierlist-row-content .tierlist-character {
    flex: 0 0 var(--tier-avatar-size);
    width: var(--tier-avatar-size);
}

.tierlist-row-content .tierlist-character-media {
    height: var(--tier-avatar-size);
}

/* Sortable sets an inline opacity on its moving fallback copy. */
.tierlist-character.tierlist-sortable-fallback {
    width: var(--drag-width) !important;
    height: var(--drag-height) !important;
    opacity: 1 !important;
    pointer-events: none;
}

.tierlist-character.tierlist-sortable-fallback .tierlist-character-media {
    flex: 0 0 auto;
    width: var(--drag-media-size);
    height: var(--drag-media-size);
    outline: none;
    box-shadow: none;
}

.tierlist-character.tierlist-sortable-fallback .tierlist-character-media::after {
    border-color: transparent;
}

.tierlist-character.tierlist-sortable-placeholder:not(.tierlist-sortable-fallback) .tierlist-character-media {
    background: rgba(255, 255, 255, 0.035);
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.tierlist-character.tierlist-sortable-placeholder:not(.tierlist-sortable-fallback) .tierlist-character-media::after {
    border-color: rgba(255, 255, 255, 0.48);
}

.tierlist-character.tierlist-sortable-placeholder:not(.tierlist-sortable-fallback) .tierlist-character-media > *,
.tierlist-character.tierlist-sortable-placeholder:not(.tierlist-sortable-fallback) .tierlist-character-visual::before,
.tierlist-character.tierlist-sortable-placeholder:not(.tierlist-sortable-fallback) .tierlist-character-name {
    visibility: hidden;
}

/* A pending drop reserves only the avatar square, not its name. */
.tierlist-row-content > .tierlist-character.tierlist-sortable-placeholder:not(.tierlist-sortable-fallback) .tierlist-character-name {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition: none;
}

.tier-placement-popover {
    position: fixed;
    z-index: 1000;
    width: max-content;
    max-width: calc(100vw - 20px);
    padding: 10px;
    border: 1px solid #35373c;
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(35, 36, 39, 0.98), rgba(20, 21, 23, 0.98));
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #fff;
}

.tier-placement-popover[hidden],
.tier-zero-toggle[hidden] {
    display: none;
}

.tier-zero-toggle {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #35373c;
    font-size: 12px;
}

.tier-placement-popover-title {
    display: block;
    margin: 0 2px 8px;
    color: #a9abb1;
    font-size: 10px;
    font-weight: 550;
    line-height: 1.2;
}

.tier-placement-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tier-placement-option {
    display: block;
    width: auto;
    min-width: 36px;
    max-width: 160px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
    transition: filter 150ms ease, transform 150ms ease;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (hover: hover) and (pointer: fine) {
    .tier-placement-option:hover {
        filter: brightness(1.14);
        transform: scale(1.04);
    }
}

.tier-placement-option:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .tierlist-character:hover .tierlist-character-media {
        filter: brightness(1.06);
    }
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.section-card {
    --card-accent: #c93b45;
    --card-soft: rgba(201, 59, 69, 0.08);
    --card-soft-border: rgba(201, 59, 69, 0.3);
    position: relative;
    display: flex;
    min-height: 228px;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px;
    border: 1px solid #28282a;
    border-radius: 18px;
    background: linear-gradient(45deg, #141416 0%, #1a1b1c 100%);
    color: #fff;
    text-decoration: none;
    transition: border-color 160ms ease, filter 160ms ease, transform 160ms ease;
}

.section-card-characters {
    --card-accent: #c93b45;
    --card-soft: rgba(201, 59, 69, 0.08);
    --card-soft-border: rgba(201, 59, 69, 0.3);
}

.section-card-tierlist {
    --card-accent: #de8d2e;
    --card-soft: rgba(222, 141, 46, 0.08);
    --card-soft-border: rgba(222, 141, 46, 0.3);
}

.section-card:not(.is-disabled):hover,
.section-card:not(.is-disabled):focus-visible {
    filter: brightness(1.06);
    transform: scale(1.015);
}

.section-card.is-disabled {
    isolation: isolate;
    overflow: hidden;
    cursor: not-allowed;
}

.section-card.is-disabled::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background: rgba(8, 9, 11, 0.58);
    -webkit-backdrop-filter: grayscale(0.72) brightness(0.7);
    backdrop-filter: grayscale(0.72) brightness(0.7);
}

.section-card-status {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    padding: 8px 24px;
    border: 1px solid rgba(201, 59, 69, 0.62);
    border-radius: 8px;
    background: rgba(27, 18, 20, 0.94);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.24);
    color: #e8646e;
    font-family: var(--font-heading);
    font-size: 14px;
    font-stretch: 115%;
    font-style: oblique -6deg;
    font-variation-settings: "slnt" -6, "wdth" 115, "wght" 700;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    transform: translate(-50%, -50%);
}

.section-card-icon {
    display: inline-flex;
    flex: 0 0 76px;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border: 1px solid var(--card-soft-border);
    border-radius: 18px;
    background: var(--card-soft);
    color: var(--card-accent);
}

.section-card-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 1.7;
}

.section-card-copy {
    margin-top: auto;
    margin-bottom: 0;
}

.section-card:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.section-card h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 22px;
    font-optical-sizing: auto;
    font-stretch: 123.2%;
    font-style: oblique -6deg;
    font-variation-settings: "slnt" -6, "wdth" 123.2, "wght" 645;
    font-weight: 645;
    line-height: 1.1;
    text-transform: uppercase;
}

.section-card p {
    display: -webkit-box;
    max-width: 100%;
    margin: 7px 0 0;
    color: #a4a3a3;
    font-family: var(--font-heading);
    font-size: 14px;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "slnt" 0, "wdth" 100, "wght" 440;
    font-weight: 440;
    line-height: 1.5;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.characters-catalog {
    margin-top: 48px;
}

.characters-catalog-header {
    max-width: 820px;
}

.characters-catalog-header h2,
.characters-catalog-header p {
    margin: 0;
}

.characters-catalog-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(30px, 4vw, 42px);
    font-optical-sizing: auto;
    font-stretch: 123.2%;
    font-style: oblique -6deg;
    font-variation-settings: "slnt" -6, "wdth" 123.2, "wght" 645;
    font-weight: 645;
    line-height: 1.1;
    text-transform: uppercase;
}

.characters-catalog-header p {
    margin-top: 12px;
    color: #a4a3a3;
    font-size: 14px;
    line-height: 1.65;
}

.catalog-divider {
    position: relative;
    display: grid;
    width: 100%;
    height: 62px;
    place-items: center;
}

.catalog-divider::before,
.catalog-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    transform: translateY(-50%);
}

.catalog-divider::before {
    left: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.22) 100%);
}

.catalog-divider::after {
    right: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0%, transparent 100%);
}

.catalog-divider span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
}

.catalog-divider img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.character-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: none;
}

.character-filters::-webkit-scrollbar {
    display: none;
}

.character-filter-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.character-filter-divider {
    flex: 0 0 1px;
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.16);
}

.character-filter {
    --character-accent: #c93b45;
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 1px solid #28282a;
    border-radius: 11px;
    background: linear-gradient(45deg, #141416 0%, #1a1b1c 100%);
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.character-filter img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.character-filter-rank-s {
    --character-accent: #feb616;
}

.character-filter-rank-a {
    --character-accent: #cb459f;
}

@media (hover: hover) and (pointer: fine) {
    .character-filter:hover {
        border-color: var(--character-accent);
    }
}

.character-filter[aria-pressed="true"] {
    border-color: var(--character-accent);
    background: #1c1c1f;
    box-shadow: inset 0 0 0 1px var(--character-accent);
}

.character-filter:focus-visible {
    outline: 2px solid var(--character-accent);
    outline-offset: 3px;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.character-card {
    --character-accent: #c93b45;
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #28282a;
    border-radius: 18px;
    background: linear-gradient(45deg, #141416 0%, #1a1b1c 100%);
    color: #fff;
    text-decoration: none;
    transition: border-color 160ms ease, filter 160ms ease;
}

.character-card[hidden] {
    display: none;
}

.character-element-anima {
    --character-accent: #44dab5;
}

.character-element-cosmos {
    --character-accent: #c2d1eb;
}

.character-element-lakshana {
    --character-accent: #f2de36;
}

.character-element-chaos {
    --character-accent: #756fff;
}

.character-element-psycho {
    --character-accent: #088ad6;
}

.character-element-incantation {
    --character-accent: #fa4a68;
}

.character-card-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 4.7;
    min-height: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 72%, rgba(201, 59, 69, 0.14), transparent 58%),
        #18181a;
}

.character-card-media::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 45%;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 11, 0.88) 100%);
    pointer-events: none;
}

.character-card-avatar {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.character-card-badges {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
}

.character-card-badges > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(15, 15, 16, 0.74);
    backdrop-filter: blur(8px);
}

.character-card-badges img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.character-card-media strong {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 14px;
    left: 16px;
    overflow: hidden;
    font-family: var(--font-heading);
    font-size: 18px;
    font-stretch: 123.2%;
    font-style: oblique -6deg;
    font-variation-settings: "slnt" -6, "wdth" 123.2, "wght" 645;
    font-weight: 645;
    line-height: 1.1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.character-card-guide {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 11px 14px;
    border-top: 1px solid #28282a;
    color: #b9b8ba;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.character-card-guide svg {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    color: #c93b45;
    stroke-width: 1.8;
}

@media (hover: hover) and (pointer: fine) {
    .character-card:hover {
        border-color: var(--character-accent);
        filter: brightness(1.04);
    }
}

.character-card:focus-visible {
    outline: 2px solid var(--character-accent);
    outline-offset: 3px;
}

.site-feedback {
    position: relative;
    margin-top: 20px;
    padding: 22px 20px;
    text-align: center;
}

.site-feedback::before,
.site-feedback::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.14) 18%, rgba(255, 255, 255, 0.14) 82%, transparent 100%);
}

.site-feedback::before {
    top: 0;
}

.site-feedback::after {
    bottom: 0;
}

.site-feedback p {
    margin: 0;
    color: #979797;
    font-size: 13px;
    line-height: 1.7;
}

.site-feedback p > span {
    display: block;
}

.site-feedback strong {
    color: #fff;
    font-weight: 600;
}

.site-feedback a {
    color: #c93b45;
    font-weight: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 160ms ease;
}

.site-feedback .site-feedback-email {
    color: #c93b45;
}

.site-feedback a:focus-visible {
    outline: 2px solid #c93b45;
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .site-feedback a:hover {
        color: #e0525d;
    }
}

.home-footer {
    position: relative;
    min-height: 0;
    margin-top: 20px;
    padding: 34px 42px;
    overflow: hidden;
    border: 1px solid #28282a;
    border-radius: 24px;
    background: linear-gradient(45deg, #141416 0%, #1a1b1c 100%);
}

.footer-main {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    align-items: stretch;
    min-height: 0;
    gap: 18px;
}

.footer-brand {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    align-content: start;
    min-width: 0;
    column-gap: 18px;
}

.footer-sticker {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.footer-brand-copy {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    min-width: 0;
}

.footer-site-name,
.footer-description,
.footer-copyright,
.footer-disclaimer {
    margin: 0;
}

.footer-site-name {
    color: #fff;
    font-family: var(--font-heading);
    font-optical-sizing: auto;
    font-stretch: 123.2%;
    font-style: oblique -6deg;
    font-variation-settings: "slnt" -6, "wdth" 123.2, "wght" 645;
    font-size: 19px;
    font-weight: 645;
    line-height: 1;
}

.footer-description {
    margin-top: 8px;
    color: #a4a3a3;
    font-size: 12px;
    line-height: 1.45;
}

.footer-disclaimer span {
    white-space: nowrap;
}

.footer-description span,
.footer-disclaimer span {
    display: block;
}

.footer-socials {
    display: flex;
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    height: 36px;
    min-width: 0;
    gap: 3px;
    padding: 4px 8px;
    border: 1px solid #303034;
    border-radius: 12px;
    background: linear-gradient(45deg, #141416 0%, #1a1b1c 100%);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    text-decoration: none;
    transition: border-color 160ms ease, filter 160ms ease, transform 160ms ease;
}

.footer-socials img {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}

.footer-socials a span {
    white-space: nowrap;
}

.footer-socials svg {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin-left: 2px;
    stroke-width: 1.8;
}

.footer-socials a:focus-visible {
    border-color: #c93b45;
    outline: 2px solid #c93b45;
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .footer-socials a:hover {
        border-color: #45454a;
        filter: brightness(1.08);
        transform: scale(1.025);
    }
}

.footer-divider {
    position: relative;
    display: grid;
    align-self: stretch;
    place-items: center;
    min-height: 0;
}

.footer-divider::before,
.footer-divider::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
}

.footer-divider::before {
    top: -14px;
    height: calc(50% - 8px);
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.14) 100%);
}

.footer-divider::after {
    bottom: -14px;
    height: calc(50% - 8px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 100%);
}

.footer-divider span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
}

.footer-divider img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.footer-legal {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 0;
    text-align: right;
}

.footer-copyright {
    order: 2;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.45;
}

.footer-disclaimer {
    order: 1;
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
    line-height: 1.45;
}

.footer-copyright a {
    color: #c93b45;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.footer-copyright a:focus-visible {
    outline: 2px solid #c93b45;
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .footer-copyright a:hover {
        color: #e0525d;
    }
}

.footer-bolt {
    position: absolute;
    z-index: 3;
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: #202024;
    box-shadow: none;
}

.footer-bolt-top-left {
    top: 17px;
    left: 17px;
}

.footer-bolt-top-right {
    top: 17px;
    right: 17px;
}

.footer-bolt-bottom-left {
    bottom: 17px;
    left: 17px;
}

.footer-bolt-bottom-right {
    right: 17px;
    bottom: 17px;
}

@media (max-width: 944px) {
    .site-feedback p > span {
        display: inline;
    }

    .character-profile-layout {
        grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    }

    .dossier-content {
        grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
        gap: 22px;
    }

    .character-dossier {
        min-height: 360px;
        padding: 20px;
    }

    .dossier-portrait {
        min-height: 320px;
    }

    .dossier-portrait-inner {
        min-height: 296px;
    }

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

    .home-footer {
        min-height: 0;
        padding: 34px 36px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 0;
    }

    .footer-brand {
        width: fit-content;
        max-width: 100%;
        margin: 0 auto;
    }

    .footer-divider {
        width: 100%;
        height: 64px;
        min-height: 64px;
    }

    .footer-divider::before,
    .footer-divider::after {
        top: 50%;
        bottom: auto;
        width: calc(50% - 22px);
        height: 1px;
        transform: translateY(-50%);
    }

    .footer-divider::before {
        right: auto;
        left: 0;
        background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.14) 100%);
    }

    .footer-divider::after {
        right: 0;
        left: auto;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0%, transparent 100%);
    }

    .footer-legal {
        align-items: center;
        min-height: 70px;
        padding: 0;
        text-align: center;
    }

    .footer-copyright {
        order: 1;
    }

    .footer-disclaimer {
        order: 2;
    }
}

@media (max-width: 760px) {
    .home-shell {
        width: min(100% - 32px, 620px);
        padding-top: 20px;
        padding-bottom: 24px;
    }

    .navbar-brand {
        font-size: 18px;
    }

    .navbar-brand img {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .home-banner {
        height: 250px;
        margin-top: 20px;
    }

    .character-profile-layout {
        grid-template-columns: minmax(240px, 270px) minmax(0, 1fr);
        gap: 14px;
    }

    .character-profile-portrait {
        height: 330px;
    }

    .character-profile-portrait-title {
        right: 18px;
        left: 18px;
    }

    .character-profile-portrait-title h1 {
        font-size: 32px;
    }

    .character-profile-body {
        padding-right: 18px;
        padding-left: 18px;
    }

    .character-profile-facts > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .character-profile-facts dd {
        text-align: left;
    }

    .dossier-content {
        grid-template-columns: minmax(180px, 210px) minmax(0, 1fr);
        gap: 18px;
    }

    .character-dossier {
        min-height: 330px;
        padding: 18px;
        border-radius: 20px;
    }

    .dossier-portrait {
        min-height: 294px;
        padding: 10px;
        border-radius: 12px;
    }

    .dossier-portrait-inner {
        min-height: 272px;
    }

    .dossier-copy h1 {
        font-size: clamp(36px, 6vw, 46px);
    }

    .dossier-description {
        margin-top: 14px;
        font-size: 13px;
    }

    .dossier-attributes {
        gap: 6px;
        margin-top: 14px;
    }

    .dossier-attribute {
        min-width: 0;
        padding: 7px 8px;
    }

    .dossier-attribute > img {
        width: 18px;
        height: 18px;
    }

    .dossier-attribute small {
        display: none;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 12px;
    }

    .section-card {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-rows: 1fr;
        min-height: 0;
        align-items: center;
        aspect-ratio: auto;
        column-gap: 16px;
        padding: 18px;
    }

    .section-card-icon {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        flex-basis: 64px;
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .section-card-icon svg {
        width: 31px;
        height: 31px;
    }

    .section-card-copy {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        margin: 0;
        padding-top: 0;
    }

    .characters-catalog {
        margin-top: 36px;
    }

    .characters-catalog-header p {
        font-size: 13px;
        line-height: 1.6;
    }

    .character-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin-top: 26px;
    }

}

@media (max-width: 560px) {
    .character-profile-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .character-profile-portrait {
        height: 380px;
    }

    .character-profile-facts > div {
        grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.25fr);
        gap: 14px;
    }

    .character-profile-facts dd {
        text-align: right;
    }

    .dossier-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .character-dossier {
        min-height: 0;
        padding: 16px;
    }

    .dossier-portrait {
        height: 300px;
        min-height: 0;
    }

    .dossier-portrait-inner {
        min-height: 0;
    }

    .dossier-character-art {
        height: 225%;
    }

    .dossier-copy {
        padding: 0 2px 4px;
    }

    .dossier-copy h1 {
        font-size: clamp(36px, 11vw, 46px);
    }

    .dossier-description {
        max-width: none;
    }

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

@media (max-width: 440px) {
    .home-shell {
        width: calc(100% - 24px);
        padding-top: 14px;
    }

    .site-navbar {
        gap: 12px;
    }

    .navbar-brand {
        gap: 9px;
        font-size: 16px;
    }

    .navbar-brand img {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .navbar-socials a {
        width: 30px;
        height: 30px;
    }

    .home-banner {
        height: 200px;
        margin-top: 14px;
        border-radius: 16px;
    }

    .character-profile-island,
    .character-function-island {
        border-radius: 18px;
    }

    .character-profile-portrait {
        height: 340px;
    }

    .character-profile-body {
        padding-right: 16px;
        padding-left: 16px;
    }

    .character-function-tabs {
        margin: 0;
    }

    .character-function-panels {
        min-height: 304px;
        padding: 16px;
    }

    .character-dossier {
        margin-top: 12px;
        padding: 12px;
        border-radius: 18px;
    }

    .dossier-portrait {
        height: 260px;
        padding: 8px;
        border-radius: 10px;
    }

    .dossier-copy h1 {
        font-size: clamp(34px, 11vw, 42px);
    }

    .dossier-description {
        margin-top: 12px;
        padding-left: 10px;
        border-left-width: 2px;
        font-size: 12px;
        line-height: 1.5;
    }

    .banner-content {
        inset: 18px;
    }

    .banner-copy h1 {
        font-size: 36px;
    }

    .banner-copy h1 span {
        display: block;
    }

    .banner-eyebrow {
        gap: 6px;
        margin-bottom: 7px;
        font-size: 12px;
    }

    .banner-eyebrow img {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
    }

    .banner-copy p {
        margin-top: 7px;
        max-width: 210px;
        padding-left: 10px;
        border-left-width: 2px;
        font-size: 12px;
        line-height: 1.35;
    }

    .banner-copy p span {
        display: block;
    }

    .banner-copy p span + span::before {
        content: none;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .section-card {
        display: grid;
        grid-template-columns: 65px minmax(0, 1fr);
        grid-template-rows: 1fr;
        min-height: 0;
        aspect-ratio: auto;
        column-gap: 14px;
        padding: 16px;
        border-radius: 16px;
    }

    .section-card-icon {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        flex-basis: 65px;
        width: 65px;
        height: 65px;
        border-radius: 16px;
    }

    .section-card-icon svg {
        width: 32px;
        height: 32px;
    }

    .section-card-copy {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        margin: 0;
        padding-top: 0;
    }

    .section-card h2 {
        font-size: 16px;
    }

    .section-card p {
        max-width: 100%;
        margin-top: 4px;
        font-size: 11px;
        line-height: 1.35;
    }

.characters-catalog {
        margin-top: 32px;
    }

    .characters-catalog-header h2 {
        font-size: 28px;
    }

    .characters-catalog-header p {
        margin-top: 10px;
        font-size: 12px;
        line-height: 1.55;
    }

    .character-grid {
        gap: 10px;
        margin-top: 24px;
    }

    .character-card {
        border-radius: 15px;
    }

    .character-card-badges {
        top: 9px;
        left: 9px;
        gap: 4px;
    }

    .character-card-badges > span {
        width: 30px;
        height: 30px;
        padding: 5px;
        border-radius: 8px;
    }

    .character-card-media strong {
        right: 11px;
        bottom: 10px;
        left: 11px;
        font-size: 16px;
    }

    .character-card-guide {
        min-height: 42px;
        padding: 9px 10px;
        font-size: 10px;
    }

    .character-card-guide svg {
        flex-basis: 15px;
        width: 15px;
        height: 15px;
    }

    .home-footer {
        margin-top: 12px;
        min-height: 0;
        padding: 32px 24px;
        border-radius: 20px;
    }

    .site-feedback {
        margin-top: 12px;
        padding: 19px 8px;
    }

    .site-feedback p {
        font-size: 12px;
        line-height: 1.65;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-brand {
        grid-template-columns: 68px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 12px;
    }

    .footer-sticker {
        grid-column: 1;
        grid-row: 1 / 2;
        width: 68px;
        height: 68px;
    }

    .footer-brand-copy {
        align-self: center;
    }

    .footer-site-name {
        font-size: 20px;
    }

    .footer-description {
        margin-top: 7px;
        color: #8d8d92;
        font-size: 12px;
    }

    .footer-socials {
        grid-column: 1 / -1;
        justify-content: center;
        margin-top: 12px;
    }

    .footer-socials a {
        height: 36px;
        gap: 3px;
        padding: 4px 6px;
        font-size: 11px;
    }

    .footer-socials img {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
    }

    .footer-socials svg {
        flex-basis: 14px;
        width: 14px;
        height: 14px;
    }

    .footer-divider {
        height: 60px;
        min-height: 60px;
    }

    .footer-divider span {
        width: 34px;
        height: 34px;
    }

    .footer-divider img {
        width: 26px;
        height: 26px;
    }

    .footer-legal {
        min-height: 70px;
    }

    .footer-copyright {
        color: #85858b;
        font-size: 12px;
    }

    .footer-disclaimer {
        color: rgba(255, 255, 255, 0.46);
        font-size: 11px;
    }

    .footer-disclaimer span {
        white-space: normal;
    }

    .footer-bolt-top-left {
        top: 13px;
        left: 13px;
    }

    .footer-bolt-top-right {
        top: 13px;
        right: 13px;
    }

    .footer-bolt-bottom-left {
        bottom: 13px;
        left: 13px;
    }

    .footer-bolt-bottom-right {
        right: 13px;
        bottom: 13px;
    }

}

@media (max-width: 760px) {
    .tierlist-row-actions {
        opacity: 1;
        pointer-events: auto;
    }

    .tierlist-workspace {
        --tier-avatar-size: 58px;
        margin-top: 30px;
    }

    .tierlist-meta {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tierlist-board {
        gap: 5px;
        padding: 8px;
        border-radius: 16px;
    }

    .tierlist-row {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 7px;
        min-height: 64px;
    }

    .tierlist-row-label {
        width: 78px;
        min-height: 64px;
        border-radius: 5px;
    }

    .tierlist-character-grid {
        grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
        gap: 7px;
    }
}

@media (max-width: 440px) {
    .tierlist-workspace {
        --tier-avatar-size: 54px;
        --tier-row-padding-y: 3px;
        margin-top: 24px;
    }

    .tierlist-workspace.show-names .tierlist-row-content:has(> .tierlist-character:not(.tierlist-sortable-fallback):not(.tierlist-sortable-placeholder)) {
        --tier-name-space: 16px;
    }

    .tierlist-workspace > h1 {
        margin-bottom: 12px;
        font-size: 28px;
    }

    .tierlist-field input,
    .tierlist-field select,
    .tier-category-trigger {
        height: 46px;
        border-radius: 12px;
        font-size: 12px;
    }

    .tierlist-category > svg {
        bottom: 13px;
    }

    .tierlist-board {
        gap: 4px;
        padding: 6px;
        border-radius: 14px;
    }

    .tierlist-row {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 6px;
        min-height: 60px;
    }

    .tierlist-row-label {
        width: 72px;
        min-height: 60px;
        border-radius: 4px;
    }

    .tierlist-row-content {
        gap: 4px;
        padding: var(--tier-row-padding-y) 40px var(--tier-row-padding-y) 5px;
        border-radius: 8px;
    }

    .tierlist-row-actions { right: 6px; }

    .tierlist-actions {
        gap: 8px;
    }

    .tierlist-action {
        min-height: 36px;
        gap: 6px;
        padding: 7px 10px;
        border-radius: 10px;
        font-size: 10px;
    }

    .tierlist-action svg {
        width: 15px;
        height: 15px;
    }

    .tierlist-character-picker {
        padding: 12px;
    }

    .tierlist-character-picker h2 {
        font-size: 22px;
    }

    .tierlist-character-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 6px;
    }

    .tierlist-character-media {
        border-radius: 9px;
    }

    .tierlist-character-rank,
    .tierlist-character-element {
        width: 19px;
        height: 19px;
    }

    .tierlist-character-rank {
        top: -4px;
        left: -4px;
    }

    .tierlist-character-element {
        width: 22px;
        height: 22px;
        right: -4px;
        bottom: -4px;
    }

    .tierlist-character-rank img,
    .tierlist-character-element img {
        width: 13px;
        height: 13px;
    }

    .tierlist-character-name {
        --name-gap: 3px;
        font-size: 10px;
    }

    .tierlist-character-element img {
        flex-basis: 14px;
        width: 14px;
        height: 14px;
    }

}

@media (max-width: 944px) {
    .tierlist-toggle-mobile-suffix {
        display: inline;
    }

    .tierlist-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 12px;
    }

    .tierlist-toolbar-secondary,
    .tierlist-toolbar .tierlist-actions {
        display: contents;
    }

    .tierlist-toolbar .tierlist-display-settings {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-column: 1 / -1;
        grid-row: 1;
        gap: 0 24px;
        padding-bottom: 14px;
        margin-bottom: 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .tierlist-display-settings::before {
        content: "";
        position: absolute;
        top: 4px;
        bottom: 18px;
        left: 50%;
        width: 1px;
        background: rgba(255, 255, 255, 0.1);
    }

    .tierlist-display-settings label {
        min-width: 0;
        min-height: 44px;
        justify-content: space-between;
        gap: 10px;
        font-size: 12px;
    }

    .tierlist-toolbar .tierlist-action {
        grid-row: 2;
        width: 100%;
        min-width: 0;
        font-size: 12px;
    }

    .tierlist-toolbar .tierlist-action-save {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}

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

/* Production maintenance page */
.maintenance-page {
    display: grid;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    overflow: hidden;
    padding: max(20px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
    background: #0f0f0f;
    color: #fff;
    font-family: var(--font-body);
    text-align: center;
}

.maintenance-content {
    display: flex;
    width: min(100%, 960px);
    align-items: center;
    flex-direction: column;
}

.maintenance-logo {
    position: relative;
    isolation: isolate;
    width: min(672px, calc(100vw - 44px), calc(100dvh - 300px));
    aspect-ratio: 1;
}

.maintenance-logo::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -16%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 67, 78, 0.34) 0%, rgba(123, 32, 41, 0.2) 38%, rgba(123, 32, 41, 0.06) 60%, rgba(123, 32, 41, 0) 78%);
    filter: blur(54px);
    transform: scale(1.22);
    animation: maintenance-glow 8s ease-in-out infinite;
    pointer-events: none;
}

.maintenance-logo img,
.maintenance-logo-shine {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.maintenance-logo img {
    z-index: 1;
    object-fit: contain;
}

.maintenance-logo-shine {
    z-index: 2;
    background: linear-gradient(115deg, transparent 37%, rgba(228, 225, 219, 0.16) 44%, rgba(255, 251, 242, 0.82) 50%, rgba(226, 229, 235, 0.18) 56%, transparent 63%);
    background-position: 150% 0;
    background-size: 250% 100%;
    -webkit-mask-image: url("/assets/images/logo-dh-white.png");
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url("/assets/images/logo-dh-white.png");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    opacity: 0;
    animation: maintenance-shine 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    pointer-events: none;
}

.maintenance-eyebrow {
    margin: 38px 0 0;
    color: var(--accent-red);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.2em;
    line-height: 1.3;
}

.maintenance-content h1 {
    margin: 14px 0 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 48px);
    font-stretch: 110%;
    font-style: oblique -6deg;
    font-variation-settings: "slnt" -6, "wdth" 110, "wght" 700;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.08;
    text-transform: uppercase;
}

.maintenance-content h1 span {
    color: var(--accent-red);
}

.maintenance-message {
    margin: 20px 0 0;
    color: #8e9198;
    width: min(100%, 680px);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    white-space: normal;
}

.maintenance-resources {
    margin-top: 26px;
}

.maintenance-resources > p {
    margin: 0;
    color: #686b72;
    font-size: 11px;
    line-height: 1.4;
}

.maintenance-resources nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.maintenance-resources a {
    display: inline-flex;
    height: 38px;
    align-items: center;
    gap: 4px;
    padding: 5px 10px 5px 7px;
    border: 1px solid #303034;
    border-radius: 12px;
    background: linear-gradient(45deg, #141416 0%, #1a1b1c 100%);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    text-decoration: none;
    transition: border-color 160ms ease, filter 160ms ease, transform 160ms ease;
}

.maintenance-resources a img {
    display: block;
    width: 26px;
    height: 26px;
}

.maintenance-link-arrow {
    margin-left: 1px;
    color: #b5b7bc;
    font-size: 15px;
    line-height: 1;
}

.maintenance-resources a:focus-visible {
    border-color: var(--accent-red);
    outline: 2px solid var(--accent-red);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .maintenance-resources a:hover {
        border-color: #45454a;
        filter: brightness(1.08);
        transform: scale(1.025);
    }
}

@keyframes maintenance-glow {
    0%, 100% { opacity: 0.72; transform: scale(1.18); }
    50% { opacity: 1; transform: scale(1.3); }
}

@keyframes maintenance-shine {
    0%, 43% { background-position: 150% 0; opacity: 0; }
    47% { opacity: 0; }
    52% { opacity: 0.76; }
    64% { background-position: -150% 0; opacity: 0.62; }
    68%, 100% { background-position: -150% 0; opacity: 0; }
}

@media (max-width: 560px) {
    .maintenance-eyebrow {
        margin-top: 18px;
        font-size: 10px;
    }

    .maintenance-message {
        width: min(82vw, 300px);
        font-size: 12px;
    }

    .maintenance-resources {
        margin-top: 22px;
    }

    .maintenance-content h1 {
        max-width: 360px;
    }
}

@media (max-width: 360px) {
    .maintenance-message {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .maintenance-logo::before,
    .maintenance-logo-shine {
        animation: none;
    }

    .maintenance-logo-shine {
        opacity: 0;
    }
}

.forbidden-page::before {
    content: "";
    position: fixed;
    left: 50%;
    top: 30%;
    width: 88vmin;
    height: 88vmin;
    border-radius: 50%;
    background: rgba(255, 61, 61, 0.2);
    filter: blur(86px);
    opacity: 0.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);
    text-align: center;
}

@media (max-width: 760px), (hover: none) and (pointer: coarse) {
    .tierlist-field input:not([type="hidden"]) {
        --field-height: 50px;
        --field-radius: 14px;
        display: block;
        width: calc(100% / 0.875);
        height: calc(var(--field-height) / 0.875);
        margin-bottom: calc(var(--field-height) - var(--field-height) / 0.875);
        padding-inline: calc(16px / 0.875);
        border-width: calc(1px / 0.875);
        border-radius: calc(var(--field-radius) / 0.875);
        font-size: 16px;
        transform: scale(0.875);
        transform-origin: top left;
    }

    .tier-category-trigger { font-size: 14px; }

    .tierlist-row-name {
        --tier-input-scale: 0.75;
        width: calc(100% / 0.75);
        font-size: 16px;
        transform: scale(0.75);
        transform-origin: center;
    }

    .tierlist-field input:focus,
    .tierlist-field select:focus {
        border-color: #28282a;
        box-shadow: none;
        outline: none;
    }

    .tier-reset-dialog .tierlist-action:focus-visible,
    .tier-import-dialog .tierlist-action:focus-visible {
        outline: none;
    }
}

@media (max-width: 440px) {
    .tierlist-field input:not([type="hidden"]) {
        --field-height: 46px;
        --field-radius: 12px;
    }
}

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

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