/* === Fonts === */
@font-face { font-family: 'Cinzel'; font-weight: 400; font-display: swap; src: url('fonts/cinzel-400.ttf') format('truetype'); }
@font-face { font-family: 'Cinzel'; font-weight: 700; font-display: swap; src: url('fonts/cinzel-700.ttf') format('truetype'); }
@font-face { font-family: 'Cinzel'; font-weight: 900; font-display: swap; src: url('fonts/cinzel-900.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 300 600; font-display: swap; src: url('fonts/inter-400.woff2') format('woff2'); }
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&display=swap');

/* === Design Tokens — MU Insignia ===
   Source of truth: design-system/mu-insignia/MASTER.md
   Always reference by var; never hardcode hex inside components. */
:root {
    /* Surfaces (OLED-safe, never pure #000) */
    --surface-deep:    #050507;
    --surface-base:    #08080c;
    --surface-elev-1:  #10101a;
    --surface-elev-2:  #181822;
    --surface-elev-3:  #1f1f2a;

    /* Heraldic gold */
    --gold-900:  #c49020;
    --gold-700:  #d4a534;
    --gold-500:  #e0b85a;
    --gold-300:  #f0d080;
    --gold-glow:       rgba(212, 165, 52, 0.35);
    --gold-trim:       rgba(180, 140, 60, 0.18);
    --gold-trim-hover: rgba(180, 140, 60, 0.45);

    /* Bronze (supportive) */
    --bronze-700: #b48c3c;
    --bronze-500: #9a7a32;

    /* Action — blood crimson (CTA only) */
    --action-700: #8b1a1a;
    --action-500: #a52020;
    --action-300: #b33030;
    --action-glow: rgba(139, 26, 26, 0.4);

    /* Text — warm parchment */
    --text-primary:  #e8dcc8;
    --text-body:     #c8c0b8;
    --text-muted:    #8a7f70;
    --text-disabled: #4a4540;

    /* Semantic */
    --success:  #5a9a4a;
    --warning:  #c89030;
    --error:    #c0392b;
    --info:     #4a7ba8;

    /* Type stack */
    --font-display: 'Cinzel', Georgia, serif;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;

    /* Radii */
    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 10px;

    /* Shadow stack (skeuomorphic) */
    --shadow-card:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 1px 2px rgba(0, 0, 0, 0.45),
        0 6px 18px rgba(0, 0, 0, 0.35);
    --shadow-card-hover:
        inset 0 1px 0 rgba(212, 165, 52, 0.18),
        0 2px 4px rgba(0, 0, 0, 0.55),
        0 10px 28px rgba(0, 0, 0, 0.55),
        0 0 26px rgba(212, 165, 52, 0.14);
    --shadow-modal:
        0 24px 60px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(180, 140, 60, 0.22);
    --shadow-glow-gold:  0 0 26px rgba(212, 165, 52, 0.4);
    --shadow-glow-blood: 0 0 26px rgba(139, 26, 26, 0.5);

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in:  cubic-bezier(0.4, 0, 1, 1);
    --dur-fast: 150ms;
    --dur-med:  250ms;
    --dur-slow: 400ms;
}

/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    background: var(--surface-base);
    color: var(--text-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
:focus-visible {
    outline: 2px solid var(--gold-700);
    outline-offset: 3px;
    border-radius: 2px;
}
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--gold-700); color: var(--surface-base); }

/* === Navbar (redesign v2) === */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    display: flex; align-items: center; gap: 16px;
    padding: 0 clamp(20px, 5vw, 80px); height: 88px;
    background: linear-gradient(180deg, rgba(5, 5, 8, 0.94) 0%, rgba(5, 5, 8, 0.55) 100%);
    border-bottom: 1px solid rgba(200, 149, 37, 0.18);
    z-index: 1000; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.nav-logo { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.nav-logo img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6)); }

.nav-collapse { display: flex; align-items: center; gap: 16px; flex: 1 1 auto; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin-right: auto; }
.nav-links a {
    position: relative; display: inline-block; padding: 8px 12px;
    font-family: var(--font-display); font-weight: 400; font-size: 1rem;
    color: #fff; text-decoration: none; letter-spacing: -0.011em;
    transition: color var(--dur-med) var(--ease-out);
}
.nav-links a::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
    background: linear-gradient(90deg, rgba(83, 81, 81, 0) 0%, #ddb038 50%, rgba(83, 81, 81, 0) 100%);
    opacity: 0; transition: opacity var(--dur-med) var(--ease-out);
}
.nav-links a:hover { color: var(--gold-300); }
.nav-links a.active::after, .nav-links a:hover::after { opacity: 1; }

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Live online badge */
.nav-online {
    display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
    height: 44px; padding: 0 14px;
    border: 1px solid rgba(200, 149, 37, 0.5); border-radius: 6px;
    background: rgba(0, 0, 0, 0.4);
    font-family: var(--font-display); font-variant-numeric: tabular-nums;
}
.nav-online-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #289d39;
    box-shadow: 0 0 8px rgba(40, 157, 57, 0.7);
    animation: pulse-dot 2s ease-in-out infinite;
}
.nav-online-count { color: #289d39; font-weight: 700; font-size: 1rem; }
.nav-online-label { color: #a6a6a5; font-weight: 400; font-size: 1rem; }

/* Gold / red action buttons with chevron flourish */
.nav-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 44px; padding: 0 16px; flex-shrink: 0;
    border-radius: 4px; cursor: pointer; white-space: nowrap;
    font-family: var(--font-display); font-weight: 700; font-size: 1rem;
    text-decoration: none;
    transition: background var(--dur-med) var(--ease-out),
                box-shadow var(--dur-med) var(--ease-out),
                border-color var(--dur-med) var(--ease-out);
}
.nav-btn .chev { font-size: 1.15rem; line-height: 1; opacity: 0.85; }
.nav-btn-gold { color: #c89525; background: rgba(0, 0, 0, 0.45); border: 1px solid #c89525; }
.nav-btn-gold:hover { background: rgba(200, 149, 37, 0.14); box-shadow: 0 0 18px rgba(200, 149, 37, 0.35); }
.nav-btn-red { color: #fff; background: #672323; border: 1px solid #b02828; }
.nav-btn-red:hover { background: #7a2a2a; box-shadow: 0 0 18px rgba(176, 40, 40, 0.4); }
.nav-btn-ghost {
    color: var(--text-muted); background: transparent; border: 1px solid rgba(180, 140, 60, 0.25);
}
.nav-btn-ghost:hover { color: var(--gold-500); border-color: var(--gold-700); background: rgba(180, 140, 60, 0.08); }

/* Hamburger (mobile only) */
.nav-toggle {
    display: none; margin-left: auto; width: 44px; height: 44px; flex-shrink: 0;
    background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(200, 149, 37, 0.4); border-radius: 6px;
    cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--gold-500); transition: 0.25s; }

/* Language Switcher */
.lang-switcher { position: relative; flex-shrink: 0; }
.lang-btn {
    background: none; border: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    color: #a6a6a5; font-family: var(--font-display); font-weight: 400; font-size: 1rem;
    transition: color var(--dur-med) var(--ease-out);
}
.lang-btn:hover { color: var(--gold-300); }
.lang-caret { font-size: 0.65rem; }
.lang-dropdown {
    display: none; position: absolute; top: 100%; right: 0; margin-top: 8px;
    background: #10101a; border: 1px solid rgba(180, 140, 60, 0.15); border-radius: 6px;
    overflow: hidden; min-width: 150px; z-index: 100;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.lang-dropdown.active { display: block; }
.lang-dropdown button {
    display: block; width: 100%; padding: 10px 14px; background: none; border: none;
    color: #888; font-size: 0.8rem; text-align: left; cursor: pointer; transition: all 0.2s;
    font-family: var(--font-body);
}
.lang-dropdown button:hover { background: rgba(180, 140, 60, 0.08); color: #d4a534; }
.lang-dropdown button.active { color: #d4a534; }

/* Navbar responsive — collapse into hamburger panel */
@media (max-width: 1080px) {
    .navbar { height: 72px; }
    .nav-logo img { width: 46px; height: 46px; }
    .nav-toggle { display: flex; }
    .nav-collapse {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 8px;
        padding: 16px clamp(20px, 5vw, 80px) 24px;
        background: rgba(8, 8, 12, 0.98); border-bottom: 1px solid rgba(200, 149, 37, 0.18);
        max-height: calc(100vh - 72px); overflow-y: auto;
        transform: translateY(-12px); opacity: 0; pointer-events: none;
        transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
    }
    .navbar.open .nav-collapse { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-links { flex-direction: column; align-items: stretch; gap: 2px; margin-right: 0; }
    .nav-links a { padding: 12px 8px; font-size: 1.05rem; }
    .nav-links a::after { display: none; }
    .nav-actions { flex-wrap: wrap; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(180, 140, 60, 0.12); }
    .nav-btn { flex: 1 1 auto; }
    .lang-switcher { flex: 1 1 100%; }
    .lang-dropdown { right: auto; left: 0; }
}

/* === Buttons === */
.btn {
    padding: 11px 26px; border: none; border-radius: var(--radius-sm);
    font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
    letter-spacing: 1px; cursor: pointer;
    transition: background var(--dur-med) var(--ease-out),
                box-shadow var(--dur-med) var(--ease-out),
                transform var(--dur-fast) var(--ease-out),
                border-color var(--dur-med) var(--ease-out);
    text-transform: uppercase; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px;
}
.btn:active { transform: translateY(0); }
.btn-primary {
    background: linear-gradient(180deg, var(--action-500) 0%, var(--action-700) 100%);
    color: var(--gold-300);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 18px rgba(139, 26, 26, 0.35),
        0 2px 0 rgba(0, 0, 0, 0.4);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}
.btn-primary:hover {
    background: linear-gradient(180deg, var(--action-300) 0%, var(--action-500) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        var(--shadow-glow-blood),
        0 2px 0 rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}
.btn-discord {
    background: linear-gradient(180deg, #5865F2, #4752C4); color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 18px rgba(88, 101, 242, 0.3),
        0 2px 0 rgba(0, 0, 0, 0.4);
}
.btn-discord:hover {
    background: linear-gradient(180deg, #6d79f5, #5865F2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 26px rgba(88, 101, 242, 0.55),
        0 2px 0 rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent; color: var(--gold-700);
    border: 1px solid var(--gold-trim-hover);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}
.btn-outline:hover {
    background: rgba(180, 140, 60, 0.08);
    border-color: var(--gold-700);
    color: var(--gold-500);
}
.btn-lg { padding: 14px 40px; font-size: 0.95rem; min-height: 52px; }
.btn-full { width: 100%; }

/* === Hero === */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; background: var(--surface-base); overflow: hidden;
    padding: 100px 24px 80px;
}
.hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(139, 26, 26, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(180, 140, 60, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(212, 165, 52, 0.04) 0%, transparent 60%);
}
.hero-embers {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 15% 25%, rgba(212, 165, 52, 0.4), transparent),
        radial-gradient(1px 1px at 35% 65%, rgba(180, 140, 60, 0.3), transparent),
        radial-gradient(2px 2px at 55% 15%, rgba(139, 26, 26, 0.4), transparent),
        radial-gradient(1px 1px at 75% 45%, rgba(212, 165, 52, 0.3), transparent),
        radial-gradient(1px 1px at 85% 75%, rgba(180, 140, 60, 0.3), transparent),
        radial-gradient(2px 2px at 25% 85%, rgba(139, 26, 26, 0.25), transparent),
        radial-gradient(1px 1px at 65% 90%, rgba(212, 165, 52, 0.3), transparent),
        radial-gradient(1px 1px at 45% 40%, rgba(180, 140, 60, 0.4), transparent);
    animation: embers 15s ease-in-out infinite;
    will-change: transform, opacity;
}
@keyframes embers {
    0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
    33% { transform: translateY(-15px) scale(1.02); opacity: 0.7; }
    66% { transform: translateY(-5px) scale(0.98); opacity: 0.9; }
}
.hero-line {
    position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-trim-hover), transparent);
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.hero-logo-wrap {
    display: inline-block;
    filter: drop-shadow(0 0 40px rgba(212, 165, 52, 0.22)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
    margin-bottom: 8px;
    animation: logo-breathe 6s ease-in-out infinite;
}
.hero-logo {
    width: 380px; max-width: 85vw; height: auto;
}
@keyframes logo-breathe {
    0%, 100% { filter: drop-shadow(0 0 38px rgba(212, 165, 52, 0.18)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55)); }
    50%      { filter: drop-shadow(0 0 56px rgba(212, 165, 52, 0.30)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55)); }
}
.hero-subtitle {
    font-family: var(--font-display); font-size: 0.78rem; color: var(--text-muted);
    letter-spacing: 8px; text-transform: uppercase; margin-bottom: 18px;
    font-weight: 700;
}
.hero-slogan {
    font-family: var(--font-heading); font-size: 1.5rem; color: var(--gold-500);
    font-style: italic; font-weight: 500; letter-spacing: 0.5px;
    margin: 0 auto 36px; max-width: 600px; line-height: 1.4;
    text-shadow: 0 0 18px rgba(212, 165, 52, 0.25);
}
/* Heraldic divider — sits under the slogan / above the stats */
.hero-divider {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    margin: 0 auto 36px; max-width: 320px;
    color: var(--gold-700); opacity: 0.85;
}
.hero-divider::before,
.hero-divider::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-trim-hover), transparent);
}
.hero-divider svg { width: 28px; height: 18px; flex-shrink: 0; }

.hero-online {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    margin-bottom: 22px; padding: 6px 14px;
    background: rgba(90, 154, 74, 0.06);
    border: 1px solid rgba(90, 154, 74, 0.18);
    border-radius: 999px;
}
.online-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--success);
    box-shadow: 0 0 8px rgba(90, 154, 74, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 8px rgba(90, 154, 74, 0.6); }
    50%      { box-shadow: 0 0 16px rgba(90, 154, 74, 0.95); }
}
.online-text {
    font-family: var(--font-display); font-size: 0.78rem; color: var(--success);
    letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === Hero stat boxes (skeuomorphic-heraldic) === */
.hero-stats { display: flex; gap: 18px; justify-content: center; margin-bottom: 38px; flex-wrap: wrap; }
.stat-box {
    position: relative;
    background:
        linear-gradient(180deg, rgba(180, 140, 60, 0.06) 0%, rgba(180, 140, 60, 0.02) 100%),
        var(--surface-elev-1);
    border: 1px solid var(--gold-trim);
    border-radius: var(--radius-md);
    padding: 18px 28px; text-align: center; min-width: 120px;
    box-shadow: var(--shadow-card);
    transition: transform var(--dur-med) var(--ease-out),
                border-color var(--dur-med) var(--ease-out),
                box-shadow var(--dur-med) var(--ease-out);
}
/* L-bracket corner ornaments (4 corners, gold) */
.stat-box::before {
    content: ''; position: absolute; inset: 4px; pointer-events: none;
    background-image:
        linear-gradient(to right, var(--gold-700) 10px, transparent 10px),
        linear-gradient(to bottom, var(--gold-700) 10px, transparent 10px),
        linear-gradient(to left,  var(--gold-700) 10px, transparent 10px),
        linear-gradient(to bottom, var(--gold-700) 10px, transparent 10px),
        linear-gradient(to right, var(--gold-700) 10px, transparent 10px),
        linear-gradient(to top,   var(--gold-700) 10px, transparent 10px),
        linear-gradient(to left,  var(--gold-700) 10px, transparent 10px),
        linear-gradient(to top,   var(--gold-700) 10px, transparent 10px);
    background-position:
        top left, top left,
        top right, top right,
        bottom left, bottom left,
        bottom right, bottom right;
    background-size:
        12px 1px, 1px 12px,
        12px 1px, 1px 12px,
        12px 1px, 1px 12px,
        12px 1px, 1px 12px;
    background-repeat: no-repeat;
    opacity: 0.55;
    transition: opacity var(--dur-med) var(--ease-out);
}
.stat-box:hover {
    transform: translateY(-3px);
    border-color: var(--gold-trim-hover);
    box-shadow: var(--shadow-card-hover);
}
.stat-box:hover::before { opacity: 1; }
.stat-value {
    display: block; font-family: var(--font-display); font-size: 1.75rem; font-weight: 900;
    color: var(--gold-700);
    text-shadow: 0 0 10px rgba(212, 165, 52, 0.25), 0 1px 0 rgba(0, 0, 0, 0.4);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.stat-label {
    display: block; font-family: var(--font-display); font-size: 0.68rem;
    color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 2px; margin-top: 8px; font-weight: 700;
}

/* === Section Common === */
.section-title {
    font-family: var(--font-display); font-size: 2.25rem; text-align: center;
    color: var(--text-primary); margin-bottom: 14px; letter-spacing: 5px;
    font-weight: 900; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
.section-subtitle {
    text-align: center; color: var(--text-muted); font-size: 0.9rem;
    margin-bottom: 50px; letter-spacing: 2px;
    font-family: var(--font-heading); font-style: italic;
}
.section-line {
    width: 80px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-700), transparent);
    margin: 16px auto;
    box-shadow: 0 0 8px var(--gold-glow);
}

/* === Classes Section === */
.classes { padding: 100px 40px; background: linear-gradient(180deg, #08080c 0%, #0c0c12 50%, #08080c 100%); }
.classes-grid { display: flex; gap: 20px; justify-content: center; max-width: 1000px; margin: 0 auto; flex-wrap: wrap; }
.class-card {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(180, 140, 60, 0.08);
    border-radius: 8px; padding: 20px; text-align: center; width: 170px; transition: all 0.3s; cursor: default;
}
.class-card:hover {
    border-color: rgba(180, 140, 60, 0.3); transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 26, 26, 0.1);
}
.class-card img {
    display: block; width: 80px; height: 80px; object-fit: contain;
    margin: 0 auto 10px; /* center the icon within the card */
    filter: drop-shadow(0 0 8px rgba(212, 165, 52, 0.2));
}
.class-card h3 { font-family: 'Cinzel', serif; color: #c8b890; font-size: 0.85rem; letter-spacing: 1px; }

/* === Features === */
.features { padding: 100px 40px; background: var(--surface-elev-1); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; max-width: 1000px; margin: 0 auto; }
.feature-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--gold-trim);
    border-radius: var(--radius-md); padding: 30px 22px;
    transition: border-color var(--dur-med) var(--ease-out),
                box-shadow var(--dur-med) var(--ease-out),
                transform var(--dur-med) var(--ease-out);
}
.feature-card:hover h3 { color: var(--gold-500); }
.features-wiki-link {
    color: var(--gold-500);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--dur-fast) var(--ease-out);
}
.features-wiki-link:hover { color: var(--gold-700); text-decoration: underline; }
.feature-card:hover {
    border-color: var(--gold-trim-hover);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}
.feature-icon { font-size: 1.8rem; margin-bottom: 12px; color: var(--gold-700); }
.feature-card h3 {
    font-family: var(--font-display); color: var(--gold-700); font-size: 0.95rem;
    margin-bottom: 8px; letter-spacing: 1px;
}
.feature-card p { font-size: 0.85rem; line-height: 1.7; color: var(--text-muted); }

/* Accent feature card — for brand-pillar copy (economy, fair play) */
.feature-card--accent {
    background:
        linear-gradient(180deg, rgba(212, 165, 52, 0.07) 0%, rgba(180, 140, 60, 0.02) 100%),
        var(--surface-elev-1);
    border-color: var(--gold-trim-hover);
    box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(212, 165, 52, 0.08);
}
.feature-card--accent h3 { color: var(--gold-500); }
.feature-card--accent p { color: var(--text-body); }

/* === FAQ === */
.faq {
    padding: 100px 40px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(212, 165, 52, 0.03) 0%, transparent 60%),
        var(--surface-base);
}
.faq-list {
    max-width: 760px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
    background: var(--surface-elev-1);
    border: 1px solid var(--gold-trim);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: border-color var(--dur-med) var(--ease-out);
    overflow: hidden;
}
.faq-item[open] { border-color: var(--gold-trim-hover); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-family: var(--font-heading);
    font-size: 1.15rem; font-weight: 600;
    color: var(--text-primary);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    transition: color var(--dur-med) var(--ease-out),
                background var(--dur-med) var(--ease-out);
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-family: var(--font-display);
    font-size: 1.6rem; font-weight: 900;
    color: var(--gold-700);
    transition: transform var(--dur-med) var(--ease-out);
    flex-shrink: 0;
    line-height: 1;
}
.faq-item[open] summary { background: rgba(212, 165, 52, 0.03); }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--gold-500); }
.faq-item summary:focus-visible {
    outline: 2px solid var(--gold-700);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}
.faq-item p {
    padding: 0 22px 22px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-body);
    font-family: var(--font-body);
}

/* === Ranking === */
.ranking { padding: 100px 40px; background: #08080c; }
/* row-link: lets the entire cell behave like a link without breaking table layout */
.ranking-table .row-link {
    color: inherit; text-decoration: none;
    display: inline-flex; align-items: center;
    transition: color var(--dur-fast) var(--ease-out);
}
.ranking-table .row-link:hover { color: var(--gold-500); text-decoration: underline; }
.ranking-table .row-link:focus-visible {
    outline: 2px solid var(--gold-700); outline-offset: 2px; border-radius: var(--radius-sm);
}
.ranking-table-wrapper { max-width: 750px; margin: 0 auto; overflow-x: auto; }
.ranking-table { width: 100%; border-collapse: collapse; }
.ranking-table th {
    font-family: 'Cinzel', serif; font-size: 0.8rem; color: #d4a534;
    text-transform: uppercase; letter-spacing: 2px; padding: 14px 18px;
    border-bottom: 1px solid rgba(180, 140, 60, 0.2); text-align: left;
}
.ranking-table td {
    padding: 11px 18px; border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 0.85rem; color: #888;
}
.ranking-table tr:hover td { background: rgba(180, 140, 60, 0.03); color: #bbb; }
.ranking-table .rank-1 td { color: #d4a534; font-weight: 600; text-shadow: 0 0 6px rgba(212,165,52,0.2); }
.ranking-table .rank-2 td { color: #b0b0b0; }
.ranking-table .rank-3 td { color: #b87333; }
.loading { text-align: center; color: #444; padding: 40px; }

/* === Download === */
.download { padding: 100px 40px; background: linear-gradient(180deg, #0c0c12 0%, #08080c 100%); }
.download-content { max-width: 450px; margin: 0 auto; text-align: center; }
.download-card {
    background: rgba(180, 140, 60, 0.03); border: 1px solid rgba(180, 140, 60, 0.12);
    border-radius: 10px; padding: 45px 35px; transition: all 0.3s;
}
.download-card:hover { border-color: rgba(180, 140, 60, 0.25); box-shadow: 0 0 30px rgba(139, 26, 26, 0.08); }
.download-card h3 {
    font-family: 'Cinzel', serif; font-size: 1.3rem; color: #ddd;
    margin-bottom: 12px; letter-spacing: 2px;
}
.download-card p { color: #666; margin-bottom: 25px; font-size: 0.85rem; }
.download-size { display: block; margin-top: 12px; color: #444; font-size: 0.75rem; }

/* === Footer === */
.footer {
    text-align: center; padding: 30px;
    border-top: 1px solid rgba(180, 140, 60, 0.08); color: #8a7f70; font-size: 0.75rem;
}
.footer-disclaimer { margin-top: 5px; font-size: 0.65rem; color: #5a5248; }
.footer-links { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.footer-links a { color: #8a7f70; text-decoration: none; font-size: 0.72rem; }
.footer-links a:hover { color: #f0d080; text-decoration: underline; }
.footer-links span { color: #4a453e; font-size: 0.7rem; }

.cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
    display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap;
    padding: 14px 24px; background: rgba(8,8,12,0.97); border-top: 1px solid rgba(200,149,37,0.3);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.cookie-banner p { margin: 0; color: #b0a99d; font-size: 0.82rem; line-height: 1.5; max-width: 640px; }
.cookie-banner p a { color: #f0d080; text-decoration: underline; }
.cookie-banner .cookie-accept {
    flex-shrink: 0; font-family: var(--font-display, 'Cinzel', serif); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase; color: #08080c;
    background: linear-gradient(180deg, #f0d080, #d4a534); border: none; border-radius: 4px;
    padding: 10px 22px; cursor: pointer;
}
.cookie-banner .cookie-accept:hover { filter: brightness(1.08); }
@media (max-width: 560px) {
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; padding: 16px 20px; }
    .cookie-banner .cookie-accept { width: 100%; }
}

/* === Dedicated auth pages (login.html / register.html) === */
.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 100px 20px 60px;
    position: relative; overflow: hidden;
}
.auth-page-bg {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(139, 26, 26, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(180, 140, 60, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 0%, rgba(212, 165, 52, 0.04) 0%, transparent 60%);
}
.auth-card {
    position: relative; z-index: 1;
    width: 100%; max-width: 460px;
    padding: 40px 36px 32px;
    background:
        linear-gradient(180deg, rgba(180, 140, 60, 0.05) 0%, rgba(180, 140, 60, 0.01) 100%),
        var(--surface-elev-1);
    border: 1px solid var(--gold-trim-hover);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal);
    text-align: center;
}
.auth-logo-wrap {
    display: inline-block; margin-bottom: 12px;
    filter: drop-shadow(0 0 24px rgba(212, 165, 52, 0.18));
}
.auth-logo { width: 180px; max-width: 60vw; height: auto; }
.auth-kicker {
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.72rem; letter-spacing: 6px;
    color: var(--text-muted); text-transform: uppercase;
    margin-bottom: 16px;
}
.auth-divider {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    margin: 0 auto 28px; max-width: 280px;
    color: var(--gold-700); opacity: 0.85;
}
.auth-divider::before,
.auth-divider::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-trim-hover), transparent);
}
.auth-divider svg { width: 24px; height: 16px; flex-shrink: 0; }

.auth-card .auth-form { text-align: left; }
.auth-card .form-group { margin-bottom: 16px; }
.auth-card .form-label {
    display: block;
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.72rem; letter-spacing: 2px;
    color: var(--text-muted); text-transform: uppercase;
    margin-bottom: 6px;
}
.auth-card .form-group input {
    width: 100%; min-height: 44px;
    padding: 11px 14px;
    background: var(--surface-deep);
    border: 1px solid var(--gold-trim);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem; outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: border-color var(--dur-med) var(--ease-out),
                box-shadow var(--dur-med) var(--ease-out);
    font-family: var(--font-body);
}
.auth-card .form-group input::placeholder { color: var(--text-disabled); }
.auth-card .form-group input:focus {
    border-color: var(--gold-700);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 0 3px var(--gold-glow);
}
.auth-card .form-switch { text-align: center; margin-top: 14px; font-size: 0.85rem; color: var(--text-muted); }
.auth-card .form-switch a { color: var(--gold-700); text-decoration: none; font-weight: 600; }
.auth-card .form-switch a:hover { color: var(--gold-500); text-decoration: underline; }
.auth-card .pw-requirements {
    display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px;
}
.auth-card .pw-requirements span {
    font-size: 0.7rem; color: var(--text-muted); transition: color var(--dur-fast) var(--ease-out);
    font-family: var(--font-body);
}
.auth-card .pw-requirements span.valid { color: var(--success); }
.auth-card .form-error { color: var(--error); font-size: 0.82rem; margin-bottom: 10px; min-height: 20px; }
.auth-card .form-success { color: var(--success); font-size: 0.82rem; margin-bottom: 10px; min-height: 20px; }
.auth-card .btn-full { margin-top: 6px; }

@media (max-width: 480px) {
    .auth-page { padding: 88px 14px 40px; }
    .auth-card { padding: 32px 22px 28px; }
    .auth-logo { width: 150px; }
}

/* === Dedicated profile pages (character.html / guild.html) === */
.profile-page {
    min-height: 100vh;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 100px 20px 60px;
    position: relative; overflow: hidden;
}
.profile-page .auth-page-bg {
    /* reuses .auth-page-bg layer from auth pages */
}
.profile-page-card {
    position: relative; z-index: 1;
    width: 100%; max-width: 520px;
    background:
        linear-gradient(180deg, rgba(180, 140, 60, 0.05) 0%, rgba(180, 140, 60, 0.01) 100%),
        var(--surface-elev-1);
    border: 1px solid var(--gold-trim-hover);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal);
    overflow: hidden;
}
.profile-page-card--wide { max-width: 720px; }

.profile-card-header {
    padding: 36px 32px 24px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(212, 165, 52, 0.10) 0%, transparent 70%),
        linear-gradient(180deg, rgba(212, 165, 52, 0.04), transparent);
    border-bottom: 1px solid var(--gold-trim);
}
.profile-portrait {
    width: 130px; height: 130px; object-fit: contain;
    filter: drop-shadow(0 0 24px var(--gold-glow)) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
    margin-bottom: 14px;
}
.profile-guild-logo {
    width: 96px; height: 96px;
    border: 1px solid var(--gold-trim-hover);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    box-shadow: 0 0 24px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    background: var(--surface-deep);
    padding: 6px;
}
.profile-card-name {
    font-family: var(--font-display); font-weight: 900;
    font-size: 1.65rem; color: var(--text-primary);
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    margin: 0;
}
.profile-card-class {
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.72rem; letter-spacing: 3px;
    color: var(--gold-700); text-transform: uppercase;
    margin-top: 8px;
}
.profile-card-guild {
    font-family: var(--font-heading); font-style: italic;
    font-size: 0.95rem; color: var(--text-muted);
    margin-top: 10px;
}
.profile-guild-link {
    color: var(--gold-500); text-decoration: none;
    transition: color var(--dur-med) var(--ease-out);
}
.profile-guild-link:hover { color: var(--gold-300); text-decoration: underline; }
.profile-no-guild { color: var(--text-disabled); font-style: italic; }
.guild-score-value {
    color: var(--gold-500); font-family: var(--font-display);
    font-weight: 700; font-variant-numeric: tabular-nums;
}

.profile-card-divider {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin: 18px auto;
    max-width: 240px;
    color: var(--gold-700); opacity: 0.8;
}
.profile-card-divider::before,
.profile-card-divider::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-trim-hover), transparent);
}
.profile-card-divider svg { width: 22px; height: 16px; flex-shrink: 0; }

.profile-stat-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
    padding: 0 24px 8px;
}
.profile-stat-grid .stat-box { min-width: 0; }

.profile-card-footer {
    padding: 22px 32px 28px;
    text-align: center;
}

/* Empty / error / loading states */
.profile-loading,
.profile-empty {
    padding: 60px 32px;
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-heading); font-style: italic;
    font-size: 1rem;
}
.profile-empty-title {
    font-family: var(--font-display); font-weight: 700;
    font-size: 1.2rem; letter-spacing: 2px;
    color: var(--text-primary); text-transform: uppercase;
    font-style: normal; margin-bottom: 8px;
}
.profile-empty-sub {
    margin-bottom: 22px; font-size: 0.95rem;
}

/* Guild members list */
.guild-members-heading {
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.78rem; letter-spacing: 3px;
    color: var(--gold-700); text-transform: uppercase;
    text-align: center; margin: 18px 0 12px;
}
.guild-member-list {
    list-style: none; padding: 0 24px;
    margin: 0; max-height: 420px; overflow-y: auto;
}
.guild-member-row {
    display: grid;
    /* Fixed widths on the last two columns so the stats + role tag align
       vertically regardless of role label width (Member vs Battle Master vs
       Assistant Master). Role column sized to fit the widest label. */
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) 110px 150px;
    align-items: center; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
}
.guild-member-row:last-child { border-bottom: none; }
.guild-member-name {
    color: var(--text-primary); text-decoration: none; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    transition: color var(--dur-med) var(--ease-out);
}
.guild-member-name:hover { color: var(--gold-500); text-decoration: underline; }
.guild-member-class {
    color: var(--text-muted); font-size: 0.85rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.guild-member-stats {
    color: var(--text-muted); font-size: 0.78rem;
    font-variant-numeric: tabular-nums; white-space: nowrap;
    text-align: right;
}
.guild-member-stats .resets-tag { color: var(--gold-500); font-weight: 700; }
.guild-member-stats .level-tag { color: var(--text-body); }
.guild-role {
    font-family: var(--font-display);
    font-size: 0.65rem; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 3px 10px; border-radius: var(--radius-sm);
    font-weight: 700; white-space: nowrap;
    /* Centered within the fixed-width role column so all tags share an axis. */
    text-align: center;
    justify-self: center;
    min-width: 88px;
}
.guild-role--master    { background: rgba(212, 165, 52, 0.14); color: var(--gold-500); border: 1px solid var(--gold-trim-hover); }
.guild-role--assistant { background: rgba(180, 140, 60, 0.08); color: var(--gold-700); border: 1px solid var(--gold-trim); }
.guild-role--battle    { background: rgba(220, 80, 50, 0.10);  color: #e57350;        border: 1px solid rgba(220, 80, 50, 0.30); }
.guild-role--member    { background: rgba(255, 255, 255, 0.03); color: var(--text-muted); border: 1px solid rgba(255, 255, 255, 0.05); }

/* Guild stat grid mirrors profile-stat-grid but always renders 3 boxes. */
.guild-stat-grid { grid-template-columns: repeat(3, 1fr); padding: 0 24px 6px; gap: 12px; }
.guild-stat-grid .stat-value { font-size: 1.15rem; }
.guild-stat-grid .stat-label { font-size: 0.62rem; letter-spacing: 1.5px; }
.guild-member-empty {
    padding: 30px 0; text-align: center;
    color: var(--text-muted); font-style: italic;
    list-style: none;
}

@media (max-width: 640px) {
    .profile-page { padding: 80px 14px 40px; }
    .profile-card-header { padding: 28px 20px 18px; }
    .profile-card-name { font-size: 1.35rem; letter-spacing: 2px; }
    .profile-portrait { width: 110px; height: 110px; }
    .profile-stat-grid { padding: 0 18px 4px; gap: 10px; }
    .guild-member-list { padding: 0 16px; }
    .guild-member-row {
        grid-template-columns: 1fr auto;
        grid-template-areas: 'name role' 'class class' 'stats stats';
        gap: 4px 12px;
    }
    .guild-member-name  { grid-area: name; }
    .guild-role         { grid-area: role; }
    .guild-member-class { grid-area: class; }
    .guild-member-stats { grid-area: stats; }
}

/* === Modal === */
.modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.72);
    z-index: 2000; align-items: center; justify-content: center; backdrop-filter: blur(4px);
    padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: #10101a; border: 1px solid rgba(180, 140, 60, 0.15); border-radius: 10px;
    padding: 40px; width: 370px; position: relative; box-shadow: 0 0 40px rgba(139, 26, 26, 0.1);
}
.modal-close {
    position: absolute; top: 12px; right: 18px; background: none; border: none;
    color: #555; font-size: 1.5rem; cursor: pointer;
}
.modal-close:hover { color: #d4a534; }

/* --- Redesigned auth card (login / register) --- */
.auth-card {
    position: relative;
    width: 380px; max-width: 100%;
    padding: 42px 40px 34px;
    background: #23262b url('assets/redesign/cards/iniciarSesion_card.png') center/100% 100% no-repeat;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
    animation: authIn 0.28s var(--ease-out, ease-out) both;
}
@keyframes authIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.auth-close {
    position: absolute; top: 16px; right: 16px;
    width: 26px; height: 26px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer; opacity: 0.7;
    transition: opacity var(--dur-med, .2s) ease, transform var(--dur-med, .2s) ease;
}
.auth-close img { width: 14px; height: 14px; }
.auth-close:hover { opacity: 1; transform: scale(1.12); }

.auth-form { text-align: left; }
.auth-title {
    font-family: var(--font-display); font-weight: 700;
    color: var(--gold-500); text-align: center;
    margin: 4px 0 26px; letter-spacing: 2px; font-size: 1.5rem;
    text-shadow: 0 0 18px rgba(224, 184, 90, 0.25);
}
.auth-desc {
    text-align: center; color: var(--text-muted);
    font-family: var(--font-body); font-size: 0.82rem; line-height: 1.55;
    margin: -14px 0 22px;
}

.auth-field { position: relative; margin-bottom: 14px; }
.auth-field input {
    width: 100%; height: 50px; padding: 16px 16px 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(180, 140, 60, 0.18); border-radius: 4px;
    color: var(--text-primary); font-family: var(--font-display);
    font-size: 0.82rem; letter-spacing: 1px; text-transform: uppercase;
    outline: none; transition: border-color var(--dur-med, .2s) ease, box-shadow var(--dur-med, .2s) ease;
}
.auth-field input::placeholder { color: transparent; }
.auth-field input:focus { border-color: var(--gold-700); box-shadow: 0 0 10px rgba(212, 165, 52, 0.15); }
.auth-field-pw input { padding-right: 46px; }
/* Floating label: rests centered like a placeholder, rises on focus / when filled */
.auth-field label {
    position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-family: var(--font-display);
    font-size: 0.82rem; letter-spacing: 1px; text-transform: uppercase;
    pointer-events: none;
    transition: top var(--dur-med, .2s) ease, font-size var(--dur-med, .2s) ease, color var(--dur-med, .2s) ease, transform var(--dur-med, .2s) ease;
}
.auth-field input:focus + label,
.auth-field input:not(:placeholder-shown) + label {
    top: 9px; transform: translateY(0); font-size: 0.6rem; color: var(--gold-500);
}
.auth-eye {
    position: absolute; top: 0; right: 0; height: 100%; width: 44px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer; color: var(--text-muted);
    transition: color var(--dur-med, .2s) ease;
}
.auth-eye svg { width: 18px; height: 18px; }
.auth-eye:hover, .auth-eye.active { color: var(--gold-500); }

.auth-btn {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    width: 100%; height: 46px; margin-top: 4px;
    border: 1px solid var(--gold-300); border-radius: 4px; cursor: pointer;
    background: linear-gradient(180deg, #f2d585 0%, #dcac33 52%, #c8901f 100%);
    color: #2a1e05; font-family: var(--font-display); font-weight: 700;
    font-size: 0.92rem; letter-spacing: 1px; text-transform: uppercase;
    transition: filter var(--dur-med, .2s) ease, box-shadow var(--dur-med, .2s) ease;
}
.auth-btn .chev { color: rgba(42, 30, 5, 0.55); font-size: 1.25rem; line-height: 1; }
.auth-btn:hover { filter: brightness(1.07); box-shadow: 0 0 20px rgba(224, 184, 90, 0.4); }
.auth-btn:active { filter: brightness(0.97); }

.auth-remember {
    display: flex; align-items: center; gap: 9px;
    margin: 14px 0 4px; cursor: pointer;
    font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 1px;
    text-transform: uppercase; color: var(--text-muted); user-select: none;
}
.auth-remember input { position: absolute; opacity: 0; width: 0; height: 0; }
.auth-checkbox {
    width: 15px; height: 15px; border: 1px solid rgba(180, 140, 60, 0.4);
    border-radius: 3px; background: rgba(255,255,255,0.04); flex-shrink: 0;
    position: relative; transition: border-color var(--dur-med, .2s) ease, background var(--dur-med, .2s) ease;
}
.auth-remember input:checked + .auth-checkbox { background: var(--gold-700); border-color: var(--gold-500); }
.auth-remember input:checked + .auth-checkbox::after {
    content: ''; position: absolute; left: 4px; top: 1px;
    width: 4px; height: 8px; border: solid #2a1e05; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.auth-remember input:focus-visible + .auth-checkbox { outline: 2px solid var(--gold-700); outline-offset: 2px; }

.auth-links { text-align: center; margin-top: 16px; }
.auth-links a {
    font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.5px;
    color: var(--gold-500); text-decoration: none; transition: color var(--dur-med, .2s) ease;
}
.auth-links a:hover { color: var(--gold-300); text-decoration: underline; }
.auth-links p {
    margin-top: 10px; font-family: var(--font-display);
    font-size: 0.72rem; letter-spacing: 0.5px; color: var(--text-muted);
}

.pw-requirements {
    display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px;
}
.pw-requirements span {
    font-size: 0.65rem; color: #555; transition: color 0.2s;
}
.pw-requirements span.valid { color: #4caf50; }
.h-captcha { display: flex; justify-content: center; margin: 5px 0; }
.form-error { color: #cc4040; font-size: 0.78rem; margin-top: 8px; min-height: 16px; }
.form-success { color: #66bb6a; font-size: 0.78rem; margin-top: 8px; min-height: 16px; }
.form-switch { text-align: center; margin-top: 14px; font-size: 0.78rem; color: #555; }
.form-switch a { color: #d4a534; text-decoration: none; }

/* === Discord Float === */
.discord-float {
    position: fixed; bottom: 25px; right: 25px; width: 56px; height: 56px;
    background: #5865F2; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; z-index: 999; box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
    transition: all 0.3s; text-decoration: none;
}
.discord-float:hover { transform: translateY(-3px); box-shadow: 0 6px 25px rgba(88, 101, 242, 0.6); }

/* === Responsive === */
@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
    .faq { padding: 70px 18px; }
    .faq-item summary { font-size: 1rem; padding: 14px 16px; }
    .faq-item p { padding: 0 16px 16px; font-size: 0.9rem; }
    .hero { padding: 90px 18px 60px; }
    .hero-title { font-size: 2.5rem; letter-spacing: 5px; }
    .hero-slogan { font-size: 1.15rem; }
    .hero-stats { flex-wrap: wrap; gap: 12px; }
    .stat-box { min-width: 105px; padding: 14px 20px; }
    .stat-value { font-size: 1.45rem; }
    .nav-links { display: none; }
    .navbar { padding: 12px 18px; }
    .classes-grid { justify-content: center; }
    .hero-logo { width: 280px; }
    .hero-buttons { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; margin: 0 auto; }
    .hide-mobile { display: none; }
}

/* === Motion preferences === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-embers,
    .hero-logo-wrap { animation: none !important; }
    .online-dot { animation: none !important; box-shadow: 0 0 8px rgba(90, 154, 74, 0.6); }
}