﻿:root {
    --accent: #e8a030;
    --accent-dark: #c07820;
    --bg-primary: #070a12;
    --bg-secondary: #0b0f1a;
    --bg-card: #0d1122;
    --bg-card-hover: #131829;
    --border-color: rgba(232, 160, 48, 0.15);
    --text-main: #b8ccda;
    --text-muted: #4a5c6e;
    --text-bright: #ffffff;
    --mode-color: #e8a030;
    --mode-color-rgb: 232, 160, 48;
    --mode-glow: rgba(232, 160, 48, 0.12);
    --fk-color: #9b3fd4;
    --mc-color: #00d97e;
    --ctf-color: #e63946;
}


body.theme-fk {
    --mode-color: #9b3fd4;
    --mode-color-rgb: 155, 63, 212;
    --mode-glow: rgba(155, 63, 212, 0.15);
    --accent: #c97ef0;
}
body.theme-mc {
    --mode-color: #00d97e;
    --mode-color-rgb: 0, 217, 126;
    --mode-glow: rgba(0, 217, 126, 0.15);
    --accent: #00d97e;
}
body.theme-ctf {
    --mode-color: #e63946;
    --mode-color-rgb: 230, 57, 70;
    --mode-glow: rgba(230, 57, 70, 0.15);
    --accent: #e63946;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: #070a12;
    overflow-x: hidden;
}

body {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    background:
        radial-gradient(1000px 420px at 50% -8%, rgba(var(--mode-color-rgb), 0.2) 0%, rgba(7, 10, 18, 0) 70%),
        radial-gradient(700px 360px at 8% 24%, rgba(120, 98, 255, 0.11) 0%, rgba(7, 10, 18, 0) 70%),
        radial-gradient(700px 360px at 92% 38%, rgba(0, 217, 126, 0.09) 0%, rgba(7, 10, 18, 0) 72%),
        linear-gradient(180deg, #050812 0%, #070a12 48%, #090d1a 100%);
    color: var(--text-main);
    min-height: 100vh;
    transition: --mode-color 0.6s ease;
    overflow-x: hidden;
}

body::after {
    content: '';
    position: fixed;
    inset: -20% -10%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(500px 300px at 18% 70%, rgba(90, 123, 255, 0.11), transparent 70%),
        radial-gradient(480px 280px at 78% 82%, rgba(230, 57, 70, 0.08), transparent 72%),
        radial-gradient(600px 320px at 52% 18%, rgba(var(--mode-color-rgb), 0.14), transparent 76%);
    animation: ambiance 16s ease-in-out infinite alternate;
}

@keyframes ambiance {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-14px) scale(1.03); }
    100% { transform: translateY(12px) scale(1.01); }
}


.navbar {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1080px;
    z-index: 100;
    background: linear-gradient(180deg, rgba(6, 9, 18, 0.78) 0%, rgba(7, 10, 18, 0.58) 100%);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 20px;
    box-shadow: 0 14px 52px rgba(0,0,0,0.32);
    transition: box-shadow 0.3s ease, border-color 0.35s ease, background 0.3s, transform 0.25s ease;
}

.navbar:hover {
    border-color: rgba(var(--mode-color-rgb), 0.28);
    box-shadow: 0 20px 64px rgba(0,0,0,0.38), 0 0 0 1px rgba(var(--mode-color-rgb), 0.08);
    background: linear-gradient(180deg, rgba(7, 10, 18, 0.84) 0%, rgba(8, 11, 20, 0.64) 100%);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo img {
    height: 42px;
    width: auto;
    animation: logoFlotte 3.5s ease-in-out infinite;
}

@keyframes logoFlotte {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    font-family: 'Oxanium', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    color: #c7d4df;
    padding: 8px 14px;
    border-radius: 10px;
    transition: color 0.2s, background 0.18s, box-shadow 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    background: rgba(var(--mode-color-rgb), 0.14);
    box-shadow: inset 0 0 0 1px rgba(var(--mode-color-rgb), 0.16);
}

.nav-separator {
    width: 1px;
    height: 20px;
    background: var(--border-color);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-menu {
    display: none;
    position: fixed;
    top: 96px;
    left: 16px;
    right: 16px;
    background: rgba(7, 10, 18, 0.74);
    backdrop-filter: blur(16px) saturate(125%);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 20px 24px;
    z-index: 99;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    flex-direction: column;
    gap: 4px;
}

.nav-mobile-menu.open {
    display: flex;
}

.nav-mobile-menu a {
    font-family: 'Oxanium', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    color: #c7d4df;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.2s;
}

.nav-mobile-menu a:hover,
.nav-mobile-menu a.active {
    color: var(--accent);
}

.nav-mobile-menu .mobile-auth-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.nav-mobile-menu .mobile-auth-row a {
    flex: 1;
    text-align: center;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
}

.nav-mobile-menu .mobile-auth-row .btn-login {
    border: 1px solid rgba(255,255,255,0.12);
}

.nav-mobile-menu .mobile-auth-row .btn-register {
    background: var(--accent);
    color: #001a24;
    font-weight: 700;
}

.nav-auth a {
    font-family: 'Oxanium', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 10px;
    transition: all 0.2s;
}

.btn-login,
.btn-register {
    font-family: 'Oxanium', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 10px;
    transition: all 0.2s;
    display: inline-block;
}

.btn-login {
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.08);
}
.btn-login:hover {
    color: var(--text-main);
    border-color: rgba(255,255,255,0.2);
}

.btn-register {
    background: var(--accent);
    color: #0f0800;
    font-weight: 700;
    border: none;
}
.btn-register:hover {
    background: var(--accent-dark);
}

.nav-player {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 4px 10px 4px 4px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: border-color 0.2s;
}
.nav-player:hover {
    border-color: rgba(255,255,255,0.2);
}
.nav-player-avatar {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    image-rendering: pixelated;
    display: block;
}
.nav-player-name {
    font-family: 'Oxanium', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-main);
}

.btn-logout-nav {
    font-family: 'Oxanium', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 80, 60, 0.3);
    color: #ff6b5a;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-logout-nav:hover {
    background: rgba(255, 80, 60, 0.12);
    border-color: rgba(255, 80, 60, 0.6);
}
.btn-logout-nav.mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    justify-content: center;
}

main {
    padding-top: 82px;
    position: relative;
    z-index: 1;
}

body:not(.page-ready):not(.page-leaving) main {
    opacity: 0;
    transform: translateY(20px) scale(0.992);
}

body.page-ready main {
    animation: pageIn 0.55s ease-out forwards;
}

body.page-leaving main {
    animation: pageOut 0.26s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(20px) scale(0.992); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pageOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(12px) scale(0.996); }
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 90px 24px 72px;
    text-align: center;
    position: relative;
    overflow: visible;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -190px;
    left: -12%;
    right: -12%;
    height: 430px;
    background: radial-gradient(ellipse 60% 78% at 50% 80%, rgba(var(--mode-color-rgb), 0.28) 0%, rgba(232, 160, 48, 0.11) 34%, rgba(7, 10, 18, 0) 82%);
    filter: blur(24px);
    pointer-events: none;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-bg-glow {
    position: absolute;
    inset: -210px -8% -92px;
    background: radial-gradient(ellipse 62% 60% at 50% 24%, rgba(var(--mode-color-rgb), 0.3) 0%, rgba(232, 160, 48, 0.1) 32%, rgba(7, 10, 18, 0) 80%);
    transition: background 0.8s ease, opacity 0.6s ease;
    pointer-events: none;
    filter: blur(28px);
    opacity: 1;
    z-index: 0;
}

.hero-tag {
    font-family: 'Oxanium', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    opacity: 0.88;
    transition: color 0.5s ease;
}

.hero-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(68px, 10vw, 120px);
    font-weight: 800;
    letter-spacing: -4px;
    line-height: 0.94;
    color: var(--text-bright);
    text-shadow: 0 0 90px rgba(var(--mode-color-rgb), 0.24);
    transition: text-shadow 0.8s ease;
    margin-bottom: 18px;

}

.hero-word {
    display: inline-block;
    opacity: 0;
    color: #fff;
    transition: color 0.5s ease;
}

.hero-word-mc {
    color: var(--accent);
    transition: color 0.5s ease;
}

@keyframes hero-word-in {
    0%   { opacity: 0; transform: translateY(40px) scale(0.92); filter: blur(14px); }
    60%  { filter: blur(0); }
    100% { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
}

@keyframes hero-word-mc-in {
    0%   { opacity: 0; transform: translateY(40px) scale(0.92); filter: blur(14px); }
    60%  { filter: blur(0); }
    100% { opacity: 0.8; transform: translateY(0)    scale(1);    filter: blur(0); }
}

@keyframes mc-glow-pulse {
    0%, 100% { text-shadow: 0 0 14px rgba(232,160,48,0.18), 0 0 30px rgba(232,160,48,0.07); }
    50%       { text-shadow: 0 0 24px rgba(232,160,48,0.45), 0 0 50px rgba(232,160,48,0.2), 0 0 80px rgba(232,160,48,0.08); }
}

@keyframes hero-tag-in {
    0%   { opacity: 0; transform: translateY(14px); letter-spacing: 6px; }
    100% { opacity: 1; transform: translateY(0);    letter-spacing: 3px; }
}

body.page-ready .hero-tag {
    animation: hero-tag-in 0.9s ease-out 0.12s forwards;
}

body.page-ready .hero-word:nth-child(1) {
    animation: hero-word-in 1s ease-out 0.32s forwards;
}

body.page-ready .hero-word-mc {
    animation:
        hero-word-mc-in 1s ease-out 0.58s forwards,
        mc-glow-pulse 2.8s ease-in-out 1.65s infinite;
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(213, 223, 231, 0.72);
    max-width: 760px;
    line-height: 1.8;
    margin: 32px auto 18px;
    text-align: center;
    white-space: normal;
}

.server-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 800px;
    margin: 28px auto 16px;
    background:
        radial-gradient(120% 150% at 0% 0%, rgba(var(--mode-color-rgb), 0.13) 0%, rgba(14, 19, 34, 0) 48%),
        linear-gradient(135deg, rgba(16, 22, 38, 0.96) 0%, rgba(9, 13, 25, 0.86) 100%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 30px;
    padding: 14px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    transition: border-color 0.45s ease, box-shadow 0.45s ease, transform 0.3s ease;
    box-shadow: 0 24px 48px rgba(0,0,0,0.28);
}

.server-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 14%, rgba(255,255,255,0.12) 40%, rgba(var(--mode-color-rgb), 0.16) 52%, transparent 82%);
    transform: translateX(-72%);
    opacity: 0;
    transition: transform 0.72s ease, opacity 0.4s ease;
    pointer-events: none;
}

.server-block::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 29px;
    border: 1px solid rgba(255,255,255,0.04);
    pointer-events: none;
}

.server-block:hover {
    border-color: rgba(var(--mode-color-rgb), 0.45);
    box-shadow: 0 30px 70px rgba(0,0,0,0.34), 0 0 46px rgba(var(--mode-color-rgb), 0.16);
    transform: translateY(-3px);
}

.server-block:hover::before {
    transform: translateX(72%);
    opacity: 1;
}

.server-ip-section,
.server-players-section {
    padding: 18px 22px;
}

.server-ip-section {
    border-right: none;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.server-label {
    font-family: 'Oxanium', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(162, 179, 197, 0.75);
}

.server-ip {
    font-family: 'Oxanium', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: #f6c15a;
    transition: color 0.5s ease;
    text-shadow: 0 0 24px rgba(var(--mode-color-rgb), 0.2);
    min-height: 1.2em;
}

.type-cursor {
    display: inline-block;
    width: 2px;
    height: 0.85em;
    background: #f6c15a;
    margin-left: 3px;
    vertical-align: middle;
    border-radius: 1px;
    animation: type-blink 0.8s step-end infinite;
    position: relative;
    top: -1px;
}

@keyframes type-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.server-players {
    font-family: 'Oxanium', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-bright);
}

.server-players .max {
    color: var(--text-muted);
    font-weight: 400;
}

.btn-join {
    font-family: 'Oxanium', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 18px 34px;
    background: linear-gradient(135deg, #f9c44d 0%, #e5a72a 55%, #cf8b15 100%);
    color: #130c02;
    border-radius: 20px;
    border: 1px solid rgba(255, 224, 136, 0.4);
    transition: transform 0.22s ease, box-shadow 0.3s ease, filter 0.2s ease;
    white-space: nowrap;
    margin-right: 0;
    box-shadow: 0 14px 30px rgba(222, 162, 39, 0.28);
    position: relative;
    z-index: 1;
}

.btn-join:hover {
    transform: translateY(-2px) scale(1.01);
    filter: brightness(1.04);
    box-shadow: 0 18px 36px rgba(222, 162, 39, 0.34), 0 0 32px rgba(232, 160, 48, 0.24);
}

.hero-shortcuts {
    width: 100%;
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 auto 34px;
}

.section-logo-divider {
    display: flex;
    justify-content: center;
    padding: 20px 0 0;
}

.section-logo-divider img {
    height: 240px;
    width: auto;
    opacity: 0.9;
    animation: logoFlotte 3.5s ease-in-out infinite;
}

.hero-shortcut-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 64px;
    border-radius: 18px;
    text-decoration: none;
    font-family: 'Oxanium', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    border: 1px solid transparent;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 34px rgba(0,0,0,0.16);
}

.hero-shortcut-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 45%);
    opacity: 0.7;
    pointer-events: none;
}

.hero-shortcut-btn i {
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.hero-shortcut-btn:nth-child(1) {
    background: linear-gradient(135deg, rgba(88, 47, 0, 0.78) 0%, rgba(42, 25, 5, 0.9) 100%);
    border-color: rgba(232, 160, 48, 0.25);
    color: #ffd598;
}

.hero-shortcut-btn:nth-child(2) {
    background: linear-gradient(135deg, rgba(8, 72, 38, 0.8) 0%, rgba(6, 29, 18, 0.92) 100%);
    border-color: rgba(0, 217, 126, 0.25);
    color: #89ffcc;
}

.hero-shortcut-btn:nth-child(3) {
    background: linear-gradient(135deg, rgba(92, 70, 12, 0.78) 0%, rgba(34, 26, 8, 0.92) 100%);
    border-color: rgba(232, 194, 74, 0.3);
    color: #ffe28b;
}

.hero-shortcut-btn:hover {
    transform: translateY(-4px);
    filter: brightness(1.07);
}

.hero-shortcut-btn:nth-child(1):hover {
    border-color: rgba(232, 160, 48, 0.55);
    box-shadow: 0 16px 30px rgba(232, 160, 48, 0.18);
}

.hero-shortcut-btn:nth-child(2):hover {
    border-color: rgba(0, 217, 126, 0.55);
    box-shadow: 0 16px 30px rgba(0, 217, 126, 0.18);
}

.hero-shortcut-btn:nth-child(3):hover {
    border-color: rgba(232, 194, 74, 0.55);
    box-shadow: 0 16px 30px rgba(232, 194, 74, 0.16);
}


.section-badge {
    display: table;
    margin: 0 auto 18px;
    font-family: 'Oxanium', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(232, 160, 48, 0.1);
    border: 1px solid rgba(232, 160, 48, 0.25);
    border-radius: 50px;
    padding: 5px 14px;
    transition: color 0.5s ease, background 0.5s ease, border-color 0.5s ease;
}

body.theme-fk .section-badge {
    color: #c97ef0;
    background: rgba(155, 63, 212, 0.1);
    border-color: rgba(155, 63, 212, 0.25);
}
body.theme-mc .section-badge {
    color: #00d97e;
    background: rgba(0, 217, 126, 0.1);
    border-color: rgba(0, 217, 126, 0.25);
}
body.theme-ctf .section-badge {
    color: #e63946;
    background: rgba(230, 57, 70, 0.1);
    border-color: rgba(230, 57, 70, 0.25);
}


.hero-bento {
    display: grid;
    grid-template-columns: 1fr 200px;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 820px;
    margin: 0 auto 32px;
    text-align: left;
}

.bento-card {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.07);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    display: block;
}

.bento-card:hover {
    transform: translateY(-4px);
}


.bento-play {
    grid-column: 1;
    grid-row: 1 / 4;
    position: relative;
    background: linear-gradient(135deg, #0d1122 0%, #111828 100%);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 240px;
}

.bento-play-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(var(--mode-color-rgb), 0.18) 0%, transparent 55%),
                radial-gradient(ellipse at 20% 80%, rgba(var(--mode-color-rgb), 0.08) 0%, transparent 50%);
    transition: background 0.7s ease;
    pointer-events: none;
}

.bento-play:hover {
    border-color: rgba(var(--mode-color-rgb), 0.3);
    box-shadow: 0 20px 60px rgba(var(--mode-color-rgb), 0.12);
}

.bento-play-label {
    font-family: 'Oxanium', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.5s ease;
}

.bento-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #4ade80;
    font-family: 'Oxanium', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    margin-left: auto;
}

.bento-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    animation: livePulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes livePulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    60% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.bento-play-title {
    font-family: 'Oxanium', sans-serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 8px;
}

.bento-play-ip {
    font-family: 'Oxanium', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.bento-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Oxanium', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: var(--accent);
    color: #0f0800;
    padding: 12px 22px;
    border-radius: 12px;
    width: fit-content;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.bento-play:hover .bento-join-btn {
    background: var(--accent-dark);
    box-shadow: 0 6px 20px rgba(var(--mode-color-rgb), 0.35);
}


.bento-side {
    grid-column: 2;
    grid-row: 1 / 4;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bento-small {
    flex: 1;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.07);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 18px 16px;
    position: relative;
}

.bento-small:hover {
    transform: translateY(-3px);
}

.bento-small-icon {
    font-size: 22px;
    margin-bottom: 8px;
    position: relative;
}

.bento-small-name {
    font-family: 'Oxanium', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1;
    margin-bottom: 3px;
}

.bento-small-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    display: block;
    line-height: 1.3;
}

.bento-discord {
    background: linear-gradient(135deg, #2a2f6b 0%, #1e2347 100%);
    border-color: rgba(88, 101, 242, 0.3);
}
.bento-discord:hover {
    border-color: rgba(88, 101, 242, 0.6);
    box-shadow: 0 12px 36px rgba(88, 101, 242, 0.18);
}
.bento-discord .bento-small-icon { color: #7289da; }

.bento-shop {
    background: linear-gradient(135deg, #2a1a06 0%, #1e1208 100%);
    border-color: rgba(232, 160, 48, 0.2);
}
.bento-shop:hover {
    border-color: rgba(232, 160, 48, 0.5);
    box-shadow: 0 12px 36px rgba(232, 160, 48, 0.12);
}
.bento-shop .bento-small-icon { color: #e8a030; }

.bento-vote {
    background: linear-gradient(135deg, #072a15 0%, #061a0e 100%);
    border-color: rgba(0, 217, 126, 0.2);
}
.bento-vote:hover {
    border-color: rgba(0, 217, 126, 0.5);
    box-shadow: 0 12px 36px rgba(0, 217, 126, 0.12);
}
.bento-vote .bento-small-icon { color: #00d97e; }


.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 760px;
    margin-bottom: 24px;
}

.stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
    transition: border-color 0.5s ease;
}

.stat-number {
    font-family: 'Oxanium', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--accent);
    transition: color 0.5s ease;
    display: block;
}

.stat-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}


.section-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(34px, 4.8vw, 58px);
    font-weight: 800;
    letter-spacing: -2px;
    text-align: center;
    color: var(--text-bright);
    margin-bottom: 14px;

}

.section-title span {
    color: var(--accent);
    transition: color 0.5s ease;
}

.section-subtitle {
    text-align: center;
    color: rgba(202, 214, 224, 0.64);
    font-size: 17px;
    margin-bottom: 58px;

}

.section-divider {
    width: 48px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 16px;
    transition: background 0.5s ease;
}

.reveal-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.modes-section {
    position: relative;
    padding: 0 24px 30px;
    max-width: 1200px;
    margin: 0 auto 0;
    overflow: visible;
}

.modes-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: radial-gradient(ellipse 58% 72% at 50% 0%, rgba(var(--mode-color-rgb), 0.14) 0%, rgba(7, 10, 18, 0) 74%);
    filter: blur(28px);
    pointer-events: none;
    z-index: 0;
}

.modes-hint {
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 14px;
}

.modes-hint strong {
    color: rgba(255,255,255,0.65);
    font-weight: 600;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 2px;
    position: relative;
    z-index: 2;
}

.modes-grid {
    perspective: 1200px;
}

.mode-card {
    position: relative;
    z-index: 2;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s ease,
                box-shadow 0.4s ease,
                filter 0.4s ease,
                opacity 0.4s ease;
    aspect-ratio: 3/4;
    background: var(--bg-card);
    transform-style: preserve-3d;
}

.mode-card-shine {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255,255,255,0.14) 0%, transparent 60%);
}

.mode-card:hover .mode-card-shine {
    opacity: 1;
}

.mode-card:hover {
    transform: scale(1.06) translateY(-8px);
}


.modes-grid.has-hover .mode-card:not(.is-hovered) {
    transform: scale(0.93) translateY(4px);
    filter: brightness(0.5) blur(0.5px);
    opacity: 0.7;
}
.modes-grid.has-hover .mode-card.is-hovered {
    transform: scale(1.07) translateY(-10px);
    z-index: 2;
}

.mode-card.fk-card {
    --card-color: #9b3fd4;
    --card-color-rgb: 155, 63, 212;
}
.mode-card.mc-card {
    --card-color: #00d97e;
    --card-color-rgb: 0, 217, 126;
}
.mode-card.ctf-card {
    --card-color: #e63946;
    --card-color-rgb: 230, 57, 70;
}

.mode-card:hover {
    border-color: var(--card-color);
    box-shadow: 0 12px 48px rgba(var(--card-color-rgb), 0.3),
                0 0 0 1px rgba(var(--card-color-rgb), 0.2);
}

.mode-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease, opacity 0.4s ease;
    opacity: 0.75;
}

.mode-card:hover .mode-card-bg {
    transform: scale(1.08);
    opacity: 0.65;
}

.mode-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary) 30%, transparent 70%);
}


.mode-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px;
}

.mode-card-tag {
    font-family: 'Oxanium', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--card-color);
    margin-bottom: 8px;
    display: block;
}

.mode-card-title {
    font-family: 'Oxanium', sans-serif;
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 900;
    color: var(--text-bright);
    line-height: 1.1;
    margin-bottom: 10px;
}

.mode-card-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    line-height: 1.55;
    margin-bottom: 16px;
}

.mode-card-cta {
    font-family: 'Oxanium', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--card-color);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}

.mode-card:hover .mode-card-cta {
    opacity: 1;
    transform: translateY(0);
}

.mode-card-cta::after {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--card-color);
    transition: width 0.3s ease;
}

.mode-card:hover .mode-card-cta::after {
    width: 32px;
}


.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid rgba(var(--modal-color-rgb, 245, 166, 35), 0.3);
    border-radius: 16px;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: scale(0.94) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.modal-overlay.open .modal-box {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.modal-close:hover {
    background: rgba(255,255,255,0.12);
    color: var(--text-bright);
}

.modal-logo {
    position: absolute;
    top: 6px;
    right: 60px;
    height: 140px;
    width: auto;
    opacity: 0.9;
    animation: logoFlotte 3.5s ease-in-out infinite;
}

.modal-header {
    margin-bottom: 32px;
}

.modal-tag {
    font-family: 'Oxanium', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.modal-title {
    font-family: 'Oxanium', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--text-bright);
    line-height: 1.1;
}

.modal-divider {
    height: 2px;
    width: 60px;
    margin-top: 14px;
    border-radius: 2px;
}

.modal-body p {
    font-size: 16px;
    color: rgba(255,255,255,0.88);
    line-height: 1.75;
    margin-bottom: 16px;
}

.modal-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
}

.modal-feature {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 14px;
    color: rgba(255,255,255,0.82);
    border-left: 3px solid;
    line-height: 1.55;
}

.modal-feature strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

.modal-phases {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phase-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 14px 16px;
}

.phase-num {
    font-family: 'Oxanium', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.phase-text strong {
    font-size: 15px;
    color: var(--text-bright);
    display: block;
    margin-bottom: 5px;
}

.phase-text span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.55;
}

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

.class-card {
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 10px 12px;
}

.class-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    font-family: 'Oxanium', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.class-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}


.features-section {
    padding: 0 24px 40px;
    margin-top: 0;
    background: transparent;
    position: relative;
}

.features-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 18px;
    position: relative;
    z-index: 1;
}

.feature-card--community {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 32px 40px;
    border-color: rgba(232, 160, 48, 0.18);
}

.community-left {
    flex-shrink: 0;
    min-width: 220px;
    padding-right: 40px;
}

.community-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.09);
    flex-shrink: 0;
    margin-right: 40px;
}

.feature-card--community .feature-desc {
    flex: 1;
}

.feature-card {
    background: linear-gradient(180deg, rgba(13, 18, 34, 0.94) 0%, rgba(9, 13, 24, 0.98) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 34px 26px;
    transition: border-color 0.32s ease, transform 0.32s ease, box-shadow 0.32s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0,0,0,0.18);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 0%, rgba(var(--mode-color-rgb), 0.12) 0%, transparent 42%),
        linear-gradient(135deg, rgba(255,255,255,0.05), transparent 44%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover {
    border-color: rgba(var(--mode-color-rgb), 0.34);
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(0,0,0,0.24), 0 0 34px rgba(var(--mode-color-rgb), 0.08);
}

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

.feature-icon {
    font-size: 28px;
    margin-bottom: 18px;
}

.feature-title {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 12px;
    text-transform: none;
    letter-spacing: -0.6px;
}

.feature-desc {
    font-size: 15px;
    color: rgba(204, 214, 224, 0.66);
    line-height: 1.72;
}


.cta-section {
    padding: 20px 24px 98px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}


.cta-banner {
    background: linear-gradient(180deg, rgba(12, 17, 31, 0.96) 0%, rgba(9, 13, 24, 0.98) 100%);
    border: 1px solid rgba(var(--mode-color-rgb), 0.18);
    border-radius: 30px;
    padding: 72px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.5s ease, box-shadow 0.5s ease, transform 0.35s ease;
    box-shadow: 0 26px 70px rgba(0,0,0,0.24), 0 0 84px rgba(var(--mode-color-rgb), 0.06);
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(var(--mode-color-rgb), 0.18), transparent),
                radial-gradient(ellipse 40% 40% at 10% 20%, rgba(var(--mode-color-rgb), 0.06), transparent),
                linear-gradient(135deg, rgba(255,255,255,0.05), transparent 46%);
    pointer-events: none;
    transition: background 0.8s ease;
}

.cta-banner:hover {
    transform: translateY(-4px);
}

.cta-banner h2 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--text-bright);
    margin-bottom: 16px;
    position: relative;
}

.cta-banner h2 span {
    color: var(--accent);
    transition: color 0.5s ease;
}

.cta-banner p {
    color: rgba(204, 214, 224, 0.66);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.72;
    position: relative;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    position: relative;
    flex-wrap: wrap;
}

.btn-primary {
    font-family: 'Oxanium', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 32px;
    background: #e8a030;
    color: #0f0800;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 160, 48, 0.3);
}

.btn-secondary {
    font-family: 'Oxanium', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-main);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.footer {
    background: linear-gradient(180deg, rgba(9, 13, 23, 0.86) 0%, rgba(7, 10, 18, 0.96) 100%);
    border-top: 1px solid var(--border-color);
    padding: 52px 24px 28px;
    margin-top: 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 46px;
    background: linear-gradient(180deg, rgba(9, 13, 23, 0) 0%, rgba(9, 13, 23, 0.8) 100%);
    pointer-events: none;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 240px;
}

.footer-col h4 {
    font-family: 'Oxanium', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    transition: color 0.5s ease;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul li a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--text-main);
}

.footer-col .server-info {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-col .server-info strong {
    color: var(--accent);
    transition: color 0.5s ease;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}


.page-header {
    padding: 54px 24px 42px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: -90px 0 auto;
    height: 220px;
    background: radial-gradient(ellipse 44% 54% at 50% 40%, rgba(var(--mode-color-rgb), 0.14) 0%, rgba(7, 10, 18, 0) 74%);
    pointer-events: none;
}

.page-header-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(18, 24, 40, 0.9) 0%, rgba(10, 14, 27, 0.9) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 42px rgba(0,0,0,0.18);
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(44px, 6vw, 76px);
    font-weight: 800;
    letter-spacing: -2.4px;
    color: var(--text-bright);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.page-header h1 span {
    color: var(--accent);
}

.page-header p {
    font-size: 18px;
    color: rgba(205, 216, 226, 0.66);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.page-divider {
    width: 48px;
    height: 2px;
    background: var(--accent);
    margin: 16px auto 0;
    border-radius: 2px;
}


.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 80px;
}


.rules-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rule-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 32px;
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.rule-num {
    font-family: 'Oxanium', sans-serif;
    font-size: 14px;
    font-weight: 700;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #001a24;
    border-radius: 6px;
    flex-shrink: 0;
    transition: background 0.3s;
}

.rule-num.danger {
    background: #e63946;
    color: white;
}

.rule-header h2 {
    font-family: 'Oxanium', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    transition: color 0.5s ease;
}

.rule-header h2 span {
    color: var(--text-bright);
}

.rule-divider {
    height: 1px;
    background: var(--border-color);
    margin-bottom: 16px;
}

.rule-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rule-items li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}

.rule-items li::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='none' stroke='%23e8a030' stroke-width='1.5'/%3E%3Cpath d='M5 8l2 2 4-4' fill='none' stroke='%23e8a030' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
    margin-top: 1px;
    transition: filter 0.3s;
}

.sanctions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.sanction-item {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sanction-badge {
    font-family: 'Oxanium', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 1px;
}

.sanction-text strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.sanction-text span {
    font-size: 13px;
    color: var(--text-muted);
}

.alert-box {
    background: rgba(230, 57, 70, 0.08);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 14px;
    font-size: 13px;
    color: rgba(230, 57, 70, 0.9);
}

.vote-counter-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 32px;
    text-align: center;
    max-width: 240px;
    margin: 0 auto 32px;
}

.vote-counter-box .vote-label {
    font-family: 'Oxanium', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.vote-counter-box .vote-num {
    font-family: 'Oxanium', sans-serif;
    font-size: 40px;
    font-weight: 900;
    color: var(--accent);
}

.vote-auth-box {
    background: rgba(245, 166, 35, 0.06);
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: 10px;
    padding: 28px 32px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 20px;
}

.vote-auth-box p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.vote-auth-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.vote-reward-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px 32px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.vote-reward-box h3 {
    font-family: 'Oxanium', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.vote-reward-box p {
    font-size: 14px;
    color: var(--text-muted);
}

.vote-reward-box strong {
    color: var(--text-bright);
}


.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 16px;
}

.vip-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    position: relative;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.vip-card:hover {
    transform: translateY(-4px);
}

.vip-card.popular {
    border-color: var(--accent);
    box-shadow: 0 0 32px rgba(232, 160, 48, 0.15);
}

.vip-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Oxanium', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 14px;
    background: var(--accent);
    color: #001a24;
    border-radius: 20px;
}

.vip-name {
    font-family: 'Oxanium', sans-serif;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 6px;
}

.vip-card:nth-child(1) .vip-name { color: #00d97e; }
.vip-card:nth-child(2) .vip-name { color: #5ba8ff; }
.vip-card:nth-child(3) .vip-name { color: #c97ef0; }

.vip-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.vip-price-box {
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vip-price {
    font-family: 'Oxanium', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--accent);
}

.vip-price-unit {
    font-size: 13px;
    color: var(--text-muted);
}

.vip-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vip-features li {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vip-features li::before {
    content: '';
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7l3 3 7-6' fill='none' stroke='%2300d97e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.vip-card.vip-tier-2 .vip-features li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7l3 3 7-6' fill='none' stroke='%234facfe' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.vip-card.vip-tier-3 .vip-features li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7l3 3 7-6' fill='none' stroke='%23c97ef0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.shop-note {
    text-align: center;
    margin-top: 32px;
    font-size: 13px;
    color: var(--text-muted);
}

.shop-note a {
    color: var(--accent);
    text-decoration: none;
}


.leaderboard-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-btn {
    font-family: 'Oxanium', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--accent);
    color: #001a24;
    border-color: var(--accent);
}

.tab-btn:hover:not(.active) {
    border-color: var(--accent);
    color: var(--accent);
}

.search-bar {
    max-width: 700px;
    margin: 0 auto 20px;
    position: relative;
}

.search-bar input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-main);
    font-family: 'Sora', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.search-bar input::placeholder { color: var(--text-muted); }
.search-bar input:focus { border-color: var(--accent); }

.leaderboard-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.leaderboard-table-header {
    padding: 20px 24px 14px;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table-header h3 {
    font-family: 'Oxanium', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.lb-table {
    width: 100%;
    border-collapse: collapse;
}

.lb-table th {
    font-family: 'Oxanium', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.lb-table td {
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.lb-table tr:last-child td {
    border-bottom: none;
}

.lb-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

.lb-rank {
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
}

.lb-rank.gold { color: #ffd700; }
.lb-rank.silver { color: #b8c4d0; }
.lb-rank.bronze { color: #cd7f32; }

.lb-player {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lb-player-head {
    width: 28px;
    height: 28px;
    border-radius: 3px;
    background: var(--bg-secondary);
    overflow: hidden;
    flex-shrink: 0;
}

.lb-player-head img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lb-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.lb-update-info {
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}


.auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-box {
    width: 100%;
    max-width: 480px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-family: 'Oxanium', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 6px;
}

.auth-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.auth-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 36px 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: 'Oxanium', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    transition: color 0.5s ease;
}

.form-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-main);
    font-family: 'Sora', sans-serif;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.06);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox a {
    color: var(--accent);
    text-decoration: none;
}

.form-submit {
    width: 100%;
    margin-top: 8px;
}

.form-messages {
    margin-bottom: 16px;
}

.form-error {
    background: rgba(230, 57, 70, 0.08);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #e63946;
    display: none;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.4;
    animation: bounce 2s infinite;
}

.scroll-hint span {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}


.page-main {
    padding-top: 82px;
    min-height: 100vh;
    position: relative;
}

.page-main::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 220px;
    background: radial-gradient(ellipse 48% 58% at 50% 0%, rgba(var(--mode-color-rgb), 0.1) 0%, rgba(7, 10, 18, 0) 72%);
    pointer-events: none;
}


.page-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(44px, 6vw, 76px);
    font-weight: 800;
    letter-spacing: -2.4px;
    color: var(--text-bright);
    margin-bottom: 12px;

}

.page-title span {
    color: var(--accent);
    transition: color 0.5s ease;
}

.page-title-divider {
    width: 54px;
    height: 3px;
    background: linear-gradient(90deg, rgba(var(--mode-color-rgb), 0.4), var(--accent), rgba(var(--mode-color-rgb), 0.4));
    margin: 16px auto 18px;
    border-radius: 999px;
    transition: background 0.5s ease;
    box-shadow: 0 0 24px rgba(var(--mode-color-rgb), 0.16);
}

.page-subtitle {
    font-size: 18px;
    color: rgba(205, 216, 226, 0.66);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.8;

}


.rules-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px 100px;
}

.rules-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.rules-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rules-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 104px;
}

.rule-block,
.sanctions-block,
.rules-cta {
    background: linear-gradient(180deg, rgba(13, 18, 34, 0.96) 0%, rgba(9, 13, 24, 0.99) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 30px 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(0,0,0,0.2);
    transition: border-color 0.32s ease, box-shadow 0.32s ease, transform 0.32s ease;
}

.rule-block::before,
.sanctions-block::before,
.rules-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(var(--mode-color-rgb), 0.12) 0%, transparent 36%),
        linear-gradient(135deg, rgba(255,255,255,0.04), transparent 46%);
    opacity: 0.8;
    pointer-events: none;
}

.rule-block:hover,
.sanctions-block:hover,
.rules-cta:hover {
    border-color: rgba(var(--mode-color-rgb), 0.34);
    box-shadow: 0 22px 52px rgba(0,0,0,0.24), 0 0 34px rgba(var(--mode-color-rgb), 0.07);
    transform: translateY(-4px);
}

.rule-number {
    font-family: 'Oxanium', sans-serif;
    font-size: 14px;
    font-weight: 700;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f9c44d 0%, #e5a72a 100%);
    color: #1b1202;
    border-radius: 14px;
    flex-shrink: 0;
    transition: background 0.3s ease, transform 0.25s ease;
    box-shadow: 0 10px 22px rgba(232, 160, 48, 0.2);
}

.rule-number.sanction-icon {
    background: linear-gradient(135deg, #ff6d6d 0%, #e63946 100%);
    color: white;
    box-shadow: 0 10px 24px rgba(230, 57, 70, 0.2);
}

.rule-title {
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: var(--text-bright);
    transition: color 0.5s ease;
}

.rule-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 6px;
}

.rule-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    color: rgba(231, 238, 245, 0.82);
    line-height: 1.72;
}

.rule-list li::before {
    content: '';
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='7' fill='none' stroke='%23f0af35' stroke-width='1.6'/%3E%3Cpath d='M5.5 9l2.1 2.1 4.8-4.8' fill='none' stroke='%23f0af35' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
    margin-top: 3px;
}


.sanctions-kicker {
    font-family: 'Oxanium', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ff8f8f;
    margin-bottom: 10px;
    display: block;
    position: relative;
    z-index: 1;
}

.sanction-note {
    position: relative;
    z-index: 1;
    font-size: 14px;
    color: rgba(212, 223, 231, 0.68);
    line-height: 1.7;
    margin: 14px 0 18px;
}

.sanctions-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    position: relative;
    z-index: 1;
}

.sanction-card {
    background: rgba(255,255,255,0.035);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sanction-card.sanction-severe {
    background: rgba(230, 57, 70, 0.08);
    border: 1px solid rgba(230, 57, 70, 0.22);
}

.sanction-num {
    font-family: 'Oxanium', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f9c44d 0%, #e5a72a 100%);
    color: #1b1202;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 34px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sanction-num.severe {
    background: linear-gradient(135deg, #ff6d6d 0%, #e63946 100%);
    color: white;
}

.sanction-text strong {
    display: block;
    color: var(--text-bright);
    margin-bottom: 4px;
    font-size: 15px;
}

.sanction-text span {
    display: block;
    color: rgba(212, 223, 231, 0.66);
    line-height: 1.6;
    font-size: 14px;
}

.sanction-warning {
    background: rgba(230, 57, 70, 0.08);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 16px;
    padding: 14px 16px;
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 153, 153, 0.96);
    position: relative;
    z-index: 1;
}

.rules-cta {
    text-align: left;
}

.rules-cta h3 {
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.rules-cta p {
    font-size: 15px;
    color: rgba(212, 223, 231, 0.66);
    margin-bottom: 24px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}


.vote-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
}

.vote-hero-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.vote-side-stack {
    display: grid;
    gap: 18px;
}

.vote-counter-card,
.vote-reward-card,
.vote-auth-card,
.vote-info-card,
.vote-site-card {
    background: linear-gradient(180deg, rgba(13, 18, 34, 0.96) 0%, rgba(9, 13, 24, 0.99) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(0,0,0,0.2);
}

.vote-counter-card::before,
.vote-reward-card::before,
.vote-auth-card::before,
.vote-info-card::before,
.vote-site-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(var(--mode-color-rgb), 0.12) 0%, transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,0.04), transparent 44%);
    pointer-events: none;
}

.vote-counter-card {
    padding: 28px 26px;
    text-align: center;
}

.vote-counter-label {
    font-family: 'Oxanium', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(170, 186, 199, 0.74);
    display: block;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.vote-counter-number {
    font-family: 'Oxanium', sans-serif;
    font-size: 68px;
    line-height: 1;
    font-weight: 900;
    color: var(--accent);
    display: block;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 28px rgba(var(--mode-color-rgb), 0.18);
}

.vote-counter-meta {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: rgba(212, 223, 231, 0.58);
}

.vote-auth-card {
    padding: 30px 32px;
    text-align: left;
}

.vote-auth-title,
.vote-reward-title,
.vote-info-title,
.vote-sites-title {
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: var(--text-bright);
    position: relative;
    z-index: 1;
}

.vote-auth-card p {
    font-size: 15px;
    color: rgba(212, 223, 231, 0.66);
    margin: 14px 0 22px;
    line-height: 1.72;
    position: relative;
    z-index: 1;
}

.vote-auth-buttons {
    position: relative;
    z-index: 1;
}

.vote-auth-note {
    font-size: 13px !important;
    color: rgba(212, 223, 231, 0.45) !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    font-style: italic;
}

.vote-progress-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(232, 160, 48, 0.2);
    border-radius: 24px;
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vote-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vote-progress-name {
    font-size: 16px;
    font-weight: 700;
    color: #e8a030;
    font-family: 'Oxanium', sans-serif;
}

.vote-progress-pts {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    font-family: 'Oxanium', sans-serif;
}

.vote-progress-goal {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(212, 223, 231, 0.6);
}

.vote-progress-goal strong {
    color: rgba(212, 223, 231, 0.85);
}

.vote-progress-bar-wrap {
    background: rgba(255,255,255,0.07);
    border-radius: 100px;
    height: 10px;
    overflow: hidden;
}

.vote-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #e8a030, #f5c842);
    border-radius: 100px;
    transition: width 0.6s ease;
    min-width: 4px;
}

.vote-progress-hint {
    font-size: 13px;
    color: rgba(212, 223, 231, 0.55);
    margin: 0;
    line-height: 1.6;
}

.vote-progress-cta {
    display: inline-block;
    margin-top: 4px;
    padding: 10px 20px;
    background: #e8a030;
    color: #0d0f14;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

.vote-progress-cta:hover {
    background: #f5c842;
}

.vote-reward-card {
    padding: 30px 32px;
}

.vote-info-card {
    padding: 30px 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.vote-info-how {
    display: flex;
    flex-direction: column;
}

.vote-info-where {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 24px;
}

.vote-reward-title,
.vote-info-title {
    display: block;
    margin-bottom: 16px;
}

.vote-reward-desc {
    font-size: 16px;
    color: rgba(212, 223, 231, 0.66);
    display: block;
    position: relative;
    z-index: 1;
    line-height: 1.75;
}

.vote-reward-desc strong {
    color: var(--text-bright);
}

.vote-bonus-list,
.vote-flow {
    list-style: none;
    display: grid;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.vote-bonus-list li,
.vote-flow li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: rgba(227, 236, 244, 0.78);
    line-height: 1.65;
    font-size: 14px;
}

.vote-bonus-list li::before,
.vote-flow li::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect x='2' y='2' width='14' height='14' rx='5' fill='none' stroke='%23f0af35' stroke-width='1.5'/%3E%3Cpath d='M5.5 9l2.2 2.2 4.8-4.8' fill='none' stroke='%23f0af35' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.vote-sites-title {
    display: block;
    margin-bottom: 8px;
}

.vote-sites-subtitle {
    font-size: 14px;
    color: rgba(205, 216, 226, 0.52);
    margin-bottom: 18px;
    line-height: 1.6;
}

.vote-sites-grid {
    display: grid;
    gap: 14px;
}

.vote-site-card {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.vote-site-card:hover {
    border-color: rgba(var(--mode-color-rgb), 0.34);
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(0,0,0,0.22), 0 0 32px rgba(var(--mode-color-rgb), 0.08);
}

.vote-site-info {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.vote-site-icon {
    width: 52px;
    height: 52px;
    background: rgba(232, 160, 48, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(232, 160, 48, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vote-site-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 4px;
}

.vote-site-cooldown {
    font-size: 13px;
    color: rgba(205, 216, 226, 0.56);
    margin-bottom: 4px;
}

.vote-site-reward {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

.btn-vote {
    font-family: 'Oxanium', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 13px 28px;
    background: linear-gradient(135deg, #f9c44d 0%, #e5a72a 100%);
    color: #0f0800;
    border-radius: 16px;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.3s ease, filter 0.2s ease;
    box-shadow: 0 12px 26px rgba(232, 160, 48, 0.2);
    position: relative;
    z-index: 1;
}

.btn-vote:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 18px 34px rgba(232, 160, 48, 0.26);
}

.vote-top-section {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vote-top-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vote-top-title {
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-bright);
}

.vote-top-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vote-top-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}

.vote-top-row:hover {
    background: rgba(255,255,255,0.055);
}

.vote-top-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-family: 'Oxanium', sans-serif;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.06);
}

.vote-top-row:nth-child(1) .vote-top-rank { background: rgba(255, 215, 0, 0.18); color: #ffd700; }
.vote-top-row:nth-child(2) .vote-top-rank { background: rgba(184, 196, 208, 0.18); color: #b8c4d0; }
.vote-top-row:nth-child(3) .vote-top-rank { background: rgba(205, 127, 50, 0.18); color: #cd7f32; }

.vote-top-avatar {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
    image-rendering: pixelated;
}

.vote-top-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: rgba(231, 238, 245, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vote-top-count {
    font-family: 'Oxanium', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.vote-top-empty {
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(205, 216, 226, 0.4);
}

.vote-anon-box {
    max-width: 460px;
    padding: 36px 32px 30px;
    text-align: center;
}

.vote-anon-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(232, 160, 48, 0.1);
    border: 1px solid rgba(232, 160, 48, 0.22);
    margin-bottom: 18px;
}

.vote-anon-title {
    font-family: 'Oxanium', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 12px;
    letter-spacing: -0.4px;
}

.vote-anon-desc {
    font-size: 14px;
    color: rgba(212, 223, 231, 0.68);
    line-height: 1.72;
    margin-bottom: 24px;
}

.vote-anon-desc strong {
    color: rgba(255,255,255,0.88);
}

.vote-anon-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.vote-anon-confirm {
    width: 100%;
    padding: 13px 24px;
    background: linear-gradient(135deg, #f9c44d 0%, #e5a72a 100%);
    color: #0f0800;
    border: none;
    border-radius: 14px;
    font-family: 'Oxanium', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.2s, transform 0.2s;
    box-shadow: 0 10px 24px rgba(232, 160, 48, 0.22);
}

.vote-anon-confirm:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.vote-anon-links {
    display: flex;
    gap: 10px;
}


.boutique-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 90px;
}

.boutique-v2 {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.shop-account-strip {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(232, 160, 48, 0.14) 0%, rgba(16, 22, 38, 0.92) 100%);
    border: 1px solid rgba(232, 160, 48, 0.18);
    color: rgba(231, 238, 245, 0.86);
    box-shadow: 0 16px 34px rgba(0,0,0,0.18);
}

.shop-account-strip:not([hidden]) {
    display: flex;
}

.shop-account-strip strong {
    font-family: 'Oxanium', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-bright);
}

.shop-account-strip span {
    font-size: 14px;
    color: #ffd894;
}

.shop-section,
.shop-ethics-card,
.shop-note-card,
.boutique-note-strong {
    background: linear-gradient(180deg, rgba(13, 18, 34, 0.96) 0%, rgba(9, 13, 24, 0.99) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(0,0,0,0.2);
}

.shop-section::before,
.shop-ethics-card::before,
.shop-note-card::before,
.boutique-note-strong::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(var(--mode-color-rgb), 0.12) 0%, transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,0.04), transparent 46%);
    pointer-events: none;
}

.shop-ethics-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 24px;
    padding: 34px;
}

.shop-ethics-copy,
.shop-pillars,
.shop-section-heading,
.shop-note-card > *,
.boutique-note-strong > * {
    position: relative;
    z-index: 1;
}

.shop-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Oxanium', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.shop-ethics-copy h2,
.shop-section-title,
.shop-note-card h3 {
    font-family: 'Sora', sans-serif;
    color: var(--text-bright);
    letter-spacing: -0.8px;
}

.shop-ethics-copy h2 {
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.08;
    margin-bottom: 16px;
    max-width: 640px;
}

.shop-ethics-copy p,
.shop-section-subtitle,
.shop-note-card,
.boutique-note {
    color: rgba(213, 223, 231, 0.7);
    line-height: 1.78;
}

.shop-pillars {
    display: grid;
    gap: 14px;
    align-content: start;
}

.shop-pillar {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 18px 18px;
}

.shop-pillar strong {
    display: block;
    color: var(--text-bright);
    margin-bottom: 6px;
    font-size: 15px;
}

.shop-pillar span {
    font-size: 14px;
    color: rgba(213, 223, 231, 0.64);
    line-height: 1.65;
}

.shop-section {
    padding: 32px;
}

.shop-section-heading {
    margin-bottom: 22px;
}

.shop-section-title {
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 10px;
}

.shop-section-subtitle {
    max-width: 760px;
    font-size: 15px;
}

.support-grid {
    display: grid;
    gap: 20px;
}

.support-grid-main {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto 1fr auto;
    row-gap: 0;
    column-gap: 20px;
}

.support-card,
.shop-note-card {
    padding: 22px 20px;
}

.support-card {
    position: relative;
    grid-row: span 6;
    display: grid;
    grid-template-rows: subgrid;
    align-content: start;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(15, 21, 39, 0.98) 0%, rgba(9, 13, 24, 0.98) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.support-card:hover,
.shop-note-card:hover,
.shop-section:hover,
.shop-ethics-card:hover,
.boutique-note-strong:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--mode-color-rgb), 0.28);
    box-shadow: 0 22px 54px rgba(0,0,0,0.24), 0 0 28px rgba(var(--mode-color-rgb), 0.08);
}

.support-card-donateur {
    border-color: rgba(0, 217, 126, 0.18);
}

.support-card-donateur:hover {
    border-color: rgba(0, 217, 126, 0.42);
    box-shadow: 0 22px 54px rgba(0,0,0,0.24), 0 0 28px rgba(0, 217, 126, 0.08);
}

.support-card-donateur-plus {
    border-color: rgba(232, 160, 48, 0.28);
}

.support-card-donateur-plus:hover {
    border-color: rgba(232, 160, 48, 0.44);
    box-shadow: 0 22px 54px rgba(0,0,0,0.24), 0 0 28px rgba(232, 160, 48, 0.1);
}

.support-card-free {
    border-color: rgba(91, 168, 255, 0.2);
}

.support-card-free:hover {
    border-color: rgba(91, 168, 255, 0.42);
    box-shadow: 0 22px 54px rgba(0,0,0,0.24), 0 0 28px rgba(91, 168, 255, 0.08);
}

.support-card-supporter {
    border-color: rgba(201, 126, 240, 0.2);
}

.support-card-supporter:hover {
    border-color: rgba(201, 126, 240, 0.4);
    box-shadow: 0 22px 54px rgba(0,0,0,0.24), 0 0 28px rgba(201, 126, 240, 0.08);
}

.support-price {
    margin-bottom: 22px;
}

.support-badge,
.popular-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    font-family: 'Oxanium', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
}

.support-badge {
    background: rgba(255,255,255,0.06);
    color: rgba(231, 238, 245, 0.76);
    margin-bottom: 14px;
}

.support-badge-plus {
    background: rgba(232, 160, 48, 0.14);
    color: #ffd38a;
}

.support-badge-free {
    background: rgba(91, 168, 255, 0.12);
    color: #9aceff;
}

.support-badge-vote {
    background: rgba(201, 126, 240, 0.14);
    color: #d8aff5;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--accent);
    color: #001a24;
}

.support-title {
    font-family: 'Oxanium', sans-serif;
    font-size: 34px;
    line-height: 1;
    color: var(--text-bright);
    margin-bottom: 10px;
}

.support-desc {
    color: rgba(213, 223, 231, 0.68);
    line-height: 1.7;
}

.support-price {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 14px 18px;
    margin-top: 18px;
}

.support-price strong {
    font-family: 'Oxanium', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: var(--text-bright);
}

.support-price span {
    font-size: 13px;
    color: rgba(170, 186, 199, 0.78);
}

.support-price-split {
    align-items: flex-start;
}

.support-features,
.shop-note-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.support-features li,
.shop-note-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: rgba(231, 238, 245, 0.78);
    line-height: 1.55;
    font-size: 13px;
    min-width: 0;
}

.support-features li > span,
.shop-note-list li > span {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.support-features li::before,
.shop-note-list li::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='7' fill='none' stroke='%23f0af35' stroke-width='1.6'/%3E%3Cpath d='M5.5 9l2.1 2.1 4.8-4.8' fill='none' stroke='%23f0af35' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

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

.btn-vip {
    display: block;
    width: 100%;
    text-align: center;
    font-family: 'Oxanium', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f9c44d 0%, #e5a72a 55%, #cf8b15 100%);
    color: #0f0800;
    border-radius: 14px;
    border: 1px solid rgba(255, 224, 136, 0.34);
    text-decoration: none;
    margin-top: 24px;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.3s, filter 0.2s ease;
    box-shadow: 0 14px 28px rgba(222, 162, 39, 0.22);
}

.support-card-actions .btn-vip {
    margin-top: 0;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 14px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-vip:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.btn-vip-alt {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-bright);
    box-shadow: none;
}

.shop-note-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.boutique-note {
    text-align: center;
    margin-top: 0;
    font-size: 14px;
}

.boutique-note-strong {
    padding: 28px 30px;
}

.boutique-note strong {
    color: var(--accent);
}

.cosm-label {
    display: inline-flex;
    align-items: center;
    font-family: 'Oxanium', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cosm-aura  { background: rgba(155, 63, 212, 0.2);  color: #d8aff5; border: 1px solid rgba(155, 63, 212, 0.3); }
.cosm-trail { background: rgba(91, 168, 255, 0.15); color: #9aceff; border: 1px solid rgba(91, 168, 255, 0.25); }
.cosm-pet   { background: rgba(0, 217, 126, 0.14);  color: #6fffc4; border: 1px solid rgba(0, 217, 126, 0.24); }
.cosm-son   { background: rgba(80, 220, 200, 0.14); color: #80eedd; border: 1px solid rgba(80, 220, 200, 0.24); }
.cosm-spawn { background: rgba(232, 160, 48, 0.15); color: #ffd38a; border: 1px solid rgba(232, 160, 48, 0.24); }

.support-features li .cosm-label {
    vertical-align: middle;
    margin-right: 3px;
}

.donlibre-pool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
    margin-bottom: 20px;
}

.donlibre-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 18px 16px;
    transition: border-color 0.22s ease, transform 0.22s ease;
}

.donlibre-item:hover {
    border-color: rgba(255,255,255,0.13);
    transform: translateY(-2px);
}

.donlibre-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.donlibre-item-name {
    color: var(--text-bright);
    font-size: 14px;
    font-weight: 600;
}

.donlibre-item-desc {
    color: rgba(213, 223, 231, 0.6);
    font-size: 13px;
    line-height: 1.65;
}

.donlibre-item-owned {
    border-color: rgba(100, 200, 120, 0.25);
    background: rgba(100, 200, 120, 0.05);
}

.donlibre-item-missing {
    opacity: 0.55;
}

.donlibre-item-status {
    display: inline-block;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 6px;
    padding: 2px 8px;
}

.donlibre-status-owned {
    background: rgba(100, 200, 120, 0.15);
    color: #7dcf92;
    border: 1px solid rgba(100, 200, 120, 0.25);
}

.donlibre-status-missing {
    background: rgba(255,255,255,0.04);
    color: rgba(213, 223, 231, 0.4);
    border: 1px solid rgba(255,255,255,0.07);
}

.donlibre-complete-badge {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #f0c060;
    letter-spacing: 0.03em;
}

.donlibre-usage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.055);
    margin-top: 6px;
}

.donlibre-usage-item {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 16px 18px;
}

.donlibre-usage-item strong {
    display: block;
    color: var(--text-bright);
    font-size: 13px;
    margin-bottom: 6px;
}

.donlibre-usage-item span {
    color: rgba(213, 223, 231, 0.64);
    font-size: 13px;
    line-height: 1.7;
}

.donlibre-saturated-warn {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(240, 160, 48, 0.09);
    border: 1px solid rgba(240, 160, 48, 0.28);
    border-radius: 14px;
    padding: 13px 15px;
    margin-top: 16px;
}

.donlibre-saturated-warn svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.donlibre-saturated-warn span {
    font-size: 12px;
    line-height: 1.65;
    color: rgba(255, 210, 130, 0.9);
}

.donlibre-usage-item code {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 12px;
    color: var(--accent);
    font-family: 'Courier New', monospace;
}


.classement-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.classement-filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.filter-btn {
    font-family: 'Oxanium', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-btn img {
    height: 22px;
    width: auto;
}

.filter-btn.active {
    background: var(--accent);
    color: #001a24;
    border-color: var(--accent);
}

.filter-btn:hover:not(.active) {
    border-color: var(--accent);
    color: var(--accent);
}

.classement-sort-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.sort-btn {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: all 0.2s;
}

.sort-btn.active {
    border-color: var(--accent);
    color: var(--accent);
}

.sort-btn:hover:not(.active) {
    border-color: rgba(232, 160, 48, 0.4);
    color: rgba(255,255,255,0.85);
}

.classement-search {
    max-width: 100%;
    margin-bottom: 20px;
}

.classement-search input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    font-family: 'Sora', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.classement-search input::placeholder { color: rgba(255,255,255,0.3); }
.classement-search input:focus { border-color: var(--accent); }

.classement-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
}

.table-title {
    font-family: 'Oxanium', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    padding: 20px 24px 14px;
    border-bottom: 1px solid var(--border-color);
}

.classement-table {
    width: 100%;
    border-collapse: collapse;
}

.classement-table th {
    font-family: 'Oxanium', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.classement-table td {
    padding: 16px 20px;
    font-size: 15px;
    color: rgba(255,255,255,0.82);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.classement-table tr:last-child td {
    border-bottom: none;
}

.classement-table .rank-row:hover td {
    background: rgba(255,255,255,0.02);
}

.rang-cell {
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
}

.rank-gold .rang-cell { color: #ffd700; }
.rank-silver .rang-cell { color: #b8c4d0; }
.rank-bronze .rang-cell { color: #cd7f32; }

.rang-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-family: 'Oxanium', sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.rank-gold .rang-medal { background: rgba(255, 215, 0, 0.2); color: #ffd700; }
.rank-silver .rang-medal { background: rgba(184, 196, 208, 0.2); color: #b8c4d0; }
.rank-bronze .rang-medal { background: rgba(205, 127, 50, 0.2); color: #cd7f32; }

.player-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-avatar {
    width: 28px;
    height: 28px;
    border-radius: 3px;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.classement-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.classement-update-info {
    font-size: 12px;
    margin-top: 6px;
}

.classement-meta {
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}


.auth-main {
    min-height: calc(100vh - 82px);
    padding-top: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 60px;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    padding: 0 20px;
}

.auth-title {
    font-family: 'Oxanium', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 6px;
    display: block;
    text-align: center;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    display: block;
}

.auth-message {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 16px;
}

.auth-message.success {
    background: rgba(0, 217, 126, 0.08);
    border: 1px solid rgba(0, 217, 126, 0.3);
    color: #00d97e;
}

.auth-message.error {
    background: rgba(230, 57, 70, 0.08);
    border: 1px solid rgba(230, 57, 70, 0.3);
    color: #e63946;
}

.auth-note {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
}
.auth-note strong {
    color: var(--accent);
}


.form-group label {
    display: block;
    font-family: 'Oxanium', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    transition: color 0.5s ease;
}

.form-group input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-main);
    font-family: 'Sora', sans-serif;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.form-group input::placeholder { color: var(--text-muted); }

.form-group input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.06);
}

.btn-auth-submit {
    display: block;
    width: 100%;
    font-family: 'Oxanium', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 14px 20px;
    background: var(--accent);
    color: #0f0800;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.3s;
}

.btn-auth-submit:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.auth-switch {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}


.mc-check {
    font-size: 12px;
    margin-top: 6px;
    min-height: 16px;
}

.mc-check.checking { color: var(--text-muted); }
.mc-check.valid { color: #00d97e; }
.mc-check.invalid { color: #e63946; }


.reg-container {
    max-width: 520px;
}

.reg-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 22px 0 28px;
}

.reg-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0.35;
    transition: opacity 0.3s;
}

.reg-step.active,
.reg-step.done {
    opacity: 1;
}

.reg-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oxanium', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.reg-step.active .reg-step-num {
    background: var(--accent);
    border-color: var(--accent);
    color: #0f0800;
}

.reg-step.done .reg-step-num {
    background: rgba(0,217,126,0.15);
    border-color: #00d97e;
    color: #00d97e;
}

.reg-step-label {
    font-family: 'Oxanium', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.reg-step.active .reg-step-label {
    color: var(--accent);
}

.reg-step.done .reg-step-label {
    color: #00d97e;
}

.reg-step-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
    min-width: 40px;
    margin-bottom: 18px;
}

.reg-panel-hint {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 18px;
}

.reg-username-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
}

.reg-username-field {
    flex: 1;
    margin-bottom: 0 !important;
}

.reg-username-status {
    display: block;
    font-size: 11px;
    margin-top: 5px;
    min-height: 14px;
    font-weight: 600;
}

.reg-username-status.ok      { color: #00d97e; }
.reg-username-status.error   { color: #e63946; }
.reg-username-status.loading { color: var(--text-muted); }

.reg-skin-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.reg-skin-preview img {
    width: 100px;
    height: 200px;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,0.55));
    image-rendering: pixelated;
}

.reg-skin-preview span {
    font-family: 'Oxanium', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-align: center;
    max-width: 66px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reg-btn-verify {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.reg-btn-verify:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.reg-verify-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    margin-bottom: 16px;
}

.reg-verify-avatar {
    border-radius: 6px;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.reg-verify-header strong {
    display: block;
    font-size: 15px;
    color: var(--text-bright);
    margin-bottom: 2px;
}

.reg-verify-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.reg-delivery-status {
    margin-bottom: 14px;
}

.reg-delivery-waiting,
.reg-delivery-ok,
.reg-delivery-offline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
}

.reg-delivery-waiting {
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
}

.reg-delivery-ok {
    background: rgba(0,217,126,0.08);
    color: #00d97e;
    border: 1px solid rgba(0,217,126,0.2);
}

.reg-delivery-offline {
    background: rgba(245,158,11,0.08);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,0.2);
}

.reg-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: reg-spin 0.7s linear infinite;
    flex-shrink: 0;
}

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

.reg-timer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 16px;
}

.reg-timer-label {
    font-size: 12px;
    color: var(--text-muted);
}

.reg-timer-value {
    font-family: 'Oxanium', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}

.reg-btn-back {
    display: block;
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    color: var(--text-muted);
    font-family: 'Oxanium', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 11px 20px;
    cursor: pointer;
    margin-top: 10px;
    transition: border-color 0.2s, color 0.2s;
}

.reg-btn-back:hover {
    border-color: rgba(255,255,255,0.25);
    color: var(--text-main);
}

.reg-verified-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: #4ade80;
    padding: 12px 16px;
    background: rgba(74,222,128,0.07);
    border: 1px solid rgba(74,222,128,0.2);
    border-radius: 10px;
    margin-bottom: 20px;
}

.reg-verified-badge strong {
    color: #4ade80;
}

.btn-auth-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}


.server-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.server-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.server-info strong {
    color: var(--accent);
}


.btn-primary {
    display: inline-block;
    font-family: 'Oxanium', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 14px 32px;
    background: var(--accent);
    color: #0f0800;
    border-radius: 14px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 160, 48, 0.3);
}

.btn-secondary {
    display: inline-block;
    font-family: 'Oxanium', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}


@media (max-width: 1100px) {
    .modes-grid { gap: 16px; }
    .mode-card-title { font-size: 20px; }
    .stats-row { gap: 12px; }
    .footer-inner { gap: 32px; }
}

@media (max-width: 900px) {
    .modes-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
    .mode-card { aspect-ratio: 16/7; }
    .features-grid { grid-template-columns: 1fr 1fr 1fr; }
    .feature-card--community { flex-direction: column; align-items: flex-start; }
    .community-left { padding-right: 0; padding-bottom: 20px; min-width: unset; }
    .community-divider { width: 100%; height: 1px; align-self: auto; margin-right: 0; margin-bottom: 20px; }
    .shop-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
    .vip-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .modal-features { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .classement-filters { flex-wrap: wrap; }
    .classement-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .rules-layout,
    .vote-hero-grid,
    .shop-ethics-card,
    .support-grid-main { grid-template-columns: 1fr 1fr; }
    .donlibre-pool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rules-side { position: static; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-separator { display: none; }
    .nav-auth { display: none; }
    .nav-hamburger { display: flex; }
    .modal-logo { display: none; }

    .navbar { top: 10px; width: calc(100% - 20px); border-radius: 14px; }
    .nav-mobile-menu { top: 84px; left: 10px; right: 10px; }

    .hero { padding-top: 42px; padding-bottom: 20px; }
    .hero-title { font-size: 56px; letter-spacing: -2px; }
    .hero-subtitle { font-size: 13px; white-space: normal; }
    .mode-card { aspect-ratio: 4/3; }
    .mode-card-bg { background-position: center 35%; }
    .mode-card-gradient { background: linear-gradient(to top, var(--bg-primary) 18%, transparent 55%); }
    .mode-card-title { font-size: 18px; }
    .mode-card-desc { display: none; }

    .hero-bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    .bento-play { grid-column: 1; grid-row: 1; min-height: 200px; }
    .bento-side { grid-column: 1; grid-row: 2; flex-direction: row; }
    .bento-small { flex: 1; min-height: 100px; }

    .features-section { padding: 40px 20px 60px; }
    .support-grid-main { grid-template-columns: 1fr; }
    .donlibre-pool-grid { grid-template-columns: 1fr; }
    .donlibre-usage { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .rules-layout { grid-template-columns: 1fr; }
    .vote-hero-grid { grid-template-columns: 1fr; }
    .shop-ethics-card { grid-template-columns: 1fr; flex-direction: column; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .server-block { flex-direction: column; }
    .server-ip-section { border-right: none; border-bottom: 1px solid var(--border-color); width: 100%; }
    .server-ip { font-size: 26px; }
    .btn-join { width: 100%; text-align: center; }
    .hero-shortcuts { grid-template-columns: 1fr; gap: 10px; }
    .auth-form { padding: 24px 18px; }
    .auth-container { padding: 0 16px; }
    .features-section { padding: 50px 20px 60px; }
    .cta-section { padding: 60px 16px 80px; }
    .cta-banner { padding: 44px 20px; border-radius: 24px; }
    .cta-buttons { flex-direction: column; align-items: stretch; }
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary { text-align: center; }

    .classement-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -10px; padding: 0 10px; }
    .classement-table { min-width: 500px; width: 100%; border-collapse: collapse; }
    .classement-table th,
    .classement-table td { padding: 10px 6px; font-size: 11px; background: transparent !important; }
    .rank-row { background: transparent !important; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .player-avatar { width: 22px; height: 22px; background: transparent !important; border-radius: 4px; }
    .player-cell { gap: 8px; background: transparent !important; }
    .player-cell span { white-space: nowrap; }
    .rang-medal { width: 22px; height: 22px; font-size: 10px; }
    .classement-filters { gap: 6px; }
    .filter-btn, .sort-btn { font-size: 10px; padding: 6px 12px; }

    .modal-box { padding: 24px 20px; margin: 16px; max-height: 94vh; width: calc(100% - 32px); }
    .modal-phases { grid-template-columns: 1fr; }
    .modal-features { grid-template-columns: 1fr !important; gap: 12px; }
    .modal-feature { padding: 16px; font-size: 14px; }
    .modal-title { font-size: 28px; }
    .modal-body p { font-size: 15px; line-height: 1.6; }

    .support-grid-main { row-gap: 20px; grid-template-rows: auto; }
    .support-card { grid-row: auto; display: flex; flex-direction: column; padding: 30px 24px; }

    .page-header { padding: 44px 20px 30px; }
    .page-header-icon { width: 62px; height: 62px; border-radius: 18px; }
    .rules-container, .classement-container, .vote-container, .boutique-container { padding: 0 16px 60px; }
    .rule-block, .sanctions-block, .rules-cta, .vote-counter-card, .vote-auth-card, .vote-reward-card, .vote-info-card, .vote-site-card, .shop-section, .shop-ethics-card, .shop-note-card, .boutique-note-strong, .support-card { padding: 24px 20px; border-radius: 20px; }
    .rule-title, .vote-auth-title, .vote-reward-title, .vote-info-title, .vote-sites-title, .shop-section-title, .shop-ethics-copy h2, .shop-note-card h3 { font-size: 20px; }
    .vote-sites-title, .vote-sites-subtitle { text-align: center; }
    .support-title { font-size: 28px; }
    .support-card-actions { grid-template-columns: 1fr; }
    .shop-ethics-card { gap: 18px; }
    .shop-account-strip { flex-direction: column; align-items: flex-start; }

    .stats-row { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 20px 12px; }
    .stat-number { font-size: 32px; }

    .vote-auth-buttons { flex-direction: column; }
    .vote-auth-buttons a, .btn-vote { text-align: center; }
    .vote-site-card { flex-direction: column; align-items: stretch; }
    .vote-site-info { width: 100%; }

    .vip-grid { max-width: 100%; }

    .reg-username-row { flex-wrap: wrap; }
    .reg-skin-preview { width: 100%; align-items: center; }
    .reg-skin-preview img { width: 80px; height: 160px; }
}


.floating-scene {
    position: absolute;
    top: -20px;
    left: -60px;
    right: -60px;
    bottom: -20px;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.float-item {
    position: absolute;
    opacity: 0;
    will-change: transform, opacity;
    filter: drop-shadow(0 0 0px transparent);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.6s ease;
}

.float-item i,
.float-item svg {
    display: block;
    line-height: 1;
}


.float-item.side-left {
    transform: translateX(100px) rotate(10deg) scale(0.5);
}

.float-item.side-right {
    transform: translateX(-100px) rotate(-10deg) scale(0.5);
}


.float-item.pos-tl { top: 12%;  left: 1%;   }
.float-item.pos-ml { top: 44%;  left: -10px; }
.float-item.pos-bl { top: 70%;  left: 2%;   }
.float-item.pos-tr { top: 12%;  right: 1%;  }
.float-item.pos-mr { top: 44%;  right: -10px;}
.float-item.pos-br { top: 70%;  right: 2%;  }


body.theme-mc .float-item.mc-item {
    opacity: 1;
    animation: glowPulseMc 2.4s ease-in-out infinite;
}
body.theme-mc .float-item.mc-item.pos-tl { transform: translateX(-30px) rotate(-13deg) scale(1); }
body.theme-mc .float-item.mc-item.pos-ml { transform: translateX(-40px) rotate(7deg)   scale(1); }
body.theme-mc .float-item.mc-item.pos-bl { transform: translateX(-24px) rotate(16deg)  scale(1); }
body.theme-mc .float-item.mc-item.pos-tr { transform: translateX(30px)  rotate(13deg)  scale(1); }
body.theme-mc .float-item.mc-item.pos-mr { transform: translateX(40px)  rotate(-7deg)  scale(1); }
body.theme-mc .float-item.mc-item.pos-br { transform: translateX(24px)  rotate(-16deg) scale(1); }


body.theme-ctf .float-item.ctf-item {
    opacity: 1;
    animation: glowPulseCtf 2.4s ease-in-out infinite;
}
body.theme-ctf .float-item.ctf-item.pos-tl { transform: translateX(-30px) rotate(-13deg) scale(1); }
body.theme-ctf .float-item.ctf-item.pos-ml { transform: translateX(-40px) rotate(7deg)   scale(1); }
body.theme-ctf .float-item.ctf-item.pos-bl { transform: translateX(-24px) rotate(16deg)  scale(1); }
body.theme-ctf .float-item.ctf-item.pos-tr { transform: translateX(30px)  rotate(13deg)  scale(1); }
body.theme-ctf .float-item.ctf-item.pos-mr { transform: translateX(40px)  rotate(-7deg)  scale(1); }
body.theme-ctf .float-item.ctf-item.pos-br { transform: translateX(24px)  rotate(-16deg) scale(1); }


body.theme-fk .float-item.fk-item {
    opacity: 1;
    animation: glowPulseFk 2.4s ease-in-out infinite;
}
body.theme-fk .float-item.fk-item.pos-tl { transform: translateX(-30px) rotate(-13deg) scale(1); }
body.theme-fk .float-item.fk-item.pos-ml { transform: translateX(-40px) rotate(7deg)   scale(1); }
body.theme-fk .float-item.fk-item.pos-bl { transform: translateX(-24px) rotate(16deg)  scale(1); }
body.theme-fk .float-item.fk-item.pos-tr { transform: translateX(30px)  rotate(13deg)  scale(1); }
body.theme-fk .float-item.fk-item.pos-mr { transform: translateX(40px)  rotate(-7deg)  scale(1); }
body.theme-fk .float-item.fk-item.pos-br { transform: translateX(24px)  rotate(-16deg) scale(1); }


@keyframes glowPulseFk {
    0%,100% { filter: drop-shadow(0 0 50px rgba(155,63,212,1)) drop-shadow(0 0 110px rgba(155,63,212,0.65)); }
    50%      { filter: drop-shadow(0 0 85px rgba(155,63,212,1)) drop-shadow(0 0 190px rgba(155,63,212,0.95)); }
}
@keyframes glowPulseMc {
    0%,100% { filter: drop-shadow(0 0 50px rgba(0,217,126,1)) drop-shadow(0 0 110px rgba(0,217,126,0.65)); }
    50%      { filter: drop-shadow(0 0 85px rgba(0,217,126,1)) drop-shadow(0 0 190px rgba(0,217,126,0.95)); }
}
@keyframes glowPulseCtf {
    0%,100% { filter: drop-shadow(0 0 50px rgba(230,57,70,1)) drop-shadow(0 0 110px rgba(230,57,70,0.65)); }
    50%      { filter: drop-shadow(0 0 85px rgba(230,57,70,1)) drop-shadow(0 0 190px rgba(230,57,70,0.95)); }
}


@keyframes floatA {
    0%,100% { translate: 0 0;      rotate: 0deg;   }
    30%     { translate: -14px -44px; rotate: -12deg; }
    65%     { translate:   8px -28px; rotate:   6deg; }
}
@keyframes floatB {
    0%,100% { translate: 0 0;      rotate: 0deg;   }
    40%     { translate:  10px -54px; rotate:  11deg; }
    75%     { translate:  -6px -30px; rotate:  -5deg; }
}
@keyframes floatC {
    0%,100% { translate: 0 0;      rotate: 0deg;   }
    50%     { translate: -20px -44px; rotate: -17deg; }
}
@keyframes floatD {
    0%,100% { translate: 0 0;      rotate: 0deg;   }
    25%     { translate:  12px -44px; rotate:   9deg; }
    60%     { translate:  -8px -60px; rotate: -12deg; }
    80%     { translate:   6px -34px; rotate:   5deg; }
}
@keyframes floatE {
    0%,100% { translate: 0 0;      rotate: 0deg;   }
    45%     { translate:  18px -38px; rotate:  13deg; }
}
@keyframes floatF {
    0%,100% { translate: 0 0;      rotate: 0deg;   }
    20%     { translate: -10px -50px; rotate:  -9deg; }
    55%     { translate:  15px -62px; rotate:  15deg; }
    78%     { translate: -13px -36px; rotate:  -7deg; }
}


body.theme-fk .float-item.fk-item.pos-tl i,
body.theme-mc .float-item.mc-item.pos-tl i,
body.theme-ctf .float-item.ctf-item.pos-tl i  { animation: floatA 3.6s ease-in-out infinite; }

body.theme-fk .float-item.fk-item.pos-ml i,
body.theme-mc .float-item.mc-item.pos-ml i,
body.theme-ctf .float-item.ctf-item.pos-ml i  { animation: floatC 4.8s ease-in-out 0.7s infinite; }

body.theme-fk .float-item.fk-item.pos-bl i,
body.theme-mc .float-item.mc-item.pos-bl i,
body.theme-ctf .float-item.ctf-item.pos-bl i  { animation: floatE 5.1s ease-in-out 1.2s infinite; }

body.theme-fk .float-item.fk-item.pos-tr i,
body.theme-mc .float-item.mc-item.pos-tr i,
body.theme-ctf .float-item.ctf-item.pos-tr i  { animation: floatD 3.4s ease-in-out 0.4s infinite; }

body.theme-fk .float-item.fk-item.pos-mr i,
body.theme-mc .float-item.mc-item.pos-mr i,
body.theme-ctf .float-item.ctf-item.pos-mr i  { animation: floatB 4.3s ease-in-out 0.9s infinite; }

body.theme-fk .float-item.fk-item.pos-br i,
body.theme-mc .float-item.mc-item.pos-br i,
body.theme-ctf .float-item.ctf-item.pos-br i  { animation: floatF 4.6s ease-in-out 1.5s infinite; }


@media (max-width: 900px) {
    .floating-scene { display: none; }
    .modes-section { overflow: visible !important; padding-top: 40px !important; }
    .modes-grid { overflow: visible !important; padding-top: 15px; margin-top: 10px; }
}

.btn-auth-microsoft {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #2a2a2a;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
    margin-bottom: 4px;
}
.btn-auth-microsoft:hover {
    background: #383838;
    border-color: rgba(255,255,255,0.22);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.btn-owned {
    opacity: 0.5;
    cursor: default;
}
.btn-locked {
    opacity: 0.45;
    cursor: not-allowed;
    background: rgba(255,255,255,0.06);
    color: rgba(213, 223, 231, 0.55);
    border-color: rgba(255,255,255,0.08);
    box-shadow: none;
}
.shop-buy-btn:disabled {
    cursor: default;
}

.vote-login-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 28px;
}

.vote-login-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vote-login-banner-text strong {
    font-size: 0.95rem;
    color: #fff;
}

.vote-login-banner-text span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}

.vote-login-banner-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-vote.on-cooldown {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.4);
    border-color: rgba(255,255,255,0.08);
    cursor: not-allowed;
    pointer-events: none;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    box-shadow: none;
}

@media (max-width: 600px) {
    .vote-login-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.shop-legal-note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 16px 24px 40px;
}

.shop-legal-note a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.shop-legal-note a:hover {
    color: var(--accent);
}

.legal-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px 80px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.legal-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.legal-section {
    padding: 28px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.legal-section p {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.75;
    margin-bottom: 10px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-back {
    margin-top: 40px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-vote-disabled {
    background: rgba(255,255,255,0.07) !important;
    color: rgba(255,255,255,0.4) !important;
    border-color: rgba(255,255,255,0.08) !important;
    cursor: not-allowed;
    pointer-events: none;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    box-shadow: none;
}

.nav-player {
    cursor: pointer;
    border-radius: 10px;
    padding: 4px 10px 4px 4px;
    transition: background 0.2s;
    user-select: none;
}
.nav-player:hover {
    background: rgba(232,160,48,0.10);
}

.profile-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(5, 8, 18, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.profile-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.profile-panel {
    background: var(--bg-card);
    border: 1px solid rgba(232,160,48,0.18);
    border-radius: 20px;
    width: 680px;
    max-width: 96vw;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: row;
    gap: 0;
    position: relative;
    transform: translateY(28px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
    opacity: 0;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(232,160,48,0.08);
}
.profile-overlay.open .profile-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.profile-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}
.profile-close-btn:hover {
    background: rgba(232,160,48,0.15);
    color: var(--accent);
}

.profile-skin-col {
    width: 220px;
    min-width: 220px;
    background: linear-gradient(160deg, rgba(232,160,48,0.06) 0%, rgba(7,10,18,0) 60%);
    border-right: 1px solid rgba(232,160,48,0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 32px;
    border-radius: 20px 0 0 20px;
}

.profile-skin-canvas-wrap {
    position: relative;
    width: 160px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-skin-canvas-wrap img {
    filter: drop-shadow(0 16px 32px rgba(0,0,0,0.65));
    animation: skin-float 3s ease-in-out infinite;
}

@keyframes skin-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.profile-skin-glow {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 18px;
    background: radial-gradient(ellipse, rgba(232,160,48,0.35) 0%, transparent 70%);
    pointer-events: none;
}

.profile-info-col {
    flex: 1;
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.profile-header-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-player-name {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.profile-grade-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(232,160,48,0.12);
    border: 1px solid rgba(232,160,48,0.25);
    border-radius: 6px;
    padding: 3px 10px;
    width: fit-content;
}

.profile-points-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-pts-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.profile-pts-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.profile-pts-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.profile-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.07);
    border-radius: 3px;
    overflow: hidden;
}

.profile-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent));
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.22,1,0.36,1);
}

.profile-progress-hint {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.profile-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.profile-stat-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-stat-val {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1;
}

.profile-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.profile-meta-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-meta-tag {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 6px;
    padding: 3px 9px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.profile-meta-tag.verified {
    color: #00d97e;
    background: rgba(0,217,126,0.07);
    border-color: rgba(0,217,126,0.20);
}

.profile-admin-section {
    border-top: 1px solid rgba(255,69,0,0.20);
    padding-top: 12px;
    margin-top: 4px;
}
.profile-admin-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #ff6b35;
    margin-bottom: 8px;
}
.profile-admin-orders { display: flex; flex-direction: column; gap: 4px; }
.profile-admin-order {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.75rem;
    padding: 5px 8px;
    background: rgba(255,69,0,0.05);
    border-radius: 6px;
    flex-wrap: wrap;
}
.profile-admin-order-buyer { font-weight: 700; color: var(--text-bright); min-width: 70px; }
.profile-admin-order-offer { color: var(--accent); flex: 1; }
.profile-admin-order-amount { font-weight: 700; color: #00d97e; }
.profile-admin-order-date { color: var(--text-muted); }
.profile-admin-order-status { font-size: 0.68rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.profile-admin-status-completed { background: rgba(0,217,126,0.15);  color: #00d97e; }
.profile-admin-status-paid      { background: rgba(0,217,126,0.15);  color: #00d97e; }
.profile-admin-status-pending   { background: rgba(232,160,48,0.15); color: var(--accent); }
.profile-admin-status-draft     { background: rgba(255,255,255,0.07); color: var(--text-muted); }
.profile-admin-status-failed    { background: rgba(230,57,70,0.15);  color: #e63946; }
.profile-admin-status-expired   { background: rgba(180,180,180,0.12); color: #888; }
.profile-admin-status-refunded  { background: rgba(100,160,255,0.15); color: #6aa0ff; }
.profile-admin-status-cancelled { background: rgba(180,180,180,0.12); color: #888; }
.profile-admin-more { font-size: 0.72rem; color: var(--text-muted); text-align: center; padding-top: 4px; }

@media (max-width: 600px) {
    .profile-panel {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        margin-top: auto;
        max-height: 94vh;
    }
    .profile-skin-col {
        width: 100%;
        min-width: unset;
        background: transparent !important;
        border-right: none;
        border-bottom: 1px solid rgba(232,160,48,0.12);
        border-radius: 24px 24px 0 0;
        padding: 32px 20px 24px;
        flex-direction: row;
        gap: 24px;
        justify-content: center;
    }
    .profile-skin-canvas-wrap {
        width: 100px;
        height: 200px;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .profile-skin-canvas-wrap img {
        width: 100px;
        height: 200px;
        animation: none;
        object-fit: contain;
    }
    .profile-info-col {
        padding: 24px 20px 40px;
        gap: 20px;
        background: var(--bg-card);
    }
    .profile-player-name {
        font-size: 1.5rem;
    }
    .profile-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}


.nav-forum-link {
    font-family: 'Oxanium', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--accent);
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(232,160,48,0.30);
    background: rgba(232,160,48,0.08);
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-forum-link:hover,
.nav-forum-link.active {
    background: rgba(232,160,48,0.18);
    border-color: rgba(232,160,48,0.55);
    color: #fff;
}


.forum-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0 60px;
}
.forum-view { animation: fadeUp 0.25s ease; }
.forum-loading {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
    font-size: 0.95rem;
}
.forum-error {
    color: #ef4444;
    padding: 32px;
    text-align: center;
}
.forum-empty {
    color: var(--text-muted);
    padding: 40px 24px;
    text-align: center;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    border: 1px dashed rgba(255,255,255,0.07);
}


.forum-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.forum-bc-link {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
.forum-bc-link:hover { color: #fff; }
.forum-bc-sep { color: var(--text-muted); }
.forum-bc-current { color: var(--text-main); }


.forum-groups-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
    padding: 4px 2px 12px;
}
.forum-groups-col { display: flex; flex-direction: column; gap: 24px; }

.forum-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.forum-reveal-visible {
    opacity: 1;
    transform: none;
}

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

.forum-group {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    will-change: transform;
}
.forum-group:hover {
    transform: translateY(-3px);
}
.forum-group.forum-mode-fk:hover  { border-color: rgba(155,63,212,0.45);  box-shadow: 0 8px 32px rgba(155,63,212,0.18);  }
.forum-group.forum-mode-mc:hover  { border-color: rgba(0,217,126,0.45);   box-shadow: 0 8px 32px rgba(0,217,126,0.16);   }
.forum-group.forum-mode-ctf:hover { border-color: rgba(230,57,70,0.45);   box-shadow: 0 8px 32px rgba(230,57,70,0.16);   }

.forum-group-title {
    font-family: 'Oxanium', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--accent);
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(232,160,48,0.04);
    display: flex;
    align-items: center;
    gap: 8px;
}
.forum-group-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}
.forum-group.forum-mode-fk .forum-group-title  {
    color: var(--fk-color);
    background: rgba(155,63,212,0.06);
    border-bottom-color: rgba(155,63,212,0.18);
}
.forum-group.forum-mode-fk .forum-group-title::before  { background: var(--fk-color); box-shadow: 0 0 6px rgba(155,63,212,0.6); }
.forum-group.forum-mode-mc .forum-group-title  {
    color: var(--mc-color);
    background: rgba(0,217,126,0.05);
    border-bottom-color: rgba(0,217,126,0.18);
}
.forum-group.forum-mode-mc .forum-group-title::before  { background: var(--mc-color); box-shadow: 0 0 6px rgba(0,217,126,0.6); }
.forum-group.forum-mode-ctf .forum-group-title {
    color: var(--ctf-color);
    background: rgba(230,57,70,0.05);
    border-bottom-color: rgba(230,57,70,0.18);
}
.forum-group.forum-mode-ctf .forum-group-title::before { background: var(--ctf-color); box-shadow: 0 0 6px rgba(230,57,70,0.6); }

.forum-cat-list { display: flex; flex-direction: column; }

.forum-cat-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.18s, padding-left 0.18s;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    outline: none;
}
.forum-cat-row:last-child { border-bottom: none; }
.forum-cat-row:hover { background: rgba(255,255,255,0.05); padding-left: 26px; }
.forum-group.forum-mode-fk  .forum-cat-row:hover { background: rgba(155,63,212,0.06); }
.forum-group.forum-mode-mc  .forum-cat-row:hover { background: rgba(0,217,126,0.05);  }
.forum-group.forum-mode-ctf .forum-cat-row:hover { background: rgba(230,57,70,0.05);  }
.forum-cat-row:focus-visible { background: rgba(232,160,48,0.07); }

.forum-cat-icon {
    font-size: 1.5rem;
    width: 38px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.forum-cat-row:hover .forum-cat-icon { transform: scale(1.2) rotate(-6deg); }

.forum-cat-info { flex: 1; min-width: 0; }
.forum-cat-name {
    font-weight: 600;
    color: var(--text-bright);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.18s;
}
.forum-group.forum-mode-fk  .forum-cat-row:hover .forum-cat-name { color: var(--fk-color); }
.forum-group.forum-mode-mc  .forum-cat-row:hover .forum-cat-name { color: var(--mc-color); }
.forum-group.forum-mode-ctf .forum-cat-row:hover .forum-cat-name { color: var(--ctf-color); }

.forum-cat-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.forum-cat-last { font-size: 0.78rem; color: var(--text-muted); text-align: right; flex-shrink: 0; }
.forum-cat-arrow {
    color: var(--text-muted);
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform 0.18s, color 0.18s;
}
.forum-cat-row:hover .forum-cat-arrow { transform: translateX(4px); color: var(--text-main); }

.forum-staff-badge {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--fk-color);
    background: rgba(155,63,212,0.12);
    border: 1px solid rgba(155,63,212,0.25);
    border-radius: 4px;
    padding: 1px 6px;
}


.forum-threads-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px 14px 0 0;
    margin-bottom: 0;
    flex-wrap: wrap;
}
.forum-threads-header.forum-mode-fk  { border-color: rgba(155,63,212,0.25);  }
.forum-threads-header.forum-mode-mc  { border-color: rgba(0,217,126,0.25);    }
.forum-threads-header.forum-mode-ctf { border-color: rgba(230,57,70,0.25);    }

.forum-threads-title {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-bright);
}
.forum-threads-count { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.forum-new-btn { padding: 9px 18px; font-size: 0.85rem; flex-shrink: 0; }

.forum-thread-list {
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
    background: var(--bg-card);
}

.forum-thread-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.18s;
    outline: none;
}
.forum-thread-row:last-child { border-bottom: none; }
.forum-thread-row:hover { background: rgba(255,255,255,0.04); }
.forum-thread-row.is-pinned { background: rgba(232,160,48,0.04); }
.forum-thread-row:focus-visible { background: rgba(232,160,48,0.07); }

.forum-thread-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}
.forum-thread-avatar img { width: 32px; height: 32px; display: block; }
.forum-thread-info { flex: 1; min-width: 0; }
.forum-thread-title {
    font-weight: 600;
    color: var(--text-bright);
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 5px;
}
.forum-thread-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }

.forum-thread-stats {
    text-align: center;
    flex-shrink: 0;
    width: 64px;
}
.forum-thread-stat-val { font-weight: 700; color: var(--text-bright); font-size: 0.9rem; }
.forum-thread-stat-lbl { font-size: 0.72rem; color: var(--text-muted); }

.forum-thread-last {
    text-align: right;
    flex-shrink: 0;
    width: 100px;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.forum-last-reply-name { color: var(--text-main); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-last-date { font-size: 0.75rem; }
.forum-last-date.muted { color: var(--text-muted); }

.forum-badge-pin,
.forum-badge-lock { font-size: 0.85rem; }

.forum-dot { color: var(--text-muted); margin: 0 4px; }

.forum-pagination {
    display: flex;
    gap: 6px;
    padding: 16px 0;
    justify-content: center;
    flex-wrap: wrap;
}
.forum-page-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.forum-page-btn:hover { background: rgba(232,160,48,0.12); border-color: rgba(232,160,48,0.3); color: var(--accent); }
.forum-page-btn.active { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }


.forum-thread-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.forum-thread-header.forum-mode-fk  { border-color: rgba(155,63,212,0.25);  }
.forum-thread-header.forum-mode-mc  { border-color: rgba(0,217,126,0.25);    }
.forum-thread-header.forum-mode-ctf { border-color: rgba(230,57,70,0.25);    }

.forum-thread-title-big {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.forum-thread-header-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }

.forum-mod-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.forum-mod-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(155,63,212,0.3);
    background: rgba(155,63,212,0.08);
    color: var(--fk-color);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
}
.forum-mod-btn:hover { background: rgba(155,63,212,0.18); border-color: rgba(155,63,212,0.5); }
.forum-mod-danger {
    border-color: rgba(230,57,70,0.3);
    background: rgba(230,57,70,0.07);
    color: var(--ctf-color);
}
.forum-mod-danger:hover { background: rgba(230,57,70,0.18); border-color: rgba(230,57,70,0.5); }


.forum-posts-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.forum-post {
    display: flex;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}
.forum-post-op { border-color: rgba(232,160,48,0.25); }
.forum-post-deleted { padding: 18px 24px; color: var(--text-muted); font-size: 0.88rem; }

.forum-post-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 16px;
    width: 110px;
    min-width: 110px;
    border-right: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.015);
    text-align: center;
}
.forum-post-author-link { text-decoration: none; cursor: pointer; }
.forum-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: block;
    image-rendering: pixelated;
    background: rgba(255,255,255,0.05);
}
.forum-post-author-info { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.forum-post-name {
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s;
    word-break: break-all;
}
.forum-post-name:hover { opacity: 0.75; }
.forum-post-grade { font-size: 0.72rem; }
.forum-post-op-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(232,160,48,0.12);
    border: 1px solid rgba(232,160,48,0.25);
    border-radius: 4px;
    padding: 1px 5px;
    margin-top: 2px;
}

.forum-post-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.forum-post-content {
    flex: 1;
    padding: 18px 20px 12px;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}
.forum-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 20px 12px;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.forum-post-date { font-size: 0.75rem; color: var(--text-muted); }


.forum-reply-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
}
.forum-reply-title {
    font-family: 'Oxanium', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 14px;
}
.forum-locked-notice {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 12px;
    font-size: 0.9rem;
}


@media (max-width: 700px) {
    .forum-thread-stats { display: none; }
    .forum-thread-last  { display: none; }
    .forum-post-author  { width: 72px; min-width: 72px; padding: 14px 10px; }
    .forum-post-avatar  { width: 32px; height: 32px; }
    .forum-threads-header { flex-direction: column; align-items: flex-start; }
    .forum-new-btn { width: 100%; }
    .forum-mod-actions { width: 100%; }
    .nav-forum-link { display: none; }
}


.forum-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    flex-wrap: wrap;
}
.forum-editor-area {
    border-radius: 0 0 10px 10px !important;
    border-top: none !important;
}
.forum-tb-btn {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    line-height: 1.4;
}
.forum-tb-btn:hover {
    background: rgba(232,160,48,0.10);
    border-color: rgba(232,160,48,0.25);
    color: var(--accent);
}
.forum-tb-sep {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.10);
    margin: 0 4px;
    flex-shrink: 0;
}
.forum-editor-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
}
.forum-editor-hint code {
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    padding: 1px 4px;
    font-size: 0.72rem;
}
.forum-preview-box {
    min-height: 80px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.7;
}


.forum-inline-code {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 4px;
    padding: 1px 5px;
    font-family: monospace;
    font-size: 0.85em;
    color: var(--mc-color);
}
.forum-blockquote {
    display: block;
    border-left: 3px solid var(--accent);
    padding: 4px 12px;
    margin: 4px 0;
    color: var(--text-muted);
    font-style: italic;
    background: rgba(232,160,48,0.04);
    border-radius: 0 6px 6px 0;
}
.forum-list-item {
    display: block;
    padding: 2px 0 2px 8px;
}
.forum-link {
    color: var(--accent);
    text-decoration: underline;
    word-break: break-all;
}
.forum-link:hover { color: #fff; }


.forum-move-opt-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.88rem;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.15s, border-color 0.15s;
}
.forum-move-opt-btn:hover {
    background: rgba(232,160,48,0.08);
    border-color: rgba(232,160,48,0.3);
    color: var(--text-bright);
}
.forum-move-opt-btn:disabled { opacity: 0.5; cursor: not-allowed; }


.forum-notif-bell {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(232,160,48,0.25);
    background: rgba(232,160,48,0.06);
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.forum-notif-bell:hover { background: rgba(232,160,48,0.15); color: var(--accent); }
.forum-notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    background: #e63946;
    color: #fff;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    pointer-events: none;
}
.forum-notif-badge[hidden] { display: none !important; }

.forum-notif-panel {
    position: fixed;
    top: 72px;
    right: 16px;
    width: 340px;
    max-height: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.forum-notif-panel[hidden] { display: none !important; }
.forum-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-bright);
}
.forum-notif-markall {
    font-size: 0.72rem;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}
.forum-notif-markall:hover { color: #fff; }
.forum-notif-list { overflow-y: auto; flex: 1; }
.forum-notif-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 24px;
    font-size: 0.85rem;
}
.forum-notif-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    transition: background 0.15s;
}
.forum-notif-item:last-child { border-bottom: none; }
.forum-notif-item:hover { background: rgba(255,255,255,0.04); }
.forum-notif-item.unread { background: rgba(232,160,48,0.05); border-left: 3px solid var(--accent); }
.forum-notif-text { font-size: 0.83rem; color: var(--text-main); }
.forum-notif-date { font-size: 0.72rem; color: var(--text-muted); }


.profile-personal-orders-section {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 14px;
    margin-top: 4px;
}


html.is-locked, body.is-locked {
    overflow: hidden !important;
    height: 100% !important;
}

/* Succès & Médailles - profil joueur */
.profile-section-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 8px;
}

.profile-achievements-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-achievement-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 5px 10px 5px 7px;
    cursor: default;
    transition: background .15s, border-color .15s;
}

.profile-achievement-badge:hover {
    background: rgba(232,160,48,.08);
    border-color: rgba(232,160,48,.25);
}

.pab-icon { font-size: 1.1rem; line-height: 1; }

.pab-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pab-name {
    font-size: .75rem;
    font-weight: 600;
    color: #ddd;
    line-height: 1.2;
}

.pab-mode {
    font-size: .62rem;
    color: #666;
    font-weight: 600;
    letter-spacing: .05em;
}
