:root {
  color-scheme: dark;
  --page: #090d12;
  --page-soft: #0e141b;
  --surface: #131c25;
  --surface-raised: #192631;
  --surface-deep: #0b1117;
  --line: #2b3a46;
  --line-bright: #405565;
  --text: #f3f1ec;
  --muted: #a7b3bd;
  --red: #ef4b43;
  --red-deep: #9c2926;
  --blue: #47b8dc;
  --blue-deep: #155d79;
  --gold: #f1c36d;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background-color: var(--page);
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(91, 126, 145, .045) 80px);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

a:hover {
  color: #a0e4f6;
}

button,
input,
select,
textarea {
  font-size: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

.top {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  padding: 0 24px;
  pointer-events: none;
}

#nav.navbar {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
}

#nav .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: min(1280px, 100%);
  min-height: 70px;
  margin: 12px auto;
  padding: 8px 14px 8px 18px;
  border: 1px solid rgba(146, 174, 190, .23);
  border-radius: 8px;
  background: rgba(10, 15, 21, .92);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

#nav .brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  width: auto;
  padding: 6px 10px 6px 4px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

#nav .brand img {
  display: block;
  width: 31px;
  height: 31px;
  object-fit: contain;
}

#nav .brand b {
  color: var(--red);
}

#nav .nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

#nav .navitem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 13px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #c1cbd2;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

#nav .nav-links .navitem:hover,
#nav .nav-links .navitem.active {
  background: rgba(71, 184, 220, .12);
  color: #fff;
}

#nav .nav-links .navitem.active {
  box-shadow: inset 0 -2px var(--blue);
}

#nav .navitem.nav-account {
  margin-left: 8px;
  border: 1px solid rgba(239, 75, 67, .55);
  color: #fff;
}

#nav .navitem.nav-account:hover {
  border-color: var(--red);
  background: rgba(239, 75, 67, .16);
}

#nav .nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-bright);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.content {
  min-height: 70vh;
}

.container {
  width: min(1160px, calc(100% - 48px));
  max-width: 1160px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}

.banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 650px;
  padding: 112px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: #080c11;
  background-image: url('/static/assets/images/DBFZ_android21-2.png');
  background-repeat: no-repeat;
  background-position: 25% center;
  background-size: auto 100%;
}

.hero-inner {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.slogan {
  position: static;
  width: min(650px, 58%);
  max-width: none;
  margin: 0;
  padding: 24px 0;
  color: var(--text);
  text-align: left;
  text-shadow: none;
  transform: none;
}

.hero-eyebrow,
.section-kicker,
.feature-index {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0;
}

.hero-eyebrow span {
  width: 24px;
  height: 2px;
  background: var(--red);
}

.slogan .title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 700;
  line-height: .96;
}

.slogan .title b {
  color: var(--red);
}

.hero-line {
  margin: 14px 0 8px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
}

.slogan .subtitle {
  max-width: 520px;
  margin: 12px 0 0;
  color: #bdc5cc;
  font-size: 15px;
  line-height: 1.75;
}

.ad-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 27px;
}

.invite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  min-width: 164px;
  height: 46px;
  margin: 0;
  padding: 0 17px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: var(--blue-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.invite:hover {
  transform: translateY(-2px);
  border-color: #a0e4f6;
  background: #1b7797;
  color: #fff;
}

.invite.secondary {
  border-color: #69505a;
  background: #101820;
  color: var(--text);
}

.invite.secondary:hover {
  border-color: var(--red);
  background: rgba(156, 41, 38, .32);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  color: #95a4ae;
  font-size: 12px;
}

.hero-note img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.home-content {
  padding-top: 78px;
  padding-bottom: 72px;
}

.home-section-heading {
  max-width: 620px;
  margin-bottom: 18px;
}

.home-section-heading .section-kicker {
  margin-bottom: 9px;
  color: var(--red);
}

.home-section-heading h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.08;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 54px;
  min-height: 300px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.feature-band:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-band.row-1 .feature-index {
  color: var(--red);
}

.feature-band.row-2 .feature-index {
  color: var(--blue);
}

.feature-copy h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.12;
  text-align: left;
}

.feature-copy h3 img {
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.feature-copy > p:not(.feature-index) {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 19px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.feature-link span {
  color: var(--blue);
  font-size: 18px;
  transition: transform .18s ease;
}

.feature-link:hover span {
  transform: translateX(4px);
}

.splash-illustration {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
}

.splash-illustration img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-deep);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
}

.feature-reverse .feature-copy {
  order: 2;
}

.feature-reverse .splash-illustration {
  order: 1;
}

.content h1,
.content h2,
.content h3 {
  font-family: var(--font-display);
}

.content > div > header:not(.players-header) {
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--page-soft);
  color: var(--text);
  text-align: left;
}

.content > div > header:not(.players-header) h1 {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
}

.dashboard-container {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  min-height: 78vh;
  padding: 24px max(24px, calc((100% - 1320px) / 2));
  background: transparent;
  font-family: var(--font-body);
}

.dashboard-sidebar {
  position: sticky;
  top: 100px;
  width: auto;
  max-width: none;
  height: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(17, 26, 34, .94);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
}

.sidebar-links {
  display: flex;
  height: auto;
  flex-direction: column;
  padding: 8px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.user-info {
  gap: 12px;
  margin: 0 0 10px;
  padding: 8px 8px 15px;
  border-bottom: 1px solid var(--line);
}

.user-info img {
  width: 42px;
  height: 42px;
  margin: 0;
  border: 2px solid var(--blue-deep);
}

.user-name {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
}

.tablink {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #b7c3cb;
  font-family: var(--font-body);
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.tablink:hover {
  background: rgba(71, 184, 220, .1);
  color: #fff;
}

.tablink.admin {
  position: relative;
  background: transparent;
  color: #e4d8d6;
  font-weight: 600;
}

.tablink.admin::before {
  color: var(--red);
  font-size: 10px;
}

.tablink.admin:hover {
  border-color: transparent;
  background: rgba(239, 75, 67, .11);
}

.dashboard-content,
.players-main,
.dashboard-container > main {
  width: auto;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(17, 26, 34, .88);
}

.discord-embed,
.event-card {
  max-width: none;
  margin: 0 0 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: none;
  color: var(--text);
  font-family: var(--font-body);
}

.discord-embed h3,
.event-card h3 {
  display: block;
  width: auto;
  margin: 0 0 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text) !important;
  font-family: var(--font-display);
  font-size: 25px;
  text-align: left;
}

.embed-header {
  border-color: var(--line);
}

.embed-body .mini-info-row .info-li,
.embed-body .info,
.embed-body .currency,
.embed-body .stats,
.inventory-items .item,
.team .team-slot {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-deep);
  color: var(--text);
}

.embed-body .mini-info-row .info-li:hover {
  background: var(--surface-raised);
}

.code,
.cmd {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #0a1117;
  color: #7ed5ef;
}

.character-table,
.players-table,
table.steelBlueCols,
.drop-table {
  border: 1px solid var(--line);
  border-collapse: collapse;
  border-radius: 4px;
  background: var(--surface-deep);
  color: var(--text);
}

.character-table th,
.players-table th,
table.steelBlueCols thead,
.drop-table th {
  border-color: var(--line);
  background: #1b2b36;
  color: #eaf3f6;
}

.character-table td,
.players-table td,
table.steelBlueCols td,
table.steelBlueCols th,
.drop-table td,
.drop-table th {
  border-color: var(--line);
}

.character-table tbody tr:hover,
.players-table tbody tr:hover {
  background: rgba(71, 184, 220, .08);
  color: #fff;
}

.inventory-items,
.team-layout .team,
.team-layout .team.enabled {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-deep);
}

.team.enabled .team-slot {
  border: 1px solid var(--blue);
  background: #164b61;
}

.tabcontent.container {
  width: min(1120px, calc(100% - 48px));
  margin: 110px auto 48px;
  padding: 0;
  border: 0;
}

.cmdgroup {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}

.accordion {
  padding: 15px 18px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.accordion:hover,
.accordion.active {
  background: var(--surface-raised);
  color: #fff;
}

.panel {
  padding: 0;
  background: var(--surface-deep);
}

table.steelBlueCols {
  width: 100%;
  font-family: var(--font-body);
}

table.steelBlueCols tbody td {
  padding: 10px 13px;
  color: #dce4e8;
  font-size: 13px;
}

table.steelBlueCols tr:nth-child(even) {
  background: #121b22;
}

.content #summary {
  float: left;
  width: 250px;
  padding: 0;
}

.content #summary ol {
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

.content #summary ol li {
  margin: 3px 0;
  padding: 9px 10px;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.content #summary ol li:hover {
  background: rgba(71, 184, 220, .1);
  color: #fff;
}

.content #tutorials {
  float: none;
  width: auto;
  margin-left: 278px;
}

.content .cArea {
  height: auto;
  min-height: 0;
  margin: 0 0 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: #d0d9de;
}

.content .cArea h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 27px;
}

.content .cArea p {
  color: #c1cbd1;
}

.content .game-img img {
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
}

.event-selector input,
.form-section input,
.add-drop input,
.character.form-section .form-row input,
.character.form-section .form-row select,
.character.form-section .form-row textarea {
  border: 1px solid var(--line-bright);
  border-radius: 4px;
  background: #0c141b;
  color: var(--text);
}

.event-selector input:focus,
.form-section input:focus,
.add-drop input:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(71, 184, 220, .18);
}

.event-selector button,
.event-card button,
button#save {
  border: 1px solid var(--blue-deep);
  border-radius: 4px;
  background: var(--blue-deep);
  color: #fff;
  font-weight: 700;
  transition: background-color .18s ease, border-color .18s ease;
}

.event-selector button:hover,
.event-card button:hover,
button#save:hover {
  border-color: var(--blue);
  background: #1b7797;
}

.players-page .dashboard-container {
  padding-top: 22px;
}

.players-table-wrap {
  border-color: var(--line);
}

.players-pagination a,
.players-search button,
.players-page-jump button {
  border-color: var(--blue-deep);
  background: var(--blue-deep);
}

.players-pagination a:hover,
.players-search button:hover,
.players-page-jump button:hover {
  border-color: var(--blue);
  background: #1b7797;
}

@media (max-width: 900px) {
  .top {
    padding: 0 14px;
  }

  #nav .nav-container {
    width: 100%;
    gap: 12px;
  }

  #nav .nav-links {
    gap: 0;
  }

  #nav .navitem {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 12px;
  }

  .dashboard-container {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 16px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .dashboard-content,
  .players-main,
  .dashboard-container > main {
    padding: 18px;
  }
}

@media (max-width: 760px) {
  .top {
    padding: 0 10px;
  }

  #nav .nav-container {
    flex-wrap: wrap;
    flex-direction: row;
    min-height: 62px;
    margin-top: 8px;
    padding: 7px 9px 7px 13px;
  }

  #nav .brand {
    font-size: 20px;
  }

  #nav .brand img {
    width: 28px;
    height: 28px;
  }

  #nav .nav-toggle {
    display: inline-flex;
    flex: 0 0 42px;
    margin-left: auto;
    width: 42px;
  }

  #nav .nav-links {
    display: none;
    flex: 0 0 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
  }

  #nav.open .nav-links {
    display: flex;
  }

  #nav .nav-links .navitem {
    justify-content: flex-start;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 14px;
  }

  #nav .navitem.nav-account {
    margin: 4px 0 0;
  }

  .container,
  .hero-inner {
    width: calc(100% - 32px);
  }

  .banner {
    min-height: 700px;
    align-items: flex-start;
    padding: 122px 0 36px;
    background-position: center bottom;
    background-size: auto 48%;
  }

  .slogan {
    width: 100%;
    padding: 22px 0;
  }

  .slogan .title {
    font-size: 58px;
  }

  .hero-line {
    max-width: 360px;
    font-size: 26px;
  }

  .slogan .subtitle {
    max-width: 470px;
    font-size: 14px;
  }

  .home-content {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .home-section-heading h2 {
    font-size: 34px;
  }

  .feature-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    min-height: 0;
    padding: 30px 0;
  }

  .feature-reverse .feature-copy,
  .feature-reverse .splash-illustration {
    order: initial;
  }

  .feature-copy h3 {
    font-size: 28px;
  }

  .dashboard-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .dashboard-sidebar {
    position: static;
  }

  .dashboard-content,
  .players-main,
  .dashboard-container > main {
    padding: 14px;
  }

  .content #summary {
    position: static;
    width: 100%;
    margin-bottom: 14px;
  }

  .content #tutorials {
    margin-left: 0;
  }

  .content .cArea {
    padding: 16px;
  }

  .tabcontent.container {
    width: calc(100% - 32px);
    margin-top: 96px;
  }
}

@media (max-width: 480px) {
  .banner {
    min-height: 690px;
    background-position: center bottom;
    background-size: auto 45%;
  }

  .hero-eyebrow {
    font-size: 10px;
  }

  .slogan .title {
    font-size: 50px;
  }

  .ad-buttons {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 20px;
  }

  .invite {
    min-width: 190px;
  }

  .feature-band {
    gap: 18px;
  }

  .splash-illustration {
    grid-template-columns: minmax(0, 1fr);
  }

  .players-pagination {
    flex-wrap: wrap;
  }

  .players-page-jump {
    order: 3;
    flex: 1 0 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}