.page-shell {
  max-width: 100vw;
  overflow-x: clip;
}

.brand-bar {
  position: fixed !important;
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: calc(12px + env(safe-area-inset-left, 0px));
  z-index: 10000 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  max-width: calc(100vw - 180px);
  margin: 0 !important;
  padding: 5px 10px 5px 6px !important;
  border: 1px solid rgba(30, 27, 24, .1);
  border-radius: 999px;
  background: rgba(255, 251, 243, .9);
  box-shadow: 0 12px 32px rgba(30, 27, 24, .14);
  backdrop-filter: blur(14px);
}

.brand-logo {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 auto;
}

.brand-name {
  min-width: 0;
  overflow: hidden;
  color: #1e1b18 !important;
  font-size: .98rem !important;
  font-weight: 900 !important;
  line-height: 1;
  letter-spacing: 0 !important;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.community-announcement-bar {
  position: relative;
  z-index: 60;
  box-sizing: border-box;
  display: block;
  width: min(calc(100% - 192px), 780px);
  margin: calc(12px + env(safe-area-inset-top, 0px)) auto 0;
  padding: 14px 16px;
  border: 1px solid rgba(214, 171, 92, .28);
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(214, 171, 92, .16), rgba(32, 39, 49, .72) 48%, rgba(17, 21, 28, .92)),
    #151922;
  color: #f7f0df;
  box-shadow: 0 14px 42px rgba(0, 0, 0, .22);
}

.community-announcement-bar.is-wallet-gate {
  margin: 0;
}

.community-announcement-copy {
  min-width: 0;
}

.community-announcement-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(214, 171, 92, .4);
  border-radius: 999px;
  color: #f0c979;
  background: rgba(214, 171, 92, .1);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
}

.community-announcement-title {
  display: block;
  margin-top: 8px;
  color: #fff8ea;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: 0;
}

.community-announcement-body {
  margin: 6px 0 0;
  color: rgba(247, 240, 223, .82);
  font-size: .92rem;
  line-height: 1.58;
  font-weight: 650;
}

.community-announcement-controls {
  display: none;
}

.community-language-switcher {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
  z-index: 10000;
}

.community-language-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 122px;
  max-width: 160px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  color: #fff8ea;
  background: rgba(19, 23, 31, .92);
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  outline: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.community-language-button:focus {
  border-color: rgba(240, 201, 121, .72);
  box-shadow: 0 0 0 3px rgba(240, 201, 121, .14);
}

.community-language-arrow {
  font-size: .8rem;
  line-height: 1;
  opacity: .82;
}

.community-language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 4px;
  width: 154px;
  padding: 6px;
  border: 1px solid rgba(30, 27, 24, .12);
  border-radius: 8px;
  background: rgba(255, 251, 243, .98);
  box-shadow: 0 18px 42px rgba(30, 27, 24, .18);
}

.community-language-menu[hidden] {
  display: none;
}

.community-language-option {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 9px 10px;
  background: transparent;
  color: #1e1b18;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.community-language-option:hover,
.community-language-option.is-active {
  background: rgba(214, 171, 92, .18);
}

@media (max-width: 680px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-shell {
    padding-top: 14px !important;
  }

  .brand-bar {
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: calc(10px + env(safe-area-inset-left, 0px));
    max-width: calc(100vw - 152px);
  }

  .wallet-gate {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .wallet-gate-card {
    width: min(100%, calc(100vw - 40px)) !important;
    max-width: calc(100vw - 40px);
  }

  .wealth-stats-grid span,
  .identity-meta span,
  .compact-meta span,
  .team-grid span,
  .global-burn-grid span {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .community-announcement-bar {
    width: calc(100% - 20px);
    margin-top: calc(54px + env(safe-area-inset-top, 0px));
    padding: 13px;
  }

  .community-announcement-title {
    font-size: 1rem;
  }

  .community-announcement-body {
    font-size: .88rem;
    line-height: 1.52;
  }

  .community-language-switcher {
    top: calc(10px + env(safe-area-inset-top, 0px));
    right: calc(10px + env(safe-area-inset-right, 0px));
  }

  .community-language-button {
    min-width: 106px;
    max-width: 132px;
    min-height: 34px;
    padding: 7px 8px;
    font-size: .8rem;
  }

  .community-language-menu {
    width: 142px;
  }
}
