:root {
  color-scheme: dark;
  --bg: #0c0f0f;
  --surface: #171b18;
  --surface-2: #202620;
  --surface-3: #283028;
  --line: #364039;
  --text: #f4f7f8;
  --muted: #9fa79d;
  --soft: #cbd3dc;
  --accent: #51d1a8;
  --accent-strong: #8ae7c7;
  --warn: #f0c35d;
  --bad: #e16f6f;
  --theme-a: #51d1a8;
  --theme-b: #f0c35d;
  --theme-c: #cbd3dc;
  --green: var(--accent);
  --cyan: var(--accent-strong);
  --violet: var(--theme-b);
  --amber: var(--warn);
  --shadow: 0 20px 52px rgba(0, 0, 0, .3);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-theme="ember"] {
  --bg: #100f0e;
  --surface: #1b1815;
  --surface-2: #27211b;
  --surface-3: #302820;
  --line: #43382d;
  --muted: #aaa09a;
  --soft: #ddd4cc;
  --accent: #f2a365;
  --accent-strong: #ffd2a3;
  --warn: #e9c46a;
  --bad: #ef767a;
  --theme-a: #f2a365;
  --theme-b: #e9c46a;
  --theme-c: #ef767a;
}

body[data-theme="tide"] {
  --bg: #0b1012;
  --surface: #151c1e;
  --surface-2: #1f282b;
  --surface-3: #263236;
  --line: #34454b;
  --muted: #9ea9ad;
  --soft: #d0dce0;
  --accent: #69d2e7;
  --accent-strong: #a7ecf7;
  --warn: #f1cf6b;
  --bad: #ef7d83;
  --theme-a: #69d2e7;
  --theme-b: #a7ecf7;
  --theme-c: #f1cf6b;
}

body[data-theme="violet"] {
  --bg: #0f0b14;
  --surface: #1a1422;
  --surface-2: #251b32;
  --surface-3: #312241;
  --line: #4a3862;
  --muted: #aaa0b6;
  --soft: #ddd3ea;
  --accent: #b46cff;
  --accent-strong: #d9b6ff;
  --warn: #f0c86a;
  --bad: #f06f86;
  --theme-a: #b46cff;
  --theme-b: #7fd7ff;
  --theme-c: #f0c86a;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
}

button,
select,
input {
  font: inherit;
}

button {
  min-height: 42px;
  border: 1px solid rgba(81, 209, 168, .28);
  border-radius: 8px;
  color: #0b1110;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: default;
  opacity: .52;
  transform: none;
}

button.secondary,
button.keyButton,
button.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .16);
}

button.is-active,
button.keyButton.is-listening,
input.is-listening {
  color: #0b1110;
  background: linear-gradient(135deg, var(--theme-a), var(--theme-b));
  border-color: rgba(255, 255, 255, .36);
}

select,
input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-3);
  padding: 0 12px;
  outline: 0;
}

select option {
  color: var(--text);
  background: var(--surface-2);
}

input[readonly] {
  cursor: pointer;
}

input::placeholder {
  color: rgba(203, 211, 220, .52);
}

input[type="checkbox"],
input[type="range"] {
  min-height: 0;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

input[type="range"] {
  padding: 0;
  accent-color: var(--accent);
}

.shell {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, .1);
  background: var(--surface);
  backdrop-filter: blur(18px);
}

.brand,
.sessionCard,
.sessionBubble,
.sideStats,
.topbar,
.youPanel,
.controlCard,
.nearbyPanel,
.verifyPanel {
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
}

.brandMark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #06100c;
  background: linear-gradient(135deg, var(--theme-a), var(--theme-b));
  font-weight: 900;
}

.brand strong,
.brand span,
.sessionBubble h2,
.sessionBubble p,
.sessionCard strong,
.sessionCard span {
  display: block;
}

.brand span,
.sessionCard span,
.sessionBubble p,
.plateText span,
.playerMeta,
.commandBox span,
.codeBox span,
.sideStats span,
.eyebrow {
  color: var(--muted);
  font-size: .84rem;
}

.panelTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.railLabel {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sessionBubble {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
}

.sessionBubble h2 {
  margin: 0;
  font-size: 1.06rem;
}

.sessionBubble p {
  min-height: 38px;
  margin: 0;
  line-height: 1.35;
}

.sessionActions button {
  flex: 1 1 90px;
}

.sessionCard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
}

.navTabs {
  display: grid;
  gap: 10px;
}

.navTabs button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: var(--soft);
  background: rgba(255, 255, 255, .055);
}

.navTabs button.is-active {
  color: #0b1110;
  background: linear-gradient(135deg, var(--theme-a), var(--theme-b));
}

.navTabs button:disabled {
  color: rgba(203, 211, 220, .45);
  cursor: default;
}

.tabIcon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  font-size: .78rem;
  font-weight: 900;
}

.tabIcon img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.railFooter {
  display: flex;
  align-items: center;
  justify-content: center;
}

.themeButton {
  display: grid;
  place-items: center;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  background: var(--surface-2);
}

.themeIcon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(from 35deg, var(--theme-a), var(--theme-b), var(--theme-c), var(--theme-a));
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.08);
}

.sideStats {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
  border-radius: 8px;
}

.sideStats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .035);
}

.dot.good {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(81, 209, 168, .12), 0 0 18px rgba(81, 209, 168, .5);
}

.dot.warn {
  background: var(--warn);
  box-shadow: 0 0 0 4px rgba(255, 209, 106, .12), 0 0 18px rgba(255, 209, 106, .38);
}

.dot.bad {
  background: var(--bad);
  box-shadow: 0 0 0 4px rgba(255, 116, 116, .12), 0 0 18px rgba(255, 116, 116, .42);
}

.main {
  min-width: 0;
  padding: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 8px;
}

.topbar h1,
.verifyCopy h2,
.sectionHead h2 {
  margin: 0;
}

.topActions,
.accountCluster,
.buttonRow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.accountCluster {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.walletPill {
  order: 1;
}

.accountBubble {
  order: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: min(320px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-2);
}

.accountCopy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.accountCopy span,
.accountCopy small {
  color: var(--muted);
  font-size: .76rem;
}

.accountCopy strong,
.accountCopy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.walletPill,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--soft);
  background: rgba(255, 255, 255, .055);
  font-size: .86rem;
  font-weight: 800;
  white-space: nowrap;
}

.walletPill {
  min-height: 48px;
  border-radius: 8px;
}

.walletPill b {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.walletPill span {
  color: var(--text);
  font-weight: 900;
}

.pill.good {
  color: #09130f;
  background: var(--accent);
  border-color: transparent;
}

.pill.warn {
  color: #1a1305;
  background: var(--warn);
  border-color: transparent;
}

.pill.bad {
  color: #210607;
  background: var(--bad);
  border-color: transparent;
}

.view {
  position: relative;
  margin-top: 18px;
}

.verifyView {
  min-height: min(620px, calc(100vh - 150px));
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
}

.verifyAura {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.verifyAura span {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(28px);
  opacity: .22;
  animation: drift 12s ease-in-out infinite;
}

.verifyAura span:nth-child(1) {
  left: 8%;
  top: 8%;
  background: var(--accent);
}

.verifyAura span:nth-child(2) {
  right: 10%;
  top: 18%;
  background: var(--theme-b);
  animation-delay: -4s;
}

.verifyAura span:nth-child(3) {
  left: 42%;
  bottom: 4%;
  background: var(--accent-strong);
  animation-delay: -8s;
}

.verifyPanel {
  position: relative;
  width: min(620px, 100%);
  padding: 24px;
  border-radius: 8px;
}

.verifyCopy {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.verifyCopy p {
  margin: 0;
  color: var(--soft);
}

.codeBox {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(0, 0, 0, .22);
}

.codeBox strong {
  font-size: 3rem;
  line-height: 1;
}

.commandBox {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(81, 209, 168, .08);
  border: 1px solid rgba(81, 209, 168, .18);
}

.commandBox code {
  color: var(--text);
  font-size: 1.05rem;
  word-break: break-word;
}

.verifyActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.discordPanel {
  display: grid;
  gap: 18px;
}

.discordPanel .verifyCopy {
  margin-bottom: 0;
}

.discordBrand {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, #5865f2, var(--line) 42%);
  border-radius: 8px;
  background: color-mix(in srgb, #5865f2, transparent 84%);
}

.discordBrand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.discordGuild {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
}

.discordGuild span,
.discordGuild small {
  color: var(--soft);
}

.discordGuild strong {
  font-size: 1.08rem;
}

.voiceView {
  display: grid;
  gap: 16px;
}

.youPanel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
}

.namePlate,
.player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 50%, rgba(81, 209, 168, .12), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
}

.namePlate.is-speaking,
.player.is-speaking {
  border-color: rgba(81, 209, 168, .58);
  box-shadow: 0 0 0 1px rgba(81, 209, 168, .24), 0 0 32px rgba(81, 209, 168, .16);
}

.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #d8ffe8;
  background: linear-gradient(135deg, rgba(81, 209, 168, .26), rgba(240, 195, 93, .12));
  font-weight: 900;
  overflow: hidden;
}

.plateText,
.playerInfo {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.plateText strong,
.playerName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.playerNameRow {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.playerNameRow > .playerName,
.playerNameRow > strong {
  min-width: 0;
  flex: 0 1 auto;
}

.meterPanel {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .1);
}

.meterPanel strong {
  display: block;
  margin-top: 4px;
}

.meterTrack {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .28);
}

.meterTrack i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--theme-a), var(--theme-b), var(--theme-c));
  transition: width .08s linear;
}

.controlGrid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .8fr 1.4fr;
  gap: 12px;
}

.controlCard,
.panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.controlCard p,
.panel p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.35;
}

.settingsView {
  display: grid;
  gap: 16px;
}

.settingsGrid {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, .95fr);
  gap: 16px;
  align-items: start;
}

.panel {
  gap: 12px;
  padding: 16px;
}

.panel h2,
.panel .eyebrow {
  margin: 0;
}

.panelTitle h2 {
  margin: 0;
}

.controlCard label,
.panel label {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
}

.bindStack,
.micCleanup {
  display: grid;
  gap: 12px;
}

.bindField {
  display: grid;
  gap: 6px;
}

.bindControl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  gap: 8px;
  align-items: center;
}

.bindClear {
  display: grid;
  place-items: center;
  min-height: 34px;
  width: 34px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border-color: rgba(255,255,255,.12);
}

.bindControl button.secondary {
  min-height: 42px;
}

.bindClear:hover {
  color: var(--text);
}

.checkRow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.checkRow span {
  display: grid;
  gap: 2px;
  color: var(--text);
}

.checkRow small,
.fieldHint {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.rangeField {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.rangeTop,
.rangeScale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rangeTop b {
  color: var(--accent-strong);
}

.rangeScale {
  color: var(--muted);
  font-size: .74rem;
}

.comfortPanel {
  grid-column: 1 / -1;
}

.comfortPanel .buttonRow button {
  flex: 0 1 160px;
}

.compactControls .buttonRow button {
  flex: 1 1 86px;
}

.nearbyPanel {
  min-height: 300px;
  padding: 16px;
  border-radius: 8px;
}

.sectionHead {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.peerList {
  display: grid;
  gap: 10px;
}

.player {
  grid-template-columns: auto minmax(0, 1fr) minmax(110px, auto) auto;
  min-height: 72px;
}

.playerDistance {
  display: grid;
  justify-items: end;
  gap: 3px;
  color: var(--muted);
  font-size: .82rem;
}

.playerDistance b {
  color: var(--text);
  font-size: .95rem;
}

.mutePeer {
  min-width: 86px;
}

.mutePeer.is-muted {
  color: #1b1008;
  background: var(--warn);
}

.stateBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--soft);
  background: rgba(255, 255, 255, .055);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stateBadge.good {
  color: #09130f;
  background: var(--accent);
  border-color: transparent;
}

.shopView {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.shopSummary,
.shopCatalog {
  margin-bottom: 0;
}

.shopEquippedActions,
.shopSlotTabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}

.shopSlotTab {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--soft);
  background: rgba(0, 0, 0, .2);
  text-align: left;
  box-shadow: inset 3px 0 0 transparent;
}

.shopSlotTab:hover,
.shopSlotTab.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent), var(--line) 30%);
  background: color-mix(in srgb, var(--accent), var(--surface-2) 84%);
  box-shadow: inset 3px 0 0 var(--accent);
}

.shopToolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.shopFilter {
  width: auto;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--soft);
  background: rgba(0, 0, 0, .2);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.shopFilter:hover,
.shopFilter.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent), var(--line) 40%);
  background: color-mix(in srgb, var(--accent), var(--surface-2) 84%);
}

.shopItems {
  display: grid;
  gap: 14px;
}

.shopGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 12px;
}

.shopItem {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
}

.shopItemPreview.player {
  min-height: 76px;
  grid-template-columns: 48px minmax(0, 1fr) minmax(76px, 96px);
}

.shopItemPreview.player .stateBadge {
  justify-self: end;
  font-size: .58rem;
  padding-inline: 7px;
}

.shopItemCopy {
  display: grid;
  gap: 9px;
}

.shopItemCopy h3 {
  margin: 0;
  color: var(--text);
  font-size: .96rem;
  line-height: 1.2;
}

.shopItemCopy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}

.shopPrice {
  width: max-content;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(0, 0, 0, .2);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.emptyState {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 180px;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, .14);
  border-radius: 8px;
  text-align: center;
}

.emptyState strong {
  color: var(--text);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 20;
  max-width: min(520px, calc(100vw - 28px));
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(8, 16, 12, .94);
  box-shadow: var(--shadow);
}

.badgeAvatar {
  background: transparent;
  border: 0;
  overflow: visible;
}

.chatBadge {
  --a: var(--accent);
  --b: var(--accent-strong);
  --c: #0d1712;
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, .34), transparent 20%),
    conic-gradient(from 160deg, var(--a), var(--b), var(--c), var(--a));
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, .26), 0 0 18px rgba(102, 227, 161, .2);
  overflow: hidden;
}

.chatBadge::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: inherit;
}

.badgeMark {
  position: absolute;
  inset: 12px;
  color: #fff;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .42));
}

.badgeMark::before,
.badgeMark::after,
.badgeMark i {
  content: "";
  position: absolute;
  display: block;
  background: currentColor;
}

.mark-fang::before {
  inset: 0 18% 0;
  clip-path: polygon(50% 0, 84% 58%, 63% 100%, 49% 76%, 35% 100%, 16% 58%);
}

.mark-claw i {
  top: 0;
  width: 16%;
  height: 100%;
  border-radius: 999px;
  transform: rotate(18deg);
}

.mark-claw i:nth-child(1) { left: 18%; }
.mark-claw i:nth-child(2) { left: 42%; }
.mark-claw i:nth-child(3) { left: 66%; }

.mark-shell::before {
  inset: 2px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 10deg, currentColor 0 8deg, transparent 9deg 18deg);
}

.mark-crystal::before,
.mark-prism::before {
  inset: 0 22%;
  clip-path: polygon(50% 0, 92% 34%, 72% 100%, 28% 100%, 8% 34%);
}

.mark-track::before {
  left: 30%;
  top: 43%;
  width: 40%;
  height: 46%;
  border-radius: 48%;
}

.mark-track::after {
  left: 45%;
  top: 8%;
  width: 14%;
  height: 18%;
  border-radius: 50%;
  box-shadow: -13px 9px 0 currentColor, 13px 9px 0 currentColor, -6px -1px 0 currentColor, 6px -1px 0 currentColor;
}

.mark-rune::before {
  left: 45%;
  top: 0;
  width: 10%;
  height: 100%;
  border-radius: 999px;
}

.mark-rune::after {
  left: 15%;
  top: 25%;
  width: 70%;
  height: 12%;
  border-radius: 999px;
  transform: rotate(-28deg);
  box-shadow: 0 17px 0 currentColor;
}

.mark-coin::before,
.mark-halo::before {
  inset: 3px;
  border: 5px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

.mark-flower::after {
  inset: 1px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 8%, currentColor 0 17%, transparent 18%),
    radial-gradient(ellipse at 92% 50%, currentColor 0 17%, transparent 18%),
    radial-gradient(ellipse at 50% 92%, currentColor 0 17%, transparent 18%),
    radial-gradient(ellipse at 8% 50%, currentColor 0 17%, transparent 18%),
    radial-gradient(circle, currentColor 0 12%, transparent 13%);
}

.mark-moon::before {
  inset: 1px;
  border-radius: 50%;
}

.mark-moon::after {
  left: 34%;
  top: -1px;
  width: 68%;
  height: 88%;
  border-radius: 50%;
  background: var(--c);
}

.mark-flame::before {
  inset: 0 16%;
  border-radius: 55% 45%;
  clip-path: polygon(48% 0, 72% 26%, 64% 44%, 88% 63%, 70% 100%, 43% 87%, 25% 100%, 12% 70%, 30% 48%, 26% 25%);
}

.mark-sigil::before {
  inset: 2px;
  border: 4px solid currentColor;
  border-radius: 24% 76% 25% 75%;
  background: transparent;
  transform: rotate(45deg);
}

.mark-crown::before {
  left: 3%;
  top: 22%;
  width: 94%;
  height: 52%;
  clip-path: polygon(0 100%, 0 33%, 24% 59%, 39% 4%, 54% 58%, 78% 12%, 100% 33%, 100% 100%);
}

.skin-ember { --a: #ff7a32; --b: #ffd08a; --c: #35110c; }
.skin-moss { --a: #73d16b; --b: #d8f7a2; --c: #17351b; }
.skin-tide { --a: #2ed4c9; --b: #a7fff3; --c: #0d2d2a; }
.skin-slate { --a: #9fb0b4; --b: #e5eef0; --c: #263033; }
.skin-amber { --a: #d88b2b; --b: #ffe2a5; --c: #3b2310; }
.skin-frost { --a: #84e6ff; --b: #f1feff; --c: #173042; }
.skin-solar { --a: #ffcc4f; --b: #fff3b0; --c: #55310c; }
.skin-amethyst { --a: #a66cff; --b: #f1c7ff; --c: #25113f; }
.skin-honey { --a: #f2a83b; --b: #fff0a8; --c: #43260a; }
.skin-rosequartz { --a: #f28db1; --b: #ffe1ef; --c: #3b1324; }
.skin-void { --a: #6b5cff; --b: #e1d9ff; --c: #080713; }
.skin-inferno { --a: #ff5a2d; --b: #fff06e; --c: #290908; }
.skin-celestial { --a: #7ce6ff; --b: #ffe98e; --c: #12183c; }
.skin-arcane { --a: #c36bff; --b: #7df7ff; --c: #1a0d35; }
.skin-prismatic { --a: #73f6c4; --b: #ffde7d; --c: #271548; }
.skin-glacier { --a: #65c7ff; --b: #f6ffff; --c: #102438; }

.shape-shield {
  border-radius: 40% 40% 48% 48%;
  clip-path: polygon(50% 2%, 92% 16%, 83% 75%, 50% 98%, 17% 75%, 8% 16%);
}

.shape-stone {
  border-radius: 18px;
  clip-path: polygon(18% 5%, 74% 0, 96% 32%, 87% 82%, 42% 100%, 7% 73%, 0 22%);
}

.shape-hex {
  border-radius: 14px;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
}

.shape-diamond {
  border-radius: 12px;
  clip-path: polygon(50% 0, 94% 26%, 100% 68%, 50% 100%, 0 68%, 6% 26%);
}

.shape-rune {
  border-radius: 14px;
  clip-path: polygon(50% 0, 88% 14%, 100% 50%, 88% 86%, 50% 100%, 12% 86%, 0 50%, 12% 14%);
}

.effect-sparks {
  animation: badgePulse 3.4s ease-in-out infinite;
}

.effect-orbit::before,
.effect-corona::before,
.effect-rift::before,
.effect-prism::before {
  content: "";
  position: absolute;
  inset: -8px;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 255, 255, .42), transparent 88% 100%);
  animation: badgeOrbit 5.8s linear infinite;
  mix-blend-mode: screen;
}

.effect-forge {
  animation: badgeForge 3.6s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(24px, -18px, 0) scale(1.08); }
}

@keyframes badgePulse {
  0%, 100% { box-shadow: inset 0 -10px 18px rgba(0, 0, 0, .26), 0 0 14px rgba(255, 255, 255, .1); }
  50% { box-shadow: inset 0 -10px 18px rgba(0, 0, 0, .22), 0 0 24px rgba(255, 255, 255, .22); }
}

@keyframes badgeOrbit {
  to { transform: rotate(360deg); }
}

@keyframes badgeForge {
  0%, 100% { filter: saturate(1); }
  50% { filter: saturate(1.24) brightness(1.08); }
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .sideStats,
  .navTabs {
    grid-column: 1 / -1;
  }

  .controlGrid {
    grid-template-columns: 1fr 1fr;
  }

  .settingsGrid {
    grid-template-columns: 1fr;
  }

  .shopView {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .main,
  .sidebar {
    padding: 14px;
  }

  .topbar,
  .sectionHead,
  .meterPanel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .topbar,
  .sectionHead {
    flex-direction: column;
  }

  .accountCluster {
    width: 100%;
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .walletPill,
  .accountBubble {
    width: 100%;
  }

  .controlGrid {
    grid-template-columns: 1fr;
  }

  .bindControl {
    grid-template-columns: minmax(0, 1fr) auto 34px;
  }

  .player {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .shopGrid {
    grid-template-columns: 1fr;
  }

  .shopItemPreview.player {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .shopItemPreview.player .stateBadge {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .playerDistance,
  .mutePeer {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .playerDistance {
    justify-items: start;
  }

  .verifyActions {
    grid-template-columns: 1fr;
  }

  .codeBox strong {
    font-size: 2.3rem;
  }
}

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

  body {
    min-height: 100svh;
  }

  .shell {
    min-height: 100svh;
    width: 100%;
    overflow-x: hidden;
  }

  .sidebar,
  .main,
  .topbar,
  .sessionBubble,
  .navTabs,
  .sideStats,
  .verifyPanel,
  .youPanel,
  .nearbyPanel,
  .panel {
    min-width: 0;
    max-width: 100%;
  }

  .sidebar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .brand {
    min-width: 0;
    padding: 10px;
  }

  .brandMark {
    width: 36px;
    height: 36px;
  }

  .sessionBubble {
    grid-column: 1 / -1;
    gap: 9px;
    padding: 12px;
  }

  .sessionBubble h2 {
    font-size: 1rem;
  }

  .sessionBubble p {
    min-height: 0;
    font-size: .84rem;
  }

  .sessionActions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sessionActions button,
  .navTabs button {
    min-width: 0;
  }

  .navTabs {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .navTabs button {
    justify-content: center;
    min-height: 42px;
    padding: 0 6px;
    font-size: .82rem;
  }

  .tabIcon {
    width: 24px;
    height: 24px;
  }

  .railFooter {
    grid-column: 2;
    grid-row: 1;
    justify-content: end;
  }

  .themeButton {
    width: 40px;
    min-height: 40px;
  }

  .sideStats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
  }

  .sideStats div {
    justify-content: center;
    gap: 7px;
    min-width: 0;
  }

  .sideStats span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .72rem;
  }

  .main {
    padding: 12px;
  }

  .topbar {
    padding: 12px;
  }

  .topbar h1 {
    font-size: 1.45rem;
  }

  .accountCluster {
    display: grid;
    grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
  }

  .walletPill,
  .accountBubble {
    width: auto;
    min-width: 0;
  }

  .walletPill {
    display: grid;
    place-content: center;
    justify-items: center;
    padding: 8px 10px;
    min-height: 58px;
  }

  .accountBubble {
    padding: 8px;
  }

  .accountBubble .avatar {
    width: 40px;
    height: 40px;
  }

  .view {
    margin-top: 12px;
  }

  .verifyView {
    min-height: auto;
  }

  .verifyPanel,
  .youPanel,
  .nearbyPanel,
  .panel {
    padding: 12px;
  }

  .verifyCopy {
    margin-bottom: 12px;
  }

  .codeBox {
    padding: 14px;
  }

  .codeBox strong {
    font-size: clamp(2rem, 13vw, 2.8rem);
  }

  .commandBox {
    padding: 12px;
  }

  .commandBox code {
    font-size: .92rem;
  }

  .namePlate {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 68px;
  }

  .namePlate > .pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .meterPanel {
    gap: 10px;
  }

  .sectionHead h2 {
    font-size: 1.2rem;
  }

  .settingsGrid {
    gap: 12px;
  }

  .bindStack,
  .micCleanup {
    gap: 10px;
  }

  .checkRow,
  .rangeField {
    padding: 10px;
  }
}

@media (max-width: 420px) {
  .brand span,
  .tabIcon {
    display: none;
  }

  .pill {
    padding-inline: 10px;
    font-size: .8rem;
  }

  .navTabs button {
    gap: 0;
    min-height: 40px;
  }

  .accountCluster {
    grid-template-columns: 1fr;
  }

  .walletPill,
  .accountBubble {
    width: 100%;
  }

  .sideStats {
    grid-template-columns: 1fr;
  }

  .sideStats div {
    justify-content: space-between;
  }

  .bindControl {
    grid-template-columns: minmax(0, 1fr) 72px 34px;
    gap: 6px;
  }

  .bindControl button.secondary {
    padding-inline: 8px;
  }
}

@media (max-width: 720px) {
  :root {
    --mobile-nav-height: 78px;
  }

  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    min-height: 100svh;
    background:
      radial-gradient(circle at 18% -10%, color-mix(in srgb, var(--accent), transparent 82%), transparent 36%),
      radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--theme-b), transparent 88%), transparent 32%),
      var(--bg);
  }

  button,
  select,
  input {
    font-size: 16px;
  }

  button {
    min-height: 44px;
    touch-action: manipulation;
  }

  .shell {
    display: block;
    min-height: 100svh;
    padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px));
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 15;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    background: color-mix(in srgb, var(--surface), transparent 8%);
    backdrop-filter: none;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
  }

  .brand {
    min-width: 0;
    padding: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .brandMark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: .98rem;
    line-height: 1.05;
  }

  .brand span {
    display: block;
    font-size: .72rem;
  }

  .railFooter {
    grid-column: 2;
    grid-row: 1;
    justify-content: end;
  }

  .themeButton {
    width: 38px;
    min-height: 38px;
  }

  .sessionBubble {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    border-color: rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .045);
    box-shadow: none;
  }

  .sessionBubble .panelTitle {
    justify-content: flex-start;
    align-self: center;
  }

  .sessionBubble .railLabel {
    display: none;
  }

  .sessionBubble h2 {
    align-self: end;
    font-size: .98rem;
  }

  .sessionBubble p {
    grid-column: 1;
    min-height: 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    font-size: .78rem;
  }

  .sessionActions {
    grid-column: 1;
    grid-row: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: stretch;
    gap: 6px;
  }

  .sessionActions button {
    min-height: 36px;
    padding: 6px 8px;
    font-size: .76rem;
  }

  .sideStats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .sideStats div {
    min-width: 0;
    min-height: 30px;
    justify-content: center;
    gap: 6px;
    padding: 6px 7px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .035);
  }

  .sideStats span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .68rem;
  }

  .dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
  }

  .navTabs {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    grid-column: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), transparent 4%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
    backdrop-filter: blur(18px);
  }

  .navTabs button {
    min-width: 0;
    min-height: 52px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    border-radius: 8px;
    font-size: .72rem;
  }

  .navTabs .tabIcon {
    display: grid;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, .1);
  }

  .navTabs .tabIcon img {
    width: 17px;
    height: 17px;
  }

  .navTabs button > span:last-child {
    display: block;
  }

  .main {
    padding: 10px;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    box-shadow: none;
  }

  .topbar > div:first-child {
    min-width: 0;
  }

  .topbar h1 {
    font-size: 1.42rem;
    line-height: 1.05;
  }

  .topbar .eyebrow {
    font-size: .64rem;
  }

  .accountCluster {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(92px, .36fr) minmax(0, 1fr);
    gap: 8px;
  }

  .walletPill,
  .accountBubble {
    width: auto;
    min-width: 0;
    min-height: 52px;
  }

  .walletPill {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 2px;
    padding: 7px 8px;
    border-radius: 8px;
  }

  .walletPill b {
    font-size: .58rem;
  }

  .walletPill span {
    font-size: .94rem;
  }

  .accountBubble {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 7px;
  }

  .accountBubble .avatar {
    width: 38px;
    height: 38px;
  }

  .accountCopy {
    justify-content: center;
  }

  .accountCopy span,
  .accountCopy small {
    display: none;
  }

  .accountCopy strong {
    font-size: .92rem;
  }

  .view {
    margin-top: 10px;
  }

  .verifyView {
    min-height: auto;
    display: block;
    border-radius: 8px;
  }

  .verifyAura {
    opacity: .64;
  }

  .verifyPanel,
  .youPanel,
  .nearbyPanel,
  .panel {
    padding: 12px;
    box-shadow: none;
  }

  .verifyPanel {
    width: 100%;
  }

  .discordBrand {
    width: 50px;
    height: 50px;
  }

  .verifyCopy {
    gap: 8px;
    margin-bottom: 12px;
  }

  .verifyCopy h2 {
    font-size: 1.28rem;
  }

  .verifyCopy p {
    font-size: .9rem;
  }

  .codeBox,
  .commandBox,
  .discordGuild {
    padding: 12px;
  }

  .codeBox strong {
    font-size: clamp(2rem, 13vw, 2.75rem);
  }

  .commandBox code {
    font-size: .9rem;
  }

  .verifyActions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .voiceView,
  .settingsView,
  .settingsGrid,
  .shopView {
    gap: 10px;
  }

  .youPanel {
    gap: 10px;
  }

  .namePlate,
  .player {
    min-height: 0;
    gap: 10px;
    padding: 10px;
  }

  .namePlate {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .namePlate > .pill {
    grid-column: auto;
    justify-self: end;
  }

  .avatar {
    width: 40px;
    height: 40px;
  }

  .chatBadge {
    width: 40px;
    height: 40px;
  }

  .playerNameRow {
    gap: 6px;
  }

  .plateText strong,
  .playerName {
    font-size: .98rem;
  }

  .plateText span,
  .playerMeta {
    font-size: .76rem;
  }

  .meterPanel {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 11px;
  }

  .nearbyPanel {
    min-height: 190px;
  }

  .sectionHead {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .sectionHead h2 {
    font-size: 1.12rem;
  }

  .peerList {
    gap: 8px;
  }

  .player {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas:
      "avatar info mute"
      "distance distance distance";
  }

  .player > :first-child {
    grid-area: avatar;
  }

  .player .playerInfo {
    grid-area: info;
  }

  .playerDistance {
    grid-area: distance;
    display: flex;
    align-items: center;
    justify-content: space-between;
    justify-items: stretch;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(0, 0, 0, .16);
  }

  .mutePeer {
    grid-area: mute;
    min-width: 74px;
    min-height: 36px;
    padding: 0 10px;
    font-size: .82rem;
  }

  .shopView {
    grid-template-columns: 1fr;
  }

  .shopEquippedActions {
    grid-template-columns: 1fr 1fr;
  }

  .shopSlotTabs,
  .shopToolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shopToolbar {
    display: grid;
    gap: 7px;
    margin: 10px 0 12px;
  }

  .shopFilter {
    width: 100%;
    min-height: 38px;
    padding-inline: 8px;
  }

  .shopFilter:first-child {
    grid-column: 1 / -1;
  }

  .shopSlotTab {
    justify-content: center;
    min-height: 42px;
    padding: 8px 10px;
    text-align: center;
    box-shadow: inset 0 -3px 0 transparent;
  }

  .shopSlotTab:hover,
  .shopSlotTab.is-active {
    box-shadow: inset 0 -3px 0 var(--accent);
  }

  .shopGrid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .shopItem {
    gap: 10px;
  }

  .shopItemPreview.player {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas: "avatar info badge";
  }

  .shopItemPreview.player .stateBadge {
    grid-area: badge;
    grid-column: auto;
    justify-self: end;
  }

  .shopItemCopy h3 {
    font-size: .94rem;
  }

  .shopItemCopy p {
    font-size: .78rem;
  }

  .settingsGrid {
    grid-template-columns: 1fr;
  }

  .panel {
    gap: 10px;
  }

  .bindStack,
  .micCleanup {
    gap: 10px;
  }

  .bindControl {
    grid-template-columns: minmax(0, 1fr) 72px 34px;
    gap: 6px;
  }

  .bindControl button.secondary,
  .bindClear {
    min-height: 40px;
  }

  .checkRow,
  .rangeField {
    padding: 10px;
  }

  .comfortPanel .buttonRow {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .comfortPanel .buttonRow button {
    flex: none;
    width: 100%;
  }

  .emptyState {
    min-height: 132px;
    padding: 14px;
  }

  .toast {
    bottom: calc(var(--mobile-nav-height) + 12px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 20px);
  }
}

@media (max-width: 420px) {
  .brand span {
    display: none;
  }

  .navTabs .tabIcon {
    display: grid;
  }

  .navTabs button {
    gap: 4px;
  }

  .sideStats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sideStats div {
    justify-content: center;
  }

  .accountCluster {
    grid-template-columns: minmax(82px, .34fr) minmax(0, 1fr);
  }

  .walletPill {
    padding-inline: 6px;
  }

  .walletPill b {
    font-size: .54rem;
  }

  .walletPill span {
    font-size: .86rem;
  }

  .accountBubble {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .accountBubble .avatar {
    width: 34px;
    height: 34px;
  }

  .sessionBubble {
    grid-template-columns: minmax(0, 1fr);
  }

  .sessionActions button {
    font-size: .72rem;
  }

  .namePlate {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .namePlate > .pill {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .sectionHead {
    align-items: flex-start;
    flex-direction: column;
  }

  .sectionHead > .pill {
    align-self: flex-start;
  }

  .player {
    grid-template-columns: 38px minmax(0, 1fr) 68px;
  }

  .mutePeer {
    min-width: 68px;
    padding-inline: 6px;
  }

  .shopEquippedActions {
    grid-template-columns: 1fr;
  }
}
