/* ============================================================================
   FEAR SQUAD — SYSTÈME VISUEL v2
   Identité conservée : noir tactique + or, écusson, fleur de lys, typo Bebas/Road Rage/Mono.
   Refonte : jetons de design étendus, typographie fluide, grilles responsives
   supplémentaires, composants affinés, meilleure accessibilité, micro-interactions.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

@font-face {
    font-family: 'Road Rage';
    src: url('fonts/RoadRage.otf') format('opentype');
    font-display: swap;
}

:root {
    /* Couleurs de marque (inchangées) */
    --bg: #08080a;
    --bg-alt: #0d0d0f;
    --card: #121212;
    --card-2: #16160f;
    --gold: #e8b923;
    --gold-light: #fbe58a;
    --gold-dim: rgba(232,185,35,.25);
    --border: #2a2517;
    --muted: #8a8270;
    --text: #ece6d6;
    --danger: #d9534f;
    --ok: #3fbf63;

    /* Nouveaux jetons */
    --radius-sm: 3px;
    --radius: 6px;
    --radius-lg: 10px;
    --shadow-soft: 0 8px 30px rgba(0,0,0,.35);
    --shadow-gold: 0 10px 30px rgba(232,185,35,.12);
    --ease: cubic-bezier(.16,.8,.28,1);
    --dur: .25s;
    --container: 1180px;
    --gutter: clamp(18px, 4vw, 32px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg) url('img/body-bg.jpg') center center / cover no-repeat fixed;
    color: var(--text); font-family: 'DM Sans', sans-serif;
    line-height: 1.65; overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color var(--dur) var(--ease); }
img { display: block; max-width: 100%; }
p, h1, h2, h3, .shout, .feed-item, td { overflow-wrap: break-word; word-break: break-word; }
.feed-item > div { min-width: 0; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

::selection { background: var(--gold); color: #000; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.display { font-family: 'Bebas Neue', sans-serif; letter-spacing: .02em; }
.mono { font-family: 'JetBrains Mono', monospace; }
.gold-text { background: linear-gradient(180deg,#fbe58a,#e8b923 45%,#8a6a14); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
h2.sec.gold-text { background: none; -webkit-text-fill-color: currentColor; color: var(--text); }
.gold-link { color: var(--gold); }
.overline { font-family: 'JetBrains Mono', monospace; font-size: clamp(10px,1vw,12px); letter-spacing: .35em; text-transform: uppercase; color: rgba(232,185,35,.85); }

/* =========================== EN-TÊTE DE PAGE (pages internes) =========================== */
.page-hero { position: relative; overflow: hidden; height: clamp(220px, 34vw, 420px); }
.page-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: saturate(1.1); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, transparent 25%); }
.page-hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(24px,4vw,44px); z-index: 1; }
.page-hero-title { font-family: 'Road Rage', cursive; font-size: clamp(48px,9vw,96px); line-height: .95; color: var(--text); text-shadow: 0 4px 24px rgba(0,0,0,.6); }
.page-hero-sub { color: rgba(236,230,214,.75); margin-top: 6px; max-width: 560px; }

/* =========================== PANNEAU RÈGLEMENT (remplace un poster image) =========================== */
.rules-panel { position: relative; border: 1px solid rgba(232,185,35,.3); border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; padding: 40px 32px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at 30% 20%, rgba(232,185,35,.1), transparent 60%), #0c0c0c; }
.rules-panel .emblem { position: absolute; right: -40px; bottom: -40px; width: 320px; opacity: .14; filter: grayscale(1) brightness(1.4); pointer-events: none; }
.rules-panel .top { position: relative; z-index: 1; }
.rules-panel .num-badge { display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(232,185,35,.4); padding: 6px 14px; border-radius: 999px; }
.rules-panel h2 { font-family: 'Road Rage', cursive; font-size: clamp(52px,6vw,72px); color: var(--gold); line-height: .95; margin-top: 22px; text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.rules-panel .sub { font-family: 'Bebas Neue', sans-serif; letter-spacing: .1em; color: rgba(236,230,214,.7); font-size: 18px; margin-top: 6px; }
.rules-panel blockquote { position: relative; z-index: 1; border-left: 3px solid var(--gold); padding-left: 16px; color: rgba(236,230,214,.6); font-size: 14px; font-style: italic; margin-top: 30px; }

.rules-cards-grid { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.rules-cards-grid img { width: 100%; max-width: 260px; height: auto; display: block; filter: drop-shadow(0 12px 26px rgba(0,0,0,.55)); transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease); }
.rules-cards-grid img:hover { transform: translateY(-6px) scale(1.03); filter: drop-shadow(0 16px 32px rgba(232,185,35,.25)); }

.eyebrow-badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border: 1px solid rgba(232,185,35,.4); border-radius: 999px; background: rgba(232,185,35,.06); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-light); }
.eyebrow-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 8px rgba(46,204,113,.9); animation: pulse-online 2s infinite; }

.sec-head { text-align: center; margin-bottom: clamp(32px,5vw,52px); }
.sec-head .eyebrow-badge { margin-bottom: 18px; }
.sec-head h2.sec { margin: 0; }
.sec-head .rule { width: 90px; height: 3px; margin: 18px auto 0; background: linear-gradient(to right, transparent, var(--gold), transparent); border-radius: 3px; }
.sec-head p { max-width: 620px; margin: 16px auto 0; color: rgba(236,230,214,.65); }

.section-divider { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 0 clamp(30px,5vw,48px); }
.section-divider .l { height: 1px; width: clamp(60px,14vw,220px); background: linear-gradient(to right, transparent, var(--border)); }
.section-divider .l.r { background: linear-gradient(to left, transparent, var(--border)); }
.section-divider .diamond { width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 10px rgba(232,185,35,.6); }

/* ============================== ACTIVITÉ RÉCENTE ============================== */
.activity-feed { max-height: 360px; overflow-y: auto; padding-right: 6px; }
.activity-feed::-webkit-scrollbar { width: 6px; }
.activity-feed::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 20px; }
.activity-entry {
    display: flex; align-items: center; gap: 16px; margin-bottom: 12px; padding: 14px 16px;
    border: 1px solid rgba(212,175,55,.22); border-left: 3px solid var(--gold);
    background: linear-gradient(90deg, rgba(255,255,255,.03), transparent);
    border-radius: var(--radius); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.activity-entry:hover { transform: translateX(6px); box-shadow: var(--shadow-gold); border-left-color: var(--gold-light); }
.activity-entry .icon { width: 44px; height: 44px; border-radius: 50%; background: #181818; display: flex; justify-content: center; align-items: center; color: var(--gold); font-size: 20px; flex: none; }
.activity-entry .title { color: #fff; font-weight: 600; font-size: 14px; }
.activity-entry .time { color: var(--muted); font-size: 12px; margin-top: 3px; font-family: 'JetBrains Mono', monospace; }

/* ================================== NAV ================================== */
header.nav { position: sticky; top: 0; z-index: 50; background: rgba(6,6,7,.86); backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid rgba(232,185,35,.18); }
.nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand .fear { font-family: 'Road Rage', cursive; font-size: 34px; color: var(--gold); text-shadow: 0 0 12px rgba(232,185,35,.35); }
.brand .est { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: #6b6555; margin-top: -3px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--gold); transition: width var(--dur) var(--ease); }
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; gap: 10px; align-items: center; }
.nav-social { display: flex; gap: 14px; align-items: center; margin-right: 14px; }
.nav-social img { width: 32px; height: 32px; display: block; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-social a:hover img { transform: translateY(-2px); opacity: .85; }

.btn {
    font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
    padding: 11px 22px; border: none; cursor: pointer; border-radius: var(--radius-sm);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-gold { background: var(--gold); color: #000; box-shadow: 0 0 0 rgba(232,185,35,0); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-sm { padding: 8px 14px; }
.btn:active { transform: translateY(0); }

/* =============================== HERO =============================== */
.hero { position: relative; overflow: hidden; }
.hero img.banner { width: 100%; display: block; }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(to top, var(--bg) 0%, rgba(8,8,10,.55) 40%, transparent 100%); pointer-events: none; z-index: 1; }
.hero-text { max-width: 780px; margin: clamp(-60px,-6vw,-30px) auto 0; text-align: center; padding-bottom: 60px; position: relative; z-index: 1; }
.hero-rule { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 40px 0 24px; }
.hero-rule .line { height: 1px; width: 64px; background: linear-gradient(to right,transparent,var(--gold)); }
.hero-rule span { font-family: 'JetBrains Mono', monospace; font-size: clamp(11px,1.4vw,13px); letter-spacing: .3em; text-transform: uppercase; }
.hero-cta { display: flex; gap: 16px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

.clockbar { border-bottom: 1px solid var(--border); background: rgba(0,0,0,.4); text-align: center; padding: 12px; }
.clockbar span { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }

section.blk { padding: clamp(48px,7vw,80px) 0; position: relative; }
h2.sec { font-family: 'Bebas Neue', sans-serif; font-size: clamp(34px,6vw,56px); letter-spacing: .02em; }
.sec-center { text-align: center; margin-bottom: clamp(28px,4vw,44px); }

.card { border: 1px solid rgba(232,185,35,.22); background: rgba(18,18,18,.62); backdrop-filter: blur(10px); padding: 28px; border-radius: var(--radius-lg); position: relative; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.card::before { content:""; position: absolute; top: 0; left: 18px; right: 18px; height: 2px; background: linear-gradient(to right, transparent, var(--gold), transparent); opacity: .7; }
a.card:hover, .card.hoverable:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-soft), var(--shadow-gold); }
.clip { clip-path: polygon(0 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%); }

.btn { position: relative; overflow: hidden; }
.btn span.shine { position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s var(--ease); }
.btn:hover span.shine { transform: translateX(120%); }

/* ============================= MUR DE MESSAGES ============================= */
.shoutbox { position: relative; border: 1px solid rgba(232,185,35,.25); background: rgba(12,12,12,.75); backdrop-filter: blur(10px); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.shoutbox::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; z-index: 1; }
.shout-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, rgba(232,185,35,.1), rgba(0,0,0,.4)); }
.shout-head .t { display: flex; align-items: center; gap: 10px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }
.shout-head .t::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 8px rgba(46,204,113,.9); animation: pulse-online 2s infinite; flex: none; }
.shout-list { max-height: 360px; overflow-y: auto; }
.shout-list::-webkit-scrollbar { width: 6px; }
.shout-list::-webkit-scrollbar-track { background: rgba(0,0,0,.3); }
.shout-list::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 20px; }
.shout-empty { padding: 32px 18px; text-align: center; }
.shout { display: flex; gap: 16px; align-items: flex-start; padding: 16px 20px; border-bottom: 1px solid rgba(42,37,23,.6); border-left: 3px solid transparent; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); animation: shout-in .35s var(--ease) both; }
.shout:hover { background: rgba(232,185,35,.05); border-left-color: var(--gold-dim); }
.shout:has(.admin) { border-left-color: var(--danger); background: rgba(217,83,79,.045); }
.shout-avatar { flex: none; width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: .05em; color: var(--gold-light); background: linear-gradient(160deg, rgba(232,185,35,.22), rgba(232,185,35,.04)); border: 1px solid var(--gold-dim); box-shadow: 0 0 0 3px rgba(232,185,35,.05); overflow: hidden; }
.shout-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.shout:has(.admin) .shout-avatar { color: #f7c9c7; background: linear-gradient(160deg, rgba(217,83,79,.28), rgba(217,83,79,.05)); border-color: rgba(217,83,79,.5); box-shadow: 0 0 0 3px rgba(217,83,79,.06); }
.shout-body { flex: 1; min-width: 0; }
.shout .meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.shout .admin { color: var(--danger); font-weight: 700; } .shout .who { color: var(--gold); }
.shout .time { color: var(--muted); white-space: nowrap; }
.shout .msg { margin-top: 5px; font-size: 14px; line-height: 1.5; color: rgba(236,230,214,.92); }
.shout-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); background: rgba(0,0,0,.45); flex-wrap: wrap; }
.shout-form input { flex: 1; min-width: 160px; background: rgba(0,0,0,.4); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; color: var(--text); font-family: 'DM Sans', sans-serif; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.shout-form input:focus { outline: none; border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(232,185,35,.1); }
.shout-form input::placeholder { color: var(--muted); }
.shout-mod { background: transparent; border: 1px solid var(--border); color: var(--muted); cursor: pointer; font-size: 12px; padding: 3px 7px; line-height: 1; border-radius: var(--radius-sm); transition: border-color var(--dur), color var(--dur); }
.shout-mod:hover { border-color: var(--danger); color: var(--danger); }
@keyframes shout-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* =============================== ESCOUADE =============================== */
.tier { margin-bottom: 50px; }
.tier-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.tier-head .num { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .3em; color: var(--gold); background: rgba(232,185,35,.08); border: 1px solid rgba(232,185,35,.3); padding: 5px 10px; border-radius: 4px; }
.tier-head .lbl { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.tier-head .count { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted); }
.tier-head .line { height: 1px; flex: 1; background: linear-gradient(to right, var(--border), transparent); }
.roster-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.member { border: 1px solid var(--border); background: var(--card); position: relative; overflow: hidden; border-radius: var(--radius-lg); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.member:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: var(--shadow-soft), var(--shadow-gold); }
.member .ph { aspect-ratio: 1; overflow: hidden; background: #000; position: relative; }
.member .ph::after { content:""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.15) 45%, transparent 70%); }
.member img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s var(--ease), transform .5s var(--ease); }
.member:hover img { filter: grayscale(0); transform: scale(1.08); }
.member .nm { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 14px; font-family: 'Bebas Neue', sans-serif; font-size: clamp(17px,2vw,22px); letter-spacing: .03em; z-index: 1; }
.online-dot { position: absolute; top: 10px; right: 10px; width: 12px; height: 12px; border-radius: 50%; background: #2ecc71; border: 2px solid #000; box-shadow: 0 0 0 2px rgba(46,204,113,.4), 0 0 10px rgba(46,204,113,.8); z-index: 3; animation: pulse-online 2s infinite; }
@keyframes pulse-online { 0%,100% { box-shadow: 0 0 0 2px rgba(46,204,113,.4), 0 0 8px rgba(46,204,113,.6); } 50% { box-shadow: 0 0 0 4px rgba(46,204,113,.15), 0 0 14px rgba(46,204,113,.9); } }
.presence-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.presence-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.presence-badge.is-online { color: #2ecc71; }
.presence-badge.is-online .dot { background: #2ecc71; box-shadow: 0 0 8px rgba(46,204,113,.8); animation: pulse-online 2s infinite; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.social-link { display: inline-flex; align-items: center; gap: 7px; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid rgba(232,185,35,.35); background: rgba(0,0,0,.4); color: var(--gold); font-size: 17px; border-radius: var(--radius-sm); transition: background-color var(--dur), color var(--dur), transform var(--dur), border-color var(--dur); }
.social-link:hover { background: var(--gold); color: #000; transform: translateY(-2px); border-color: var(--gold); }
.social-link .social-tag { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .04em; }
.ranks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.rank-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.5); color: #ece6d6; }
.rank-badge i { font-size: 14px; }
.rank-badge .rank-mode { opacity: .7; }
.rank-badge .rank-tier { font-weight: 700; }
.rank-bronze { border-color: #cd7f32; color: #e0a86b; } .rank-bronze i { color: #cd7f32; }
.rank-silver { border-color: #c0c8d0; color: #dde3ea; } .rank-silver i { color: #c0c8d0; }
.rank-gold { border-color: #e8b923; color: #f2d264; } .rank-gold i { color: #e8b923; }
.rank-platinum { border-color: #4fd1c5; color: #8de9e0; } .rank-platinum i { color: #4fd1c5; }
.rank-diamond { border-color: #5ab0ff; color: #9acdff; } .rank-diamond i { color: #5ab0ff; }
.rank-crimson { border-color: #e0115f; color: #ff5c8a; } .rank-crimson i { color: #e0115f; }
.rank-iridescent { border: none; color: #fff; background: linear-gradient(100deg,#7b2ff7,#2ec5ff,#ff2fb3,#7b2ff7); background-size: 300% 100%; animation: irid-shift 5s linear infinite; }
.rank-iridescent i { color: #fff; }

/* ---- Website (staff/support) rank badges ---- */
.site-rank-badge { display: inline-block; line-height: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.55)); transition: transform var(--dur); }
.site-rank-badge img { display: block; height: 22px; width: auto; }
.site-rank-badge.site-rank-sm img { height: 15px; }
.site-rank-badge.site-rank-md img { height: 22px; }
.site-rank-badge.site-rank-lg img { height: 30px; }
.site-rank-badge:hover { transform: translateY(-1px) scale(1.03); }
.name-with-rank { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.roster-badge-row { margin-top: 4px; display: flex; justify-content: center; }
.post-siterank { margin: 4px 0; }
@keyframes irid-shift { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
.rank-top250 { border-color: #ffd700; color: #1a1204; background: linear-gradient(100deg,#fff1a8,#ffd700,#e8a300,#ffd700); background-size: 300% 100%; animation: irid-shift 4s linear infinite; font-weight: 700; }
.rank-top250 i { color: #1a1204; }

/* ---- Rank banner images (Warzone / Multiplayer, image-based tiers) ---- */
.rank-mode-lbl { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.rank-badge-img { display: inline-block; }
.rank-badge-img .rank-banner { display: block; width: 168px; height: auto; border-radius: var(--radius-sm); filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); transition: transform var(--dur) var(--ease); }
.rank-badge-img .rank-banner:hover { transform: translateY(-2px) scale(1.02); }
.site-rank-wrap { display: inline-flex; flex-direction: column; align-items: flex-start; }

/* ---- FeaR Rewards (earned badge icons) ---- */
.fear-rewards-wrap { margin-top: 20px; }
.fear-rewards-group { margin-top: 12px; }
.fear-rewards-group-title { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.fear-rewards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fear-badge { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: var(--radius-sm); border: 1px solid rgba(232,185,35,.25); background: rgba(0,0,0,.4); overflow: hidden; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.fear-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fear-badge:hover { transform: translateY(-2px); border-color: var(--gold); }
.fear-badge-sm { width: 56px; height: 56px; }
.fear-badge-lg { width: 112px; height: 112px; }

/* ---- Admin badge picker (admin_edit.php) — compact grid of checkboxes ---- */
.badge-picker { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.badge-picker-group .badge-picker-title { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; text-align: center; }
.badge-picker-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.badge-check { display: none; }
.badge-check-lbl { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; width: 92px; padding: 6px; border: 1px solid rgba(232,185,35,.18); background: rgba(0,0,0,.35); border-radius: var(--radius-sm); cursor: pointer; text-align: center; transition: border-color var(--dur), background-color var(--dur); }
.badge-check-lbl .fear-badge-frame {
  display: block; width: 100%; aspect-ratio: 1 / 1;
  background: radial-gradient(120% 140% at 50% 12%, #1c1a14 0%, #0a0906 55%, #000 100%);
  border: 1px solid rgba(232,185,35,.3); border-radius: 6px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6) inset;
}
.badge-check-lbl img { display: block; height: 100%; width: 100%; object-fit: contain; }
.badge-check-lbl span { font-family: 'JetBrains Mono', monospace; font-size: 8px; letter-spacing: .02em; text-transform: uppercase; color: rgba(236,230,214,.7); line-height: 1.2; }
.badge-check:checked + .badge-check-lbl { border-color: var(--gold); background: rgba(232,185,35,.12); }
.badge-check:checked + .badge-check-lbl .fear-badge-frame { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(0,0,0,.6) inset, 0 0 10px rgba(232,185,35,.35); }
.badge-check:checked + .badge-check-lbl span { color: var(--gold); }
.badge-check-lbl:hover .fear-badge-frame { border-color: rgba(232,185,35,.6); }

/* ===== Username Effects & Clan Tags ===== */
.clan-tag{display:inline-block;font-family:'JetBrains Mono';font-size:.85em;font-weight:700;letter-spacing:.05em;border:1px solid;border-radius:3px;padding:0 4px;margin-right:2px;vertical-align:middle}
.uname-link{text-decoration:none;color:inherit}
.uname{position:relative;display:inline-block;font-weight:700}

/* --- Chrome Shine (animated brushed-metal gradient text) --- */
.uname-fx-chrome{background-image:linear-gradient(120deg,#8a8f98 0%,#ffffff 25%,#c9ced6 40%,#6f747c 55%,#ffffff 70%,#8a8f98 100%);background-size:220% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:uname-chrome-sweep 3.2s linear infinite}
@keyframes uname-chrome-sweep{0%{background-position:0 0}100%{background-position:-220% 0}}

/* --- Rainbow Shift (animated hue-cycling gradient) --- */
.uname-fx-rainbow{background-image:linear-gradient(90deg,#ff3b3b,#ff9f1a,#f4e01a,#4ee44e,#3ab0ff,#8a5bff,#ff3b3b);background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 0 16px rgba(255,255,255,.25);animation:uname-rainbow-shift 4s linear infinite}
@keyframes uname-rainbow-shift{0%{background-position:0 0}100%{background-position:-300% 0}}

/* --- Holographic (iridescent pastel sweep, subtle glow) --- */
.uname-fx-holo{background-image:linear-gradient(100deg,#ff9de2 0%,#a0e7ff 20%,#c8ffcf 40%,#fff5a0 60%,#c9b6ff 80%,#ff9de2 100%);background-size:260% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 0 14px rgba(255,255,255,.35);animation:uname-holo-sweep 5s ease-in-out infinite}
@keyframes uname-holo-sweep{0%,100%{background-position:0 0}50%{background-position:-160% 0}}

/* --- Flaming Text --- */
.uname-fx-flame .uname-text{background-image:linear-gradient(180deg,#fff3b0 0%,#ffcf40 18%,#ff8c1a 42%,#ff3d00 68%,#b0140a 100%);background-size:100% 200%;-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 0 10px rgba(255,90,0,.6);animation:uname-flame-flicker 1.4s ease-in-out infinite}
@keyframes uname-flame-flicker{0%,100%{background-position:0 0;filter:brightness(1)}25%{background-position:0 15%;filter:brightness(1.08)}50%{background-position:0 5%;filter:brightness(.95)}75%{background-position:0 20%;filter:brightness(1.05)}}

/* --- Shadow Smoke (dark ash gradient, horror-clan tone) --- */
.uname-fx-shadow .uname-text{background-image:linear-gradient(180deg,#c9c4b8 0%,#8a8478 30%,#4a463d 55%,#1c1a15 80%,#000 100%);background-size:100% 220%;-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 0 12px rgba(0,0,0,.85);animation:uname-shadow-drift 3.2s ease-in-out infinite}
@keyframes uname-shadow-drift{0%,100%{background-position:0 0}50%{background-position:0 30%}}

/* --- Glitch (RGB-split flicker) --- */
.uname-fx-glitch{color:var(--text);text-shadow:0 0 2px rgba(255,255,255,.4);animation:uname-glitch-jitter 2.6s steps(1) infinite}
@keyframes uname-glitch-jitter{
  0%,92%,100%{text-shadow:0 0 2px rgba(255,255,255,.4);transform:translate(0,0)}
  93%{text-shadow:-2px 0 #ff2b6e,2px 0 #2bd4ff;transform:translate(-1px,0)}
  94%{text-shadow:2px 0 #ff2b6e,-2px 0 #2bd4ff;transform:translate(1px,0)}
  95%{text-shadow:-1px 0 #ff2b6e,1px 0 #2bd4ff;transform:translate(0,-1px)}
  96%{text-shadow:0 0 2px rgba(255,255,255,.4);transform:translate(0,0)}
  97%{text-shadow:2px 0 #ff2b6e,-2px 0 #2bd4ff;transform:translate(1px,1px)}
  98%{text-shadow:0 0 2px rgba(255,255,255,.4);transform:translate(0,0)}
}

/* --- Blood Drip --- */
.uname-fx-blood{background-image:linear-gradient(180deg,#ff6b6b 0%,#c81d25 35%,#7a0d12 65%,#3a0508 100%);background-size:100% 220%;-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 0 10px rgba(180,10,10,.6);animation:uname-blood-drip 2.4s ease-in-out infinite}
@keyframes uname-blood-drip{0%,100%{background-position:0 0}50%{background-position:0 35%}}

/* --- Venom --- */
.uname-fx-venom{background-image:linear-gradient(100deg,#eaffb0 0%,#8aff2e 30%,#2fae00 60%,#0c4d00 100%);background-size:220% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 0 10px rgba(70,200,20,.6);animation:uname-venom-pulse 2.8s ease-in-out infinite}
@keyframes uname-venom-pulse{0%,100%{background-position:0 0;filter:brightness(1)}50%{background-position:-90% 0;filter:brightness(1.25)}}

/* --- Frostbite --- */
.uname-fx-frostbite{background-image:linear-gradient(100deg,#ffffff 0%,#bfe9ff 25%,#5fc2ff 50%,#bfe9ff 75%,#ffffff 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 0 12px rgba(120,200,255,.6);animation:uname-frost-shimmer 3.6s linear infinite}
@keyframes uname-frost-shimmer{0%{background-position:0 0}100%{background-position:-250% 0}}

/* --- Cyber Pink --- */
.uname-fx-cyber{background-image:linear-gradient(90deg,#ff2bd6,#2bf0ff,#ff2bd6);background-size:260% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 0 14px rgba(255,43,214,.5);animation:uname-cyber-shift 3s linear infinite}
@keyframes uname-cyber-shift{0%{background-position:0 0}100%{background-position:-260% 0}}

/* --- Void --- */
.uname-fx-void{color:#c9a8ff;text-shadow:0 0 6px #6a0dad,0 0 16px rgba(106,13,173,.7);animation:uname-void-pulse 2.2s ease-in-out infinite}
@keyframes uname-void-pulse{0%,100%{text-shadow:0 0 6px #6a0dad,0 0 16px rgba(106,13,173,.7)}50%{text-shadow:0 0 10px #9b30ff,0 0 30px rgba(155,48,255,.9)}}

/* --- FEAR premium username collection --- */
.uname-fx-goldrush{background:linear-gradient(105deg,#6f4b00 0%,#d39b16 24%,#fff4b0 42%,#d4af37 52%,#fff8cf 61%,#9b6900 82%,#e8b923 100%);background-size:260% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 1px 0 #4d3300,0 0 9px rgba(232,185,35,.55);animation:uname-goldrush 2.8s linear infinite}
@keyframes uname-goldrush{to{background-position:-260% 0}}

.uname-fx-diamond{background:linear-gradient(110deg,#8196aa 0%,#fff 20%,#9eeaff 34%,#fff 48%,#d7b7ff 61%,#fff 77%,#7791a7 100%);background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 0 5px rgba(210,245,255,.9),0 0 13px rgba(130,205,255,.55);animation:uname-diamond 2.1s linear infinite}
@keyframes uname-diamond{to{background-position:-300% 0}}

.uname-fx-crimson{color:#ff5364;text-shadow:0 0 5px #d20c2b,0 0 14px rgba(255,0,50,.68),0 0 28px rgba(130,0,22,.4);animation:uname-crimson 1.8s ease-in-out infinite}
@keyframes uname-crimson{50%{color:#fff0f1;text-shadow:0 0 7px #ff3856,0 0 22px rgba(255,0,55,.95),0 0 38px rgba(180,0,38,.65)}}

.uname-fx-toxic{background:linear-gradient(90deg,#173600,#b7ff21,#efffa8,#65e400,#173600);background-size:240% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 0 6px rgba(118,255,24,.75),0 0 16px rgba(62,220,0,.5);animation:uname-toxic 2.5s linear infinite}
@keyframes uname-toxic{to{background-position:-240% 0}}

.uname-fx-royal{background:linear-gradient(100deg,#4a126d,#b76cff,#f4d5ff,#8a2be2,#4a126d);background-size:240% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 0 7px rgba(188,100,255,.72),0 0 18px rgba(101,25,170,.55);animation:uname-royal 3s linear infinite}
@keyframes uname-royal{to{background-position:-240% 0}}

.uname-fx-plasma{background:linear-gradient(90deg,#00eaff,#ffffff,#ff24e6,#794dff,#00eaff);background-size:260% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 0 6px rgba(0,234,255,.7),0 0 15px rgba(255,36,230,.55);animation:uname-plasma 2.2s linear infinite}
@keyframes uname-plasma{to{background-position:-260% 0}}

.uname-fx-ghost{color:#dffaff;text-shadow:0 0 6px rgba(180,245,255,.85),0 0 18px rgba(92,190,210,.5);animation:uname-ghost 2.8s ease-in-out infinite}
@keyframes uname-ghost{0%,100%{opacity:.55;filter:blur(.15px)}50%{opacity:1;filter:blur(0)}}

.uname-fx-obsidian{background:linear-gradient(110deg,#070707,#454545 28%,#d4af37 43%,#fff1a4 49%,#8d6500 56%,#222 72%,#050505);background-size:270% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-stroke:.25px rgba(232,185,35,.72);text-shadow:0 1px 1px #000,0 0 8px rgba(212,175,55,.4);animation:uname-obsidian 3.4s linear infinite}
@keyframes uname-obsidian{to{background-position:-270% 0}}

/* --- Real canvas effects: fire, rain, electricity, particle sparkle ---
   The <canvas> overlay is positioned/animated by assets/js/username-fx.js.
   These base rules just style the text underneath and keep the canvas from
   affecting page layout or intercepting clicks. */
.uname[data-fx-canvas="1"]{overflow:visible}
.uname[data-fx-canvas="1"] .uname-text{position:relative;z-index:2}
.uname-canvas{position:absolute;top:0;left:0;pointer-events:none;z-index:1}
.uname-fx-fire .uname-text{color:#ffb347;text-shadow:0 0 6px rgba(255,120,20,.7),0 0 16px rgba(255,60,0,.5)}
.uname-fx-rain .uname-text{color:#cfeaff;text-shadow:0 0 5px rgba(120,190,255,.6)}
.uname-fx-electric .uname-text{color:#dff3ff;text-shadow:0 0 5px #8fdcff,0 0 14px rgba(90,190,255,.6)}
.uname-fx-particle .uname-text{color:var(--gold);text-shadow:0 0 6px rgba(232,185,35,.7)}
.uname-fx-smoke .uname-text{color:#cfcabd;text-shadow:0 0 6px rgba(120,115,100,.6)}
.uname-fx-snow .uname-text{color:#eef7ff;text-shadow:0 0 6px rgba(200,230,255,.7)}
.uname-fx-ash .uname-text{color:#ffb27a;text-shadow:0 0 6px rgba(255,120,40,.5)}
.uname-fx-matrix .uname-text{color:#8cff6b;text-shadow:0 0 6px rgba(60,255,80,.7)}
.uname-fx-static .uname-text{color:#e8e8e8;text-shadow:0 0 4px rgba(255,255,255,.5)}

@media (prefers-reduced-motion: reduce){
  .uname-fx-flame .uname-text,.uname-fx-shadow .uname-text,.uname-fx-chrome,.uname-fx-rainbow,.uname-fx-holo,.uname-fx-glitch,.uname-fx-blood,.uname-fx-venom,.uname-fx-frostbite,.uname-fx-cyber,.uname-fx-void,.uname-fx-goldrush,.uname-fx-diamond,.uname-fx-crimson,.uname-fx-toxic,.uname-fx-royal,.uname-fx-plasma,.uname-fx-ghost,.uname-fx-obsidian{animation:none}
  .uname-canvas{display:none}
}

/* ---- XP / Level bar ---- */
.xp-wrap { margin-top: 18px; }
.xp-bar { position: relative; width: 100%; height: 8px; border-radius: 20px; background: rgba(232,185,35,.08); border: 1px solid rgba(232,185,35,.25); overflow: hidden; margin-top: 6px; }
.xp-bar-fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); box-shadow: 0 0 8px rgba(232,185,35,.6); transition: width .6s var(--ease); }
.xp-sub { display: block; margin-top: 5px; font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--muted); }

/* ---- Progress page checklist rows ---- */
.progress-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(42,37,23,.5); font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--muted); }
.progress-row:last-child { border-bottom: none; }
.progress-row.is-done { color: rgba(236,230,214,.92); }
.progress-row-icon { flex: none; width: 18px; text-align: center; font-size: 12px; color: var(--muted); }
.progress-row.is-done .progress-row-icon { color: #5cb85c; }
.progress-row-label { flex: 1; }
.progress-row-req { flex: none; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dim); }
.progress-row.is-done .progress-row-req { color: var(--gold); }

/* ============================= TOURNAMENTS ============================= */
.tourney-hero { width: 100%; max-height: 420px; overflow: hidden; border-bottom: 1px solid rgba(232,185,35,.25); }
.tourney-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tourney-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.tourney-card { display: block; text-decoration: none; color: inherit; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.tourney-card:hover { transform: translateY(-3px); border-color: var(--gold); }

/* ---- Member chip (avatar + name), used in brackets/podiums ---- */
.member-chip { display: inline-flex; align-items: center; gap: 8px; }
.member-chip-avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; font-family: 'Bebas Neue', sans-serif; font-size: 13px; color: var(--gold-light); background: linear-gradient(160deg, rgba(232,185,35,.22), rgba(232,185,35,.04)); border: 1px solid var(--gold-dim); }
.member-chip-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-chip.is-empty .member-chip-avatar { border-style: dashed; opacity: .5; }
.member-chip-lg .member-chip-avatar { width: 44px; height: 44px; font-size: 18px; }

/* ---- Bracket ---- */
.bracket { display: flex; gap: 40px; align-items: flex-start; padding: 10px 4px 30px; min-width: max-content; }
.bracket-round { display: flex; flex-direction: column; justify-content: space-around; gap: 24px; min-width: 220px; }
.bracket-round-title { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 6px; }
.bracket-match { border: 1px solid rgba(232,185,35,.22); background: rgba(18,18,18,.6); border-radius: var(--radius); overflow: hidden; }
.bracket-slot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px solid rgba(42,37,23,.6); font-size: 13px; }
.bracket-slot:last-of-type { border-bottom: none; }
.bracket-slot.is-winner { background: rgba(232,185,35,.08); color: var(--gold-light); font-weight: 700; }
.bracket-slot.is-loser { opacity: .5; }
.bracket-score { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--gold); flex: none; }
.bracket-match-status { display: block; padding: 5px 12px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-top: 1px solid rgba(42,37,23,.6); }
.bracket-report-form { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-top: 1px solid rgba(42,37,23,.6); flex-wrap: wrap; }
.bracket-report-form input[type="number"] { width: 70px; background: rgba(0,0,0,.4); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 8px; color: var(--text); font-size: 12px; }

/* ---- Team chip (2v2) ---- */
.team-chip { display: flex; flex-direction: column; gap: 4px; }
.team-name { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dim); }
.team-chip-members { display: flex; flex-direction: column; gap: 3px; }

/* ---- Podium ---- */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.podium-place { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 16px; border-radius: var(--radius); border: 1px solid rgba(232,185,35,.25); background: rgba(0,0,0,.3); min-width: 140px; }
.podium-rank { font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: var(--gold); }
.podium-1 { border-color: var(--gold); background: rgba(232,185,35,.08); order: 2; padding-top: 30px; }
.podium-1 .podium-rank { font-size: 26px; }
.podium-2 { order: 1; }
.podium-3 { order: 3; }
.podium-3 .member-chip { margin-bottom: 4px; }

/* ---- Time on site ---- */
.tenure-wrap { margin-top: 18px; }
.tenure-lbl { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.tenure-value { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: .03em; color: var(--gold-light); }
.tenure-sub { display: block; font-family: 'DM Sans', sans-serif; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); margin-top: 2px; }

/* ---- Click-to-enlarge lightbox for badges / rank images ---- */
img.zoomable { cursor: zoom-in; transition: transform var(--dur) var(--ease); }
.badge-lightbox { position: fixed; inset: 0; z-index: 999; display: none; align-items: center; justify-content: center; padding: 32px; background: rgba(4,4,5,.9); backdrop-filter: blur(6px); cursor: zoom-out; opacity: 0; transition: opacity var(--dur) var(--ease); }
.badge-lightbox.is-open { display: flex; opacity: 1; }
.badge-lightbox-inner { max-width: min(90vw, 520px); text-align: center; }
.badge-lightbox-img { display: block; max-width: 100%; max-height: 78vh; width: auto; height: auto; margin: 0 auto; border-radius: var(--radius); filter: drop-shadow(0 12px 40px rgba(0,0,0,.6)); }
.badge-lightbox-cap { margin-top: 14px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }

/* =============================== FORMULAIRES =============================== */
input, textarea, select { width: 100%; background: #161616; border: 1px solid var(--border); color: var(--text); padding: 11px 12px; font-family: 'JetBrains Mono', monospace; font-size: 14px; border-radius: var(--radius-sm); transition: border-color var(--dur) var(--ease); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); }
input::placeholder, textarea::placeholder { color: #5f5a4c; }
label.fld { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; margin-top: 14px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.notice { border: 1px solid rgba(232,185,35,.4); background: rgba(232,185,35,.06); padding: 14px 16px; font-family: 'JetBrains Mono', monospace; font-size: 13px; margin: 16px 0; border-radius: var(--radius-sm); }
.notice.ok { border-color: #3a7d44; background: rgba(58,125,68,.12); }
.notice.err { border-color: var(--danger); background: rgba(217,83,79,.12); color: #f0b0ad; }

/* =============================== STATISTIQUES =============================== */
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: clamp(28px,4vw,40px); line-height: 1; }
.stat-icon { width: 52px; height: 52px; border-radius: var(--radius); background: rgba(232,185,35,.1); border: 1px solid rgba(232,185,35,.3); display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; background: #161616; border: 1px solid var(--border); padding: 2px 8px; color: var(--gold); display: inline-block; margin: 2px; border-radius: var(--radius-sm); }

.media-yt { position: relative; padding-top: 56.25%; border: 1px solid rgba(232,185,35,.3); }
.media-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ================================ FIL D'INFOS ================================ */
.feed-item { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--border); background: rgba(18,18,18,.6); padding: 16px; margin-bottom: 12px; border-radius: var(--radius); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.feed-item:hover { border-color: var(--gold); transform: translateX(4px); }

/* =============================== TABLEAUX =============================== */
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); padding: 12px; background: rgba(0,0,0,.4); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid rgba(42,37,23,.5); white-space: nowrap; }
@media (max-width: 640px) {
  table { min-width: 560px; font-size: 13px; }
  th, td { padding: 9px 8px; }
}
.pill { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border: 1px solid; border-radius: var(--radius-sm); }
.pill.approved { color: #5cb85c; border-color: #3a7d44; }
.pill.pending { color: var(--gold); border-color: rgba(232,185,35,.5); }
.pill.rejected { color: var(--danger); border-color: rgba(217,83,79,.5); }

/* ================================= PIED DE PAGE ================================= */
footer.ft { border-top: 1px solid rgba(232,185,35,.2); background: rgba(0,0,0,.65); margin-top: 80px; }
.ft-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; flex-wrap: wrap; gap: 16px; padding: 44px 0; }
.ft-brand { display: flex; align-items: center; justify-content: center; gap: 12px; }
.ft-brand img { height: 40px; width: auto; }
.ft-brand .nm { font-family: 'Road Rage', cursive; font-size: 30px; color: var(--gold); line-height: 1; }
.ft-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.ft-links a:hover { color: var(--gold); }
.ft-copy { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(138,130,112,.6); }
.ft-banner { width: 100%; line-height: 0; }
.ft-banner img { width: 100%; height: auto; display: block; }

/* ================================ POINTS DE RUPTURE ================================ */
@media (max-width: 1024px) {
    .roster-grid { grid-template-columns: repeat(3,1fr); }
    :root { --container: 980px; }
}

@media (max-width: 820px) {
    .roster-grid { grid-template-columns: repeat(3,1fr); }
    .news-grid { grid-template-columns: repeat(2,1fr); }
    .stats-grid, .grid2 { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr !important; }
    .nav-links { display: none; }
    h2.sec { font-size: clamp(30px,7vw,42px); }
    .nav-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 8px; }
    .nav-right { flex-wrap: wrap; justify-content: flex-end; }
    .nav-right .btn { padding: 7px 11px; letter-spacing: .1em; }
    .nav-social { margin-right: 8px; }
    .nav-social img { width: 20px; height: 20px; }
    .brand .fear { font-size: 30px; }
    section.blk { padding: 44px 0; }
    .card { padding: 20px; }
    .rules-layout { grid-template-columns: 1fr !important; }
    .code-grid { grid-template-columns: repeat(2,1fr) !important; }
    .rules-panel { min-height: 300px; }
}

@media (max-width: 620px) {
    .roster-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
    .news-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
    .ft-links { gap: 14px 18px; }
}

@media (max-width: 380px) {
    .roster-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .wrap { padding: 0 16px; }
}

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


/* ========================================================================
   FORUM FEAR SQUAD
   ======================================================================== */
.forum-hero{padding:64px 0 50px;border-bottom:1px solid rgba(232,185,35,.25);background:
linear-gradient(90deg,rgba(0,0,0,.92),rgba(0,0,0,.55)),
url('img/default-forum-signature.jpg') center 42%/cover no-repeat;position:relative}
.forum-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 45%,var(--bg));pointer-events:none}
.forum-hero .wrap{position:relative;z-index:1}.forum-title{font-family:'Road Rage',cursive;font-size:clamp(42px,8vw,76px);line-height:.95;margin:8px 0}
.forum-hero p{color:rgba(236,230,214,.78);max-width:650px}.forum-hero-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}
.forum-wrap{padding-top:42px;padding-bottom:50px}.forum-category{margin-bottom:30px;border:1px solid rgba(232,185,35,.26);background:rgba(10,10,10,.78);border-radius:var(--radius)}
.forum-category-head{padding:17px 20px;background:linear-gradient(90deg,rgba(232,185,35,.15),rgba(0,0,0,.25));border-bottom:1px solid rgba(232,185,35,.25)}
.forum-category-head h2{font-family:'Bebas Neue';font-size:27px;letter-spacing:.06em;color:var(--gold-light)}
.forum-category-head p{font-size:12px;color:var(--muted)}
.forum-row,.topic-row{display:grid;grid-template-columns:62px minmax(0,1fr) 90px 90px 210px;align-items:center;min-height:86px;padding:12px 16px;border-bottom:1px solid rgba(42,37,23,.75);transition:background var(--dur) var(--ease)}
.forum-row:last-child,.topic-row:last-child{border-bottom:0}.forum-row:hover,.topic-row:hover{background:rgba(232,185,35,.055)}
.forum-icon,.topic-status{font-size:24px;color:var(--gold);text-align:center}.forum-main,.topic-main{min-width:0}.forum-main strong,.topic-main strong{display:block;font-size:16px;color:#fff}
.forum-main small,.topic-main small,.forum-last small,.forum-count small{display:block;color:var(--muted);font-family:'JetBrains Mono';font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.forum-count{text-align:center;border-left:1px solid rgba(42,37,23,.7)}.forum-count b{font-family:'Bebas Neue';font-size:23px;color:var(--gold-light);display:block}
.forum-last{padding-left:18px;border-left:1px solid rgba(42,37,23,.7);min-width:0}.forum-last b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
.forum-breadcrumb{display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-family:'JetBrains Mono';font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin-bottom:24px}
.forum-breadcrumb a{color:var(--gold)}.forum-page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:26px;flex-wrap:wrap}.forum-page-head h1{font-family:'Bebas Neue';font-size:clamp(34px,6vw,52px);line-height:1;color:#fff}.forum-page-head p{color:var(--muted)}
.topic-list{border:1px solid rgba(232,185,35,.25);background:rgba(18,18,18,.55);border-radius:var(--radius)}.topic-row{grid-template-columns:58px minmax(0,1fr) 90px 90px 190px}
.forum-empty{padding:36px;text-align:center;border:1px dashed rgba(232,185,35,.3);color:var(--muted);font-family:'JetBrains Mono'}
.forum-pagination{display:flex;gap:6px;justify-content:flex-end;margin-top:20px}.forum-pagination a{min-width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--border);font-family:'JetBrains Mono';font-size:12px;border-radius:var(--radius-sm)}.forum-pagination a.active,.forum-pagination a:hover{background:var(--gold);color:#000;border-color:var(--gold)}
.forum-post{display:grid;grid-template-columns:190px minmax(0,1fr);border:1px solid rgba(232,185,35,.24);margin-bottom:18px;background:rgba(18,18,18,.72);border-radius:var(--radius);overflow:hidden}
.post-user{padding:22px 18px;text-align:center;border-right:1px solid rgba(232,185,35,.18);background:rgba(0,0,0,.27)}
.post-avatar{width:105px;height:105px;margin:0 auto 13px;border:1px solid rgba(232,185,35,.35);background:#050505;display:grid;place-items:center;overflow:hidden;font-size:42px;color:var(--gold);border-radius:var(--radius-sm)}
.post-avatar img{width:100%;height:100%;object-fit:cover}.post-username{font-family:'Bebas Neue';font-size:23px;color:var(--gold-light);display:block}.post-rank{display:block;font-family:'JetBrains Mono';font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:var(--gold);margin:3px 0 12px}.post-user small{display:block;color:var(--muted);font-size:10px}
.post-content{padding:0 22px 18px;min-width:0}.post-content>header{height:48px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(42,37,23,.7);font-family:'JetBrains Mono';font-size:10px;color:var(--muted)}.post-content>header a{color:var(--gold)}
.post-body{padding:23px 0;min-height:120px;color:rgba(236,230,214,.93)}.post-body blockquote{border-left:3px solid var(--gold);padding:12px 16px;background:rgba(0,0,0,.35);margin:12px 0}.post-body pre{padding:14px;background:#050505;border:1px solid var(--border);overflow:auto}
.post-attachment{margin:12px 0;padding:12px;border:1px solid var(--border);background:rgba(0,0,0,.35)}.post-attachment img{max-width:620px;max-height:500px;object-fit:contain}
.forum-signature{border-top:1px solid rgba(232,185,35,.18);padding-top:16px;margin-top:22px}.forum-signature-image{width:400px;max-width:100%;height:auto;border:1px solid rgba(232,185,35,.3)}.forum-signature-text{font-size:12px;color:var(--muted);margin-top:8px;max-width:600px}
.post-actions{text-align:right;border-top:1px solid rgba(42,37,23,.6);padding-top:10px}.post-actions a{font-family:'JetBrains Mono';font-size:10px;text-transform:uppercase;color:var(--muted);margin-left:15px}.post-actions a:hover{color:var(--gold)}
.quick-reply{margin-top:30px}.quick-reply h2,.forum-editor-page h1,.forum-admin-grid h2{font-family:'Bebas Neue';font-size:32px;margin-bottom:12px}.forum-editor textarea,.quick-reply textarea{min-height:220px}
.forum-toolbar{display:flex;gap:5px;padding:8px;background:#0a0a0a;border:1px solid var(--border);border-bottom:0}.forum-toolbar button{background:#161616;border:1px solid var(--border);color:var(--text);min-width:38px;height:32px;cursor:pointer;border-radius:var(--radius-sm)}.forum-toolbar button:hover{border-color:var(--gold);color:var(--gold)}
.forum-help{font-family:'JetBrains Mono';font-size:10px;color:var(--muted);margin:6px 0 16px}.forum-editor input[type=file],.quick-reply input[type=file]{margin-bottom:18px}
.forum-signature-preview{margin:14px 0}.forum-signature-preview img{width:400px;max-width:100%;border:1px solid rgba(232,185,35,.35)}.forum-checkbox{display:flex;align-items:center;gap:10px;margin:15px 0;font-family:'JetBrains Mono';font-size:11px;color:var(--muted)}.forum-checkbox input{width:auto}
.forum-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.forum-admin-title{margin:40px 0 16px}.forum-admin-row{display:grid;grid-template-columns:2fr 1fr 130px 130px 100px auto;align-items:end;gap:12px;margin-bottom:10px}.forum-admin-row small{color:var(--gold);font-family:'JetBrains Mono';font-size:9px}.forum-admin-row input,.forum-admin-row select{padding:8px}.forum-admin-row input+input{margin-top:5px}.forum-admin-row label input[type=checkbox]{width:auto}
.report-card{margin-bottom:12px}.report-card p{margin:8px 0;color:var(--text)}.report-card small{display:block;color:var(--muted);margin-bottom:12px}.forum-head-actions{display:flex;gap:7px;flex-wrap:wrap}
@media(max-width:900px){.forum-row,.topic-row{grid-template-columns:50px minmax(0,1fr) 75px}.forum-row .forum-count:nth-of-type(2),.forum-last,.topic-row .forum-count:nth-of-type(2){display:none}.forum-post{grid-template-columns:140px minmax(0,1fr)}.forum-admin-row{grid-template-columns:1fr 1fr}.forum-admin-row>div:first-child{grid-column:1/-1}}
@media(max-width:620px){.forum-title{font-size:clamp(38px,12vw,55px)}.forum-row,.topic-row{grid-template-columns:42px minmax(0,1fr);padding:11px 9px}.forum-count,.forum-last{display:none!important}.forum-page-head{align-items:flex-start;flex-direction:column}.forum-page-head h1{font-size:39px}.forum-post{grid-template-columns:1fr}.post-user{border-right:0;border-bottom:1px solid rgba(232,185,35,.18);display:grid;grid-template-columns:65px 1fr;column-gap:13px;text-align:left;align-items:center}.post-avatar{width:65px;height:65px;margin:0;grid-row:1/5}.post-username,.post-rank,.post-user small{grid-column:2}.post-content{padding:0 14px 15px}.post-content>header span{font-size:8px}.forum-admin-grid{grid-template-columns:1fr}.forum-admin-row{grid-template-columns:1fr}.forum-admin-row>div:first-child{grid-column:auto}}

/* Extensions forum production */
.forum-search-title,.command-title{font-family:'Road Rage',cursive;font-size:clamp(38px,8vw,66px);line-height:1;margin:8px 0 24px}
.forum-search-form{display:flex;gap:10px;margin-bottom:28px;flex-wrap:wrap}.forum-search-form input{flex:1;min-width:200px}.feed-item strong{color:var(--gold-light)}.feed-item p{margin:6px 0}.feed-item small{color:var(--muted);font-family:'JetBrains Mono';font-size:10px}
.forum-notify-btn{position:relative;padding-left:12px;padding-right:12px}.forum-notify-btn span{position:absolute;top:-7px;right:-7px;min-width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:var(--danger);color:#fff;font-size:9px}
.forum-reactions{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}.forum-reactions form{display:inline}.forum-reactions button,.reaction-static{border:1px solid var(--border);background:#101010;color:var(--text);padding:5px 9px;cursor:pointer;font-size:13px;border-radius:var(--radius-sm)}.forum-reactions button.active,.forum-reactions button:hover{border-color:var(--gold);background:rgba(232,185,35,.12)}
.forum-achievements{display:flex;justify-content:center;gap:6px;margin-top:10px}.forum-achievements span{width:28px;height:28px;border:1px solid rgba(232,185,35,.35);display:grid;place-items:center;color:var(--gold)}
.forum-poll{margin:0 0 25px}.forum-poll h2{font-family:'Bebas Neue';font-size:28px;margin-bottom:13px}.poll-option{position:relative;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;border:1px solid var(--border);padding:10px 12px;margin-bottom:8px;overflow:hidden;border-radius:var(--radius-sm)}.poll-option>i{position:absolute;left:0;bottom:0;height:3px;background:var(--gold)}.poll-option input{width:auto}.poll-option b{font-family:'JetBrains Mono';font-size:10px;color:var(--gold)}
.forum-poll-builder{border:1px solid rgba(232,185,35,.25);padding:16px;margin:18px 0;border-radius:var(--radius)}.forum-poll-builder h3{font-family:'Bebas Neue';font-size:25px;color:var(--gold)}
.command-stats{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-bottom:22px}.command-stats .card{text-align:center;padding:18px 10px}.command-stats span{font-family:'JetBrains Mono';font-size:9px;text-transform:uppercase;color:var(--muted);display:block}.command-stats b{font-family:'Bebas Neue';font-size:37px;color:var(--gold)}
.command-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px}.command-grid h2{font-family:'Bebas Neue';font-size:28px;margin-bottom:14px}.command-links{display:grid;gap:8px}.command-links a,.command-item{display:block;border:1px solid var(--border);padding:11px 12px;border-radius:var(--radius-sm)}.command-links a:hover,.command-item:hover{border-color:var(--gold)}.command-links i{width:22px;color:var(--gold)}.command-item b{display:block}.command-item small{display:block;color:var(--muted);font-family:'JetBrains Mono';font-size:9px}
@media(max-width:900px){.command-stats{grid-template-columns:repeat(3,1fr)}.command-grid{grid-template-columns:1fr}.forum-search-form{flex-direction:column}}
@media(max-width:480px){.command-stats{grid-template-columns:repeat(2,1fr)}}

/* ======================= LOGIN STREAK + BADGE POPUPS ======================= */
body.fear-popup-open { overflow: hidden; }
.fear-popup-stack {
    position: fixed; inset: 0; z-index: 9999; display: none; place-items: center;
    padding: 20px; background: rgba(0,0,0,.82); backdrop-filter: blur(8px);
}
.fear-popup-stack.is-active { display: grid; }
.fear-reward-popup {
    display: none; position: relative; width: min(440px, 100%); padding: 38px 30px 30px;
    text-align: center; overflow: hidden; border: 1px solid rgba(232,185,35,.55);
    border-radius: var(--radius-lg); background: radial-gradient(circle at 50% 0, rgba(232,185,35,.18), transparent 48%), #0c0c0d;
    box-shadow: 0 24px 80px rgba(0,0,0,.8), 0 0 35px rgba(232,185,35,.15);
    animation: fear-popup-in .35s var(--ease) both;
}
.fear-reward-popup.is-active { display: block; }
.fear-reward-popup::before { content:""; position:absolute; top:0; left:12%; right:12%; height:2px; background:linear-gradient(90deg,transparent,var(--gold),transparent); }
.fear-popup-close { position:absolute; top:10px; right:12px; border:0; background:transparent; color:var(--muted); font-size:28px; line-height:1; cursor:pointer; }
.fear-popup-close:hover { color:var(--gold); }
.fear-popup-check { width:82px; height:82px; margin:0 auto 18px; display:grid; place-items:center; border:2px solid var(--ok); border-radius:50%; color:var(--ok); font-size:38px; box-shadow:0 0 28px rgba(63,191,99,.28); }
.fear-popup-overline { margin-bottom:8px; color:var(--gold); font:700 10px/1.4 'JetBrains Mono',monospace; letter-spacing:.28em; }
.fear-reward-popup h2 { color:var(--gold-light); font:48px/1 'Road Rage',cursive; text-shadow:0 3px 18px rgba(232,185,35,.22); }
.fear-reward-popup p { margin:14px auto 24px; max-width:340px; color:rgba(236,230,214,.76); }
.fear-reward-popup p strong { color:var(--gold-light); }
.fear-popup-badge { width:150px; height:150px; margin:16px auto 18px; object-fit:contain; filter:drop-shadow(0 12px 22px rgba(0,0,0,.65)); }
.fear-reward-popup .btn { min-width:160px; }
@keyframes fear-popup-in { from { opacity:0; transform:translateY(18px) scale(.96); } to { opacity:1; transform:none; } }
@media(max-width:480px) {
    .fear-reward-popup { padding:34px 20px 24px; }
    .fear-popup-badge { width:125px; height:125px; }
    .fear-reward-popup h2 { font-size:42px; }
}


/* ==========================================================================
   FEAR PROFILE — LARGE CENTERED AWARD CARDS
   Badge artwork fills the left side; award title is centered on the right.
   ========================================================================== */
.profile-grid .fear-rewards-wrap {
    width: 100%;
    margin-top: 24px;
}

.profile-grid .fear-rewards-group {
    width: 100%;
    margin-top: 22px;
}

.profile-grid .fear-rewards-group-title {
    display: block;
    width: 100%;
    margin: 0 0 14px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold);
}

.profile-grid .fear-rewards {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
}

.profile-award-card {
    width: 100%;
    min-height: 150px;
    display: grid;
    grid-template-columns: minmax(135px, 44%) 1fr;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(232,185,35,.34);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 20% 50%, rgba(232,185,35,.06), transparent 42%),
        rgba(8,8,8,.78);
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
}

.profile-award-image {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-right: 1px solid rgba(232,185,35,.18);
    background: rgba(0,0,0,.28);
}

.profile-award-image .fear-badge,
.profile-award-image .fear-badge-sm,
.profile-award-image .fear-badge-lg {
    width: 100% !important;
    height: 100% !important;
    min-height: 140px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.profile-award-image .fear-badge img,
.profile-award-image .fear-badge-sm img,
.profile-award-image .fear-badge-lg img {
    width: 100% !important;
    height: 100% !important;
    max-height: 175px;
    object-fit: contain;
    object-position: center;
}

.profile-award-title {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 14px;
    text-align: center;
    font-family: 'Road Rage', 'Bebas Neue', sans-serif;
    font-size: clamp(30px, 4.8vw, 44px);
    line-height: .95;
    letter-spacing: .035em;
    text-transform: uppercase;
    color: var(--gold);
    text-shadow:
        0 1px 0 #4d3300,
        0 0 10px rgba(232,185,35,.25);
    overflow-wrap: normal;
    word-break: normal;
}

.profile-award-card:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 28px rgba(0,0,0,.38), 0 0 18px rgba(232,185,35,.10);
}

.profile-award-card:hover .profile-award-image .fear-badge {
    transform: none;
}

@media (max-width: 640px) {
    .profile-grid .fear-rewards-group-title {
        font-size: 10px;
        letter-spacing: .20em;
    }

    .profile-award-card {
        min-height: 132px;
        grid-template-columns: 46% 54%;
    }

    .profile-award-image {
        padding: 2px;
    }

    .profile-award-image .fear-badge,
    .profile-award-image .fear-badge-sm,
    .profile-award-image .fear-badge-lg {
        min-height: 128px;
    }

    .profile-award-image .fear-badge img,
    .profile-award-image .fear-badge-sm img,
    .profile-award-image .fear-badge-lg img {
        max-height: 150px;
    }

    .profile-award-title {
        padding: 12px 8px;
        font-size: clamp(27px, 8vw, 38px);
    }
}


/* ============================================================================
   FEAR SQUAD — TYPOGRAPHY / STATS / XP REPAIR (2026-09-04)
   Restores the complete production stylesheet, then applies only scoped fixes.
   IMPORTANT: do not globally force Road Rage on every h1/h2/h3.
   ========================================================================== */

/* Main section/page titles share one FEAR face without touching usernames,
   article titles, card copy, form text or utility headings. */
:root{
  --fear-title-font:'Road Rage',Impact,'Arial Narrow',sans-serif;
  --fear-number-font:'DM Sans',Arial,sans-serif;
}

h2.sec,
.sec-head > h2,
.sec-center > h2,
.fear-home-hub-head h2,
.fear-command-deck-head h2,
.forum-page-head h1,
.forum-search-title,
.command-title,
.monthly-title,
.page-hero-title,
.section-title,
.topic-heading h1{
  font-family:var(--fear-title-font)!important;
  font-weight:400!important;
  font-style:normal!important;
  letter-spacing:.015em!important;
}

/* Numbers: compact, modern and readable in both profile statistics and
   homepage telemetry. Tabular numerals keep counters from jumping around. */
.stat-num{
  font-family:var(--fear-number-font)!important;
  font-size:clamp(22px,2.25vw,31px)!important;
  font-weight:700!important;
  line-height:1.05!important;
  letter-spacing:-.035em!important;
  font-variant-numeric:tabular-nums lining-nums;
  white-space:nowrap;
}

/* Profile FEAR-dollar numbers intentionally stay a little smaller. */
.fear-money-stat .stat-num{
  font-size:clamp(17px,1.8vw,23px)!important;
}

/* XP bar: explicit production-safe geometry. This protects it from broad
   typography/layout overrides and restores the bar if an incomplete CSS file
   was previously uploaded. */
.xp-wrap{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin-top:18px!important;
  overflow:visible!important;
}
.xp-wrap .rank-mode-lbl{
  display:block!important;
  width:auto!important;
  height:auto!important;
  margin:0 0 7px!important;
  padding:0!important;
  position:static!important;
  transform:none!important;
  font-family:'JetBrains Mono',monospace!important;
  font-size:10px!important;
  line-height:1.35!important;
  letter-spacing:.20em!important;
  text-transform:uppercase!important;
  color:var(--muted)!important;
}
.xp-bar{
  position:relative!important;
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  height:11px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid rgba(232,185,35,.34)!important;
  border-radius:999px!important;
  background:rgba(232,185,35,.08)!important;
  box-shadow:inset 0 1px 3px rgba(0,0,0,.65)!important;
}
.xp-bar-fill{
  position:relative!important;
  display:block!important;
  height:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#8d6510,var(--gold),#fbe58a)!important;
  box-shadow:0 0 10px rgba(232,185,35,.48)!important;
  transition:width .6s var(--ease)!important;
}
.xp-sub{
  display:block!important;
  margin-top:7px!important;
  font-family:'DM Sans',Arial,sans-serif!important;
  font-size:11px!important;
  line-height:1.4!important;
  color:var(--muted)!important;
}

@media(max-width:700px){
  h2.sec,
  .sec-head > h2,
  .sec-center > h2,
  .fear-home-hub-head h2,
  .fear-command-deck-head h2,
  .forum-page-head h1,
  .forum-search-title,
  .command-title,
  .monthly-title,
  .page-hero-title,
  .section-title,
  .topic-heading h1{
    line-height:.98!important;
  }

  .stat-num{
    font-size:24px!important;
    letter-spacing:-.025em!important;
  }

  .fear-money-stat .stat-num{
    font-size:19px!important;
  }

  .xp-bar{
    height:10px!important;
  }
}
