/* Internal routes keep their content styles; shared chrome is now Tailwind. */
.page-fit {
    width: 1004px;
    margin: 0 auto;
}

.site-shell {
    width: 1004px;
    transform-origin: top left;
}

/* Compact event and character ranking in the right sidebar. */
.sidebar-rankings {
    padding-right: 7px;
    padding-left: 7px;
}

.sidebar-rank-group {
    margin-bottom: 4px;
    overflow: hidden;
    background: rgba(20, 14, 10, .68);
    box-shadow: inset 0 0 0 1px rgba(101, 65, 39, .14);
}

.sidebar-rank-heading {
    display: flex;
    height: 19px;
    align-items: center;
    gap: 4px;
    padding: 0 4px;
    border-bottom: 1px solid rgba(96, 60, 35, .38);
    background: linear-gradient(90deg, rgba(40, 24, 14, .88), rgba(18, 12, 9, .42));
    color: #f09a25;
    font-size: 10px;
    line-height: 1;
}

.sidebar-rank-heading a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-rank-heading a:hover {
    color: #ffc45c;
}

.sidebar-rank-toggle {
    width: 11px;
    height: 11px;
    flex: none;
    margin-left: auto;
    padding: 0;
    cursor: pointer;
    border: 0;
    background: url("./legacy/main_btn_open.gif") no-repeat;
}

.sidebar-rank-list {
    overflow: hidden;
}

.sidebar-rank-row {
    display: grid;
    height: 17px;
    grid-template-columns: 23px 18px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 3px;
    padding: 0 4px 0 2px;
    color: #b8aea8;
    font-size: 9px;
    line-height: 1;
}

.sidebar-rank-row:nth-child(even) {
    background: rgba(68, 46, 34, .2);
}

.sidebar-rank-row:hover {
    color: #e6ddd5;
    background: rgba(105, 56, 29, .34);
}

.sidebar-rank-position {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 2px;
    color: #e8ded5;
}

.sidebar-rank-position i {
    width: 9px;
    height: 9px;
    flex: none;
    background: url("./legacy/bolita.png") center/contain no-repeat;
}

.sidebar-rank-flag,
.sidebar-rank-emblem,
.sidebar-rank-flag-placeholder {
    display: block;
    width: 18px;
    height: 11px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}

.sidebar-rank-emblem {
    object-fit: contain;
    background: rgba(0, 0, 0, .5);
}

.sidebar-rank-flag-placeholder {
    background: linear-gradient(135deg, #5b514a 0 45%, #29231f 45% 55%, #817266 55% 100%);
}

.sidebar-rank-name,
.sidebar-rank-score {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-rank-score {
    max-width: 59px;
    color: #e33c13;
    font-weight: 400;
    text-align: right;
}

.sidebar-rank-row-event .sidebar-rank-position {
    justify-content: center;
}

.sidebar-rank-empty {
    display: block;
    height: 17px;
    overflow: hidden;
    padding: 4px 5px;
    color: #8f8580;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    padding: 8px 12px;
    color: #111;
    background: #e0b661;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: none;
}

.site-columns {
    position: relative;
    display: grid;
    grid-template-columns: 192px 622px 189px;
    width: 1004px;
    min-height: 690px;
    align-items: start;
    background: #080706;
}

.center-content {
    position: relative;
    width: 622px;
    min-height: 690px;
    padding: 20px 31px 38px;
    background-color: #090908;
    background-image: url("./legacy/background_12.png"), url("./legacy/sidebar_bg.jpg");
    background-repeat: no-repeat, repeat;
}

.center-content::before,
.center-content::after {
    content: "";
    position: absolute;
    z-index: 4;
    top: 0;
    bottom: 0;
    width: 11px;
    background-repeat: repeat-y;
    pointer-events: none;
}

.center-content::before {
    left: 0;
    background-image: url("./legacy/main_left.jpg");
}

.center-content::after {
    right: 0;
    background-image: url("./legacy/main_rigth.jpg");
}

.page-header,
.section-block,
.card,
.auth-card,
.content-panel,
.post-card {
    margin: 0 0 15px;
    padding: 14px 16px;
    background: rgba(12, 10, 9, .88);
    border: 1px solid #3d2d1d;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, .55);
}

.page-header {
    background: linear-gradient(90deg, rgba(117, 54, 24, .2), rgba(0, 0, 0, .65)), url("./legacy/sidebar_bg.jpg");
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: #d7b478;
    font-family: Georgia, "Times New Roman", serif;
}

h1 {
    margin-bottom: 7px;
    font-size: 25px;
}

h2 {
    margin-bottom: 9px;
    font-size: 17px;
}

h3 {
    margin-bottom: 7px;
    font-size: 14px;
}

.eyebrow {
    margin-bottom: 4px;
    color: #925d32;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.lead,
.post-card p,
.legal-copy {
    color: #aaa19b;
    line-height: 1.65;
}

.actions,
.card-grid,
.winner-grid,
.information-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.button {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 7px 15px;
    color: #1c1209;
    background: linear-gradient(#dfbb72, #9d642d);
    border: 1px solid #e1c084;
    font-weight: bold;
}

.button-secondary {
    color: #d1b37d;
    background: #17110c;
    border-color: #5d4025;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.section-title {
    margin-bottom: 10px;
}

.post-list,
.download-list,
.event-list,
.information-sections {
    display: grid;
    gap: 10px;
}

.post-card h2 a {
    color: #d5b277;
}

.post-meta {
    color: #746b66 !important;
    font-size: 10px;
}

.post-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.table-scroll {
    width: 100%;
    overflow: auto;
    border: 1px solid #342719;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: #aaa19b;
}

th,
td {
    padding: 7px 8px;
    border-bottom: 1px solid #2c2117;
    text-align: left;
}

th {
    color: #d19b57;
    background: #16110d;
    font-family: Georgia, serif;
}

.table-number,
.table-rank {
    text-align: right;
}

.player-cell a {
    color: #d4b074;
}

.player-cell small {
    display: block;
    color: #766d67;
}

.ranking-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 12px;
}

.ranking-nav a {
    padding: 6px 9px;
    color: #bd9b6b;
    background: #100d0a;
    border: 1px solid #3d2c1c;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    justify-content: center;
    gap: 3px;
    margin: 14px auto 2px;
    padding: 6px 8px;
    background: linear-gradient(#0d0c0b, #030303);
    border: 1px solid #292622;
    border-radius: 2px;
    box-shadow: inset 0 1px rgba(255, 255, 255, .035), inset 0 0 12px #000, 0 2px 5px rgba(0, 0, 0, .65);
}

.pagination a,
.pagination span {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #8d8983;
    background: linear-gradient(#090909, #020202);
    border: 1px solid #201f1d;
    border-radius: 2px;
    box-shadow: inset 0 1px rgba(255, 255, 255, .025), inset 0 -5px 8px #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 1;
    text-shadow: 1px 1px #000;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.pagination a:hover,
.pagination a:focus-visible {
    color: #d8b476;
    background: #15110c;
    border-color: #5b4932;
}

.ranking-selector-panel {
    position: relative;
    width: 550px;
    min-height: 200px;
    margin: 0 auto;
    overflow: hidden;
    background: #080808 url("./legacy/ranking.jpg") left top no-repeat;
}

.ranking-selector-form {
    position: absolute;
    z-index: 1;
    top: 64px;
    left: 50%;
    width: 340px;
    transform: translateX(-50%);
}

.ranking-selector-fields {
    display: grid;
    grid-template-columns: 110px 205px;
    gap: 16px 12px;
    align-items: center;
    justify-content: center;
}

.ranking-selector-fields label {
    color: #f0ece9;
    font-size: 12px;
    font-weight: bold;
    text-align: right;
    text-shadow: 1px 1px 2px #000;
}

.ranking-selector-fields select {
    width: 205px;
    height: 23px;
    padding: 1px 6px;
    color: #17120f;
    background: #f3f3f3;
    border: 1px solid #4c4c4c;
    font-size: 12px;
}

.ranking-selector-fields .button {
    grid-column: 1 / -1;
    justify-self: center;
    width: 205px;
    min-height: 47px;
    padding: 6px 12px;
    color: #d8d5d2;
    background: #050505 url("./legacy/sechdr1bg.png") left top repeat-x;
    border-color: #5b5045;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, .025), 0 2px 5px rgba(0, 0, 0, .7);
    text-shadow: 1px 1px #000;
}

.ranking-selector-fields .button:hover {
    color: #e6a34c;
    border-color: #9b5b28;
}

.ranking-selector-panel + .ranking-results {
    margin-top: 24px;
}

.ranking-table-title {
    margin: 3px 0 16px;
    color: #d7d4d1;
    font-size: 27px;
    font-style: italic;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 2px 2px #000;
}

.ranking-table-scroll {
    border: 0;
}

.ranking-table {
    min-width: 100%;
    table-layout: auto;
    background: rgba(2, 2, 2, .66);
    border: 1px solid #4a4a4a;
    font-size: 10px;
}

.ranking-table th,
.ranking-table td {
    height: 30px;
    padding: 4px 5px;
    border-right: 1px solid #34383a;
    border-bottom: 1px solid #34383a;
    text-align: center;
    white-space: nowrap;
}

.ranking-table th {
    height: 27px;
    color: #c7c3c0;
    background: linear-gradient(#303030, #080808 55%, #010101);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: normal;
}

.ranking-table tbody tr:hover {
    background: rgba(106, 65, 31, .22);
}

.ranking-table .ranking-position {
    color: #d4d0cc;
    font-size: 12px;
}

.ranking-table .ranking-player {
    min-width: 72px;
    text-align: left;
}

.ranking-table .ranking-player a {
    color: #f1efed;
    font-size: 11px;
    font-weight: bold;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}

.ranking-table .ranking-duels-won {
    color: #eff400;
    font-weight: bold;
}

.ranking-table .ranking-duels-lost,
.ranking-table .ranking-resets {
    color: #ff1d21;
    font-weight: bold;
}

.ranking-table .ranking-level {
    color: #89a9d9;
    font-weight: bold;
}

.ranking-table .ranking-master-level {
    color: #f1a51d;
    font-weight: bold;
}

.ranking-table .ranking-master-resets {
    color: #f04aed;
    font-weight: bold;
}

.ranking-table .ranking-gens-points {
    color: #d98ad7;
    font-weight: bold;
}

.ranking-table .ranking-class {
    max-width: 105px;
    overflow: hidden;
    color: #d0cecc;
    font-weight: bold;
    text-overflow: ellipsis;
}

.ranking-class-image {
    display: block;
    width: 32px;
    height: 32px;
    margin: auto;
    object-fit: cover;
    object-position: center top;
    border: 1px solid #6a5137;
    border-radius: 3px;
    background: #14110f;
}

.ranking-table .ranking-guild {
    min-width: 92px;
    color: #d0cecc;
    font-weight: bold;
}

.ranking-guild-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ranking-guild-content img {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border: 1px solid #4a4540;
}

.ranking-table .ranking-country img {
    width: 27px;
    height: 18px;
    margin: auto;
    object-fit: cover;
    border: 1px solid #5a5a5a;
}

.ranking-table .ranking-status {
    font-size: 11px;
    font-style: italic;
    font-weight: bold;
}

.ranking-table .ranking-status.is-online {
    color: #00ef51;
}

.ranking-table .ranking-status.is-offline {
    color: #ff232c;
}

.ranking-table-compact th,
.ranking-table-compact td {
    height: 34px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 11px;
}

.ranking-table-compact .ranking-player {
    min-width: 130px;
}

.ranking-table-pk .ranking-player {
    text-align: center;
}

.ranking-table-compact .ranking-class {
    max-width: none;
    min-width: 120px;
}

.ranking-table .ranking-score {
    color: #eff400;
    font-weight: bold;
}

.ranking-table .ranking-members {
    color: #f04aed;
    font-weight: bold;
}

.ranking-table .ranking-family {
    color: #f1a51d;
    font-weight: bold;
}

.gens-ranking-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    background: rgba(2, 2, 2, .66);
    border-color: #4a4a4a;
}

.gens-ranking-table th,
.gens-ranking-table td {
    border-right-color: #34383a;
    border-bottom-color: #34383a;
    text-align: center;
}

.gens-ranking-table th {
    height: 32px;
    color: #c7c3c0;
    background: linear-gradient(#303030, #080808 55%, #010101);
    font-size: 10px;
    font-weight: normal;
}

.gens-ranking-table td {
    height: 76px;
    padding: 5px 4px;
    color: #d0cecc;
    font-size: 10px;
    white-space: normal;
}

.gens-ranking-table tbody tr:hover {
    background: rgba(106, 65, 31, .22);
}

.gens-col-position {
    width: 30px;
}

.gens-col-player {
    width: 98px;
}

.gens-col-class {
    width: 122px;
}

.gens-col-rank {
    width: 100px;
}

.gens-col-logo {
    width: 64px;
}

.gens-col-points {
    width: 84px;
}

.gens-col-country {
    width: 54px;
}

.gens-ranking-table .ranking-position {
    color: #d4d0cc;
    font-size: 11px;
}

.gens-player {
    overflow: hidden;
    text-overflow: ellipsis;
}

.gens-player a {
    color: #f1efed;
    font-size: 10px;
    font-weight: bold;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}

.gens-character-class {
    color: #d0cecc !important;
    font-weight: bold;
}

.gens-points {
    color: #7899cd !important;
    font-weight: bold;
}

.gens-rank {
    color: #f1a51d !important;
    font-weight: bold;
    line-height: 1.2;
}

.gens-rank-emblem {
    display: block;
    width: 54px;
    height: 66px;
    margin: auto;
    object-fit: contain;
}

.pagination [aria-current="page"] {
    color: #f0bd6a;
    background: linear-gradient(#2b2116, #0d0905);
    border-color: #8a6432;
    box-shadow: inset 0 1px rgba(255, 226, 174, .12), inset 0 -7px 10px rgba(0, 0, 0, .72), 0 0 6px rgba(139, 87, 30, .22);
}

.data-list {
    margin: 0;
}

.data-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dotted #3d3024;
}

.data-list dd {
    margin: 0;
    color: #d3aa6a;
    text-align: right;
}

.information-card,
.card {
    flex: 1 1 190px;
    padding: 12px;
    background: #0e0c0a;
    border: 1px solid #392a1b;
}

.accordion details {
    margin-bottom: 6px;
    padding: 9px;
    background: #0d0b09;
    border: 1px solid #33271b;
}

.accordion summary {
    color: #cca666;
    cursor: pointer;
}

.auth-card {
    max-width: 450px;
    margin-right: auto;
    margin-left: auto;
}

.auth-card form {
    display: grid;
    gap: 10px;
}

.auth-card label {
    display: grid;
    gap: 4px;
    color: #b4aaa1;
}

.auth-card input {
    width: 100%;
    min-height: 32px;
    padding: 7px;
    color: #ddd4ca;
    background: #070605;
    border: 1px solid #493522;
}

.register-page {
    width: 560px;
    margin: 0 auto;
    color: #c0bbb8;
    font-size: 11px;
}

.register-title {
    display: flex;
    min-height: 58px;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2px;
}

.register-title img {
    display: block;
    width: 454px;
    height: 44px;
}

.register-panel {
    width: 560px;
    background: rgba(4, 4, 4, .78);
    border: 2px solid #505050;
    box-shadow: 0 0 18px rgba(0, 0, 0, .72), inset 0 0 16px rgba(0, 0, 0, .5);
}

.register-panel__heading {
    min-height: 23px;
    margin: 0;
    padding: 4px 8px 3px;
    color: #ccc;
    background: #111 url("./legacy/sechdr1bg.png") repeat-x left top;
    border-bottom: 2px solid #505050;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: normal;
    line-height: 14px;
}

.register-panel__body {
    padding: 10px 9px 12px;
}

.register-intro {
    margin: 0 4px 10px;
    color: #bdb8b4;
    line-height: 1.45;
}

.register-form {
    display: grid;
    gap: 7px;
}

.register-fieldset {
    min-width: 0;
    margin: 0;
    padding: 9px 10px 10px;
    background: rgba(8, 7, 6, .7);
    border: 1px solid #505050;
}

.register-fieldset legend {
    padding: 0 6px;
    color: #d4934b;
    font-size: 11px;
    font-weight: bold;
}

.register-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.register-form__field {
    display: grid;
    gap: 4px;
    color: #c7c1bc;
}

.register-form__field--username {
    width: 252px;
}

.register-form__field--captcha {
    grid-template-columns: 118px 104px;
    align-items: center;
}

.register-form__field--captcha span {
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    color: #edb063;
    background: #050403;
    border: 1px dashed #624526;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 2px;
}

.register-form input:not([type="hidden"]) {
    width: 100%;
    height: 28px;
    padding: 5px 7px;
    color: #d5cfca;
    background: #080706;
    border: 1px solid;
    border-color: #1f1f1f #505050 #505050 #1f1f1f;
    outline: none;
    font: 11px Arial, Helvetica, sans-serif;
}

.register-form input:not([type="hidden"]):focus {
    border-color: #a16231 #d09a62 #d09a62 #a16231;
    box-shadow: 0 0 5px rgba(190, 110, 49, .28);
}

.register-hint {
    margin: 6px 0 0;
    color: #827b76;
    font-size: 10px;
    line-height: 1.35;
}

.register-fieldset--captcha .register-hint {
    margin-top: 0;
    margin-bottom: 7px;
}

.register-form__actions,
.register-resend {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
}

.register-action {
    display: inline-flex;
    min-width: 128px;
    min-height: 29px;
    align-items: center;
    justify-content: center;
    padding: 5px 13px;
    color: #ece7e2;
    background: linear-gradient(#383838, #090909 58%, #020202);
    border: 1px solid #606060;
    box-shadow: inset 0 1px rgba(255, 255, 255, .08);
    cursor: pointer;
    font: bold 11px Arial, Helvetica, sans-serif;
    text-decoration: none;
}

.register-action:hover,
.register-action:focus-visible {
    color: #f4b35e;
    border-color: #96602f;
    outline: none;
}

.register-action--secondary {
    color: #aaa49e;
    background: linear-gradient(#242424, #070707);
    border-color: #484848;
}

.register-status {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 10px;
    line-height: 1.4;
    background: #130b08;
    border: 1px solid #713622;
}

.register-status--error {
    color: #ef9b82;
}

.register-status__mark {
    display: inline-flex;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #8b321e;
    border-radius: 50%;
    font-weight: bold;
}

.register-result {
    min-height: 214px;
    padding: 30px 34px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(103, 70, 33, .18), transparent 65%);
}

.register-result__mark {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #dca559;
    background: #0b0d09;
    border: 1px solid #6e5b36;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(202, 137, 53, .16);
    font-size: 24px;
}

.register-result h2 {
    margin-bottom: 8px;
    color: #d8b278;
    font: italic bold 21px Georgia, "Times New Roman", serif;
}

.register-result p {
    max-width: 390px;
    margin: 0 auto 16px;
    color: #b9b2ac;
    line-height: 1.55;
}

.register-resend-confirmation {
    color: #86c691 !important;
}

.form-error,
.form-success,
.empty-state {
    padding: 12px;
    background: #110e0b;
    border: 1px dashed #4b3825;
}

.form-error {
    color: #e48770;
}

.form-success {
    color: #84c58e;
}

.event-list article {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px;
    background: #0c0a09;
    border-left: 2px solid #a65a28;
}

.event-list small {
    display: block;
    color: #766d67;
}
