html,
body.dashboard-body,
.app-shell,
.page-body,
.dashboard-content,
.guild-layout,
.guild-main {
  background: #050505;
  color: #f8f7f4;
}

body.dashboard-body {
  --bg: #050505;
  --surface: #101010;
  --surface-2: #151515;
  --border: rgba(255, 255, 255, 0.1);
  --ink: #f8f7f4;
  --muted: #9c9a9c;
  --primary: #e11d2e;
  --secondary: #f05b66;
  --accent: #ff7b83;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.ambient-bg,
.ambient-wave {
  display: none !important;
}

.dashboard-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  background: #050505;
  transform: translateZ(0);
  contain: layout paint;
}

.dashboard-video .arena-glow {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.dashboard-video .glow-a {
  top: -22vmax;
  left: -14vmax;
  width: 62vmax;
  height: 62vmax;
  background: radial-gradient(
    circle,
    rgba(225, 29, 46, 0.26) 0%,
    rgba(225, 29, 46, 0.08) 42%,
    transparent 68%
  );
  animation: arena-drift-a 26s ease-in-out infinite alternate;
}

.dashboard-video .glow-b {
  right: -18vmax;
  bottom: -24vmax;
  width: 58vmax;
  height: 58vmax;
  background: radial-gradient(
    circle,
    rgba(233, 196, 106, 0.13) 0%,
    rgba(233, 196, 106, 0.04) 45%,
    transparent 70%
  );
  animation: arena-drift-b 32s ease-in-out infinite alternate;
}

@keyframes arena-drift-a {
  to {
    transform: translate(9vmax, 7vmax) scale(1.12);
  }
}

@keyframes arena-drift-b {
  to {
    transform: translate(-8vmax, -6vmax) scale(1.08);
  }
}

.dashboard-video .arena-grid {
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: -6%;
  height: 46%;
  background:
    linear-gradient(rgba(225, 29, 46, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 29, 46, 0.22) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(520px) rotateX(62deg);
  transform-origin: bottom;
  -webkit-mask: linear-gradient(180deg, transparent, #000 45%);
  mask: linear-gradient(180deg, transparent, #000 45%);
  opacity: 0.4;
  animation: arena-grid-scroll 9s linear infinite;
}

@keyframes arena-grid-scroll {
  to {
    background-position: 0 56px, 0 0;
  }
}

.dashboard-video .arena-ember {
  position: absolute;
  bottom: -12px;
  border-radius: 50%;
  background: #e11d2e;
  box-shadow: 0 0 12px rgba(225, 29, 46, 0.8);
  opacity: 0;
  animation: arena-rise linear infinite;
  will-change: transform, opacity;
}

.dashboard-video .arena-ember.e1 {
  left: 12%;
  width: 6px;
  height: 6px;
  animation-duration: 11s;
}

.dashboard-video .arena-ember.e2 {
  left: 32%;
  width: 4px;
  height: 4px;
  background: #e9c46a;
  box-shadow: 0 0 10px rgba(233, 196, 106, 0.8);
  animation-duration: 14s;
  animation-delay: 3s;
}

.dashboard-video .arena-ember.e3 {
  left: 55%;
  width: 7px;
  height: 7px;
  animation-duration: 10s;
  animation-delay: 6s;
}

.dashboard-video .arena-ember.e4 {
  left: 74%;
  width: 4px;
  height: 4px;
  background: #e9c46a;
  box-shadow: 0 0 10px rgba(233, 196, 106, 0.8);
  animation-duration: 13s;
  animation-delay: 1.5s;
}

.dashboard-video .arena-ember.e5 {
  left: 88%;
  width: 5px;
  height: 5px;
  animation-duration: 12s;
  animation-delay: 8s;
}

@keyframes arena-rise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  12% {
    opacity: 0.9;
  }

  100% {
    transform: translateY(-105vh) translateX(3vw);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-video .arena-glow,
  .dashboard-video .arena-grid,
  .dashboard-video .arena-ember {
    animation: none;
  }
}

.dashboard-video__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #050505 0%,
      rgba(5, 5, 5, 0.84) 35%,
      rgba(5, 5, 5, 0.38) 72%,
      #050505 100%
    ),
    linear-gradient(180deg, rgba(5, 5, 5, 0.24) 0%, #050505 92%);
}

.app-shell {
  position: relative;
  z-index: 1;
}

body.dashboard-body:not(.guild-dashboard-page),
body.dashboard-body:not(.guild-dashboard-page) .app-shell,
body.dashboard-body:not(.guild-dashboard-page) .page-body,
body.dashboard-body:not(.guild-dashboard-page) .dashboard-content {
  background: transparent;
}

.container {
  width: calc(100% - 3rem);
}

.site-header,
body.guild-dashboard-page .site-header {
  min-height: 78px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: #050505;
  box-shadow: none;
}

body.guild-dashboard-page .dashboard-video {
  display: none;
}

.site-header.is-scrolled {
  background: #050505;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.3);
}

.header-inner {
  min-height: 78px;
}

.dashboard-brand-mark,
.brand-mark {
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

.dashboard-logo {
  gap: 0.65rem;
  width: max-content;
  color: #f8f7f4;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.dashboard-brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  overflow: hidden;
  place-items: center;
  color: #fff;
  font-size: 0.9rem;
}

.dashboard-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dashboard-brand-copy {
  display: grid;
  gap: 0.2rem;
  line-height: 1;
}

.dashboard-brand-copy b {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.dashboard-brand-copy em {
  color: #777579;
  font-size: 0.54rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.36em;
}

.primary-nav {
  gap: 1.7rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.primary-nav a {
  min-height: 42px;
  padding: 0.5rem 0;
  border-radius: 0;
  color: #9c9a9c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.primary-nav a::before {
  inset: auto 0 0;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: #e11d2e;
  opacity: 0;
  transform: scaleX(0.3);
}

.primary-nav a::after {
  display: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: #fff;
  transform: none;
}

.primary-nav a:hover::before,
.primary-nav a:focus-visible::before {
  opacity: 1;
  transform: scaleX(1);
}

.header-dashboard-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(225, 29, 46, 0.65);
  border-radius: 9px;
  color: #f5b3b8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: 180ms ease;
}

.is-signed-in .header-dashboard-cta {
  display: none;
}

.header-dashboard-cta:hover,
.header-dashboard-cta:focus-visible {
  border-color: #e11d2e;
  background: rgba(225, 29, 46, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

.profile-trigger,
.icon-button,
.guild-top-actions .icon-button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #151515;
  color: #f8f7f4;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.profile-trigger:hover,
.icon-button:hover,
.guild-top-actions .icon-button:hover {
  border-color: rgba(225, 29, 46, 0.55);
  background: rgba(225, 29, 46, 0.1);
}

.account-dropdown,
.support-popover,
.toast {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(16, 16, 16, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.dashboard-content {
  padding: 2.25rem 0 4rem;
}

.hero,
.hero.compact {
  min-height: auto;
  padding: 2.25rem 0 2rem;
}

.hero h1,
.guild-page-head h1 {
  color: #f8f7f4;
  font-size: clamp(2.1rem, 4vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.065em;
}

.hero.compact h1,
.guild-page-head h1 {
  font-size: clamp(2rem, 3.2vw, 3.3rem);
}

.eyebrow {
  color: #f05b66;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.lede,
.text-muted,
.panel-head span,
.metric-card span,
.metric-card small {
  color: #9c9a9c;
}

.panel,
.server-card,
.card,
.glass-card,
.command-item,
.notification-item,
.notification-preference,
.history-item,
.tournament-panel,
.feature-panel,
.guide-hero-card,
.hero-stage,
.guild-main .panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(145deg, #151515, #0a0a0a);
  backdrop-filter: none;
  color: #f8f7f4;
  box-shadow: none;
}

.notification-item.unread {
  background: #211012;
}

.panel {
  padding: clamp(1rem, 2.2vw, 1.5rem);
}

.panel:hover,
.server-card:hover,
.command-item:hover,
.notification-item:hover,
.history-item:hover,
.tournament-panel:hover,
.feature-panel:hover {
  border-color: rgba(225, 29, 46, 0.38);
}

.server-grid,
.home-grid,
.overview-grid,
.analytics-grid,
.help-grid,
.command-help-grid {
  gap: 1rem;
}

.server-card-body {
  padding: 1.35rem;
}

.server-card-head {
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
}

.server-name,
.panel-head h2,
.notification-item h2,
.metric-card strong,
.guild-main .panel h2,
.guild-main .panel h3 {
  color: #f8f7f4;
}

.metric,
.setup-breakdown div,
.feed-line,
.tournament-detail-fact,
.profile-facts span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.metric-icon,
.history-icon,
.feature-icon,
.notification-icon,
.server-section-count {
  border: 1px solid rgba(225, 29, 46, 0.2);
  background: rgba(225, 29, 46, 0.1);
  color: #f05b66;
}

.button {
  min-height: 42px;
  padding: 0.72rem 1.05rem;
  border: 1px solid #e11d2e;
  border-radius: 9px;
  background: #e11d2e;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.button:hover {
  border-color: #f05b66;
  background: #f02b3d;
}

.button.ghost {
  border-color: rgba(225, 29, 46, 0.48);
  background: transparent;
  color: #f5b3b8;
  box-shadow: none;
}

.button.ghost:hover {
  border-color: #e11d2e;
  background: rgba(225, 29, 46, 0.1);
  color: #fff;
}

input,
select,
textarea,
.guild-search,
.guild-command-search,
.app-search.app-search {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background-color: #101010;
  color: #f8f7f4;
}

input:focus,
select:focus,
textarea:focus,
.guild-search:focus-within,
.guild-command-search:focus-within,
.app-search:focus-within {
  border-color: rgba(225, 29, 46, 0.7);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.13);
  outline: none;
}

table {
  border-spacing: 0;
  border-collapse: separate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #101010;
}

th {
  border-bottom-color: rgba(225, 29, 46, 0.16);
  background: #151515;
  color: #9c9a9c;
}

td {
  border-bottom-color: rgba(255, 255, 255, 0.07);
  color: #e8e5e7;
}

tr:hover td {
  background: rgba(225, 29, 46, 0.045);
}

.guild-container {
  width: 100%;
  max-width: none;
}

.guild-layout {
  grid-template-columns: 276px minmax(0, 1fr);
  min-height: calc(100vh - 79px);
  border-top: 0;
  background: #050505;
}

.guild-layout.sidebar-collapsed {
  grid-template-columns: 82px minmax(0, 1fr);
}

.guild-sidebar {
  top: 79px;
  min-height: calc(100vh - 79px);
  max-height: calc(100vh - 79px);
  padding: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  background: #101010;
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.2);
}

.guild-sidebar-head,
.guild-search {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: #151515;
}

.guild-nav {
  gap: 1.15rem;
}

.guild-nav-link {
  min-height: 42px;
  padding: 0.65rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #aaa7aa;
}

.guild-nav-link:hover,
.guild-nav-link.active {
  border-color: rgba(225, 29, 46, 0.25);
  background: rgba(225, 29, 46, 0.1);
  color: #fff;
  box-shadow: inset 3px 0 #e11d2e;
}

.guild-main {
  min-height: calc(100vh - 79px);
  padding: 1.25rem 1.5rem 2rem;
}

.guild-topbar {
  min-height: 68px;
  margin: -1.25rem -1.5rem 1.25rem;
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 5, 5, 0.9);
}

.guild-main .panel {
  margin-bottom: 1rem;
  background: linear-gradient(145deg, #151515, #0a0a0a);
}

.alert {
  border-radius: 10px;
  background: #151515;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.28);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: #050505;
}

@media (max-width: 1024px) {
  .container {
    width: calc(100% - 2rem);
  }

  .primary-nav {
    gap: 0.9rem;
  }

  .header-discord-link {
    display: none !important;
  }

  body.guild-dashboard-page .guild-layout,
  body.guild-dashboard-page .guild-layout.sidebar-collapsed {
    display: block;
    min-height: auto;
  }

  body.guild-dashboard-page .guild-sidebar,
  body.guild-dashboard-page .guild-sidebar.is-collapsed {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: auto;
    max-height: none;
    overflow: visible;
  }

  body.guild-dashboard-page .site-header {
    position: relative;
  }

  body.guild-dashboard-page .guild-main {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .dashboard-video,
  .dashboard-video__veil {
    right: auto;
    inline-size: 100%;
    max-inline-size: 100%;
  }

  .container {
    width: calc(100% - 1rem);
  }

  .site-header,
  body.guild-dashboard-page .site-header,
  .header-inner {
    min-height: 64px;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  body.guild-dashboard-page .site-header {
    position: relative;
  }

  .header-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    row-gap: 0.6rem;
    padding-block: 0.65rem;
  }

  .dashboard-logo {
    max-width: none;
    overflow: visible;
  }

  .dashboard-brand-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .primary-nav {
    position: static;
    z-index: auto;
    display: flex;
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    gap: 0.2rem;
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: #101010;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  }

  .primary-nav a {
    min-width: 0;
    min-height: 36px;
    flex: 1 1 0;
    justify-content: center;
    padding: 0.45rem 0.15rem;
    border: 0;
    border-radius: 7px;
    font-size: clamp(0.52rem, 2.25vw, 0.66rem);
    letter-spacing: 0.035em;
    white-space: nowrap;
  }

  .primary-nav a:hover,
  .primary-nav a:focus-visible {
    background: rgba(225, 29, 46, 0.1);
  }

  .primary-nav a::before {
    display: none;
  }

  .header-discord-link {
    display: inline-flex !important;
  }

  .account-area {
    grid-row: 1;
    grid-column: 2;
    gap: 0.45rem;
  }

  .header-dashboard-cta {
    display: none;
  }

  .dashboard-content {
    padding: 1rem 0 2.5rem;
  }

  .hero,
  .hero.compact {
    padding: 1.2rem 0 1.5rem;
  }

  .panel,
  .server-card-body {
    padding: 1rem;
  }

  .guild-layout,
  .guild-layout.sidebar-collapsed {
    display: block;
  }

  .guild-sidebar {
    top: 0;
    min-height: auto;
    max-height: none;
    padding: 0.65rem 0.75rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
  }

  .guild-main {
    min-height: auto;
    padding: 0.85rem 1rem 1.5rem;
  }

  .guild-topbar {
    margin: -0.85rem -1rem 1rem;
    padding: 0.75rem 1rem;
  }
}

/* Tables never cast a shadow. */
table {
  box-shadow: none;
}

