@import "external/font-cinzel-lora.css";

* {
    box-sizing: border-box;
}

:root {
    /* Typography */
    --font-family-primary: "Cinzel", sans-serif;
    --font-family-secondary: Georgia, 'Times New Roman', Times, serif;
    --font-family-tertiary: Verdana, Geneva, Tahoma, sans-serif;

    /* Core Colors */
    --rules-border: #2a231b69;
    --rules-trim: #5c3b1b;
    --modal-panel: #453525;
    --modal-panel-light: #2A231B;
    --modal-border: #2d17026d;
    --modal-border-highlight: #5A4A3A;
    --modal-trim: #785A3C;
    --modal-trim-highlight: #9B7853;

    /* Accent Colors */
    --modal-gold: #ebdbb8;
    --modal-gold-highlight: #E9C989;
    --modal-gold-shadow: #8B6B35;
    --font-gold: #dfc573;

    /* Semantic Colors */
    --text-primary: #2c3e50;
    --text-light: #f1eeee;
    --text-white: #ffffff;
    --text-error: #ff0000;
    --background-dark: rgba(0, 0, 0, 0.75);
    --background-light: rgba(255, 255, 255, 0.1);

    /* Common Measurements */
    --border-radius-small: 4px;
    --border-radius-medium: 6px;
    --border-radius-large: 12px;
    --transition-fast: 0.2s;
    --transition-medium: 0.3s;
    --transition-slow: 0.5s;

    /* Z-index layers */
    --z-navbar: 100;
    --z-modal: 1000;
    --z-tooltip: 101;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--rules-border) url('../layout/2024/images/body-texture.webp');
    background-size: auto, repeat;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-family-tertiary);
}

.center-text {
    text-align: center;
}

.blur {
    filter: blur(8px);
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), var(--modal-border) url('../layout/2024/images/body-texture.webp');
    padding: 15px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    border-bottom: 2px solid rgba(248, 204, 123, 0.688);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-navbar);
    font-family: var(--font-family-primary);
}

.nav-header {
    display: none;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    justify-content: center;
    align-items: center;
}

.nav-item {
    position: relative;
    text-decoration: none;
    transition: all var(--transition-medium) ease;
    font-weight: bolder;
    margin: 2px 0.5rem;
}

.nav-item a,
.login-button a {
    text-decoration: none;
    padding: 10px 6px;
    transition: all var(--transition-medium) ease;
    font-weight: bolder;
    line-height: 2.5;
}

.nav-item a {
    color: var(--modal-gold);
    margin: 0 2px;
    text-shadow:
        0 0 3px rgba(0, 0, 0, 0.8),
        0 0 6px rgba(0, 0, 0, 0.6),
        1px 1px 2px rgba(0, 0, 0, 0.9),
        0 0 2px rgba(66, 50, 5, 0.4);
}

.login-button {
    background-color: rgba(1, 1, 1, 0.2);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--modal-gold-highlight);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-button a {
    color: gold;
    text-shadow:
        0 0 5px rgba(26, 26, 25, 0.8),
        0 0 10px rgba(26, 26, 25, 0.8),
        0 0 15px rgba(26, 26, 25, 0.8),
        0 0 20px rgba(12, 3, 3, 0.833);
    filter: drop-shadow(0 0 10px rgba(12, 12, 12, 0.8));
}

.login-button a i {
    color: var(--text-white);
    margin-right: 3px;
    font-size: 17px;
}

.nav-item a:hover,
.login-button a:hover {
    color: rgb(236, 214, 89);
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius-small);
}

/* Sub Navigation */
.sub-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);

    border-radius: 0 0 5px 5px;
    padding: 8px 0;
    z-index: var(--z-tooltip);
}

.nav-item:hover .sub-nav {
    display: block;
}

.sub-nav li {
    list-style: none;
}

.sub-nav a {
    display: block;
    min-width: 130px;
    padding: 4px 12px;
    color: var(--text-white);
    text-decoration: none;
    transition: all var(--transition-medium) ease;
    font-size: 12px;
}

.sub-nav a:hover {
    color: rgb(255, 208, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: rgb(255, 208, 0);
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(9, 9, 9, 0.13);
}

/* ===================================
   MODALS
   =================================== */

.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    inset: 0;
    overflow: hidden;
    background-color: var(--background-dark);
}

.modal-content {
    background-color: rgba(10, 10, 10, 0.64);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid rgba(218, 165, 32, 0.32);
    width: 300px;
    box-shadow: 0 4px 10px rgba(9, 9, 9, 0.32);
    border-radius: 10px;
    text-align: center;
    font-family: var(--font-family-primary);
    color: var(--text-white);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.modal-content label {
    padding-top: 10px;
    display: block;
    text-align: left;
    margin-bottom: 10px;
    font-family: var(--font-family-primary);
}

.modal-content input[type="text"],
.modal-content input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.modal-content .forgot-password {
    display: block;
    margin-top: 10px;
    font-size: 16px;
    color: goldenrod;
    text-decoration: none;
}

.modal-content .forgot-password:hover {
    text-decoration: underline;
}

/* ===================================
   BUTTONS
   =================================== */

/* Base button styles */
.btn {
    padding: 10px 30px;
    font-family: var(--font-family-primary);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-fast) cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    text-align: center;
    user-select: none;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-medium);
    border: 2px solid;
    vertical-align: middle;
    line-height: 1;
}

.btn::before,
.register-btn::before,
.register-btn-animated::before,
.tour-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left var(--transition-slow) ease;
    opacity: 0;
}

.btn:hover::before,
.register-btn:hover::before {
    opacity: 1;
    left: 100%;
}

.btn:active {
    transform: translateY(1px);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* Specific button variants */
.register-btn,
.register-btn-animated {
    background: linear-gradient(to bottom,
            #cc8888 0%,
            #a52a2a 15%,
            #800020 50%,
            #660018 85%,
            #4d0012 100%);
    border-color: #330009;
    border-top-color: #cc8888;
    border-left-color: #b87373;
    color: var(--text-white);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.register-btn-animated {
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% {
        color: var(--text-white);
        text-shadow:
            1px 1px 0 rgba(0, 0, 0, 0.5),
            0 0 5px rgba(255, 255, 255, 0.3),
            0 0 10px rgba(255, 255, 255, 0.2);
    }

    100% {
        color: var(--font-gold);
        text-shadow:
            1px 1px 0 rgba(0, 0, 0, 0.5),
            0 0 10px rgba(0, 0, 0, 0.892),
            0 0 20px rgba(0, 0, 0, 0.6),
            0 0 30px rgba(0, 0, 0, 0.4);
    }
}

.register-btn:hover,
.register-btn-animated:hover {
    background: linear-gradient(to bottom,
            #f1a3a3 0%,
            #dc3939 15%,
            #b5012e 50%,
            #950123 85%,
            #8e0122 100%);
    transform: translateY(-1px);
    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}


.tour-btn {
    background: linear-gradient(to bottom,
            #f4e4bc 0%,
            #d4af37 15%,
            #b8941f 50%,
            #9c7a0a 85%,
            #8b6914 100%);
    border-color: #6b5016;
    border-top-color: #f4e4bc;
    border-left-color: #e6d299;
    color: #2c1810;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}



.tour-btn:hover {
    background: linear-gradient(to bottom,
            #f9f0d1 0%,
            #e6c547 15%,
            #ca9f2f 50%,
            #ad851a 85%,
            #9c7424 100%);
    transform: translateY(-1px);
    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.fa-user {
    padding: 0 5px;
}

.hero-buttons-wrapper {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: auto;
}


/* Responsive adjustments for hero wrapper */
@media (max-width: 768px) {
    .hero-buttons-wrapper {
        gap: 0.5rem;
        width: 100%;
        padding: none;
        background-color: none;
        border-radius: none;
    }

    .hero-buttons-wrapper .btn {
        max-width: fit-content;
        padding: 0px 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons-wrapper {
        gap: 0.2rem;
        margin-top: 0.3rem;
        padding: none;
        background-color: none;
        border-radius: none;
    }

    .hero-buttons-wrapper .btn {
        max-width: fit-content;
        font-size: 0.9rem;
    }
}


/* Modal button styles */
.modal-content button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 30px;
    min-width: 100%;
    min-height: 36px;
    font-family: var(--font-family-primary);
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
    border-radius: var(--border-radius-medium);
    border: 2px solid;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    background: linear-gradient(to bottom,
            #cc8888 0%,
            #a52a2a 15%,
            #800020 50%,
            #660018 85%,
            #4d0012 100%);
    border-color: #330009;
    border-top-color: #cc8888;
    border-left-color: #b87373;
    color: var(--text-white);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

/* Back to top button */
#backToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: var(--z-navbar);
    background: linear-gradient(180deg, #f7b610, #6c4f07);
    color: #090909;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: none;
    font: bold 30px "Aboreto", system-ui;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

#backToTopBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 4px rgba(18, 13, 6, 0.322);
}

/* ===================================
   HERO SECTION
   =================================== */

.live-stats {
    text-align: center;
    font-size: 8px;
    color: #ffffffd7;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    padding-top: 0.5rem;
}

.live-stats strong {
    color: #FFD700;
    font-size: 1.3em;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.logo {
    position: relative;
    margin: 1rem 0 0.5rem 0;
}

.logo a {
    display: block;
    width: 350px;
    background: url('/layout/2024/images/syrnia-logo-black-glow.webp') center/contain no-repeat;
    background-size: contain;
    min-height: 175px;
    z-index: 1;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('../layout/2024/images/hero-background.webp') center center / cover no-repeat;
    background-position: 25% 2%;
    height: 475px;
    padding: 2rem;
    position: relative;
    border-bottom: 4px solid rgba(237, 191, 105, 0.688);
    border-bottom-left-radius: 45% 18%;
    border-bottom-right-radius: 45% 18%;
    box-shadow:
        inset 0 0 100px rgba(0, 0, 0, 0.9),
        0 0 15px 12px rgba(16, 16, 15, 0.7);
    z-index: 2;
    text-align: center;
    overflow: hidden;
}


.hero-header {
    font: bold clamp(0.8rem, 1.5vw, 1.2rem) var(--font-family-primary);
    color: var(--text-white);
    z-index: 1;
    position: relative;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background-image: repeating-linear-gradient(45deg,
            rgba(0, 0, 0, 0.1) 0px,
            rgba(0, 0, 0, 0.2) 1px,
            transparent 1px,
            transparent 2px);
}

.hero-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
    transform: translateZ(0);
    filter: blur(8px);
}

/* ===================================
   CONTENT CONTAINERS & LAYOUTS
   =================================== */

.information-container,
.news-container {
    font-family: var(--font-family-tertiary);
    padding: 20px 35px;
    color: var(--text-light);
    margin: 2.2% auto 0;
    max-width: 78%;
    text-align: center;
}

.news-container {
    margin-bottom: 20px;
}

/* Shared container styles */
.information-div,
.gametour-div,
.registration-div,
.news-div,
.forum-div {
    position: relative;
    background-image:
        linear-gradient(to bottom, rgba(247, 195, 127, 0.816), rgba(247, 195, 127, 0.712)),
        url('../layout/2024/images/cream-paper.webp');
    background-repeat: repeat;
    background-size: 50%;
    box-shadow:
        0 4px 8px rgba(25, 15, 10, 0.6),
        0 2px 4px rgba(40, 25, 15, 0.5),
        0 8px 16px rgba(15, 10, 8, 0.4),
        0 12px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(139, 115, 85, 0.4),
        inset 0 -2px 0 rgba(25, 15, 10, 0.7),
        inset 2px 0 0 rgba(40, 25, 15, 0.5),
        inset -2px 0 0 rgba(40, 25, 15, 0.5),
        inset 0 3px 6px rgba(20, 12, 8, 0.4);
    transition: transform var(--transition-medium) ease, box-shadow var(--transition-medium) ease;
    z-index: 1;
}

.registration-div {
    padding-bottom: 5px;
    width: 50%;
    margin: 0 auto;
}

.news-div {
    font-family: var(--font-family-secondary);
    margin-bottom: 20px;
    color: #111;
    padding-bottom: 3%;
    border-radius: 8px 8px 0 0;
}

/* Container paragraph styles */
.information-div p,
.gametour-div p,
.registration-div p {
    font: 16px/1.6 var(--font-family-secondary);
    color: var(--text-primary);
    padding: 15px 25px;
    word-spacing: 0.2em;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 2px;
    line-height: 1.6;
}


/* ===================================
   HEADERS & SECTIONS
   =================================== */

.information-header,
.buttons-header,
.news-header,
.clan-header,
.clans-table thead,
.players-table thead {
    background: var(--modal-panel);
    padding: 4px 8px;
    text-align: center;
    border-top: 2px solid var(--modal-border);
    position: relative;
    z-index: 2;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.08),
        inset 0 -2px 0 rgba(0, 0, 0, 0.4),
        inset 3px 0 0 rgba(0, 0, 0, 0.25),
        inset -3px 0 0 rgba(0, 0, 0, 0.25),
        0 3px 6px rgba(0, 0, 0, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(0, 0, 0, 0.15);
    border-radius: 3px 3px 0 0;
}

.information-header::before,
.buttons-header::before,
.news-header::before,
.clan-header::before,
.clans-table thead::before,
.players-table thead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../layout/2024/images/header-texture.webp') center center / contain repeat;
    opacity: 0.5;
    z-index: -1;
    border-radius: 3px 3px 0 0;
}


.buttons-header {
    padding: 10px;
}

.information-header::after,
.buttons-header::after,
.news-header::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right,
            var(--modal-trim),
            var(--modal-trim-highlight),
            var(--modal-trim-highlight),
            var(--modal-trim));
    z-index: 1;
}

.information-header h2,
.information-header h1,
.news-header h1 {
    color: var(--modal-gold-highlight);
    font-family: var(--font-family-primary);
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto;
    padding: 5px 8px;
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
    text-shadow:
        0 0 3px rgba(0, 0, 0, 0.8),
        0 0 6px rgba(0, 0, 0, 0.6),
        1px 1px 2px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(33, 22, 1, 0.4);
}

.information-header h3 {
    font-size: 22px;
}

.information-sections-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 1rem;
    border: 1px solid rgba(185, 133, 55, 0.2);
}

.information-section {
    flex-basis: calc(50% - 10px);
}

/* ===================================
   FORMS & INPUTS
   =================================== */

.character-form,
.recover-pw-form {
    background-color: rgba(185, 133, 55, 0.162);
    padding: 5px 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #47360d48;
    border-radius: var(--border-radius-medium);
    margin: 20px auto;
    font: bold 16px var(--font-family-secondary);
    color: #000000;
}

.character-form {
    max-width: 85%;
    padding-bottom: 5px;
}

.recover-pw-form {
    max-width: 50%;
    color: #090808;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4a3a2a;
    font-family: var(--font-family-primary);
}

.form-input {
    width: 80%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #47370d;
    border-radius: 5px;
    font-size: 14px;
    background-color: #333;
    color: var(--text-white);
}

/* Search forms */
.search-user-form {
    display: flex;
    gap: 10px;
    margin: 0 auto;
    width: 50%;
}

.search-user-input {
    flex-grow: 1;
    margin: 10px 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-small);
}

.search-user-submit {
    padding: 4px 12px;
    margin: 10px 0;
    background-image: linear-gradient(145deg, #ab1313, #4b0a0a);
    color: var(--text-white);
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
}

.search-user-submit:hover {
    background-color: #0056b3;
}

/* ===================================
   FEEDBACK MESSAGES
   =================================== */

.success {
    font-size: 16px;
    margin: 0 auto;
    color: rgb(254, 255, 254);
    font-family: var(--font-family-secondary);
    background-color: rgba(255, 255, 255, 0.079);
    border: 1px solid rgba(0, 0, 0, 0.188);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 73%;
    padding: 5px 10px;
    position: relative;
}
.success::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--background-light);
    z-index: -1;
    transform: translateZ(0);
    filter: blur(8px);
}

.incorrect-login,
.empty-field,
.frozen {
    font-size: 12px;
    color: var(--text-error);
    padding-bottom: 12px;
    font-weight: bold;
}

/* ===================================
   GAME TOUR & SLIDER
   =================================== */

.slider-container {
    position: relative;
    max-width: 80vw;
    margin: 0 auto;
    overflow: hidden;
    text-align: center;
}

.slider-content {
    position: relative;
    padding: 30px;
}

.slider-image {
    max-width: 50%;
    max-height: 50vh;
    object-fit: contain;
    margin: 0 auto;
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        inset 0 0 15px 2px #331c05;
    transform: translateZ(0);
    will-change: transform, box-shadow;
    transition: transform var(--transition-medium) ease, box-shadow var(--transition-medium) ease;
}

.slider-image img {
    width: 100%;
    height: 80vh;
    display: block;
    object-fit: contain;
}

.island-name {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.301);
    color: var(--text-white);
    padding: 5px 10px;
    border-radius: 5px;
    font-family: var(--font-family-primary);
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-white);
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
}

.prev-button {
    left: 50px;
}

.next-button {
    right: 50px;
}

.syrnia-skills img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.322);
}

/* ===================================
   NEWS & RELEASES
   =================================== */

.news-message {
    font-size: 16px;
    line-height: 1.8;
    padding: 15px 20px;
    letter-spacing: 0.04rem;
    color: var(--text-primary);
    text-align: left;
    font-weight: 400;
    margin: 0 auto;
}

.news-message iframe {
    display: block;
    margin: 0 auto;
    box-sizing: inherit;
    max-width: 100%;
    width: 25vw;
    height: 25vh;
}

.news-message h1,
.news-message p {
    color: var(--text-primary);
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.release-version,
.release-date {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--modal-gold);
}

.release-title {
    padding: 20px;
}

.release-content {
    padding: 20px;
}

.page-selector-container {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    width: auto;
}

.page-selector {
    font-family: var(--font-family-primary);
    font-weight: bold;
    font-size: 16px;
}

/* ===================================
   MANUAL & DOCUMENTATION
   =================================== */

.manual-container {
    font-family: var(--font-family-tertiary);
    padding: 0 0 1px 0;
    margin: 2% auto 0;
    max-width: 80%;
    background-image:
        linear-gradient(to bottom, rgba(247, 195, 127, 0.949), rgba(247, 195, 127, 0.851)),
        url('../layout/2024/images/cream-paper.webp');
    background-repeat: repeat;
    background-position: center;
    background-attachment: fixed;
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        0 0 10px 10px rgba(0, 0, 0, 0.447),
        inset 0 0 5px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(152, 95, 43, 0.8),
        inset 0 0 15px 2px #7a4510,
        inset 0 0 30px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.manual-selector select {
    width: min(100%, max-content);
    padding: 10px;
    font-family: var(--font-family-primary);
    font-weight: 600;
    font-size: clamp(0.875rem, 1.5vw, 0.9rem);
    border: 1px solid #ccc;
    border-radius: var(--border-radius-small);
    background-color: #f8f8f8;
    cursor: pointer;
    margin-bottom: 10px;
}

.manual-selector select option {
    padding: 12px 16px;
    font-size: clamp(0.875rem, 1.5vw, 0.9rem);
    color: var(--text-primary);
    background-color: var(--text-white);
    transition: all var(--transition-medium) ease;
    border-bottom: 1px solid #eef2f7;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.manual-selector select option:hover {
    background-color: #f8fafc;
    color: #1a73e8;
}

.manual-selector select option:checked {
    background-color: #e8f0fe;
    color: #1a73e8;
    font-weight: 600;
}

.manual-selector select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

.skill-grid {
    display: flex;
    justify-content: space-evenly;
    padding: 5px 10px;
    border-radius: var(--border-radius-large);
    background-color: var(--background-light);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    max-width: auto;
    position: relative;
}

.skill-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--background-light);
    z-index: -1;
    transform: translateZ(0);
    filter: blur(8px);
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform var(--transition-medium) ease;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item img {
    width: 40px;
    height: 40px;
    margin: 2px;
}

/* ===================================
   USER STATS PAGE STYLES
   =================================== */



.user-search-section {
    margin-bottom: 30px;
}

.search-container {
    position: relative;
    background-image:
        linear-gradient(to bottom, rgba(247, 195, 127, 0.816), rgba(247, 195, 127, 0.712)),
        url('../layout/2024/images/cream-paper.webp');
    background-repeat: repeat;
    background-size: 50%;
    box-shadow:
        0 4px 8px rgba(25, 15, 10, 0.6),
        0 2px 4px rgba(40, 25, 15, 0.5),
        0 8px 16px rgba(15, 10, 8, 0.4),
        0 12px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(139, 115, 85, 0.4),
        inset 0 -2px 0 rgba(25, 15, 10, 0.7),
        inset 2px 0 0 rgba(40, 25, 15, 0.5),
        inset -2px 0 0 rgba(40, 25, 15, 0.5),
        inset 0 3px 6px rgba(20, 12, 8, 0.4);
    border-radius: 0 0 8px 8px;
    padding: 20px 0 0 0;
}

.user-search-form {
    max-width: 500px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-medium);
    border: 2px solid var(--modal-gold-shadow);
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.search-icon {
    color: var(--modal-gold-shadow);
    padding: 0 15px;
    font-size: 16px;
}

.user-search-input {
    flex: 1;
    border: none;
    padding: 12px 0;
    font-size: 14px;
    font-family: var(--font-family-secondary);
    background: transparent;
    color: var(--text-primary);
    outline: none;
}

.user-search-input::placeholder {
    color: rgba(44, 62, 80, 0.6);
    font-style: italic;
}

.user-search-submit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(to bottom,
            #f4e4bc 0%,
            #d4af37 15%,
            #b8941f 50%,
            #9c7a0a 85%,
            #8b6914 100%);
    border: none;
    color: #2c1810;
    font-family: var(--font-family-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}

.user-search-submit:hover {
    background: linear-gradient(to bottom,
            #f9f0d1 0%,
            #e6c547 15%,
            #ca9f2f 50%,
            #ad851a 85%,
            #9c7424 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

/* Search input with error states */
.search-input-group.has-error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    animation: errorShake 0.5s ease-in-out;
}

.search-input-group.has-error .search-icon {
    color: #dc3545;
}

.search-input-group.has-error .user-search-input {
    color: #dc3545;
}

.search-input-group.has-error .user-search-input::placeholder {
    color: rgba(220, 53, 69, 0.6);
}

/* Error tooltip */
.search-error-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #dc3545;
    color: white;
    padding: 12px 16px;
    border-radius: var(--border-radius-medium);
    font-family: var(--font-family-secondary);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1000;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    animation: tooltipFadeIn 0.3s ease-out;
}

.search-error-tooltip i {
    margin-right: 8px;
    font-size: 16px;
}

.tooltip-arrow {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #dc3545;
}

/* Animations */
@keyframes errorShake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-4px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(4px);
    }
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive tooltip */
@media screen and (max-width: 480px) {
    .search-error-tooltip {
        font-size: 12px;
        padding: 10px 14px;
        white-space: normal;
        max-width: 280px;
        text-align: center;
    }
}


.user-stats-section {
    margin-top: 30px;
}

.user-stats-container {
    position: relative;
    background-image:
        linear-gradient(to bottom, rgba(247, 195, 127, 0.816), rgba(247, 195, 127, 0.712)),
        url('../layout/2024/images/cream-paper.webp');
    background-repeat: repeat;
    background-size: 50%;
    box-shadow:
        0 4px 8px rgba(25, 15, 10, 0.6);
    border-radius: 0 0 8px 8px;
    padding: 0;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    border-bottom: 2px solid rgba(185, 133, 55, 0.3);
    background: rgba(0, 0, 0, 0.05);
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--modal-gold-shadow), var(--modal-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--modal-gold-highlight);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.user-avatar i {
    font-size: 28px;
    color: #2c1810;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}

.user-info h3.username {
    margin: 0 0 5px 0;
    font-family: var(--font-family-primary);
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 700;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user-subtitle {
    margin: 0;
    color: var(--modal-gold-shadow);
    font-family: var(--font-family-secondary);
    font-size: 14px;
    font-style: italic;
}

.user-clan {
    color: var(--modal-gold-shadow);
    font-family: var(--font-family-primary);
    font-size: 14px;
    font-weight: 600;
}

.user-clan i {
    color: #ffd700;
    margin-right: 5px;
}


.clan-link {
    color: var(--modal-gold-shadow);
    text-decoration: none;
    transition: all var(--transition-fast) ease;
    border-radius: 4px;
    padding: 2px 4px;
    margin-left: 4px;
}

.clan-link:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    text-decoration: none;
    transform: translateY(-1px);
}

.clan-link:active {
    transform: translateY(0);
}

.clan-link strong {
    font-weight: 700;
}

/* Featured stats for important skills */
.featured-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    padding: 25px 25px 0 25px;
}

.featured-stat-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--modal-gold-shadow);
    border-radius: var(--border-radius-medium);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all var(--transition-medium) ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.featured-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.featured-stat-card.total-skills {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.9));
}

.featured-stat-card.combat-level {
    border-color: #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(255, 255, 255, 0.9));
}

.featured-stat-icon {
    width: 50px;
    height: 50px;
    background: var(--modal-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--modal-gold-shadow);
    flex-shrink: 0;
}

.featured-stat-icon i {
    font-size: 20px;
    color: #2c1810;
}

.featured-stat-name {
    margin: 0 0 8px 0;
    font-family: var(--font-family-primary);
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 700;
}

.featured-stat-values {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.featured-level {
    font-family: var(--font-family-primary);
    font-size: 16px;
    font-weight: 700;
    color: var(--modal-gold-shadow);
}

.featured-exp {
    font-family: var(--font-family-secondary);
    font-size: 12px;
    color: var(--text-primary);
    opacity: 0.8;
}

.featured-stat-card.highest-skill {
    border-color: #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(255, 255, 255, 0.9));
}

.highest-skill-row {
    background: rgba(40, 167, 69, 0.1) !important;
    border-color: #28a745 !important;
}

.highest-skill-row:hover {
    background: rgba(40, 167, 69, 0.2) !important;
}

.highest-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #8b6914;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid #b8941f;
    margin-left: 8px;
}

.highest-skill-icon {
    background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(53, 220, 73, 0.3) !important;
    border-color: #8b6914 !important;
}

.highest-skill-icon i {
    color: #8b6914 !important;
}

.highest-badge i {
    font-size: 8px;
    color: #8b6914;
}

/* Lowest skill row styling */
.lowest-skill-row {
    background: rgba(220, 53, 69, 0.08) !important;
    border-color: #dc3545 !important;
}

.lowest-skill-row:hover {
    background: rgba(220, 53, 69, 0.15) !important;
}

/* Lowest skill icon styling */
.lowest-skill-icon {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3) !important;
    border-color: #dc3545 !important;
}

.lowest-skill-icon i {
    color: white !important;
}

/* Lowest skill badge */
.lowest-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid #a71e2a;
    margin-left: 8px;
}

.lowest-badge i {
    font-size: 8px;
    color: white;
}

/* Skills list */
.skills-list-container {
    padding: 25px;
}

.skills-section-title {
    margin: 0 0 20px 0;
    font-family: var(--font-family-primary);
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(185, 133, 55, 0.3);
}

.skills-section-title i {
    color: var(--modal-gold-shadow);
    margin-right: 8px;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 8px;
}

.skill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.178);
    border: 1px solid rgba(185, 133, 55, 0.2);
    border-radius: var(--border-radius-small);
    transition: all var(--transition-fast) ease;
}

.skill-row:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--modal-gold-shadow);
    transform: translateX(2px);
}

.skill-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-icon {
    width: 30px;
    height: 30px;
    background: var(--modal-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--modal-gold-shadow);
    flex-shrink: 0;
}

.skill-icon i {
    font-size: 14px;
    color: #2c1810;
}

.skill-name {
    font-family: var(--font-family-secondary);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.skill-level {
    font-family: var(--font-family-primary);
    font-size: 14px;
    font-weight: 700;
    color: var(--modal-gold-shadow);
}

.skill-exp {
    font-family: var(--font-family-secondary);
    font-size: 11px;
    color: var(--text-primary);
    opacity: 0.7;
}



/* Responsive design */
@media screen and (max-width: 768px) {
    .user-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }

    .search-input-group {
        flex-direction: column;
    }

    .user-search-submit {
        width: 100%;
        justify-content: center;
        border-top: 1px solid var(--modal-gold-shadow);
    }

    .featured-stats {
        grid-template-columns: 1fr;
        padding: 20px 20px 0 20px;
    }

    .skills-list {
        grid-template-columns: 1fr;
    }

    .skills-list-container {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .user-avatar {
        width: 50px;
        height: 50px;
    }

    .user-avatar i {
        font-size: 24px;
    }

    .user-info h3.username {
        font-size: 20px;
    }

    .featured-stat-card {
        padding: 15px;
        gap: 12px;
    }

    .featured-stat-icon {
        width: 40px;
        height: 40px;
    }

    .featured-stat-icon i {
        font-size: 16px;
    }

    .skill-row {
        padding: 10px 12px;
    }

    .skill-icon {
        width: 25px;
        height: 25px;
    }

    .skill-icon i {
        font-size: 12px;
    }
}

/* ===================================
   PLAYERS HIGHSCORE STYLES
   =================================== */

.highscore-info {
    background: rgba(185, 133, 55, 0.1);
    border: 1px solid rgba(185, 133, 55, 0.3);
    border-radius: var(--border-radius-small);
    padding: 12px 20px;
    margin: 15px 0 20px 0;
    text-align: center;
}



.highscore-info p {
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-family-secondary);
    font-size: 14px;
    font-weight: 500;
}

.highscore-info i {
    color: var(--modal-gold-shadow);
    margin-right: 8px;
}

.players-table-container {
    position: relative;
    background-image:
        linear-gradient(to bottom, rgba(247, 195, 127, 0.816), rgba(247, 195, 127, 0.712)),
        url('../layout/2024/images/cream-paper.webp');
    background-repeat: repeat;
    background-size: 50%;
    box-shadow:
        0 4px 8px rgba(25, 15, 10, 0.6),
        0 2px 4px rgba(40, 25, 15, 0.5),
        0 8px 16px rgba(15, 10, 8, 0.4),
        0 12px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(139, 115, 85, 0.4),
        inset 0 -2px 0 rgba(25, 15, 10, 0.7),
        inset 2px 0 0 rgba(40, 25, 15, 0.5),
        inset -2px 0 0 rgba(40, 25, 15, 0.5),
        inset 0 3px 6px rgba(20, 12, 8, 0.4);
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.info-tooltip {
    font-size: 14px;
    color: var(--modal-gold);
    margin-left: 8px;
    cursor: help;
    opacity: 0.7;
    transition: opacity var(--transition-fast) ease;
}

.info-tooltip:hover {
    opacity: 1;
}


.players-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-family-secondary);
    margin: 0;
}

.rank-header,
.column-header {
    padding: 15px 12px;
    text-align: center;
    font-family: var(--font-family-primary);
    font-size: 14px;
    font-weight: 700;
    color: var(--modal-gold-highlight);
    text-shadow:
        0 0 3px rgba(0, 0, 0, 0.8),
        0 0 6px rgba(0, 0, 0, 0.6),
        1px 1px 2px rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid var(--modal-trim);
    white-space: nowrap;
}

.rank-header {
    width: 80px;
}

.rank-header i,
.column-header i {
    margin-right: 6px;
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    font-size: 12px;
}

.player-row {
    transition: background-color var(--transition-fast) ease;
    border-bottom: 1px solid rgba(185, 133, 55, 0.2);
}

.player-row:hover {
    background-color: rgba(185, 133, 55, 0.15);
}

.player-row:last-child {
    border-bottom: none;
}

.top-player {
    background-color: rgba(255, 215, 0, 0.1);
}

.top-player:hover {
    background-color: rgba(255, 215, 0, 0.2);
}

.rank-cell,
.data-cell {
    padding: 10px 12px;
    text-align: center;
    font-size: 13px;
    vertical-align: middle;
}

.rank-cell {
    font-weight: 700;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: var(--border-radius-small);
    font-size: 12px;
    font-weight: 700;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #8b6914;
    border: 1px solid #b8941f;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #4a4a4a;
    border: 1px solid #999;
    box-shadow: 0 2px 4px rgba(192, 192, 192, 0.3);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #e6a85c);
    color: #5d3a1a;
    border: 1px solid #8b5a2b;
    box-shadow: 0 2px 4px rgba(205, 127, 50, 0.3);
}

.rank-number {
    color: var(--text-primary);
    font-weight: 600;
}

.username-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast) ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.username-link:hover {
    color: var(--modal-gold-shadow);
    text-decoration: underline;
}

.username-link i {
    font-size: 10px;
    opacity: 0.7;
    transition: opacity var(--transition-fast) ease;
}



.username-link:hover i {
    opacity: 1;
}

.stat-value {
    color: var(--text-primary);
    font-weight: 500;
}

.username-cell {
    text-align: left;
    font-weight: 600;
}



/* Responsive design */
@media screen and (max-width: 768px) {

    .rank-header,
    .column-header {
        padding: 12px 8px;
        font-size: 12px;
    }

    .rank-cell,
    .data-cell {
        padding: 8px 6px;
        font-size: 12px;
    }

    .rank-badge {
        padding: 3px 6px;
        font-size: 11px;
    }

    .username-link {
        gap: 4px;
    }

    .username-link i {
        font-size: 9px;
    }
}

@media screen and (max-width: 480px) {
    .players-table {
        font-size: 11px;
    }

    .rank-header,
    .column-header {
        padding: 10px 4px;
        font-size: 11px;
    }

    .rank-cell,
    .data-cell {
        padding: 6px 4px;
        font-size: 11px;
    }

    .rank-header i,
    .column-header i {
        display: none;
    }

    .username-link i {
        display: none;
    }

    .rank-badge {
        padding: 2px 4px;
        font-size: 10px;
        gap: 2px;
    }
}


/* ===================================
   CLANS TABLE STYLES
   =================================== */

.clans-table-container {
    position: relative;
    background-image:
        linear-gradient(to bottom, rgba(247, 195, 127, 0.816), rgba(247, 195, 127, 0.712)),
        url('../layout/2024/images/cream-paper.webp');
    background-repeat: repeat;
    background-size: 50%;
    box-shadow:
        0 4px 8px rgba(25, 15, 10, 0.6),
        0 2px 4px rgba(40, 25, 15, 0.5),
        0 8px 16px rgba(15, 10, 8, 0.4),
        0 12px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(139, 115, 85, 0.4),
        inset 0 -2px 0 rgba(25, 15, 10, 0.7),
        inset 2px 0 0 rgba(40, 25, 15, 0.5),
        inset -2px 0 0 rgba(40, 25, 15, 0.5),
        inset 0 3px 6px rgba(20, 12, 8, 0.4);
    border-radius: 2px;
    overflow: hidden;
    margin: 20px 0;
}

.clans-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-family-secondary);
    margin: 0;
}


.clans-table th {
    padding: 15px 20px;
    vertical-align: middle;
    font-family: var(--font-family-primary);
    font-size: 16px;
    font-weight: 700;
    color: var(--modal-gold-highlight);
    text-shadow:
        0 0 3px rgba(0, 0, 0, 0.8),
        0 0 6px rgba(0, 0, 0, 0.6),
        1px 1px 2px rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid var(--modal-trim);
}

.clans-table th i {
    margin-right: 8px;
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.clan-row {
    transition: background-color var(--transition-fast) ease;
    border-bottom: 1px solid rgba(185, 133, 55, 0.2);
}

.clan-row:hover {
    background-color: rgba(185, 133, 55, 0.15);
}

.clan-row:last-child {
    border-bottom: none;
}

.clans-table td {
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 14px;
    vertical-align: middle;
}

.clan-tag-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--modal-gold-shadow), var(--modal-gold));
    color: #2c1810;
    padding: 4px 8px;
    border-radius: var(--border-radius-small);
    font-family: var(--font-family-primary);
    font-weight: 700;
    font-size: 12px;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid var(--modal-gold-shadow);
}

.clan-name-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color var(--transition-fast) ease;
}

.clan-name-link:hover {
    color: var(--modal-gold-shadow);
    text-decoration: underline;
}

.members-count {
    font-weight: 700;
    color: var(--modal-gold-shadow);
    font-size: 16px;
}

.members-label {
    color: var(--text-primary);
    font-size: 12px;
    margin-left: 4px;
    opacity: 0.8;
}

.view-clan-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(to bottom,
            #f4e4bc 0%,
            #d4af37 15%,
            #b8941f 50%,
            #9c7a0a 85%,
            #8b6914 100%);
    border: 1px solid #6b5016;
    border-top-color: #f4e4bc;
    border-left-color: #e6d299;
    color: #2c1810;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
    text-decoration: none;
    border-radius: var(--border-radius-small);
    font-family: var(--font-family-primary);
    font-weight: 600;
    font-size: 12px;
    transition: all var(--transition-fast) ease;
}

.view-clan-link:hover {
    background: linear-gradient(to bottom,
            #f9f0d1 0%,
            #e6c547 15%,
            #ca9f2f 50%,
            #ad851a 85%,
            #9c7424 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.view-clan-link i {
    font-size: 10px;
    transition: transform var(--transition-fast) ease;
}

.view-clan-link:hover i {
    transform: translateX(2px);
}

/* Responsive design */
@media screen and (max-width: 768px) {

    .clans-table th,
    .clans-table td {
        padding: 10px 12px;
    }

    .clans-table th {
        font-size: 14px;
    }

    .clans-table td {
        font-size: 13px;
    }

    .clan-tag-badge {
        font-size: 11px;
        padding: 3px 6px;
    }

    .view-clan-link {
        padding: 4px 8px;
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {

    .clans-table th:nth-child(4),
    .clans-table td:nth-child(4) {
        display: none;
    }

    .clan-name-cell {
        position: relative;
    }

    .clan-name-cell::after {
        content: "→";
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--modal-gold-shadow);
        font-weight: bold;
    }

    .clans-table th,
    .clans-table td {
        padding: 8px 10px;
    }
}


.clan-info-card {
    position: relative;
    background-image:
        linear-gradient(to bottom, rgba(247, 195, 127, 0.816), rgba(247, 195, 127, 0.712)),
        url('../layout/2024/images/cream-paper.webp');
    background-repeat: repeat;
    background-size: 50%;
    box-shadow:
        0 4px 8px rgba(25, 15, 10, 0.6),
        0 2px 4px rgba(40, 25, 15, 0.5),
        0 8px 16px rgba(15, 10, 8, 0.4),
        0 12px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(139, 115, 85, 0.4),
        inset 0 -2px 0 rgba(25, 15, 10, 0.7),
        inset 2px 0 0 rgba(40, 25, 15, 0.5),
        inset -2px 0 0 rgba(40, 25, 15, 0.5),
        inset 0 3px 6px rgba(20, 12, 8, 0.4);
    border-radius: 8px;
    padding: 0;
    margin: 20px 0;
    transition: transform var(--transition-medium) ease, box-shadow var(--transition-medium) ease;
    z-index: 1;
}


/* Load More Container */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    padding: 1rem;
}

.load-more-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
}

.load-more-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
    text-decoration: none;
}

.load-more-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.load-more-button i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.load-more-button:hover i {
    transform: translateY(2px);
}

/* Pagination Info */
.pagination-info {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    padding: 0.5rem;
}

.back-to-top-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.back-to-top-button:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    transform: translateY(-1px);
}

.back-to-top-button i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.back-to-top-button:hover i {
    transform: translateY(-2px);
}


.clan-title {
    color: var(--modal-gold-highlight);
    font-family: var(--font-family-primary);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding: 5px 8px;
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
    text-shadow:
        0 0 3px rgba(0, 0, 0, 0.8),
        0 0 6px rgba(0, 0, 0, 0.6),
        1px 1px 2px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(33, 22, 1, 0.4);
}

.clan-details {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.clan-leader,
.clan-members {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
    font-family: var(--font-family-secondary);
    font-weight: bold;
}

.clan-leader i {
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.clan-members i {
    color: var(--modal-gold-highlight);
    text-shadow: 0 0 3px rgba(233, 201, 137, 0.5);
}

.clan-leader .label,
.clan-members .label {
    color: var(--modal-gold);
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.clan-leader .value,
.clan-members .count {
    color: var(--text-light);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.clan-members-list {
    padding: 20px;
}

.clan-members-list h4 {
    color: var(--text-primary);
    font-family: var(--font-family-primary);
    font-size: 18px;
    margin: 0 0 15px 0;
    text-align: center;
    border-bottom: 1px solid rgba(185, 133, 55, 0.3);
    padding-bottom: 10px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.member-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: var(--border-radius-small);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-family: var(--font-family-secondary);
    font-weight: 600;
    border: 1px solid rgba(185, 133, 55, 0.2);
    transition: all var(--transition-fast) ease;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.member-item:hover {
    background: rgba(185, 133, 55, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.member-item i {
    color: var(--modal-gold-highlight);
    font-size: 12px;
}

.inline-member-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.member-button {
    background: none;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    font-family: var(--font-family-secondary);
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color var(--transition-fast) ease;
    text-align: left;
}

.member-button:hover {
    color: var(--modal-gold-highlight);
    text-decoration: underline;
}

.member-button:focus {
    outline: 1px dotted var(--modal-gold-highlight);
    outline-offset: 2px;
}

/* Responsive adjustments for clan cards */
@media screen and (max-width: 768px) {
    .clan-details {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

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

    .clan-title {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .clan-info-card {
        margin: 10px 0;
    }

    .clan-members-list {
        padding: 15px;
    }

    .clan-title {
        font-size: 16px;
    }
}


/* ===================================
   FOOTER
   =================================== */

.footer {
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 15px;
    border-top: 2px solid rgba(248, 204, 123, 0.688);
    font-family: var(--font-family-secondary);
    background: linear-gradient(to top, #332619c9, #170f04a2);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px var(--rules-trim);
    margin-top: 2%;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 0.5em;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-icons {
    display: flex;
    align-items: center;
    color: var(--text-white);
    text-shadow: #000 0 5px;
}

.footer-icons a {
    margin-left: 10px;
    font-size: 25px;
    color: var(--text-white);
}

.footer-links {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0 5px;
    color: var(--text-white);
}

.footer-links li {
    margin-left: 20px;
}

.footer-links a {
    text-decoration: none;
    color: rgb(255, 208, 0);
    font-size: 12px;
}

.footer-copyright {
    text-align: center;
    font-size: 10px;
    color: var(--text-white);
}

/* ===================================
   FORUM STYLES
   =================================== */

.forum-category-container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.forum-categories {
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
    background-color: rgba(185, 133, 55, 0.1);
    border: 1px solid rgba(185, 133, 55, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.forum-categories p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    font-family: var(--font-family-secondary);
    padding: 10px 0;
    margin: 0;
    letter-spacing: 0.2px;
}

.forum-categories h3 {
    font-family: var(--font-family-primary), var(--font-family-secondary);
    color: #333333;
    border: 1px solid rgba(209, 209, 209, 0.3);
    background-color: rgba(185, 133, 55, 0.4);
    padding: 10px 15px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast) ease;
    cursor: pointer;
    border-bottom: 2px solid rgba(137, 23, 23, 0.5);
}

.forum-categories h3.forum-category-h3 {
    font-size: 12px;
}

.forum-categories h3:hover {
    background-color: rgba(185, 133, 55, 0.5);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.forum-categories h3 a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color var(--transition-fast) ease;
    display: block;
    width: 100%;
}

.forum-categories h3 a:hover {
    color: #891717;
}

.forum-categories h3::before {
    content: '\1F4C1';
    margin-right: 10px;
}

.forum-categories h3::after {
    content: '\2192';
    font-size: 2em;
    color: #891717;
    opacity: 0;
    transition: opacity var(--transition-fast) ease, transform var(--transition-fast) ease;
}

.forum-categories h3:hover::after {
    opacity: 1;
    transform: translateX(5px);
}

.forum-categories ul {
    list-style: none;
    padding-left: 0;
}

.forum-categories>ul>li {
    padding-bottom: 10px;
}

.category-topics {
    margin-top: 10px;
    border: 1px solid rgba(185, 133, 55, 0.2);
    border-radius: var(--border-radius-small);
    padding: 10px;
    font-family: var(--font-family-secondary);
    background-color: rgba(185, 133, 55, 0.05);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category-topics li {
    margin-bottom: 4px;
    padding: 8px;
    border-bottom: 1px solid rgba(224, 224, 224, 0.2);
    background-color: rgba(185, 133, 55, 0.1);
    border: 1px solid rgba(185, 133, 55, 0.2);
    border-radius: var(--border-radius-small);
    transition: background-color var(--transition-fast) ease;
}

.category-topics li:last-child {
    border-bottom: none;
}

.category-topics li:hover {
    background-color: rgba(185, 133, 55, 0.2);
}

.category-topics li::before {
    content: '\1F4AC';
    margin-right: 2px;
}

.category-topics a {
    font-weight: bold;
    text-decoration: none;
    color: #891717;
    transition: color var(--transition-fast) ease;
    font-size: 11px;
}

.category-topics a:hover {
    color: #5e0f0f;
}

.category-topics .username-date {
    font-size: 10px;
}

.category-topics span {
    display: block;
    color: #666;
    font-size: 1px;
    margin-top: 4px;
}

.category-topics p {
    font-size: 10px;
    color: #999;
    margin-top: 5px;
    padding-left: 10px;
}

/* Forum Posts */
.forum-post {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto 20px;
    border-radius: 5px;
    background-color: rgba(255, 255, 175, 0.079);
    border: 1px solid rgba(80, 68, 50, 0.295);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-header {
    font-family: var(--font-family-primary), var(--font-family-secondary);
    color: #333333;
    border: 1px solid rgba(209, 209, 209, 0.3);
    background-color: rgba(214, 150, 60, 0.358);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(137, 23, 23, 0.5);
    border-radius: 5px 5px 0 0;
}

.username {
    font-weight: bold;
    color: #5e0f0f;
    font-size: 12px;
    margin-right: 5px;
}

.clantag {
    color: #5e0f0f;
    font-size: 10px;
    margin-right: 10px;
    font-style: italic;
}

.post-date {
    color: var(--text-primary);
    font-size: 10px;
    font-style: italic;
}

.post-content {
    padding: 15px;
    font-family: var(--font-family-secondary);
}

.message {
    font-size: 12px;
    color: #000000;
    line-height: 1.5;
    letter-spacing: 0.2px;
    margin-bottom: 15px;
    font-family: var(--font-family-tertiary);
}

.signature {
    border-top: 1px solid rgba(185, 133, 55, 0.2);
    padding-top: 10px;
    margin-top: 15px;
    font-size: 10px;
    color: #000000;
    font-style: italic;
}

/* Forum Breadcrumbs */
.forum-breadcrumbs {
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    text-align: center;
    background-color: rgba(185, 133, 55, 0.1);
    border: 1px solid rgba(185, 133, 55, 0.3);
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.forum-breadcrumbs span {
    display: inline-block;
    font-family: var(--font-family-secondary);
    font-size: 12px;
    font-weight: bold;
    color: #333333;
}

.forum-breadcrumbs a {
    text-decoration: none;
    color: #000000;
    transition: color var(--transition-fast) ease;
}

.forum-breadcrumbs a:hover {
    color: #5e0f0f;
    text-decoration: underline;
}

/* Forum Topics */
.forum-topics {
    width: 95%;
    margin: 0 auto;
    background-color: rgba(185, 133, 55, 0.1);
    border: 1px solid rgba(185, 133, 55, 0.3);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: var(--font-family-secondary);
}

.topic-header,
.topic-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 1fr;
    padding: 10px;
    align-items: center;
}

.topic-header {
    background-color: rgba(214, 150, 60, 0.358);
    border-bottom: 2px solid rgba(137, 23, 23, 0.5);
    font-weight: bold;
    color: #333333;
}

.topic-row {
    border-bottom: 1px solid rgba(185, 133, 55, 0.2);
    transition: background-color var(--transition-fast) ease;
}

.topic-row:last-child {
    border-bottom: none;
}

.topic-row:hover {
    background-color: rgba(185, 133, 55, 0.2);
}

.topic-title a {
    text-decoration: none;
    color: #891717;
    font-weight: bold;
    transition: color var(--transition-fast) ease;
    font-size: 14px;
}

.topic-title a:hover {
    color: #5e0f0f;
    text-decoration: underline;
}

.topic-author,
.topic-date,
.topic-last-reply,
.topic-replies {
    font-size: 12px;
    color: var(--text-primary);
}

.topic-error,
.no-topics {
    padding: 15px;
    text-align: center;
    color: #891717;
    font-style: italic;
}

/* ===================================
   BANNERS & NOTIFICATIONS
   =================================== */

.disclaimer-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 98%;
    background-image: linear-gradient(145deg, #670a0a, #4b0a0a);
    box-shadow: inset 0 0 3px #000, 0 0 6px black;
    text-shadow: 1px 1px 2px #000;
    padding: 15px;
    border-top: 1px solid #ddd;
    z-index: var(--z-modal);
    display: none;
    transition: opacity 1s ease-out;
}

.disclaimer-banner p {
    font-size: 12px;
    font-family: var(--font-family-tertiary);
    margin: 0 auto;
    color: #ffffffd6;
    text-align: left;
}

.disclaimer-banner.show {
    display: block;
}

.disclaimer-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.disclaimer-close:hover {
    color: var(--text-white);
}

/* ===================================
   COOKIE CONSENT
   =================================== */

#cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: var(--text-white);
    padding: 20px;
    z-index: var(--z-modal);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-slow) ease-in-out;
    transform: translateY(0);
}

#cookie-consent.hidden {
    transform: translateY(100%);
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
}

.cookie-msg {
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
    font-family: Arial, Helvetica, sans-serif;
    flex: 1;
}

.cookie-msg a {
    color: #4caf50;
    text-decoration: none;
    font-weight: 600;
}

.cookie-msg a:hover {
    text-decoration: underline;
}

.cookie-accept {
    flex-shrink: 0;
}

.cookie-button {
    background: #4caf50;
    color: var(--text-white);
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background var(--transition-medium) ease, transform var(--transition-fast) ease;
}

.cookie-button:hover {
    background: #45a049;
    transform: scale(1.05);
}

.cookie-button:active {
    transform: scale(0.95);
}

/* ===================================
   RESPONSIVE DESIGN - TABLET
   =================================== */

@media screen and (max-width: 768px) {

    /* Navigation */
    .nav-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 40px;
    }

    .nav-header {
        display: flex;
        align-items: center;
        padding: 15px 5px;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        display: none;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.867);
        position: absolute;
        top: 100%;
        left: 0;
        border-top: 2px solid rgba(149, 120, 48, 0.682);
    }

    .nav-list::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: -1;
        transform: translateZ(0);
        filter: blur(8px);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-item,
    .login-button {
        margin: 10px 0;
    }

    .nav-item a,
    .login-button a {
        font-size: 14px;
        padding: 15px 20px;
    }

    .sub-nav a {
        font-size: 9px;
        padding: 4px 2px;
    }

    @media (max-width: 768px) {
    .sub-nav {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item:hover .sub-nav,
    .nav-item:focus-within .sub-nav,
    .nav-item.dropdown-active .sub-nav {
        display: block;
    }
}


    /* Hero Section */
    .logo a {
        width: min(300px, 60vw);
        min-height: 125px;
    }

    .hero {
        min-height: 300px;
        border-bottom-left-radius: 25% 10%;
        border-bottom-right-radius: 25% 10%;
    }

    .hero-header {
        background-color: none;
        backdrop-filter: none;
        padding: none;
        border-radius: none;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.718);
    }

    /* Buttons */
    .btn {
        width: 100%;
        height: 50px;
        font-size: 16px;
        margin: 10px 0;
    }

    .btn:hover {
        transform: scale(1.05);
    }

    .register-btn,
    .register-btn-animated,
    .tour-btn {
        width: 160px;
        height: 30px;
        font-size: 14px;
        line-height: 30px;
        padding: 0;
    }

    .tour-btn {
        margin-right: 2px;
        margin-bottom: 10px;
    }

    /* Containers */
    .information-sections-container {
        flex-direction: column;
    }

    .information-container,
    .news-container {
        max-width: 80%;
        padding: 5px;
        text-wrap: wrap;
    }

    .registration-div {
        padding-bottom: 0%;
        width: 100%;
    }

    /* Forms */
    .character-form {
        border-radius: 0px;
        max-width: 90%;
        margin: 0 auto;
    }

    .form-label {
        display: block;
        margin-top: 10px;
        font-size: 14px;
    }

    .form-input {
        width: 80%;
        padding: 10px;
        margin-bottom: 20px;
        border: 2px solid #ccc;
        border-radius: 5px;
        font-size: 14px;
        background-color: #333;
        color: var(--text-white);
    }

    .search-user-form {
        width: 75%;
    }

    /* Headers */
    .information-header,
    .buttons-header,
    .news-header,
    .clan-hs-header {
        font-family: var(--font-family-primary);
        font-size: 16px;
    }

    .information-header h2,
    .information-header h1,
    .news-header h1 {
        font-size: 16px;
    }

    /* Content */
    .information-div p,
    .gametour-div p {
        font-size: 14px;
    }

    .news-message {
        font-size: 12px;
        line-height: 1.6;
        padding: 10px 15px;
        margin: 2px;
        word-spacing: 0.2px;
        border-bottom: 1px solid rgba(185, 133, 55, 0.2);
        color: var(--text-primary);
        text-align: left;
    }

    .news-message h1,
    .news-message p {
        color: var(--text-primary);
    }

    /* Slider */
    .slider-container {
        max-width: 90vw;
    }

    .slider-image {
        max-width: 85%;
    }

    .slider-content {
        padding: 20px;
    }

    .nav-button {
        padding: 8px;
        font-size: 18px;
    }

    .prev-button {
        left: 30px;
    }

    .next-button {
        right: 30px;
    }

    .island-name {
        font-size: 11px;
    }

    /* Skills */
    .syrnia-skills img {
        width: 40px;
    }

    .skill-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 5px 7px;
        border-radius: var(--border-radius-large);
        background-color: var(--background-light);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        max-width: 90%;
    }

    .skill-item img {
        width: 30px;
        height: 30px;
        margin: 1px;
    }

    /* Manual */
    .manual-container {
        margin: 5% auto;
        max-width: 97%;
    }

    .manual-selector select {
        padding: 3px;
        font-size: 12px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
        margin-bottom: 5px;
    }

    .footer-section {
        width: 100%;
        align-items: center;
        margin-bottom: 5px;
    }

    .footer-icons {
        justify-content: center;
    }

    .footer-icons a {
        font-size: 20px;
    }

    .footer-links {
        align-items: center;
    }

    .footer-links li {
        margin: 0 5px;
    }

    /* Banners */
    .disclaimer-banner {
        font-size: 14px;
        padding: 10px;
    }

    .disclaimer-banner p {
        font-size: 10px;
        padding: 2px;
    }

    .disclaimer-close {
        right: 20px;
        bottom: 5%;
    }

    /* Cookie Consent */
    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie {
        flex-direction: column;
        gap: 15px;
    }

    .cookie-button {
        width: 100%;
        padding: 12px;
    }

    /* Forum */
    .forum-topics {
        width: 90%;
    }

    .topic-header,
    .topic-row {
        grid-template-columns: 1fr;
        grid-gap: 2px;
        padding: 10px 5px;
    }

    .topic-header {
        display: none;
    }

    .topic-row {
        border-bottom: 1px solid rgba(185, 133, 55, 0.3);
        padding-bottom: 5px;
    }

    .topic-title {
        font-size: 16px;
        margin-bottom: 5px;
        padding: 2px 10px;
    }

    .topic-author,
    .topic-date,
    .topic-last-reply,
    .topic-replies {
        font-size: 12px;
        display: flex;
        justify-content: space-between;
        padding: 2px 10px;
    }

    .topic-author::before {
        content: "Author:";
        font-weight: bold;
        text-transform: capitalize;
        margin-right: 5px;
    }

    .topic-date::before {
        content: "Date:";
        font-weight: bold;
        text-transform: capitalize;
        margin-right: 5px;
    }

    .topic-last-reply::before {
        content: "Last reply:";
        font-weight: bold;
        text-transform: capitalize;
        margin-right: 5px;
    }

    .topic-replies::before {
        content: "Replies:";
        font-weight: bold;
        text-transform: capitalize;
        margin-right: 5px;
    }

    .topic-title a {
        font-size: 16px;
    }

    .post-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-date {
        margin-top: 5px;
    }

    .forum-breadcrumbs {
        width: 90%;
        font-size: 11px;
        padding: 8px;
    }

    .forum-categories {
        padding: 25px;
    }

    .forum-categories h3 {
        font-size: 1.5em;
    }

    .category-topics li {
        padding: 10px;
    }

    .category-topics span {
        font-size: 0.875em;
    }

    /* Release content */
    .release-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .release-date {
        margin-top: 5px;
    }

    .release-version,
    .release-date {
        font-size: 0.8rem;
    }

    .release-title {
        font-size: 1.2rem;
        padding: 15px;
    }

    .release-content {
        padding: 15px;
        font-size: 1rem;
    }
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE
   =================================== */

@media screen and (max-width: 480px) {

    /* Navigation */
    .nav-toggle {
        display: block;
    }

    .hero-header {
        padding: none;
    }

    .nav-item,
    .login-button {
        margin: 8px 0;
    }

    .nav-item a,
    .login-button a {
        font-size: 14px;
        padding: 15px 20px;
    }

    .sub-nav a {
        min-width: 80px;
        padding: 4px 6px;
        font-size: 10px;
    }

    /* Hero */
    .hero {
        min-height: 275px;
        border-bottom-left-radius: 45% 10%;
        border-bottom-right-radius: 45% 10%;
    }

    .logo a {
        width: min(300px, 70vw);
        min-height: 130px;
    }

    /* Buttons */
    .btn-hover {
        width: 140px;
        font-size: 12px;
        height: 35px;
    }

    /* Headers */
    .information-header h2,
    .information-header h1,
    .news-header h1 {
        font-size: 14px;
    }

    /* Modal */
    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 15px;
    }

    .modal-content h2 {
        font-size: 18px;
    }

    .modal-content label {
        font-size: 11px;
    }

    .modal-content input[type="text"],
    .modal-content input[type="password"],
    .modal-content button {
        font-size: 11px;
    }

    .modal-content button {
        padding: 8px;
    }

    .modal-content .forgot-password {
        font-size: 9px;
    }

    /* Content */
    .information-div p,
    .gametour-div p,
    .news-header p {
        font-size: 14px;
    }

    .information-container,
    .news-container {
        max-width: 98%;
    }

    .news-message iframe {
        width: 100vw;
        height: 20vh;
    }

    /* Slider */
    .slider-container {
        max-width: 95vw;
    }

    .slider-image {
        max-width: 95%;
        max-height: 70vh;
    }

    .slider-content {
        padding: 15px;
    }

    .slider-image img {
        height: 70vh;
    }

    .island-name {
        font-size: 0.9rem;
        padding: 4px 8px;
        top: 20px;
    }

    .nav-button {
        padding: 6px;
        font-size: 16px;
    }

    .prev-button {
        left: 10px;
    }

    .next-button {
        right: 10px;
    }

    /* Skills */
    .syrnia-skills {
        max-width: 80%;
        margin: 0 auto;
    }

    .syrnia-skills img {
        width: 35px;
    }

    /* Forum */
    .forum-topics {
        width: 100%;
    }

    .topic-row {
        padding: 10px 3px;
    }

    .topic-title a {
        font-size: 14px;
    }

    .topic-author,
    .topic-date,
    .topic-last-reply,
    .topic-replies {
        font-size: 11px;
    }

    /* Release content */
    .release-version,
    .release-date {
        font-size: 0.75rem;
    }

    .release-title {
        font-size: 1.1rem;
        padding: 12px;
    }
}

/* ===================================
   RESPONSIVE DESIGN - EXTRA SMALL
   =================================== */

@media screen and (max-width: 480px) {
    .slider-image {
        max-height: 60vh;
    }

    .slider-image img {
        height: 60vh;
    }

    .nav-button {
        padding: 4px;
        font-size: 14px;
    }

    .prev-button {
        left: 5px;
    }

    .next-button {
        right: 5px;
    }

    .island-name {
        font-size: 10px;
        padding: 2px;
    }
    .manual-selector {
        margin-top: 10px;
    }
}

/* ===================================
   RESPONSIVE DESIGN - LANDSCAPE MOBILE
   =================================== */

@media screen and (max-width: 767px) and (orientation: landscape) {
    .slider-image {
        max-height: 85vh;
    }

    .slider-image img {
        height: 85vh;
    }

    .island-name {
        top: 10px;
    }
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE
   =================================== */
@media screen and (max-width: 767px) {
    .manual-selector {
        margin-top: 36px;
    }
}

/* ===================================
   RESPONSIVE DESIGN - LARGE SCREENS
   =================================== */

@media screen and (min-width: 1200px) {
    .slider-container {
        max-width: 80vw;
    }

    .slider-image {
        max-width: 75%;
    }
    .manual-selector {
        margin-top: 18px;
    }
}

/* ===================================
   RESPONSIVE DESIGN - MEDIUM SCREENS
   =================================== */

@media screen and (max-width: 1199px) and (min-width: 768px) {
    .slider-container {
        max-width: 90vw;
    }

    .slider-image {
        max-width: 85%;
    }

    .slider-content {
        padding: 20px;
    }

    .nav-button {
        padding: 8px;
        font-size: 18px;
    }

    .prev-button {
        left: 30px;
    }

    .next-button {
        right: 30px;
    }
    .manual-selector {
        margin-top: 14px;
    }
}