/* =========================================================
   THE WIZARD'S HALL - CLEAN TACTICAL HUD
   ========================================================= */

.wizard-hall {
    /* 1. Stretch to full width of the parent site-wrapper */
    width: 99% !important;
    max-width: 98% !important; 
    padding: 0 0 !important; /* Vertical space only, let children handle horizontal */
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: transparent !important;
    position: relative;
    /* This overrides the 'Courier New' from your main_theme.css */
    font-family: "Georgia", "Times New Roman", serif !important;
    line-height: 1.4 !important;
    color: var(--strobe-white) !important;
    letter-spacing: 0.5px;
    min-height: 80vh;
    justify-content: flex-start;
    z-index: 5;
}

/* 🔐 AUTHENTICATION BOX SPECIFICS */
.auth-container, .register-container {
    margin-top: 10px !important; /* Minimal gap from the header */
    width: 100%;
    max-width: 500px !important; /* Keeps the login box tight and tactical */
}

/* --- TITLES & HEADERS --- */
.wizard-hall h2, 
.wizard-hall h3, 
.wizard-hall .level-number, 
.wizard-hall .stat-value {
    font-family: "Georgia", serif !important;
    font-weight: 900 !important; /* Force extra bold weight */
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

/* Keep the labels slightly smaller and clean */
.wizard-hall .stat-label, 
.wizard-hall .level-title, 
.wizard-hall .news-time {
    font-family: 'Times New Roman', Times, serif !important;
    font-size: 0.85rem;
}


/* --- LEVEL UP BANNER --- */
.level-up-banner {
    text-align: center;
    padding: 20px;
    margin-top: 40px !important;
    border: 1px solid var(--primary-green);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: var(--neon-glow);
    animation: level-up-pulse 3s infinite ease-in-out;
    box-sizing: border-box; /* Prevents padding from pushing width past 100% */
    width: 100%;
}

.level-number {
    font-size: 2.5rem;
    color: var(--primary-green);
    text-shadow: var(--neon-bloom);
    font-family: var(--crt-font);
}

.xp-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin: 15px 0;
    overflow: hidden;
    border: 1px solid rgba(9, 245, 48, 0.3);
}

.xp-progress {
    height: 100%;
    background: var(--primary-green);
    box-shadow: 0 0 10px var(--primary-green);
}

/* --- STATS GRID --- */
.wizard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 20px;
    width: 100%;
}

.stat-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(9, 245, 48, 0.4);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-green);
    box-shadow: var(--neon-glow);
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2rem;
    color: var(--primary-green);
    display: block;
}

/* --- RECRUITMENT & NEWS --- */
.recruitment-banner {
    border: 1px solid var(--plasma-orange);
    padding: 30px;
    text-align: center;
    background: rgba(10, 5, 0, 0.7);
    box-shadow: var(--orange-glow);
    box-sizing: border-box; /* Prevents padding from pushing width past 100% */
    width: 100%;
}

/* --- FIXING THE LINKS (JOIN THE CHESS LEGION) --- */
.recruit-buttons .btn {
    font-family: "Georgia", serif !important;
    font-weight: bold !important;
    text-decoration: none !important;
    display: inline-block;
}

.recruit-btn {
    background: #ff0000 !important; /* Solid High-Vis Red like your example */
    color: #ffffff !important;
    border: 1px solid #7a0000 !important;
    padding: 10px 25px !important;
}

.learn-btn {
    color: #ffffff !important;
    text-decoration: underline !important;
    background: transparent !important;
    margin-left: 20px;
}

.news-section {
    width: 100%;
    box-sizing: border-box; /* Prevents padding from pushing width past 100% */
}

.news-section h2, 
.academy-gateway h2,
.live-challenges h2 {
    text-align: center !important;
    font-family: "Georgia", "Times New Roman", serif !important; /* Fixed Serif Font */
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 4px !important;
    margin-bottom: 50px !important;
    position: relative !important;
    padding-bottom: 15px !important;
    width: 100% !important;
    color: var(--strobe-white) !important;
}

/* THE UNDERLINE: Echoing the top horizontal line style */
.news-section h2::after, 
.academy-gateway h2::after,
.live-challenges h2::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60% !important; /* Matches the top horizontal line width */
    height: 2px !important;
    background: var(--primary-green) !important; /* Neon Green */
    box-shadow: var(--neon-glow) !important; /* Plasma Aura */
}
.news-item {
    border-left: 3px solid var(--primary-green);
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    padding: 15px;
    font-weight: bold !important;
    color: var(--primary-green) !important;
    font-size: 0.8rem !important;
}

.news-item h3 {
    font-size: 1.4rem !important;
    margin-bottom: 5px !important;
}

.news-item p {
    font-weight: 500 !important; /* Slightly heavier than standard text */
    font-size: 1rem !important;
}

/* --- ACADEMY GRID --- */

.academy-gateway {
    width: 100%;
    box-sizing: border-box; /* Prevents padding from pushing width past 100% */
}

.academy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 20px;
    width: 100%;
}

.academy-card {
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
    background: rgba(0,0,0,0.6);
}

.academy-card:hover {
    border-color: var(--primary-green);
}

.live-challenges {
    width: 100%;
    box-sizing: border-box; /* Prevents padding from pushing width past 100% */
}

.challenge-list {
    display: grid !important;
    /* Use 1fr to ensure boxes stretch to fill all available horizontal space */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 20px;
    width: 100%;
}

/* Faction-specific glows */
.underline-green::after {
    background: var(--primary-green) !important;
    box-shadow: var(--neon-glow) !important;
}

.underline-orange::after {
    background: var(--plasma-orange) !important;
    box-shadow: var(--orange-glow) !important;
}

.faction-black .stat-card {
    border-color: var(--plasma-orange) !important;
}

.faction-black .stat-card:hover {
    box-shadow: var(--orange-glow) !important;
}

@keyframes level-up-pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.02); opacity: 1; }
}

/* 🔓 TERMINAL OVERRIDE - UNLOCK SCROLL */
.terminal-main-frame {
    /* Remove the fixed height that was meant for the news terminal */
    height: auto !important; 
    max-height: none !important;
    min-height: 100vh;
    width: 95% !important; /* Ensure full width */
    display: flex;
    flex-direction: column; /* Stack children vertically */
    background: transparent !important; /* Transparent background for full scroll */
    /* Ensure the browser allows vertical scrolling */
    overflow-y: visible !important; 
    overflow-x: hidden;
}

.wizard-hall {
    /* Ensure the container itself doesn't trap the scroll */
    overflow: visible !important;
    /* Add a buffer so the last "Live Challenge" doesn't hit the footer */
    padding-bottom: 80px !important; 
}

/* 🔓 HUD CONTAINER SCROLL FIX */
.terminal-main-frame {
    height: auto !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: visible !important; /* Fixes the scrolling cutoff */
    background: transparent !important;
}

.wizard-hall {
    width: 100% !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 🟢 Force Content Visibility */
.wizard-hall > * {
    opacity: 1 !important;
    visibility: visible !important;
}


/* ===== LIVE CHALLENGES — card grid (image + contained body) ===== */
.live-challenges {
    width: 100%;
    box-sizing: border-box;
}

.live-challenges h2 {
    margin-bottom: 1rem;
}

.challenge-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1.25rem;
    width: 100%;
    align-items: stretch;
}

.challenge-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0, 255, 100, 0.25) !important;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.55);
    overflow: hidden;
    padding: 0 !important;
    margin-top: 0 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.challenge-card:hover {
    border-color: var(--primary-green, #00ff66) !important;
    box-shadow: 0 0 12px rgba(0, 255, 100, 0.15);
}

/* Image / media slot */
.challenge-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background:
        linear-gradient(145deg, rgba(0, 40, 20, 0.9), rgba(0, 0, 0, 0.85)),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 100, 0.03) 2px,
            rgba(0, 255, 100, 0.03) 4px
        );
    border-bottom: 1px solid rgba(0, 255, 100, 0.15);
    overflow: hidden;
    flex-shrink: 0;
}

.challenge-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.challenge-media-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.35rem;
    color: rgba(0, 255, 120, 0.45);
    font-family: "Courier New", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.challenge-media-placeholder .ph-icon {
    font-size: 1.75rem;
    opacity: 0.7;
}

/* Body */
.challenge-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.9rem 1rem 1rem;
    box-sizing: border-box;
}

.challenge-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.challenge-card h3 a {
    color: var(--primary-green, #00ff88);
    text-decoration: none;
}

.challenge-card h3 a:hover {
    text-decoration: underline;
}

.challenge-summary {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: rgba(200, 230, 200, 0.85);
    /* Clamp long text so cards stay even */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    flex: 0 1 auto;
}

.challenge-summary ul {
    margin: 0.25rem 0 0 1rem;
    padding: 0;
}

.challenge-progress {
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(0, 255, 100, 0.12);
    font-size: 0.75rem;
    color: rgba(180, 220, 180, 0.9);
}

.challenge-progress > span:first-child {
    display: block;
    margin-bottom: 0.35rem;
}

.challenge-card .xp-bar {
    width: 100%;
    height: 8px;
    margin: 0.25rem 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    overflow: hidden;
}

.challenge-card .xp-progress {
    height: 100%;
    background: var(--primary-green, #00ff66);
    border-radius: 2px;
}

.challenge-card .xp-text {
    margin: 0.25rem 0 0.35rem;
    font-size: 0.72rem;
    opacity: 0.85;
}

.challenge-reward {
    display: inline-block;
    color: var(--plasma-orange, #ffaa00);
    font-weight: bold;
    font-size: 0.78rem;
}

@media (max-width: 640px) {
    .challenge-list {
        grid-template-columns: 1fr !important;
    }
}

/* Challenge media montage (1–3 tiles) */
.challenge-media.montage {
    display: grid;
    gap: 2px;
    background: #001100;
}
.challenge-media.montage-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}
.challenge-media.montage-3 {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 1fr 1fr;
}
.challenge-media.montage-3 img:first-child {
    grid-row: 1 / span 2;
}
.challenge-media.montage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 0;
}


/* =========================================================
   v0.37 Arena pulse + activity feed (CRT stays in main_theme)
   ========================================================= */
.arena-pulse {
    margin: 0 0 1.75rem;
    padding: 1.1rem 1.15rem 1rem;
    border: 1px solid rgba(9, 245, 48, 0.35);
    box-shadow: 0 0 18px rgba(9, 245, 48, 0.08), inset 0 0 40px rgba(0, 40, 20, 0.35);
    background:
        linear-gradient(180deg, rgba(0, 24, 12, 0.75), rgba(0, 0, 0, 0.72)),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 100, 0.02) 2px,
            rgba(0, 255, 100, 0.02) 4px
        );
    font-family: var(--crt-font, "Courier New", monospace);
}

.arena-pulse-head {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.arena-kicker {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: rgba(9, 245, 48, 0.75);
    margin-bottom: 0.35rem;
}

.arena-title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.35rem, 3.5vw, 2rem);
    letter-spacing: 0.12em;
    color: #fff;
    text-shadow: 0 0 10px rgba(9, 245, 48, 0.55);
}

.arena-sub {
    margin: 0;
    max-width: 36rem;
    color: #9a9a9a;
    font-size: 0.88rem;
    line-height: 1.45;
}

.arena-cta-col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    min-width: 11rem;
}

.arena-play-btn {
    display: inline-block;
    text-align: center;
    padding: 0.75rem 1.1rem !important;
    background: #09f530 !important;
    color: #000 !important;
    border: 1px solid #09f530 !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em;
    text-shadow: none !important;
    box-shadow: 0 0 16px rgba(9, 245, 48, 0.45);
}

.arena-play-btn:hover {
    background: #fff !important;
    color: #000 !important;
    box-shadow: 0 0 24px rgba(9, 245, 48, 0.7);
}

.arena-mobile-btn {
    display: inline-block;
    text-align: center;
    padding: 0.45rem 0.8rem !important;
    border: 1px solid rgba(9, 245, 48, 0.5) !important;
    color: var(--primary-green, #09f530) !important;
    background: transparent !important;
    font-size: 0.8rem !important;
}

.arena-live-meta {
    margin: 0.25rem 0 0;
    font-size: 0.72rem;
    color: #6a6a6a;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #09f530;
    box-shadow: 0 0 8px #09f530;
    animation: live-pulse 1.4s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

.activity-feed-shell {
    border: 1px solid rgba(9, 245, 48, 0.22);
    background: rgba(0, 0, 0, 0.55);
}

.activity-feed-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    padding: 0.45rem 0.7rem;
    border-bottom: 1px solid rgba(9, 245, 48, 0.18);
    background: rgba(0, 30, 15, 0.5);
}

.feed-label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: #09f530;
    font-weight: bold;
}

.feed-hint {
    font-size: 0.68rem;
    color: #555;
    letter-spacing: 0.04em;
}

.activity-feed {
    max-height: min(42vh, 380px);
    overflow-y: auto;
    padding: 0.25rem 0;
    scrollbar-width: thin;
    scrollbar-color: #09f530 #111;
}

.feed-item {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    grid-template-rows: auto auto;
    gap: 0.15rem 0.65rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(9, 245, 48, 0.08);
    animation: feed-in 0.35s ease-out;
}

.feed-item:hover {
    background: rgba(9, 245, 48, 0.04);
}

@keyframes feed-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.feed-kind {
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(9, 245, 48, 0.65);
    border: 1px solid rgba(9, 245, 48, 0.25);
    padding: 0.35rem 0.3rem;
    text-align: center;
    line-height: 1.2;
}

.feed-item.feed-checkmate .feed-kind {
    color: #ff6b6b;
    border-color: rgba(255, 80, 80, 0.4);
}

.feed-item.feed-game_start .feed-kind {
    color: #7dffb3;
}

.feed-text {
    color: #d0d0d0;
    font-size: 0.86rem;
    line-height: 1.35;
}

.feed-actors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.feed-actor {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.35rem;
    border: 1px solid #333;
    color: #888;
}

.feed-actor.is-ai {
    border-color: rgba(9, 245, 48, 0.35);
    color: rgba(9, 245, 48, 0.85);
}

.feed-actor.is-human {
    border-color: rgba(255, 200, 80, 0.4);
    color: #e8c56a;
}

.feed-item.is-new {
    box-shadow: inset 3px 0 0 #09f530;
}

@media (max-width: 640px) {
    .feed-item {
        grid-template-columns: 5rem 1fr;
    }
    .arena-cta-col {
        width: 100%;
    }
}


/* v0.38 home rails + blog hub */
.home-rails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
  margin: 0 0 1.5rem;
}
.home-rail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(9, 245, 48, 0.28);
  background: rgba(0, 0, 0, 0.45);
  color: #bcbcbc !important;
  text-decoration: none !important;
  font-family: var(--crt-font, "Courier New", monospace);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.home-rail:hover {
  border-color: #09f530;
  box-shadow: 0 0 12px rgba(9, 245, 48, 0.2);
  color: #fff !important;
}
.home-rail .rail-k {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #09f530;
  font-weight: bold;
}
.home-rail .rail-v {
  font-size: 0.8rem;
  color: #888;
}
.blog-hub-head {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(9, 245, 48, 0.25);
}
.blog-hub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin: 0 0 1.25rem;
  font-family: var(--crt-font, "Courier New", monospace);
}
.blog-hub-tabs a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}


/* ── v0.39 Feed-first + RPG hero profiles ── */
.forge-home { margin: 0 0 2rem; }
.forge-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1rem 1.25rem;
  align-items: start;
}
@media (max-width: 900px) {
  .forge-home-grid { grid-template-columns: 1fr; }
}
.forge-feed-title { margin: 0.2rem 0 0.5rem; }
.forge-feed-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 1rem; }
.forge-feed-shell { min-height: 420px; }
.forge-home-side { display: flex; flex-direction: column; gap: 0.75rem; }
.hero-side-card, .leader-board-card, .hero-stat-panel {
  border: 1px solid rgba(9, 245, 48, 0.28);
  background: rgba(0, 0, 0, 0.55);
  font-family: var(--crt-font, "Courier New", monospace);
}
.hero-side-card { padding: 0.85rem; display: flex; gap: 0.75rem; align-items: flex-start; }
.hero-side-card.guest { display: block; }
.hero-guest-copy { color: #9a9a9a; font-size: 0.85rem; line-height: 1.4; }
.hero-avatar-frame {
  position: relative;
  width: 64px; height: 64px;
  flex-shrink: 0;
  border: 2px solid #09f530;
  box-shadow: 0 0 12px rgba(9, 245, 48, 0.35);
  background: #0a0a0a;
}
.hero-avatar-frame.xl { width: 112px; height: 112px; }
.hero-avatar-frame.frame-bronze { border-color: #cd7f32; box-shadow: 0 0 14px rgba(205,127,50,0.45); }
.hero-avatar-frame.frame-silver { border-color: #c0c0c0; box-shadow: 0 0 14px rgba(192,192,192,0.4); }
.hero-avatar-frame.frame-gold { border-color: #ffd700; box-shadow: 0 0 16px rgba(255,215,0,0.5); }
.hero-avatar-frame.frame-mythic { border-color: #ff4ecd; box-shadow: 0 0 18px rgba(255,78,205,0.55); }
.hero-avatar-core {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: bold; color: #09f530;
  background: radial-gradient(circle at 30% 30%, #1a3d2c, #050505);
}
.hero-avatar-frame.xl .hero-avatar-core { font-size: 2.6rem; }
.hero-trophy-wear {
  position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  display: flex; gap: 2px; pointer-events: none;
}
.trophy-chip {
  font-size: 0.7rem; line-height: 1;
  color: #09f530;
  text-shadow: 0 0 6px currentColor;
}
.trophy-chip.tier-2 { color: #cd7f32; }
.trophy-chip.tier-3 { color: #c0c0c0; }
.trophy-chip.tier-4 { color: #ffd700; }
.trophy-chip.tier-5 { color: #ff4ecd; }
.hero-name { color: #09f530 !important; font-weight: bold; font-size: 1rem; }
.hero-title { color: #8a8a8a; font-size: 0.78rem; margin: 0.2rem 0 0.45rem; letter-spacing: 0.04em; }
.xp-meter {
  height: 8px; background: #111; border: 1px solid rgba(9,245,48,0.35);
  overflow: hidden; position: relative;
}
.xp-meter.lg { height: 12px; margin-top: 0.5rem; }
.xp-meter-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #0a5, #09f530, #9f6);
  box-shadow: 0 0 8px rgba(9,245,48,0.6);
  transition: width 0.4s ease;
}
.xp-meter-label { font-size: 0.68rem; color: #666; margin-top: 0.25rem; }
.hero-mini-stats { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.45rem; font-size: 0.72rem; color: #8a8a8a; }
.leader-list { list-style: none; margin: 0; padding: 0.35rem 0.6rem 0.6rem; }
.leader-list li { display: flex; gap: 0.4rem; align-items: baseline; padding: 0.28rem 0; border-bottom: 1px solid rgba(9,245,48,0.08); font-size: 0.82rem; }
.lb-rank { color: #09f530; width: 1.6rem; }
.lb-lv { margin-left: auto; color: #666; font-size: 0.72rem; }
.lb-empty { color: #555; font-size: 0.8rem; padding: 0.5rem; }
.home-rails.compact { margin: 0; }
.feed-user-link { color: #09f530 !important; text-decoration: none !important; }
.feed-item.feed-level_up .feed-kind { color: #ffd700; border-color: rgba(255,215,0,0.45); }
.feed-item.feed-loot .feed-kind { color: #7dffb3; }

/* profile */
.hero-profile-banner {
  display: flex; flex-wrap: wrap; gap: 1rem 1.25rem;
  align-items: flex-end;
  padding: 1rem 0 1.25rem;
  border-bottom: 1px solid rgba(9,245,48,0.25);
  margin-bottom: 1rem;
}
.hero-profile-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; margin-top: 0.65rem; }
.hero-bio { color: #9a9a9a; font-size: 0.9rem; max-width: 36rem; }
.stat-grid-rpg {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
  padding: 0.65rem;
}
.stat-grid-rpg .s-n { display: block; font-size: 1.15rem; color: #09f530; font-weight: bold; }
.stat-grid-rpg .s-l { font-size: 0.65rem; color: #666; letter-spacing: 0.08em; text-transform: uppercase; }
.trophy-list { list-style: none; margin: 0; padding: 0.5rem 0.7rem 0.7rem; font-size: 0.82rem; }
.trophy-list li { padding: 0.3rem 0; border-bottom: 1px solid rgba(9,245,48,0.08); color: #bcbcbc; }


/* Endless feed preview */
.forge-feed-shell .activity-feed,
.activity-feed-shell .activity-feed {
  max-height: min(70vh, 720px) !important;
}
.feed-scroll-sentinel {
  padding: 1rem 0.75rem 1.25rem;
  text-align: center;
  border-top: 1px dashed rgba(9, 245, 48, 0.15);
}
.feed-load-hint {
  font-family: var(--crt-font, "Courier New", monospace);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #555;
}
.feed-scroll-sentinel.is-loading .feed-load-hint {
  color: #09f530;
  animation: live-pulse 1s ease-in-out infinite;
}


/* ── v0.40 Social post stream (X-style, forge skin) ── */
.post-composer {
  border: 1px solid rgba(9, 245, 48, 0.35);
  background: rgba(0, 12, 6, 0.75);
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  font-family: var(--crt-font, "Courier New", monospace);
}
.post-composer-who {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: #8a8a8a; margin-bottom: 0.5rem;
}
.hero-avatar-core.mini {
  width: 28px; height: 28px; font-size: 0.85rem;
  border: 1px solid #09f530; display: inline-flex;
  align-items: center; justify-content: center;
}
.post-composer-input {
  width: 100%; box-sizing: border-box;
  background: #050505; color: #e0e0e0;
  border: 1px solid rgba(9, 245, 48, 0.25);
  padding: 0.65rem 0.75rem;
  font-family: inherit; font-size: 0.95rem; line-height: 1.4;
  resize: vertical; min-height: 4.5rem;
}
.post-composer-input:focus {
  outline: none; border-color: #09f530;
  box-shadow: 0 0 0 1px rgba(9, 245, 48, 0.3);
}
.post-composer-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.5rem; gap: 0.75rem;
}
.post-composer-count { font-size: 0.72rem; color: #555; }
.post-composer-status { font-size: 0.78rem; color: #09f530; margin: 0.4rem 0 0; }
.post-composer-guest {
  margin: 0; color: #9a9a9a; font-size: 0.9rem; line-height: 1.45;
}

.social-stream-shell {
  border: 1px solid rgba(9, 245, 48, 0.28);
  background: rgba(0, 0, 0, 0.5);
}
.social-stream { min-height: 200px; }

.social-post {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.65rem 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(9, 245, 48, 0.1);
  font-family: var(--crt-font, "Courier New", monospace);
  animation: feed-in 0.3s ease-out;
}
.social-post:hover { background: rgba(9, 245, 48, 0.03); }
.social-post.is-new { box-shadow: inset 3px 0 0 #09f530; }
.social-post-avatar {
  width: 44px; height: 44px;
  border: 1px solid rgba(9, 245, 48, 0.45);
  display: flex; align-items: center; justify-content: center;
  color: #09f530; font-weight: bold; font-size: 1.1rem;
  background: radial-gradient(circle at 30% 30%, #143d28, #050505);
}
.social-post-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.65rem;
  margin-bottom: 0.35rem;
}
.social-post-user {
  color: #09f530 !important; font-weight: bold; text-decoration: none !important;
  font-size: 0.92rem;
}
.social-post-user:hover { text-shadow: 0 0 8px rgba(9, 245, 48, 0.5); }
.social-post-badge {
  font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #666; border: 1px solid #333; padding: 0.05rem 0.3rem;
}
.social-post-time { font-size: 0.72rem; color: #555; margin-left: auto; }
.social-post-text {
  margin: 0; color: #d4d4d4; font-size: 0.95rem; line-height: 1.45;
  white-space: pre-wrap; word-break: break-word;
}
.side-ticker .activity-feed { max-height: 280px !important; }
.social-stream-shell .feed-scroll-sentinel { border-top: 1px dashed rgba(9,245,48,0.15); }


/* ── v0.40.1 Dual columns: stream 1/3 · arena 2/3 ── */
.forge-home.dual-col-home {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 220px);
}
.dual-col-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.85rem;
  flex: 0 0 auto;
}
.forge-dual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); /* 1/3 · 2/3 */
  gap: 0.85rem 1rem;
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}
.forge-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.forge-col-stream {
  /* 1/3 */
}
.forge-col-arena {
  /* 2/3 */
}
.dual-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(9, 245, 48, 0.3);
  background: rgba(0, 0, 0, 0.55);
}
.forge-col-stream .post-composer {
  flex: 0 0 auto;
  margin-bottom: 0.65rem;
}
.social-stream.dual-scroll,
.activity-feed.dual-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #09f530 #111;
}
.social-stream-shell.dual-panel {
  /* shell already dual-panel */
}
.social-stream-shell.dual-panel .social-stream {
  /* fill remaining after header + sentinel */
}
.dual-panel > .activity-feed-header {
  flex: 0 0 auto;
}
.dual-panel > .feed-scroll-sentinel {
  flex: 0 0 auto;
}
.arena-ticker-panel {
  flex: 1 1 auto;
}
.arena-col-top {
  flex: 0 0 auto;
  margin-bottom: 0.65rem;
}
.hero-side-card.compact-hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
}
.hero-side-card.compact-hero .hero-side-meta {
  flex: 1 1 auto;
  min-width: 0;
}
.arena-col-play {
  flex: 0 0 auto;
  padding: 0.5rem 0.85rem !important;
  white-space: nowrap;
}
/* taller columns on desktop */
@media (min-width: 901px) {
  .forge-home.dual-col-home {
    min-height: calc(100vh - 180px);
  }
  .forge-dual-grid {
    min-height: calc(100vh - 280px);
  }
  .dual-scroll {
    /* explicit height so both columns scroll independently full page */
    max-height: none !important;
  }
}
@media (max-width: 900px) {
  .forge-dual-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .forge-col-stream .dual-panel,
  .forge-col-arena .dual-panel {
    min-height: 50vh;
  }
  .social-stream.dual-scroll,
  .activity-feed.dual-scroll {
    max-height: 55vh !important;
  }
}


/* Detected bot shelf */
.bot-shelf-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  border: 1px solid #ff4ecd;
  color: #ff4ecd;
  background: rgba(255, 78, 205, 0.1);
  vertical-align: middle;
}
.hero-elo-line {
  margin: 0.35rem 0;
  font-family: var(--crt-font, "Courier New", monospace);
  font-size: 0.9rem;
  color: #9a9a9a;
}
.hero-elo-line strong { color: #09f530; }
