/* Néo Arène: the Arène theme, darker and calmer. Same accent, same layout: near-black backgrounds, thin quiet
   borders, header and footer melted into the page. Loaded after arene.css in base.html. */
:root {
  /* the theme's greys are darkened in arene.css itself; only the text greys are adjusted here */
  --ar-muted: #9a9daa;
  --ar-dim: #686c78;
}

html body div.gray-box.link:hover { background: #171822; }

/* top bar melted into the page: no band of its own at the top; once the page scrolls (.is-scrolled, set by
   neo-arene.js) it takes the page colour back with a thin line, so the content passing under it stays hidden */
html body .app-header::before {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background-color .2s ease, border-color .2s ease;
}
html body .app-header.is-scrolled::before {
  background: rgba(11, 11, 19, 0.88);
  border-bottom-color: var(--ar-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* links in normal case, with their icons */
@media (min-width: 1025px) {
  html body .app-nav-link {
    font-family: var(--ar-body);
    font-weight: 500;
    font-size: 0.92rem;
    text-transform: none;
    letter-spacing: 0;
    padding-left: 11px;
    padding-right: 11px;
  }
  html body .app-nav-link.active::after { left: 11px; right: 11px; height: 2px; }
}

/* top bar buttons on one line: same height for search, language, bot invite and account, the "Outils" menu
   as tall as the other links */
@media (min-width: 1025px) {
  html body .app-nav-actions { align-items: center; }
  html body :is(.btn-quick-search, .lang-menu-btn, .btn-discord-nav, .auth-user-btn) {
    height: 36px;
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 0;
  }
  html body .app-nav-link { line-height: 22px; }
}

/* footer melted into the page too: no band, the links and the version straight on the background */
html body footer { background: transparent; border-top-color: transparent; }

/* the tab bar that stays at the top while scrolling (profiles, server pages, analyses), and the page loader */
html body .hg-sticky-tabs.is-stuck .graphs-tabs,
html body .hg-sticky-tabs.is-stuck .graphs-tabs.has-more,
html body .profile-hero-tabs .hg-sticky-tabs.is-stuck .graphs-tabs { background: rgba(11, 11, 19, 0.94); }
html body .ar-loader { background: rgba(11, 11, 19, 0.86); }

/* tooltips follow */
html body .hg-tooltip { background: #101018; }

/* panels coloured by hand (not through the theme's variables): brought to the new greys */
html body .profile-hero.has-banner .big-pp { box-shadow: 0 0 0 5px var(--ar-panel), 0 10px 28px rgba(0, 0, 0, 0.55); }
html body .profile-vitrine {
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--accent-rgb), 0.16), transparent 45%),
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.06), rgba(20, 21, 30, 0.9) 60%),
    var(--ar-panel);
}
html body .profile-record { background: var(--ar-panel-2); }
html body .profile-banner { background-color: var(--ar-panel); }
html body .hovercard,
html body .nav-dropdown-menu,
html body .tl-suggest,
html body .cz-select,
html body .cz-gallery-item { background: var(--ar-panel); }
@media (max-width: 1024px) { html body .app-nav-menu { background: var(--ar-panel); } }
html body .search-input,
html body .top-select,
html body .page-link { background-color: var(--ar-panel-2); }
html body .status-indicator-badge { border-color: var(--ar-panel); }

/* ---------- Home header: identity on the left, "Live" panel on the right (no stripes, no ghost text) ---------- */
html body .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 28px;
  align-items: stretch;
  padding: 30px 32px;
  margin-bottom: 22px;
  clip-path: none;
}
.home-hero-main { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.home-hero-status { display: inline-flex; align-items: center; gap: 8px; color: var(--ar-muted); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.home-hero-status .hero-pulse-dot { width: 7px; height: 7px; margin: 0; }
.home-hero-title { margin: 10px 0 6px; color: #fff; font: 800 clamp(2.2rem, 5vw, 3.4rem)/1 var(--ar-display, inherit); text-transform: uppercase; letter-spacing: 0.02em; }
.home-hero-sub { margin: 0 0 22px; color: #a3a6b0; font-size: 1.02rem; }
.home-hero-info {
  display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; margin-left: 6px; vertical-align: 2px;
  background: rgba(255, 255, 255, 0.07); color: #8b8e98; font-size: 11px; font-weight: 700; cursor: help;
}
.home-hero-info:hover, .home-hero-info:focus-visible { background: rgba(113, 124, 248, 0.25); color: #fff; outline: none; }
.home-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; }
html body .home-hero-actions :is(.btn-hero-discord, .btn-hero-secondary) { margin: 0; }
.home-hero-link { color: #a3a6b0; font-weight: 600; text-decoration: none; padding: 6px 4px; }
.home-hero-link:hover { color: #fff; }

.home-live {
  display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 18px 20px;
  background: rgba(255, 255, 255, 0.025); border-radius: 10px; min-width: 0;
}
.home-live-head { display: inline-flex; align-items: center; gap: 8px; color: #8b8e98; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.home-live-figs { display: flex; flex-direction: column; gap: 4px; }
.home-live-fig { color: #a3a6b0; font-size: 0.95rem; }
.home-live-fig b { font: 800 1.9rem/1.1 var(--ar-display, inherit); margin-right: 4px; font-variant-numeric: tabular-nums; }
.home-live-fig + .home-live-fig b { font-size: 1.25rem; }
.home-live-fig small { color: #72767d; font-size: 0.82rem; margin-left: 2px; }
.home-live-record { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.06); color: #8b8e98; font-size: 0.85rem; cursor: help; }
.home-live-record svg { color: #f5c542; }
.home-live-record b { color: #f5c542; }
.home-live-record span { color: #686c78; }

@media (max-width: 860px) {
  html body .home-hero { grid-template-columns: 1fr; padding: 22px 18px; gap: 18px; }
  .home-live { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
  .home-live-head, .home-live-record { width: 100%; }
  .home-live-figs { flex-direction: row; gap: 18px; align-items: baseline; }
  .home-live-fig b, .home-live-fig + .home-live-fig b { font-size: 1.4rem; }
}

/* ---------- Home: figures line in the header, activity card, rankings carousel ---------- */
html body .home-hero { grid-template-rows: auto auto; }
html body .home-hero .home-kpis {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 20px; border-top: 1px solid var(--ar-line, #242631);
}
.home-kpi { display: flex; flex-direction: column; gap: 4px; padding: 0 22px; border-left: 1px solid var(--ar-line, #242631); cursor: help; min-width: 0; }
.home-kpi:first-child { padding-left: 0; border-left: 0; }
.home-kpi:focus-visible { outline: none; }
.home-kpi b { font: 800 clamp(1.9rem, 3.6vw, 2.8rem)/1 var(--ar-display, inherit); font-style: italic; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-kpi span { color: #8b8e98; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.home-kpi:hover span, .home-kpi:focus-visible span { color: #c9cbd3; }

html body .home-card { margin-bottom: 22px; }
.home-card-link { color: #a3a6b0; font-weight: 600; font-size: 0.9rem; text-decoration: none; white-space: nowrap; }
.home-card-link:hover { color: #fff; }

html body .podium-carousel.neo .dashboard-podium-card {
  clip-path: none; border: 0; border-radius: 0; box-shadow: none;
  background: var(--ar-panel, #13141b); padding: 20px 22px;
}
html body .podium-carousel.neo .dashboard-podium-card:hover { background: var(--ar-panel, #13141b); }
html body .podium-carousel.neo .dashboard-podium-card::before,
html body .podium-carousel.neo .dashboard-podium-card::after { display: none; }
html body .podium-carousel.neo .podium-card-icon { background: none !important; clip-path: none; width: auto; height: auto; padding: 0; }
html body .podium-carousel.neo .podium-card-icon { color: #fff; }  /* white unless the card has its own colour */
html body .podium-carousel.neo .dashboard-podium-card:has(.icon-users) .podium-card-icon { color: var(--c-voice); }
html body .podium-carousel.neo .dashboard-podium-card:has(.icon-servers) .podium-card-icon { color: var(--c-server); }
html body .podium-carousel.neo .dashboard-podium-card:has(.icon-votes) .podium-card-icon { color: #ff6b8a; }
html body .podium-carousel.neo .dashboard-podium-card:has(.icon-live) .podium-card-icon { color: #3fd1a0; }
html body .podium-carousel.neo .podium-card-title { font-size: 1rem; }
html body .podium-carousel.neo .podium-card-period { background: none; clip-path: none; padding: 0; color: #72767d; font-size: 0.78rem; letter-spacing: 0; text-transform: none; font-family: var(--ar-body, inherit); font-weight: 500; }
html body .podium-carousel.neo .podium-card-more { background: none; clip-path: none; padding: 4px 2px; color: #a3a6b0; box-shadow: none; text-transform: none; letter-spacing: 0; font-family: var(--ar-body, inherit); font-weight: 600; font-size: 0.85rem; }
html body .podium-carousel.neo .podium-card-more::before { display: none; }
html body .podium-carousel.neo .podium-card-more::after { content: " ›"; }
html body .podium-carousel.neo .podium-card-more:hover { color: #fff; }
html body .podium-carousel.neo .podium-list { gap: 0; }
html body .podium-carousel.neo .podium-item {
  background: none; clip-path: none; border: 0; border-radius: 0; padding: 9px 8px; margin: 0;
  overflow: visible;
}
html body .podium-carousel.neo .podium-item + .podium-item { border-top: 1px solid #1d1f28; border-radius: 0; }
html body .podium-carousel.neo .podium-item:hover { background: rgba(255, 255, 255, 0.03); }
html body .podium-carousel.neo .podium-item::before,
html body .podium-carousel.neo .podium-item::after { display: none; content: none; }
html body .podium-carousel.neo .podium-rank { width: 26px; min-width: 26px; height: auto; border: 0; background: none; clip-path: none; box-shadow: none;
  font-family: var(--ar-display, inherit); font-style: italic; font-weight: 800; font-size: 1.05rem; }
html body .podium-carousel.neo .podium-avatar { border-radius: 50%; clip-path: none; border: 0; box-shadow: none; }
html body .podium-carousel.neo .podium-avatar.border-server { border-radius: 10px; }
html body .podium-carousel.neo .podium-sub { color: #72767d; }
html body .podium-carousel.neo .podium-value { background: none; clip-path: none; border: 0; padding: 0; box-shadow: none; font-style: normal; }
html body .podium-carousel.neo .dashboard-podium-card:has(.icon-users) .podium-value,
html body .podium-carousel.neo .dashboard-podium-card:has(.icon-servers) .podium-value { color: var(--c-voice); }

@media (max-width: 860px) {
  html body .home-hero .home-kpis { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .home-kpi, .home-kpi:first-child { padding: 0; border-left: 0; }
  .home-kpi b { font-size: 1.9rem; }
}
