/* static/style.css — Craftoria Minecraft UI */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@600;700&display=swap');

:root {
    --mc-bg-panel: #2C2C2C;
    --mc-bg-panel-deep: #1F1F1F;
    --mc-bg-slot: #8B8B8B;
    --mc-bg-btn: #6F6F6F;
    --mc-bg-btn-hover: #7F7F7F;
    --mc-bg-btn-active: #3C8527;
    --mc-grass: #5D9C3D;
    --mc-grass-dark: #3C8527;
    --mc-lime: #55FF55;
    --mc-gold: #FFAA00;
    --mc-red: #FF5555;
    --mc-aqua: #55FFFF;
    --mc-text: #F0F0F0;
    --mc-text-dim: #A8A8A8;
    --mc-border: #000000;
    --mc-bevel-light: rgba(255, 255, 255, 0.35);
    --mc-bevel-dark: rgba(0, 0, 0, 0.55);
    --mc-font: 'Manrope', 'Segoe UI', sans-serif;
    --mc-font-display: 'Sora', 'Manrope', sans-serif;
    --mc-shadow-text: 1px 1px 0 rgba(0, 0, 0, 0.35);
    --mc-panel-shadow:
        inset 3px 3px 0 var(--mc-bevel-light),
        inset -3px -3px 0 var(--mc-bevel-dark);
    --mc-btn-shadow:
        inset -2px -4px 0 #373737,
        inset 2px 2px 0 rgba(255, 255, 255, 0.28);
}

/* ==================== ОБЩИЕ СТИЛИ ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    image-rendering: auto;
}

body {
    font-family: var(--mc-font);
    color: var(--mc-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    letter-spacing: 0.01em;
    line-height: 1.55;
    text-shadow: none;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--mc-font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    text-shadow: none;
}

/* Фоновое изображение с blur + лёгкий «dirt»-тон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(180deg, rgba(45, 90, 39, 0.18), rgba(20, 12, 8, 0.35)),
        url('https://avatars.mds.yandex.net/i?id=75e9461afa62abd725ec7773059805c888b7812f-10877501-images-thumbs&n=13');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(0, 0, 0, 0.03) 3px,
            rgba(0, 0, 0, 0.03) 4px
        ),
        rgba(8, 12, 6, 0.78);
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    image-rendering: auto;
}

button,
input,
select,
textarea {
    font-family: var(--mc-font);
}

/* ==================== ШАПКА ==================== */
header {
    background:
        linear-gradient(180deg, #4A7A32 0%, #3C8527 12%, #2A5A1C 12%, #1F1F1F 12%);
    padding: 0.85rem 2rem 1rem;
    border-bottom: 4px solid #000;
    box-shadow:
        0 4px 0 #0A0A0A,
        inset 0 2px 0 rgba(255, 255, 255, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 52px;
    width: auto;
    display: block;
    border: none;
    box-shadow: none;
    background: none;
}

.nav-menu {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.nav-btn {
    background: var(--mc-bg-btn);
    color: #fff;
    padding: 0.55rem 1.1rem;
    border-radius: 0;
    border: 3px solid #000;
    box-shadow: var(--mc-btn-shadow);
    font-weight: 600;
    text-shadow: var(--mc-shadow-text);
    transition: background 0.12s ease, transform 0.08s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-btn .material-symbols-outlined {
    font-size: 1.35rem;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.nav-btn:hover {
    background: var(--mc-bg-btn-hover);
    transform: translateY(-1px);
}

.nav-btn:active {
    transform: translateY(1px);
    box-shadow:
        inset 2px 2px 0 #373737,
        inset -2px -2px 0 rgba(255, 255, 255, 0.15);
}

.nav-btn.active {
    background: var(--mc-grass-dark);
    color: #fff;
}

.nav-btn,
.profile-btn {
    position: relative;
}

.nav-btn[data-tip]::after,
.profile-btn[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    background: #2C2C2C;
    color: #fff;
    border: 3px solid #000;
    box-shadow: 3px 3px 0 #000;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 300;
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.nav-btn[data-tip]:hover::after,
.profile-btn[data-tip]:hover::after,
.nav-btn[data-tip]:focus-visible::after,
.profile-btn[data-tip]:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.profile-btn {
    width: 48px;
    height: 48px;
    border-radius: 0;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mc-bg-btn);
    border: 3px solid #000;
    box-shadow: var(--mc-btn-shadow);
}

.profile-btn:hover {
    background: var(--mc-bg-btn-hover);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    overflow: hidden;
}

/* ==================== ОСНОВНОЙ КОНТЕНТ ==================== */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.server-info {
    margin-bottom: 2rem;
    text-align: center;
}

.server-info h1 {
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.server-info p {
    font-size: 1.1rem;
    color: var(--mc-text-dim);
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

/* Длинные тексты: правила, политика, соглашения */
main > p,
.lore-content,
.description,
.legal-content,
.rules-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e6e6e6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

main > p {
    margin-bottom: 0.85rem;
    padding: 0 0.5rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 0;
    overflow: hidden;
    border: 4px solid #000;
    box-shadow: var(--mc-panel-shadow), 0 8px 0 rgba(0, 0, 0, 0.35);
    background: var(--mc-bg-panel);
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-card {
    background: var(--mc-bg-panel);
    padding: 1.5rem;
    border-radius: 0;
    text-align: center;
    flex: 1;
    min-width: 200px;
    border: 3px solid #000;
    box-shadow: var(--mc-panel-shadow);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--mc-text-dim);
    font-size: 0.95rem;
}

/* ==================== РЕКЛАМА YANDEX.RTB ==================== */
.yandex-rtb-wrap {
    width: 100%;
    max-width: 1400px;
    margin: 12px auto 4px;
    padding: 0 2rem;
}

.yandex-rtb-wrap #yandex_rtb_R-A-19825477-1 {
    min-height: 90px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .yandex-rtb-wrap {
        padding: 0 1rem;
        margin-top: 8px;
    }
}

/* ==================== ПОДВАЛ ==================== */
footer {
    background:
        linear-gradient(0deg, #5A3A1A 0%, #3E2812 10%, #1F1F1F 10%);
    padding: 2rem;
    margin-top: 2rem;
    border-top: 4px solid #000;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.06);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--mc-text-dim);
    transition: color 0.15s ease;
    border-bottom: 2px solid transparent;
}

.footer-link:hover {
    color: var(--mc-lime);
    border-bottom-color: var(--mc-lime);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 3px solid #000;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: #888;
    font-size: 0.9rem;
}

/* ==================== COOKIE NOTIFICATION ==================== */
.cookie-notification {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--mc-bg-panel);
    padding: 1.25rem 2rem;
    border-top: 4px solid #000;
    z-index: 1000;
    display: none;
    box-shadow:
        0 -6px 0 rgba(0, 0, 0, 0.35),
        var(--mc-panel-shadow);
}

.cookie-notification.active {
    display: block;
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-title {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.cookie-description {
    color: var(--mc-text-dim);
    font-size: 0.95rem;
    line-height: 1.45;
}

.cookie-description a {
    color: var(--mc-aqua);
    text-decoration: underline;
}

.cookie-description a:hover {
    color: #7AFFFF;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.65rem 1.35rem;
    border-radius: 0;
    font-weight: 700;
    cursor: pointer;
    border: 3px solid #000;
    box-shadow: var(--mc-btn-shadow);
    transition: background 0.12s ease, transform 0.08s ease;
    font-size: 0.95rem;
    text-shadow: var(--mc-shadow-text);
    color: #fff;
}

.cookie-btn.accept {
    background: var(--mc-grass-dark);
}

.cookie-btn.accept:hover {
    background: var(--mc-grass);
}

.cookie-btn.reject {
    background: var(--mc-bg-btn);
}

.cookie-btn.reject:hover {
    background: var(--mc-bg-btn-hover);
}

.cookie-btn:active {
    transform: translateY(1px);
}

/* ==================== INDEX PAGE ==================== */
.about-project, .lore-section, .modpack-section {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--mc-bg-panel);
    padding: 2rem;
    border-radius: 0;
    text-align: center;
    border: 3px solid #000;
    box-shadow: var(--mc-panel-shadow);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--mc-grass);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(2px 2px 0 #000);
}

.lore-section {
    background: linear-gradient(to bottom, rgba(15, 26, 12, 0.85), rgba(26, 42, 20, 0.9));
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
}

.lore-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #d8e0d0;
}

.highlight {
    font-size: 1.4rem;
    color: var(--mc-lime);
    margin-top: 2rem;
    text-align: center;
    font-weight: 700;
}

/* ==================== HOW TO PLAY ==================== */
.how-to-play {
    margin: 3.5rem 0 1rem;
}

.how-to-play h2 {
    text-align: center;
    font-size: 2.1rem;
    color: #fff;
    margin-bottom: 0.4rem;
}

.how-to-subtitle {
    text-align: center;
    color: var(--mc-text-dim);
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
}

.how-to-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    counter-reset: none;
}

.how-to-step {
    background: var(--mc-bg-panel);
    border: 3px solid #000;
    box-shadow: var(--mc-panel-shadow);
    padding: 1.4rem 1.2rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    position: relative;
    animation: mc-pop 0.45s ease both;
}

.how-to-step:nth-child(2) { animation-delay: 0.06s; }
.how-to-step:nth-child(3) { animation-delay: 0.12s; }
.how-to-step:nth-child(4) { animation-delay: 0.18s; }

.how-to-step-done {
    border-color: var(--mc-grass);
    background: linear-gradient(180deg, #2C2C2C 0%, #1a2a14 100%);
}

.how-to-num {
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mc-bg-btn);
    border: 3px solid #000;
    box-shadow: var(--mc-btn-shadow);
    font-family: var(--mc-font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    text-shadow: var(--mc-shadow-text);
}

.how-to-step-done .how-to-num {
    background: var(--mc-grass-dark);
}

.how-to-step h3 {
    font-size: 1.2rem;
    color: #fff;
}

.how-to-step p {
    color: var(--mc-text-dim);
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

.how-to-step strong {
    color: var(--mc-lime);
}

.how-to-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.how-to-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mc-bg-btn);
    color: #fff;
    border: 3px solid #000;
    box-shadow: var(--mc-btn-shadow);
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-shadow: var(--mc-shadow-text);
    cursor: pointer;
    transition: background 0.12s ease, transform 0.08s ease;
}

.how-to-link:hover {
    background: var(--mc-bg-btn-hover);
    transform: translateY(-1px);
}

.how-to-link:active {
    transform: translateY(1px);
    box-shadow:
        inset 2px 2px 0 #373737,
        inset -2px -2px 0 rgba(255, 255, 255, 0.15);
}

.how-to-link-primary {
    background: var(--mc-grass-dark);
}

.how-to-link-primary:hover {
    background: var(--mc-grass);
}

@media (max-width: 1024px) {
    .how-to-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .how-to-steps {
        grid-template-columns: 1fr;
    }
}

/* ==================== APPLY PAGE ==================== */
.apply-container {
    max-width: 760px;
    margin: 2rem auto 3rem;
    background: var(--mc-bg-panel);
    padding: 2.4rem 2.2rem;
    border: 4px solid #000;
    box-shadow: var(--mc-panel-shadow), 0 12px 0 rgba(0,0,0,0.4);
}

.apply-container h1 {
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 0.5rem;
}

.apply-lead {
    text-align: center;
    color: var(--mc-text-dim);
    margin-bottom: 1.8rem;
}

.apply-status {
    text-align: center;
    padding: 1.4rem 1.2rem;
    border: 3px solid #000;
    background: #1F1F1F;
}

.apply-status p {
    color: var(--mc-text-dim);
    margin-top: 0.5rem;
}

.apply-container textarea,
.apply-container input[type="email"] {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 3px solid #000;
    background: #353535;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: var(--mc-font);
    resize: vertical;
}

.apply-container textarea:focus,
.apply-container input[type="email"]:focus {
    outline: none;
    border-color: #55FF55;
    background: #3A3A3A;
}

.apply-container .form-group {
    margin-bottom: 1.2rem;
}

.apply-container label {
    display: block;
    color: #c0c0c0;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.apply-quiz {
    margin: 1.8rem 0 1.2rem;
    padding-top: 1.2rem;
    border-top: 3px solid #000;
}

.apply-quiz h2 {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
}

.apply-quiz-hint {
    color: var(--mc-text-dim);
    margin-bottom: 1.2rem;
}

.apply-quiz-hint a {
    color: var(--mc-lime);
    text-decoration: underline;
}

.quiz-item {
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: #1F1F1F;
    border: 3px solid #000;
}

.quiz-item p {
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.45rem 0.2rem;
    cursor: pointer;
    color: #d8d8d8;
}

.quiz-option input {
    margin-top: 0.25rem;
    accent-color: #3C8527;
}

.apply-prefs {
    margin: 1.8rem 0 1.2rem;
    padding-top: 1.2rem;
    border-top: 3px solid #000;
}

.apply-prefs h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.play-style-other {
    margin-top: 0.9rem;
    margin-bottom: 0;
}

/* ==================== SHOP PAGE ==================== */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.item-card {
    background: var(--mc-bg-panel);
    border-radius: 0;
    overflow: hidden;
    border: 3px solid #000;
    box-shadow: var(--mc-panel-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.item-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--mc-panel-shadow), 0 10px 0 rgba(0, 0, 0, 0.35);
}

.item-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    image-rendering: pixelated;
}

.item-body {
    padding: 1.5rem;
    text-align: center;
}

.item-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.item-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--mc-gold);
    margin: 1rem 0;
    text-shadow: none;
}

.buy-btn {
    background: var(--mc-grass-dark);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 0;
    font-weight: 700;
    transition: background 0.12s ease, transform 0.08s ease;
    cursor: pointer;
    border: 3px solid #000;
    box-shadow: var(--mc-btn-shadow);
    font-size: 1rem;
    text-shadow: var(--mc-shadow-text);
}

.buy-btn:hover {
    background: var(--mc-grass);
}

.buy-btn:active {
    transform: translateY(1px);
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--mc-bg-panel);
    padding: 2rem;
    border-radius: 0;
    width: 90%;
    max-width: 400px;
    border: 4px solid #000;
    box-shadow: var(--mc-panel-shadow), 0 12px 0 rgba(0, 0, 0, 0.4);
}

.modal-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #ccc;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: #1A1A1A;
    border: 3px solid #000;
    border-radius: 0;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
    box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.55);
}

.form-group input:focus {
    outline: none;
    border-color: var(--mc-grass);
    box-shadow:
        inset 2px 2px 0 rgba(0, 0, 0, 0.55),
        0 0 0 2px rgba(85, 255, 85, 0.25);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-btn {
    flex: 1;
    padding: 0.8rem;
    border-radius: 0;
    border: 3px solid #000;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.12s ease;
    box-shadow: var(--mc-btn-shadow);
    text-shadow: var(--mc-shadow-text);
}

.confirm-btn {
    background: var(--mc-grass-dark);
    color: #fff;
}

.confirm-btn:hover {
    background: var(--mc-grass);
}

.cancel-btn {
    background: var(--mc-bg-btn);
    color: #fff;
}

.cancel-btn:hover {
    background: var(--mc-bg-btn-hover);
}

.promo-info {
    color: #888;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

#modalItemTitle {
    color: #55FF55;
    font-weight: bold;
}

.error-message {
    color: #ff4444;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.success-message {
    color: #55FF55;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

/* ==================== NOTIFICATION ==================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0;
    border: 3px solid #000;
    color: white;
    font-weight: 700;
    text-shadow: var(--mc-shadow-text);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: var(--mc-btn-shadow);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background: #3C8527;
}

.notification.error {
    background: #AA2A2A;
}

.notification.warning {
    background: #C9A227;
}

.notification-info {
    background: #3A6EA5;
}

.close-notification {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
    padding: 0 0.5rem;
}

/* ==================== GALLERY PAGE ==================== */





.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.gallery-item {
    background-color: #2C2C2C;
    border-radius: 0;
    overflow: hidden;
    border: 3px solid #000;
    box-shadow: var(--mc-panel-shadow);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.upload-section {
    max-width: 800px;
    margin: 4rem auto;
    background-color: #2C2C2C;
    border: 3px solid #000;
    border-radius: 0;
    padding: 2rem;
    text-align: center;
}

.upload-section h2 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.upload-area {
    border: 3px dashed #666;
    border-radius: 0;
    padding: 2rem;
    background-color: #3A3A3A;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background-color: #4A4A4A;
    border-color: #555;
}

.preview-container {
    margin: 1.5rem 0;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0A0A0A;
    border-radius: 0;
    padding: 1rem;
}

.preview-image {
    max-width: 100%;
    max-height: 350px;
    border-radius: 0;
}

.upload-status {
    margin-top: 1rem;
    min-height: 1.5em;
    font-size: 1.1rem;
}

.status-success { color: #88ff88; }
.status-error { color: #ff8888; }
.status-loading { color: #ffff88; }

.upload-btn {
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background-color: #3A3A3A;
    color: #e0e0e0;
    border: 3px solid #000;
    border-radius: 0;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover:not(:disabled) {
    background-color: #4A4A4A;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Gallery Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #000;
    color: #fff;
}
.lightbox.is-open { display: block; }
.lightbox-viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    touch-action: none;
}
.lightbox-viewport.is-zoomed { cursor: grab; }
.lightbox-viewport.is-panning { cursor: grabbing; }
.lightbox-zoom {
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transform-origin: center center;
    backface-visibility: hidden;
}
.lightbox-image {
    display: block;
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
.lightbox-ui {
    position: absolute;
    z-index: 3;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    opacity: 0.55;
    font-size: 2rem;
    line-height: 1;
    padding: 8px 12px;
}
.lightbox-ui:hover { opacity: 1; }
.lightbox-close { top: 8px; right: 10px; font-size: 2.2rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 6px; }
.lightbox-nav.next { right: 6px; }
.lightbox-meta {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
    pointer-events: none;
}
.lightbox-meta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    pointer-events: auto;
}
.lightbox-meta img {
    width: 22px;
    height: 22px;
    object-fit: cover;
}
.lightbox-count { color: #888; }

.modal-image {
    max-width: 95%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 0;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
}

.nav-arrow:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.prev { left: 20px; }
.next { right: 20px; }

.image-info {
    position: absolute;
    bottom: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 0;
    font-size: 18px;
}

/* ==================== AUTH PAGES (LOGIN/REGISTER) ==================== */
.auth-container { 
    max-width: 460px; 
    margin: 3rem auto; 
    background: var(--mc-bg-panel); 
    padding: 2.8rem 2.5rem; 
    border-radius: 0; 
    border: 4px solid #000; 
    box-shadow: var(--mc-panel-shadow), 0 12px 0 rgba(0,0,0,0.4); 
}

.auth-title { 
    text-align: center; 
    font-size: 2.4rem; 
    margin-bottom: 2rem; 
    color: #fff; 
    font-weight: 700; 
}

.form-grid { 
    display: grid; 
    gap: 1.4rem; 
    margin-bottom: 1.5rem; 
}

.auth-container .form-group { 
    display: flex; 
    flex-direction: column; 
}

.auth-container label { 
    color: #c0c0c0; 
    font-size: 0.95rem; 
    margin-bottom: 0.5rem; 
    font-weight: 500; 
}

.required { 
    color: #ff3b30; 
}

.optional { 
    color: #888; 
    font-size: 0.85rem; 
}

.auth-container input {
    width: 100%;
    padding: 0.95rem 1.2rem;
    border-radius: 0;
    border: 3px solid #000;
    background: #353535;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s;
}

.auth-container input:focus {
    outline: none;
    border-color: #55FF55;
    background: #3A3A3A;
    box-shadow: 0 0 0 4px rgba(85, 255, 85, 0.15);
}

.agreements { 
    display: grid; 
    gap: 1rem; 
    margin: 1.8rem 0 2rem; 
}

.checkbox-label {
    display: flex; 
    align-items: flex-start; 
    gap: 6px;
    color: #d0d0d0; 
    font-size: 0.94rem; 
    line-height: 1.45;
    cursor: pointer; 
    user-select: none;
}

.checkbox-label a { 
    color: #55FF55; 
    text-decoration: underline; 
    font-weight: 200; 
}

.checkbox-label a:hover { 
    color: #3C8527; 
}

.checkbox-label input[type="checkbox"] { 
    position: absolute; 
    opacity: 0; 
    width: 0; 
    height: 0; 
}

.checkmark {
    width: 22px; 
    height: 22px; 
    flex-shrink: 0;
    background: #353535; 
    border: 3px solid #000;
    border-radius: 0; 
    margin-top: 1px;
    transition: all 0.25s;
    position: relative;
}

.checkbox-label input:checked ~ .checkmark {
    background: #55FF55; 
    border-color: #55FF55;
}

.checkmark:after {
    content: ""; 
    position: absolute; 
    display: none;
    left: 7px; 
    top: 3px;
    width: 6px; 
    height: 11px;
    border: solid #0A0A0A; 
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after { 
    display: block; 
}

.submit-btn {
    width: 100%; 
    padding: 1.1rem;
    background: #3C8527; 
    color: #fff;
    font-weight: 700; 
    font-size: 1.15rem;
    border: 3px solid #000; 
    border-radius: 0;
    box-shadow: var(--mc-btn-shadow);
    text-shadow: var(--mc-shadow-text);
    cursor: pointer; 
    margin-top: 0.5rem;
    transition: background 0.12s ease, transform 0.08s ease;
}

.submit-btn:hover:not(:disabled) { 
    background: #5D9C3D; 
}

.submit-btn.loading {
    pointer-events: none; 
    opacity: 0.8; 
    cursor: not-allowed;
}

.loader {
    display: inline-block; 
    width: 18px; 
    height: 18px;
    border: 3px solid #0A0A0A; 
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
    margin-right: 10px; 
    vertical-align: middle;
}

@keyframes spin { 
    to { transform: rotate(360deg); } 
}

.auth-footer { 
    text-align: center; 
    margin-top: 2rem; 
    color: #888; 
    font-size: 0.95rem; 
}

.auth-footer a { 
    color: #55FF55; 
    font-weight: 500; 
    text-decoration: underline; 
}

.error-msg { 
    color: #ff3b30; 
    text-align: center; 
    margin-top: 1rem; 
    font-size: 0.95rem; 
}

.success-msg { 
    color: #55FF55; 
    text-align: center; 
    margin-top: 1rem; 
    font-size: 0.95rem; 
}

/* ==================== PROFILE PAGE ==================== */
.profile-container {
    max-width: 1100px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.profile-sidebar {
    background: #2C2C2C;
    border-radius: 0;
    padding: 2rem;
    text-align: center;
    border: 3px solid #000;
}

.profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 0;
    object-fit: cover;
    border: 4px solid #000;
    box-shadow: var(--mc-btn-shadow);
    margin-bottom: 1.5rem;
    image-rendering: pixelated;
}

.profile-main {
    min-width: 0;
}

.state-editor-wrap {
    max-width: 1100px;
    margin: 0 auto 3rem;
    padding: 0 0 0.5rem;
}
.state-editor-wrap form {
    margin: 0;
}
.state-editor-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    padding: 1.2rem 1.5rem;
    font: 800 1.2rem var(--font, inherit);
    color: #fff;
    background: #3C8527;
    border: 3px solid #000;
    box-shadow: var(--mc-btn-shadow);
    text-shadow: var(--mc-shadow-text);
    cursor: pointer;
}
.state-editor-btn:hover {
    background: #4aa32f;
}
.state-editor-btn .material-symbols-outlined {
    font-size: 1.6rem;
}
.state-editor-error {
    margin: 0 0 0.8rem;
    text-align: center;
    color: #ff5555;
    font-weight: 700;
}

.profile-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.profile-tab {
    padding: 8px 16px;
    border: 3px solid #000;
    background: #6F6F6F;
    color: #fff;
    font-family: var(--mc-font);
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--mc-btn-shadow);
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-tab:hover {
    background: #7F7F7F;
}

.profile-tab.is-active {
    background: #3C8527;
    box-shadow:
        inset 2px 2px 0 #2A5A1C,
        inset -2px -2px 0 rgba(255, 255, 255, 0.15);
}

.profile-tab-panel[hidden] {
    display: none;
}

.state-placeholder {
    background: #2C2C2C;
    border: 3px solid #000;
    padding: 2rem;
    min-height: 220px;
}

.state-placeholder-title {
    font-family: var(--mc-font-display);
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.state-placeholder p {
    color: var(--mc-text-dim);
}

.state-card {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    background: #2C2C2C;
    border: 3px solid #000;
    padding: 1.2rem;
    margin-bottom: 0.5rem;
    box-shadow: inset 10px 0 0 var(--state-color, #3C8527);
    padding-left: calc(1.2rem + 10px);
}

.state-flag {
    width: 144px;
    height: 96px;
    object-fit: cover;
    border: 3px solid #000;
    flex-shrink: 0;
    background: #1a1a1a;
}

.state-card-body {
    min-width: 0;
}

.state-id {
    color: var(--mc-text-dim);
    margin-top: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.state-id code {
    font-family: ui-monospace, Consolas, monospace;
    color: #fff;
    background: #1a1a1a;
    border: 2px solid #000;
    padding: 1px 6px;
}

.state-motto {
    color: var(--state-color, #FFAA00);
    font-style: italic;
    margin-top: 0.35rem;
}

.state-rank {
    color: var(--mc-text-dim);
    margin-top: 0.5rem;
    font-weight: 700;
}

.state-block + .state-block {
    margin-top: 2.2rem;
    padding-top: 1.6rem;
    border-top: 3px solid #000;
}

.state-members,
.state-manage {
    background: #2C2C2C;
    border: 3px solid #000;
    padding: 1.2rem;
    margin-top: 1.5rem;
}

.state-members h3,
.state-manage h3 {
    margin-bottom: 0.9rem;
    font-size: 1.15rem;
}

.state-manage-wrap {
    margin-top: 1.5rem;
    background: #2C2C2C;
    border: 3px solid #000;
}

.state-manage-wrap > summary {
    cursor: pointer;
    padding: 1.2rem;
    font-weight: 800;
    font-size: 1.15rem;
    list-style: none;
    user-select: none;
}

.state-manage-wrap > summary::-webkit-details-marker {
    display: none;
}

.state-manage-wrap > summary::after {
    content: "▸";
    float: right;
}

.state-manage-wrap[open] > summary::after {
    content: "▾";
}

.state-manage-wrap .state-manage {
    border: none;
    margin-top: 0;
    padding-top: 0;
}

.state-manage-section {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 2px solid #000;
}

.state-create-hint {
    color: var(--mc-text-dim);
    margin-bottom: 1rem;
}

.state-member-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.state-member {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 2px solid #000;
    background: #1f1f1f;
    color: #fff;
}

a.state-member:hover {
    background: #3A3A3A;
}

.state-member img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border: 2px solid #000;
}

.state-member-name {
    font-weight: 700;
    flex: 1;
}

.state-member-rank {
    color: var(--mc-text-dim);
    font-size: 0.85rem;
}

.state-member-admin {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.state-member-admin .state-member {
    flex: 1;
    min-width: 180px;
}

.state-inline-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.state-ruler-tag {
    border: 2px solid #000;
    background: #AA5500;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 10px;
}

.state-form .form-group {
    margin-bottom: 0.9rem;
}

.state-form-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
}

.state-form input[type="text"],
.state-form input[type="file"],
.state-form select,
.state-inline-form select {
    width: 100%;
    padding: 10px;
    border: 3px solid #000;
    background: #1a1a1a;
    color: #fff;
}

.state-form input[type="color"] {
    width: 72px;
    height: 40px;
    padding: 2px;
    border: 3px solid #000;
    background: #1a1a1a;
    cursor: pointer;
}

.state-inline-form select {
    width: auto;
    min-width: 150px;
}

.state-btn {
    padding: 8px 14px;
    background-color: #3A3A3A;
    color: #e0e0e0;
    border: 3px solid #000;
    font-weight: 700;
    cursor: pointer;
}

a.state-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    color: #e0e0e0;
}

.state-map-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 12px 0 4px;
}

.state-map-row .state-create-hint {
    margin: 0;
    flex: 1 1 220px;
}

.state-btn:hover:not(:disabled) {
    background-color: #4A4A4A;
}

.state-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.state-btn-danger {
    background-color: #AA0000;
}

.state-btn-danger:hover:not(:disabled) {
    background-color: #CC0000;
}

.state-btn-gold {
    background-color: #AA5500;
}

.state-btn-gold:hover:not(:disabled) {
    background-color: #C46A12;
}

.state-flag-preview {
    display: block;
    width: 144px;
    height: 96px;
    object-fit: cover;
    border: 3px solid #000;
    margin-top: 8px;
}

.state-form-msg {
    margin-top: 10px;
    font-weight: 700;
}

.state-form-msg.ok { color: #55FF55; }
.state-form-msg.err { color: #FF5555; }

@media (max-width: 700px) {
    .state-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .state-form-row {
        grid-template-columns: 1fr;
    }
}

.username {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
}

.player-online-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 auto 0.85rem;
    padding: 0.4rem 0.85rem;
    border: 2px solid #000;
    background: #1a1a1a;
    text-align: left;
}

.player-online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.player-online-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.player-online-label {
    font-size: 0.95rem;
    font-weight: 700;
}

.player-online-seen {
    font-size: 0.78rem;
    color: #b0b0b0;
    margin-top: 0.15rem;
}

.player-online-status.is-online .player-online-dot {
    background: #55FF55;
    box-shadow: 0 0 8px #55FF55;
    animation: online-pulse 1.6s ease-in-out infinite;
}

.player-online-status.is-online .player-online-label {
    color: #55FF55;
}

.player-online-status.is-offline .player-online-dot {
    background: #6b7280;
}

.player-online-status.is-offline .player-online-label {
    color: #d1d5db;
}

@keyframes online-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

.user-role {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 0;
    border: 2px solid #000;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0.5rem 0;
    text-shadow: var(--mc-shadow-text);
}

.role-admin    { background: #ff3b30; color: #fff; }
.role-moder    { background: #ff9500; color: #fff; }
.role-premium  { background: #55FF55; color: #0A0A0A; }
.role-vip      { background: #5ac8fa; color: #0A0A0A; }
.role-player   { background: #444; color: #e0e0e0; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-big {
    background: #2C2C2C;
    padding: 1.8rem;
    border-radius: 0;
    text-align: center;
    border: 3px solid #000;
}

.stat-big-value {
    font-size: 2.8rem;
    font-weight: bold;
    color: #ffffff;
}

.stat-big-value-bank {
    font-size: 2.8rem;
    font-weight: bold;
    color: #55FF55;
}

.stat-big-value-green-way {
    font-size: 1.5rem;
    font-weight: bold;
    color: #55FF55;
}

.stat-big-value-red-way {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff0000;
}

.stat-big-label {
    color: #b0b0b0;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.control-panel {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.control-btn {
    padding: 1rem 1.5rem;
    border-radius: 0;
    font-weight: 700;
    text-align: center;
    transition: background 0.12s ease, transform 0.08s ease;
    text-decoration: none;
    display: block;
}

.control-btn:hover { 
    transform: translateY(-2px); 
}

.btn-green { background: #3C8527; color: #fff; border: 3px solid #000; box-shadow: var(--mc-btn-shadow); text-shadow: var(--mc-shadow-text); }
.btn-blue  { background: #3A6EA5; color: #fff; border: 3px solid #000; box-shadow: var(--mc-btn-shadow); text-shadow: var(--mc-shadow-text); }
.btn-red   { background: #AA2A2A; color: #fff; border: 3px solid #000; box-shadow: var(--mc-btn-shadow); text-shadow: var(--mc-shadow-text); }
.btn-yellow { background: #C9A227; color: #fff; border: 3px solid #000; box-shadow: var(--mc-btn-shadow); text-shadow: var(--mc-shadow-text); }

/* ==================== SETTINGS PAGE ==================== */
.settings-container {
    max-width: 800px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    align-items: start;
}

.avatar-section {
    background: #2C2C2C;
    padding: 2rem;
    border-radius: 0;
    text-align: center;
    border: 3px solid #000;
}

.current-avatar {
    width: 180px;
    height: 180px;
    border-radius: 0;
    object-fit: cover;
    border: 4px solid #000;
    box-shadow: var(--mc-btn-shadow);
    margin-bottom: 1.5rem;
    image-rendering: pixelated;
}

.upload-btn {
    background: var(--mc-bg-btn);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 0;
    border: 3px solid #000;
    box-shadow: var(--mc-btn-shadow);
    text-shadow: var(--mc-shadow-text);
    cursor: pointer;
    display: inline-block;
    margin: 0.5rem;
    font-weight: 700;
    transition: background 0.12s ease;
}

.upload-btn:hover { 
    background: var(--mc-bg-btn-hover); 
}

.remove-avatar {
    background: #ff3b30;
    color: #fff;
}

.remove-avatar:hover { 
    background: #d32f2f; 
}

.forms-section {
    display: grid;
    gap: 2rem;
}

.setting-card {
    background: #2C2C2C;
    padding: 2rem;
    border-radius: 0;
    border: 3px solid #000;
}

.setting-card h3 {
    margin-bottom: 1.2rem;
    color: #fff;
    font-size: 1.5rem;
}

.theme-choice {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.theme-choice label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-weight: 700;
}

.theme-choice input[type="radio"] {
    width: auto;
}

.save-btn {
    background: #3C8527;
    color: #fff;
    padding: 0.9rem 2rem;
    border: 3px solid #000;
    border-radius: 0;
    box-shadow: var(--mc-btn-shadow);
    text-shadow: var(--mc-shadow-text);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.12s ease;
}

.save-btn:hover {
    background: #5D9C3D;
}

.setting-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.delete-btn {
    background: #AA0000;
    color: #fff;
    padding: 0.9rem 2rem;
    border: 3px solid #000;
    border-radius: 0;
    box-shadow: var(--mc-btn-shadow);
    text-shadow: var(--mc-shadow-text);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.12s ease;
}

.delete-btn:hover {
    background: #FF5555;
}

.message {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 0;
    font-size: 0.95rem;
}

.success { 
    background: rgba(85,255,85,0.15); 
    color: #55FF55; 
    border: 1px solid #55FF55; 
}

.error { 
    background: rgba(255,59,48,0.15); 
    color: #ff6b6b; 
    border: 1px solid #ff3b30; 
}

/* ==================== PAYMENT PAGES ==================== */
.payment-success-body,
.payment-fail-body {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 100vh; 
    background: #0f172a; 
    color: white; 
    flex-direction: column;
}

.msg { 
    font-size: 1.8rem; 
    text-align: center; 
    margin-bottom: 2rem; 
}

.payment-fail-body .msg {
    color: #ef4444;
}

.btn { 
    padding: 1rem 2rem; 
    background: #10b981; 
    color: white; 
    text-decoration: none; 
    border-radius: 0; 
    font-weight: bold; 
}

.payment-fail-body .btn {
    background: #3b82f6;
}

/* ==================== PAY PAGE ==================== */
.currency-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.currency-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #3a506b;
}

.currency-title {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.currency-subtitle {
    color: #a0a0a0;
    font-size: 1.1rem;
}

.currency-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.currency-info {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 0;
    padding: 1.5rem;
    border: 1px solid #3a506b;
}

.info-title {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #3a506b;
}

.exchange-rate {
    background: rgba(30, 64, 175, 0.1);
    border-radius: 0;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.rate-value {
    font-size: 2rem;
    font-weight: bold;
    color: #3b82f6;
    margin: 0.5rem 0;
}

.rate-description {
    color: #e0e0e0;
    font-size: 0.95rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.benefit-icon {
    color: #10b981;
    margin-right: 0.8rem;
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

.currency-form {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 0;
    padding: 1.5rem;
    border: 1px solid #3a506b;
}

.form-title {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #3a506b;
}

.form-label {
    display: flex;
    justify-content: space-between;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.label-hint {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid #3a506b;
    border-radius: 0;
    color: #ffffff;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.amount-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.amount-btn {
    padding: 0.5rem 1rem;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid #3a506b;
    border-radius: 0;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #ffffff;
}

.amount-btn.active {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
    color: #ffffff;
}

.calculation-result {
    background: rgba(30, 64, 175, 0.1);
    border-radius: 0;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.calculation-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: #e0e0e0;
}

.calculation-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
}

.payment-methods {
    margin-top: 1.5rem;
}

.payment-title {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    background: rgba(30, 41, 59, 0.9);
    border: 2px solid #3a506b;
    border-radius: 0;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.payment-option.selected {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.payment-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.payment-name {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.payment-description {
    color: #a0a0a0;
    font-size: 0.85rem;
}

.pay-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 0;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pay-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.pay-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.secure-payment {
    margin-top: 1rem;
    text-align: center;
    color: #a0a0a0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.secure-icon {
    font-size: 1rem;
}

.return-link {
    display: inline-block;
    margin-top: 2rem;
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.95rem;
}

.return-link:hover {
    text-decoration: underline;
}

/* ==================== MODPACK PAGE ==================== */
.modpack-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
    color: #e0e0e0;
}

.modpack-header {
    text-align: center;
    margin-bottom: 3rem;
}

.modpack-header h1 {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.modpack-header p {
    font-size: 1.2rem;
    color: #b0b0b0;
}

.download-section {
    text-align: center;
    background: #2C2C2C;
    padding: 3rem 2rem;
    border-radius: 0;
    border: 3px solid #000;
    margin-bottom: 3rem;
}

.download-btn {
    display: inline-block;
    background: #3C8527;
    color: #fff;
    padding: 1rem 3rem;
    border-radius: 0;
    border: 3px solid #000;
    box-shadow: var(--mc-btn-shadow);
    text-shadow: var(--mc-shadow-text);
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.12s ease;
}

.download-btn:hover {
    background: #5D9C3D;
}

.version-info {
    margin-top: 1.5rem;
    color: #888;
    font-size: 1.1rem;
}

.description {
    background: #2C2C2C;
    padding: 2.5rem;
    border-radius: 0;
    border: 3px solid #000;
    line-height: 1.7;
}

.description h2 {
    color: #55FF55;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.mod-list {
    column-count: 2;
    column-gap: 2rem;
    margin-top: 1rem;
}

.mod-list li {
    margin-bottom: 0.6rem;
    break-inside: avoid;
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .map-container {
        height: 400px;
    }

    .profile-container,
    .settings-container {
        grid-template-columns: 1fr;
    }

    .currency-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .server-info h1 {
        font-size: 2rem;
    }
    
    .map-container {
        height: 350px;
    }
    
    .footer-nav {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-notification {
        padding: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .gallery-item img { 
        height: 200px; 
    }

    .lightbox-nav { display: none; }
    .lightbox-image { max-width: 100vw; max-height: 100vh; }

    .upload-section { 
        padding: 1.5rem; 
        margin: 3rem 1rem; 
    }

    .modpack-header h1 {
        font-size: 2.3rem;
    }

    .download-btn {
        padding: 1rem 2rem;
        font-size: 1.3rem;
    }

    .mod-list {
        column-count: 1;
    }
}

@media (max-width: 576px) {
    header, main, footer {
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .profile-btn {
        width: 40px;
        height: 40px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .stats-container {
        flex-direction: column;
    }
}
/* Дополнительные стили для страницы топа */
.top-switch {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.top-switch .state-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.top-switch .state-btn.is-active {
    background-color: #3C8527;
}

.top-container {
    background-color: #2C2C2C;
    border-radius: 0;
    padding: 2rem;
    border: 3px solid #000;
    margin-top: 2rem;
}

.top-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.top-header h1 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.top-header h1 i {
    color: #ffd700;
    margin-right: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    background-color: #3A3A3A;
    padding: 1.5rem;
    border-radius: 0;
    text-align: center;
    border: 3px solid #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: #555;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat-value.total { color: #6c757d; }
.stat-value.active { color: #28a745; }
.stat-value.top { color: #ffd700; }

.stat-label {
    color: #b0b0b0;
    font-size: 1rem;
}

.info-box {
    background-color: #2c3e50;
    padding: 1.2rem;
    border-radius: 0;
    margin-bottom: 2rem;
    border-left: 4px solid #3498db;
}

.info-box h3 {
    color: #ffffff;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.info-box p {
    color: #bdc3c7;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.coeff {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0 2px;
}

/* Таблица топа */
.top-table-container {
    overflow-x: auto;
    border-radius: 0;
    border: 3px solid #000;
}

.top-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #3A3A3A;
}

.top-table th {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #333;
    white-space: nowrap;
}

.top-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #333;
    color: #e0e0e0;
}

.top-table tr:hover {
    background-color: #4A4A4A;
}

.rank-cell {
    font-weight: bold;
    font-size: 1.1rem;
    width: 70px;
}

.rank-1 { color: #ffd700; }
.rank-2 { color: #c0c0c0; }
.rank-3 { color: #cd7f32; }

.nickname-cell {
    text-align: left !important;
    font-weight: 600;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-name-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.top-online-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.top-online-status .player-online-dot {
    width: 8px;
    height: 8px;
}

.top-online-status.is-online {
    color: #55FF55;
}

.top-online-status.is-online .player-online-dot {
    background: #55FF55;
    box-shadow: 0 0 6px #55FF55;
    animation: online-pulse 1.6s ease-in-out infinite;
}

.top-online-status.is-offline {
    color: #9ca3af;
}

.top-online-status.is-offline .player-online-dot {
    background: #6b7280;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #000;
    flex-shrink: 0;
}

.profile-link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 0;
    background-color: rgba(52, 152, 219, 0.1);
}

.profile-link:hover {
    color: #2980b9;
    background-color: rgba(52, 152, 219, 0.2);
    text-decoration: underline;
}

.rating-cell {
    font-weight: bold;
    color: #2ecc71;
}

.top-state-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-state {
    background: #1f1f1f;
    border: 3px solid #000;
    box-shadow: inset 8px 0 0 var(--state-color, #3C8527);
}

.top-state > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    list-style: none;
    flex-wrap: wrap;
}

.top-state > summary::-webkit-details-marker {
    display: none;
}

.top-state > summary::after {
    content: "▸";
    margin-left: auto;
    font-weight: 800;
}

.top-state[open] > summary::after {
    content: "▾";
}

.top-state-place {
    min-width: 2.2rem;
    font-weight: 800;
    text-align: center;
}

.top-state-flag {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border: 2px solid #000;
    flex-shrink: 0;
    background: #111;
}

.top-state-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}

.top-state-name {
    font-weight: 800;
    font-size: 1.05rem;
}

.top-state-motto {
    color: #FFAA00;
    font-style: italic;
    font-size: 0.9rem;
}

.top-state-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--mc-text-dim);
    font-weight: 700;
    font-size: 0.85rem;
}

.top-state-body {
    padding: 0 12px 12px;
    border-top: 2px solid #000;
    padding-top: 12px;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #b0b0b0;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #6c757d;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

@media (max-width: 768px) {
    .top-container {
        padding: 1rem;
    }
    
    .top-header h1 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .top-table th,
    .top-table td {
        padding: 0.7rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .rank-cell {
        width: 50px;
    }
    
    .player-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .player-avatar {
        width: 36px;
        height: 36px;
    }
}

.admin-panel-link {
    display: inline-block;
    background-color: #2c3e50;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 0;
    margin-top: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #34495e;
}

.admin-panel-link:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
/* Хуетень в настройках аккаунта */

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

.prefix-preview {
    margin: 15px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0;
    border: 3px solid #000;
}

.preview-box {
    margin-top: 10px;
    padding: 12px 14px;
    background: #1A1A1A;
    border-radius: 0;
    border: 3px solid #000;
    font-family: 'Manrope', monospace;
    font-size: 1.05rem;
    line-height: 1.4;
    box-shadow: inset 2px 2px 0 rgba(0,0,0,0.5);
}

.mc-chat-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.15rem;
}

#previewNickname {
    color: #fff;
}

.mc-format-picker {
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    background: #1A1A1A;
    border: 3px solid #000;
    box-shadow: var(--mc-panel-shadow);
}

.mc-picker-label {
    font-weight: 700;
    margin: 0.35rem 0 0.6rem;
    color: #ddd;
    font-size: 0.95rem;
}

.mc-color-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.mc-color-swatch {
    aspect-ratio: 1;
    min-height: 40px;
    border: 3px solid #000;
    border-radius: 0;
    cursor: pointer;
    padding: 0;
    box-shadow: var(--mc-btn-shadow);
    position: relative;
    transition: transform 0.08s ease;
}

.mc-color-swatch span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000;
    pointer-events: none;
}

.mc-color-swatch:hover {
    transform: translateY(-1px);
}

.mc-color-swatch:active {
    transform: translateY(1px);
}

.mc-style-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.mc-style-btn {
    background: var(--mc-bg-btn);
    color: #fff;
    border: 3px solid #000;
    border-radius: 0;
    padding: 0.45rem 0.7rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--mc-btn-shadow);
    text-shadow: var(--mc-shadow-text);
    font-family: inherit;
    font-size: 0.85rem;
}

.mc-style-btn:hover {
    background: var(--mc-bg-btn-hover);
}

.mc-style-reset {
    background: #AA2A2A;
}

.mc-style-reset:hover {
    background: #C43A3A;
}

.mc-obfuscated {
    letter-spacing: 0.02em;
}

.setting-card small code {
    background: #0A0A0A;
    border: 2px solid #000;
    padding: 0 0.25rem;
    color: var(--mc-lime);
    font-size: 0.85em;
}

textarea {
    width: 100%;
    padding: 10px;
    border-radius: 0;
    border: 3px solid #000;
    background: #1A1A1A;
    color: white;
    font-family: var(--mc-font);
    resize: vertical;
    min-height: 80px;
    box-shadow: inset 2px 2px 0 rgba(0,0,0,0.55);
}

small {
    color: #aaa;
    font-size: 0.8rem;
    display: block;
    margin-top: 5px;
    line-height: 1.45;
}

@media (max-width: 576px) {
    .mc-color-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 0;
    font-size: 0.9rem;
}

.message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
    border: 1px solid #F44336;
}



/* Стили для ачивок */
.achievements-section {
    margin-top: 30px;
    width: 100%;
}

.achievements-title {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    color: #7d6b58;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
    justify-items: center;
}

.achievement-item {
    position: relative;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: scale(1.1);
}

.achievement-img {
    image-rendering: pixelated;
    width: 55px;
    height: 55px;


}

.achievement-img.locked {
    border-color: #555;
    box-shadow: 
        inset 0 0 12px rgba(0,0,0,0.5),
        0 1px 2px rgba(0,0,0,0.1);
    filter: grayscale(100%);
    opacity: 0.7;
}

.achievement-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 10px;
    border-radius: 0;
    font-size: 0.9rem;
    min-width: 200px;
    max-width: 300px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    border: 1px solid #8b7355;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.achievement-item:hover .achievement-tooltip {
    opacity: 1;
    visibility: visible;
}

.achievement-tooltip-title {
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 5px;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.achievement-tooltip-desc {
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.4;
}

.achievement-tooltip-status {
    margin-top: 5px;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 0;
    display: inline-block;
}

.achievement-tooltip-status.unlocked {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.achievement-tooltip-status.locked {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.achievement-date {
    font-size: 0.75rem;
    color: #999;
    margin-top: 5px;
    font-style: italic;
}





/* ==================== ИСТОРИЯ ПРОЕКТА ==================== */
.history-section {
    margin-top: 4rem;
    padding: 2rem 0;
}

.history-section h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.history-subtitle {
    text-align: center;
    color: #b0b0b0;
    margin-bottom: 2.5rem;
    font-style: italic;
    font-size: 1.1rem;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.timeline-card {
    background: #2C2C2C;
    border: 3px solid #000;
    border-radius: 0;
    padding: 1.5rem;
    display: flex;
    gap: 1.2rem;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    transform: translateX(8px);
    border-color: #55FF55;
}

.timeline-card.highlight {
    background: linear-gradient(135deg, #2C2C2C 0%, #1a2a1a 100%);
    border-left: 4px solid #55FF55;
}

.timeline-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.timeline-content {
    flex: 1;
}

.timeline-year {
    display: inline-block;
    background: #3A3A3A;
    padding: 0.2rem 0.8rem;
    border-radius: 0;
    font-size: 0.8rem;
    color: #55FF55;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.timeline-content p {
    color: #d0d0d0;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.timeline-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.timeline-content li {
    color: #d0d0d0;
    margin: 0.4rem 0;
}

.final-phrase {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(85, 255, 85, 0.3);
    font-style: italic;
    color: #55FF55;
}

/* ==================== ГАЛЕРЕЯ СКРИНОВ (карусель) ==================== */
.screenshots-section {
    margin-top: 3rem;
    padding: 2rem;
    background: #1F1F1F;
    border-radius: 0;
    border: 3px solid #000;
}

.screenshots-section h4 {
    font-size: 1.5rem;
    text-align: center;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.screenshots-subtitle {
    text-align: center;
    color: #b0b0b0;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.screenshot-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-container {
    flex: 1;
    overflow: hidden;
    border-radius: 0;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.slide {
    min-width: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 0;
    border: 3px solid #000;
}

.slide-caption {
    text-align: center;
    padding: 0.8rem;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.slider-btn {
    background: var(--mc-bg-btn);
    border: 3px solid #000;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.8rem 1.2rem;
    border-radius: 0;
    box-shadow: var(--mc-btn-shadow);
    text-shadow: var(--mc-shadow-text);
    transition: background 0.12s ease;
}

.slider-btn:hover {
    background: var(--mc-bg-btn-hover);
    border-color: #000;
}

.screenshot-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: #444;
    border-radius: 0;
    border: 2px solid #000;
    cursor: pointer;
    transition: background 0.12s ease;
}

.dot.active {
    background: #55FF55;
    width: 28px;
}

.screenshots-note {
    margin-top: 1.5rem;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0;
}

.history-footer {
    margin-top: 2rem;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    padding: 1rem;
}

/* Адаптив */
@media (max-width: 768px) {
    .timeline-card {
        flex-direction: column;
        padding: 1.2rem;
    }
    
    .timeline-icon {
        text-align: left;
    }
    
    .slider-btn {
        padding: 0.5rem 0.8rem;
        font-size: 1.2rem;
    }
    
    .screenshots-section {
        padding: 1rem;
    }
    
    .slide img {
        max-height: 250px;
    }
}

/* ==================== MC MOTION ==================== */
@keyframes mc-pop {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.server-info,
.stat-card,
.item-card,
.feature-card,
.how-to-step,
.auth-container,
.profile-sidebar,
.setting-card {
    animation: mc-pop 0.45s ease both;
}

.stat-card:nth-child(2),
.item-card:nth-child(2),
.feature-card:nth-child(2) { animation-delay: 0.06s; }
.stat-card:nth-child(3),
.item-card:nth-child(3),
.feature-card:nth-child(3) { animation-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
    .server-info,
    .stat-card,
    .item-card,
    .feature-card,
    .how-to-step,
    .auth-container,
    .profile-sidebar,
    .setting-card {
        animation: none;
    }

    .player-online-status.is-online .player-online-dot,
    .top-online-status.is-online .player-online-dot {
        animation: none;
    }
}


/* ==================== НОВОСТИ / СТАТЬИ ==================== */
.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1100px;
    margin: 0 auto 1.4rem;
    padding: 0 2rem;
}
.news-filter {
    padding: 8px 14px;
    background: var(--mc-bg-btn);
    border: 3px solid #000;
    color: #fff;
    font-weight: 800;
    box-shadow: var(--mc-btn-shadow);
}
.news-filter:hover { background: var(--mc-bg-btn-hover); }
.news-filter.is-on { background: var(--mc-grass-dark); }
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto 2.5rem;
    padding: 0 2rem;
}
.news-home {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding: 0 2rem;
}
.news-home-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}
.news-home-all {
    font-weight: 800;
    color: var(--mc-aqua);
}
.news-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.news-card {
    display: flex;
    flex-direction: column;
    background: var(--mc-bg-panel);
    border: 3px solid #000;
    box-shadow: var(--mc-panel-shadow);
    color: inherit;
    overflow: hidden;
    min-height: 100%;
}
.news-card:hover { transform: translateY(-2px); }
.news-media {
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
    border-bottom: 3px solid #000;
}
.news-media img,
.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-content { padding: 1rem 1.1rem 1.15rem; }
.news-kicker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.news-cat,
.news-pin,
.news-tag {
    display: inline-block;
    padding: 2px 8px;
    border: 2px solid #000;
    font-size: 0.72rem;
    font-weight: 800;
}
.news-cat-news { background: #1E6AA8; }
.news-cat-update { background: #3C8527; }
.news-cat-other { background: #6F6F6F; }
.news-pin { background: #AA5500; }
.news-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--mc-text-dim);
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.news-excerpt {
    color: var(--mc-text-dim);
    margin-bottom: 10px;
}
.news-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.news-tag { background: #1f1f1f; color: #ccc; }
.news-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 800;
    color: var(--mc-lime);
}
.news-empty {
    max-width: 720px;
    margin: 0 auto 3rem;
    padding: 2rem;
    text-align: center;
    background: var(--mc-bg-panel);
    border: 3px solid #000;
}
.article-page {
    max-width: 820px;
    margin: 0 auto 3rem;
    padding: 1.5rem 1.5rem 2rem;
    background: var(--mc-bg-panel);
    border: 3px solid #000;
    box-shadow: var(--mc-panel-shadow);
}
.article-back {
    display: inline-block;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--mc-aqua);
}
.article-page h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}
.article-cover {
    margin: 1rem 0 1.2rem;
    border: 3px solid #000;
    overflow: hidden;
    max-height: 420px;
}
.article-body {
    font-size: 1.05rem;
    line-height: 1.7;
}
.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body pre {
    margin-bottom: 0.9rem;
}
.article-body h2,
.article-body h3,
.article-body h4 {
    margin: 1.2rem 0 0.5rem;
}
.article-body a {
    color: var(--mc-aqua);
    text-decoration: underline;
}
.article-body img {
    max-width: 100%;
    border: 3px solid #000;
}
.article-body blockquote {
    border-left: 6px solid var(--mc-grass-dark);
    padding: 0.4rem 0.8rem;
    background: #1f1f1f;
    color: var(--mc-text-dim);
}
.article-body pre,
.article-body code {
    background: #111;
    font-family: Consolas, 'Courier New', monospace;
}
.article-body pre {
    padding: 12px;
    overflow: auto;
    border: 2px solid #000;
}
.article-body ul,
.article-body ol {
    padding-left: 1.3rem;
}
@media (max-width: 900px) {
    .news-home-grid { grid-template-columns: 1fr; }
    .news-filters, .news-grid, .news-home { padding: 0 1rem; }
    .article-page { margin: 0 1rem 2rem; }
}



