/* =======================================================================
   S.M.U.T. - Museum Exhibit / Gallery Theme
   Sun Haven Museum Utility Tracker
   ======================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* -----------------------------------------------------------------
   CSS CUSTOM PROPERTIES - DARK MODE (default)
   ----------------------------------------------------------------- */
:root {
    /* Gallery walls */
    --wall-1: #1a1a2e;
    --wall-2: #16213e;
    --wall-3: #1c1c3a;

    /* Exhibit lighting */
    --gold: #e8c547;
    --gold-dim: #c9a83a;
    --gold-glow: rgba(232, 197, 71, 0.15);
    --warm-white: #f5eed6;
    --spotlight: rgba(245, 238, 214, 0.08);

    /* Placard surfaces */
    --placard: rgba(245, 240, 228, 0.06);
    --placard-solid: #22223a;
    --placard-border: rgba(232, 197, 71, 0.2);
    --placard-border-strong: rgba(232, 197, 71, 0.4);

    /* Text */
    --ink: #e8e2d6;
    --ink-muted: #b0a998;
    --ink-heading: #f5eed6;

    /* Accent palette */
    --gems-accent: #c9a83a;
    --culture-accent: #7bb87b;
    --aquarium-accent: #5ba4cf;
    --brass: #c4a24e;
    --patina: #5b8a72;

    /* Glass effect */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shine: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 50%);

    /* Rarity specimens */
    --rarity-common: #9ca3af;
    --rarity-uncommon: #6bc76b;
    --rarity-rare: #5b9bd5;
    --rarity-epic: #a87bd5;
    --rarity-legendary: #e8c547;

    /* Shared overrides */
    --accent: #e8c547;
}

/* -----------------------------------------------------------------
   RESET & BASE
   ----------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', 'Source Sans Pro', 'Segoe UI', sans-serif;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(232, 197, 71, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 15%, rgba(91, 138, 114, 0.05) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 100%, rgba(22, 33, 62, 0.8) 0%, transparent 60%),
        linear-gradient(170deg, var(--wall-1) 0%, var(--wall-2) 45%, var(--wall-3) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 0;
    color: var(--ink);
    line-height: 1.6;
}

/* -----------------------------------------------------------------
   TOP NAVIGATION - Museum corridor header
   ----------------------------------------------------------------- */
.top-nav {
    background: rgba(18, 18, 36, 0.95);
    padding: 15px 40px;
    border-bottom: 1px solid var(--placard-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-home {
    color: var(--gold);
    text-decoration: none;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 600;
    font-size: 1.05em;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-home:hover {
    color: var(--warm-white);
}

.nav-divider {
    color: rgba(232, 197, 71, 0.3);
    margin: 0 10px;
}

.nav-current {
    color: var(--ink-muted);
    font-family: 'Source Sans 3', sans-serif;
    font-variant: small-caps;
    letter-spacing: 1px;
}

/* -----------------------------------------------------------------
   CONTAINER
   ----------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px 60px;
}

/* -----------------------------------------------------------------
   HERO SECTION - Museum entrance arch
   ----------------------------------------------------------------- */
.hero {
    text-align: center;
    padding: 70px 30px 60px;
    margin-bottom: 50px;
    position: relative;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(232, 197, 71, 0.1) 0%, transparent 60%),
        var(--placard);
    border: 1px solid var(--placard-border);
    border-radius: 4px;
    overflow: hidden;
}

/* Column accents on sides */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--gold), rgba(232, 197, 71, 0.1));
}

.hero::before { left: 0; }
.hero::after { right: 0; }

/* Arch top accent */
.hero-arch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-icon {
    font-size: 4.5em;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 30px rgba(232, 197, 71, 0.3));
    display: block;
}

.hero h1 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--gold), var(--warm-white), var(--gold-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .full-name {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.42em;
    display: block;
    margin-top: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
    background: linear-gradient(90deg, var(--ink-muted), var(--ink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.3em;
    font-style: italic;
    color: var(--ink-muted);
    margin-top: 5px;
}

.version-badge {
    display: inline-block;
    margin-top: 20px;
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    color: var(--wall-1);
    padding: 7px 22px;
    border-radius: 2px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 0.9em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 12px rgba(232, 197, 71, 0.25);
}

/* -----------------------------------------------------------------
   SECTION TITLES - Museum placard styling
   ----------------------------------------------------------------- */
.section-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    text-align: center;
    font-size: 2em;
    font-weight: 600;
    margin: 60px 0 35px;
    color: var(--ink-heading);
    position: relative;
    letter-spacing: 2px;
    font-variant: small-caps;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(232, 197, 71, 0.3);
}

/* -----------------------------------------------------------------
   INTRO SECTION - Exhibit description placard
   ----------------------------------------------------------------- */
.intro-section {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px;
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--ink);
    padding: 30px 35px;
    background: var(--placard);
    border: 1px solid var(--placard-border);
    border-left: 3px solid var(--gold);
    border-radius: 2px;
    position: relative;
}

.intro-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glass-shine);
    pointer-events: none;
}

/* -----------------------------------------------------------------
   KEYBIND SECTION - Quick Controls
   ----------------------------------------------------------------- */
.keybind-section {
    max-width: 700px;
    margin: 0 auto 40px;
}

/* -----------------------------------------------------------------
   NOTICE SECTION - Curator's note
   ----------------------------------------------------------------- */
.notice-section {
    max-width: 780px;
    margin: 0 auto 40px;
}

.notice-box {
    background: rgba(232, 197, 71, 0.06);
    border: 1px solid rgba(232, 197, 71, 0.25);
    border-left: 3px solid var(--gold);
    border-radius: 2px;
    padding: 25px 30px;
    position: relative;
}

.notice-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glass-shine);
    pointer-events: none;
}

.notice-box h3 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.25em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.notice-box p {
    color: var(--ink);
    line-height: 1.7;
    margin-bottom: 10px;
}

.notice-box p:last-child {
    margin-bottom: 0;
}

/* -----------------------------------------------------------------
   CHANGELOG SECTION - Museum acquisition records
   ----------------------------------------------------------------- */
.changelog-section {
    max-width: 780px;
    margin: 0 auto 40px;
}

.changelog-icon {
    font-size: 1.6em;
    flex-shrink: 0;
}

.changelog-content h4 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    color: var(--gold);
    margin-bottom: 4px;
    font-size: 1.1em;
    font-weight: 600;
}

.changelog-content p {
    color: var(--ink-muted);
    line-height: 1.6;
    font-size: 0.95em;
}

/* -----------------------------------------------------------------
   FEATURES GRID - Exhibit placards with brass badges
   ----------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
    counter-reset: exhibit;
}

.feature-card {
    background: var(--placard);
    border: 1px solid var(--placard-border);
    border-radius: 2px;
    padding: 32px 28px 28px;
    text-align: center;
    position: relative;
    transition: all 0.35s ease;
    counter-increment: exhibit;
    overflow: hidden;
}

/* Glass shine overlay */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glass-shine);
    pointer-events: none;
    transition: opacity 0.35s;
}

/* Brass exhibit number badge */
.feature-card::after {
    content: 'Exhibit ' counter(exhibit, upper-roman);
    position: absolute;
    top: 10px;
    right: 12px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.65em;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--wall-1);
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    padding: 3px 10px;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--placard-border-strong);
    box-shadow:
        0 8px 30px rgba(232, 197, 71, 0.08),
        0 0 60px rgba(245, 238, 214, 0.04);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(232, 197, 71, 0.08) 0%, transparent 70%),
        var(--placard);
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    color: var(--ink-heading);
    margin-bottom: 12px;
    font-size: 1.2em;
    font-weight: 600;
}

.feature-card p {
    color: var(--ink-muted);
    line-height: 1.6;
    font-size: 0.95em;
}

/* -----------------------------------------------------------------
   MUSEUM SECTIONS - Exhibit case styling with glass borders
   ----------------------------------------------------------------- */
.museum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.museum-section {
    background: var(--placard);
    border: 1px solid var(--glass-border);
    border-radius: 2px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}

/* Glass case top highlight */
.museum-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* Glass shine effect */
.museum-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glass-shine);
    pointer-events: none;
}

.museum-section:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Exhibit case accent colors */
.museum-section.gems {
    border-top: 3px solid var(--gems-accent);
    box-shadow: inset 0 3px 15px rgba(201, 168, 58, 0.06);
}

.museum-section.culture {
    border-top: 3px solid var(--culture-accent);
    box-shadow: inset 0 3px 15px rgba(123, 184, 123, 0.06);
}

.museum-section.aquarium {
    border-top: 3px solid var(--aquarium-accent);
    box-shadow: inset 0 3px 15px rgba(91, 164, 207, 0.06);
}

/* Exhibit case label */
.exhibit-label {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.65em;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--wall-1);
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    padding: 2px 10px;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(232, 197, 71, 0.15);
    position: relative;
    z-index: 1;
}

.section-icon {
    font-size: 2em;
}

.section-header h3 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    color: var(--ink-heading);
    font-size: 1.3em;
    font-weight: 600;
}

.section-desc {
    color: var(--ink-muted);
    font-size: 0.95em;
    margin-bottom: 15px;
    line-height: 1.5;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* -----------------------------------------------------------------
   BUNDLE LIST - Specimen catalog entries with dot-leaders
   ----------------------------------------------------------------- */
.bundle-list {
    list-style: none;
    position: relative;
    z-index: 1;
}

.bundle-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    color: var(--ink);
    border-bottom: 1px dotted rgba(232, 197, 71, 0.12);
    font-size: 0.95em;
    position: relative;
    transition: color 0.2s, background 0.2s;
}

.bundle-list li:last-child {
    border-bottom: none;
}

.bundle-list li:hover {
    color: var(--warm-white);
    background: radial-gradient(ellipse at 50% 50%, rgba(232, 197, 71, 0.04) 0%, transparent 80%);
}

.bundle-icon {
    font-size: 1.15em;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

/* Bundle icon colors */
.bundle-icon.gem { color: #b08ad4; }
.bundle-icon.mineral { color: #8b949e; }
.bundle-icon.ore { color: #d29922; }
.bundle-icon.crystal { color: #7db8e0; }
.bundle-icon.mana { color: #6aacf0; }
.bundle-icon.money { color: #e8c547; }
.bundle-icon.golden { color: #f0d060; }
.bundle-icon.bars { color: #d29922; }
.bundle-icon.artifact { color: #e8c547; }
.bundle-icon.elven { color: #7ec87e; }
.bundle-icon.nelvari { color: #e07aaa; }
.bundle-icon.wither { color: #9060c8; }
.bundle-icon.fossil { color: #d29922; }
.bundle-icon.spring { color: #7ec87e; }
.bundle-icon.summer { color: #e8c547; }
.bundle-icon.fall { color: #e09050; }
.bundle-icon.winter { color: #7db8e0; }
.bundle-icon.flower { color: #e07aaa; }
.bundle-icon.forage { color: #d29922; }
.bundle-icon.explore { color: #6aacf0; }
.bundle-icon.combat { color: #e05050; }
.bundle-icon.alchemy { color: #b08ad4; }
.bundle-icon.temple { color: #e8c547; }
.bundle-icon.fishing { color: #6aacf0; }
.bundle-icon.large { color: #5bb8b0; }
.bundle-icon.freshwater { color: #5bb8b0; }
.bundle-icon.saltwater { color: #6aacf0; }
.bundle-icon.exotic { color: #e07aaa; }
.bundle-icon.legendary { color: #e8c547; }
.bundle-icon.shellfish { color: #e09050; }

/* -----------------------------------------------------------------
   RARITY SECTION - Gem specimens on display
   ----------------------------------------------------------------- */
.rarity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    max-width: 900px;
    margin: 0 auto 50px;
}

.rarity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--placard);
    padding: 14px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 2px;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
}

.rarity-item:hover {
    border-color: var(--placard-border);
    box-shadow: 0 0 20px rgba(232, 197, 71, 0.06);
}

.rarity-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

/* Gem facet shimmer on each specimen */
.rarity-dot::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    width: 6px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.rarity-dot.common {
    background: radial-gradient(circle at 35% 35%, #c0c5cc, var(--rarity-common));
}
.rarity-dot.uncommon {
    background: radial-gradient(circle at 35% 35%, #90e090, var(--rarity-uncommon));
    box-shadow: 0 0 8px rgba(107, 199, 107, 0.3);
}
.rarity-dot.rare {
    background: radial-gradient(circle at 35% 35%, #8cc0e8, var(--rarity-rare));
    box-shadow: 0 0 8px rgba(91, 155, 213, 0.3);
}
.rarity-dot.epic {
    background: radial-gradient(circle at 35% 35%, #c8a8e8, var(--rarity-epic));
    box-shadow: 0 0 8px rgba(168, 123, 213, 0.3);
}
.rarity-dot.legendary {
    background: radial-gradient(circle at 35% 35%, #f0e080, var(--rarity-legendary));
    box-shadow: 0 0 12px rgba(232, 197, 71, 0.4);
}

.rarity-label {
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

/* -----------------------------------------------------------------
   USAGE STEPS - Guided exhibit tour
   ----------------------------------------------------------------- */
.usage-steps {
    max-width: 700px;
    margin: 0 auto 50px;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    background: var(--placard);
    padding: 24px;
    border: 1px solid var(--glass-border);
    border-radius: 2px;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
}

.step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glass-shine);
    pointer-events: none;
}

.step:hover {
    border-color: var(--placard-border);
    box-shadow:
        0 4px 20px rgba(232, 197, 71, 0.06),
        inset 0 0 40px rgba(245, 238, 214, 0.02);
}

.step-number {
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    color: var(--wall-1);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 700;
    font-size: 1.3em;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(232, 197, 71, 0.25);
}

.step-content h4 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    color: var(--ink-heading);
    margin-bottom: 6px;
    font-size: 1.1em;
    font-weight: 600;
}

.step-content p {
    color: var(--ink-muted);
    line-height: 1.6;
}

/* Keyboard keys */
kbd {
    background: rgba(232, 197, 71, 0.1);
    border: 1px solid var(--placard-border);
    border-bottom-width: 2px;
    border-radius: 3px;
    padding: 2px 8px;
    font-family: 'Source Sans 3', 'Consolas', monospace;
    font-size: 0.88em;
    color: var(--gold);
    box-shadow: 0 1px 0 rgba(232, 197, 71, 0.15);
}

/* -----------------------------------------------------------------
   INSTALLATION - Acquisition procedures
   ----------------------------------------------------------------- */
.install-steps {
    max-width: 700px;
    margin: 0 auto 50px;
}

.install-step {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    background: var(--placard);
    padding: 24px;
    border: 1px solid var(--glass-border);
    border-radius: 2px;
    align-items: center;
    position: relative;
    transition: border-color 0.3s;
}

.install-step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glass-shine);
    pointer-events: none;
}

.install-step:hover {
    border-color: var(--placard-border);
}

.step-icon {
    font-size: 2em;
    width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.step-info h4 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    color: var(--ink-heading);
    margin-bottom: 6px;
    font-weight: 600;
}

.step-info p {
    color: var(--ink-muted);
    line-height: 1.5;
}

.step-info a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 197, 71, 0.3);
    transition: border-color 0.2s;
}

.step-info a:hover {
    border-bottom-color: var(--gold);
}

/* -----------------------------------------------------------------
   CONFIG TABLE - Museum catalog reference
   ----------------------------------------------------------------- */
.config-table {
    max-width: 700px;
    margin: 0 auto 20px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--placard);
    border: 1px solid var(--placard-border);
    border-radius: 2px;
    overflow: hidden;
}

th, td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(232, 197, 71, 0.1);
}

th {
    background: rgba(232, 197, 71, 0.08);
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 0.8em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    border-bottom: 2px solid rgba(232, 197, 71, 0.2);
}

td {
    color: var(--ink);
    font-size: 0.95em;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: radial-gradient(ellipse at 50% 50%, rgba(232, 197, 71, 0.04) 0%, transparent 80%);
}

code {
    background: rgba(232, 197, 71, 0.08);
    padding: 3px 8px;
    border-radius: 3px;
    font-family: 'Source Sans 3', 'Consolas', monospace;
    font-size: 0.88em;
    color: var(--gold);
    border: 1px solid rgba(232, 197, 71, 0.12);
}

.config-note {
    text-align: center;
    color: var(--ink-muted);
    font-size: 0.9em;
    margin-bottom: 40px;
    font-style: italic;
}

/* -----------------------------------------------------------------
   FOOTER - Museum closing
   ----------------------------------------------------------------- */
.footer {
    text-align: center;
    margin-top: 60px;
    padding: 40px 20px;
    border-top: 1px solid var(--placard-border);
    background: rgba(18, 18, 36, 0.5);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: var(--gold);
}

.footer p {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    color: var(--ink-muted);
    margin-bottom: 15px;
    font-size: 1.05em;
    font-style: italic;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    color: var(--warm-white);
    border-bottom-color: var(--gold);
}

/* -----------------------------------------------------------------
   RESPONSIVE - Mobile gallery
   ----------------------------------------------------------------- */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .hero {
        padding: 50px 20px 40px;
    }

    .hero h1 {
        font-size: 2.5em;
        letter-spacing: 2px;
    }

    .hero-icon {
        font-size: 3.5em;
    }

    .section-title {
        font-size: 1.6em;
    }

    .step, .install-step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto 12px;
    }

    .top-nav {
        padding: 12px 20px;
    }

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

    .feature-card::after {
        font-size: 0.58em;
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
        letter-spacing: 1px;
    }

    .features-grid, .museum-grid, .rarity-grid {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.9em;
    }

    th, td {
        padding: 10px 12px;
    }
}

/* =================================================================
   LIGHT MODE - Bright gallery white walls with warm spot lighting
   ================================================================= */
[data-theme="light"] body {
    background:
        radial-gradient(ellipse at 25% 10%, rgba(232, 197, 71, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 5%, rgba(196, 162, 78, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(245, 238, 214, 0.3) 0%, transparent 50%),
        linear-gradient(170deg, #faf8f4 0%, #f5f0e6 45%, #ede6d8 100%);
    color: #2a2520;
}

/* -- Light: Nav -- */
[data-theme="light"] .top-nav {
    background: rgba(250, 248, 244, 0.96);
    border-bottom-color: rgba(196, 162, 78, 0.25);
    box-shadow: 0 2px 15px rgba(42, 37, 32, 0.06);
}
[data-theme="light"] .nav-home { color: #8b6e2f; }
[data-theme="light"] .nav-home:hover { color: #6b5020; }
[data-theme="light"] .nav-divider { color: rgba(42, 37, 32, 0.2); }
[data-theme="light"] .nav-current { color: rgba(42, 37, 32, 0.5); }

/* -- Light: Hero -- */
[data-theme="light"] .hero {
    background:
        radial-gradient(ellipse at 50% 20%, rgba(232, 197, 71, 0.08) 0%, transparent 60%),
        rgba(255, 255, 255, 0.7);
    border-color: rgba(196, 162, 78, 0.25);
}
[data-theme="light"] .hero::before,
[data-theme="light"] .hero::after {
    background: linear-gradient(180deg, #c4a24e, rgba(196, 162, 78, 0.15));
}
[data-theme="light"] .hero h1 {
    background: linear-gradient(135deg, #8b6e2f, #6b5020, #a0842f);
    -webkit-background-clip: text;
    background-clip: text;
}
[data-theme="light"] .hero .full-name {
    background: linear-gradient(90deg, #7a6a55, #5a4a38);
    -webkit-background-clip: text;
    background-clip: text;
}
[data-theme="light"] .tagline { color: rgba(42, 37, 32, 0.6); }
[data-theme="light"] .version-badge {
    background: linear-gradient(135deg, #8b6e2f, #a0842f);
    color: #fff;
}
[data-theme="light"] .hero-arch {
    background: linear-gradient(90deg, transparent, #c4a24e, transparent);
}

/* -- Light: Section titles -- */
[data-theme="light"] .section-title {
    color: #2a2520;
}
[data-theme="light"] .section-title::after {
    background: #c4a24e;
    box-shadow: none;
}

/* -- Light: Intro -- */
[data-theme="light"] .intro-section {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(196, 162, 78, 0.2);
    border-left-color: #c4a24e;
    color: #3a352e;
}

/* -- Light: Notice -- */
[data-theme="light"] .notice-box {
    background: rgba(255, 252, 240, 0.8);
    border-color: rgba(196, 162, 78, 0.25);
    border-left-color: #c4a24e;
}
[data-theme="light"] .notice-box h3 { color: #8b6e2f; }
[data-theme="light"] .notice-box p { color: #3a352e; }

/* -- Light: Changelog -- */
[data-theme="light"] .changelog-content h4 { color: #8b6e2f; }
[data-theme="light"] .changelog-content p { color: rgba(42, 37, 32, 0.65); }

/* -- Light: Feature cards -- */
[data-theme="light"] .feature-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(196, 162, 78, 0.15);
}
[data-theme="light"] .feature-card::after {
    background: linear-gradient(135deg, #8b6e2f, #a0842f);
    color: #fff;
}
[data-theme="light"] .feature-card:hover {
    border-color: rgba(196, 162, 78, 0.35);
    box-shadow: 0 8px 30px rgba(42, 37, 32, 0.08);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(232, 197, 71, 0.06) 0%, transparent 70%),
        rgba(255, 255, 255, 0.9);
}
[data-theme="light"] .feature-card h3 { color: #2a2520; }
[data-theme="light"] .feature-card p { color: rgba(42, 37, 32, 0.65); }

/* -- Light: Museum sections -- */
[data-theme="light"] .museum-section {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(196, 162, 78, 0.12);
}
[data-theme="light"] .museum-section::before {
    background: linear-gradient(90deg, transparent, rgba(196, 162, 78, 0.15), transparent);
}
[data-theme="light"] .museum-section.gems {
    border-top-color: #b89830;
    box-shadow: inset 0 3px 15px rgba(184, 152, 48, 0.05);
}
[data-theme="light"] .museum-section.culture {
    border-top-color: #5a9a5a;
    box-shadow: inset 0 3px 15px rgba(90, 154, 90, 0.05);
}
[data-theme="light"] .museum-section.aquarium {
    border-top-color: #4888b0;
    box-shadow: inset 0 3px 15px rgba(72, 136, 176, 0.05);
}
[data-theme="light"] .exhibit-label {
    background: linear-gradient(135deg, #8b6e2f, #a0842f);
    color: #fff;
}
[data-theme="light"] .section-header {
    border-bottom-color: rgba(196, 162, 78, 0.15);
}
[data-theme="light"] .section-header h3 { color: #2a2520; }
[data-theme="light"] .section-desc { color: rgba(42, 37, 32, 0.6); }
[data-theme="light"] .bundle-list li {
    color: #3a352e;
    border-bottom-color: rgba(196, 162, 78, 0.1);
}
[data-theme="light"] .bundle-list li:hover {
    color: #2a2520;
    background: radial-gradient(ellipse at 50% 50%, rgba(196, 162, 78, 0.05) 0%, transparent 80%);
}

/* -- Light: Rarity -- */
[data-theme="light"] .rarity-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(196, 162, 78, 0.12);
}
[data-theme="light"] .rarity-item:hover {
    border-color: rgba(196, 162, 78, 0.3);
}
[data-theme="light"] .rarity-label { color: #3a352e; }

/* -- Light: Steps -- */
[data-theme="light"] .step {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(196, 162, 78, 0.12);
}
[data-theme="light"] .step:hover {
    border-color: rgba(196, 162, 78, 0.3);
    box-shadow: 0 4px 15px rgba(42, 37, 32, 0.06);
}
[data-theme="light"] .step-number {
    background: linear-gradient(135deg, #8b6e2f, #a0842f);
    color: #fff;
}
[data-theme="light"] .step-content h4 { color: #2a2520; }
[data-theme="light"] .step-content p { color: rgba(42, 37, 32, 0.65); }
[data-theme="light"] kbd {
    background: rgba(196, 162, 78, 0.08);
    border-color: rgba(196, 162, 78, 0.2);
    color: #8b6e2f;
    box-shadow: 0 1px 0 rgba(196, 162, 78, 0.12);
}

/* -- Light: Install -- */
[data-theme="light"] .install-step {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(196, 162, 78, 0.12);
}
[data-theme="light"] .install-step:hover {
    border-color: rgba(196, 162, 78, 0.3);
}
[data-theme="light"] .step-info h4 { color: #2a2520; }
[data-theme="light"] .step-info p { color: rgba(42, 37, 32, 0.65); }
[data-theme="light"] .step-info a { color: #8b6e2f; }

/* -- Light: Config table -- */
[data-theme="light"] table {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(196, 162, 78, 0.2);
}
[data-theme="light"] th {
    background: rgba(196, 162, 78, 0.08);
    color: #8b6e2f;
    border-bottom-color: rgba(196, 162, 78, 0.2);
}
[data-theme="light"] td {
    color: #3a352e;
    border-bottom-color: rgba(196, 162, 78, 0.08);
}
[data-theme="light"] tr:hover td {
    background: rgba(196, 162, 78, 0.04);
}
[data-theme="light"] code {
    background: rgba(196, 162, 78, 0.08);
    color: #8b6e2f;
    border-color: rgba(196, 162, 78, 0.15);
}
[data-theme="light"] .config-note { color: rgba(42, 37, 32, 0.55); }

/* -- Light: Footer -- */
[data-theme="light"] .footer {
    background: rgba(250, 248, 244, 0.6);
    border-top-color: rgba(196, 162, 78, 0.2);
}
[data-theme="light"] .footer::before {
    background: #c4a24e;
}
[data-theme="light"] .footer p { color: rgba(42, 37, 32, 0.55); }
[data-theme="light"] .footer-links a { color: #8b6e2f; }
[data-theme="light"] .footer-links a:hover {
    color: #6b5020;
    border-bottom-color: #8b6e2f;
}

/* -- Light: TOC sidebar overrides -- */
[data-theme="light"] .toc-sidebar {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(196, 162, 78, 0.15);
}
[data-theme="light"] .toc-sidebar h3 {
    color: #8b6e2f;
    border-bottom-color: rgba(196, 162, 78, 0.2);
}
[data-theme="light"] .toc-link {
    color: #7a6a55;
}
[data-theme="light"] .toc-link:hover,
[data-theme="light"] .toc-link.active {
    color: #8b6e2f;
    background: rgba(196, 162, 78, 0.08);
    border-left-color: #c4a24e;
}

/* -- Light: Shared component overrides -- */
[data-theme="light"] .keybind-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(196, 162, 78, 0.12);
}
[data-theme="light"] .keybind-card:hover {
    border-color: rgba(196, 162, 78, 0.35);
}
[data-theme="light"] .keybind-keys kbd {
    background: rgba(196, 162, 78, 0.08);
    border-color: rgba(196, 162, 78, 0.2);
    color: #8b6e2f;
}
[data-theme="light"] .related-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(196, 162, 78, 0.12);
}
[data-theme="light"] .related-card:hover {
    border-color: rgba(196, 162, 78, 0.35);
}
[data-theme="light"] .related-info h4 { color: #2a2520; }
[data-theme="light"] .related-info p { color: rgba(42, 37, 32, 0.6); }
[data-theme="light"] .timeline-content {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(196, 162, 78, 0.12);
}
[data-theme="light"] .timeline-version {
    background: rgba(196, 162, 78, 0.12);
    color: #8b6e2f;
}
[data-theme="light"] .changelog-timeline::before {
    background: linear-gradient(180deg, rgba(196, 162, 78, 0.4), rgba(196, 162, 78, 0.08));
}
[data-theme="light"] .timeline-marker {
    background: #c4a24e;
    border-color: rgba(196, 162, 78, 0.25);
}
[data-theme="light"] .timeline-node.current .timeline-marker {
    box-shadow: 0 0 12px rgba(196, 162, 78, 0.35);
}

/* =================================================================
   DARK MODE - Additional overrides for shared components
   ================================================================= */
[data-theme="dark"] .toc-sidebar {
    background: rgba(26, 26, 46, 0.92);
    border-color: var(--placard-border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .toc-sidebar h3 {
    color: var(--gold);
    border-bottom-color: rgba(232, 197, 71, 0.2);
}

[data-theme="dark"] .toc-link {
    color: var(--ink-muted);
}

[data-theme="dark"] .toc-link:hover,
[data-theme="dark"] .toc-link.active {
    color: var(--gold);
    background: rgba(232, 197, 71, 0.08);
    border-left-color: var(--gold);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(26, 26, 46, 0.9);
    border-color: var(--placard-border);
}

[data-theme="dark"] .keybind-card {
    background: var(--placard);
    border-color: var(--glass-border);
}

[data-theme="dark"] .keybind-card:hover {
    border-color: var(--placard-border);
}

[data-theme="dark"] .keybind-keys kbd {
    background: rgba(232, 197, 71, 0.08);
    border-color: var(--placard-border);
    color: var(--gold);
}

[data-theme="dark"] .related-card {
    background: var(--placard);
    border-color: var(--glass-border);
}

[data-theme="dark"] .related-card:hover {
    border-color: var(--placard-border);
}

[data-theme="dark"] .related-info h4 { color: var(--ink-heading); }
[data-theme="dark"] .related-info p { color: var(--ink-muted); }

[data-theme="dark"] .timeline-content {
    background: var(--placard);
    border-color: var(--glass-border);
}

[data-theme="dark"] .timeline-version {
    background: rgba(232, 197, 71, 0.12);
    color: var(--gold);
}

[data-theme="dark"] .changelog-timeline::before {
    background: linear-gradient(180deg, rgba(232, 197, 71, 0.4), rgba(232, 197, 71, 0.05));
}

[data-theme="dark"] .timeline-marker {
    background: var(--gold);
    border-color: rgba(232, 197, 71, 0.25);
}

[data-theme="dark"] .timeline-node.current .timeline-marker {
    box-shadow: 0 0 12px rgba(232, 197, 71, 0.4);
    animation: pulse-museum 2s ease-in-out infinite;
}

@keyframes pulse-museum {
    0%, 100% { box-shadow: 0 0 10px rgba(232, 197, 71, 0.3); }
    50% { box-shadow: 0 0 20px rgba(232, 197, 71, 0.6); }
}

[data-theme="dark"] .back-to-top {
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    color: var(--wall-1);
}

[data-theme="dark"] .breadcrumb-date {
    opacity: 0.45;
    color: var(--ink-muted);
}

[data-theme="dark"] .bug-report-btn {
    background: rgba(180, 50, 50, 0.85);
}

/* Focus ring override for museum theme */
[data-theme="dark"] *:focus-visible {
    outline-color: rgba(232, 197, 71, 0.6);
}

[data-theme="light"] *:focus-visible {
    outline-color: rgba(196, 162, 78, 0.6);
}
