/* ============================================================
   VELION2 — Old-School MMORPG Landing Page Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&family=Cinzel:wght@400;600;700;900&family=Cinzel+Decorative:wght@400;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
    --wood-dark: #2a1500;
    --wood-mid: #4a2800;
    --wood-light: #7a4a1a;
    --wood-highlight: #b8701e;
    --parchment-bg: #d4b896;
    --parchment-mid: #c8a87a;
    --parchment-dark: #a07850;
    --crimson: #8b0000;
    --crimson-bright: #cc0000;
    --crimson-light: #e83030;
    --gold: #d4a843;
    --gold-bright: #f0c060;
    --gold-dark: #a07820;
    --text-dark: #1a0800;
    --text-mid: #3d2200;
    --text-light: #c8a870;
    --text-parchment: #5c3a1e;
    --shadow: rgba(0, 0, 0, 0.6);
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', Georgia, serif;
    background-color: #0d0600;
    background-image: url('/images/content_bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
    zoom: 1.25;
}

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--wood-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--wood-light);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--wood-highlight);
}

/* ─── WRAPPER ───────────────────────────────────────────────── */
#page-wrapper {
    max-width: 1380px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   HEADER SECTION
   ============================================================ */

#site-header {
    width: 100%;
    position: relative;
    background: var(--wood-dark);
    border-bottom: 6px solid var(--wood-highlight);
    overflow: visible;
}

/* The main header banner area */
.header-banner {
    width: 100%;
    min-height: 140px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 16px;
    position: relative;
    background: url('/images/header_bg.png') center 50%/cover no-repeat;
    overflow: hidden;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.8), 0 4px 15px rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid var(--gold-dark);
}

/* Center title area */
.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 60px;
    position: relative;
    z-index: 2;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 70%);
    text-shadow: 0 2px 4px #000, 0 4px 20px #000, 0 0 10px #000, 0 0 40px rgba(0, 0, 0, 0.8);
}

/* CSS text title */
.title-text {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.08rem;
    font-weight: 700;
    letter-spacing: 10px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 8px;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.7);
}

/* Subtitle under title */
.title-subtitle {

    font-size: 0.52rem;
    font-weight: 400;
    letter-spacing: 5px;
    color: var(--gold);
    opacity: 0.75;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Language Selector (Google Translate) */
.lang-selector {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 10;
}

/* Override Google Translate styles to fit theme */
.goog-te-gadget {
    font-family: 'Cinzel', serif !important;
    color: transparent !important;
    font-size: 0px !important;
}
.goog-te-gadget .goog-te-combo {
    background-color: var(--wood-dark) !important;
    color: var(--gold) !important;
    border: 1px solid var(--wood-highlight) !important;
    border-radius: 3px !important;
    padding: 4px 8px !important;
    font-family: inherit !important;
    font-size: 12px !important;
    outline: none !important;
    cursor: pointer !important;
}
.goog-te-gadget .goog-te-combo option {
    background-color: var(--wood-dark) !important;
    color: var(--gold) !important;
}
.goog-logo-link {
    display: none !important;
}
.skiptranslate iframe {
    display: none !important;
}
body {
    top: 0px !important; /* Prevent Google Translate from pushing body down */
}


/* ─── CTA Button Area (no plank, floating button only) ─────── */
.wooden-plank {
    width: 100%;
    padding: 10px 0 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: visible;
}

/* CTA button */
.plank-cta-btn {
    position: relative;
    z-index: 10;
    padding: 8px 29px;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    clip-path: polygon(12px 0%, calc(100% - 12px) 0%, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0% 50%);
    background: linear-gradient(135deg, #8b0000 0%, #cc0000 40%, #8b0000 100%);
    box-shadow:
        0 0 22px rgba(200, 0, 0, 0.55),
        0 4px 14px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 100, 100, 0.3);
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
}

.plank-cta-btn:hover {
    background: linear-gradient(135deg, #aa0000 0%, #ee2222 40%, #aa0000 100%);
    box-shadow: 0 0 36px rgba(230, 0, 0, 0.75), 0 6px 18px rgba(0, 0, 0, 0.55);
}

.plank-cta-btn:active {
    transform: translateY(1px);
}


/* ============================================================
   BODY LAYOUT — 3 COLUMNS
   ============================================================ */

#body-layout {
    display: grid;
    grid-template-columns: 170px 438px 185px;
    justify-content: center;
    gap: 20px;
    /* Large side padding keeps sidebars away from viewport edges */
    padding: 10px 64px 19px;
    flex: 1;
    align-items: start;
    max-width: 1380px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}


/* ============================================================
   SHARED PANEL STYLES — wooden frame + parchment interior
   ============================================================ */

.panel {
    position: relative;
    border-radius: 4px;
}

/* Wooden outer frame */
.panel-frame {
    background:
        linear-gradient(135deg, var(--wood-highlight) 0%, var(--wood-mid) 20%, var(--wood-dark) 50%, var(--wood-mid) 80%, var(--wood-highlight) 100%);
    border-radius: 4px;
    padding: 6px;
    box-shadow:
        0 0 0 2px var(--wood-dark),
        0 0 0 3px var(--wood-highlight),
        4px 4px 20px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 180, 50, 0.2);
    position: relative;
}

.panel-frame::before {
    content: '';
    position: absolute;
    inset: 2px;
    border: 1px solid rgba(180, 90, 0, 0.4);
    border-radius: 3px;
    pointer-events: none;
    z-index: 0;
}

/* Parchment interior */
.panel-inner {
    background:
        url('/images/parchment_bg.png') center/cover,
        linear-gradient(135deg, #d4b896 0%, #c8a07a 50%, #b8906a 100%);
    border: 2px solid rgba(100, 50, 0, 0.5);
    border-radius: 2px;
    padding: 0;
    overflow: hidden;
    position: relative;
    min-height: 100px;
}

/* Parchment texture overlay */
.panel-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Ccircle cx='2' cy='2' r='0.5' fill='rgba(100,60,20,0.1)'/%3E%3C/svg%3E") repeat,
        linear-gradient(180deg, rgba(255, 240, 200, 0.3) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Panel section title (the header bar inside panel) */
.panel-title {
    background: linear-gradient(135deg, #4a1500 0%, #2a0800 50%, #4a1500 100%);
    border-bottom: 2px solid var(--gold-dark);
    padding: 6px 10px;

    font-size: 0.6rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 8px rgba(200, 150, 0, 0.4);
}

/* ============================================================
   LEFT SIDEBAR — Navigation Menu
   ============================================================ */



.nav-menu {
    padding: 6px 5px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* RPG Nav Button */
.nav-btn {
    display: block;
    width: 100%;
    padding: 6px 8px 6px 11px;

    font-size: 0.56rem;
    font-weight: 600;
    color: #e8c890;
    text-align: left;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #5a0000 0%, #3d0000 50%, #5a0000 100%);
    border-top: 1px solid rgba(180, 80, 0, 0.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    border-left: 3px solid #8b0000;
    border-right: 1px solid rgba(100, 30, 0, 0.3);
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%);
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    box-shadow:
        inset 0 1px 0 rgba(255, 100, 50, 0.15),
        1px 2px 5px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}



.nav-btn:hover,
.nav-btn.active {
    background: linear-gradient(135deg, #8b0000 0%, #6a0000 50%, #8b0000 100%);
    color: var(--gold-bright);
    border-left-color: var(--gold);
    box-shadow:
        inset 0 1px 0 rgba(255, 150, 50, 0.3),
        2px 3px 8px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(150, 0, 0, 0.3);
    text-shadow: 0 0 8px rgba(255, 180, 0, 0.4);
}



/* Social separator */
.nav-separator {
    margin: 8px 6px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--wood-highlight), transparent);
    border: none;
    position: relative;
    z-index: 1;
}

/* Social links */
.nav-btn.social {
    background: linear-gradient(135deg, #1a0800 0%, #0d0400 50%, #1a0800 100%);
    border-left-color: var(--wood-light);
    opacity: 0.9;
    text-align: left;
}



.nav-btn.social:hover {
    background: linear-gradient(135deg, #2a1000 0%, #1a0800 50%, #2a1000 100%);
    border-left-color: var(--gold-dark);
    opacity: 1;
}

/* ============================================================
   MIDDLE CONTENT PANEL
   ============================================================ */

#middle-panel .panel-inner {
    min-height: 520px;
}

.content-area {
    padding: 16px 18px;
    position: relative;
    z-index: 1;
}

/* ─── About Section ─────────────────────────────────────────── */
.about-section h2 {

    font-size: 1.12rem;
    color: var(--crimson);
    text-align: center;
    margin-bottom: 6px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.about-section .subtitle {

    font-size: 0.64rem;
    color: var(--parchment-dark);
    text-align: center;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.about-divider {
    width: 80%;
    margin: 0 auto 18px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--crimson), transparent);
}

.about-section p {
    font-size: 0.8rem;
    line-height: 1.75;
    color: var(--text-parchment);
    margin-bottom: 14px;
    text-indent: 1.5em;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 18px 0;
}

.feature-card {
    background: rgba(100, 40, 0, 0.12);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 2px;
    padding: 10px;
    clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
}

.feature-card h4 {

    font-size: 0.6rem;
    color: var(--crimson-bright);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.feature-card p {
    font-size: 0.68rem;
    color: var(--text-parchment);
    margin: 0;
    text-indent: 0;
    line-height: 1.5;
}

.about-cta {
    text-align: center;
    margin-top: 20px;
}

/* ─── Form Styles ───────────────────────────────────────────── */
.form-section h2 {

    font-size: 0.88rem;
    color: var(--crimson);
    text-align: center;
    margin-bottom: 4px;
    letter-spacing: 2px;
}

.form-section .form-desc {
    text-align: center;
    color: var(--text-parchment);
    font-size: 0.72rem;
    margin-bottom: 18px;
    font-style: italic;
}

.form-row {
    margin-bottom: 14px;
}

.form-row label {
    display: block;

    font-size: 0.54rem;
    font-weight: 600;
    color: var(--text-mid);
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.form-row label .optional {

    font-style: italic;
    color: var(--parchment-dark);
    font-size: 0.6rem;
    text-transform: none;
    letter-spacing: 0;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 7px 10px;
    background: rgba(255, 240, 210, 0.6);
    border: 1px solid rgba(100, 50, 0, 0.4);
    border-radius: 1px;

    font-size: 0.76rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    background: rgba(255, 245, 220, 0.9);
    border-color: var(--crimson);
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.15),
        0 0 8px rgba(139, 0, 0, 0.25);
}

.form-row textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row .input-hint {
    font-size: 0.6rem;
    color: var(--parchment-dark);
    margin-top: 3px;
    font-style: italic;
}

/* OTP input */
.otp-input-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

/* Form two-column */
.form-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Error/success messages */
.form-message {
    padding: 8px 11px;
    border-radius: 2px;
    margin-bottom: 14px;

    font-size: 0.6rem;
    letter-spacing: 0.5px;
    display: none;
}

.form-message.error {
    background: rgba(139, 0, 0, 0.15);
    border: 1px solid var(--crimson);
    color: var(--crimson);
    display: block;
}

.form-message.success {
    background: rgba(0, 80, 20, 0.15);
    border: 1px solid #2d6a00;
    color: #1a5000;
    display: block;
}

/* Step flow */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.rpg-btn {
    display: inline-block;
    padding: 8px 22px;

    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    background: linear-gradient(135deg, #6a0000 0%, #aa0000 40%, #6a0000 100%);
    box-shadow:
        0 0 12px rgba(150, 0, 0, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 100, 100, 0.2);
    transition: all 0.25s ease;
    text-decoration: none;
    text-align: center;
}

.rpg-btn:hover {
    background: linear-gradient(135deg, #8b0000 0%, #cc0000 40%, #8b0000 100%);
    box-shadow:
        0 0 20px rgba(200, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 150, 100, 0.3);
}

.rpg-btn:active {
    transform: translateY(1px);
}

.rpg-btn.btn-gold {
    background: linear-gradient(135deg, #7a5000 0%, #c8900a 40%, #7a5000 100%);
    box-shadow: 0 0 12px rgba(180, 120, 0, 0.4), 0 3px 8px rgba(0, 0, 0, 0.4);
}

.rpg-btn.btn-gold:hover {
    background: linear-gradient(135deg, #9a6000 0%, #e8b020 40%, #9a6000 100%);
}

.rpg-btn.btn-sm {
    padding: 6px 14px;
    font-size: 0.54rem;
}

.rpg-btn.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    clip-path: none;
    border-radius: 0;
}

.btn-center {
    text-align: center;
    margin-top: 16px;
}

/* ─── Support section ───────────────────────────────────────── */
.support-section h2 {

    font-size: 0.88rem;
    color: var(--crimson);
    text-align: center;
    margin-bottom: 4px;
    letter-spacing: 2px;
}

/* ============================================================
   RIGHT SIDEBAR
   ============================================================ */



/* Login card in right sidebar */
.sidebar-login-form .form-row {
    margin-bottom: 10px;
}

.sidebar-login-form .form-row input {
    padding: 6px 8px;
    font-size: 0.68rem;
}

.sidebar-login-form .form-row label {
    font-size: 0.5rem;
}

/* Referral leaderboard */
.referral-list {
    padding: 8px 8px 10px;
    position: relative;
    z-index: 1;
}

.referral-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    margin-bottom: 3px;
    background: rgba(100, 40, 0, 0.1);
    border: 1px solid rgba(100, 40, 0, 0.15);
    border-radius: 1px;
    transition: background 0.2s;
}

.referral-item:hover {
    background: rgba(100, 40, 0, 0.2);
}

.referral-rank {

    font-size: 0.52rem;
    font-weight: 700;
    color: var(--parchment-dark);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.referral-rank.rank-1 {
    color: #ffd700;
}

.referral-rank.rank-2 {
    color: #c0c0c0;
}

.referral-rank.rank-3 {
    color: #cd7f32;
}

.referral-username {

    font-size: 0.54rem;
    color: var(--text-parchment);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.referral-count {

    font-size: 0.52rem;
    font-weight: 700;
    color: var(--crimson-bright);
    flex-shrink: 0;
    background: rgba(139, 0, 0, 0.1);
    border: 1px solid rgba(139, 0, 0, 0.2);
    border-radius: 2px;
    padding: 1px 4px;
}

.referral-loading,
.referral-empty {
    text-align: center;
    font-style: italic;
    color: var(--parchment-dark);
    font-size: 0.64rem;
    padding: 13px 0;
}

.referral-code-display {
    background: rgba(139, 0, 0, 0.1);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 2px;
    padding: 5px 8px;

    font-size: 0.64rem;
    color: var(--crimson);
    text-align: center;
    letter-spacing: 2px;
    margin-top: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.referral-code-display:hover {
    background: rgba(139, 0, 0, 0.2);
}

/* ============================================================
   LOGGED-IN STATE (right sidebar)
   ============================================================ */
.user-welcome {
    padding: 8px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.user-welcome .welcome-name {

    font-size: 0.62rem;
    color: var(--crimson-bright);
    font-weight: 700;
    margin-bottom: 4px;
}

.user-welcome .welcome-code {
    font-size: 0.6rem;
    color: var(--text-parchment);
    margin-bottom: 10px;
}

.user-welcome .welcome-code span {

    color: var(--crimson);
    letter-spacing: 2px;
}

/* ============================================================
   NOTIFICATIONS / ALERTS
   ============================================================ */
.rpg-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    max-width: 350px;
    padding: 11px 16px;

    font-size: 0.62rem;
    letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(135deg, #3a0000, #6a0000);
    border: 2px solid var(--gold-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
    animation: toastIn 0.4s ease, toastOut 0.4s ease 3.6s forwards;
    pointer-events: none;
}

.rpg-toast.toast-success {
    background: linear-gradient(135deg, #003a00, #006a00);
    border-color: #2d8a00;
}

@keyframes toastIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(30px);
        opacity: 0;
    }
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.rpg-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
    text-align: center;
    padding: 11px;

    font-size: 0.52rem;
    color: #ffffff;
    letter-spacing: 2px;
    border-top: 2px solid var(--wood-dark);
    background: rgba(0, 0, 0, 0.3);
}






/* ============================================================
   MISC UTILITIES
   ============================================================ */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-8 {
    margin-top: 8px;
}

.mt-12 {
    margin-top: 12px;
}

.mt-16 {
    margin-top: 16px;
}

/* Animated glow on active nav */
@keyframes glowPulse {

    0%,
    100% {
        box-shadow: inset 0 1px 0 rgba(255, 100, 50, 0.15), 1px 2px 5px rgba(0, 0, 0, 0.4), 0 0 6px rgba(150, 0, 0, 0.2);
    }

    50% {
        box-shadow: inset 0 1px 0 rgba(255, 100, 50, 0.15), 1px 2px 5px rgba(0, 0, 0, 0.4), 0 0 14px rgba(180, 0, 0, 0.5);
    }
}

.nav-btn.active {
    animation: glowPulse 2s ease-in-out infinite;
}

/* Inner panel padding helper */
.p-inner {
    padding: 10px 10px;
    position: relative;
    z-index: 1;
}

/* Easy Reading Overrides for Middle Section */
#middle-panel {

    color: #111111;
}

#middle-panel p,
#middle-panel .subtitle,
#middle-panel .form-desc,
#middle-panel label,
#middle-panel .input-hint,
#middle-panel strong {

    color: #111111;
}



#middle-panel .feature-card p {
    color: #111111;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
    padding: 0 10px;
}

.gallery-img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid var(--gold, #c89b3c);
    transition: transform 0.2s, box-shadow 0.2s;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.gallery-img:hover {
    box-shadow: 0 0 10px var(--gold, #c89b3c);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    /* Changed to flex via JS */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border: 3px solid var(--gold, #c89b3c);
    border-radius: 5px;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--crimson, #8b0000);
    text-decoration: none;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 20px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    z-index: 10000;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--gold, #c89b3c);
}



/* Download Button Hover */
#download-panel-btn:hover .panel-inner {
    background: linear-gradient(135deg, #8b0000 0%, #6a0000 50%, #8b0000 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 150, 50, 0.3),
        2px 3px 8px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(150, 0, 0, 0.3);
}

#download-panel-btn:hover .panel-title {
    color: var(--gold-bright);
    text-shadow: 0 0 8px rgba(255, 180, 0, 0.4);
}

/* Patch Notes Styles */
#patch-notes-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.patch-note-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(100, 40, 0, 0.12);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 4px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.patch-note-summary:hover {
    background: rgba(139, 0, 0, 0.15);
    border-color: var(--crimson);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transform: translateY(-2px);
}

.patch-note-summary-img {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid var(--wood-highlight);
}

.patch-note-summary-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.patch-note-summary-title {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--crimson-bright);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.patch-note-summary-version {
    font-size: 0.7rem;
    color: var(--crimson-bright);
    font-weight: bold;
}

.patch-note-summary-date {
    font-size: 0.65rem;
    color: var(--parchment-dark);
}

.patch-note-card {
    background: rgba(100, 40, 0, 0.12);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.patch-note-main-img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--gold-dark);
}

.patch-note-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(42, 21, 0, 0.9) 0%, rgba(20, 10, 0, 0.9) 100%);
    border-bottom: 1px solid rgba(139, 0, 0, 0.5);
}

.patch-note-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.patch-note-title {
    font-size: 1.2rem;
    font-weight: normal;
    color: var(--crimson);
    margin: 0;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.patch-note-version {
    font-size: 0.7rem;
    font-weight: normal;
    color: var(--crimson-bright);
    background: rgba(139,0,0,0.2);
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 10px;
}

.patch-note-date {
    font-size: 0.65rem;
    color: var(--parchment-dark);
}

.patch-note-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.patch-note-status {
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: 2px;
    text-transform: uppercase;
    font-weight: bold;
    border: 1px solid currentColor;
}

.patch-note-status.released { color: #4caf50; }
.patch-note-status.draft { color: var(--gold); }
.patch-note-status.archived { color: var(--parchment-dark); }

.patch-note-tag {
    font-size: 0.55rem;
    background: rgba(100, 40, 0, 0.4);
    color: var(--text-light);
    padding: 2px 6px;
    border-radius: 2px;
}

.patch-note-body {
    padding: 16px;
}

.patch-note-desc {
    font-size: 0.75rem;
    color: var(--text-parchment);
    margin-bottom: 16px;
    line-height: 1.6;
}

.patch-note-section {
    margin-bottom: 16px;
}

.patch-note-section:last-child {
    margin-bottom: 0;
}

.patch-note-section-title {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--crimson);
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
    padding-bottom: 4px;
    margin-bottom: 12px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.patch-note-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.patch-note-point {
    display: flex;
    gap: 12px;
    background: rgba(255, 240, 210, 0.2);
    padding: 10px;
    border-radius: 2px;
    border: 1px solid rgba(100, 50, 0, 0.1);
}

.patch-note-point-content {
    flex: 1;
}

.patch-note-point-title {
    font-size: 0.75rem;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.patch-note-point-desc {
    font-size: 0.65rem;
    color: var(--text-parchment);
    margin: 0;
    line-height: 1.5;
}

.patch-note-point-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid var(--wood-highlight);
}