.arena-header {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: .5rem clamp(.65rem, 2vw, 1.75rem);
  align-items: center;
  padding: .65rem clamp(.65rem, 1.5vw, 1.4rem);
  background: #15262d;
  color: #f2f6ff;
  border-bottom: 1px solid #36515f;
}
.arena-header > .brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .42rem;
  color: inherit;
  text-decoration: none;
  font-size: 1.07rem;
  letter-spacing: .12em;
}
.arena-header .brand svg { width: 1.65rem; height: 1.65rem; color: #cafa77; }
.arena-header > nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  gap: clamp(.4rem, 1.2vw, 1rem);
  flex-wrap: nowrap;
}
.arena-header > .arena-header-actions { justify-self: end; }
.arena-header nav a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  min-width: 0;
  white-space: nowrap;
  padding: .25rem clamp(.15rem, .65vw, .65rem);
  color: inherit;
  background: transparent;
  text-decoration: none;
  border-radius: .65rem;
  font-size: .875rem;
  font-weight: 700;
}
.arena-header nav .menu-emblem {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: .6rem;
  background: #284654;
  color: #c9ddff;
}
.arena-header nav a .menu-emblem svg { width: 1.25rem; height: 1.25rem; color: inherit; }
.arena-header nav a:is(:hover, :focus-visible) { background: #203945; }
.arena-header nav a[aria-current="page"] { color: #d5fb9b; background: #263f3b; }
.arena-header nav a[aria-current="page"] .menu-emblem {
  color: #d5fb9b;
  background: #345547;
  box-shadow: inset 0 0 0 1px #709260;
}
.arena-header .arena-fullscreen {
  margin: 0;
  border: 0;
  border-radius: .65rem;
  padding: .4rem .55rem;
  background: #26314a;
  color: #f3f6ff;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.2;
  min-inline-size: 0;
  inline-size: 8.25rem;
  cursor: pointer;
}
@media (max-width: 820px) {
  .arena-header { grid-template-columns: minmax(0, 1fr) auto; }
  .arena-header > .brand { grid-area: 1 / 1; }
  .arena-header > nav { grid-area: 2 / 1 / 3 / -1; }
  .arena-header > .arena-header-actions { grid-area: 1 / 2; }
}
@media (max-width: 420px) {
  .arena-header > nav { gap: .25rem; }
  .arena-header nav a { font-size: .75rem; }
  .arena-header .arena-fullscreen { inline-size: 6.25rem; }
}

.arena-header .header-account { position: relative; }
.arena-header .header-account summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .25rem .65rem;
  border-radius: .65rem;
  list-style: none;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 700;
}
.arena-header .header-account summary::-webkit-details-marker { display: none; }
.arena-header .header-account summary:is(:hover,:focus-visible),
.arena-header .header-account[open] summary { background: #203945; }
.arena-header .header-account summary[aria-current="page"] { color: #d5fb9b; background: #263f3b; }
.arena-header .header-account summary[aria-current="page"] .menu-emblem { color: #d5fb9b; background: #345547; }
.arena-header .header-account-menu {
  position: absolute;
  z-index: 300;
  inset-inline-end: 0;
  inset-block-start: 100%;
  width: min(15rem, calc(100vw - 1.5rem));
  padding: .5rem;
  box-sizing: border-box;
  border: 1px solid #456575;
  border-radius: .8rem;
  color: #f2f6ff;
  background: #1b303b;
  box-shadow: 0 12px 32px #0008;
}
.arena-header .header-account-menu:has(.header-account-menu-balance) {
  width: min(17.5rem, calc(100vw - 1.5rem));
}
.arena-header .header-account-menu-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  white-space: nowrap;
  margin: 0 0 .25rem;
  padding: .65rem;
  font-size: .82rem;
  border-bottom: 1px solid #456575;
}
.arena-header .header-account-menu-balance strong {
  color: #d5fb9b;
  font-size: clamp(.85rem, 2.8vw, 1rem);
  font-variant-numeric: tabular-nums;
}
.arena-header .header-account-menu a { display: block; padding: .65rem; }

html { scrollbar-gutter: stable; }
.arena-header .header-account-menu button {
  display: block;
  width: 100%;
  margin: .25rem 0 0;
  padding: .65rem;
  border: 0;
  border-radius: .65rem;
  text-align: start;
  font: inherit;
  font-weight: 700;
  background: #284654;
  color: #f2f6ff;
  cursor: pointer;
}

.arena-header { line-height: 1.25; }

.arena-header .header-account-menu {
  display: grid;
  gap: .2rem;
  background: linear-gradient(155deg,#264653,#1b303b 60%);
}
.arena-header .header-account-menu a,
.arena-header .header-account-menu button {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
  gap: .55rem;
  min-height: 2.6rem;
  padding: .35rem .55rem;
  box-sizing: border-box;
}
.arena-header .header-account-menu a:hover,
.arena-header .header-account-menu a:focus-visible { background: #345460; }
.arena-header .header-account-item-icon {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  flex: none;
  border-radius: .45rem;
  background: #284654;
  color: #d5fb9b;
}
.arena-header .header-account-menu svg { width: 1.05rem; height: 1.05rem; }

.arena-header .header-account summary { flex-direction: row; gap: .55rem; }
.header-account-identity { display: grid; justify-items: center; gap: .2rem; }
.arena-header .header-wallet {
 display: flex;
 align-items: center;
 gap: .25rem;
 padding: .38rem .45rem;
 border: 1px solid #4b6758;
 border-radius: .55rem;
 background: #263f3b;
 color: #d5fb9b;
 font-size: .78rem;
 white-space: nowrap;
 font-variant-numeric: tabular-nums;
}
.header-wallet svg,.header-account-menu-balance svg { width: 1rem; height: 1rem; flex: none; }
.header-account-menu-balance span { display: flex; align-items: center; gap: .45rem; }
@media (min-width: 821px) and (max-width: 1020px), (max-width: 380px) {
 .header-wallet small { display: none; }
}

.arena-header .header-wallet small { display: inline; font-size: inherit; }
.arena-header .site-brand-image { display:block; width:auto; height:2.35rem; max-width:min(11rem,42vw); object-fit:contain; }
