/* ================================================
   Arkantos2 PRESENTATION - Main Styles
   ================================================ */

/* CSS Variables */
:root {
    /* Layout */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 0px;
    --topbar-height: 60px;
    --content-max-width: 1400px;

    /* Colors - Season 5 "Brass & Storm" (gunmetal ground, brass/copper, arc-blue energy) */
    --bg-dark: #0a0f16;
    --bg-secondary: #0f161f;
    --bg-tertiary: #16202c;
    --bg-card: #1b2633;
    --bg-card-hover: #233142;

    /* Accent Colors (copper -> brass -> brass highlight); arc is the S5 energy accent */
    --accent-arc: #5cc8ff;
    --accent-arc-bright: #a9e4ff;
    --accent-arc-rgb: 92, 200, 255;
    --accent-red: #b8683a;
    --accent-red-bright: #d99a6a;
    --accent-red-medium: #c47b45;
    --accent-orange: #c9a45c;
    --accent-gold: #e6c77e;
    --accent-cream: #f1ece0;

    /* RGB channels — single source for every rgba() in the stylesheet.
       Use as rgba(var(--*-rgb), <alpha>). Edit a color here and it
       updates everywhere it is used. */
    --accent-orange-rgb: 201, 164, 92;
    --accent-gold-rgb: 230, 199, 126;
    --bg-dark-rgb: 10, 15, 22;          /* matches --bg-dark, used in fades/overlays */
    --bg-tertiary-rgb: 22, 32, 44;      /* matches --bg-tertiary */

    /* Panel / surface gradients */
    --panel-grad-1-rgb: 27, 38, 51;     /* standard panel gradient — top */
    --panel-grad-2-rgb: 18, 26, 36;     /* standard panel gradient — bottom */
    --panel-feat-1-rgb: 35, 49, 66;     /* featured/elevated panel — top */
    --panel-feat-2-rgb: 24, 34, 46;     /* featured/elevated panel — bottom */
    --panel-hot-1-rgb: 138, 106, 46;     /* warm highlight gradient — top */
    --panel-hot-2-rgb: 104, 78, 32;     /* warm highlight gradient — bottom */
    --warm-border-rgb: 74, 61, 36;      /* subtle warm border */
    --warm-fill-rgb: 34, 44, 58;        /* muted warm fill */
    --warm-fill-2-rgb: 42, 54, 70;      /* muted warm fill (raised) */

    /* Warm deep tones (legacy brown names for compatibility) */
    --brown-dark: #8a6a2e;
    --brown-darker: #4a3d24;

    /* Warm Earth Tones */
    --accent-green-dark: #1b2633;
    --accent-green-deeper: #0f161f;
    --accent-green-moss: #233142;
    --accent-green-forest: #16202c;
    --accent-green-jade: #1e2a38;

    /* Text Colors */
    --text-primary: #f1ece0;
    --text-secondary: #c3c9d1;
    --text-muted: #8a96a3;

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Barlow', sans-serif;
    --font-label: 'Barlow Condensed', sans-serif;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;

    /* Borders */
    --border-radius: 8px;
    --border-color: rgba(201, 164, 92, 0.18);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

strong {
    color: var(--text-primary);
}

/* <img> tags carry intrinsic width/height so lazy images reserve their box;
   height:auto keeps the ratio while any CSS width applies */
img {
    height: auto;
}

/* Hero Video Background */
.hero-video-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 1150px;
    overflow: hidden;
    z-index: -2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center -150px;
}

/* Gradient fade from video to dark background */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(var(--bg-dark-rgb), 0.3) 0%,
        rgba(var(--bg-dark-rgb), 0.6) 40%,
        rgba(var(--bg-dark-rgb), 0.9) 70%,
        rgba(var(--bg-dark-rgb), 1) 100%
    );
    z-index: 1;
}

/* Hero Logo */
.hero-logo {
    position: absolute;
    top: 25%;
    left: calc(50% + 140px);
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

.hero-logo img {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
    animation: floatLogo 6s ease-in-out infinite;
}

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

/* Fallback for when video doesn't load */
.hero-video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -1;
}

/* ================================================
   TOP NAVIGATION BAR
   ================================================ */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.sidebar-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.topbar-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-cream);
    letter-spacing: 2px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link i {
    font-size: 16px;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-color: var(--brown-dark);
}

.lang-toggle .fa-globe {
    font-size: 16px;
}

.lang-arrow {
    font-size: 10px;
    transition: transform var(--transition-fast);
}

.lang-dropdown:hover .lang-arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: var(--bg-card);
    border: 1px solid var(--brown-dark);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
    z-index: 1000;
    max-height: 350px;
    overflow-y: auto;
    padding: 6px 0;
}

/* Scrollbar styling */
.lang-menu::-webkit-scrollbar {
    width: 6px;
}

.lang-menu::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.lang-menu::-webkit-scrollbar-thumb {
    background: var(--brown-dark);
    border-radius: 3px;
}

.lang-menu::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

.lang-dropdown:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
}

.lang-option:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.lang-option.active {
    background: var(--bg-tertiary);
    color: var(--accent-orange);
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

/* ================================================
   SIDEBAR NAVIGATION
   ================================================ */
.sidebar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--topbar-height));
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    z-index: 900;
    transition: transform var(--transition-normal);
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 0;
}

/* Custom Scrollbar */
.sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: var(--brown-dark);
    border-radius: 3px;
}

.sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

/* Navigation Category */
.nav-category {
    margin-bottom: 8px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition-fast);
    background: rgba(0, 0, 0, 0.35);
    margin: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.category-header:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.category-icon {
    color: var(--accent-orange);
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.category-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-arrow {
    color: var(--text-muted);
    font-size: 12px;
    transition: transform 0.35s ease;
}

.nav-category.expanded .category-arrow {
    transform: rotate(180deg);
}

.nav-category.expanded .category-header {
    background: rgba(var(--accent-orange-rgb), 0.15);
    border-color: rgba(var(--accent-orange-rgb), 0.3);
}

/* Category Items */
.category-items {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    transition: max-height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
                opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
                padding 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav-category.expanded .category-items {
    max-height: 2500px;
    opacity: 1;
    padding: 4px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 10px 36px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    margin: 2px 8px;
    border-radius: 4px;
}

.nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.nav-item.active {
    color: var(--accent-orange);
    background: rgba(var(--accent-orange-rgb), 0.1);
    border-left-color: var(--accent-orange);
}

/* Sub-item icons */
.nav-item-icon {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    font-size: 13px;
    color: var(--accent-orange);
    opacity: 0.65;
    transition: var(--transition-fast);
}

.nav-item:hover .nav-item-icon,
.nav-item.active .nav-item-icon {
    opacity: 1;
}

/* Sub-items in navigation */
.nav-item.nav-sub-item {
    padding-left: 68px;
    font-size: 13px;
    opacity: 0.85;
}

.nav-item.nav-sub-item::before {
    content: '›';
    position: absolute;
    left: 52px;
    color: var(--accent-orange);
    opacity: 0.6;
}

/* ================================================
   MAIN CONTENT AREA
   ================================================ */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--topbar-height);
    min-height: calc(100vh - var(--topbar-height));
    padding: 40px;
    padding-top: 500px;
    transition: margin-left var(--transition-normal);
}

body.sidebar-collapsed .main-content {
    margin-left: 0;
}

.content-section {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

/* Section Title */
.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    color: var(--accent-cream);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--accent-red);
}

/* ================================================
   FEATURE CARDS CONTAINER
   ================================================ */
.cards-container {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.cards-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/presentation/common/texture.png');
    background-repeat: repeat-y;
    background-size: 100% auto;
    opacity: 0.10;
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: 0;
}


/* ================================================
   APPRENTICE CHEST - Compact Design
   ================================================ */
#apprentice-chest .feature-subtitle {
    margin-bottom: 24px;
}

.apprentice-viewer-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ================================================
   DRAGON STONE ALCHEMY
   ================================================ */
/* Alchemy Row Layout - Cards + Preview alternating */
.alchemy-row {
    display: flex;
    align-items: stretch;
    gap: 30px;
    margin-bottom: 30px;
}

.alchemy-row.reverse {
    flex-direction: row-reverse;
}

.alchemy-row-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.alchemy-row-preview {
    flex: 0 0 500px;
    display: flex;
    align-items: center;
}

/* Size variants for alchemy-row-preview */
.alchemy-row-preview.large {
    flex: 0 0 600px;
}

.alchemy-row-preview.xl {
    flex: 0 0 700px;
}

.alchemy-row-preview img {
    border-radius: 8px;
    border: 1px solid rgba(74, 61, 36, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    min-height: 400px;
    object-fit: cover;
}

.alchemy-row-preview .asset-placeholder {
    width: 100%;
    height: 100%;
    min-height: 350px;
}

@media (max-width: 1200px) {
    .alchemy-row,
    .alchemy-row.reverse {
        flex-direction: column;
    }

    .alchemy-row-preview,
    .alchemy-row-preview.large,
    .alchemy-row-preview.xl {
        flex: 1;
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
    }

    .alchemy-row-preview .asset-placeholder {
        min-height: 280px;
    }
}

.alchemy-system-card {
    background: linear-gradient(145deg, rgba(var(--panel-grad-1-rgb), 0.7) 0%, rgba(var(--panel-grad-2-rgb), 0.9) 100%);
    border: 1px solid rgba(var(--accent-orange-rgb), 0.2);
    border-radius: 10px;
    padding: 24px;
    text-align: left;
    transition: all 0.3s ease;
}

.alchemy-system-card:hover {
    border-color: rgba(var(--accent-orange-rgb), 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.alchemy-system-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.alchemy-system-desc:last-child {
    margin-bottom: 0;
}

.alchemy-system-desc strong {
    color: var(--text-primary);
}

.alchemy-system-note {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alchemy-system-note i {
    color: var(--text-primary);
    font-size: 12px;
}

.alchemy-system-note strong {
    color: var(--text-primary);
}


/* Alchemy Stones Grid - 2 per row */
.alchemy-stones-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .alchemy-stones-grid {
        grid-template-columns: 1fr;
    }
}

/* Individual Stone Card */
.alchemy-stone-card {
    background: linear-gradient(145deg, rgba(var(--panel-grad-1-rgb), 0.7) 0%, rgba(var(--panel-grad-2-rgb), 0.9) 100%);
    border: 1px solid rgba(var(--accent-orange-rgb), 0.2);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.alchemy-stone-card:hover {
    border-color: rgba(var(--accent-orange-rgb), 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stone-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(var(--accent-orange-rgb), 0.2);
}

.stone-icon-placeholder {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 2px dashed var(--brown-dark);
    border-radius: 6px;
    flex-shrink: 0;
}

.stone-icon-placeholder i {
    font-size: 20px;
    color: var(--text-muted);
}

/* Stone icon when image is provided */
.stone-header img.stone-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.stone-name {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--accent-cream);
    font-weight: 600;
}

.stone-bonuses {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stone-bonuses li {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 13px;
    border-left: 2px solid var(--accent-orange);
    transition: all 0.2s ease;
}

.stone-bonuses li:hover {
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-primary);
}

/* Elemental Colors */
.element-fire { color: #ff6b4a; }
.element-ice { color: #6bcfff; }
.element-thunder { color: #5c7cfa; }
.element-earth { color: #c9a86c; }
.element-wind { color: #66bb6a; }
.element-darkness { color: #b388ff; }

/* Bonus scaling values in parentheses */
.bonus-scale {
    color: var(--text-primary);
    font-weight: 600;
}

/* ================================================
   FEATURE CARDS
   ================================================ */
.feature-card {
    padding: 32px;
    position: relative;
    background: linear-gradient(145deg, rgba(var(--panel-grad-1-rgb), 0.7) 0%, rgba(var(--panel-grad-2-rgb), 0.9) 100%);
    border: 1px solid rgba(var(--warm-border-rgb), 0.4);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
}

/* Top decorative divider line */
.feature-card:not(:first-child) {
    margin-top: 8px;
    padding-top: 40px;
    border-top: 1px solid;
    border-image: linear-gradient(90deg, transparent 10%, var(--accent-green-moss) 30%, var(--accent-green-moss) 70%, transparent 90%) 1;
    border-image-width: 1px 0 0 0;
}

/* Centered card variant */
.feature-card.centered {
    text-align: center;
}

.feature-card.centered .feature-subtitle {
    margin-bottom: 24px;
}

.feature-card.centered .feature-description {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    color: var(--accent-cream);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.feature-title::before,
.feature-title::after {
    font-size: 10px;
    color: var(--accent-orange);
    opacity: 0.6;
    letter-spacing: 4px;
}

.feature-title::before {
    content: '·  ◇  ◆';
}

.feature-title::after {
    content: '◆  ◇  ·';
}

.feature-subtitle {
    color: var(--accent-orange);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.feature-subtitle.centered {
    text-align: center;
    letter-spacing: 1px;
}

.feature-tagline {
    color: var(--text-muted);
    font-size: 15px;
    font-style: italic;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(74, 61, 36, 0.3);
}

.feature-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.feature-description:last-child {
    margin-bottom: 0;
}

.feature-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Philosophy Section - Modern 2025 Design */
#server-concept .feature-text {
    max-width: 1000px;
    margin: 0 auto;
}

/* Main Section Headings */
.philosophy-heading {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--accent-cream);
    margin-top: 48px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    position: relative;
    padding-bottom: 16px;
}

.philosophy-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-orange));
    border-radius: 2px;
}

/* Philosophy Grid Layout */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 0 auto 32px;
}

@media (max-width: 900px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
}

/* Philosophy Cards */
.philosophy-card {
    background: linear-gradient(145deg, rgba(var(--panel-grad-1-rgb), 0.7) 0%, rgba(var(--panel-grad-2-rgb), 0.9) 100%);
    border: 1px solid rgba(var(--accent-orange-rgb), 0.2);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.philosophy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-orange), var(--accent-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.philosophy-card:hover {
    border-color: rgba(var(--accent-orange-rgb), 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(var(--accent-orange-rgb), 0.1);
}

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

.philosophy-card.full-width {
    grid-column: 1 / -1;
    text-align: center;
}

.philosophy-card.full-width .philosophy-subheading {
    justify-content: center;
}

.philosophy-card.full-width .card-description {
    max-width: 600px;
    margin: 0 auto 16px;
}

/* Card Description */
.card-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.card-note {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    padding-left: 12px;
    border-left: 2px solid var(--accent-gold);
    margin-top: 12px;
}

/* Sub-section Headings in Cards */
.philosophy-subheading {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.philosophy-subheading::before {
    content: '◆';
    font-size: 8px;
    color: var(--accent-orange);
}

/* ================================================
   FEATURE SPLIT LAYOUT (Two Columns with Alternating)
   ================================================ */
.feature-card.feature-split {
    padding: 40px;
}

.feature-split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

/* Single row variant for centered cards */
.feature-split-layout.single-row {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

/* ================================================
   BOSSES SECTION
   ================================================ */
.bosses-intro {
    max-width: 800px;
    margin: 0 auto 40px;
}

.tribute-bosses-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0;
    margin: 20px 0 0;
}

.tribute-bosses-list li {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(var(--panel-hot-1-rgb), 0.3) 0%, rgba(var(--panel-hot-2-rgb), 0.5) 100%);
    border: 1px solid rgba(var(--accent-orange-rgb), 0.4);
    border-radius: 6px;
    color: var(--accent-cream);
    font-size: 14px;
    font-weight: 600;
}

.boss-types-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Boss Slideshow */
.boss-slideshow {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.boss-slides-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.boss-slide {
    display: none;
    animation: fadeIn 0.4s ease;
}

.boss-slide.active {
    display: block;
}

.boss-slide-content {
    display: flex;
    align-items: stretch;
    gap: 30px;
    background: linear-gradient(145deg, rgba(var(--panel-grad-1-rgb), 0.7) 0%, rgba(var(--panel-grad-2-rgb), 0.9) 100%);
    border: 1px solid rgba(var(--accent-orange-rgb), 0.25);
    border-radius: 12px;
    padding: 24px;
}

.boss-slide-info {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.boss-slide-preview {
    flex: 1;
}

.boss-slide-preview img {
    border-radius: 8px;
    border: 1px solid rgba(74, 61, 36, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.boss-slide-preview .asset-placeholder {
    height: 300px;
}

.boss-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--panel-grad-1-rgb), 0.8);
    border: 1px solid var(--brown-dark);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boss-nav-btn:hover {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

.boss-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.boss-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brown-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    padding: 0;
}

.boss-dot:hover {
    background: var(--text-muted);
}

.boss-dot.active {
    background: var(--accent-orange);
}

@media (max-width: 768px) {
    .boss-slideshow {
        flex-direction: column;
    }

    .boss-slide-content {
        flex-direction: column;
    }

    .boss-slide-info {
        flex: 1;
        text-align: center;
    }

    .boss-nav-btn {
        display: none;
    }
}

.boss-type-name {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
}

.boss-type-locations {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.boss-type-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    width: fit-content;
    margin-top: 4px;
}

.boss-type-tag.minor {
    background: rgba(122, 109, 98, 0.3);
    color: var(--text-muted);
    border: 1px solid rgba(122, 109, 98, 0.4);
}

/* ================================================
   WORLD BOSS SECTION
   ================================================ */
.world-boss-section {
    margin-bottom: 24px;
}

.world-boss-previews-horizontal {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.world-boss-previews-horizontal img {
    border-radius: 8px;
    border: 1px solid rgba(74, 61, 36, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: calc(50% - 8px);
    max-height: 220px;
    object-fit: contain;
}

.world-boss-row {
    display: flex;
    gap: 30px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.world-boss-row.reverse {
    flex-direction: row-reverse;
}

.world-boss-content {
    flex: 1;
}

.world-boss-previews {
    flex: 0 0 450px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.world-boss-previews .asset-placeholder {
    flex: 1;
    min-height: 180px;
}

.world-boss-previews.single .asset-placeholder {
    min-height: 350px;
}

.world-boss-previews img {
    border-radius: 8px;
    border: 1px solid rgba(74, 61, 36, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.world-boss-system-card {
    background: linear-gradient(145deg, rgba(var(--panel-grad-1-rgb), 0.7) 0%, rgba(var(--panel-grad-2-rgb), 0.9) 100%);
    border: 1px solid rgba(var(--accent-orange-rgb), 0.2);
    border-radius: 12px;
    padding: 24px;
    text-align: left;
}

.system-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
}

.system-tag.pvm {
    background: rgba(240, 185, 74, 0.2);
    color: #f0b94a;
    border: 1px solid rgba(240, 185, 74, 0.4);
}

.system-tag.pvp {
    background: rgba(239, 83, 80, 0.2);
    color: #ef5350;
    border: 1px solid rgba(239, 83, 80, 0.4);
}

.world-boss-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.bodyguard-types {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.bodyguard-type {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.bodyguard-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-right: 8px;
}

.bodyguard-label.dawn {
    color: var(--accent-orange);
}

.bodyguard-label.darkness {
    color: #b388ff;
}

.bodyguard-note {
    font-size: 12px;
    color: var(--text-muted);
}

.bodyguard-list {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 6px;
}

.how-it-works-title {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 1000px) {
    .world-boss-row,
    .world-boss-row.reverse {
        flex-direction: column;
    }

    .world-boss-previews {
        flex: 1;
        width: 100%;
        flex-direction: row;
    }

    .world-boss-previews.single {
        flex-direction: column;
    }

    .world-boss-previews .asset-placeholder {
        min-height: 200px;
    }
}

/* ================================================
   METINSTONES SECTION
   ================================================ */
.metinstones-intro {
    max-width: 800px;
    margin: 0 auto 40px;
}

.metin-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: stretch;
}

.metin-row.reverse {
    flex-direction: row-reverse;
}

.metin-row:last-child {
    margin-bottom: 0;
}

.metin-content {
    flex: 1;
    max-width: 650px;
}

.metin-preview {
    flex: 0 0 500px;
    display: flex;
    align-items: center;
}

/* Large preview variant for detailed images */
.metin-preview.large {
    flex: 0 0 600px;
}

/* Extra-large preview for very detailed screenshots */
.metin-preview.xl {
    flex: 0 0 700px;
}

.metin-preview img {
    border-radius: 8px;
    border: 1px solid rgba(74, 61, 36, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.metin-preview .asset-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.metin-system-card {
    background: linear-gradient(145deg, rgba(var(--panel-feat-1-rgb), 0.85) 0%, rgba(var(--panel-feat-2-rgb), 0.95) 100%);
    border: 1px solid rgba(var(--accent-orange-rgb), 0.35);
    border-radius: 12px;
    padding: 24px;
    text-align: left;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.metin-system-card:hover {
    border-color: rgba(var(--accent-orange-rgb), 0.5);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.metin-system-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.metin-system-desc:last-child {
    margin-bottom: 0;
}

.metin-system-desc strong {
    color: var(--text-primary);
}

/* Altar Regions */
.altar-regions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.altar-region {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(var(--panel-hot-1-rgb), 0.25) 0%, rgba(var(--panel-hot-2-rgb), 0.4) 100%);
    border: 1px solid rgba(var(--accent-orange-rgb), 0.35);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.altar-region:hover {
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-orange-rgb), 0.2);
}

.altar-name {
    color: var(--accent-cream);
    font-size: 13px;
    font-weight: 500;
}

.altar-icons {
    display: flex;
    gap: 4px;
}

.altar-icon-placeholder {
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border: 1px dashed var(--brown-dark);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.altar-icon-placeholder:hover {
    border-color: var(--accent-orange);
}

/* When icons are added */
.altar-icon-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

@media (max-width: 1200px) {
    .metin-row,
    .metin-row.reverse {
        flex-direction: column;
    }

    .metin-preview,
    .metin-preview.large,
    .metin-preview.xl {
        flex: 1;
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
    }

    .metin-preview .asset-placeholder {
        min-height: 220px;
    }
}

/* ================================================
   BIOLOGIST RESEARCH SECTION
   ================================================ */
.biologist-intro {
    max-width: 900px;
    margin: 0 auto 30px;
}

.biologist-preview {
    max-width: 900px;
    margin: 0 auto 40px;
}

.biologist-preview img {
    border-radius: 8px;
    border: 1px solid rgba(74, 61, 36, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.biologist-preview .asset-placeholder {
    height: 400px;
}

/* ================================================
   PREVIEW IMAGE - General Style
   ================================================ */
.preview-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid rgba(var(--accent-orange-rgb), 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: block;
}

.preview-image:hover {
    border-color: rgba(var(--accent-orange-rgb), 0.4);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

/* ================================================
   HUNTING MISSIONS SECTION
   ================================================ */
.hunting-intro {
    max-width: 700px;
    margin: 0 auto 30px;
}

.hunting-preview {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hunting-preview img {
    border-radius: 8px;
    border: 1px solid rgba(74, 61, 36, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    height: auto;
}

.hunting-preview .asset-placeholder {
    height: 400px;
}

/* ================================================
   HORSE TRAINING SECTION
   ================================================ */
.horse-intro {
    max-width: 700px;
    margin: 0 auto 30px;
}

.horse-preview {
    max-width: 900px;
    margin: 0 auto;
}

.horse-preview img {
    border-radius: 8px;
    border: 1px solid rgba(74, 61, 36, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.horse-preview .asset-placeholder {
    height: 400px;
}

/* ================================================
   NEW PASSIVE SKILLS SECTION
   ================================================ */
.passive-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.passive-skill-card {
    background: linear-gradient(145deg, rgba(var(--panel-grad-1-rgb), 0.7) 0%, rgba(var(--panel-grad-2-rgb), 0.9) 100%);
    border: 1px solid rgba(var(--accent-orange-rgb), 0.2);
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    transition: all 0.3s ease;
}

.passive-skill-card:hover {
    border-color: rgba(var(--accent-orange-rgb), 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.passive-skill-card.full-width {
    grid-column: 1 / -1;
}

.passive-skill-card.full-width .passive-skill-header {
    justify-content: center;
}

.passive-skill-card.full-width .passive-skill-desc {
    text-align: center;
}

.passive-skill-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.passive-skill-icon {
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border: 1px dashed var(--brown-dark);
    border-radius: 4px;
    flex-shrink: 0;
}

.passive-skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.passive-skill-name {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--accent-cream);
    margin: 0;
}

.passive-skill-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.passive-skill-desc strong {
    color: var(--text-primary);
}

.passive-skills-preview {
    max-width: 900px;
    margin: 0 auto;
}

.passive-skills-preview img {
    border-radius: 8px;
    border: 1px solid rgba(74, 61, 36, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.passive-skills-preview .asset-placeholder {
    height: 400px;
}

@media (max-width: 768px) {
    .passive-skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Biologist Table */
.biologist-table-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto;
}

.biologist-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(145deg, rgba(var(--panel-grad-1-rgb), 0.6) 0%, rgba(var(--panel-grad-2-rgb), 0.8) 100%);
    border: 1px solid rgba(var(--accent-orange-rgb), 0.25);
    border-radius: 10px;
    overflow: hidden;
}

.biologist-table thead {
    background: linear-gradient(135deg, rgba(var(--panel-hot-1-rgb), 0.4) 0%, rgba(var(--panel-hot-2-rgb), 0.6) 100%);
}

.biologist-table th {
    padding: 16px 20px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-cream);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    border-bottom: 2px solid rgba(var(--accent-orange-rgb), 0.3);
}

.biologist-table td {
    padding: 14px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

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

.biologist-table tbody tr:hover td {
    background: rgba(var(--accent-orange-rgb), 0.1);
    color: var(--text-primary);
}

.biologist-table td:first-child {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

/* Column-specific styling */
.biologist-table th:nth-child(1),
.biologist-table td:nth-child(1) {
    width: 60px;
}

.biologist-table th:nth-child(2),
.biologist-table td:nth-child(2) {
    min-width: 150px;
}

.biologist-table th:nth-child(3),
.biologist-table td:nth-child(3) {
    width: 120px;
}

.biologist-table th:nth-child(4),
.biologist-table td:nth-child(4) {
    min-width: 150px;
}

.biologist-table th:nth-child(5),
.biologist-table td:nth-child(5) {
    min-width: 180px;
}

/* Table Icons */
.table-icons {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.table-icon {
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border: 1px dashed var(--brown-dark);
    border-radius: 4px;
}

.table-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .biologist-table th,
    .biologist-table td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .table-icon {
        width: 24px;
        height: 24px;
    }
}

/* Text Side */
.feature-split-text {
    flex: 1;
    min-width: 0;
}

.feature-split-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.feature-split-note {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--accent-gold);
    border-radius: 0 6px 6px 0;
    margin-top: 16px;
}

/* Asset Side */
.feature-split-asset {
    flex: 0 0 550px;
    max-width: 550px;
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* Large asset variant */
.feature-split-asset.large {
    flex: 0 0 650px;
    max-width: 650px;
}

/* Extra-large asset variant */
.feature-split-asset.xl {
    flex: 0 0 750px;
    max-width: 750px;
}

/* Reverse Layout (Image on Left) */
.feature-card.feature-split.reverse .feature-split-layout {
    flex-direction: row-reverse;
}

/* Stacked Previews (multiple images in asset column) */
.preview-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-stack .asset-placeholder {
    height: 280px;
}

/* ================================================
   SIMPLE SPLIT LAYOUT (Text + Preview Side by Side)
   ================================================ */
.split-layout {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.split-text {
    flex: 1;
    min-width: 0;
}

.split-preview {
    flex: 0 0 500px;
    max-width: 500px;
    min-width: 500px;
}

/* Size variants for split-preview */
.split-preview.large {
    flex: 0 0 600px;
    max-width: 600px;
    min-width: 600px;
}

.split-preview.xl {
    flex: 0 0 700px;
    max-width: 700px;
    min-width: 700px;
}

.split-preview img {
    border-radius: 8px;
    border: 1px solid rgba(74, 61, 36, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.split-preview .asset-placeholder {
    height: 500px;
}

.split-preview.wide {
    flex: 0 0 600px;
    max-width: 600px;
}

.split-preview.wide .asset-placeholder {
    height: 350px;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

@media (max-width: 1200px) {
    .split-layout {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .split-preview,
    .split-preview.large,
    .split-preview.xl {
        flex: 1;
        max-width: 700px;
        width: 100%;
        min-width: 100%;
        margin: 0 auto;
    }

    .split-preview img {
        max-width: 700px;
        width: 100%;
    }

    .split-preview .asset-placeholder {
        height: 400px;
    }
}

/* ================================================
   HERO LAYOUT (Preview Top, Content Below)
   ================================================ */
.feature-card.feature-hero {
    padding: 40px;
}

.feature-hero-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-hero-preview {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.feature-hero-preview img {
    border-radius: 8px;
    border: 1px solid rgba(74, 61, 36, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.feature-hero-preview .asset-placeholder {
    height: 400px;
}

.feature-hero-content {
    text-align: center;
}

.feature-hero-content .section-heading {
    text-align: center;
}

.feature-hero-content .styled-list {
    display: inline-block;
    text-align: left;
}

/* ================================================
   INTERSPERSED LAYOUT (Previews Between Content)
   ================================================ */
.feature-card.feature-interspersed {
    padding: 40px;
}

.interspersed-layout {
    max-width: 900px;
    margin: 0 auto;
}

.interspersed-layout .content-block {
    margin-bottom: 30px;
}

.interspersed-layout .content-block:last-child {
    margin-bottom: 0;
}

.preview-inline {
    margin: 40px auto;
    max-width: 800px;
}

.preview-inline .asset-placeholder {
    height: 380px;
}

/* ================================================
   ASSET PLACEHOLDER
   ================================================ */
.asset-placeholder {
    width: 100%;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(145deg, rgba(var(--panel-grad-1-rgb), 0.6) 0%, rgba(var(--panel-grad-2-rgb), 0.8) 100%);
    border: 2px dashed var(--brown-dark);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.asset-placeholder:hover {
    border-color: var(--accent-orange);
    background: linear-gradient(145deg, rgba(var(--panel-grad-1-rgb), 0.8) 0%, rgba(var(--panel-grad-2-rgb), 0.9) 100%);
}

.asset-placeholder i {
    font-size: 48px;
    color: var(--text-muted);
    opacity: 0.5;
}

.asset-placeholder .asset-label {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.asset-placeholder .asset-size {
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

/* ================================================
   MAP SLIDESHOW
   ================================================ */
.map-slideshow {
    width: 100%;
}

.map-slides {
    position: relative;
    width: 100%;
    height: 350px;
}

.map-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.map-slide.active {
    opacity: 1;
}

.map-slide .asset-placeholder {
    height: 100%;
}

.map-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
}

.map-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--panel-grad-1-rgb), 0.8);
    border: 1px solid var(--brown-dark);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-arrow:hover {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

.map-dots {
    display: flex;
    gap: 8px;
}

.map-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brown-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-dot:hover {
    background: var(--text-muted);
}

.map-dot.active {
    background: var(--accent-orange);
}

/* ================================================
   DUNGEON SLIDESHOW (Wide)
   ================================================ */
.dungeon-slideshow-container {
    max-width: 900px;
    margin: 0 auto;
}

.dungeon-slideshow {
    width: 100%;
}

.dungeon-slides {
    position: relative;
    width: 100%;
    height: 400px;
}

.dungeon-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.dungeon-slide.active {
    opacity: 1;
}

.dungeon-slide .asset-placeholder {
    height: 100%;
}

.dungeon-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
}

.dungeon-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--panel-grad-1-rgb), 0.8);
    border: 1px solid var(--brown-dark);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dungeon-arrow:hover {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

.dungeon-dots {
    display: flex;
    gap: 8px;
}

.dungeon-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brown-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dungeon-dot:hover {
    background: var(--text-muted);
}

.dungeon-dot.active {
    background: var(--accent-orange);
}

/* ================================================
   EVENT SLIDESHOW
   ================================================ */
.event-intro {
    max-width: 800px;
    margin: 0 auto 30px;
}

.event-intro .feature-description {
    text-align: center;
}

.event-slideshow {
    width: 100%;
}

.event-slides {
    position: relative;
    width: 100%;
    height: 400px;
}

.event-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.event-slide.active {
    opacity: 1;
}

.event-slide .asset-placeholder {
    height: 100%;
}

.event-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
}

.event-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--panel-grad-1-rgb), 0.8);
    border: 1px solid var(--brown-dark);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-arrow:hover {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

.event-dots {
    display: flex;
    gap: 8px;
}

.event-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brown-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-dot:hover {
    background: var(--text-muted);
}

.event-dot.active {
    background: var(--accent-orange);
}

/* Asset Image (replaces placeholder) */
.feature-split-asset img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(74, 61, 36, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Centered text helper */
.centered-text {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 1200px) {
    .feature-split-layout {
        flex-direction: column !important;
        gap: 30px;
    }

    .feature-split-asset,
    .feature-split-asset.large,
    .feature-split-asset.xl {
        flex: 1;
        max-width: 700px;
        width: 100%;
        margin: 0 auto;
    }

    .chest-viewer-wrapper {
        flex: 1;
        max-width: 100%;
    }

    .asset-placeholder {
        height: 280px;
    }

    .feature-card.feature-split {
        padding: 30px;
    }

    .apprentice-chest-icon {
        margin-top: 20px;
    }
}

/* Closing Text */
/* Editorial Content - Clean & Simple */
.editorial-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.editorial-tagline {
    font-size: 14px;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 20px;
}

/* Launch Date Badge */
.launch-date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 28px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--brown-dark);
    border-radius: 6px;
    margin-bottom: 40px;
}

.launch-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.launch-date {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-cream);
    letter-spacing: 1px;
}

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

.editorial-body p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 20px;
}

.editorial-body p:last-child {
    margin-bottom: 0;
}

.editorial-body strong {
    color: var(--text-primary);
}

.editorial-highlight {
    padding: 24px 40px;
    margin: 32px 0;
    background: linear-gradient(180deg, rgba(var(--panel-grad-1-rgb), 0.6) 0%, rgba(var(--panel-grad-2-rgb), 0.8) 100%);
    border: 1px solid var(--brown-dark);
    border-radius: 8px;
    position: relative;
}

.editorial-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent-orange);
    border-radius: 0 0 2px 2px;
}

.editorial-highlight p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.editorial-highlight .highlight-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--accent-cream);
    margin-top: 8px;
    letter-spacing: 1px;
}

.editorial-compact {
    margin: 24px 0;
}

.editorial-compact p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 12px;
}

.editorial-compact p:last-child {
    margin-bottom: 0;
}

.editorial-compact strong {
    color: var(--text-primary);
}

.editorial-closing {
    margin-top: 32px !important;
    font-size: 13px !important;
    color: var(--text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ================================================
   STYLED LIST (Reusable)
   ================================================ */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 16px auto 24px;
    max-width: 700px;
    text-align: left;
}

.styled-list li {
    padding: 10px 16px;
    margin-bottom: 8px;
    background: rgba(var(--warm-fill-rgb), 0.5);
    border-left: 2px solid var(--accent-orange);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.styled-list li:hover {
    background: rgba(var(--warm-fill-2-rgb), 0.6);
    transform: translateX(4px);
}

.styled-list li:last-child {
    margin-bottom: 0;
}

.styled-list li strong {
    color: var(--text-primary);
}

.styled-list.compact {
    margin: 12px 0 20px;
}

.styled-list.compact li {
    padding: 8px 14px;
    margin-bottom: 6px;
    font-size: 15px;
}

/* Gold Border Variant */
.styled-list.gold li {
    border-left-color: var(--text-primary);
}

.styled-list.gold li strong {
    color: var(--text-primary);
}

/* Bullet Variant (triangle instead of border) */
.styled-list.bullet li {
    padding-left: 36px;
    border-left: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.styled-list.bullet li::before {
    content: '▸';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-orange);
    font-size: 14px;
}

.styled-list.bullet li:hover {
    border-color: rgba(var(--accent-orange-rgb), 0.25);
}

/* Two Column Grid Layout */
.two-column-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 32px;
}

.two-column-grid .column {
    text-align: left;
}

.two-column-grid .section-heading {
    margin-top: 0;
}

.two-column-grid .section-heading:not(:first-child) {
    margin-top: 24px;
}

@media (max-width: 800px) {
    .two-column-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Arena Missions heading inline LIVE pill */
.arena-pvp-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    line-height: 1.3;
    color: #ffffff;
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    box-shadow:
        0 0 0 0 rgba(88, 101, 242, 0.55),
        0 4px 14px rgba(88, 101, 242, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: infoPillGlow 2.4s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.info-pill:hover,
.info-pill:focus-visible {
    background: linear-gradient(135deg, #6a76ff 0%, #5865f2 100%);
    box-shadow:
        0 0 0 4px rgba(88, 101, 242, 0.25),
        0 6px 20px rgba(88, 101, 242, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px) scale(1.03);
    outline: none;
    animation-play-state: paused;
}

.info-pill i.fa-discord {
    color: #ffffff;
    font-size: 13px;
}

.info-pill .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #43b581;
    box-shadow: 0 0 0 0 rgba(67, 181, 129, 0.8), 0 0 6px rgba(67, 181, 129, 0.9);
    animation: livePulse 1.4s ease-out infinite;
}

@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(67, 181, 129, 0.8), 0 0 6px rgba(67, 181, 129, 0.9); }
    70%  { box-shadow: 0 0 0 7px rgba(67, 181, 129, 0), 0 0 6px rgba(67, 181, 129, 0.9); }
    100% { box-shadow: 0 0 0 0 rgba(67, 181, 129, 0), 0 0 6px rgba(67, 181, 129, 0.9); }
}

@keyframes infoPillGlow {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(88, 101, 242, 0.55),
            0 4px 14px rgba(88, 101, 242, 0.45),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    50% {
        box-shadow:
            0 0 0 6px rgba(88, 101, 242, 0),
            0 6px 22px rgba(88, 101, 242, 0.65),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* ================================================
   DISCORD LIVE ARENA MOCK MODAL
   ================================================ */
.discord-mock-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.discord-mock-modal.active {
    display: flex;
    animation: fadeIn 0.25s ease-out;
}

.discord-mock-panel {
    width: min(420px, 92vw);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    background: #2b2d31;
    color: #dcddde;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    font-family: 'gg sans', 'Segoe UI', system-ui, sans-serif;
    animation: discordMockIn 0.3s ease-out;
}

@keyframes discordMockIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.discord-mock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: #1e1f22;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.discord-mock-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #f2f3f5;
}

.discord-mock-title i.fa-discord {
    color: #5865f2;
    font-size: 18px;
}

.discord-mock-close {
    background: transparent;
    border: 0;
    color: #b5bac1;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.15s ease;
}

.discord-mock-close:hover {
    color: #fff;
}

.discord-mock-subheader {
    padding: 12px 14px;
    background: #2b2d31;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 12px;
    line-height: 1.5;
}

.discord-mock-live-tag {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #b5bac1;
    font-weight: 500;
}

.discord-mock-live-tag .dot {
    margin-top: 5px;
    flex-shrink: 0;
}

.discord-mock-live-tag .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #43b581;
    box-shadow: 0 0 0 0 rgba(67, 181, 129, 0.6);
    animation: livePulse 1.6s ease-out infinite;
}

.discord-mock-channels {
    flex: 1;
    overflow-y: auto;
    padding: 8px 6px 14px;
    background: #2b2d31;
}

.discord-mock-channels::-webkit-scrollbar { width: 8px; }
.discord-mock-channels::-webkit-scrollbar-track { background: transparent; }
.discord-mock-channels::-webkit-scrollbar-thumb { background: #1a1b1e; border-radius: 4px; }

.dm-channel { margin: 2px 0; }

.dm-channel-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    color: #949ba4;
    font-size: 14px;
    transition: background 0.15s ease, color 0.15s ease;
}

.dm-channel-row:hover {
    background: #35373c;
    color: #dcddde;
}

.dm-channel-row .dm-channel-icon {
    width: 16px;
    text-align: center;
    color: #80848e;
    font-size: 12px;
}

.dm-channel-row .dm-channel-name {
    flex: 1;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dm-channel-row .dm-channel-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #80848e;
    background: rgba(255, 255, 255, 0.04);
    padding: 1px 6px;
    border-radius: 8px;
    font-variant-numeric: tabular-nums;
}

.dm-channel-row .dm-channel-count .count-live {
    color: #43b581;
    font-weight: 700;
}

.dm-users {
    padding: 2px 0 4px 22px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dm-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #dcddde;
    opacity: 0;
    transform: translateX(-4px);
    animation: dmUserIn 0.35s ease-out forwards;
}

.dm-user.leaving {
    animation: dmUserOut 0.3s ease-in forwards;
    pointer-events: none;
}

@keyframes dmUserIn {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes dmUserOut {
    from { opacity: 1; transform: translateX(0); max-height: 26px; }
    to   { opacity: 0; transform: translateX(6px); max-height: 0; padding-top: 0; padding-bottom: 0; }
}

.dm-user-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
    position: relative;
}

.dm-user-avatar::after {
    content: '';
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #43b581;
    border: 2px solid #2b2d31;
}

.dm-user-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dm-user-icons {
    display: inline-flex;
    gap: 6px;
    color: #80848e;
    font-size: 11px;
}

.dm-user-icons .muted { color: #f23f43; }

.discord-mock-footer {
    padding: 10px 14px;
    background: #1e1f22;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.discord-mock-join {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #5865f2;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.discord-mock-join:hover {
    background: #4752c4;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .discord-mock-panel {
        width: 96vw;
        max-height: 92vh;
    }
}

/* Centered Section */
.centered-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 32px;
}

.centered-section .section-heading {
    margin-top: 0;
}

.centered-section .styled-list {
    display: inline-block;
    text-align: left;
}

/* Section Heading (Sub-heading) */
.section-heading {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: #e0b878;
    margin: 32px 0 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-heading i {
    color: var(--accent-orange);
}

/* Preview Grid */
.preview-grid {
    display: grid;
    gap: 20px;
    margin-top: 32px;
}

.preview-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .preview-grid.two-col {
        grid-template-columns: 1fr;
    }
}

/* Mission Books Content */
.mission-books-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Treasure Chest Content */
.treasure-chest-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Preview Single */
.preview-single {
    max-width: 700px;
    margin: 32px auto 0;
    display: block;
}

/* Size variants for preview-single */
.preview-single.large {
    max-width: 850px;
}

.preview-single.xl {
    max-width: 1000px;
}

.preview-single img {
    width: 100%;
    max-width: 700px;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    border: 1px solid rgba(74, 61, 36, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.preview-single.large img {
    max-width: 850px;
}

.preview-single.xl img {
    max-width: 1000px;
}

/* Mining Content */
.mining-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Exchange Rates */
.exchange-rates {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    margin: 16px auto 24px;
}

.exchange-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.exchange-icon {
    width: 28px;
    height: 28px;
    background: var(--bg-tertiary);
    border: 1px dashed var(--brown-dark);
    border-radius: 4px;
    flex-shrink: 0;
}

.exchange-arrow {
    color: var(--accent-orange);
    font-weight: 600;
    margin: 0 4px;
}

/* Fishing Content */
.fishing-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Highlight Box */
.highlight-box {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--brown-dark);
    border-radius: 6px;
    margin: 16px 0 24px;
}

/* Fish Grid - 14 fish icons */
.fish-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 20px auto 32px;
    max-width: 500px;
}

.fish-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fish-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px dashed var(--brown-dark);
    border-radius: 6px;
}

/* Intro paragraphs styling */
#server-concept > .feature-text > .feature-description:first-of-type {
    font-size: 19px;
    color: var(--text-primary);
    opacity: 0.95;
}

/* ================================================
   CONCEPT LAYOUT (Characters + Text)
   ================================================ */
.concept-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

.concept-character {
    flex-shrink: 0;
    width: 200px;
    height: 350px;
}

.character-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-color);
}

.character-placeholder i {
    font-size: 48px;
    color: var(--text-muted);
}

.concept-character img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.concept-content {
    flex: 1;
    text-align: center;
}

.concept-content.left-align {
    text-align: left;
}

.concept-content.left-align .feature-description {
    margin-left: 0;
    margin-right: 0;
}

/* The Beginning - background */
#the-beginning {
    position: relative;
}

#the-beginning::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 400px;
    background-image: url('../assets/presentation/introduction/the-beginning/bg-the-start.png');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% auto;
    opacity: 0.08;
    pointer-events: none;
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 30%,
        black 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 30%,
        black 100%
    );
}

/* The Beginning - feature image */
#the-beginning .feature-image {
    margin: 20px -32px;
    position: relative;
}

#the-beginning .feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

#the-beginning .feature-image::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 150px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--bg-card) 100%
    );
    pointer-events: none;
}

/* The Beginning - text card */
.beginning-layout {
    display: flex;
    justify-content: center;
    padding: 0 50px;
}

.beginning-text {
    padding: 24px 30px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    border: 1px solid rgba(var(--accent-orange-rgb), 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    max-width: 800px;
    text-align: left;
}

/* Corner decorations for beginning-text */
.beginning-text::before,
.beginning-text::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--accent-orange);
    border-style: solid;
    border-width: 0;
    opacity: 0.7;
}

.beginning-text::before {
    top: -1px;
    left: -1px;
    border-top-width: 2px;
    border-left-width: 2px;
}

.beginning-text::after {
    bottom: -1px;
    right: -1px;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

/* Server Concept Layout */
.server-concept-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.server-concept-text {
    flex: 1;
    padding: 24px 30px;
    background: rgba(0, 0, 0, 0.3);
    margin-left: 50px;
    position: relative;
    border: 1px solid rgba(var(--accent-orange-rgb), 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Corner decorations */
.server-concept-text::before,
.server-concept-text::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--accent-orange);
    border-style: solid;
    border-width: 0;
    opacity: 0.7;
}

.server-concept-text::before {
    top: -1px;
    left: -1px;
    border-top-width: 2px;
    border-left-width: 2px;
}

.server-concept-text::after {
    bottom: -1px;
    right: -1px;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

/* Inner corner decorations */
.corner-inner {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: var(--accent-orange);
    border-style: solid;
    border-width: 0;
    opacity: 0.5;
}

.corner-inner.corner-top-left {
    top: 6px;
    left: 6px;
    border-top-width: 1px;
    border-left-width: 1px;
}

.corner-inner.corner-bottom-right {
    bottom: 6px;
    right: 6px;
    border-bottom-width: 1px;
    border-right-width: 1px;
}

/* Casual Oriented Section */
#casual-oriented .feature-subtitle {
    text-align: center;
}

.casual-layout-full {
    display: flex;
    align-items: center;
    gap: 40px;
}

.casual-left {
    flex: 0 0 350px;
}

.casual-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.casual-text {
    padding: 24px 30px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    border: 1px solid rgba(var(--accent-orange-rgb), 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.casual-headliner {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buffi Upgrade Tree */
.buffi-tree {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.buffi-tree-row {
    display: flex;
    align-items: center;
    gap: 0;
}

.buffi-node {
    position: relative;
}

.buffi-node-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
    border: 2px solid var(--brown-dark);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.buffi-node-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transform: rotate(-45deg);
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.buffi-node-icon:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px rgba(var(--accent-orange-rgb), 0.3);
}

.buffi-node-icon.highlight {
    border-color: var(--text-primary);
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.4);
}

.buffi-node-icon.highlight img {
    filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.6)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Horizontal connector between nodes */
.buffi-connector.horizontal {
    width: 25px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
    opacity: 0.5;
}

/* Vertical connector between rows */
.buffi-tree-connector-vertical {
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-orange));
    opacity: 0.5;
    margin-right: 27px;
}

/* Responsive */
@media (max-width: 1100px) {
    .casual-layout-full {
        flex-direction: column;
    }

    .casual-left {
        flex: 1;
        width: 100%;
        max-width: 500px;
    }

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


/* Chest Viewer */
.chest-viewer {
    background: var(--bg-secondary);
    border: 1px solid var(--brown-dark);
    border-radius: var(--border-radius);
    padding: 20px;
    box-sizing: border-box;
}

/* Level Selector */
.chest-levels-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(74, 61, 36, 0.5);
    justify-content: center;
}

.chest-level-btn {
    padding: 8px 12px;
    min-width: 52px;
    background: var(--bg-card);
    border: 1px solid var(--brown-dark);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chest-level-btn:hover {
    border-color: var(--accent-orange);
    background: var(--bg-card-hover);
}

.chest-level-btn.active {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--brown-darker) 100%);
    border-color: var(--accent-red-medium);
    color: var(--text-primary);
    box-shadow: 0 3px 12px rgba(var(--panel-hot-1-rgb), 0.4);
}

.chest-level-btn.final {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.chest-level-btn.final.active {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-orange) 100%);
    border-color: var(--accent-orange);
    color: var(--text-primary);
    box-shadow: 0 3px 12px rgba(var(--accent-orange-rgb), 0.5);
}

/* Content Display */
.chest-content-display {
    min-height: 200px;
}

.chest-content {
    display: none;
    animation: fadeIn 0.25s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chest-title {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--accent-cream);
    margin-bottom: 14px;
    text-align: center;
}

.chest-content[data-level="105"] .chest-title {
    color: var(--accent-orange);
}

/* Items Grid */
.chest-items {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid rgba(74, 61, 36, 0.4);
    border-radius: 8px;
    justify-content: center;
}

.chest-items li {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid rgba(74, 61, 36, 0.6);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chest-items li:hover {
    border-color: var(--accent-orange);
    background: var(--bg-card-hover);
    box-shadow: 0 4px 12px rgba(var(--accent-orange-rgb), 0.25);
}

.item-icon {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
    transition: transform 0.15s ease;
}

.chest-items li:hover .item-icon {
    transform: scale(1.08);
}

/* Hide name by default */
.item-name {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Quantity badge */
.item-qty {
    position: absolute;
    bottom: 1px;
    right: 1px;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    padding: 1px 3px;
    border-radius: 2px;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    pointer-events: none;
    z-index: 2;
}

/* Tooltip on hover */
.chest-items li::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--bg-secondary);
    border: 1px solid var(--accent-orange);
    border-radius: 4px;
    padding: 6px 10px;
    white-space: nowrap;
    font-size: 12px;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease;
    z-index: 100;
}

.chest-items li::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--accent-orange);
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease;
    z-index: 100;
}

.chest-items li:hover::after,
.chest-items li:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.item-desc {
    color: var(--text-secondary);
    font-size: 13px;
    font-style: italic;
}

.server-concept-character {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-concept-character img {
    max-height: 350px;
    width: auto;
    object-fit: contain;
}

.concept-content .feature-title {
    margin-bottom: 20px;
}

.concept-content .feature-description {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .concept-layout {
        flex-direction: column;
    }

    .concept-character {
        width: 150px;
        height: 250px;
    }

    .concept-character.left {
        order: 1;
    }

    .concept-content {
        order: 2;
    }

    .concept-character.right {
        order: 3;
    }
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    margin-left: var(--sidebar-width);
    padding: 24px 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
    transition: margin-left var(--transition-normal);
}

body.sidebar-collapsed .footer {
    margin-left: 0;
}

.footer-backlinks {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-backlinks a {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: opacity var(--transition-normal);
}

.footer-backlinks a:hover {
    opacity: 0.75;
}

.footer-backlinks img {
    height: 20px;
    width: auto;
    display: block;
}

/* ================================================
   SCROLLBAR STYLING
   ================================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content,
    .footer {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .topbar-right .nav-link span {
        display: none;
    }

    .main-content {
        padding: 24px 16px;
    }

    .section-title {
        font-size: 24px;
    }
}

/* ================================================
   SCROLL TO TOP BUTTON
   ================================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 300px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-orange) 100%);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(var(--accent-orange-rgb), 0.4);
}

.scroll-top-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--accent-orange-rgb), 0.5);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        left: 50px;
        width: 40px;
        height: 40px;
    }
}

/* ================================================
   SIDEBAR DISCORD (pinned footer)
   ================================================ */
.sidebar-footer {
    flex-shrink: 0;
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.sidebar-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 146, 51, 0.12);
    border: 1px solid rgba(255, 146, 51, 0.35);
    border-radius: var(--border-radius);
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}

.sidebar-discord:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-orange) 100%);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(216, 58, 30, 0.3);
}

.sidebar-discord i {
    font-size: 16px;
    color: var(--accent-orange);
}

.sidebar-discord:hover i {
    color: #fff;
}

/* ================================================
   BACK TO WEBSITE CTA
   ================================================ */
.back-to-website {
    margin-left: var(--sidebar-width);
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(var(--bg-dark-rgb), 0.95) 100%);
    border-top: 1px solid var(--border-color);
    transition: margin-left var(--transition-normal);
}

body.sidebar-collapsed .back-to-website {
    margin-left: 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-orange) 100%);
    border: none;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(var(--accent-orange-rgb), 0.4);
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(var(--accent-orange-rgb), 0.5);
}

.back-btn i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .back-to-website {
        padding: 40px 20px;
    }

    .back-btn {
        padding: 14px 28px;
        font-size: 14px;
    }
}

/* ================================================
   ICON SHOWCASE (Relics & Coupons)
   ================================================ */
.icon-showcase {
    background: var(--bg-card);
    border: 1px solid rgba(74, 61, 36, 0.4);
    border-radius: 8px;
    padding: 14px;
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    align-self: center;
    justify-self: center;
}

.icon-row {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.icon-item {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid rgba(74, 61, 36, 0.6);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-item:hover {
    border-color: var(--accent-orange);
    background: var(--bg-card-hover);
    box-shadow: 0 4px 12px rgba(var(--accent-orange-rgb), 0.25);
}

.icon-item img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
    transition: transform 0.15s ease;
}

.icon-item:hover img {
    transform: scale(1.1);
}

/* Tooltip */
.icon-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--bg-secondary);
    border: 1px solid var(--accent-orange);
    border-radius: 4px;
    padding: 6px 10px;
    white-space: pre;
    text-align: left;
    font-size: 12px;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease;
    z-index: 100;
}

.icon-item::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--accent-orange);
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease;
    z-index: 100;
}

.icon-item:hover::after,
.icon-item:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ================================================
   Light Sweep Animation for Images
   ================================================ */

/* Wrap images in a clipping container */
.metin-preview,
.feature-split-asset,
.split-preview,
.preview-single,
.world-boss-previews,
.alchemy-row-preview {
    position: relative;
    display: inline-block;
}

/* Image needs to create stacking context for the sweep */
.metin-preview img,
.feature-split-asset img,
.split-preview img,
.preview-single img,
.world-boss-previews img,
.alchemy-row-preview img {
    position: relative;
    display: block;
}

/* Image wrapper that clips the sweep effect */
.img-sweep-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: inherit;
}

.img-sweep-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.02) 25%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.02) 75%,
        transparent 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 10;
    animation: lightSweep 5s ease-in-out infinite;
}

/* Apply sweep directly on images using pseudo wrapper technique */
.metin-preview,
.feature-split-asset,
.split-preview,
.preview-single,
.world-boss-previews,
.alchemy-row-preview {
    overflow: hidden;
}

/* Make images establish the boundary */
.metin-preview img,
.feature-split-asset img,
.split-preview img,
.preview-single img,
.world-boss-previews img,
.alchemy-row-preview img {
    display: block;
    width: 100%;
    height: auto;
}

/* The sweep overlay - constrained to image area only */
.metin-preview::after,
.feature-split-asset::after,
.split-preview::after,
.preview-single::after,
.world-boss-previews::after,
.alchemy-row-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    bottom: 40px; /* Stop before reflection padding area */
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.02) 25%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.02) 75%,
        transparent 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 10;
    animation: lightSweep 5s ease-in-out infinite;
    border-radius: 8px;
}

/* Stagger animations for visual variety */
.feature-split-asset::after {
    animation-delay: 0.8s;
}

.split-preview::after {
    animation-delay: 1.6s;
}

.preview-single::after {
    animation-delay: 2.4s;
}

.world-boss-previews::after {
    animation-delay: 3.2s;
}

.alchemy-row-preview::after {
    animation-delay: 4s;
}

/* Light sweep keyframes */
@keyframes lightSweep {
    0% {
        left: -100%;
    }
    40% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

/* ================================================
   Floating Effect for Images
   ================================================ */

.metin-preview img,
.feature-split-asset img,
.split-preview img,
.preview-single img,
.world-boss-previews img,
.alchemy-row-preview img {
    animation: floatImage 6s ease-in-out infinite;
}

/* Stagger floating animations for natural feel */
.feature-split-asset img {
    animation-delay: 0.5s;
}

.split-preview img {
    animation-delay: 1s;
}

.preview-single img {
    animation-delay: 1.5s;
}

.world-boss-previews img {
    animation-delay: 2s;
}

.alchemy-row-preview img {
    animation-delay: 2.5s;
}

/* Floating keyframes - gentle up and down motion */
@keyframes floatImage {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* ================================================
   Reflection/Mirror Effect for Images
   ================================================ */

/* Container needs extra space for reflection */
.metin-preview,
.feature-split-asset,
.split-preview,
.preview-single,
.world-boss-previews,
.alchemy-row-preview {
    padding-bottom: 40px;
    margin-bottom: -20px;
}

/* Reflection using ::before pseudo-element */
.metin-preview img,
.feature-split-asset img,
.split-preview img,
.preview-single img,
.world-boss-previews img,
.alchemy-row-preview img {
    -webkit-box-reflect: below 4px linear-gradient(
        to bottom,
        transparent 0%,
        transparent 60%,
        rgba(255, 255, 255, 0.08) 100%
    );
}

/* Fallback for browsers without -webkit-box-reflect */
@supports not (-webkit-box-reflect: below 0) {
    .metin-preview::before,
    .feature-split-asset::before,
    .split-preview::before,
    .preview-single::before,
    .world-boss-previews::before,
    .alchemy-row-preview::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 35px;
        background: linear-gradient(
            to bottom,
            rgba(var(--bg-dark-rgb), 0.3) 0%,
            rgba(var(--bg-dark-rgb), 0.9) 100%
        );
        pointer-events: none;
        z-index: 5;
    }
}

/* ================================================
   Server Opening Countdown Popup
   ================================================ */
.countdown-popup {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 9000;
    width: 240px;
    padding: 20px 18px 18px;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(var(--bg-tertiary-rgb), 0.97) 0%, rgba(var(--bg-dark-rgb), 0.97) 100%);
    border: 1px solid var(--accent-gold);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.55), 0 0 22px rgba(255, 195, 74, 0.18);
    backdrop-filter: blur(6px);
    font-family: var(--font-body);
    text-align: center;
    animation: countdownIn 0.6s ease both;
}

@keyframes countdownIn {
    from { opacity: 0; transform: translate(40px, -50%); }
    to   { opacity: 1; transform: translate(0, -50%); }
}

.countdown-toggle {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 22px;
    height: 22px;
    line-height: 20px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.countdown-toggle:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

/* Minimized state: collapse to a small clickable pill */
.countdown-pill {
    display: none;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: none;
    background: none;
    color: var(--accent-gold);
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}
.countdown-pill i {
    font-size: 14px;
}
/* Pill label follows the open/before state (i18n-driven, no JS text) */
.countdown-pill-after { display: none; }
.countdown-popup.is-open .countdown-pill-before { display: none; }
.countdown-popup.is-open .countdown-pill-after { display: inline; }

.countdown-popup.is-minimized {
    width: auto;
    padding: 10px 14px;
}
.countdown-popup.is-minimized .countdown-body,
.countdown-popup.is-minimized .countdown-toggle {
    display: none;
}
.countdown-popup.is-minimized .countdown-pill {
    display: inline-flex;
    justify-content: center;
}
.countdown-popup.is-minimized .countdown-pill-before,
.countdown-popup.is-minimized .countdown-pill-after {
    display: none;
}
.countdown-popup.is-minimized .countdown-pill i {
    font-size: 18px;
    margin: 0;
}
.countdown-popup.is-minimized.is-open .countdown-pill {
    color: #6fdc74;
}

.countdown-title {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin: 0 0 4px;
}

.countdown-date {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0 0 14px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.countdown-unit {
    flex: 1;
    background: rgba(255, 195, 74, 0.07);
    border: 1px solid rgba(255, 195, 74, 0.18);
    border-radius: 8px;
    padding: 8px 2px;
}

.countdown-num {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.countdown-label {
    display: block;
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Open state */
.countdown-popup.is-open {
    border-color: #4caf50;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.55), 0 0 22px rgba(76, 175, 80, 0.25);
}
.countdown-popup.is-open .countdown-title {
    color: #6fdc74;
}
.countdown-popup.is-open .countdown-unit {
    background: rgba(76, 175, 80, 0.08);
    border-color: rgba(76, 175, 80, 0.22);
}

.countdown-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6fdc74;
    margin: 0 0 4px;
}
.countdown-status::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 8px #4caf50;
    animation: countdownPulse 1.6s ease-in-out infinite;
}
@keyframes countdownPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@media (max-width: 768px) {
    .countdown-popup {
        right: 12px;
        width: 200px;
        padding: 16px 14px 14px;
    }
}

/* ================================================
   Player Reviews Toast (bottom-right)
   ================================================ */
.review-toast {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 8500;
    width: 330px;
    max-width: calc(100vw - 44px);
    padding: 16px 18px 16px;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(var(--bg-tertiary-rgb), 0.97) 0%, rgba(var(--bg-dark-rgb), 0.97) 100%);
    border: 1px solid var(--accent-gold);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.55), 0 0 22px rgba(var(--accent-gold-rgb), 0.18);
    backdrop-filter: blur(6px);
    font-family: var(--font-body);
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.review-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.review-toast-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-toast-avatar {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 16px;
    color: #1a1208;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffe08a 100%);
    box-shadow: 0 0 12px rgba(var(--accent-gold-rgb), 0.35);
}

.review-toast-id {
    flex: 1 1 auto;
    min-width: 0;
}

.review-toast-name {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-toast-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-size: 11px;
    color: #c9a866;
}

.review-toast-flag {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.review-toast-season {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--accent-gold);
    background: rgba(var(--accent-gold-rgb), 0.12);
    border: 1px solid rgba(var(--accent-gold-rgb), 0.35);
    white-space: nowrap;
}

.review-toast-close {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #9b8a6a;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.review-toast-close:hover {
    background: rgba(var(--accent-gold-rgb), 0.18);
    color: var(--accent-gold);
}

.review-toast-text {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #e6ddcb;
    font-style: italic;
}

.review-toast-text::before { content: '\201C'; }
.review-toast-text::after  { content: '\201D'; }
.review-toast-text[dir="rtl"] { text-align: right; }

@media (prefers-reduced-motion: reduce) {
    .review-toast {
        transition: opacity 0.4s ease;
        transform: none;
    }
    .review-toast.is-visible { transform: none; }
}

@media (max-width: 600px) {
    .review-toast {
        right: 12px;
        bottom: 12px;
        width: 260px;
        padding: 12px 14px;
    }
    .review-toast-text { font-size: 12px; }
}

/* ================================================
   SEASON 5 — "Arkantos2 Reloaded" (Brass & Storm)
   Palette lives in :root; this block adds the steampunk
   surfaces, gear rings, and arc-blue accents on top.
   ================================================ */

body {
    background-image:
        linear-gradient(rgba(var(--accent-arc-rgb), 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-arc-rgb), 0.035) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Hero: cool the footage down so brass and arc-blue carry the color */
.hero-video {
    filter: saturate(0.35) brightness(0.7) contrast(1.1);
}

.hero-video-overlay {
    background:
        radial-gradient(circle at calc(50% + 140px) 25%, rgba(var(--accent-arc-rgb), 0.22) 0, rgba(var(--accent-arc-rgb), 0) 340px),
        linear-gradient(
            180deg,
            rgba(var(--bg-dark-rgb), 0.35) 0%,
            rgba(var(--bg-dark-rgb), 0.6) 40%,
            rgba(var(--bg-dark-rgb), 0.9) 70%,
            rgba(var(--bg-dark-rgb), 1) 100%
        );
}

/* Logo art is square on a dark ground: crop to its gear ring */
.hero-logo img,
.hero-logo-video {
    display: block;
    width: 400px;
    height: auto;
    aspect-ratio: 560 / 544;
    object-fit: cover;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
    animation: floatLogo 6s ease-in-out infinite;
    border-radius: 50%;
    -webkit-mask-image: radial-gradient(circle, #000 64%, transparent 71%);
    mask-image: radial-gradient(circle, #000 64%, transparent 71%);
}

/* Counter-rotating gear rings behind the logo */
.hero-logo::before,
.hero-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    margin: -250px 0 0 -250px;
    z-index: -1;
    background-repeat: no-repeat;
    background-size: contain;
}

.hero-logo::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 520'%3E%3Ccircle cx='260' cy='260' r='246' fill='none' stroke='%238a6a2e' stroke-width='14' stroke-dasharray='14 10' opacity='.6'/%3E%3Ccircle cx='260' cy='260' r='234' fill='none' stroke='%23c9a45c' stroke-width='1.5' opacity='.5'/%3E%3C/svg%3E");
    animation: s5GearSpin 120s linear infinite;
}

.hero-logo::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 520'%3E%3Ccircle cx='260' cy='260' r='222' fill='none' stroke='%235cc8ff' stroke-width='1' stroke-dasharray='2 12' opacity='.7'/%3E%3C/svg%3E");
    animation: s5GearSpin 70s linear infinite reverse;
}

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

@keyframes s5ArcPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Top bar: steel plate with a brass seam */
.topbar {
    background: linear-gradient(180deg, #151e29, #0e151e);
    border-bottom: 1px solid var(--brown-darker);
    box-shadow: 0 1px 0 rgba(var(--accent-gold-rgb), 0.08), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.logo-text {
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.logo-tag {
    font-family: var(--font-label);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-left: 6px;
}

.nav-link,
.lang-toggle {
    font-family: var(--font-label);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Sidebar: brass category plates, arc-blue active item */
.sidebar {
    background: linear-gradient(90deg, #0e151e, #111a24);
    border-right: 1px solid rgba(var(--warm-border-rgb), 0.6);
}

.category-header {
    background: linear-gradient(180deg, #2a2416, #1c180f);
    border: 1px solid var(--brown-darker);
}

.nav-category.expanded .category-header {
    background: linear-gradient(180deg, #342c1a, #221c10);
    border-color: var(--brown-dark);
}

.category-title {
    font-family: var(--font-label);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--accent-gold);
}

.nav-item {
    font-size: 15px;
}

.nav-item.active {
    color: var(--text-primary);
    background: linear-gradient(90deg, rgba(var(--accent-arc-rgb), 0.16), rgba(var(--accent-arc-rgb), 0));
    border-left-color: var(--accent-arc);
}

.nav-item.active .nav-item-icon {
    color: var(--accent-arc);
    text-shadow: 0 0 10px var(--accent-arc);
    animation: s5ArcPulse 3.2s ease-in-out infinite;
}

/* Riveted plates: four brass rivets drawn as background layers */
.feature-card {
    background:
        radial-gradient(circle at 14px 14px, #f6e2ad 0, #9a7733 2.5px, #3b2c12 4px, transparent 4.5px),
        radial-gradient(circle at calc(100% - 14px) 14px, #f6e2ad 0, #9a7733 2.5px, #3b2c12 4px, transparent 4.5px),
        radial-gradient(circle at 14px calc(100% - 14px), #f6e2ad 0, #9a7733 2.5px, #3b2c12 4px, transparent 4.5px),
        radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #f6e2ad 0, #9a7733 2.5px, #3b2c12 4px, transparent 4.5px),
        linear-gradient(180deg, rgba(var(--panel-grad-1-rgb), 0.85) 0%, rgba(var(--panel-grad-2-rgb), 0.95) 100%);
    box-shadow: inset 0 1px 0 rgba(var(--accent-gold-rgb), 0.1), 0 14px 40px rgba(0, 0, 0, 0.45);
}

.season-kicker {
    display: block;
    font-family: var(--font-label);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--accent-arc);
    margin-bottom: 10px;
}

.editorial-tagline {
    font-family: var(--font-label);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3em;
}

.launch-date-badge {
    background: linear-gradient(180deg, #221d12, #15120b);
    border-color: #6b5428;
}

.launch-label {
    font-family: var(--font-label);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--accent-orange);
}

/* Screenshots sit in a brass frame */
.metin-preview img,
.feature-split-asset img,
.split-preview img,
.preview-single img,
.world-boss-previews img,
.alchemy-row-preview img {
    border: 3px solid var(--brown-dark);
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(var(--accent-gold-rgb), 0.35), 0 18px 40px rgba(0, 0, 0, 0.6);
}

/* Light sweep picks up the arc-blue energy */
.metin-preview::after,
.feature-split-asset::after,
.split-preview::after,
.preview-single::after,
.world-boss-previews::after,
.alchemy-row-preview::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(var(--accent-arc-rgb), 0.03) 25%,
        rgba(169, 228, 255, 0.18) 50%,
        rgba(var(--accent-arc-rgb), 0.03) 75%,
        transparent 100%
    );
}

/* Sidebar is off-canvas here, so center the logo on the viewport */
@media (max-width: 1024px) {
    .hero-logo {
        left: 50%;
    }

    .hero-video-overlay {
        background:
            radial-gradient(circle at 50% 25%, rgba(var(--accent-arc-rgb), 0.22) 0, rgba(var(--accent-arc-rgb), 0) 340px),
            linear-gradient(180deg, rgba(var(--bg-dark-rgb), 0.35) 0%, rgba(var(--bg-dark-rgb), 0.6) 40%, rgba(var(--bg-dark-rgb), 0.9) 70%, rgba(var(--bg-dark-rgb), 1) 100%);
    }
}

@media (max-width: 768px) {
    .hero-logo {
        top: 220px;
    }

    .hero-logo img,
    .hero-logo-video {
        width: 260px;
    }

    .hero-logo::before,
    .hero-logo::after {
        width: 330px;
        height: 330px;
        margin: -165px 0 0 -165px;
    }

    .logo-tag {
        display: none;
    }

    .main-content {
        padding-top: 420px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-logo::before,
    .hero-logo::after,
    .nav-item.active .nav-item-icon {
        animation: none;
    }
}
