@font-face {
    font-family: "Cinzel Decorative";
    src: url("../font/CinzelDecorative-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Cinzel Decorative";
    src: url("../font/CinzelDecorative-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

* {
    box-sizing: border-box;
    cursor: url("../img/cursor.webp") 0 0, auto;
}

:root {
    --text-primary: #e7ebf0;
    --text-heading: #f6f7f9;
    --text-muted: #b7c0cb;
    --text-accent: #ef7b87;
}

html,
body {
    min-height: 100%;
    margin: 0;
    overflow-x: clip;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: var(--text-primary);
    background: #10131c url("../img/background.webp") center top / cover no-repeat fixed;
}

.site-background-video {
    position: fixed;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0;
    pointer-events: none;
    transition: opacity 600ms ease;
}

.site-background-video.is-playing {
    opacity: 1;
}

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

.site-header {
    display: flex;
    justify-content: center;
    padding: 5px 12px 70px;
}

.header-art {
    position: relative;
    width: 100%;
    max-width: 1400px;
    isolation: isolate;
}

.header-panel {
    display: block;
    width: 100%;
    height: auto;
}

.header-nav {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(150px, 22vw, 240px) minmax(0, 1fr);
    align-items: center;
    padding: 0 6%;
    pointer-events: none;
}

.header-nav__group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
    min-width: 0;
}

.header-nav__group--left {
    grid-column: 1;
}

.header-nav__group--right {
    grid-column: 3;
}

.header-nav a,
.header-nav__placeholder {
    padding: 8px 2px;
    border-bottom: 1px solid transparent;
    color: var(--text-primary);
    font-size: clamp(11px, 0.9vw, 15px);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 2px 3px #000, 0 0 9px rgba(0, 0, 0, 0.95);
    white-space: nowrap;
    pointer-events: auto;
    transition: color 160ms ease, border-color 160ms ease, text-shadow 160ms ease;
}

.header-nav__placeholder {
    opacity: 0.75;
}

.header-nav a:hover,
.header-nav a:focus-visible,
.header-nav a[aria-current="page"] {
    border-color: #e06d79;
    color: var(--text-heading);
    text-shadow: 0 2px 3px #000, 0 0 10px rgba(232, 100, 57, 0.95);
}

.header-nav a:focus-visible {
    outline: 2px solid #e06d79;
    outline-offset: 3px;
}

.site-footer {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 100%;
    height: 300px;
    margin-top: auto;
    padding: 24px;
    background: rgba(25, 25, 25, .75);
    border-top: 1px solid rgba(166, 37, 43, 0.65);
    color: var(--text-primary);
    font-size: clamp(11px, 1vw, 14px);
    text-align: center;
    text-shadow: 0 2px 4px #000;
}

.site-footer p {
    margin: 0;
}

.site-main {
    display: grid;
    grid-template-columns: minmax(0, 405px) minmax(0, 1fr);
    gap: 36px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px 48px;
}

.user-panel {
    position: relative;
    isolation: isolate;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    width: 90%;
    max-width: 364.5px;
    margin: -24px auto 0;
    transform: translateX(-96px);
}

.user-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("../img/panel-user.webp") center / 100% 100% no-repeat;
    filter: drop-shadow(0 0 5px rgba(255, 220, 185, 0.75))
            drop-shadow(0 0 16px rgba(255, 45, 35, 0.9))
            drop-shadow(0 0 28px rgba(175, 0, 0, 0.65));
    animation: panel-glow-pulse 2s ease-in-out infinite alternate;
    pointer-events: none;
}

.user-panel__art {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
}

.user-panel__content {
    position: absolute;
    z-index: 2;
    top: 18%;
    right: 12%;
    bottom: 8%;
    left: 12%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.user-panel__title {
    margin: 0 0 14px;
    transform: translateY(-5px);
    color: var(--text-primary);
    font-family: "Cinzel Decorative", Georgia, serif;
    font-size: clamp(15px, 1.5vw, 20px);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-shadow: 0 1px 2px #000, 0 0 9px rgba(196, 58, 34, 0.7);
}

.user-panel__form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    width: 100%;
}

.user-panel__form input {
    align-self: center;
    width: 84%;
    max-width: 230px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #7e3a31;
    border-radius: 4px;
    outline: none;
    background: rgba(12, 11, 15, 0.86);
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(204, 129, 77, 0.12);
    color: var(--text-primary);
    color-scheme: dark;
    caret-color: var(--text-primary);
    font: 14px "Segoe UI", Tahoma, sans-serif;
}

.user-panel__form input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.user-panel__form input:focus-visible {
    border-color: #e06d79;
    box-shadow: 0 0 0 2px rgba(220, 114, 60, 0.32);
}

.user-panel__form input:-webkit-autofill,
.user-panel__form input:-webkit-autofill:hover,
.user-panel__form input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #141116 inset;
    -webkit-text-fill-color: var(--text-primary);
    caret-color: var(--text-primary);
    transition: background-color 9999s ease-out 0s;
}

.user-panel__form input:-webkit-autofill:focus-visible {
    -webkit-box-shadow: 0 0 0 1000px #141116 inset, 0 0 0 2px rgba(220, 114, 60, 0.32);
}

.user-panel__form input:autofill {
    box-shadow: 0 0 0 1000px #141116 inset;
    color: var(--text-primary);
}

.user-panel__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 14px;
    text-align: center;
}

.user-panel__links a {
    color: var(--text-primary);
    font: 12px "Segoe UI", Tahoma, sans-serif;
    text-decoration: none;
    text-shadow: 0 1px 2px #000;
}

.user-panel__links a:hover,
.user-panel__links a:focus-visible {
    color: var(--text-heading);
    text-decoration: underline;
}

.user-panel__submit {
    align-self: center;
    width: min(100%, 220px);
    aspect-ratio: 900 / 340;
    margin-top: 2px;
    padding: 0 12px;
    border: 0;
    background: transparent url("../img/button.webp") center / contain no-repeat;
    color: var(--text-heading);
    font: 400 16px "Cinzel Decorative", Georgia, serif;
    text-shadow: 0 2px 3px #000, 0 0 8px rgba(255, 146, 70, 0.8);
    transition: filter 150ms ease, transform 150ms ease;
}

a,
button,
select,
summary,
label[for],
[role="button"],
[role="link"],
[onclick],
input[type="button"],
input[type="submit"],
input[type="reset"],
[style*="cursor: pointer"],
[style*="cursor:pointer"] {
    cursor: url("../img/cursor-hover.webp") 0 0, pointer !important;
}

.user-panel__submit:hover {
    filter: brightness(1.2);
}

.user-panel__submit:active {
    transform: translateY(2px);
}

.user-panel__submit:focus-visible {
    outline: 2px solid #e06d79;
    outline-offset: 2px;
}

.user-panel__signed-in {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    color: var(--text-primary);
    font-size: 13px;
    text-align: center;
    text-shadow: 0 1px 2px #000;
}

.user-panel__signed-in p {
    margin: 0 0 4px;
    overflow-wrap: anywhere;
}

.user-panel__signed-in a {
    display: block;
    width: min(100%, 220px);
    padding: 6px 8px;
    border: 1px solid rgba(159, 65, 53, .46);
    border-radius: 4px;
    background: rgba(15, 10, 15, .6);
    color: var(--text-primary);
    text-decoration: none;
}

.user-panel__signed-in a:hover,
.user-panel__signed-in a:focus-visible {
    color: var(--text-heading);
    text-decoration: underline;
}

.login-feedback {
    grid-column: 2;
    align-self: start;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid #a45043;
    background: rgba(30, 9, 11, 0.88);
    color: var(--text-heading);
    font: 14px "Segoe UI", Tahoma, sans-serif;
}

.center-logo {
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    width: clamp(360px, 40vw, 560px);
    min-width: 0;
    transform: translateY(-12px);
}

.center-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.center-logo img {
    transition: filter 220ms ease, transform 220ms ease;
}

.center-logo:hover img,
.center-logo:focus-visible img {
    filter: brightness(1.18) drop-shadow(0 0 10px rgba(255, 255, 255, .9)) drop-shadow(0 0 20px rgba(255, 255, 255, .7));
    transform: scale(1.035);
}

@media (prefers-reduced-motion: reduce) {
    .center-logo img { transition: none; }
}

.content-frame {
    position: relative;
    display: grid;
    grid-template-areas: "frame";
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    width: min(72.9%, 720.25px);
    min-width: 0;
    margin-top: 36px;
}

.content-frame__body {
    grid-area: frame;
    min-width: 0;
}

.content-frame__body {
    position: relative;
    z-index: 1;
    align-self: start;
    aspect-ratio: 988 / 1268;
    padding: 10% 9% 12%;
    border: 2px solid #b83246;
    border-radius: clamp(16px, 2.2vw, 28px);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(127, 24, 39, .24), transparent 56%),
        linear-gradient(155deg, rgba(27, 18, 24, .97), rgba(10, 10, 16, .96) 58%, rgba(37, 14, 23, .97));
    box-shadow:
        0 0 0 1px rgba(255, 117, 126, .25),
        0 0 20px rgba(200, 28, 54, .68),
        0 0 52px rgba(154, 8, 34, .38),
        inset 0 0 30px rgba(149, 14, 39, .25);
    color: var(--text-primary);
    line-height: 1.4;
}

.content-frame__body::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(217, 72, 88, .28);
    border-radius: inherit;
    pointer-events: none;
}

.content-frame__flanks {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.content-frame__column {
    position: absolute;
    top: 0;
    width: min(364.5px, calc(50vw - 50% - 66px));
    display: flex;
    flex-direction: column;
    gap: clamp(48px, 5vw, 72px);
}

.content-frame__column--left {
    right: calc(100% + 56px);
}

.content-frame__column--right {
    left: calc(100% + 56px);
}

.castle-siege-panel {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
    width: 100%;
    max-width: calc(100vw - 24px);
    min-height: 190px;
    margin: 32px auto 0;
    padding: 24px clamp(18px, 4vw, 54px);
    border: 2px solid #9e2434;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(30, 14, 20, .96), rgba(10, 10, 16, .97) 60%, rgba(44, 13, 21, .95));
    box-shadow: 0 0 22px rgba(181, 18, 44, .55), inset 0 0 28px rgba(125, 12, 30, .28);
    color: var(--text-primary);
    text-align: center;
}

.castle-siege-panel__eyebrow {
    margin: 0 0 4px;
    color: var(--text-accent);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.castle-siege-panel h2 {
    margin: 0 0 18px;
    color: var(--text-heading);
    font: 700 clamp(20px, 2vw, 28px) "Cinzel Decorative", Georgia, serif;
}

.castle-siege-panel__winner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.castle-siege-panel__mark { width: 96px; height: 96px; object-fit: contain; }
.castle-siege-panel__guild { color: var(--text-heading); font-size: clamp(18px, 2vw, 26px); }
.castle-siege-panel__winner p { margin: 8px 0 0; }
.castle-siege-panel__winner p a { color: var(--text-accent); }
.castle-siege-panel__empty { margin: 0; color: var(--text-muted); }

.content-frame__slot {
    position: relative;
    width: 100%;
    container-type: inline-size;
}

.content-frame__flank {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 450 / 560;
    background: url("../img/bg_panel.webp") center / 100% 100% no-repeat;
    color: var(--text-primary);
    pointer-events: auto;
}

.content-frame__flank::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 6px solid transparent;
    border-image: url("../img/block-border.webp") 6 / 6px stretch;
    pointer-events: none;
}

.ranking-flank__ornament {
    position: absolute;
    z-index: 2;
    display: block;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.ranking-flank__ornament--top-left {
    top: 0;
    left: 0;
    width: min(32%, 119px);
    transform: translate(-38%, -33%);
}

.ranking-flank__ornament--top-center {
    top: 0;
    left: 50%;
    width: min(42%, 155px);
    transform: translate(-50%, -50%);
}

.ranking-flank__ornament--bottom-right {
    right: 0;
    bottom: 1%;
    width: min(25%, 91px);
    transform: translate(18%, 17%);
}

.ranking-flank__content {
    position: absolute;
    inset: 8% 8% 7%;
    z-index: 3;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-width: 0;
    text-align: center;
}

.ranking-flank__content h2 {
    margin: 0 0 5%;
    color: var(--text-primary);
    font-family: 'Cinzel Decorative', Georgia, serif;
    font-size: clamp(11px, 1vw, 17px);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 5px #000, 0 0 10px #a53222;
}

.ranking-flank__table {
    width: 100%;
    height: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: clamp(10px, .78vw, 13px);
    line-height: 1.2;
    text-align: center;
}

.ranking-flank__table--resets th:nth-child(1),
.ranking-flank__table--resets td:nth-child(1) { width: 7%; }
.ranking-flank__table--resets th:nth-child(2),
.ranking-flank__table--resets td:nth-child(2) { width: 17%; }
.ranking-flank__table--resets th:nth-child(3),
.ranking-flank__table--resets td:nth-child(3) { width: 39%; }
.ranking-flank__table--resets th:nth-child(4),
.ranking-flank__table--resets td:nth-child(4) { width: 19%; }
.ranking-flank__table--resets th:nth-child(5),
.ranking-flank__table--resets td:nth-child(5) { width: 18%; }

.ranking-flank__table--guilds th:nth-child(1),
.ranking-flank__table--guilds td:nth-child(1) { width: 7%; }
.ranking-flank__table--guilds th:nth-child(2),
.ranking-flank__table--guilds td:nth-child(2) { width: 18%; }
.ranking-flank__table--guilds th:nth-child(3),
.ranking-flank__table--guilds td:nth-child(3) { width: 26%; }
.ranking-flank__table--guilds th:nth-child(4),
.ranking-flank__table--guilds td:nth-child(4) { width: 27%; }
.ranking-flank__table--guilds th:nth-child(5),
.ranking-flank__table--guilds td:nth-child(5) { width: 22%; }

.ranking-flank__table th,
.ranking-flank__table td {
    overflow: hidden;
    padding: 5px 2px;
    vertical-align: middle;
}

.ranking-flank__table th {
    border-bottom: 1px solid #9c4d40;
    color: var(--text-accent);
    font-size: .85em;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: normal;
}

.ranking-flank__table td {
    text-align: center;
}

.ranking-flank__table tbody tr {
    border-bottom: 1px solid rgba(204, 76, 60, .38);
    background: linear-gradient(90deg, transparent, rgba(25, 8, 10, .68) 10%, rgba(25, 8, 10, .68) 90%, transparent);
}

.ranking-flank__icon {
    display: block;
    width: clamp(18px, 2vw, 28px);
    height: clamp(18px, 2vw, 28px);
    margin-inline: auto;
    object-fit: contain;
}

.ranking-flank__missing-icon {
    color: var(--text-muted);
}

.ranking-flank__position {
    color: var(--text-accent);
    font-weight: 700;
}

.ranking-flank__name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-flank__profile {
    color: inherit;
    text-decoration: none;
}

.ranking-flank__profile:hover,
.ranking-flank__profile:focus-visible {
    color: var(--text-heading);
    text-decoration: underline;
}

.ranking-flank__score {
    color: var(--text-accent);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.ranking-flank__empty {
    padding: 18px 4px !important;
    font-size: clamp(9px, .72vw, 12px);
    line-height: 1.4;
    text-align: center;
    text-shadow: 0 2px 4px #000;
}

.ranking-flank__more {
    display: grid;
    place-items: center;
    justify-self: center;
    align-self: center;
    margin-top: 8px;
    width: 133px;
    max-width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 0;
    color: var(--text-primary);
    background: transparent url("../img/button-view-more.webp") center / 100% 100% no-repeat;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: clamp(9px, .73vw, 12px);
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 1px 3px #000;
    white-space: nowrap;
}

.ranking-flank__more:hover,
.ranking-flank__more:focus-visible {
    color: var(--text-heading);
    filter: brightness(1.25) drop-shadow(0 0 7px rgba(194, 52, 38, .75));
}

.ranking-flank__more:focus-visible {
    outline: 2px solid #e06d79;
    outline-offset: 2px;
}

.ranking-flank__content--server {
    grid-template-rows: auto 1fr;
}

.ranking-flank__content--user {
    grid-template-rows: auto minmax(0, 1fr);
}

.ranking-flank__content--user .user-panel__form,
.ranking-flank__content--user .user-panel__signed-in {
    align-self: center;
    min-width: 0;
}

.ranking-flank__content--user .user-panel__form input {
    box-sizing: border-box;
    max-width: 100%;
}

.ranking-flank__content--social {
    inset: 11% 8% 8%;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
}

.social-panel__iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 5px;
    background: #23272a;
}


.ranking-flank__content--server h2 {
    margin-bottom: 2%;
}

.server-details {
    display: grid;
    grid-template-rows: repeat(8, minmax(0, 1fr));
    min-height: 0;
    margin: 0;
    font-size: clamp(10px, .9vw, 14px);
}

.server-details > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    min-width: 0;
    padding: 0 clamp(12px, 1vw, 20px);
    border-bottom: 1px solid rgba(204, 76, 60, .35);
}

.server-details > div:nth-child(odd) {
    background: rgba(64, 18, 22, .18);
}

.server-details dt { text-align: left; }
.server-details dd {
    margin: 0;
    color: var(--text-accent);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.ranking-flank__content--events {
    position: absolute;
    inset: 8% 8% 7%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 0;
}

.event-panel__heading,
.event-panel__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(78px, 32%);
    align-items: center;
    gap: 8px;
    text-align: left;
}

.event-panel__heading {
    padding: 0 4px 5px;
    border-bottom: 1px solid #9c4d40;
    color: var(--text-accent);
    font-size: clamp(9px, .73vw, 12px);
    font-weight: 700;
}

.event-panel__heading span:last-child {
    text-align: right;
}

.event-panel__list {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: space-evenly;
    min-height: 0;
    overflow: hidden;
}

.event-panel__item {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    max-height: 64px;
    padding: 3px 4px;
    border-bottom: 1px solid rgba(204, 76, 60, .38);
    background: linear-gradient(90deg, transparent, rgba(47, 12, 17, .48) 12%, rgba(47, 12, 17, .48) 88%, transparent);
    line-height: 1.25;
}

.event-panel__name {
    min-width: 0;
    color: var(--text-primary);
    font-size: clamp(10px, .86vw, 14px);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.event-panel__schedule {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 0;
}

.event-panel__time {
    color: var(--text-accent);
    font-size: clamp(10px, .84vw, 14px);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.event-panel__time--soon {
    color: #76ec8a;
    text-shadow: 0 0 9px rgba(64, 220, 96, .75);
}

.event-panel__day {
    color: var(--text-muted);
    font-size: clamp(9px, .72vw, 12px);
    text-transform: capitalize;
}

.event-panel__empty {
    align-self: center;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

.event-panel__pagination {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-accent);
    font-size: clamp(10px, .8vw, 13px);
    font-variant-numeric: tabular-nums;
}

.event-panel__pagination button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 25px;
    padding: 0;
    border: 1px solid #985043;
    border-radius: 3px;
    color: var(--text-primary);
    background: linear-gradient(#471c20, #1b0b0e);
    font: 700 22px/1 Georgia, serif;
}

.event-panel__pagination button:hover:not(:disabled),
.event-panel__pagination button:focus-visible:not(:disabled) {
    border-color: #e88b65;
    box-shadow: 0 0 8px #a52b22;
}

.event-panel__pagination button:disabled {
    opacity: .42;
    cursor: default !important;
}

.account-content {
    min-width: 0;
    width: 100%;
    overflow-wrap: anywhere;
    color: var(--text-primary);
}

.account-content--home > .page-title,
.site-page > .page-title {
    display: none;
}

.account-content .page-title {
    margin-bottom: 16px;
    font-size: 22px;
}

.account-content > .row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.account-content > .row > div {
    min-width: 0;
    text-align: center;
}

.account-content a {
    color: var(--text-primary);
    text-decoration: none;
}

.account-content a:hover,
.account-content a:focus-visible {
    color: var(--text-heading);
    text-decoration: none;
}

.account-content img {
    max-width: 100%;
}

.account-overview {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.account-overview > section {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(192, 67, 67, .54);
    border-radius: 12px;
    background: rgba(12, 9, 15, .7);
    box-shadow: inset 0 0 18px rgba(107, 20, 28, .18);
}

.account-overview h2 {
    margin: 0 0 16px;
    color: var(--text-heading);
    font: 700 clamp(15px, 1.55vw, 19px) "Cinzel Decorative", Georgia, serif;
    text-align: center;
    text-shadow: 0 2px 3px #000, 0 0 8px rgba(213, 65, 44, .4);
}

.account-overview h2 span {
    color: #c49b80;
    font-size: .75em;
}

.account-overview__details {
    display: grid;
    gap: 0;
    margin: 0;
}

.account-overview__details > div {
    display: grid;
    grid-template-columns: minmax(95px, 30%) minmax(0, 1fr);
    gap: 12px;
    padding: 9px 4px;
    border-bottom: 1px solid rgba(175, 77, 62, .28);
}

.account-overview__details dt {
    color: #bd9d86;
}

.account-overview__details dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.account-overview__warehouse {
    margin-top: 12px;
}

.account-overview__warehouse > summary {
    display: grid;
    grid-template-columns: minmax(95px, 30%) minmax(0, 1fr);
    gap: 12px;
    padding: 9px 4px;
    color: #bd9d86;
    list-style: none;
    cursor: pointer;
}

.account-overview__warehouse > summary::-webkit-details-marker {
    display: none;
}

.account-overview__warehouse > summary:hover,
.account-overview__warehouse > summary:focus-visible {
    color: var(--text-heading);
}

.account-overview__warehouse-open,
.account-overview__warehouse-close {
    justify-self: start;
    color: #f2c89b;
    text-decoration: underline;
}

.account-overview__warehouse-close,
.account-overview__warehouse[open] .account-overview__warehouse-open {
    display: none;
}

.account-overview__warehouse[open] .account-overview__warehouse-close {
    display: inline;
}

.account-overview__warehouse-content {
    display: grid;
    justify-items: center;
    padding: 12px 0;
}

.account-overview__vault-viewer {
    width: min(410px, 100%);
    color: #f0d5b6;
}

.account-overview__vault-art {
    position: relative;
    width: 100%;
    padding: 52px 12px 14px;
    border: 2px solid #574036;
    border-radius: 7px;
    background: linear-gradient(145deg, #281917, #090b0e 48%, #1b1918);
    box-shadow: inset 0 0 0 2px #100c0a, 0 12px 28px #0008;
}

.account-overview__vault-arrow,
.account-overview__vault-close {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #625044;
    border-radius: 4px;
    background: #1c1514;
    cursor: pointer;
    transition: filter .2s ease, background-color .2s ease;
}

.account-overview__vault-arrow--prev {
    top: 11px;
    right: calc(50% + min(20%, 75px) + 5px);
    width: 34px;
    height: 29px;
}

.account-overview__vault-arrow--next {
    top: 11px;
    left: calc(50% + min(20%, 75px) + 5px);
    width: 34px;
    height: 29px;
}

.account-overview__vault-arrow::before,
.account-overview__vault-close::before {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #e4d2c1;
    font: 700 25px/1 Georgia, serif;
    text-shadow: 0 1px 2px #000;
}
.account-overview__vault-arrow--prev::before { content: '‹'; }
.account-overview__vault-arrow--next::before { content: '›'; }
.account-overview__vault-close::before { content: '×'; font-size: clamp(17px, 3vw, 23px); }
.account-overview__vault-arrow:hover::before,
.account-overview__vault-close:hover::before,
.account-overview__vault-arrow:focus-visible::before,
.account-overview__vault-close:focus-visible::before { color: #ffe1a2; }

.account-overview__vault-arrow:hover,
.account-overview__vault-close:hover,
.account-overview__vault-arrow:focus-visible,
.account-overview__vault-close:focus-visible {
    background: rgba(80, 20, 13, .45);
    filter: drop-shadow(0 0 7px rgba(250, 160, 63, .9));
}

.account-overview__vault-close {
    top: 11px;
    right: 12px;
    width: 29px;
    height: 29px;
}

.account-overview__vault-arrow:focus-visible,
.account-overview__vault-close:focus-visible {
    outline: 2px solid #ffcf9c;
    outline-offset: -2px;
}

.account-overview__vault-indicator {
    position: absolute;
    top: 11px;
    left: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: min(40%, 150px);
    height: 29px;
    background: transparent;
    color: #e4d2c1;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transform: translateX(-50%);
}

.account-overview__vault-page {
    position: relative;
    width: 100%;
}

.account-overview__vault-page[hidden] {
    display: none;
}

.account-overview__vault-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: repeat(15, minmax(0, 1fr));
    width: 100%;
    aspect-ratio: 8 / 15;
    border: 2px solid #625144;
    background-color: #0d1012;
    background-image: linear-gradient(to right, #5a56504d 1px, transparent 1px),
        linear-gradient(to bottom, #5a56504d 1px, transparent 1px);
    background-size: 12.5% 100%, 100% 6.666667%;
}

.account-overview__slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
}

.account-overview__slot--filled {
    background: rgba(118, 38, 32, .72);
    box-shadow: inset 0 0 0 1px rgba(230, 120, 77, .75);
    overflow: hidden;
}

.account-overview__item-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}


.account-overview__slot-placeholder {
    color: #ffe5bd;
    font-family: Arial, sans-serif;
    font-size: clamp(7px, 2vw, 9px);
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 1px 2px #000;
}

.account-overview__vault-error {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 8 / 15;
    margin: 0;
    padding: 12%;
    text-align: center;
}

.account-overview__vault-zen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    margin-top: 10px;
    padding: 8px 12px;
    border: 1px solid #625144;
    border-radius: 4px;
    background: linear-gradient(145deg, #281917, #111214);
    color: #e4d2c1;
    font-size: 12px;
}

.account-overview__vault-zen strong {
    color: #f3e1cb;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
    text-align: right;
}

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

.account-overview__balance {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 12px 6px;
    border: 1px solid rgba(178, 64, 54, .4);
    border-radius: 8px;
    background: rgba(76, 21, 27, .34);
    text-align: center;
}

.account-overview__balance span {
    color: #caa991;
    font-size: 12px;
}

.account-overview__balance strong {
    overflow-wrap: anywhere;
    color: #fff0d4;
    font-size: clamp(15px, 1.7vw, 20px);
}

.account-overview__hint,
.account-overview__empty,
.account-overview__unavailable {
    margin: 12px 0 0;
    color: #c9ad9a;
    font-size: 13px;
    text-align: center;
}

.account-overview__characters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.account-overview__character {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(178, 64, 54, .35);
    border-radius: 8px;
    background: rgba(48, 20, 25, .4);
}

.account-overview__character:hover,
.account-overview__character:focus-visible {
    border-color: rgba(239, 144, 100, .85);
    background: rgba(85, 32, 34, .55);
}

.account-overview__character img {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.account-overview__character-info {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.account-overview__character-info strong,
.account-overview__character-info small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-overview__character-info small {
    color: #cba995;
    font-size: 11px;
}

@media (max-width: 700px) {
    .account-overview > section {
        padding: 14px;
    }

}

.site-page {
    min-width: 0;
    width: 100%;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.site-page .row,
.account-content .row {
    max-width: 100%;
    margin-inline: 0;
}

.site-page :is(img, svg, video, iframe, embed, object, canvas),
.account-content :is(img, svg, video, iframe, embed, object, canvas),
.site-page :is(input, select, textarea, button),
.account-content :is(input, select, textarea, button) {
    max-width: 100%;
}

.site-page iframe,
.account-content iframe {
    display: block;
    aspect-ratio: 16 / 9;
    height: auto;
}

.site-page pre,
.account-content pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.site-page a {
    color: var(--text-accent);
}

.site-page img,
.site-page input,
.site-page select,
.site-page textarea {
    max-width: 100%;
}

.site-page table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.account-content table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

.site-page--rankings .rankings-table {
    table-layout: fixed;
    min-width: 0;
    font-size: clamp(10px, .72vw, 13px);
}

.site-page--rankings .rankings-table td,
.site-page--rankings .rankings-table th {
    min-width: 0;
    padding-inline: 3px;
    overflow-wrap: anywhere;
}

.site-page--rankings .rankings-table img {
    height: auto;
    object-fit: contain;
}

.site-page td,
.site-page th,
.account-content td,
.account-content th {
    min-width: 0;
    padding: 8px;
    border-bottom: 1px solid rgba(169, 71, 54, 0.35);
    overflow-wrap: anywhere;
}

.site-page__title {
    margin: 0 0 20px;
    color: var(--text-heading);
    font: 700 clamp(18px, 2vw, 24px) "Cinzel Decorative", Georgia, serif;
    text-align: center;
    text-shadow: 0 2px 3px #000, 0 0 12px rgba(213, 65, 44, 0.55);
}

.site-page__title::after {
    display: block;
    width: min(220px, 55%);
    height: 1px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, transparent, #a74048, transparent);
    content: "";
}

.site-page__placeholder {
    margin: 0;
    color: var(--text-muted);
    text-align: center;
}

.site-page .panel-downloads {
    min-width: 0;
    margin: 0 0 18px;
    padding: clamp(16px, 2.5vw, 24px);
    border: 1px solid rgba(177, 55, 62, .65);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(39, 17, 25, .88), rgba(13, 11, 17, .88));
    box-shadow: inset 0 0 18px rgba(126, 25, 39, .18), 0 0 12px rgba(116, 18, 37, .2);
}

.site-page .panel-downloads .panel-body { min-width: 0; }

.site-page .panel-downloads .panel-title {
    margin: 0;
    color: var(--text-heading);
    font: 700 clamp(14px, 1.5vw, 18px) "Cinzel Decorative", Georgia, serif;
    text-align: center;
    overflow-wrap: anywhere;
}

.site-page .panel-downloads .table { margin: 16px 0 0; }
.site-page .panel-downloads .table:empty { display: none; }
.site-page .panel-downloads .table tr { border-top: 1px solid rgba(177, 55, 62, .35); }
.site-page .panel-downloads .table td { vertical-align: middle; overflow-wrap: anywhere; }
.site-page .panel-downloads .download-description { display: block; margin-top: 5px; color: var(--text-muted); font-size: 12px; }

.site-page .panel-downloads .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    padding: 8px 4px;
    border: 1px solid #a74048;
    border-radius: 6px;
    background: linear-gradient(#71202c, #340e17);
    color: var(--text-heading);
    font: 700 12px/1.2 "Segoe UI", Tahoma, sans-serif;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.site-page .panel-downloads .btn:hover,
.site-page .panel-downloads .btn:focus-visible {
    background: linear-gradient(#96303d, #50131f);
    box-shadow: 0 0 12px rgba(224, 52, 70, .5);
}

@media (max-width: 600px) {
    .site-page .panel-downloads .table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 0; }
    .site-page .panel-downloads .table td { width: auto !important; padding: 2px 0; }
    .site-page .panel-downloads .table td:first-child { grid-column: 1 / -1; }
}

.download-requirements {
    margin-top: 30px;
    padding: clamp(16px, 2.5vw, 24px);
    border: 1px solid rgba(177, 55, 62, .65);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(39, 17, 25, .88), rgba(13, 11, 17, .88));
}

.download-requirements h2 {
    margin: 0 0 8px;
    color: var(--text-heading);
    font: 700 clamp(15px, 1.6vw, 20px) "Cinzel Decorative", Georgia, serif;
    text-align: center;
}

.download-requirements__intro,
.download-requirements__source {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.download-requirements__intro { margin: 0 0 18px; }
.download-requirements__source { margin: 18px 0 0; }
.download-requirements__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.download-requirements__item {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(177, 55, 62, .35);
    border-radius: 8px;
    background: rgba(8, 8, 14, .38);
}

.download-requirements__item h3 { margin: 0 0 9px; color: var(--text-heading); font-size: 13px; }
.download-requirements__item p { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px; margin: 5px 0; font-size: 12px; line-height: 1.4; }
.download-requirements__item p span { color: var(--text-accent); }

@media (max-width: 600px) {
    .download-requirements__grid { grid-template-columns: minmax(0, 1fr); }
}

.site-page .panel-news {
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid rgba(169, 71, 54, .55);
    border-radius: 8px;
    background: rgba(18, 12, 17, .65);
}

.site-page .panel-news .panel-title {
    margin: 0 0 12px;
    font: 700 clamp(15px, 1.5vw, 20px) "Cinzel Decorative", Georgia, serif;
}

.site-page .panel-news .panel-body {
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.site-page .panel-news .panel-footer {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 12px;
    text-align: right;
}

.site-page--rankings .rankings_menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 22px;
}

.site-page--rankings .rankings_menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid rgba(164, 79, 61, 0.68);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(58, 20, 25, 0.88), rgba(20, 13, 17, 0.94));
    color: var(--text-primary);
    font: 700 11px/1.3 "Segoe UI", Tahoma, sans-serif;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px 2px #000;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.site-page--rankings .rankings_menu a:hover,
.site-page--rankings .rankings_menu a:focus-visible {
    border-color: #e06d79;
    background: rgba(108, 31, 33, 0.9);
    color: var(--text-heading);
    box-shadow: 0 0 10px rgba(220, 76, 53, 0.35);
}

.site-page--rankings .rankings_menu a.active {
    border-color: #e06d79;
    background: linear-gradient(180deg, rgba(128, 38, 37, 0.94), rgba(58, 19, 23, 0.96));
    color: var(--text-heading);
    box-shadow: inset 0 0 10px rgba(242, 122, 77, 0.24), 0 0 9px rgba(201, 62, 42, 0.3);
}

.rankings-class-filter {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px 8px;
    margin: 20px 0 24px;
    padding: 0;
    list-style: none;
}

.rankings-class-filter li,
.rankings-class-filter-selection {
    min-width: 0;
    width: 100%;
}

.rankings-class-filter-selection {
    display: block;
    color: var(--text-primary);
    font-size: 9px;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.rankings-class-filter-selection br {
    display: none;
}

.rankings-class-filter-image {
    display: block;
    width: min(100%, 80px);
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto 6px;
    object-fit: contain;
    transition: filter 150ms ease, opacity 150ms ease;
}

.rankings-class-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.rankings-class-filter-grayscale .rankings-class-filter-image {
    filter: grayscale(1) brightness(0.7);
    opacity: 0.75;
}

.rankings-class-filter-selection:hover .rankings-class-filter-image,
.rankings-class-filter-selection:focus-visible .rankings-class-filter-image {
    filter: brightness(1.2);
    opacity: 1;
}

.rankings-class-filter-selection:focus-visible {
    outline: 2px solid #e06d79;
    outline-offset: 3px;
}

.rankings-filter-empty {
    color: var(--text-primary);
    text-align: center;
}

.admincp-button {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 57px;
    padding: 0 12px;
    background: transparent url("../img/button.webp") center / 100% 100% no-repeat;
    color: var(--text-heading);
    font: 700 12px "Cinzel Decorative", Georgia, serif;
    text-decoration: none;
    text-shadow: 0 2px 3px #000, 0 0 8px rgba(255, 146, 70, 0.8);
    transition: filter 150ms ease, transform 150ms ease;
}

.admincp-button:hover,
.admincp-button:focus-visible {
    color: var(--text-heading);
    filter: brightness(1.2);
}

.admincp-button:active {
    transform: translateY(2px);
}

.admincp-button:focus-visible {
    outline: 2px solid #e06d79;
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes panel-glow-pulse {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .user-panel::before {
        animation: none;
        opacity: 0.7;
    }
}

@media (max-width: 1100px) {
    .site-main {
        display: block;
    }

    .user-panel {
        transform: none;
    }

    .center-logo {
        width: min(90vw, 480px);
        margin: 20px auto 0;
        transform: none;
    }

    .content-frame {
        width: min(72.9%, 720.25px);
        margin: 24px auto 0;
    }
}

@media (max-width: 1280px) {
    .content-frame {
        grid-template-areas: "frame" "flanks";
        aspect-ratio: auto;
    }

    .content-frame__flanks {
        position: static;
        grid-area: flanks;
        display: flex;
        justify-content: space-around;
        gap: 56px;
        margin-top: 48px;
    }

    .content-frame__column {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: min(calc(50% - 28px), 291.6px);
    }

    .ranking-flank__content h2 {
        font-size: clamp(10px, 2vw, 15px);
    }

    .ranking-flank__table,
    .ranking-flank__empty {
        font-size: clamp(9px, 1.4vw, 11px);
    }
}

@media (max-width: 900px) {
    .site-header {
        padding-bottom: 95px;
    }

    .header-nav {
        inset: 0;
        grid-template-columns: minmax(0, 1fr) clamp(170px, 24vw, 260px) minmax(0, 1fr);
        width: auto;
        padding: 0 10%;
    }

    .header-nav__group {
        justify-content: space-between;
        gap: 4px;
    }

    .header-nav a,
    .header-nav__placeholder {
        padding: 4px 0;
        font-size: 10px;
    }
}

@media (max-width: 767px) {
    .rankings-class-filter {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body {
        background-attachment: scroll;
    }

    .site-header {
        padding: 56px 8px 95px;
    }

    .site-main {
        display: block;
        padding: 0 8px 32px;
    }

    .user-panel {
        width: max(72.9%, min(270px, 100%));
        margin: -24px auto 0;
        transform: none;
    }

    .center-logo {
        width: min(90vw, 440px);
        margin: 20px auto 0;
    }

    .user-panel__title {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .user-panel__form {
        gap: 6px;
    }

    .user-panel__form input {
        height: 32px;
    }

    .user-panel__links {
        flex-direction: column;
        gap: 2px;
    }

    .user-panel__links a {
        font-size: 11px;
    }

    .user-panel__submit {
        width: min(100%, 180px);
        font-size: 14px;
    }

    .login-feedback {
        margin: 0;
    }

    .content-frame__body {
        padding: 11% 9% 14%;
    }

    .site-page--rankings .rankings_menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .site-page--rankings .rankings_menu a {
        min-height: 40px;
        padding: 6px;
        font-size: 10px;
    }

    .account-content > .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admincp-button {
        top: 8px;
        left: 8px;
        width: 126px;
        height: 48px;
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .rankings-class-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .site-header {
        padding-bottom: 160px;
    }

    .header-nav {
        inset: auto auto auto 50%;
        top: calc(100% + 50px);
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
        width: min(100%, 560px);
        padding: 0 6px;
        transform: translateX(-50%);
    }

    .header-nav__group--left,
    .header-nav__group--right {
        grid-column: 1;
    }

    .header-nav__group {
        justify-content: space-around;
        min-height: 32px;
        padding: 2px 8px;
        border-block: 1px solid rgba(193, 77, 53, 0.45);
        background: linear-gradient(90deg, transparent, rgba(13, 8, 12, 0.82) 12%, rgba(13, 8, 12, 0.82) 88%, transparent);
    }

    .header-nav a,
    .header-nav__placeholder {
        padding: 4px 1px;
        font-size: clamp(10px, 1.7vw, 13px);
    }
}

@media (max-width: 520px) {
    .content-frame__flanks {
        flex-direction: column;
        align-items: center;
        gap: 48px;
    }

    .content-frame__column {
        width: min(78%, 267.3px);
    }

    .ranking-flank__content h2 {
        font-size: 13px;
    }

    .ranking-flank__table,
    .ranking-flank__empty {
        font-size: 10px;
    }
}

.is-register-page {
    overflow: hidden;
}

.registration-overlay {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 10px;
}

.registration-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 3, 8, 0.54);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.registration-panel {
    position: relative;
    width: min(500px, calc(100vw - 20px));
    height: min(550px, calc(100dvh - 20px));
    min-height: 380px;
    color: var(--text-primary);
    filter: drop-shadow(0 0 22px rgba(180, 30, 22, 0.55));
}

.registration-panel__art {
    display: block;
    width: 100%;
    height: 100%;
}

.registration-panel__content {
    position: absolute;
    inset: 16% 13% 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
}

.registration-panel__close {
    position: absolute;
    top: -20px;
    right: -22px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #a95a46;
    border-radius: 50%;
    background: #190d10;
    color: var(--text-heading);
    font: 25px Georgia, serif;
    line-height: 1;
    text-decoration: none;
}

.registration-panel__close:hover,
.registration-panel__close:focus-visible {
    background: #63221e;
    color: #fff;
}

.registration-panel h1 {
    margin: 0 0 8px;
    color: var(--text-heading);
    font: 700 clamp(16px, 2vw, 21px) "Cinzel Decorative", Georgia, serif;
    text-align: center;
    text-shadow: 0 2px 4px #000, 0 0 10px #a53222;
}

.registration-panel__form {
    width: 90%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: #893f31 transparent;
    scrollbar-width: thin;
}

.registration-panel__form > .page-title {
    display: none;
}

.registration-panel__form > .col-xs-8 {
    float: none;
    width: 100%;
    margin: 0 !important;
    padding: 0;
}

.registration-panel__form .form-group {
    margin: 0 0 4px;
}

.registration-panel__form .form-group > label,
.registration-panel__form .form-group > div {
    display: block;
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.registration-panel__form .control-label {
    margin-bottom: 2px !important;
    color: var(--text-primary);
    font: 13px "Segoe UI", Tahoma, sans-serif;
    text-align: left;
}

.registration-panel__form .form-control {
    display: block;
    width: 100%;
    height: 32px;
    padding: 4px 9px;
    border: 1px solid #7e3a31;
    border-radius: 4px;
    background: #141116;
    color: var(--text-primary);
    color-scheme: dark;
    font: 14px "Segoe UI", Tahoma, sans-serif;
}

.registration-panel__form .form-control:focus-visible {
    outline: 2px solid #e06d79;
    outline-offset: 1px;
}

.registration-panel__form .help-block {
    display: block;
    margin: 3px 0 0;
    color: var(--text-muted);
    font: 11px "Segoe UI", Tahoma, sans-serif;
}

.registration-panel__form .form-group:nth-last-child(2) {
    color: var(--text-muted);
    font: 11px "Segoe UI", Tahoma, sans-serif;
    text-align: center;
}

.registration-panel__form .form-group:nth-last-child(2) br {
    display: none;
}

.registration-panel__form a {
    color: var(--text-accent);
}

.registration-panel__form button[type="submit"] {
    display: block;
    width: min(100%, 230px);
    aspect-ratio: 3 / 1;
    margin: 0 auto;
    border: 0;
    background: transparent url("../img/button.webp") center / 100% 100% no-repeat;
    color: var(--text-heading);
    font: 400 16px "Cinzel Decorative", Georgia, serif;
    text-shadow: 0 2px 3px #000, 0 0 8px rgba(255, 146, 70, 0.8);
}

.registration-panel__form button[type="submit"]:hover {
    filter: brightness(1.2);
}

@media (max-width: 520px) {
    .registration-panel__content {
        inset: 16% 10% 8%;
    }

    .registration-panel__close {
        top: -22px;
        right: -10px;
    }
}

.ranking-dragon {
    position: absolute;
    z-index: 10021;
    top: 0;
    left: 0;
    width: clamp(185px, 28vw, 330px);
    height: auto;
    aspect-ratio: 768 / 936;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .8));
    will-change: transform;
}

.ranking-dragon__sprite {
    display: block;
    width: 100%;
    height: 100%;
    animation: dragon-flight-rock 1000ms linear infinite;
    transform-origin: var(--dragon-claw-x, 50%) var(--dragon-claw-y, 60%);
}

@keyframes dragon-flight-rock {
    0%, 100% { transform: rotate(-2deg); }
    35% { transform: rotate(3deg); }
    60% { transform: rotate(0deg); }
}

.content-frame__flanks.is-animating .content-frame__flank {
    pointer-events: none;
    will-change: transform;
}

.content-frame__flank.is-carried {
    position: absolute;
    z-index: 10020;
    margin: 0;
    pointer-events: none;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .ranking-dragon {
        display: none;
    }
}

/* Warehouse MU tooltip: preserve full text and expand to the longest line. */
.warehouse-item-tooltip {
    position: fixed;
    z-index: 999999;
    display: none;
    pointer-events: none;
    width: max-content;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    padding: 7px 0;
    background: rgba(8, 7, 12, .92);
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: #fff;
    font: 12px/1.35 Arial, sans-serif;
    text-align: center;
    white-space: nowrap;
    overflow-wrap: normal;
}
.warehouse-tooltip__title,
.warehouse-tooltip__line,
.warehouse-tooltip__section { padding: 0 4px; white-space: nowrap; }
.warehouse-tooltip__title { margin-bottom: 7px; font-weight: 700; }
.warehouse-tooltip__line { line-height: 1.36; }
.warehouse-tooltip__class {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 4px 0;
    padding: 1px 5px;
    background: #a60000;
    color: #fff;
    white-space: nowrap;
}
.warehouse-tooltip__section { margin-top: 12px; margin-bottom: 5px; }
.warehouse-tooltip__ancient-title { color: #ffce35; }
/* CustomItemDescription Col text_background combinations. */
.warehouse-tooltip__band {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 1px 5px;
    border-radius: 0;
}
.warehouse-tooltip__spacer { height: 6px; }

/* MU tooltip: centered content with full-width class/Ancient bands */
.warehouse-item-tooltip { width:max-content; max-width:none; white-space:nowrap; text-align:center; overflow:visible; }
.warehouse-item-tooltip > div { box-sizing:border-box; text-align:center; white-space:nowrap; }
.warehouse-tooltip__title,.warehouse-tooltip__line,.warehouse-tooltip__section,.warehouse-tooltip__class { width:100%; }
.warehouse-tooltip__class { background:#a60000;color:#fff; }
.warehouse-tooltip__ancient-title {color:#ffd559;}


/* Botón de actualización del baúl: misma cabecera CSS del inventario. */
.account-overview__vault-refresh {
    position: absolute;
    z-index: 5;
    top: 11px;
    left: 12px;
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    padding: 0;
    border: 1px solid #625044;
    border-radius: 4px;
    background: #1c1514;
    color: #e4d2c1;
    transition: color .2s ease, filter .2s ease, background-color .2s ease;
}
.account-overview__vault-refresh:hover:not(:disabled),
.account-overview__vault-refresh:focus-visible {
    color: #ffe1a2;
    background: rgba(80, 20, 13, .45);
    filter: drop-shadow(0 0 7px rgba(250, 160, 63, .9));
}
.account-overview__vault-refresh:focus-visible {
    outline: 2px solid #ffd08a;
    outline-offset: -3px;
}
.account-overview__vault-refresh:disabled { opacity: .75; }
.account-overview__vault-refresh.is-refreshing svg {
    animation: warehouse-refresh-spin .8s linear infinite;
}
@keyframes warehouse-refresh-spin { to { transform: rotate(360deg); } }
.account-overview__vault-update-error {
    position: absolute;
    z-index: 5;
    top: 46px;
    left: 12px;
    right: 12px;
    margin: 0;
    padding: 4px;
    background: rgba(33, 8, 9, .94);
    color: #ffe5d8;
    font: 12px Arial, sans-serif;
    text-align: center;
}
