/* =========================================================================
   Runestone Haven — ARK Survival Ascended Norse / Ragnarok cluster template
   "Carved Stone Saga" — weathered slate stone, aged copper rivets, ice
   blue runes, blood red oaths.
   ========================================================================= */
:root {
    --rune-abyss:        #0d0f12;
    --rune-stone:        #1a1d22;
    --rune-stone-soft:   #21252b;
    --rune-stone-elev:   #2a2e35;
    --rune-stone-edge:   #3a4049;
    --rune-iron:         #4a5664;
    --rune-iron-soft:    #5d6b7a;
    --rune-copper:       #c87530;
    --rune-copper-bright:#e89a55;
    --rune-copper-deep:  #8a4f1d;
    --rune-copper-glow:  rgba(200, 117, 48, 0.35);
    --rune-bronze:       #b8893a;
    --rune-bronze-bright:#e2b35e;
    --rune-frost:        #6ab4d9;
    --rune-frost-bright: #9fd4ef;
    --rune-frost-deep:   #3d7a98;
    --rune-frost-glow:   rgba(106, 180, 217, 0.3);
    --rune-blood:        #a23b3b;
    --rune-blood-bright: #c95757;
    --rune-blood-glow:   rgba(162, 59, 59, 0.3);
    --rune-parchment:    #d9c89a;
    --rune-paper:        #ebe0c1;
    --rune-bone:         #efe6cf;
    --rune-text:         #ece3c8;
    --rune-mute:         #9b8f6f;
    --rune-dim:          #6f6750;
    --rune-fade:         #3a3729;
    --rune-rule:         rgba(217, 200, 154, 0.12);
    --rune-rule-strong:  rgba(217, 200, 154, 0.25);
    --rune-border:       rgba(217, 200, 154, 0.18);
    --rune-border-strong:rgba(217, 200, 154, 0.4);
    --rune-border-copper:rgba(200, 117, 48, 0.4);
    --rune-border-frost: rgba(106, 180, 217, 0.35);
    --rune-good: var(--rune-frost-bright);
    --rune-warn: var(--rune-bronze-bright);
    --rune-bad:  var(--rune-blood-bright);
    --accent-fire:    var(--rune-copper);
    --accent-fire-2:  var(--rune-copper-bright);
    --accent-fire-dk: var(--rune-copper-deep);
    --accent-bio:     var(--rune-frost);
    --accent-bio-2:   var(--rune-frost-bright);
    --accent-bio-dk:  var(--rune-frost-deep);
    --bg-deep:        var(--rune-abyss);
    --bg-base:        var(--rune-stone);
    --bg-elev:        var(--rune-stone-elev);
    --bg-elev-2:      var(--rune-stone-edge);
    --border-soft:    var(--rune-border);
    --border-strong:  var(--rune-border-strong);
    --text-bright:    var(--rune-text);
    --text-base:      var(--rune-text);
    --text-muted:     var(--rune-mute);
    --text-dim:       var(--rune-dim);
    --warn:           var(--rune-warn);
    --good:           var(--rune-good);
    --bad:            var(--rune-bad);
    --ark-hero-image: url('https://cdn.cloudflare.steamstatic.com/steam/apps/2399830/library_hero.jpg');
    --display:  'Cinzel Decorative', 'Cinzel', Georgia, serif;
    --serif:    'EB Garamond', Georgia, serif;
    --body:     'Inter', system-ui, sans-serif;
    --mono:     'JetBrains Mono', ui-monospace, monospace;
    --rune:     'Noto Sans Runic', 'Cinzel Decorative', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--rune-stone); }

body {
    font-family: var(--body);
    color: var(--rune-text);
    background: var(--rune-stone);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(200, 117, 48, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(106, 180, 217, 0.05) 0%, transparent 55%),
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.012) 0%, transparent 50%),
        repeating-linear-gradient(0deg, transparent 0px, transparent 3px, rgba(0, 0, 0, 0.04) 3px, rgba(0, 0, 0, 0.04) 4px);
    background-attachment: fixed;
}

h1, h2, h3, h4 { font-family: var(--display); color: var(--rune-bone); font-weight: 700; line-height: 1.12; letter-spacing: 0.05em; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 6.5vw, 5.2rem); letter-spacing: 0.08em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { font-family: var(--body); }
a { color: var(--rune-copper-bright); text-decoration: none; transition: color .2s, text-shadow .2s; border-bottom: 0; }
a:hover { color: var(--rune-bronze-bright); text-shadow: 0 0 12px var(--rune-copper-glow); }
code, .mono, kbd { font-family: var(--mono); letter-spacing: 0.03em; }
.skip-link { position: absolute; left: -9999px; background: var(--rune-copper); color: var(--rune-abyss); padding: 10px 20px; z-index: 9999; font-family: var(--display); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.78rem; }
.skip-link:focus { left: 16px; top: 16px; }

/* Saga banner */
.rune-saga {
    background: linear-gradient(90deg, var(--rune-abyss) 0%, #15171c 50%, var(--rune-abyss) 100%);
    color: var(--rune-bone);
    border-bottom: 1px solid var(--rune-border-copper);
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    padding: 10px 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1031;
    box-shadow: 0 1px 0 0 var(--rune-border-copper);
}
.rune-saga::before, .rune-saga::after {
    content: '';
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 6px; height: 6px;
    background: var(--rune-copper);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--rune-stone-edge), 0 0 12px var(--rune-copper-glow);
}
.rune-saga::before { left: 16px; }
.rune-saga::after  { right: 16px; }
.rune-saga .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.rune-saga-left, .rune-saga-right { display: flex; align-items: center; gap: 14px; color: var(--rune-mute); }
.rune-saga-runes { color: var(--rune-copper-bright); font-family: var(--rune); font-weight: 400; font-size: 1.05rem; letter-spacing: 0.18em; text-shadow: 0 0 12px var(--rune-copper-glow); }
.rune-saga-frost { color: var(--rune-frost-bright); }
.rune-saga-sep { color: var(--rune-fade); }
.rune-saga-blood { color: var(--rune-blood-bright); }

/* Nav */
.site-navbar {
    background: rgba(26, 29, 34, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rune-border);
    padding: 14px 0;
    transition: background .25s, padding .25s;
    position: fixed;
    top: 36px; left: 0; right: 0;
    z-index: 1030;
}
.site-navbar.scrolled { background: rgba(13, 15, 18, 0.96); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 1px 0 0 var(--rune-border-copper); padding: 10px 0; }
.brand-wordmark { font-family: var(--display); font-size: 1.4rem; font-weight: 700; color: var(--rune-bone); display: inline-flex; align-items: center; gap: 14px; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 0; }
.brand-wordmark:hover { color: var(--rune-copper-bright); }
.brand-mark {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 42px; height: 42px;
    background: radial-gradient(circle at 30% 30%, var(--rune-stone-elev) 0%, var(--rune-stone) 70%);
    color: var(--rune-copper-bright);
    font-size: 1.05rem;
    border: 1px solid var(--rune-copper);
    box-shadow: inset 0 0 0 2px var(--rune-stone-soft), 0 0 0 1px var(--rune-border-copper), 0 0 18px var(--rune-copper-glow);
    border-radius: 2px;
}

.site-navbar .navbar-nav { gap: 4px; align-items: center; }
.site-navbar .nav-link { color: var(--rune-text); font-family: var(--display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; padding: 8px 14px !important; transition: color .15s, text-shadow .15s; border-bottom: 0; position: relative; }
.site-navbar .nav-link:hover { color: var(--rune-copper-bright); text-shadow: 0 0 8px var(--rune-copper-glow); }
.site-navbar .nav-link.active { color: var(--rune-copper-bright); }
.site-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    left: 50%; bottom: -2px;
    width: 24px; height: 2px;
    background: var(--rune-copper);
    transform: translateX(-50%);
    box-shadow: 0 0 6px var(--rune-copper-glow);
}
.site-navbar .btn-connect {
    background: var(--rune-copper);
    color: var(--rune-abyss);
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 10px 24px;
    border: 1px solid var(--rune-copper);
    border-radius: 2px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px var(--rune-copper-bright), 0 4px 0 0 var(--rune-copper-deep), 0 0 22px var(--rune-copper-glow);
    transition: background .15s, transform .1s, box-shadow .15s;
}
.site-navbar .btn-connect:hover { background: var(--rune-copper-bright); border-color: var(--rune-copper-bright); box-shadow: inset 0 0 0 1px var(--rune-bronze-bright), 0 4px 0 0 var(--rune-copper-deep), 0 0 32px var(--rune-copper-glow); transform: translateY(-2px); }
.site-navbar .btn-connect:active { transform: translateY(0); box-shadow: inset 0 0 0 1px var(--rune-copper-bright), 0 1px 0 0 var(--rune-copper-deep), 0 0 18px var(--rune-copper-glow); }
.site-navbar .btn-connect i { margin-right: 8px; }

.navbar-toggler { border: 1px solid var(--rune-border-strong); border-radius: 2px; padding: 6px 10px; color: var(--rune-copper-bright); background: transparent; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--rune-copper-glow); }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23c87530' stroke-width='2' stroke-linecap='square' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); }
main#main { padding-top: 110px; }

/* Buttons */
.btn.rune-btn, .rune-btn, .btn-primary {
    font-family: var(--display) !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 14px 32px !important;
    border-radius: 2px !important;
    border: 1px solid var(--rune-copper) !important;
    background: var(--rune-copper) !important;
    color: var(--rune-abyss) !important;
    box-shadow: inset 0 0 0 1px var(--rune-copper-bright), 0 5px 0 0 var(--rune-copper-deep), 0 0 28px var(--rune-copper-glow) !important;
    transition: background .15s, transform .1s, box-shadow .15s !important;
    display: inline-flex !important;
    align-items: center;
    position: relative;
}
.btn.rune-btn:hover, .btn-primary:hover { background: var(--rune-copper-bright) !important; border-color: var(--rune-copper-bright) !important; box-shadow: inset 0 0 0 1px var(--rune-bronze-bright), 0 5px 0 0 var(--rune-copper-deep), 0 0 36px var(--rune-copper-glow) !important; transform: translateY(-2px); }
.btn.rune-btn:active, .btn-primary:active { transform: translateY(0); box-shadow: inset 0 0 0 1px var(--rune-copper-bright), 0 1px 0 0 var(--rune-copper-deep), 0 0 22px var(--rune-copper-glow) !important; }
.btn.rune-btn--ghost, .btn-outline-light {
    background: transparent !important;
    color: var(--rune-frost-bright) !important;
    border: 1px solid var(--rune-frost) !important;
    box-shadow: 0 0 0 1px var(--rune-frost-glow), 0 0 22px var(--rune-frost-glow) !important;
}
.btn.rune-btn--ghost:hover, .btn-outline-light:hover { background: rgba(106, 180, 217, 0.12) !important; color: var(--rune-frost-bright) !important; box-shadow: 0 0 0 1px var(--rune-frost), 0 0 32px var(--rune-frost-glow) !important; transform: translateY(-2px); }

/* Sections */
.rune-section { padding: clamp(80px, 9vw, 130px) 0; position: relative; isolation: isolate; }
.rune-section--stone   { background: var(--rune-stone); }
.rune-section--soft    { background: var(--rune-stone-soft); }
.rune-section--abyss   { background: var(--rune-abyss); }

.rune-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.76rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--rune-copper-bright);
    margin-bottom: 18px;
    text-shadow: 0 0 12px var(--rune-copper-glow);
}
.rune-eyebrow-glyph { font-family: var(--rune); font-size: 1rem; color: var(--rune-copper); letter-spacing: 0.15em; opacity: 0.85; }
.rune-eyebrow--frost { color: var(--rune-frost-bright); text-shadow: 0 0 12px var(--rune-frost-glow); }
.rune-eyebrow--frost .rune-eyebrow-glyph { color: var(--rune-frost); }
.rune-eyebrow--blood { color: var(--rune-blood-bright); text-shadow: 0 0 12px var(--rune-blood-glow); }
.rune-eyebrow--blood .rune-eyebrow-glyph { color: var(--rune-blood); }

/* Hero */
.rune-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(120px, 14vw, 200px) 0 clamp(90px, 12vw, 160px);
    background: var(--rune-stone);
    color: var(--rune-text);
    text-align: center;
}
.rune-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--ark-hero-image);
    background-size: cover;
    background-position: center 40%;
    filter: saturate(0.5) brightness(0.42) contrast(1.1) hue-rotate(-10deg);
    opacity: 0.78;
    z-index: -3;
}
.rune-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 25%, transparent 0%, rgba(13, 15, 18, 0.45) 55%, var(--rune-abyss) 100%),
        linear-gradient(180deg, rgba(13, 15, 18, 0.4) 0%, rgba(13, 15, 18, 0.55) 55%, var(--rune-stone) 100%);
    z-index: -2;
}
.rune-hero-rune-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--rune);
    font-size: clamp(20rem, 36vw, 36rem);
    color: rgba(200, 117, 48, 0.04);
    pointer-events: none;
    z-index: -1;
    line-height: 1;
    letter-spacing: 0.02em;
    user-select: none;
}
.rune-hero-inner { max-width: 980px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.rune-hero-banner {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding: 8px 22px;
    background: rgba(13, 15, 18, 0.78);
    border: 1px solid var(--rune-border-copper);
    border-radius: 2px;
    color: var(--rune-bone);
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    box-shadow: 0 0 0 1px var(--rune-rule), 0 0 24px var(--rune-copper-glow);
}
.rune-hero-banner-runes { color: var(--rune-copper-bright); font-family: var(--rune); font-size: 0.95rem; letter-spacing: 0.2em; }
.rune-hero-banner-dot {
    width: 7px; height: 7px;
    background: var(--rune-copper-bright);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(200, 117, 48, 0.18), 0 0 10px var(--rune-copper-glow);
    animation: runeFlame 2.4s ease-in-out infinite;
}
.rune-hero-banner-dot--sample { background: var(--rune-frost-bright); box-shadow: 0 0 0 2px rgba(106, 180, 217, 0.18), 0 0 10px var(--rune-frost-glow); }
.rune-hero-banner-dot--offline { background: var(--rune-blood-bright); box-shadow: 0 0 0 2px rgba(162, 59, 59, 0.18), 0 0 10px var(--rune-blood-glow); }
@keyframes runeFlame { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.18); opacity: 0.75; } }

.rune-hero-title {
    font-family: var(--display);
    font-size: clamp(2.6rem, 7.5vw, 6.2rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rune-bone);
    line-height: 1.06;
    margin: 0 0 16px;
    text-shadow: 0 4px 0 var(--rune-stone-edge), 0 6px 24px rgba(0, 0, 0, 0.7), 0 0 60px var(--rune-copper-glow);
    position: relative;
}
.rune-hero-runes-flank {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: var(--rune-copper-bright);
    font-family: var(--rune);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    letter-spacing: 0.3em;
    margin: 0 0 28px;
    text-shadow: 0 0 14px var(--rune-copper-glow);
    opacity: 0.92;
}
.rune-hero-runes-flank::before, .rune-hero-runes-flank::after {
    content: '';
    width: 56px; height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--rune-copper) 50%, transparent 100%);
    box-shadow: 0 0 8px var(--rune-copper-glow);
}

.rune-hero-kicker {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.05rem, 1.7vw, 1.4rem);
    letter-spacing: 0.06em;
    color: var(--rune-frost-bright);
    margin: 0 0 26px;
    text-shadow: 0 0 12px var(--rune-frost-glow);
}
.rune-hero-sub {
    font-family: var(--body);
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    line-height: 1.7;
    color: var(--rune-text);
    max-width: 680px;
    margin: 0 auto;
    opacity: 0.92;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}
.rune-hero-motd {
    margin: 22px auto 0;
    max-width: 580px;
    padding: 12px 22px;
    background: rgba(162, 59, 59, 0.12);
    border: 1px solid var(--rune-blood);
    color: var(--rune-blood-bright);
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 2px;
}
.rune-hero-motd i { color: var(--rune-blood-bright); margin-right: 12px; }
.rune-hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.rune-hero-scroll {
    position: absolute;
    bottom: 28px; left: 50%;
    transform: translateX(-50%);
    color: var(--rune-mute);
    font-family: var(--display);
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    opacity: 0.7;
    z-index: 2;
}
.rune-hero-scroll-line { width: 1px; height: 36px; background: linear-gradient(180deg, var(--rune-copper) 0%, transparent 100%); box-shadow: 0 0 6px var(--rune-copper-glow); }

/* Oath stat tablets */
.rune-oath {
    background: var(--rune-stone-soft);
    border-top: 1px solid var(--rune-border-copper);
    border-bottom: 1px solid var(--rune-border-copper);
    position: relative;
}
.rune-oath::before, .rune-oath::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, var(--rune-copper) 50%, transparent 100%); box-shadow: 0 0 8px var(--rune-copper-glow); }
.rune-oath::before { top: -1px; }
.rune-oath::after  { bottom: -1px; }
.rune-oath-head { text-align: center; margin-bottom: 50px; }
.rune-oath-head h2 em { font-style: italic; color: var(--rune-copper-bright); font-weight: 600; }
.rune-oath-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; max-width: 1200px; margin: 0 auto; }
.rune-tablet {
    background: linear-gradient(180deg, var(--rune-stone-elev) 0%, var(--rune-stone-soft) 100%);
    border: 1px solid var(--rune-stone-edge);
    padding: 32px 24px 26px;
    text-align: center;
    position: relative;
    border-radius: 2px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.4), 0 8px 18px rgba(0, 0, 0, 0.5);
}
.rune-tablet::before, .rune-tablet::after {
    content: '';
    position: absolute;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--rune-copper-bright) 0%, var(--rune-copper) 50%, var(--rune-copper-deep) 100%);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.5), 0 0 4px rgba(0, 0, 0, 0.7);
}
.rune-tablet::before { top: 8px; left: 8px; }
.rune-tablet::after  { top: 8px; right: 8px; }
.rune-tablet-rivet-bl, .rune-tablet-rivet-br {
    position: absolute;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--rune-copper-bright) 0%, var(--rune-copper) 50%, var(--rune-copper-deep) 100%);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.5), 0 0 4px rgba(0, 0, 0, 0.7);
}
.rune-tablet-rivet-bl { bottom: 8px; left: 8px; }
.rune-tablet-rivet-br { bottom: 8px; right: 8px; }
.rune-tablet-rune { font-family: var(--rune); font-size: 1.15rem; color: var(--rune-copper-bright); letter-spacing: 0.15em; margin-bottom: 10px; text-shadow: 0 0 10px var(--rune-copper-glow); opacity: 0.9; }
.rune-tablet-num {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.4rem, 4.4vw, 3.4rem);
    color: var(--rune-bone);
    line-height: 1;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 0 var(--rune-stone-edge), 0 4px 18px rgba(0, 0, 0, 0.65), 0 0 30px var(--rune-copper-glow);
    display: block;
}
.rune-tablet-lab { margin-top: 12px; font-family: var(--display); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rune-mute); }

/* Chronicle (live status) */
.rune-chronicle { background: var(--rune-stone); padding: clamp(80px, 9vw, 130px) 0; }
.rune-chronicle-head { text-align: center; margin-bottom: 50px; }
.rune-chronicle-head h2 em { font-style: italic; color: var(--rune-copper-bright); font-weight: 600; }
.rune-chronicle-head p { color: var(--rune-mute); max-width: 540px; margin: 14px auto 0; font-size: 1rem; }
.rune-chronicle-list { max-width: 920px; margin: 0 auto; }
.rune-chronicle-entry {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 20px 24px;
    background: var(--rune-stone-soft);
    border: 1px solid var(--rune-stone-edge);
    border-left: 4px solid var(--rune-copper);
    margin-bottom: 10px;
    border-radius: 2px;
    transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.rune-chronicle-entry:hover { background: var(--rune-stone-elev); border-color: var(--rune-copper); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5), -2px 0 18px var(--rune-copper-glow); transform: translateX(4px); }
.rune-chronicle-entry--primary { border-left-color: var(--rune-bronze-bright); }
.rune-chronicle-entry--offline { border-left-color: var(--rune-blood); }
.rune-chronicle-entry--stale { border-left-color: var(--rune-bronze); }
.rune-chronicle-rune { font-family: var(--rune); font-size: 1.6rem; color: var(--rune-copper-bright); text-align: center; line-height: 1; text-shadow: 0 0 10px var(--rune-copper-glow); opacity: 0.92; }
.rune-chronicle-body { min-width: 0; }
.rune-chronicle-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--rune-bone);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex; align-items: baseline; gap: 10px;
}
.rune-chronicle-primary-flag { color: var(--rune-bronze-bright); font-size: 0.7em; }
.rune-chronicle-meta { font-family: var(--serif); font-style: italic; font-size: 0.9rem; color: var(--rune-mute); margin-top: 3px; }
.rune-chronicle-meta code { font-family: var(--mono); font-style: normal; color: var(--rune-frost-bright); cursor: pointer; border-bottom: 1px dashed var(--rune-rule-strong); }
.rune-chronicle-stat { font-family: var(--mono); font-size: 0.92rem; color: var(--rune-text); text-align: right; white-space: nowrap; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.rune-chronicle-stat strong { color: var(--rune-copper-bright); }
.rune-chronicle-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 3px 9px;
    border: 1px solid currentColor;
    border-radius: 2px;
}
.rune-chronicle-pill--online  { color: var(--rune-frost-bright); }
.rune-chronicle-pill--stale   { color: var(--rune-bronze-bright); }
.rune-chronicle-pill--offline { color: var(--rune-blood-bright); }
.rune-chronicle-foot { margin-top: 32px; text-align: center; font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rune-dim); }

/* The Ways (features) */
.rune-ways { background: var(--rune-stone-soft); padding: clamp(80px, 9vw, 130px) 0; position: relative; }
.rune-ways-head { text-align: center; margin-bottom: 60px; max-width: 640px; margin-left: auto; margin-right: auto; padding: 0 20px; }
.rune-ways-head h2 em { font-style: italic; color: var(--rune-blood-bright); font-weight: 600; }
.rune-ways-head p { color: var(--rune-mute); font-size: 1.05rem; line-height: 1.65; margin-top: 14px; }
.rune-ways-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.rune-way {
    background: var(--rune-stone-elev);
    border: 1px solid var(--rune-stone-edge);
    padding: 32px 28px;
    position: relative;
    border-radius: 2px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.4), 0 10px 22px rgba(0, 0, 0, 0.4);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.rune-way::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--rune-copper); box-shadow: 0 0 12px var(--rune-copper-glow); }
.rune-way:hover { transform: translateY(-3px); border-color: var(--rune-copper); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 rgba(0, 0, 0, 0.5), 0 18px 38px rgba(0, 0, 0, 0.55), 0 0 32px var(--rune-copper-glow); }
.rune-way-glyph { font-family: var(--rune); font-size: 2.2rem; color: var(--rune-copper-bright); line-height: 1; margin-bottom: 16px; text-shadow: 0 0 14px var(--rune-copper-glow); opacity: 0.92; letter-spacing: 0.12em; }
.rune-way-num { position: absolute; top: 24px; right: 24px; font-family: var(--display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rune-mute); }
.rune-way h3 { font-family: var(--display); font-weight: 700; color: var(--rune-bone); font-size: 1.2rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.2; }
.rune-way p { font-family: var(--body); font-size: 0.95rem; line-height: 1.7; color: var(--rune-text); opacity: 0.88; margin: 0; }

/* Realms (maps) */
.rune-realms { background: var(--rune-abyss); padding: clamp(80px, 9vw, 130px) 0; position: relative; overflow: hidden; }
.rune-realms::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(200, 117, 48, 0.06) 0%, transparent 50%), radial-gradient(ellipse at 50% 100%, rgba(106, 180, 217, 0.05) 0%, transparent 50%); pointer-events: none; }
.rune-realms-head { text-align: center; max-width: 720px; margin: 0 auto 60px; padding: 0 20px; position: relative; z-index: 1; }
.rune-realms-head h2 em { font-style: italic; color: var(--rune-frost-bright); font-weight: 600; }
.rune-realms-head p { color: var(--rune-mute); font-size: 1.05rem; line-height: 1.65; margin-top: 14px; }
.rune-realms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; max-width: 1300px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.rune-realm {
    background: var(--rune-stone-soft);
    border: 1px solid var(--rune-stone-edge);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    transition: transform .25s, border-color .25s, box-shadow .25s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 22px rgba(0, 0, 0, 0.5);
}
.rune-realm::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--rune-copper-deep) 0%, var(--rune-copper-bright) 50%, var(--rune-copper-deep) 100%); z-index: 3; }
.rune-realm:hover { transform: translateY(-4px); border-color: var(--rune-copper); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 40px rgba(0, 0, 0, 0.65), 0 0 36px var(--rune-copper-glow); }
.rune-realm-photo { aspect-ratio: 16 / 11; background: var(--rune-stone); color: var(--rune-copper-bright); position: relative; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; overflow: hidden; }
.rune-realm-photo i { opacity: 0.4; }
.rune-realm-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(13, 15, 18, 0.85) 100%); pointer-events: none; }
.rune-realm-rune-num { position: absolute; top: 14px; right: 14px; font-family: var(--rune); font-size: 1.4rem; color: var(--rune-copper-bright); background: rgba(13, 15, 18, 0.78); padding: 4px 12px; border: 1px solid var(--rune-border-copper); border-radius: 2px; z-index: 2; text-shadow: 0 0 10px var(--rune-copper-glow); }
.rune-realm-flag { position: absolute; top: 14px; left: 14px; font-family: var(--display); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rune-bone); background: rgba(13, 15, 18, 0.85); border: 1px solid var(--rune-border-copper); padding: 4px 10px; border-radius: 2px; z-index: 2; }
.rune-realm-flag--primary { color: var(--rune-bronze-bright); border-color: var(--rune-bronze); }
.rune-realm-flag--online  { color: var(--rune-frost-bright);  border-color: var(--rune-frost); }
.rune-realm-flag--stale   { color: var(--rune-bronze-bright); border-color: var(--rune-bronze); }
.rune-realm-flag--offline { color: var(--rune-blood-bright);  border-color: var(--rune-blood); }
.rune-realm-body { padding: 20px 22px 22px; background: var(--rune-stone-soft); border-top: 1px solid var(--rune-border); }
.rune-realm-name { font-family: var(--display); font-weight: 700; color: var(--rune-bone); font-size: 1.18rem; margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.rune-realm-srv { font-family: var(--serif); font-style: italic; font-size: 0.88rem; color: var(--rune-mute); margin: 0 0 12px; }
.rune-realm-blurb { font-family: var(--body); font-size: 0.92rem; line-height: 1.55; color: var(--rune-text); opacity: 0.85; margin: 0 0 14px; }
.rune-realm-stat { padding-top: 12px; border-top: 1px solid var(--rune-rule-strong); font-family: var(--mono); font-size: 0.82rem; color: var(--rune-mute); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rune-realm-stat strong { color: var(--rune-copper-bright); }
.rune-realm-stat code { color: var(--rune-frost-bright); font-size: 0.74rem; cursor: pointer; border-bottom: 1px dashed var(--rune-rule-strong); }

/* Oath stone (CTA) */
.rune-oath-stone { background: var(--rune-stone); padding: clamp(80px, 9vw, 130px) 0; position: relative; }
.rune-monument {
    max-width: 860px;
    margin: 0 auto;
    background: linear-gradient(160deg, var(--rune-stone-elev) 0%, var(--rune-stone-soft) 100%);
    border: 1px solid var(--rune-stone-edge);
    border-radius: 2px;
    padding: clamp(40px, 5vw, 60px);
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -2px 0 rgba(0, 0, 0, 0.5), 0 30px 60px rgba(0, 0, 0, 0.65);
    text-align: center;
}
.rune-monument::before, .rune-monument::after {
    content: '';
    position: absolute;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--rune-copper-bright) 0%, var(--rune-copper) 60%, var(--rune-copper-deep) 100%);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.6), 0 0 8px rgba(0, 0, 0, 0.6);
}
.rune-monument::before { top: 12px; left: 12px; }
.rune-monument::after  { top: 12px; right: 12px; }
.rune-monument-rivet-bl, .rune-monument-rivet-br {
    position: absolute;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--rune-copper-bright) 0%, var(--rune-copper) 60%, var(--rune-copper-deep) 100%);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.6), 0 0 8px rgba(0, 0, 0, 0.6);
}
.rune-monument-rivet-bl { bottom: 12px; left: 12px; }
.rune-monument-rivet-br { bottom: 12px; right: 12px; }
.rune-monument-runes { font-family: var(--rune); font-size: 1.4rem; color: var(--rune-copper-bright); letter-spacing: 0.18em; margin-bottom: 18px; text-shadow: 0 0 14px var(--rune-copper-glow); opacity: 0.95; }
.rune-monument h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 0 0 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.rune-monument h2 em { color: var(--rune-copper-bright); font-style: italic; font-weight: 600; }
.rune-monument-quote { font-family: var(--serif); font-style: italic; color: var(--rune-text); font-size: 1.12rem; margin: 0 auto 30px; max-width: 540px; line-height: 1.65; opacity: 0.88; }
.rune-monument-ip-label { font-family: var(--display); font-weight: 600; font-size: 0.72rem; color: var(--rune-mute); letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 10px; }
.rune-monument-ip {
    display: inline-block;
    font-family: var(--mono);
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--rune-bone);
    background: var(--rune-abyss);
    border: 1px solid var(--rune-border-copper);
    border-radius: 2px;
    padding: 12px 26px;
    margin-bottom: 28px;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 12px rgba(0, 0, 0, 0.5);
}
.rune-monument-ip:hover { background: #060709; border-color: var(--rune-copper); color: var(--rune-copper-bright); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 28px var(--rune-copper-glow); }
.rune-monument-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Footer */
.site-footer { background: var(--rune-abyss); color: var(--rune-text); padding: clamp(60px, 7vw, 96px) 0 28px; border-top: 1px solid var(--rune-border-copper); position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, var(--rune-copper) 50%, transparent 100%); box-shadow: 0 0 12px var(--rune-copper-glow); }
.site-footer h5 { font-family: var(--display); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.78rem; color: var(--rune-copper-bright); margin-bottom: 18px; }
.footer-brand { font-family: var(--display); font-weight: 700; font-size: 1.45rem; color: var(--rune-bone); margin-bottom: 18px; display: inline-flex; align-items: center; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 0; }
.footer-brand i { color: var(--rune-copper-bright); margin-right: 12px; text-shadow: 0 0 14px var(--rune-copper-glow); }
.site-footer p { color: var(--rune-mute); font-family: var(--body); font-size: 0.95rem; line-height: 1.7; }
.footer-info { color: var(--rune-mute); font-family: var(--body); font-size: 0.92rem; }
.footer-info strong { color: var(--rune-copper-bright); font-weight: 700; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.22em; display: block; margin-bottom: 6px; font-family: var(--display); }
.footer-info code { color: var(--rune-frost-bright); font-family: var(--mono); font-size: 0.88rem; cursor: pointer; background: var(--rune-stone-soft); border: 1px solid var(--rune-border); padding: 3px 9px; border-radius: 2px; }
.footer-info a { color: var(--rune-frost-bright); }
.footer-info a:hover { color: var(--rune-bone); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--rune-mute); font-family: var(--display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; border-bottom: 0; }
.footer-links a:hover { color: var(--rune-copper-bright); text-shadow: 0 0 6px var(--rune-copper-glow); }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--rune-border-copper); color: var(--rune-copper-bright); margin-right: 8px; font-size: 0.95rem; border-radius: 2px; transition: background .15s, color .15s, box-shadow .15s; }
.social-link:hover { background: var(--rune-copper); color: var(--rune-abyss); box-shadow: 0 0 18px var(--rune-copper-glow); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rune-rule); font-family: var(--display); color: var(--rune-dim); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; }

/* Back to top */
.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; background: var(--rune-stone-elev); color: var(--rune-copper-bright); border: 1px solid var(--rune-border-copper); border-radius: 2px; cursor: pointer; z-index: 999; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s, background .15s, box-shadow .15s; box-shadow: 0 0 24px var(--rune-copper-glow); }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--rune-copper); color: var(--rune-abyss); box-shadow: 0 0 32px var(--rune-copper-glow); }

/* Subpage compat */
.hero, section.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(120px, 13vw, 180px) 0 clamp(60px, 8vw, 100px); background: var(--rune-stone); color: var(--rune-text); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: var(--ark-hero-image); background-size: cover; background-position: center 40%; filter: saturate(0.5) brightness(0.42) contrast(1.1) hue-rotate(-10deg); opacity: 0.6; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 100%, var(--rune-stone) 0%, transparent 65%), linear-gradient(180deg, rgba(13,15,18,0.5) 0%, rgba(13,15,18,0.65) 55%, var(--rune-stone) 100%); z-index: -1; }
.hero .hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; font-size: 0.78rem; color: var(--rune-copper-bright); margin-bottom: 18px; padding: 6px 14px; border: 1px solid var(--rune-border-copper); border-radius: 2px; background: rgba(26, 29, 34, 0.65); box-shadow: 0 0 16px var(--rune-copper-glow); }
.hero .hero-eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(200, 117, 48, 0.18), 0 0 10px var(--rune-copper-glow); }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 5.5vw, 4.4rem); line-height: 1.06; color: var(--rune-bone); text-transform: uppercase; letter-spacing: 0.08em; text-shadow: 0 0 30px var(--rune-copper-glow); }
.hero h1 .torch { display: inline-block; color: var(--rune-copper-bright); font-style: italic; font-weight: 600; }
.hero .hero-sub { font-family: var(--body); font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--rune-text); opacity: 0.92; max-width: 640px; margin-top: 18px; }
.hero .hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-server-card, details.hero-server-card { background: var(--rune-stone-elev); border: 1px solid var(--rune-border-copper); border-radius: 2px; padding: 18px 22px; margin-top: 28px; max-width: 580px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 20px 40px rgba(0, 0, 0, 0.5); }
.hero-server-card .label, .hero-server-card summary .label { font-family: var(--display); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.72rem; color: var(--rune-copper-bright); margin-bottom: 6px; }
.server-ip { font-family: var(--mono); font-size: 1rem; color: var(--rune-frost-bright); font-weight: 700; cursor: pointer; letter-spacing: 0.04em; background: transparent; }
.hero-server-card .status-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 600; font-size: 0.74rem; color: var(--rune-frost-bright); border: 1px solid var(--rune-border-frost); padding: 4px 12px; background: rgba(0,0,0,0.45); text-transform: uppercase; letter-spacing: 0.16em; border-radius: 2px; }
.hero-server-card .status-pill i { color: var(--rune-frost-bright); font-size: 0.6em; }
.hero-server-card .status-more { color: var(--rune-mute); }

.section, section.section { padding: clamp(72px, 9vw, 120px) 0; background: var(--rune-stone); color: var(--rune-text); }
.section-elev { background: var(--rune-stone-soft); }
.section-dark { background: var(--rune-abyss); color: var(--rune-text); }
.section-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; font-size: 0.76rem; color: var(--rune-copper-bright); margin-bottom: 14px; }
.section-title { font-family: var(--display); font-weight: 700; color: var(--rune-bone); margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.12; }
.section-lead { font-family: var(--body); font-size: 1.05rem; color: var(--rune-mute); max-width: 640px; line-height: 1.7; }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; background: transparent; }
.stat-cell { text-align: center; padding: 26px 18px; background: var(--rune-stone-elev); border: 1px solid var(--rune-stone-edge); border-radius: 2px; position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
.stat-num { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--rune-bone); line-height: 1; margin-bottom: 8px; letter-spacing: 0.04em; text-shadow: 0 0 18px var(--rune-copper-glow); }
.stat-lab { font-family: var(--display); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rune-mute); }
.feature-card { background: var(--rune-stone-elev); border: 1px solid var(--rune-stone-edge); padding: 28px 26px; height: 100%; border-radius: 2px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 22px rgba(0, 0, 0, 0.4); transition: transform .2s, border-color .2s, box-shadow .2s; position: relative; }
.feature-card:hover { transform: translateY(-3px); border-color: var(--rune-copper); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 18px 38px rgba(0, 0, 0, 0.55), 0 0 28px var(--rune-copper-glow); }
.feature-card .feature-icon { width: 48px; height: 48px; color: var(--rune-copper-bright); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; border: 1px solid var(--rune-copper); border-radius: 2px; background: var(--rune-stone); margin-bottom: 18px; box-shadow: inset 0 0 0 1px rgba(200, 117, 48, 0.2), 0 0 14px var(--rune-copper-glow); }
.feature-card h3 { font-family: var(--display); font-weight: 700; color: var(--rune-bone); font-size: 1.2rem; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.feature-card p { font-family: var(--body); font-size: 0.95rem; color: var(--rune-text); opacity: 0.88; margin: 0; }
.map-card { background: var(--rune-stone-soft); border: 1px solid var(--rune-stone-edge); overflow: hidden; border-radius: 2px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 22px rgba(0, 0, 0, 0.4); transition: transform .2s, border-color .2s, box-shadow .2s; }
.map-card:hover { transform: translateY(-3px); border-color: var(--rune-copper); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 18px 38px rgba(0, 0, 0, 0.55), 0 0 28px var(--rune-copper-glow); }
.map-card-media { aspect-ratio: 16/10; background: var(--rune-stone); color: var(--rune-copper-bright); position: relative; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; overflow: hidden; }
.map-card-media i { opacity: 0.4; }
.map-card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(13, 15, 18, 0.85) 100%); pointer-events: none; }
.map-card-body { padding: 18px 20px 20px; background: var(--rune-stone-soft); }
.map-card-body h4 { font-family: var(--display); font-weight: 700; color: var(--rune-bone); margin-bottom: 6px; font-size: 1.18rem; text-transform: uppercase; letter-spacing: 0.06em; }
.map-card-body p { font-family: var(--body); color: var(--rune-text); opacity: 0.85; font-size: 0.92rem; }
.map-card-body p code { color: var(--rune-frost-bright); }
.map-badge { position: absolute; top: 12px; left: 12px; background: rgba(13, 15, 18, 0.85); color: var(--rune-copper-bright); padding: 4px 10px; font-family: var(--display); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; z-index: 2; border: 1px solid var(--rune-border-copper); border-radius: 2px; }
.ark-live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ark-live-card { background: var(--rune-stone-elev); border: 1px solid var(--rune-stone-edge); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; color: var(--rune-text); border-radius: 2px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.03); }
.ark-rich-server-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 24px; }
.ark-rich-server-card { flex: 0 1 calc((100% - 48px) / 3); min-width: 0; display: flex; }
.ark-rich-server-card > .feature-card { width: 100%; }
@media (max-width: 991.98px) { .ark-rich-server-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 575.98px) { .ark-rich-server-card { flex-basis: 100%; } }
.cta-strip { text-align: center; background: var(--rune-stone-elev); border: 1px solid var(--rune-border-copper); padding: clamp(40px, 5vw, 64px); border-radius: 2px; max-width: 880px; margin: 0 auto; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 60px rgba(0, 0, 0, 0.5); }
.form-control, .form-select { background: var(--rune-stone-elev); border: 1px solid var(--rune-border-strong); border-radius: 2px; color: var(--rune-bone); font-family: var(--body); padding: 10px 14px; }
.form-control:focus, .form-select:focus { background: var(--rune-stone-elev); color: var(--rune-bone); border-color: var(--rune-copper); box-shadow: 0 0 0 3px var(--rune-copper-glow); }
.form-label { font-family: var(--display); font-weight: 600; color: var(--rune-copper-bright); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.74rem; margin-bottom: 6px; }
.alert, .alert-warning { background: rgba(162, 59, 59, 0.12); border: 1px solid var(--rune-blood); color: var(--rune-blood-bright); border-radius: 2px; font-family: var(--display); letter-spacing: 0.06em; }
.badge { background: rgba(200, 117, 48, 0.1); color: var(--rune-copper-bright); font-family: var(--display); font-weight: 600; letter-spacing: 0.14em; border-radius: 2px; padding: 4px 10px; border: 1px solid var(--rune-border-copper); text-transform: uppercase; font-size: 0.7rem; }
.table { color: var(--rune-text); border-color: var(--rune-border); font-family: var(--body); }
.table thead th { font-family: var(--display); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.74rem; color: var(--rune-copper-bright); border-color: var(--rune-border-strong); background: var(--rune-stone-elev); }
.table td, .table th { border-color: var(--rune-border); }
::selection { background: var(--rune-copper); color: var(--rune-abyss); }

@media (max-width: 992px) {
    .site-navbar { padding: 12px 0; }
    .site-navbar .navbar-collapse { background: var(--rune-stone-elev); margin-top: 14px; padding: 14px; border: 1px solid var(--rune-border-strong); border-radius: 2px; }
    .site-navbar .navbar-nav { gap: 0; align-items: flex-start !important; }
    .site-navbar .nav-link { width: 100%; padding: 12px 4px !important; border-bottom: 1px solid var(--rune-rule) !important; }
    .site-navbar .nav-link.active::after { display: none; }
    .site-navbar .btn-connect { margin-top: 12px; width: 100%; justify-content: center; }
    .rune-chronicle-entry { grid-template-columns: 40px 1fr; gap: 14px; }
    .rune-chronicle-stat { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding-left: 54px; }
}
@media (max-width: 768px) {
    .rune-saga { font-size: 0.66rem; padding: 7px 0; letter-spacing: 0.18em; }
    .rune-saga-right { display: none; }
    main#main { padding-top: 92px; }
    .rune-hero { padding-top: clamp(70px, 12vw, 120px); padding-bottom: clamp(60px, 10vw, 100px); }
    .rune-hero-scroll { display: none; }
    .rune-hero-runes-flank { gap: 14px; font-size: 1.1rem; }
    .rune-hero-runes-flank::before, .rune-hero-runes-flank::after { width: 30px; }
}
@media (max-width: 520px) {
    .rune-hero-title { letter-spacing: 0.04em; }
    .rune-hero-banner { font-size: 0.66rem; letter-spacing: 0.22em; padding: 6px 14px; gap: 10px; }
    .rune-hero-runes-flank { font-size: 0.95rem; gap: 10px; }
    .rune-hero-runes-flank::before, .rune-hero-runes-flank::after { width: 18px; }
}

[data-aos] { opacity: 1 !important; }

@media (prefers-reduced-motion: reduce) {
    * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
    .rune-hero-banner-dot { animation: none !important; }
}

/* =========================================================================
   Release QA polish 2026-05-22 — subpage-hero, code, contrast, mobile menu
   ========================================================================= */
.subpage-hero {
    min-height: 0 !important;
    padding: 88px 0 28px !important;
}
.subpage-hero h1 {
    font-size: clamp(2.25rem, 4.6vw, 3.6rem);
    line-height: 0.95;
    max-width: none !important;
}
.subpage-hero .hero-sub {
    max-width: 780px;
    font-size: clamp(1rem, 1.45vw, 1.22rem);
    margin-bottom: 0 !important;
}
.subpage-hero .col-lg-10,
.subpage-hero .col-lg-9,
.subpage-hero .row,
.subpage-hero .container {
    min-height: 0 !important;
}
.subpage-hero .col-lg-10,
.subpage-hero .col-lg-9 {
    grid-template-columns: none !important;
    display: block !important;
}
@media (max-width: 767.98px) {
    .subpage-hero {
        min-height: auto !important;
        padding: 68px 0 22px !important;
    }
    .subpage-hero h1 {
        font-size: clamp(1.95rem, 9.2vw, 2.85rem) !important;
        line-height: 0.95 !important;
        margin-bottom: 12px !important;
    }
    .subpage-hero .hero-sub {
        font-size: 0.95rem !important;
        line-height: 1.45 !important;
    }
    .subpage-hero .hero-eyebrow { margin-bottom: 10px !important; }
}
@media (min-width: 992px) and (max-width: 1299.98px) {
    .subpage-hero {
        min-height: auto !important;
        padding: 70px 0 22px !important;
    }
    .subpage-hero h1 {
        font-size: clamp(2rem, 3.4vw, 2.95rem) !important;
        line-height: 0.95 !important;
        margin-bottom: 12px !important;
    }
    .subpage-hero .hero-sub {
        font-size: 1rem !important;
        line-height: 1.45 !important;
        margin-bottom: 0 !important;
    }
}

/* Override Bootstrap's default code color so subpage IPs stay on-brand */
code, code.mono {
    color: var(--accent-bio-2, var(--accent-bio, currentColor)) !important;
}

/* Mobile menu safety net — ensure Bootstrap .show class wins on small screens */
@media (max-width: 991.98px) {
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        display: block !important;
    }
}

/* Brighten .stat-lab muted text on subpages (contrast fix) */
.stat-lab { opacity: 1; }

/* Contrast fixes — release QA 2026-05-22 */
.rune-saga-blood { color: #e07070 !important; }
code, code.mono { color: var(--rune-frost-bright) !important; }

/* Stat-lab contrast — release QA 2026-05-22 #2 */
.stat-lab { color: var(--rune-text) !important; opacity: 1 !important; }

/* Compact subpage hero fit — release QA 2026-05-22 */
.subpage-hero {
    padding: 80px 0 22px !important;
}

@media (max-width: 767.98px) {
    .subpage-hero {
        padding: 64px 0 20px !important;
    }
}

@media (min-width: 992px) and (max-width: 1299.98px) {
    .subpage-hero {
        padding: 68px 0 20px !important;
    }
}

/* ===== XELORA-FIX-PASS-A (cross-template layout fixes) ===== */
.ark-rich-server-grid > .ark-rich-server-card { flex: 0 1 clamp(320px, 40%, 460px); max-width: 460px; }
.ark-map-grid > [class*="col-"]:only-child { margin-inline: auto; max-width: 520px; float: none; }
.info-row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.95rem; }
.info-row:last-child { border-bottom: none; }
.info-row .label { color: var(--text-muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; margin: 0; }
.info-row .value { color: var(--accent-fire-2); font-weight: 700; text-align: right; white-space: normal; min-width: 0; font-variant-numeric: tabular-nums; }
.section[data-section-type="connection"] .feature-card { height: auto; }
.rules-list { list-style: none; padding: 0; margin: 0; }
.rules-list li { display: flex; gap: 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.rules-list li:last-child { border-bottom: none; }
.rules-list li > strong { flex: 0 0 auto; min-width: 2.4em; color: var(--accent-fire-2); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; }
.rules-list li > div { flex: 1 1 auto; color: var(--text-base); line-height: 1.6; }
.ark-join-checklist > div { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.ark-join-checklist > div > i { flex: 0 0 auto; margin-top: 5px; color: var(--accent-fire-2); font-size: 0.82rem; }
.ark-join-checklist > div > span { flex: 1 1 auto; color: var(--text-base); line-height: 1.55; }
.form-control::placeholder, .form-select::placeholder, textarea.form-control::placeholder { color: var(--text-muted); opacity: 0.72; }
