/* Shared account header and landscape wallet. */
#public-home .arena-lobby-header {
  gap: 12px;
  padding: 4px 20px;
  background: linear-gradient(110deg, #001b29, #00101f);
}
#public-home .lobby-wordmark {
  width: 22%;
  flex: 0 1 22%;
  align-self: stretch;
  margin: 0;
  border-bottom: 2px solid #f4d477;
  border-right: 2px solid #f4d477;
  border-bottom-right-radius: 65px;
  padding-right: 28px;
}
#public-home .lobby-wordmark h1 {
  width: 100%;
}
#public-home .lobby-wordmark img {
  width: 100%;
  max-height: 75px;
  object-fit: contain;
}
#public-home .lobby-currencies {
  flex: 1 1 40%;
  min-width: 0;
  gap: 12px;
}
#public-home .lobby-currencies .header-balance {
  display: flex;
  width: auto;
  flex: 1;
  min-width: 0;
  gap: 7px;
  padding: 3px 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffe18b;
  border-radius: 40px;
  box-shadow:
    inset 0 2px 5px #ddf9ff33,
    0 1px 3px #f4b23488;
  background: #00191c;
}
#public-home .header-balance > span {
  font-size: clamp(10px, 1.2vw, 20px);
}
#public-home .header-balance strong {
  font-size: clamp(12px, 1.5vw, 25px);
  white-space: nowrap;
}
#public-home .currency-art {
  width: 44px;
  height: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 2px #0008);
}
#public-home .lobby-identity {
  flex: 0 1 23%;
  min-width: 0;
  border-left: 1px solid #ceba83;
  padding-left: 12px;
}
#public-home .header-avatar {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  border: 2px solid #f8df8c;
  border-radius: 50%;
  background: radial-gradient(at top, #03b265, #00432e);
  font-size: 35px;
}
.header-player {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 3px;
}
#public-home #public-player {
  font-size: clamp(11px, 1.5vw, 24px);
  max-width: 190px;
}
.header-level {
  display: flex;
  gap: 8px;
  align-items: center;
}
#public-home #player-kind {
  white-space: nowrap;
  margin: 0;
  font-size: 12px;
  padding: 2px 9px;
}
#header-xp {
  appearance: none;
  flex: 1;
  width: 50px;
  height: 12px;
  border: 1px solid #8ca8b2;
  border-radius: 20px;
  overflow: hidden;
  background: #00121d;
}
#header-xp::-webkit-progress-bar {
  background: #00121d;
}
#header-xp::-webkit-progress-value {
  background: linear-gradient(#7fffaf, #00ab48);
  border-radius: 20px;
}
#header-xp-label {
  font-size: 10px;
  white-space: nowrap;
}
#public-home .account-control {
  font-size: 9px;
  padding: 4px;
  max-width: 50px;
}
#arena-wallet {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1.3fr) auto;
  gap: 14px;
  padding: 12px 20px 8px;
  overflow: hidden;
}
#arena-wallet[hidden] {
  display: none;
}
.wallet-title {
  display: flex;
  align-items: center;
  gap: 22px;
}
#arena-wallet h2 {
  color: #ffe18b;
  font-size: clamp(22px, 3vw, 50px);
  font-style: italic;
}
#arena-wallet h3 {
  color: #ffe18b;
  font-size: clamp(14px, 2vw, 32px);
  letter-spacing: 0.02em;
}
.wallet-title p {
  font-size: clamp(12px, 1.5vw, 24px);
  font-style: italic;
  border-left: 2px solid #f3d883;
  padding-left: 24px;
}
.wallet-balances {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
}
.wallet-card,
.wallet-box {
  border: 1.5px solid #e5c36a;
  border-radius: 20px;
  background: radial-gradient(at 25% 0%, #00563b, #002b28 60%, #001c26);
  box-shadow: inset 0 2px 3px #fff5;
  min-width: 0;
  min-height: 0;
}
.wallet-card {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  gap: 16px;
  overflow: hidden;
}
#public-home .wallet-card .currency-art {
  width: 27%;
  height: 90%;
  max-height: 125px;
}
.wallet-card > div {
  min-width: 0;
  border-left: 1px solid #e5ca79;
  padding-left: 18px;
}
.wallet-card strong {
  display: block;
  font-size: clamp(22px, 3.8vw, 62px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.wallet-card p {
  font-size: clamp(10px, 1.3vw, 21px);
  font-style: italic;
  white-space: nowrap;
  line-height: 1.1;
}
.wallet-card h3 {
  line-height: 1;
}
.wallet-middle {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  min-height: 0;
}
.wallet-box {
  padding: 9px 18px;
}
.wallet-box > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wallet-clubs {
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.wallet-clubs header > span {
  font-size: clamp(9px, 1.2vw, 18px);
  font-style: italic;
}
#wallet-club-list {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  min-height: 0;
  align-content: center;
  font-size: 12px;
}
.wallet-club-row {
  display: flex;
  min-height: 0;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #a99255;
}
.wallet-club-row:last-child {
  border-bottom: 0;
}
.wallet-club-emblem {
  color: #ffdd70;
  font-size: 42px;
  width: 55px;
  text-align: center;
}
.wallet-club-emblem img {
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}
.wallet-club-row > div {
  flex: 1;
  min-width: 0;
}
.wallet-club-row strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: clamp(12px, 1.65vw, 26px);
}
.wallet-club-row small {
  font-size: clamp(9px, 1.1vw, 16px);
  font-style: italic;
}
.wallet-club-row > b {
  font-size: clamp(11px, 1.6vw, 25px);
  white-space: nowrap;
}
.wallet-pages {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  font-size: 11px;
}
#public-home .wallet-pages button {
  padding: 0 10px;
  line-height: 20px;
  border-radius: 7px;
  border: 1px solid #c4aa5b;
  background: #002e2d;
  font-size: 18px;
}
.wallet-exchange {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 8px;
}
.wallet-rate {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c4aa5b;
  border-radius: 15px;
  background: #08604488;
  font-size: clamp(11px, 1.65vw, 25px);
}
.wallet-rate b {
  font-size: 30px;
  margin: 0 6px;
}
#public-home #wallet-exchange {
  background: linear-gradient(#ffeaa0, #ffc62e 65%, #d29200);
  color: #101907;
  border: 2px solid #ffe997;
  border-radius: 30px;
  font-size: clamp(12px, 1.6vw, 25px);
  font-weight: bold;
  padding: 7px;
  width: 85%;
  justify-self: center;
}
.wallet-exchange p {
  text-align: center;
  font-style: italic;
  font-size: clamp(10px, 1.2vw, 18px);
  line-height: 1;
}
.wallet-history {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 5px;
}
.wallet-history table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: clamp(10px, 1.25vw, 20px);
}
.wallet-history th {
  text-align: left;
  background: #155748;
}
.wallet-history td,
.wallet-history th {
  padding: 3px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wallet-history th:first-child {
  width: 36%;
}
.wallet-history th:last-child,
.wallet-history td:last-child {
  text-align: right;
}
.wallet-history tbody tr {
  border-bottom: 1px solid #c8c49a77;
}
.wallet-history tbody tr:last-child {
  border-bottom: 0;
}
.wallet-positive {
  color: #7fffaa;
}
.wallet-negative {
  color: #ffdc59;
}
#arena-wallet footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}
@media (max-height: 500px) {
  #arena-wallet {
    gap: 6px;
    padding: 6px 10px 4px;
    grid-template-rows: auto minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.35fr) auto;
  }
  .wallet-title {
    gap: 12px;
  }
  .wallet-title p {
    padding-left: 12px;
  }
  #arena-wallet h2 {
    font-size: 25px;
  }
  #arena-wallet h3 {
    font-size: 15px;
  }
  .wallet-card {
    padding: 4px 8px;
    gap: 6px;
    border-radius: 12px;
  }
  .wallet-card > div {
    padding-left: 8px;
  }
  .wallet-card strong {
    font-size: 25px;
  }
  .wallet-card p {
    font-size: 10px;
  }
  .wallet-box {
    padding: 4px 9px;
    border-radius: 12px;
  }
  .wallet-club-emblem {
    font-size: 24px;
    width: 30px;
  }
  .wallet-club-emblem img {
    max-height: 24px;
  }
  .wallet-club-row {
    gap: 6px;
  }
  .wallet-club-row strong {
    font-size: 14px;
  }
  .wallet-club-row small {
    font-size: 9px;
  }
  .wallet-exchange {
    gap: 3px;
  }
  .wallet-rate b {
    font-size: 19px;
    margin: 0;
  }
  #public-home .wallet-rate .currency-art {
    width: 25px;
    height: 25px;
  }
  #public-home #wallet-exchange {
    padding: 2px;
    font-size: 14px;
  }
  .wallet-pages {
    font-size: 9px;
    gap: 5px;
  }
  #public-home .wallet-pages button {
    line-height: 14px;
    font-size: 14px;
  }
  .wallet-history table {
    font-size: 11px;
  }
  .wallet-history td,
  .wallet-history th {
    padding: 1px 5px;
  }
  #arena-wallet footer {
    font-size: 9px;
  }
  #public-home .header-avatar {
    width: 34px;
    height: 34px;
    font-size: 23px;
  }
  #public-home .arena-lobby-header {
    gap: 6px;
    padding-inline: 8px;
  }
  #public-home .lobby-currencies {
    gap: 5px;
  }
  #public-home .lobby-currencies .header-balance {
    padding: 2px 5px;
    gap: 4px;
  }
  #public-home .header-balance .currency-art {
    width: 24px;
    height: 24px;
  }
  #public-home .lobby-wordmark {
    padding-right: 12px;
  }
  #public-home .lobby-identity {
    padding-left: 6px;
    gap: 5px;
  }
  #header-xp-label {
    font-size: 8px;
  }
  #public-home #player-kind {
    font-size: 9px;
    padding: 1px 5px;
  }
  #header-xp {
    height: 8px;
  }
}
@media (max-width: 700px) {
  #public-home .lobby-wordmark {
    flex-basis: 19%;
    max-width: none;
  }
  #public-home .header-balance > span {
    display: none;
  }
  #public-home .header-balance strong {
    font-size: 12px;
  }
  #public-home .lobby-currencies {
    flex-basis: 32%;
  }
  #public-home .lobby-identity {
    flex-basis: 24%;
  }
  #public-home .header-avatar {
    display: none;
  }
  #public-home #public-player {
    max-width: 90px;
    font-size: 12px;
  }
  #arena-wallet {
    gap: 4px;
    padding: 4px 7px;
  }
  .wallet-title p {
    font-size: 11px;
  }
  #arena-wallet h2 {
    font-size: 21px;
  }
  #arena-wallet h3 {
    font-size: 12px;
  }
  .wallet-balances {
    gap: 6px;
  }
  .wallet-card strong {
    font-size: 21px;
  }
  .wallet-card p {
    font-size: 8px;
  }
  .wallet-middle {
    gap: 7px;
  }
  .wallet-box {
    padding: 3px 7px;
  }
  .wallet-clubs header > span {
    display: none;
  }
  .wallet-club-row strong {
    font-size: 11px;
  }
  .wallet-club-row small {
    font-size: 8px;
  }
  .wallet-club-emblem {
    width: 23px;
    font-size: 20px;
  }
  .wallet-club-row > b {
    font-size: 10px;
  }
  .wallet-rate {
    gap: 3px;
    font-size: 10px;
  }
  #public-home .wallet-rate .currency-art {
    width: 20px;
    height: 20px;
  }
  #public-home #wallet-exchange {
    font-size: 12px;
  }
  .wallet-exchange p {
    font-size: 9px;
  }
  .wallet-history table {
    font-size: 10px;
  }
}
