.game.is-account-page {
  width: 100%;
  min-width: 0;
  min-height: 100dvh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.account-page {
  width: 100%;
  min-height: 100dvh;
  padding: 20px max(20px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background:
    linear-gradient(180deg, rgba(2, 10, 18, 0.5), rgba(2, 8, 14, 0.9)),
    radial-gradient(circle at 72% 12%, rgba(69, 190, 235, 0.14), transparent 32%);
}

.account-page-shell {
  width: min(920px, 100%);
  margin: 0 auto;
  display: grid;
  align-content: start;
  gap: 14px;
}

.account-page-header {
  min-height: 88px;
  padding: 12px 4px 14px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(80, 200, 255, 0.48);
}

.account-page-back {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(94, 213, 247, 0.52);
  border-radius: 4px;
  color: #b9efff;
  background: rgba(3, 20, 32, 0.86);
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.account-page-heading {
  min-width: 0;
}

.account-page-heading span,
.account-section-heading > span {
  color: #78a7bc;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-page-heading h1,
.account-section-heading h2 {
  margin: 2px 0 0;
  color: #eafaff;
  letter-spacing: 0;
  text-transform: uppercase;
}

.account-page-heading h1 {
  overflow: hidden;
  font-size: 2.2rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-page-avatar {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(106, 224, 255, 0.72);
  border-radius: 50%;
  color: #dff8ff;
  background: #071925;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(80, 200, 255, 0.18);
}

.account-page-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.account-tabs button {
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(79, 154, 184, 0.38);
  border-radius: 4px;
  color: #91b9ca;
  background: rgba(3, 17, 28, 0.84);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.account-tabs .is-active {
  color: #fff;
  border-color: #63dfff;
  background: rgba(18, 80, 106, 0.72);
}

.account-content {
  min-height: 260px;
  padding: 4px 0;
}

.account-page-status {
  padding: 9px 11px;
  border-left: 3px solid #58d9ff;
  color: #ccefff;
  background: rgba(5, 38, 55, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

@media (max-width: 600px) {
  .account-page {
    padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .account-page-header {
    min-height: 72px;
    grid-template-columns: 42px minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .account-page-back {
    width: 40px;
    height: 40px;
  }

  .account-page-heading h1 {
    font-size: 1.65rem;
  }

  .account-page-avatar {
    width: 42px;
    height: 42px;
  }

  .account-tabs {
    gap: 4px;
  }

  .account-tabs button {
    min-height: 40px;
    padding: 7px 4px;
    font-size: 0.7rem;
  }
}
