/* ==========================================================================
   ROYALWARS — CONQUEST MASTER THEME (css/rw_conquest.css)
   Pixel-perfect implementation of the Royal Medieval Conquest visual design:
   - Ornate dark bronze & stone aesthetic
   - Metallic gold engraved typography (Cinzel)
   - Beveled metallic navigation buttons with icons
   - 4-card stone gallery (Game, Speed Rounds, Help, Hall of Fame)
   - Statistics accolade bar (Registered Players, Battles, Hall of Fame)
   - Authentic dark stone & gold filigree cards for Login/Register/Codex
   ========================================================================== */

:root {
    --rw-gold-100: #fff6d9;
    --rw-gold-200: #fae19c;
    --rw-gold-300: #e8c060;
    --rw-gold-400: #c99330;
    --rw-gold-500: #a3711d;
    --rw-gold-600: #78500f;
    --rw-gold-border: #ffd577;

    --rw-crimson-100: #ff6b6b;
    --rw-crimson-300: #cc2929;
    --rw-crimson-500: #8f1717;
    --rw-crimson-700: #540b0b;

    --rw-stone-900: #080605;
    --rw-stone-800: #100c09;
    --rw-stone-750: #17120e;
    --rw-stone-700: #201a14;
    --rw-stone-600: #2c231a;
    --rw-stone-500: #3d3124;
    --rw-stone-400: #594735;
    --rw-stone-300: #7d654c;
    --rw-stone-200: #aa9378;
    --rw-stone-100: #d6c8b4;

    --rw-font-display: 'Cinzel', 'Cinzel Decorative', Georgia, serif;
    --rw-font-body: 'Archivo', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ─── Global Reset & Body ────────────────────────────────────────── */
body.codex,
body.rw-conquest-body {
    margin: 0;
    padding: 0;
    background-color: var(--rw-stone-900);
    color: var(--rw-stone-100);
    font-family: var(--rw-font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ─── Master Page Wrapper ─────────────────────────────────────────── */
.rw-page-shell {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--rw-stone-900) url('../graphic/index/wardawn_portal_wide.webp') no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
}

/* Ambient dark vignette over backdrop */
.rw-backdrop-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle at 50% 30%, transparent 20%, rgba(8,6,5,0.7) 70%, rgba(8,6,5,0.95) 100%);
}

/* ─── TOPBAR NAVIGATION (1:1 with reference image) ─────────────────── */
.rw-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: linear-gradient(180deg, rgba(28,21,15,0.98) 0%, rgba(16,12,9,0.96) 100%);
    border-bottom: 2px solid #3d2f20;
    box-shadow: 
        0 8px 30px rgba(0,0,0,0.85),
        inset 0 1px 0 rgba(255,220,130,0.2),
        inset 0 -1px 0 rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
}

.rw-topbar-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

/* Brand */
.rw-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.rw-brand-crest {
    width: 36px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.8));
    transition: transform 0.2s ease;
}

.rw-brand:hover .rw-brand-crest {
    transform: scale(1.05);
}

.rw-brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.rw-brand-title {
    font-family: var(--rw-font-display);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #f7e7ce;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
    line-height: 1.1;
}

.rw-brand-tagline {
    font-family: var(--rw-font-body);
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--rw-gold-400);
    text-transform: uppercase;
}

/* Center Nav Group (Beveled Metallic Buttons with Icons) */
.rw-nav-center {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.rw-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: linear-gradient(180deg, #2a2016 0%, #16110c 100%);
    border: 1px solid #4a3824;
    border-radius: 4px;
    color: #cfbfab;
    font-family: var(--rw-font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 
        0 2px 6px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,225,150,0.12),
        inset 0 -1px 0 rgba(0,0,0,0.6);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.rw-nav-btn i {
    font-size: 10px;
    color: var(--rw-gold-300);
    transition: transform 0.2s ease, color 0.2s ease;
}

.rw-nav-btn:hover {
    background: linear-gradient(180deg, #382c1f 0%, #1f1711 100%);
    border-color: var(--rw-gold-400);
    color: #fff;
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.7),
        0 0 12px rgba(201,147,48,0.25),
        inset 0 1px 0 rgba(255,235,175,0.25);
    transform: translateY(-1px);
}

.rw-nav-btn:hover i {
    color: var(--rw-gold-200);
    transform: scale(1.15);
}

.rw-nav-btn.active {
    background: linear-gradient(180deg, #3d2d1b 0%, #20170d 100%);
    border-color: var(--rw-gold-300);
    color: var(--rw-gold-100);
    box-shadow: 
        0 0 14px rgba(232,192,96,0.3),
        inset 0 1px 0 rgba(255,240,190,0.3);
}

.rw-nav-btn.active i {
    color: var(--rw-gold-100);
}

/* Right Nav Group (Login / Register / Lang) */
.rw-nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Login Button (Dark Stone Bevel) */
.rw-btn-login {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: linear-gradient(180deg, #292017 0%, #17120d 100%);
    border: 1px solid #4d3a24;
    border-radius: 4px;
    color: #e4d6c2;
    font-family: var(--rw-font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,225,150,0.15);
    transition: all 0.2s ease;
}

.rw-btn-login i {
    font-size: 10px;
    color: var(--rw-gold-300);
}

.rw-btn-login:hover {
    background: linear-gradient(180deg, #362a1e 0%, #201710 100%);
    border-color: var(--rw-gold-border);
    color: #fff;
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.7),
        0 0 10px rgba(201,147,48,0.3);
    transform: translateY(-1px);
}

/* Register Button (Radiant Golden Metallic Glow) */
.rw-btn-register {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: linear-gradient(180deg, #fae29e 0%, #d6a13d 50%, #9e6f1a 100%);
    border: 1px solid #ffe9a6;
    border-radius: 4px;
    color: #1a1003;
    font-family: var(--rw-font-display);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 
        0 4px 16px rgba(0,0,0,0.7),
        0 0 12px rgba(232,192,96,0.4),
        inset 0 1px 0 rgba(255,255,255,0.7),
        inset 0 -1px 0 rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.rw-btn-register i {
    font-size: 10px;
    color: #2b1a03;
}

.rw-btn-register:hover {
    background: linear-gradient(180deg, #fff0bc 0%, #e6b34d 50%, #b38024 100%);
    box-shadow: 
        0 6px 20px rgba(0,0,0,0.8),
        0 0 24px rgba(250,225,156,0.65),
        inset 0 1px 0 rgba(255,255,255,0.9);
    transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.rw-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #4a3824;
    color: var(--rw-gold-300);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

/* ─── HERO STAGE (1:1 with reference image) ────────────────────────── */
.rw-hero-section {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 36px 32px 30px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

/* Left Hero Content */
.rw-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-left: 10px;
}

.rw-crown-badge {
    font-size: 20px;
    color: var(--rw-gold-300);
    filter: drop-shadow(0 0 12px rgba(232,192,96,0.6));
    margin-bottom: -4px;
}

.rw-hero-title {
    margin: 0;
    font-family: var(--rw-font-display);
    font-size: clamp(32px, 4.2vw, 54px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 2px;
    color: #f7eade;
    text-transform: uppercase;
    text-shadow: 
        0 4px 18px rgba(0,0,0,0.95),
        0 2px 4px rgba(0,0,0,0.8);
}

.rw-hero-title-gold {
    display: block;
    background: linear-gradient(180deg, #fff1c4 0%, #e0ab46 50%, #a8721c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.9));
}

.rw-hero-desc {
    margin: 0;
    max-width: 480px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #c9b9a3;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}

/* CTA Button: "JOIN THE BATTLE >" */
.rw-btn-battle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    margin-top: 8px;
    background: linear-gradient(180deg, #fae29e 0%, #cb9430 50%, #8c6014 100%);
    border: 2px solid #ffe8a3;
    border-radius: 4px;
    color: #160e03;
    font-family: var(--rw-font-display);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 
        0 6px 24px rgba(0,0,0,0.85),
        0 0 22px rgba(232,192,96,0.45),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.25s ease;
    cursor: pointer;
}

.rw-btn-battle i {
    font-size: 15px;
    color: #2b1802;
    transition: transform 0.2s ease;
}

.rw-btn-battle:hover {
    background: linear-gradient(180deg, #fff3c9 0%, #dea83e 50%, #a6741b 100%);
    box-shadow: 
        0 8px 30px rgba(0,0,0,0.9),
        0 0 32px rgba(250,225,156,0.7),
        inset 0 1px 0 rgba(255,255,255,0.95);
    transform: translateY(-2px);
}

.rw-btn-battle:hover i {
    transform: rotate(15deg) scale(1.15);
}

/* ─── AUTH CARD ("LOGIN TO YOUR ACCOUNT") ─────────────────────────── */
.rw-auth-box {
    width: 100%;
    max-width: 410px;
    justify-self: end;
    background: linear-gradient(180deg, rgba(28,21,15,0.96) 0%, rgba(18,13,9,0.98) 100%);
    border: 1px solid #4a3824;
    border-radius: 6px;
    padding: 24px 26px 22px;
    box-sizing: border-box;
    box-shadow: 
        0 24px 60px rgba(0,0,0,0.9),
        0 0 30px rgba(0,0,0,0.6),
        inset 0 0 0 1px rgba(232,192,96,0.2),
        inset 0 1px 0 rgba(255,235,175,0.15);
    position: relative;
}

/* Ornamental corner rivets / studs */
.rw-auth-box::before,
.rw-auth-box::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e8c060;
    box-shadow: inset 0 1px 1px #fff, 0 1px 2px #000;
}
.rw-auth-box::before { top: 8px; left: 8px; }
.rw-auth-box::after { top: 8px; right: 8px; }

.rw-auth-header {
    text-align: left;
    margin-bottom: 14px;
}

/* Auth eyebrow — "CONTINUE WHERE YOU LEFT OFF" */
.rw-auth-eyebrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--rw-font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--rw-gold-400);
    text-transform: uppercase;
}

.rw-auth-title {
    margin: 0;
    font-family: var(--rw-font-display);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2.2px;
    color: var(--rw-gold-200);
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.rw-auth-sub {
    margin: 4px 0 0;
    font-size: 11.5px;
    color: var(--rw-stone-300);
}

/* ─── WARDAWN-STYLE WORLD CARD (WarDawn "continue" row layout) ──── */
.rw-world-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #0d0a07 0%, #110d09 100%);
    border: 1px solid #3d2f20;
    border-radius: 5px;
    padding: 12px 14px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.rw-world-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 90px;
}

.rw-world-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #2a1e0e 0%, #160e06 100%);
    border: 1px solid var(--rw-gold-500);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rw-world-icon i {
    font-size: 15px;
    color: var(--rw-gold-300);
}

.rw-world-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rw-world-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--rw-font-display);
    font-size: 13px;
    font-weight: 700;
    color: #f0e2c8;
    text-transform: uppercase;
}

.rw-world-badge {
    background: rgba(232,192,96,0.15);
    border: 1px solid var(--rw-gold-500);
    color: var(--rw-gold-300);
    font-family: var(--rw-font-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
}

.rw-world-sub {
    font-size: 10.5px;
    color: var(--rw-stone-300);
}

/* Stats strip — VILLAGES / POINTS / RANK in a row */
.rw-world-stats {
    display: flex;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.rw-wstat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(0,0,0,0.4);
    border: 1px solid #2b2015;
    border-radius: 3px;
    padding: 6px 10px;
    min-width: 56px;
    text-align: center;
}

.rw-wstat-label {
    font-family: var(--rw-font-body);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--rw-stone-300);
    text-transform: uppercase;
}

.rw-wstat-val {
    font-family: var(--rw-font-display);
    font-size: 15px;
    font-weight: 700;
    color: #f0e2c8;
    line-height: 1;
}

/* Resume button — dark crimson like WarDawn */
.rw-btn-resume {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: linear-gradient(180deg, #cc2929 0%, #8f1717 100%);
    border: 1px solid #e03535;
    border-radius: 4px;
    color: #fff;
    font-family: var(--rw-font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(143,23,23,0.5);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.rw-btn-resume:hover {
    background: linear-gradient(180deg, #de3030 0%, #a01d1d 100%);
    box-shadow: 0 6px 20px rgba(204,41,41,0.6);
    transform: translateY(-1px);
    color: #fff;
}

/* Available worlds section */
.rw-available-worlds {
    margin-top: 10px;
    border-top: 1px solid #2b2015;
    padding-top: 10px;
}

.rw-avail-label {
    font-family: var(--rw-font-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--rw-gold-500);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.rw-avail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0e0b08;
    border: 1px solid #2b2015;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 6px;
}

.rw-avail-icon {
    width: 28px;
    height: 28px;
    background: rgba(232,192,96,0.08);
    border: 1px solid #3d2f20;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rw-avail-icon i {
    font-size: 12px;
    color: var(--rw-gold-400);
}

.rw-avail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.rw-avail-name {
    font-family: var(--rw-font-display);
    font-size: 12px;
    font-weight: 700;
    color: #f0e2c8;
}

.rw-avail-meta {
    font-size: 10px;
    color: var(--rw-stone-300);
}

.rw-btn-play {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: linear-gradient(180deg, #cc2929 0%, #8f1717 100%);
    border: 1px solid #e03535;
    border-radius: 4px;
    color: #fff;
    font-family: var(--rw-font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.rw-btn-play:hover {
    background: linear-gradient(180deg, #de3030 0%, #a01d1d 100%);
    color: #fff;
}

/* Form Groups & Inputs */
.rw-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.rw-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.rw-input-icon {
    position: absolute;
    left: 12px;
    font-size: 13px;
    color: var(--rw-gold-400);
    pointer-events: none;
    transition: color 0.2s ease;
}

.rw-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px 10px 36px;
    background: #0e0b08;
    border: 1px solid #3d2f20;
    border-radius: 4px;
    color: #f0e6d6;
    font-family: var(--rw-font-body);
    font-size: 13px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.7);
    transition: all 0.2s ease;
}

.rw-input:focus {
    outline: none;
    border-color: var(--rw-gold-300);
    box-shadow: 
        inset 0 2px 6px rgba(0,0,0,0.7),
        0 0 10px rgba(232,192,96,0.3);
    background: #140f0b;
}

.rw-input:focus + .rw-input-icon,
.rw-input-wrap:focus-within .rw-input-icon {
    color: var(--rw-gold-100);
}

.rw-pw-toggle {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--rw-stone-400);
    cursor: pointer;
    padding: 4px;
    font-size: 13px;
    transition: color 0.2s ease;
}

.rw-pw-toggle:hover {
    color: var(--rw-gold-300);
}

/* Remember Me Checkbox */
.rw-remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 16px;
    font-size: 12px;
    color: #a8947d;
    cursor: pointer;
    user-select: none;
}

.rw-remember-row input[type="checkbox"] {
    accent-color: var(--rw-gold-400);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* Action Button: "LOGIN >" */
.rw-btn-primary {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 20px;
    background: linear-gradient(180deg, #f7d683 0%, #c99330 50%, #875c12 100%);
    border: 1px solid #ffeaab;
    border-radius: 4px;
    color: #170e02;
    font-family: var(--rw-font-display);
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    box-shadow: 
        0 4px 16px rgba(0,0,0,0.75),
        0 0 16px rgba(201,147,48,0.4),
        inset 0 1px 0 rgba(255,255,255,0.7);
    transition: all 0.2s ease;
}

.rw-btn-primary:hover {
    background: linear-gradient(180deg, #fff0bc 0%, #dba743 50%, #9e6f1a 100%);
    box-shadow: 
        0 6px 20px rgba(0,0,0,0.85),
        0 0 24px rgba(250,225,156,0.65),
        inset 0 1px 0 rgba(255,255,255,0.9);
    transform: translateY(-1px);
}

/* Auth Links */
.rw-auth-footer-links {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    font-size: 11.5px;
}

.rw-auth-link {
    color: var(--rw-gold-300);
    text-decoration: none;
    transition: color 0.15s ease;
}

.rw-auth-link:hover {
    color: var(--rw-gold-100);
    text-decoration: underline;
}

.rw-auth-register-prompt {
    color: #8c7862;
    font-size: 11px;
}

.rw-auth-register-prompt a {
    color: var(--rw-gold-200);
    font-weight: 700;
    text-decoration: none;
}

.rw-auth-register-prompt a:hover {
    text-decoration: underline;
}

/* ─── 4 FEATURE CARDS GALLERY (1:1 with reference image) ──────────── */
.rw-gallery-section {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1320px;
    margin: 20px auto 0;
    padding: 0 32px;
    box-sizing: border-box;
}

.rw-gallery-frame {
    background: linear-gradient(180deg, rgba(22,17,12,0.95) 0%, rgba(13,10,7,0.97) 100%);
    border: 2px solid #4a3824;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.85),
        inset 0 0 0 1px rgba(232,192,96,0.15),
        inset 0 1px 0 rgba(255,235,175,0.12);
}

.rw-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Individual Card */
.rw-card {
    background: linear-gradient(180deg, #1b150f 0%, #100c08 100%);
    border: 1px solid #3d2f20;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 8px 20px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,225,150,0.1);
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.rw-card:hover {
    border-color: var(--rw-gold-border);
    box-shadow: 
        0 12px 28px rgba(0,0,0,0.8),
        0 0 18px rgba(201,147,48,0.3),
        inset 0 1px 0 rgba(255,235,175,0.25);
    transform: translateY(-3px);
}

.rw-card-thumb-wrap {
    width: 100%;
    height: 90px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #3d2f20;
}

.rw-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.rw-card:hover .rw-card-thumb {
    transform: scale(1.06);
}

.rw-card-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.rw-card-icon {
    font-size: 16px;
    color: var(--rw-gold-300);
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

.rw-card-title {
    margin: 0;
    font-family: var(--rw-font-display);
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #f7e8d0;
    text-transform: uppercase;
    line-height: 1.2;
}

.rw-card-desc {
    margin: 6px 0 14px;
    font-size: 11.5px;
    line-height: 1.45;
    color: #9e8972;
    flex: 1;
}

/* Card Beveled Button */
.rw-card-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 12px;
    background: linear-gradient(180deg, #2a2016 0%, #17110c 100%);
    border: 1px solid #4a3824;
    border-radius: 3px;
    color: #e0d0ba;
    font-family: var(--rw-font-display);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 
        0 2px 6px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,225,150,0.12);
    transition: all 0.2s ease;
}

.rw-card:hover .rw-card-btn {
    background: linear-gradient(180deg, #3d2f20 0%, #201710 100%);
    border-color: var(--rw-gold-300);
    color: var(--rw-gold-100);
    box-shadow: 0 0 10px rgba(201,147,48,0.3);
}

/* ─── STATISTICS & ACCOLADES STRIP (1:1 with reference image) ─────── */
.rw-stats-strip {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1320px;
    margin: 24px auto 0;
    padding: 0 32px;
    box-sizing: border-box;
}

.rw-stats-bar {
    background: linear-gradient(180deg, #1d1610 0%, #100c08 100%);
    border: 1px solid #3d2f20;
    border-radius: 4px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 
        0 8px 24px rgba(0,0,0,0.7),
        inset 0 1px 0 rgba(255,225,150,0.1);
}

.rw-stats-metrics {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.rw-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rw-stat-icon {
    font-size: 18px;
    color: var(--rw-gold-300);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

.rw-stat-text {
    display: flex;
    flex-direction: column;
}

.rw-stat-val {
    font-family: var(--rw-font-display);
    font-size: 15px;
    font-weight: 800;
    color: #f7e8d0;
    line-height: 1.1;
}

.rw-stat-lbl {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #8c7862;
    text-transform: uppercase;
}

.rw-stats-motto {
    font-family: var(--rw-font-display);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--rw-gold-300);
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

/* ─── FOOTER (1:1 with reference image) ───────────────────────────── */
.rw-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    margin-top: auto;
    padding: 24px 32px;
    background: #0a0705;
    border-top: 1px solid #2e2317;
    box-sizing: border-box;
}

.rw-footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.rw-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rw-footer-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.rw-footer-nav a {
    color: #8c7862;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.rw-footer-nav a:hover {
    color: var(--rw-gold-200);
}

.rw-footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rw-social-link {
    color: #9e8972;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

.rw-social-link:hover {
    color: var(--rw-gold-200);
    transform: scale(1.15);
}

.rw-community-tag {
    font-size: 11px;
    color: #6d5b49;
    margin-left: 6px;
}

/* ─── CODEX / CONTENT CONTAINER (FOR RULES, TEAM, HOF, GUEST) ──────── */
.rw-content-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1180px;
    margin: 32px auto 48px;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════════════════
   SPEED ROUNDS — CONQUEST MASTER SUITE (1:1 with reference image)
   ══════════════════════════════════════════════════════════════════════ */
.rw-sr-hero-grid {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 32px 24px 210px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: center;
}

.rw-sr-knight-wrap {
    position: absolute;
    left: 12px;
    bottom: 0;
    top: 10px;
    width: 195px;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: flex-end;
}

.rw-sr-knight-img {
    width: 100%;
    height: 100%;
    max-height: 290px;
    object-fit: cover;
    object-position: top center;
    border-radius: 4px;
    border: 1px solid rgba(232,192,96,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    mask-image: linear-gradient(180deg, black 75%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, black 75%, transparent 100%);
}

.rw-sr-hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.rw-sr-swords-icon {
    font-size: 26px;
    color: var(--rw-gold-300);
    filter: drop-shadow(0 0 10px rgba(232,192,96,0.6));
}

.rw-sr-hero-title {
    margin: 0;
    font-family: var(--rw-font-display);
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.05;
    background: linear-gradient(180deg, #fff7e0 0%, #ecd393 40%, #b88628 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 18px rgba(0,0,0,0.9);
    text-transform: uppercase;
}

.rw-sr-hero-sub {
    margin: 0;
    font-family: var(--rw-font-display);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--rw-gold-400);
    text-transform: uppercase;
}

.rw-sr-hero-p {
    margin: 4px 0 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #c4b49e;
    max-width: 500px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.rw-sr-btn-discover {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: linear-gradient(180deg, #fae29e 0%, #cb9430 50%, #8c6014 100%);
    border: 2px solid #ffe8a3;
    border-radius: 4px;
    color: #160e03;
    font-family: var(--rw-font-display);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 
        0 6px 20px rgba(0,0,0,0.8),
        0 0 20px rgba(232,192,96,0.4),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.2s ease;
    cursor: pointer;
}

.rw-sr-btn-discover:hover {
    background: linear-gradient(180deg, #fff2c4 0%, #e0ab44 50%, #9e6f1a 100%);
    box-shadow: 
        0 8px 24px rgba(0,0,0,0.9),
        0 0 28px rgba(250,225,156,0.6);
    transform: translateY(-2px);
    color: #160e03;
}

/* Right Feature Card Tablet */
.rw-sr-feature-card {
    background: linear-gradient(180deg, rgba(28,21,15,0.95) 0%, rgba(14,10,7,0.98) 100%);
    border: 1px solid #4a3824;
    border-radius: 6px;
    padding: 22px 24px;
    box-sizing: border-box;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.85),
        inset 0 0 0 1px rgba(232,192,96,0.18),
        inset 0 1px 0 rgba(255,235,175,0.15);
    position: relative;
    max-width: 420px;
    justify-self: end;
}

.rw-sr-feature-card::before,
.rw-sr-feature-card::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e8c060;
    box-shadow: inset 0 1px 1px #fff, 0 1px 2px #000;
}
.rw-sr-feature-card::before { top: 8px; left: 8px; }
.rw-sr-feature-card::after { top: 8px; right: 8px; }

.rw-sr-fitem {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.rw-sr-ficon {
    font-size: 20px;
    color: var(--rw-gold-300);
    flex-shrink: 0;
    width: 26px;
    text-align: center;
    margin-top: 2px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

.rw-sr-fbody {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rw-sr-ftitle {
    font-family: var(--rw-font-display);
    font-size: 13.5px;
    font-weight: 700;
    color: #f7e8d0;
    letter-spacing: 0.8px;
}

.rw-sr-fdesc {
    font-size: 11.5px;
    color: #a8947d;
    line-height: 1.4;
}

.rw-sr-fdivider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #4a3824, transparent);
    margin: 14px 0 12px;
    position: relative;
}

.rw-sr-fdivider::after {
    content: '◆';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: var(--rw-gold-400);
    background: #140f0b;
    padding: 0 4px;
}

.rw-sr-ftagline {
    font-family: var(--rw-font-display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.2px;
    color: var(--rw-gold-300);
    text-align: center;
    text-transform: uppercase;
}

/* ─── 5-PILLAR FEATURE STRIP ────────────────────────────────────────── */
.rw-sr-strip-section {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1320px;
    margin: 8px auto 28px;
    padding: 0 32px;
    box-sizing: border-box;
}

.rw-sr-strip-frame {
    background: linear-gradient(180deg, #1d1610 0%, #100c08 100%);
    border: 1px solid #4a3824;
    border-radius: 5px;
    padding: 16px 20px;
    box-shadow: 
        0 12px 36px rgba(0,0,0,0.8),
        inset 0 1px 0 rgba(255,225,150,0.12);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    gap: 0;
}

.rw-sr-pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px 12px;
    position: relative;
}

.rw-sr-pillar:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(180deg, transparent, #4a3824 30%, #a8721c 50%, #4a3824 70%, transparent);
}

.rw-sr-pillar-icon {
    font-size: 22px;
    color: var(--rw-gold-300);
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
    transition: transform 0.2s ease;
}

.rw-sr-pillar:hover .rw-sr-pillar-icon {
    transform: scale(1.15);
    color: var(--rw-gold-200);
}

.rw-sr-pillar-title {
    font-family: var(--rw-font-display);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #f7e8d0;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.rw-sr-pillar-sub {
    font-size: 11px;
    color: #8c7862;
    line-height: 1.3;
}

/* ─── ACTIVE SPEED ROUNDS SECTION ────────────────────────────────── */
.rw-sr-active-section {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto 36px;
    padding: 0 32px;
    box-sizing: border-box;
}

/* Section Header Plaque: "ACTIVE SPEED ROUNDS" */
.rw-sr-section-badge-wrap {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.rw-sr-section-badge-wrap::before {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4a3824 30%, #4a3824 70%, transparent);
    z-index: 1;
}

.rw-sr-section-badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #261d14 0%, #140e09 100%);
    border: 1px solid var(--rw-gold-500);
    border-radius: 4px;
    padding: 6px 24px;
    font-family: var(--rw-font-display);
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--rw-gold-200);
    text-transform: uppercase;
    box-shadow: 
        0 4px 16px rgba(0,0,0,0.8),
        inset 0 1px 0 rgba(255,225,150,0.2);
}

/* Main Split Grid (Featured Card + More Rounds Card) */
.rw-sr-active-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.95fr;
    gap: 24px;
    align-items: stretch;
}

/* Left Featured Card */
.rw-sr-featured-card {
    background: linear-gradient(180deg, rgba(28,21,15,0.96) 0%, rgba(14,10,7,0.98) 100%);
    border: 1px solid #4a3824;
    border-radius: 6px;
    padding: 20px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: center;
    box-shadow: 
        0 16px 40px rgba(0,0,0,0.85),
        inset 0 0 0 1px rgba(232,192,96,0.15),
        inset 0 1px 0 rgba(255,235,175,0.12);
}

.rw-sr-thumb-wrap {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #4a3824;
    box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    height: 100%;
    min-height: 140px;
}

.rw-sr-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.rw-sr-featured-card:hover .rw-sr-thumb-img {
    transform: scale(1.05);
}

/* Live Badge on thumb */
.rw-sr-live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    background: linear-gradient(180deg, #cc2929 0%, #8f1717 100%);
    border: 1px solid #e03535;
    border-radius: 3px;
    padding: 3px 8px;
    font-family: var(--rw-font-body);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.rw-sr-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: rwPulse 1.4s infinite;
}

@keyframes rwPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.rw-sr-featured-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rw-sr-round-title {
    margin: 0;
    font-family: var(--rw-font-display);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--rw-gold-200);
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.rw-sr-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.rw-sr-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #c4b49e;
}

.rw-sr-meta-pill i {
    color: var(--rw-gold-400);
    font-size: 12px;
}

.rw-sr-meta-pill strong {
    color: #fff;
    font-weight: 700;
}

.rw-sr-round-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #9e8972;
}

.rw-sr-btn-join {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 22px;
    background: linear-gradient(180deg, #fae29e 0%, #cb9430 50%, #8c6014 100%);
    border: 1px solid #ffe8a3;
    border-radius: 4px;
    color: #160e03;
    font-family: var(--rw-font-display);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 
        0 4px 14px rgba(0,0,0,0.7),
        0 0 12px rgba(232,192,96,0.3);
    transition: all 0.2s ease;
}

.rw-sr-btn-join:hover {
    background: linear-gradient(180deg, #fff2c4 0%, #e0ab44 50%, #9e6f1a 100%);
    transform: translateY(-1px);
    color: #160e03;
}

/* Right "More Speed Rounds" Box */
.rw-sr-more-card {
    background: linear-gradient(180deg, rgba(28,21,15,0.96) 0%, rgba(14,10,7,0.98) 100%);
    border: 1px solid #4a3824;
    border-radius: 6px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 
        0 16px 40px rgba(0,0,0,0.85),
        inset 0 0 0 1px rgba(232,192,96,0.15),
        inset 0 1px 0 rgba(255,235,175,0.12);
}

.rw-sr-more-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3d2f20;
}

.rw-sr-more-title {
    margin: 0;
    font-family: var(--rw-font-display);
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--rw-gold-200);
    text-transform: uppercase;
}

.rw-sr-more-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.rw-sr-more-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #110d09;
    border: 1px solid #2e2317;
    border-radius: 4px;
    padding: 9px 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rw-sr-more-item:hover {
    background: #19130e;
    border-color: var(--rw-gold-500);
    transform: translateX(2px);
}

.rw-sr-more-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rw-sr-more-item-icon {
    font-size: 11px;
    color: var(--rw-gold-400);
}

.rw-sr-more-item-name {
    font-family: var(--rw-font-display);
    font-size: 12px;
    font-weight: 700;
    color: #f0e2c8;
}

.rw-sr-more-badge {
    font-size: 10.5px;
    color: #7d654c;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rw-sr-more-badge.ended {
    color: #4ade80;
}

.rw-sr-btn-all {
    width: 100%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    background: linear-gradient(180deg, #2a2016 0%, #17110c 100%);
    border: 1px solid #4a3824;
    border-radius: 4px;
    color: #d8c8b4;
    font-family: var(--rw-font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rw-sr-btn-all:hover {
    background: linear-gradient(180deg, #382c1f 0%, #1f1711 100%);
    border-color: var(--rw-gold-400);
    color: #fff;
}

@media (max-width: 1024px) {
    .rw-sr-hero-grid {
        grid-template-columns: 1fr;
    }
    .rw-sr-strip-frame {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .rw-sr-pillar:not(:last-child)::after {
        display: none;
    }
    .rw-sr-active-grid {
        grid-template-columns: 1fr;
    }
    .rw-sr-featured-card {
        grid-template-columns: 1fr;
    }
}


.rw-panel-card {
    background: linear-gradient(180deg, rgba(28,21,15,0.97) 0%, rgba(16,12,9,0.98) 100%);
    border: 2px solid #4a3824;
    border-radius: 6px;
    padding: 32px 36px;
    box-shadow: 
        0 24px 70px rgba(0,0,0,0.92),
        inset 0 0 0 1px rgba(232,192,96,0.18),
        inset 0 1px 0 rgba(255,235,175,0.15);
}

.rw-panel-head {
    text-align: center;
    margin-bottom: 28px;
    border-bottom: 1px solid #3d2f20;
    padding-bottom: 20px;
}

.rw-panel-title {
    margin: 0;
    font-family: var(--rw-font-display);
    font-size: clamp(22px, 3.5vw, 34px);
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--rw-gold-200);
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.rw-panel-sub {
    margin: 8px 0 0;
    font-size: 13.5px;
    color: #a8947d;
}

/* ─── RESPONSIVE BREAKPOINTS (Mobile & Tablet Optimization) ───────── */
@media (max-width: 1100px) {
    .rw-topbar-inner {
        padding: 8px 14px;
        gap: 8px;
    }
    .rw-nav-btn {
        padding: 5px 8px;
        font-size: 9.5px;
        gap: 4px;
    }
    .rw-btn-login,
    .rw-btn-register {
        padding: 5px 10px;
        font-size: 9.5px;
    }
}

@media (max-width: 980px) {
    .rw-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: linear-gradient(180deg, #2a2016 0%, #16110c 100%);
        border: 1px solid #4a3824;
        border-radius: 4px;
        color: var(--rw-gold-300);
        cursor: pointer;
        font-size: 15px;
        transition: all 0.2s ease;
        box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    }
    .rw-nav-toggle:hover {
        border-color: var(--rw-gold-300);
        color: var(--rw-gold-100);
    }
    .rw-nav-center {
        display: none;
    }
    .rw-nav-center.mobile-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, rgba(24,18,13,0.98) 0%, rgba(14,10,7,0.99) 100%);
        border-top: 1px solid #4a3824;
        border-bottom: 2px solid #a8721c;
        box-shadow: 0 16px 40px rgba(0,0,0,0.95);
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        z-index: 500;
        backdrop-filter: blur(10px);
    }
    .rw-nav-center.mobile-open .rw-nav-btn {
        width: 100%;
        box-sizing: border-box;
        padding: 10px 14px;
        font-size: 12px;
        justify-content: flex-start;
        border-radius: 4px;
    }

    /* Index Hero Tablet */
    .rw-hero-section {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 24px 20px;
    }
    .rw-hero-content {
        align-items: center;
        text-align: center;
        padding-left: 0;
    }
    .rw-hero-desc {
        max-width: 600px;
    }
    .rw-auth-box {
        justify-self: center;
        max-width: 520px;
        width: 100%;
    }

    /* Speed Rounds Hero Tablet */
    .rw-sr-hero-grid {
        grid-template-columns: 1fr;
        padding: 28px 24px 20px;
        gap: 28px;
    }
    .rw-sr-knight-wrap {
        display: none;
    }
    .rw-sr-hero-left {
        align-items: center;
        text-align: center;
    }
    .rw-sr-hero-p {
        max-width: 620px;
    }
    .rw-sr-feature-card {
        justify-self: center;
        max-width: 520px;
        width: 100%;
    }

    /* Speed Rounds 5-Pillar Strip Tablet */
    .rw-sr-strip-section {
        padding: 0 20px;
    }
    .rw-sr-strip-frame {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .rw-sr-pillar:not(:last-child)::after {
        display: none;
    }

    /* Speed Rounds Active Section Tablet */
    .rw-sr-active-section {
        padding: 0 20px;
    }
    .rw-sr-active-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .rw-sr-featured-card {
        grid-template-columns: 220px 1fr;
    }

    /* Gallery Grid Tablet */
    .rw-gallery-section {
        padding: 0 20px;
    }
    .rw-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Stats Bar Tablet */
    .rw-stats-strip {
        padding: 0 20px;
    }
    .rw-stats-bar {
        justify-content: center;
        text-align: center;
        gap: 16px;
    }
    .rw-stats-metrics {
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .rw-topbar-inner {
        padding: 8px 12px;
    }
    .rw-brand-title {
        font-size: 14px;
        letter-spacing: 1.5px;
    }
    .rw-brand-tagline {
        display: none;
    }
    .rw-brand-crest {
        width: 28px;
        height: 34px;
    }

    /* Hero adjustments for mobile */
    .rw-hero-section {
        padding: 20px 14px;
        gap: 24px;
    }
    .rw-hero-title {
        font-size: 28px;
        letter-spacing: 1.2px;
    }
    .rw-hero-desc {
        font-size: 13px;
    }
    .rw-btn-battle,
    .rw-sr-btn-discover {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        padding: 12px 18px;
        font-size: 12.5px;
    }

    /* Auth card on mobile */
    .rw-auth-box {
        padding: 18px 16px;
    }
    .rw-world-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .rw-world-card-left {
        justify-content: flex-start;
    }
    .rw-world-stats {
        width: 100%;
        justify-content: space-between;
    }
    .rw-wstat {
        flex: 1;
        min-width: 0;
        padding: 6px 4px;
    }
    .rw-wstat-val {
        font-size: 13px;
    }
    .rw-btn-resume {
        width: 100%;
        box-sizing: border-box;
    }

    /* Speed rounds mobile */
    .rw-sr-hero-grid {
        padding: 20px 14px 16px;
    }
    .rw-sr-hero-title {
        font-size: 30px;
    }
    .rw-sr-hero-sub {
        font-size: 11px;
        letter-spacing: 1.5px;
    }
    .rw-sr-feature-card {
        padding: 18px 16px;
    }

    /* 5-Pillar Strip Mobile */
    .rw-sr-strip-section {
        padding: 0 14px;
    }
    .rw-sr-strip-frame {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 10px;
        padding: 14px 12px;
    }
    .rw-sr-pillar {
        padding: 4px 6px;
    }
    .rw-sr-pillar-title {
        font-size: 11px;
    }
    .rw-sr-pillar-sub {
        font-size: 9.5px;
    }

    /* Featured Round Card Mobile */
    .rw-sr-active-section {
        padding: 0 14px;
    }
    .rw-sr-featured-card {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 14px;
    }
    .rw-sr-thumb-wrap {
        height: 140px;
    }
    .rw-sr-btn-join {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        padding: 10px 16px;
    }
    .rw-sr-meta-row {
        gap: 10px;
    }
    .rw-sr-meta-pill {
        font-size: 10.5px;
    }

    /* Gallery 1 col */
    .rw-gallery-section {
        padding: 0 14px;
    }
    .rw-gallery-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Stats strip mobile */
    .rw-stats-strip {
        padding: 0 14px;
    }
    .rw-stats-bar {
        padding: 12px 14px;
    }
    .rw-stats-metrics {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
    }
    .rw-stat-item {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
    .rw-stat-val {
        font-size: 13px;
    }
    .rw-stat-lbl {
        font-size: 8px;
    }
    .rw-stats-motto {
        font-size: 10px;
        letter-spacing: 1.5px;
        width: 100%;
    }

    /* Footer Mobile */
    .rw-footer {
        padding: 20px 16px;
    }
    .rw-footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    .rw-footer-nav {
        justify-content: center;
        gap: 12px;
    }
}
