* {
    box-sizing: border-box;
}

html {
    font-size: 15px;
}

body {
    font-size: 15px;
    line-height: 1.45;
}

html {
    scrollbar-color: #c7922d rgba(37, 24, 13, .72);
    scrollbar-width: thin;
}

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

::-webkit-scrollbar-track {
    background: rgba(37, 24, 13, .72);
}

::-webkit-scrollbar-thumb {
    border: 2px solid rgba(37, 24, 13, .72);
    border-radius: 999px;
    background: linear-gradient(180deg, #d8a83b, #8a571c);
}

img {
    max-width: 100%;
}

[data-reveal] {
    opacity: 1;
    transform: none;
}

[data-reveal].revealed {
    animation: reveal-in .42s ease both;
}

@keyframes reveal-in {
    from {
        opacity: .01;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    padding: 0 14px;
}

.header-container {
    width: min(1180px, 100%);
    min-height: 58px;
    padding: 6px 14px;
    gap: 16px;
}

.header-logo img {
    height: 80px;
}

.nav-list {
    gap: 7px;
}

.nav-link,
.lang-current {
    min-height: 31px;
    padding: 7px 12px;
    border-radius: 5px;
    font-size: 11px;
    letter-spacing: 0;
}

.submenu,
.lang-menu {
    top: calc(100% + 1px);
}

.site-content {
    width: min(1180px, calc(100% - 32px));
    padding-top: 14px;
}

.page-section,
.vote-page,
.account-page,
.shop-page,
.join-page,
.register-page,
.ladder-page,
.guild-page,
.reset-page,
.form-page {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 0 0 34px;
}

.page-hero,
.profile-hero,
.home-hero,
.guild-hero,
.ladder-head {
    min-height: 188px;
    padding: 28px 32px;
    border: 1px solid rgba(216, 168, 59, .48);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(54, 35, 21, .9), rgba(108, 78, 28, .66)),
        var(--hero-bg) center/cover no-repeat;
    box-shadow: 0 16px 34px rgba(37, 22, 10, .22), inset 0 1px 0 rgba(255, 244, 196, .12);
    color: #fff1ca;
    overflow: hidden;
}

.page-hero,
.profile-hero,
.ladder-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    gap: 28px;
    align-items: center;
}

.page-hero-copy,
.profile-hero-main,
.home-hero-content,
.ladder-head > div:first-child {
    min-width: 0;
}

.page-hero span,
.profile-hero span,
.home-hero span,
.auth-intro span,
.shop-offer span,
.shop-info span,
.panel-heading span,
.section-title span,
.ladder-head span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffd85c;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.page-hero h1,
.profile-hero h1,
.home-hero h1,
.auth-intro h1,
.ladder-head h1,
.content-panel h1 {
    margin: 7px 0 9px;
    color: #fff5d2;
    font-size: clamp(31px, 3vw, 44px);
    line-height: 1.04;
    letter-spacing: 0;
    text-shadow: 0 3px 12px rgba(38, 22, 10, .45);
    text-transform: uppercase;
}

.page-hero p,
.profile-hero p,
.home-hero p,
.auth-intro p,
.ladder-head p,
.content-panel p {
    margin: 0;
    max-width: 680px;
    color: rgba(255, 245, 210, .88);
    font-size: 15px;
    line-height: 1.48;
}

.page-hero-stats,
.profile-stats,
.ladder-kpi {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.page-hero-stats article,
.profile-stats article,
.ladder-kpi span,
.admin-stat {
    min-width: 0;
    min-height: 74px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 231, 161, .34);
    border-radius: 7px;
    background: rgba(255, 241, 195, .12);
    color: #fff3cb;
    display: grid;
    align-content: center;
    gap: 5px;
    overflow: hidden;
}

.page-hero-stats article span,
.profile-stats article span,
.ladder-kpi span {
    color: #ffd85c;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-hero-stats article strong,
.profile-stats article strong,
.ladder-kpi strong {
    color: #fff8de;
    font-size: 22px;
    line-height: 1.08;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.center-action {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.download-btn,
.vote-btn,
.glass-btn,
.btn-submit,
.large-btn,
.admin-button {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid rgba(92, 54, 19, .46);
    border-radius: 7px;
    background: linear-gradient(180deg, #d8a83b, #a86c1f);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 3px 0 #6f4318;
    color: #fff8dc;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
}

.glass-btn,
.vote-btn.secondary {
    background: linear-gradient(180deg, #725234, #3b291a);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 3px 0 #20140b;
}

.download-btn:hover,
.vote-btn:hover,
.glass-btn:hover,
.btn-submit:hover,
.large-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.vote-btn.disabled,
.vote-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

.home-hero {
    min-height: 320px;
    padding: 34px 42px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(43, 28, 17, .78), rgba(64, 42, 18, .32)),
        var(--hero-bg) center 38%/cover no-repeat;
}

.home-brand {
    width: 150px;
    filter: drop-shadow(0 10px 14px rgba(0,0,0,.36));
}

.home-hero h1 {
    font-size: 48px;
}

.home-actions {
    margin-top: 16px;
}

.home-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 18px 0 12px;
}

.section-title h2 {
    margin: 0;
    color: #fff5d2;
    font-size: 30px;
    line-height: 1.05;
    text-shadow: 0 3px 10px rgba(38, 22, 10, .42);
}

.section-title img {
    width: 24px;
    height: 24px;
}

.news-grid,
.shop-grid,
.download-grid,
.shop-info,
.profile-layout {
    display: grid;
    gap: 18px;
}

.news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.news-card,
.vote-card,
.shop-offer,
.profile-panel,
.shop-info article,
.download-card,
.content-panel,
.auth-card,
.ladder-container,
.guild-members {
    border: 1px solid rgba(112, 77, 36, .24);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 248, 220, .96), rgba(225, 199, 139, .96));
    box-shadow: 0 16px 34px rgba(45, 27, 11, .2);
    color: #3a2415;
}

.news-card {
    min-height: 300px;
    padding: 0;
    border: 0;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    transition: transform .2s ease, box-shadow .2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(45, 27, 11, .28);
}

.news-card img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    display: block;
}

.news-body {
    padding: 15px 16px 16px;
    display: grid;
    gap: 8px;
}

.news-body time {
    color: #765636;
    font-size: 12px;
    font-weight: 900;
}

.news-body h2 {
    margin: 0;
    color: #3a2415;
    font-size: 20px;
    line-height: 1.15;
}

.news-body p {
    min-height: 76px;
    margin: 0;
    padding: 12px;
    border-radius: 7px;
    background: rgba(58, 40, 24, .9);
    color: #fff5dc;
    font-size: 13px;
    line-height: 1.48;
}

.vote-single {
    position: relative;
    width: min(740px, 100%);
    margin: 18px auto 0;
}

.vote-card {
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255, 248, 220, .9), rgba(225, 199, 139, .9)),
        rgba(255, 245, 210, .76);
    backdrop-filter: blur(3px);
}

.vote-card-top {
    display: flex;
    gap: 16px;
    align-items: center;
}

.vote-choice-icon,
.download-icon,
.password-panel .panel-heading img {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border: 1px solid rgba(112, 77, 36, .24);
    border-radius: 8px;
    background: rgba(255,255,255,.24);
    display: grid;
    place-items: center;
}

.vote-choice-icon img,
.password-panel .panel-heading img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.vote-card-top span {
    color: #5d4129;
    font-size: 14px;
}

.vote-card h2,
.shop-offer h2,
.profile-panel h2,
.shop-info h2 {
    margin: 0;
    color: #3a2415;
    font-size: 30px;
    line-height: 1.12;
}

.vote-reward-breakdown {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.vote-reward-breakdown span {
    min-height: 66px;
    padding: 11px 12px;
    border: 1px solid rgba(112, 77, 36, .22);
    border-radius: 7px;
    background: rgba(255,255,255,.3);
    color: #765636;
    display: grid;
    gap: 4px;
    align-content: center;
    text-align: center;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.vote-reward-breakdown strong {
    color: #3a2415;
    font-size: 19px;
    font-weight: 700;
    text-transform: none;
}

.vote-card p {
    min-height: 78px;
    margin: 16px 0;
    padding: 15px 16px;
    border-radius: 7px;
    background: rgba(58, 40, 24, .92);
    color: #fff5dc;
    font-size: 14px;
}

.vote-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.vote-card-actions form,
.vote-card-actions .vote-btn {
    width: 100%;
}

.vote-single.is-locked .main-vote-card {
    filter: blur(2px);
    pointer-events: none;
}

.vote-lock {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: rgba(30, 18, 10, .7);
    color: #fff5dc;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    text-align: center;
}

.vote-lock img {
    width: 68px;
    height: 68px;
    animation: vote-spin 1.7s linear infinite;
}

@keyframes vote-spin {
    to {
        transform: rotate(360deg);
    }
}

.shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.shop-offer {
    min-height: 350px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.shop-offer img {
    width: 100px;
    height: 100px;
}

.shop-offer h2 {
    min-height: 58px;
    font-size: 27px;
}

.shop-offer p,
.shop-info p {
    margin: 0;
    padding: 14px;
    border-radius: 7px;
    background: rgba(58, 40, 24, .9);
    color: #fff5dc;
    font-size: 14px;
    line-height: 1.48;
}

.shop-offer p {
    flex: 1;
}

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

.shop-info article {
    padding: 22px;
    display: grid;
    gap: 12px;
}

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

.download-card {
    align-items: center;
}

.download-icon .ico_download::before {
    content: "\2193";
    color: #9b681f;
    font-size: 34px;
    font-weight: 900;
}

.ico_discord::before {
    content: "D";
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #fff;
    color: #5865f2;
    font-size: 12px;
    font-weight: 900;
}

.download-content {
    display: grid;
    gap: 6px;
}

.download-content strong {
    color: #3a2415;
    font-size: 22px;
    line-height: 1.1;
    text-transform: uppercase;
}

.download-content small {
    color: #765636;
    font-size: 14px;
}

.download-card em {
    grid-column: 1 / -1;
    min-height: 44px;
    border-radius: 7px;
    background: linear-gradient(180deg, #d8a83b, #a86c1f);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 3px 0 #6f4318;
    color: #fff8dc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 16px 0 18px;
}

.profile-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
}

.profile-panel {
    min-height: 340px;
    padding: 22px;
}

.panel-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.profile-characters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    max-height: 520px;
    overflow: auto;
    padding-right: 8px;
}

.profile-characters article {
    width: 100%;
    min-height: 150px;
    padding: 16px;
    border-radius: 7px;
    border: 1px solid rgba(112, 77, 36, .16);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .58), rgba(255, 243, 200, .5)),
        rgba(255,255,255,.46);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 10px 22px rgba(45, 27, 11, .13);
}

.profile-characters img {
    padding: 5px;
    border-radius: 50%;
    background: rgba(255, 248, 220, .76);
    box-shadow: inset 0 0 0 1px rgba(112, 77, 36, .12), 0 7px 16px rgba(45, 27, 11, .14);
    object-fit: contain;
}

.character-profile,
.profile-characters strong,
.profile-characters span,
.profile-characters small {
    display: block;
}

.character-profile {
    min-width: 0;
    flex: 1;
}

.profile-characters strong {
    color: #3a2415;
    font-size: 19px;
    line-height: 1.1;
}

.profile-characters span,
.profile-characters small {
    color: #765636;
    font-size: 13px;
}

.character-tags,
.character-guild {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.character-tags small,
.character-guild small {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(58, 40, 24, .88);
    color: #fff5dc;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.character-guild small:first-child {
    background: linear-gradient(180deg, #d8a83b, #a86c1f);
}

.profile-form {
    display: grid;
    gap: 12px;
}

.profile-form h1,
.form-grid h1 {
    margin: 0 0 6px;
    color: #4d351d;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0;
    text-shadow: none;
}

.profile-form input,
.blur-input,
.login-modal-panel input,
.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid rgba(92, 54, 19, .38);
    border-radius: 7px;
    background: rgba(255, 250, 232, .86);
    color: #3a2415;
    outline: none;
    font-size: 14px;
    font-weight: 700;
}

.profile-form input:focus,
.blur-input:focus,
.login-modal-panel input:focus {
    border-color: #d8a83b;
    box-shadow: 0 0 0 3px rgba(216, 168, 59, .2);
}

.auth-page {
    padding-top: 0;
}

.auth-shell {
    width: min(1040px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(340px, .9fr) minmax(460px, 1fr);
    gap: 18px;
    align-items: stretch;
}

.auth-intro {
    min-height: 500px;
    padding: 28px;
    border: 1px solid rgba(216, 168, 59, .42);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(32, 22, 13, .04), rgba(33, 23, 15, .68)),
        var(--hero-bg) center/cover no-repeat;
    color: #fff5d2;
    display: grid;
    align-content: end;
    overflow: hidden;
}

.auth-card {
    min-height: 500px;
    padding: 26px 30px;
    overflow: hidden;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.form-grid label {
    min-width: 0;
}

.captcha-field {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 154px minmax(0, 1fr);
    gap: 8px 12px;
    align-items: end;
}

.captcha-field h1 {
    grid-column: 1 / -1;
}

.captcha-image {
    height: 50px;
    border-radius: 7px;
    overflow: hidden;
    display: block;
}

.captcha-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.large-btn {
    width: min(240px, 100%);
    margin: 12px auto 0;
}

.login-modal,
.news-modal {
    position: fixed;
    inset: 0;
    z-index: 700;
    display: none;
    place-items: center;
    padding: 18px;
}

.login-modal.open,
.news-modal.open {
    display: grid;
}

.login-modal-backdrop,
.news-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 14, 8, .72);
    backdrop-filter: blur(4px);
}

.login-modal-panel,
.news-modal-panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    border: 1px solid rgba(112, 77, 36, .28);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff4ce, #ddc07c);
    box-shadow: 0 24px 60px rgba(0,0,0,.34);
}

.login-modal-panel {
    padding: 28px;
}

.login-modal-panel h2 {
    margin: 0 0 18px;
    color: #3a2415;
    font-size: 30px;
    line-height: 1.05;
    text-transform: uppercase;
}

.login-modal-panel form {
    display: grid;
    gap: 10px;
}

.login-modal-panel label {
    color: #4d351d;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.login-modal-close,
.news-modal-close,
.mobile-menu-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(92, 54, 19, .46);
    border-radius: 50%;
    background: linear-gradient(180deg, #d8a83b, #a86c1f);
    color: #fff8dc;
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
    display: grid;
    place-items: center;
}

.login-modal-close,
.news-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
}

.extra-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.news-modal-panel {
    width: min(720px, 100%);
    max-height: 86vh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.news-modal-panel > img {
    width: 100%;
    height: min(260px, 32vh);
    object-fit: cover;
}

.news-modal-body {
    overflow: auto;
    padding: 24px 28px;
}

.news-modal-body time {
    color: #765636;
    font-size: 12px;
    font-weight: 900;
}

.news-modal-body h2 {
    margin: 8px 0 14px;
    color: #3a2415;
    font-size: 30px;
    line-height: 1.1;
}

.news-modal-body div {
    padding: 16px;
    border-radius: 7px;
    background: rgba(58, 40, 24, .9);
    color: #fff5dc;
    font-size: 15px;
}

.blur-alert {
    padding: 12px 14px;
    border-radius: 7px;
    background: rgba(58, 40, 24, .92);
    color: #fff5dc;
    display: flex;
    gap: 10px;
    align-items: center;
}

.blur-alert.success {
    background: rgba(48, 95, 50, .92);
}

.blur-alert.warning {
    background: rgba(126, 74, 34, .92);
}

.blur-alert.info {
    background: rgba(58, 68, 92, .92);
}

.ladder-shell {
    display: grid;
    gap: 18px;
}

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

.tabs div {
    min-height: 52px;
    padding: 10px;
    border: 1px solid rgba(112, 77, 36, .24);
    border-radius: 7px;
    background: rgba(255, 248, 220, .92);
    color: #4d351d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.tabs div.active {
    background: linear-gradient(180deg, #d8a83b, #a86c1f);
    color: #fff8dc;
}

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

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.ladder-container,
.guild-members {
    overflow: hidden;
}

.blur-title {
    padding: 18px 20px;
    color: #3a2415;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
}

.ladder {
    width: 100%;
    border-collapse: collapse;
}

.ladder th,
.ladder td {
    padding: 13px 16px;
    border-top: 1px solid rgba(112, 77, 36, .12);
    text-align: left;
    vertical-align: middle;
}

.ladder th {
    color: #765636;
    background: rgba(255,255,255,.28);
    font-size: 12px;
    text-transform: uppercase;
}

.ladder tbody tr {
    background: rgba(255, 250, 228, .72);
}

.rank-medal,
.level-badge {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border-radius: 7px;
    background: linear-gradient(180deg, #d8a83b, #a86c1f);
    color: #fff8dc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.character-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.character-cell img {
    object-fit: contain;
}

.character-cell small {
    display: block;
    color: #765636;
    font-size: 12px;
}

.score-bar {
    display: grid;
    gap: 7px;
}

.score-bar span {
    height: 7px;
    width: min(var(--score-width), 100%);
    border-radius: 999px;
    background: linear-gradient(90deg, #d8a83b, #89a841);
}

.guild-page {
    display: grid;
    gap: 18px;
}

.guild-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.guild-emblem {
    width: 84px;
    height: 84px;
    border: 1px solid rgba(255, 231, 161, .34);
    border-radius: 8px;
    background: rgba(255, 241, 195, .12);
    color: #fff8de;
    display: grid;
    place-items: center;
    font-size: 42px;
    font-weight: 900;
}

.guild-members {
    padding-bottom: 10px;
}

.content-panel {
    padding: 24px;
}

.form-page {
    padding-top: 20px;
}

.reset-page .auth-shell {
    grid-template-columns: minmax(320px, .82fr) minmax(420px, 1fr);
}

.reset-card > h1 {
    margin: 0 0 18px;
    color: #3a2415;
    font-size: 30px;
    line-height: 1.08;
    text-transform: uppercase;
}

.reset-form {
    display: grid;
    gap: 12px;
}

.reset-form h1 {
    margin: 0 0 6px;
    color: #4d351d;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.page-hero-stats article strong {
    font-size: 20px;
    white-space: normal;
}

.guild-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0 18px;
}

.guild-stats span {
    min-height: 74px;
    padding: 13px 15px;
    border: 1px solid rgba(112, 77, 36, .24);
    border-radius: 7px;
    background: rgba(255, 248, 220, .9);
    color: #765636;
    display: grid;
    gap: 5px;
    align-content: center;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.guild-stats strong {
    color: #3a2415;
    font-size: 21px;
    line-height: 1.08;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.not-found-page .page-hero {
    min-height: 260px;
}

footer {
    margin-top: 22px;
    padding: 20px 0 12px;
}

.footer-content {
    gap: 16px;
}

.footer-description,
.copyright,
.legal,
.footer-section.links a {
    font-size: 12px;
}

@media (max-width: 1100px) {
    .page-hero,
    .profile-hero,
    .ladder-head,
    .auth-shell,
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .auth-intro,
    .auth-card {
        min-height: auto;
    }
}

@media (max-width: 860px) {
    .site-content {
        width: min(100% - 20px, 1180px);
    }

    .news-grid,
    .shop-grid,
    .shop-info,
    .download-grid,
    .tabs {
        grid-template-columns: 1fr;
    }

    .profile-stats,
    .page-hero-stats,
    .ladder-kpi,
    .guild-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .captcha-field {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    html {
        font-size: 14px;
    }

    .header-container {
        min-height: 66px;
    }

    .page-hero,
    .profile-hero,
    .home-hero,
    .guild-hero,
    .ladder-head,
    .auth-card,
    .auth-intro,
    .profile-panel,
    .vote-card,
    .shop-offer,
    .shop-info article,
    .download-card,
    .content-panel {
        padding: 18px;
    }

    .page-hero h1,
    .profile-hero h1,
    .home-hero h1,
    .auth-intro h1,
    .ladder-head h1 {
        font-size: 29px;
    }

    .profile-stats,
    .page-hero-stats,
    .ladder-kpi,
    .guild-stats,
    .vote-reward-breakdown,
    .vote-card-actions,
    .extra-buttons {
        grid-template-columns: 1fr;
    }

    .download-card {
        grid-template-columns: 1fr;
    }
}

/* VIP page */
.vip-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}

.vip-card .vote-btn,
.vip-buy-form,
.vip-buy-form .vote-btn {
    width: 100%;
}

.vip-badge {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border: 1px solid rgba(112, 77, 36, .24);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffe183, #c88628);
    color: #3a2415;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 0 rgba(82, 48, 17, .35);
}

.vip-info-card strong {
    color: #fff5d2;
}

.vip-checks {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.vip-checks span {
    padding: 12px 14px;
    border: 1px solid rgba(255, 231, 161, .28);
    border-radius: 7px;
    background: rgba(255, 241, 195, .10);
    color: #fff5d2;
    font-weight: 800;
}

@media (max-width: 860px) {
    .vip-layout {
        grid-template-columns: 1fr;
    }
}

.shop-perfect-notice {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(112, 77, 36, .24);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 248, 220, .96), rgba(225, 199, 139, .96));
    box-shadow: 0 16px 34px rgba(45, 27, 11, .2);
    color: #3a2415;
    display: grid;
    gap: 6px;
}

.shop-perfect-notice strong {
    color: #5a371c;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
}

.shop-perfect-notice span {
    font-size: 14px;
    font-weight: 700;
}

.shop-items-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-item-card h2 {
    min-height: 62px;
}

.shop-price {
    padding: 13px 14px;
    border-radius: 7px;
    background: rgba(58, 40, 24, .9);
    color: #fff5dc;
    display: grid;
    gap: 4px;
}

.shop-price small {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    opacity: .82;
}

.shop-price strong {
    font-size: 23px;
    color: #fff5dc;
}

.shop-buy-form {
    margin: 0;
}

.shop-buy-form .vote-btn {
    width: 100%;
}

@media (max-width: 860px) {
    .shop-items-grid {
        grid-template-columns: 1fr;
    }
}


/* Page Personnage / compte public et classements sans thème additionnel */
.character-page,
.account-info-page {
    display: grid;
    gap: 18px;
}

.profile-detail-hero {
    min-height: 188px;
    padding: 28px 32px;
    border: 1px solid rgba(216, 168, 59, .48);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(54, 35, 21, .9), rgba(108, 78, 28, .66)),
        var(--hero-bg) center/cover no-repeat;
    box-shadow: 0 16px 34px rgba(37, 22, 10, .22), inset 0 1px 0 rgba(255, 244, 196, .12);
    color: #fff1ca;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.profile-detail-artwork,
.account-avatar-public {
    width: 112px;
    height: 112px;
    border: 1px solid rgba(255, 231, 161, .34);
    border-radius: 8px;
    background: rgba(255, 241, 195, .12);
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}

.profile-detail-artwork img {
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(0,0,0,.30));
}

.account-avatar-public {
    color: #fff8dc;
    font-size: 44px;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-detail-copy span,
.panel-heading span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-detail-copy h1 {
    margin: 7px 0 9px;
    color: #fff5d2;
    font-size: clamp(31px, 3vw, 44px);
    line-height: 1.04;
    text-transform: uppercase;
    text-shadow: 0 3px 12px rgba(38, 22, 10, .45);
}

.profile-detail-copy p {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 245, 210, .88);
    font-size: 15px;
    line-height: 1.48;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.detail-kpis {
    margin-top: 0;
}

.detail-layout,
.account-info-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.detail-panel {
    padding: 20px;
}

.panel-heading {
    margin-bottom: 14px;
}

.panel-heading h2 {
    margin: 5px 0 0;
    color: #3a2415;
    font-size: 22px;
    line-height: 1.1;
    text-transform: uppercase;
}

.character-stats-grid,
.guild-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stat-chip,
.guild-mini-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 25px;
    padding: 4px 8px;
    border: 1px solid rgba(112, 77, 36, .22);
    border-radius: 999px;
    background: rgba(255,255,255,.30);
    color: #3a2415;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.stat-chip b {
    color: #a86c1f;
    font-weight: 900;
}

.stat-chip em {
    font-style: normal;
    font-weight: 800;
}

.stat-chip.unavailable {
    opacity: .58;
}

.detail-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.detail-stat-grid article,
.secret-question-card {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid rgba(112, 77, 36, .18);
    border-radius: 7px;
    background: rgba(255, 250, 228, .72);
    display: grid;
    gap: 5px;
}

.detail-stat-grid span,
.secret-question-card span,
.secret-question-card small {
    color: #765636;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-stat-grid strong,
.secret-question-card strong {
    min-width: 0;
    color: #3a2415;
    font-size: 16px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.account-characters-panel {
    grid-column: 1 / -1;
}

.account-character-list {
    display: grid;
    gap: 10px;
}

.account-character-list article {
    padding: 12px;
    border: 1px solid rgba(112, 77, 36, .18);
    border-radius: 7px;
    background: rgba(255, 250, 228, .72);
}

.account-character-meta {
    margin-top: 8px;
    color: #765636;
    font-size: 12px;
    font-weight: 800;
}

.account-character-meta a {
    color: #5a371c;
    text-decoration: none;
}

.character-profile {
    min-width: 0;
}

.ladder-character-compact {
    display: block;
}

.character-cell-rich .class-artwork,
.character-cell-rich .class,
.class-icon,
.class-artwork {
    border-radius: 7px;
    object-fit: contain;
    background: rgba(255,255,255,.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 18px rgba(0,0,0,.12);
}

.character-main strong {
    display: block;
    color: #3a2415;
}

.character-profile-link {
    color: inherit;
    text-decoration: none;
}


.guild-mini-stats {
    margin-top: 8px;
}

/* Pagination de 50 lignes par page, avec le thème de base */
.ladder-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(112, 77, 36, .24);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 248, 220, .96), rgba(225, 199, 139, .96));
    box-shadow: 0 10px 22px rgba(45, 27, 11, .12);
    color: #3a2415;
}

.ladder-pagination.single {
    justify-content: center;
}

.ladder-pagination > span {
    color: #765636;
    font-weight: 800;
}

.pagination-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.pagination-links a,
.pagination-links span {
    min-width: 38px;
    padding: 8px 11px;
    border-radius: 7px;
    border: 1px solid rgba(112, 77, 36, .24);
    text-align: center;
    text-decoration: none;
    font-weight: 900;
}

.pagination-links a {
    color: #4d351d;
    background: rgba(255, 248, 220, .92);
}

.pagination-links a:hover,
.pagination-links .current {
    color: #fff8dc;
    background: linear-gradient(180deg, #d8a83b, #a86c1f);
}

.pagination-links .disabled,
.pagination-links .ellipsis {
    color: rgba(77, 53, 29, .52);
    background: rgba(255,255,255,.24);
}

/* Classements centrés avec scroll horizontal propre iOS / Android */
.ladder-page {
    width: min(1100px, calc(100vw - 32px));
    margin-left: auto;
    margin-right: auto;
}

.ladder-shell,
.tab-content,
.tab-content.active,
.ladder-container {
    min-width: 0;
    max-width: 100%;
}

.ladder-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.ladder-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    scrollbar-gutter: stable;
}

.ladder-scroll:focus {
    outline: 2px solid rgba(216, 168, 59, .45);
    outline-offset: -2px;
}

.ladder-scroll .ladder {
    width: 100%;
    min-width: 760px;
}

.ladder-scroll .ladder-pvm,
.ladder-scroll .ladder-votes {
    min-width: 760px;
}

.ladder-scroll .ladder-pvp {
    min-width: 820px;
}

.ladder-scroll .ladder-guilds {
    min-width: 940px;
}

.ladder-scroll .character-cell {
    min-width: 210px;
}

.ladder-scroll .score-bar {
    min-width: 150px;
}

.ladder th,
.ladder td {
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-layout,
    .account-info-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .tabs {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        padding: 0 0 4px;
    }

    .tabs div {
        min-width: 150px;
        flex: 0 0 auto;
    }

    .ladder-page {
        width: min(100%, calc(100vw - 32px));
    }

    .ladder-container {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .ladder th,
    .ladder td {
        padding: 11px 12px;
        white-space: nowrap;
    }

    .profile-detail-hero {
        grid-template-columns: 1fr;
        padding: 18px;
        text-align: center;
    }

    .profile-detail-artwork,
    .account-avatar-public {
        margin: 0 auto;
    }

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

    .detail-stat-grid {
        grid-template-columns: 1fr;
    }

    .ladder-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .pagination-links {
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    .site-content {
        width: min(100% - 24px, 1180px);
    }

    .ladder-page {
        width: min(100%, calc(100vw - 28px));
    }

    .tabs div {
        min-width: 138px;
    }
}

/* Recherche dans les classements */
.ladder-search {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 10px;
    width: min(100%, 720px);
    margin: 14px auto 16px;
    padding: 12px;
    border: 1px solid rgba(112, 77, 36, .20);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(255, 248, 220, .82), rgba(232, 203, 139, .58));
    box-shadow: 0 10px 22px rgba(45, 27, 11, .10);
}

.ladder-search label {
    flex: 1 1 340px;
    min-width: 190px;
}

.ladder-search label span {
    display: block;
    margin-bottom: 6px;
    color: #684622;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ladder-search input[type="search"] {
    width: 100%;
    height: 42px;
    padding: 0 13px;
    border: 1px solid rgba(112, 77, 36, .28);
    border-radius: 8px;
    background: rgba(255,255,255,.84);
    color: #3a2415;
    font-weight: 800;
    outline: none;
}

.ladder-search input[type="search"]:focus {
    border-color: rgba(168, 108, 31, .72);
    box-shadow: 0 0 0 3px rgba(216, 168, 59, .22);
}

.ladder-search button,
.ladder-search-reset {
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    color: #fff8dc;
    background: linear-gradient(180deg, #d8a83b, #a86c1f);
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.ladder-search-reset {
    color: #4d351d;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(112, 77, 36, .20);
}

/* Page Personnage : stats détaillées avec noms complets */
.character-stats-container {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(112, 77, 36, .20);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 248, 220, .70), rgba(232, 203, 139, .34)),
        rgba(255,255,255,.36);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.48), 0 12px 24px rgba(45, 27, 11, .10);
}

.character-stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px 12px;
    border-bottom: 1px solid rgba(112, 77, 36, .14);
}

.character-stats-header strong {
    display: block;
    color: #3a2415;
    font-size: 15px;
    font-weight: 950;
    text-transform: uppercase;
}

.character-stats-header span,
.character-stats-header em {
    color: #75512a;
    font-size: 12px;
    font-weight: 800;
    font-style: normal;
}

.character-stats-group {
    margin-top: 14px;
}

.character-stats-group h3 {
    margin: 0 0 9px;
    color: #684622;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.character-stats-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
    gap: 10px;
}

.character-stats-detailed .stat-card {
    min-width: 0;
    min-height: 74px;
    padding: 13px 14px;
    border: 1px solid rgba(112, 77, 36, .20);
    border-radius: 9px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.72), rgba(255, 244, 206, .58)),
        rgba(255,255,255,.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 18px rgba(45, 27, 11, .10);
}

.character-stats-detailed .stat-card span {
    display: block;
    color: #75512a;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.character-stats-detailed .stat-card strong {
    display: block;
    margin-top: 7px;
    color: #3a2415;
    font-size: 20px;
    font-weight: 950;
    line-height: 1;
}

.character-stats-detailed .stat-card.unavailable {
    opacity: .6;
}

.stats-warning-note {
    display: grid;
    gap: 5px;
    margin: 0 0 12px;
    padding: 12px 14px;
    border: 1px solid rgba(112, 77, 36, .18);
    border-radius: 9px;
    background: rgba(255, 248, 220, .62);
    color: #4e3219;
}

.stats-warning-note strong {
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.stats-warning-note span {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.stats-warning-note code {
    padding: 1px 5px;
    border-radius: 5px;
    background: rgba(255,255,255,.72);
    color: #a86c1f;
    font-weight: 900;
}

.character-points-grid {
    margin-top: 12px;
}


@media (max-width: 760px) {
    .character-stats-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ladder-search {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .ladder-search label {
        flex-basis: auto;
    }

    .ladder-search button,
    .ladder-search-reset {
        width: 100%;
    }

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

@media (max-width: 430px) {
    .character-stats-detailed {
        grid-template-columns: 1fr;
    }
}
/* ==================================================
   PAGE DE TÉLÉCHARGEMENT
================================================== */

.download-section {
    width: min(1180px, calc(100% - 40px));
    margin: 60px auto 0;
}

.download-section-heading {
    max-width: 720px;
    margin-bottom: 32px;
}

.download-section-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    color: var(--primary-color, #ff9e2a);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.download-section-heading h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.1;
}

.download-section-heading p {
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 1rem;
    line-height: 1.7;
}

/* ==================================================
   GRILLE
================================================== */

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

/* ==================================================
   CARTE
================================================== */

.download-card {
    position: relative;
    display: flex;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(14px);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.download-card::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.06),
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}

.download-card:hover {
    z-index: 2;
    color: #3a2415;
    text-decoration: none;
    border-color: rgba(255, 158, 42, 0.55);
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.35),
        0 0 35px rgba(255, 158, 42, 0.1);
    transform: translateY(-7px);
}

.download-card:hover::before {
    opacity: 1;
}

.download-card.is-recommended {
    border-color: rgba(255, 158, 42, 0.4);
    
}

/* ==================================================
   BADGE RECOMMANDÉ
================================================== */

.download-recommended {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    padding: 7px 11px;
    color: #171717;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffb84d, #ff8b1f);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(255, 139, 31, 0.25);
}

/* ==================================================
   ICÔNES
================================================== */

.download-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.download-platform-icon,
.download-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.download-platform-icon {
    width: 68px;
    height: 68px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.download-platform-icon svg {
    width: 34px;
    height: 34px;
    fill: #3a2415;
}

.download-file-icon {
    width: 42px;
    height: 42px;
    margin-right: 4px;
    color: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.download-file-icon--exe {
    color: #ffad43;
}

.download-file-icon--archive {
    color: #8fd7a8;
}

/* ==================================================
   CONTENU
================================================== */

.download-card-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.download-card-title {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.download-card-title strong {
    color: #3a2415;
    font-size: 1.35rem;
    line-height: 1.2;
}

.download-format {
    display: inline-flex;
    padding: 4px 8px;
    color: #ffffff;
    font-family: monospace;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #3a2415;
    border-radius: 7px;
}

.download-platform {
    display: block;
    margin-top: 7px;
    color: var(--primary-color, #ff9e2a);
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.download-card-content p {
    margin: 13px 0 0;
    color: #3a2415;
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ==================================================
   PIED DE CARTE
================================================== */

.download-card-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 22px;
    padding-right: 20px;
    margin-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.download-action {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    color: #3a2415;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.download-action svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.download-arrow {
    color: var(--primary-color, #ff9e2a);
    font-size: 1.5rem;
    line-height: 1;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.download-card:hover .download-arrow {
    color: var(--primary-color, #ff9e2a);
    transform: translateX(5px);
}

/* ==================================================
   ADOBE AIR
================================================== */

.download-requirements {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    margin-top: 22px;
    background: linear-gradient(180deg, rgba(255, 248, 220, .96), rgba(225, 199, 139, .96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

.download-requirements-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #ff9e2a);
    background: rgba(255, 158, 42, 0.1);
    border: 1px solid rgba(255, 158, 42, 0.2);
    border-radius: 14px;
}

.download-requirements-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.download-requirements-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.download-requirements-content strong {
    margin-bottom: 4px;
    color: #3a2415;
    font-size: 1rem;
}

.download-requirements-content span {
    color: #3a2415;
    font-size: 0.85rem;
}

.download-requirements-button {
    display: inline-flex;
    gap: 9px;
    min-height: 44px;
    padding: 0 17px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #171717;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffb84d, #ff8b1f);
    border-radius: 11px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.download-requirements-button:hover {
    color: #171717;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(255, 139, 31, 0.25);
    transform: translateY(-2px);
}

.download-requirements-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 800px) {
    .download-section {
        width: min(100% - 28px, 620px);
        margin-top: 40px;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .download-card {
        min-height: 260px;
    }

    .download-requirements {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .download-requirements-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .download-card {
        padding: 21px;
        border-radius: 16px;
    }

    .download-platform-icon {
        width: 58px;
        height: 58px;
        border-radius: 15px;
    }

    .download-platform-icon svg {
        width: 29px;
        height: 29px;
    }

    .download-recommended {
        top: 14px;
        right: 14px;
        font-size: 0.6rem;
    }

    .download-card-title strong {
        font-size: 1.16rem;
    }

    .download-requirements {
        padding: 19px;
    }
}
.cms-counters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 14px;
    width: 100%;
}

.cms-counter-card {
    padding: 18px;
    border: 1px solid rgba(250, 215, 139, .58);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(74, 56, 34, .94), rgba(34, 30, 22, .96));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.cms-counter-card span {
    display: block;
    margin-bottom: 8px;
    color: #f6e6b8;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cms-counter-card strong {
    color: #f6e6b8;
    font-size: 28px;
    line-height: 1;
}

.cms-counters-error {
    padding: 12px 16px;
    border: 1px solid #cf5b5b;
    border-radius: 8px;
    background: #3b2020;
    color: #ffffff;
}

/* Deux plateformes de vote indépendantes */
.vote-platform-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
    align-items: stretch;
}

.vote-platform-grid .vote-single {
    width: 100%;
    margin: 0;
    height: 100%;
}

.vote-platform-grid .vote-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vote-platform-grid .vote-card p {
    flex: 1;
}

.vote-reward-total {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 7px;
    background: rgba(58, 40, 24, .92);
    color: #fff5dc;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.rpg-vote-widget {
    display: block;
    width: min(100%, 320px);
    margin: 14px auto 4px;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
}

.rpg-vote-widget img {
    display: block;
    width: 100%;
    height: auto;
}

.vote-pending-note {
    display: block;
    margin-top: 12px;
    color: #684a2d;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.vote-vip-action {
    margin-top: 18px;
}

@media (max-width: 980px) {
    .vote-platform-grid {
        grid-template-columns: 1fr;
    }
}

/* Avatars, alignements, profil et retours de connexion */
.profile-hero-composed {
    position: relative;
}

.profile-hero-composed .profile-hero {
    padding-left: 166px;
}

.profile-avatar-large {
    position: absolute;
    z-index: 2;
    left: 28px;
    top: 50%;
    width: 112px;
    height: 112px;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 3px solid rgba(255, 234, 168, .82);
    background: rgba(255,255,255,.18);
    box-shadow: 0 14px 30px rgba(37, 22, 10, .32);
    overflow: hidden;
}

.profile-avatar-large img,
.account-avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-avatar-image {
    overflow: hidden;
    padding: 0;
}

.profile-global-message {
    margin-top: 16px;
}

.profile-tools-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.characters-panel-wide {
    grid-column: 1 / -1;
}

.avatar-panel,
.debug-map-panel,
.password-panel {
    min-height: 100%;
}

.avatar-editor {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.avatar-editor > img {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(168, 108, 31, .48);
    box-shadow: 0 12px 26px rgba(45, 27, 11, .18);
}

.compact-form label,
.compact-form label > span {
    display: grid;
    gap: 7px;
    color: #4d351d;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.compact-form small {
    color: #765636;
    line-height: 1.45;
}

.profile-form select,
.profile-form input[type="file"] {
    width: 100%;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid rgba(92, 54, 19, .38);
    border-radius: 7px;
    background: rgba(255, 250, 232, .92);
    color: #3a2415;
    font-weight: 700;
}

.debug-map-panel > p {
    margin: 0 0 16px;
    color: #765636;
    line-height: 1.55;
}

.debug-map-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.debug-map-values span {
    padding: 10px;
    border-radius: 7px;
    background: rgba(58, 40, 24, .08);
    color: #765636;
    text-align: center;
    font-size: 12px;
}

.debug-map-values strong {
    display: block;
    margin-top: 3px;
    color: #3a2415;
    font-size: 17px;
}

.alignment-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
    padding: 6px 10px;
    border: 1px solid rgba(112, 77, 36, .18);
    border-radius: 999px;
    background: rgba(255, 248, 220, .8);
    color: #4d351d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.alignment-badge.compact {
    margin-top: 7px;
    padding: 4px 7px;
}

.alignment-badge img,
.profile-characters .alignment-badge img {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
}

.vote-account-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.vote-account-cell img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(168, 108, 31, .34);
    background: rgba(255,255,255,.65);
}

.last-vote-date {
    display: inline-block;
    min-width: 126px;
    color: #765636;
    font-weight: 800;
    white-space: nowrap;
}

.auth-feedback-page,
.auth-redirect {
    min-height: 56vh;
    display: grid;
    place-items: center;
    padding: 36px 18px;
}

.auth-feedback-card,
.auth-state-card {
    width: min(560px, 100%);
    padding: 34px;
    border: 1px solid rgba(216, 168, 59, .45);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 251, 235, .96), rgba(245, 228, 185, .94));
    box-shadow: 0 22px 54px rgba(37, 22, 10, .28), inset 0 1px 0 rgba(255,255,255,.82);
    text-align: center;
}

.auth-feedback-icon,
.auth-state-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #d8a83b, #9f681f);
    color: #fff8dc;
    font-size: 32px;
    box-shadow: 0 12px 24px rgba(112, 70, 20, .28);
}

.auth-feedback-card h1,
.auth-state-card h1 {
    margin: 0 0 10px;
    color: #3a2415;
    font-size: clamp(28px, 5vw, 42px);
}

.auth-feedback-card p,
.auth-state-card p {
    margin: 0 auto 20px;
    color: #765636;
    line-height: 1.6;
}

.auth-feedback-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(58, 40, 24, .08);
    color: #5c4328;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 760px) {
    .profile-hero-composed .profile-hero {
        padding-left: 24px;
        padding-top: 144px;
    }

    .profile-avatar-large {
        left: 50%;
        top: 20px;
        transform: translateX(-50%);
    }

    .profile-tools-layout {
        grid-template-columns: 1fr;
    }

    .characters-panel-wide {
        grid-column: auto;
    }

    .avatar-editor {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .avatar-editor .profile-form {
        width: 100%;
    }

    .debug-map-values {
        grid-template-columns: 1fr;
    }
}

.ladder-scroll .ladder-votes {
    min-width: 940px;
}
