/* CSS Design System for flex-MMORPG Presentation Site */

:root {
    --bg-main: #0e0a08;
    --bg-card: rgba(26, 20, 17, 0.7);
    --border-card: rgba(241, 168, 10, 0.15);
    
    --primary: #f1a80a;
    --primary-hover: #ffbf33;
    --primary-glow: rgba(241, 168, 10, 0.4);
    
    --secondary: #2f251e;
    --secondary-hover: #41342a;
    --secondary-border: rgba(255, 255, 255, 0.08);

    --text-main: #f3f0ed;
    --text-muted: #a89f95;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-main);
    border: 1px solid var(--secondary-border);
}

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

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.1rem;
}

/* Header styling */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: rgba(14, 10, 8, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo-text span {
    color: var(--primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1100;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg-glow {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(600px, 100vw);
    height: min(600px, 100vw);
    background: radial-gradient(circle, rgba(241, 168, 10, 0.1) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(241, 168, 10, 0.1);
    color: var(--primary);
    border: 1px solid rgba(241, 168, 10, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.badge-online {
    background-color: rgba(39, 201, 63, 0.1);
    color: #27c93f;
    border: 1px solid rgba(39, 201, 63, 0.2);
    gap: 0.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #27c93f;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(39, 201, 63, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(39, 201, 63, 0);
    }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--primary);
    text-shadow: 0 0 30px rgba(241, 168, 10, 0.25);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Mockup / Preview */
.hero-preview {
    display: flex;
    justify-content: center;
}

.preview-card-outer {
    background: linear-gradient(135deg, rgba(241, 168, 10, 0.3) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 1px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.preview-card {
    background-color: #17110d;
    border-radius: 11px;
    width: 100%;
    max-width: 440px;
    overflow: hidden;
}

.preview-header {
    background-color: #271f1a;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.preview-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
    font-family: var(--font-body);
}

.preview-screen {
    padding: 1.5rem;
}

.preview-gameplay {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transition: var(--transition);
}

.preview-gameplay:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(241, 168, 10, 0.15);
}

/* Sections Common Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Features Section */
.features {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(241, 168, 10, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.feature-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Detailed Gameplay Section Styles */
.gameplay-details {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    background-color: rgba(10, 8, 6, 0.15);
}

.gameplay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.gameplay-column {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gameplay-column:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(241, 168, 10, 0.05);
}

.column-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.column-icon {
    font-size: 2rem;
}

.column-header h3 {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
}

.gameplay-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.gameplay-list li {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.gameplay-list li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* Classes Section */
.classes {
    padding: 100px 0;
    background-color: rgba(10, 8, 6, 0.3);
}

.classes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 2rem;
}

.class-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
}

.class-card:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: scale(1.02);
}

.class-card.guerrier:hover { border-color: #e76f51; }
.class-card.mage:hover { border-color: #457b9d; }
.class-card.archer:hover { border-color: #2a9d8f; }
.class-card.necromancien:hover { border-color: #9d4edd; }

.class-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.25rem;
}

.class-icon {
    font-size: 1.8rem;
}

.class-name {
    font-size: 1.4rem;
}

.class-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    height: 72px; /* Fixed height to align tags */
    overflow: hidden;
}

.class-stats {
    display: flex;
    gap: 0.5rem;
}

.stat-badge {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Universe Section */
.universe {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(rgba(14, 10, 8, 0.5), rgba(14, 10, 8, 0.9)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M0 0 L50 50 L100 0' fill='none' stroke='rgba(241,168,10,0.02)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: cover;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.universe-container {
    max-width: 800px;
}

.universe-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.universe .btn {
    margin-top: 1.5rem;
}

/* Footer Section */
.footer {
    padding: 2.5rem 0;
    background-color: #080605;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary);
}

/* Ladder Section Styles */
.ladder {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.ladder-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 200px;
}

.control-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.control-group select, 
.control-group input {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.control-group select:focus, 
.control-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(241, 168, 10, 0.15);
}

.search-group {
    flex: 2 1 300px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    width: 100%;
    padding-right: 2.5rem;
}

#btn-search-clear {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

#btn-search-clear:hover {
    color: var(--primary);
}

/* Table styling */
.ladder-table-container {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow-x: auto;
    min-height: 300px;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ladder-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.ladder-table th, 
.ladder-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.ladder-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    background-color: rgba(0, 0, 0, 0.2);
}

.ladder-table tbody tr {
    transition: var(--transition);
}

.ladder-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.rank-col {
    font-weight: 700;
    font-size: 1.1rem;
    width: 80px;
}

.rank-1 { color: #f1a80a; text-shadow: 0 0 10px rgba(241, 168, 10, 0.3); }
.rank-2 { color: #cbd5e1; }
.rank-3 { color: #b45309; }

.name-col {
    font-weight: 600;
    color: var(--text-main);
}

.class-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.class-tag.guerrier { background-color: rgba(231, 111, 81, 0.1); color: #e76f51; border: 1px solid rgba(231, 111, 81, 0.2); }
.class-tag.mage { background-color: rgba(69, 123, 157, 0.1); color: #457b9d; border: 1px solid rgba(69, 123, 157, 0.2); }
.class-tag.archer { background-color: rgba(42, 157, 143, 0.1); color: #2a9d8f; border: 1px solid rgba(42, 157, 143, 0.2); }
.class-tag.nécromancien { background-color: rgba(157, 78, 221, 0.1); color: #a252ee; border: 1px solid rgba(157, 78, 221, 0.2); }

.level-col {
    font-weight: 700;
    color: var(--primary);
}

.ladder-loading, 
.ladder-empty {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.ladder-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.ladder-loading::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid rgba(241, 168, 10, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spinner 0.8s infinite linear;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Pagination styling */
.ladder-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background-color: rgba(0, 0, 0, 0.15);
}

.btn-pagination {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-pagination:hover:not(:disabled) {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(241, 168, 10, 0.2);
}

.btn-pagination:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-info {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Gallery Carousel Styles */
.game-gallery {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    background-color: rgba(10, 8, 6, 0.2);
}

.carousel-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.carousel-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
    display: flex;
    flex-direction: column;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-image-wrapper {
    flex-grow: 1;
    width: 100%;
    height: 80%;
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-slide:hover .slide-image-wrapper img {
    transform: scale(1.03);
}

.slide-caption {
    background: linear-gradient(to top, rgba(14, 10, 8, 1) 0%, rgba(14, 10, 8, 0.85) 80%, rgba(14, 10, 8, 0) 100%);
    padding: 1.5rem 2rem 2rem 2rem;
    text-align: center;
}

.slide-caption h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.slide-caption p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.carousel-btn {
    background: rgba(26, 20, 17, 0.8);
    border: 1px solid var(--border-card);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    user-select: none;
    z-index: 10;
    line-height: 1;
}

.carousel-btn:hover {
    background-color: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary-glow);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.dot-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot-indicator.active {
    background-color: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 8px var(--primary);
}

/* Atlas Biomes Section Styles */
.atlas-biomes {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    background-color: rgba(10, 8, 6, 0.25);
}

.biomes-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 3rem;
    padding: 0 3.5rem;
    max-width: 100%;
    overflow: hidden;
}

.biomes-carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px 0;
    width: 100%;
}

.biomes-carousel-track::-webkit-scrollbar {
    display: none;
}

.biomes-carousel-track .biome-item {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 250px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 1.75rem 1.5rem;
    position: relative;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-sizing: border-box;
}

.biomes-carousel-track .biome-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(241, 168, 10, 0.05);
}

.biome-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 20, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    user-select: none;
    z-index: 10;
    line-height: 1;
}

.biome-carousel-btn:hover {
    background-color: var(--primary);
    color: #000;
    box-shadow: 0 0 12px rgba(241, 168, 10, 0.3);
}

#biome-prev {
    left: 0;
}

#biome-next {
    right: 0;
}

.biome-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(241, 168, 10, 0.1);
    border: 1px solid rgba(241, 168, 10, 0.2);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.biome-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
}

.biome-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .biomes-carousel-track .biome-item {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

@media (max-width: 968px) {
    .biomes-carousel-track .biome-item {
        flex: 0 0 calc(50% - 0.75rem);
    }
    .biomes-carousel-wrapper {
        padding: 0 3rem;
    }
}

@media (max-width: 576px) {
    .biomes-carousel-track .biome-item {
        flex: 0 0 calc(100% - 0rem);
        min-width: 0;
    }
    .biomes-carousel-wrapper {
        padding: 0 2rem;
    }
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-preview {
        order: -1;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .preview-card-outer {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gameplay-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 1.5rem;
        height: 100%;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(14, 10, 8, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 2.5rem 1.5rem;
        gap: 1.75rem;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
        z-index: 999;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
        display: block !important;
    }
    
    #btn-ladder-header {
        display: inline-block !important;
        width: 100%;
        max-width: 250px;
        text-align: center;
        padding: 0.75rem 1.5rem;
    }
    
    #btn-play-header {
        display: inline-block !important;
        width: 100%;
        max-width: 250px;
        text-align: center;
        padding: 0.75rem 1.5rem;
    }
    
    .carousel-wrapper {
        gap: 0.5rem;
        position: relative;
        padding: 0 1rem;
    }
    
    .carousel-btn {
        position: absolute;
        z-index: 10;
        background: rgba(0, 0, 0, 0.7) !important;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        width: 40px;
        height: 40px;
    }
    
    #carousel-prev {
        left: 20px;
    }
    
    #carousel-next {
        right: 20px;
    }
    
    .slide-caption h3 {
        font-size: 1.15rem;
    }
    
    .slide-caption p {
        font-size: 0.85rem;
    }

    /* Compact ladder table on tablet/mobile: hide individual profession columns */
    .ladder-table th:nth-child(5),
    .ladder-table td:nth-child(5),
    .ladder-table th:nth-child(6),
    .ladder-table td:nth-child(6),
    .ladder-table th:nth-child(7),
    .ladder-table td:nth-child(7),
    .ladder-table th:nth-child(8),
    .ladder-table td:nth-child(8) {
        display: none;
    }
    
    .ladder-table th, 
    .ladder-table td {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 576px) {

    .hero {
        padding-top: 90px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .btn-lg {
        width: 100%;
        padding: 0.85rem 1.5rem;
    }

    .preview-card-outer {
        width: 100%;
        max-width: 100%;
    }

    .preview-card {
        width: 100%;
        max-width: 100%;
    }
    
    .control-group {
        flex: 1 1 100%;
    }
    
    .ladder-controls {
        padding: 1rem;
        gap: 1rem;
    }
    
    .ladder-pagination {
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .btn-pagination {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .pagination-info {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 600px;
    background: rgba(18, 14, 11, 0.95);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: none;
    flex-direction: column;
    gap: 1.25rem;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.cookie-banner.show {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 700;
}

.cookie-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-desc a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-preferences {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.cookie-preferences.active {
    display: flex;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.option-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.option-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.option-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

@media (max-width: 576px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 1.25rem;
    }
    .cookie-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    .cookie-actions button {
        width: 100%;
    }
}

