/* Helbreath Cloe — Official Website Stylesheet */
:root {
    --bg-dark: #0d0f12;
    --bg-card: rgba(20, 24, 30, 0.85);
    --bg-card-hover: rgba(28, 34, 44, 0.95);
    --border-card: rgba(212, 175, 55, 0.25);
    --border-card-hover: rgba(212, 175, 55, 0.6);
    
    --gold: #f5c842;
    --gold-light: #fff2a8;
    --gold-dark: #b8860b;
    --emerald: #2ecc71;
    --emerald-glow: rgba(46, 204, 113, 0.4);
    --crimson: #e74c3c;
    --purple: #9b59b6;
    --sapphire: #3498db;
    
    --text-main: #f0f4f8;
    --text-muted: #94a3b8;
    --font-heading: 'Cinzel', serif;
    --font-sub: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* Typography & Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.gold-gradient {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 15, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-card);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    box-shadow: 0 0 10px rgba(245, 200, 66, 0.3);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--text-main);
    letter-spacing: 2px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-sub);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.server-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.4);
    padding: 6px 14px;
    border-radius: 20px;
}

.status-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--emerald);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.status-text {
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--emerald);
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 6px;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn-nav {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #111;
    padding: 8px 18px;
    font-size: 0.95rem;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 200, 66, 0.4);
}

.btn-discord {
    background: #5865F2;
    border: 1px solid #7983f5;
    color: #fff;
    padding: 8px 18px;
    font-size: 0.95rem;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #d48806 100%);
    color: #0d0f12;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(245, 200, 66, 0.5);
}

.btn-glow {
    box-shadow: 0 0 20px rgba(245, 200, 66, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.2rem;
    width: 100%;
}

.btn-text-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-main-text {
    font-size: 1.15rem;
    font-weight: 900;
}

.btn-sub-text {
    font-size: 0.75rem;
    opacity: 0.85;
    font-family: var(--font-body);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 140px 24px 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 200, 66, 0.15) 0%, rgba(46, 204, 113, 0.05) 50%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
}

.hero-emblem-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
}

.hero-emblem {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: 0 0 35px rgba(245, 200, 66, 0.5), inset 0 0 20px rgba(46, 204, 113, 0.3);
    object-fit: cover;
    animation: float 4s ease-in-out infinite;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 8px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-tagline {
    font-family: var(--font-sub);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gold-light);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

/* Quick Stats Bar */
.quick-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

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

.stat-val {
    display: block;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
}

.stat-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-sub {
    font-size: 0.72rem;
    color: var(--emerald);
    font-weight: 600;
    margin-top: 2px;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-sub);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 8px;
    padding: 4px 12px;
    background: rgba(245, 200, 66, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(245, 200, 66, 0.25);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

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

/* Devils Section */
.devils-section {
    padding: 90px 24px;
    position: relative;
}

.devils-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1240px;
    margin: 0 auto;
}

.devil-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.devil-card:hover {
    transform: translateY(-6px);
}

.devil-card.gold-theme:hover { border-color: var(--gold); box-shadow: 0 8px 30px rgba(245, 200, 66, 0.25); }
.devil-card.red-theme:hover { border-color: var(--crimson); box-shadow: 0 8px 30px rgba(231, 76, 60, 0.25); }
.devil-card.green-theme:hover { border-color: var(--emerald); box-shadow: 0 8px 30px rgba(46, 204, 113, 0.25); }
.devil-card.purple-theme:hover { border-color: var(--purple); box-shadow: 0 8px 30px rgba(155, 89, 182, 0.25); }
.devil-card.blue-theme:hover { border-color: var(--sapphire); box-shadow: 0 8px 30px rgba(52, 152, 219, 0.25); }

.devil-sprite-box {
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.devil-gif {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.green-filter {
    filter: hue-rotate(85deg) saturate(2) drop-shadow(0 0 10px rgba(46, 204, 113, 0.4));
}

.devil-badge {
    font-family: var(--font-sub);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: inline-block;
}

.badge-gold { background: rgba(245, 200, 66, 0.2); color: var(--gold); }
.badge-red { background: rgba(231, 76, 60, 0.2); color: var(--crimson); }
.badge-green { background: rgba(46, 204, 113, 0.2); color: var(--emerald); }
.badge-purple { background: rgba(155, 89, 182, 0.2); color: var(--purple); }
.badge-blue { background: rgba(52, 152, 219, 0.2); color: var(--sapphire); }

.devil-name {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.devil-desc {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.devil-stat-pill {
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    width: 100%;
}

/* Features Grid */
.features-section {
    padding: 90px 24px;
    background: rgba(0, 0, 0, 0.2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1140px;
    margin: 0 auto;
}

.feature-item {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 28px 24px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--gold-light);
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.feature-item code {
    background: rgba(245, 200, 66, 0.15);
    color: var(--gold);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Downloads Section */
.downloads-section {
    padding: 90px 24px;
}

.downloads-container {
    max-width: 680px;
    margin: 0 auto;
}

.download-main-card {
    background: var(--bg-card);
    border: 2px solid var(--gold);
    border-radius: 14px;
    padding: 36px;
    position: relative;
    box-shadow: 0 0 35px rgba(245, 200, 66, 0.2);
    text-align: center;
}

.dl-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #111;
    font-family: var(--font-sub);
    font-weight: 900;
    font-size: 0.8rem;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.dl-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    text-align: left;
}

.dl-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.dl-header h3 {
    font-size: 1.5rem;
}

.dl-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.dl-details {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

/* Guide Section */
.guide-section {
    padding: 90px 24px;
    background: rgba(0, 0, 0, 0.25);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1140px;
    margin: 0 auto;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    position: relative;
}

.step-number {
    font-family: var(--font-sub);
    font-weight: 900;
    font-size: 2.5rem;
    color: rgba(245, 200, 66, 0.3);
    margin-bottom: 8px;
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--gold);
}

.step-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-card);
    background: #08090b;
    padding: 60px 24px 24px;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 36px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--gold);
}

.footer-name {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--gold);
}

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

.footer-links h4, .footer-social h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 14px;
}

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

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

.footer-links a:hover {
    color: var(--gold);
}

.footer-social p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Patch Notes & Major Update Section */
.patch-section {
    padding: 100px 24px;
    max-width: 1240px;
    margin: 0 auto;
}

.patch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.patch-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 26px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.patch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold), transparent);
    opacity: 0.7;
}

.patch-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.patch-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.patch-icon {
    font-size: 1.8rem;
    background: rgba(245, 200, 66, 0.1);
    border: 1px solid rgba(245, 200, 66, 0.3);
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.patch-cat {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.patch-card-header h3 {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-top: 2px;
}

.patch-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.patch-list li {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
    position: relative;
    padding-left: 20px;
}

.patch-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 1rem;
}

.patch-list li strong {
    color: var(--text-main);
}

.patch-list li em {
    color: var(--gold-light);
    font-style: normal;
}

/* Community Tools & Rankings Section */
.stats-hub-section {
    padding: 90px 24px;
    max-width: 1240px;
    margin: 0 auto;
}

.hub-columns {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 32px;
    margin-top: 40px;
}

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

.hub-block {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hub-block-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    color: var(--text-main);
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hub-block-title span.hub-title-icon {
    font-size: 1.5rem;
}

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

.hub-grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.hub-card {
    background: rgba(13, 15, 18, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.hub-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.hub-card-icon {
    font-size: 1.5rem;
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 200, 66, 0.08);
    border: 1px solid rgba(245, 200, 66, 0.25);
    border-radius: 8px;
}

.hub-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
}

.hub-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    transition: color 0.2s;
}

.hub-card:hover .hub-card-name {
    color: var(--gold-light);
}

.hub-card-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.hub-card-arrow {
    font-size: 0.85rem;
    color: var(--gold);
    opacity: 0.6;
    transition: all 0.2s;
}

.hub-card:hover .hub-card-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Hub Interactive Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: #101318;
    border: 1px solid var(--gold);
    border-radius: 14px;
    width: 100%;
    max-width: 820px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.25s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.modal-header h3 {
    font-size: 1.4rem;
    color: var(--gold);
}
.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #ff7675;
}
.modal-body {
    padding: 24px;
}
.hub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.hub-table th {
    text-align: left;
    padding: 12px 14px;
    background: rgba(245, 200, 66, 0.08);
    color: var(--gold);
    font-family: var(--font-sub);
    font-weight: 700;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.hub-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}
.hub-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}
.town-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}
.town-aresden {
    background: rgba(231, 76, 60, 0.15);
    color: #ff7675;
    border: 1px solid rgba(231, 76, 60, 0.3);
}
.town-elvine {
    background: rgba(52, 152, 219, 0.15);
    color: #74b9ff;
    border: 1px solid rgba(52, 152, 219, 0.3);
}
.rank-pos {
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gold-light);
}

/* Challenge & Achievements Tabs */
.challenge-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.challenge-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.challenge-tab-btn:hover {
    background: rgba(245, 200, 66, 0.1);
    color: var(--gold-light);
    border-color: var(--gold);
}
.challenge-tab-btn.active {
    background: linear-gradient(135deg, rgba(245, 200, 66, 0.25), rgba(212, 175, 55, 0.1));
    border-color: var(--gold);
    color: var(--gold-light);
    box-shadow: 0 0 12px rgba(245, 200, 66, 0.25);
}
.challenge-header-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.challenge-header-icon {
    font-size: 2.2rem;
    line-height: 1;
}
.challenge-header-info h4 {
    font-size: 1.15rem;
    color: var(--gold-light);
    margin: 0 0 4px 0;
}
.challenge-header-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}
.challenge-sub-heading {
    font-size: 0.9rem;
    color: var(--gold);
    font-family: var(--font-sub);
    font-weight: 700;
    margin: 20px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Olympia 3-Column Portal Container */
.portal-wrapper {
    max-width: 1360px;
    margin: 85px auto 40px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 210px 1fr 240px;
    gap: 22px;
    align-items: start;
}

#menuleft, #menuright {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: sticky;
    top: 96px;
    z-index: 10;
    margin-top: 10px;
}

#content-main {
    min-width: 0;
}

#content-main .hero-section {
    padding: 20px 10px 40px;
    min-height: auto;
}

#content-main .devils-section,
#content-main .patch-section,
#content-main .features-section,
#content-main .stats-hub-section,
#content-main .downloads-section {
    padding: 40px 10px;
}

/* Olympia Menu Head Button */
.menuhead {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 29px;
    background: linear-gradient(180deg, #2a241b 0%, #171410 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 4px;
    color: var(--gold);
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    user-select: none;
    text-align: center;
    padding: 4px 10px;
}

.menuhead:hover {
    background: linear-gradient(180deg, #3d3427 0%, #221d17 100%);
    border-color: var(--gold-light);
    color: #fff;
    box-shadow: 0 0 12px rgba(245, 200, 66, 0.3);
}

.menuhead.menu-toggle::after {
    content: ' ▾';
    font-size: 0.78rem;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.menuhead.menu-toggle.active::after {
    content: ' ▴';
}

/* Olympia Submenu / Dropdown */
.menu-dropdown {
    display: none;
    background: rgba(14, 16, 20, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 5px;
    padding: 4px 0;
    margin-top: -2px;
    margin-bottom: 4px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
}

.menu-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.menu-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-dropdown ul li a {
    display: block;
    padding: 5px 12px;
    color: #c8b496;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.15s ease;
    border-left: 2px solid transparent;
}

.menu-dropdown ul li a:hover {
    background: rgba(245, 200, 66, 0.12);
    color: var(--gold-light);
    border-left-color: var(--gold);
    padding-left: 15px;
}

/* Right Sidebar Boxes */
.sidebar-box {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.sidebar-box-title {
    font-family: var(--font-sub);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Online Count Header Bar */
.olympia-online-bar {
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 8px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--text-main);
    flex-wrap: wrap;
    gap: 10px;
}

.olympia-online-count {
    color: #2ecc71;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Responsive */
@media (max-width: 1140px) {
    .portal-wrapper {
        grid-template-columns: 200px 1fr;
    }
    #menuright {
        display: none;
    }
}
@media (max-width: 820px) {
    .portal-wrapper {
        grid-template-columns: 1fr;
    }
    #menuleft {
        position: static;
    }
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .dl-header { flex-direction: column; text-align: center; }
}

/* Gallery Section & Components */
.gallery-section {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-stage {
    background: #080a0d;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.15);
    margin-bottom: 24px;
    position: relative;
    transition: all 0.3s ease;
}

.gallery-stage-viewport {
    width: 100%;
    min-height: 280px;
    max-height: 480px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gallery-stage-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    display: block;
    transition: opacity 0.25s ease, transform 0.3s ease;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 14, 20, 0.82);
    border: 1px solid rgba(212, 175, 55, 0.6);
    color: var(--gold);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    user-select: none;
    outline: none;
}

.gallery-nav-btn:hover {
    background: rgba(212, 175, 55, 0.3);
    border-color: #fff;
    color: #fff;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.gallery-nav-btn:active {
    transform: translateY(-50%) scale(0.96);
}

.gallery-nav-prev {
    left: 16px;
}

.gallery-nav-next {
    right: 16px;
}

.gallery-nav-counter {
    position: absolute;
    bottom: 14px;
    right: 16px;
    background: rgba(8, 10, 14, 0.88);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #e0e0e0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 10;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.gallery-stage-caption {
    padding: 16px 20px;
    background: rgba(12, 15, 20, 0.95);
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

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

.gallery-stage-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    font-weight: 700;
}

.gallery-stage-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.gallery-stage-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.gallery-stage-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-filter-btn:hover {
    background: rgba(245, 200, 66, 0.12);
    border-color: rgba(245, 200, 66, 0.35);
    color: var(--gold-light);
}

.gallery-filter-btn.active {
    background: rgba(245, 200, 66, 0.22);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 12px rgba(245, 200, 66, 0.2);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.gallery-card {
    background: #0d1015;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7), 0 0 12px rgba(212, 175, 55, 0.25);
}

.gallery-card.active {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(245, 200, 66, 0.4);
}

.gallery-card-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
    background: #000;
}

.gallery-card-body {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(10, 12, 16, 0.9);
}

.gallery-card-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
}

.gallery-card-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
