/* 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;
}

.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,
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 12px;
}

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

.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-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-class {
    max-width: 105px;
    overflow: hidden;
    color: #d0cecc;
    font-weight: bold;
    text-overflow: ellipsis;
}

.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;
}

.pagination [aria-current="page"] {
    color: #1b1107;
    background: #d0a057;
}

.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;
}

.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;
}
