:root {
  /* Flat dark + green (not Fluxer brand purple) */
  --bg: #0d1110;
  --bg-elevated: #141a17;
  --bg-card: #1a211c;
  --border: #2a3530;
  --text: #eef5f0;
  --muted: #8fa399;
  --primary: #16a34a;
  --primary-hover: #15803d;
  --primary-dim: rgba(22, 163, 74, 0.18);
  --primary-soft: #4ade80;
  --yes: #22c55e;
  --yes-dim: rgba(34, 197, 94, 0.15);
  --no: #f43f5e;
  --no-dim: rgba(244, 63, 94, 0.15);
  --warn: #eab308;
  --radius: 2px;
  --radius-sm: 0;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.45;
}

a {
  color: var(--primary-soft);
  text-decoration: none;
}
a:hover {
  color: #86efac;
  text-decoration: underline;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 0;
}
.nav-backdrop {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* Space between logo/wordmark and nav links (Bets, Positions, …) */
  margin-right: 0.875rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.brand:hover {
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* No green square; glyph only (easy to restore with background + fixed size) */
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary-soft);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  /* Optical align: ƒ sits a bit low vs the wordmark */
  transform: translateY(-2px);
}
.brand-name {
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.85rem;
  flex: 1;
}
.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a:hover,
.nav a.active {
  color: var(--text);
  text-decoration: none;
}

.user-area {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.55rem 0.25rem 0.25rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.avatar {
  position: relative;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  background: hsl(var(--avatar-hue, 145) 40% 32%);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.avatar.has-img:not(.fallback) .avatar-fallback {
  opacity: 0;
}
.avatar.fallback img {
  display: none;
}
.avatar-fallback {
  z-index: 0;
  line-height: 1;
}
.avatar-sm {
  width: 1.75rem;
  height: 1.75rem;
}
.user-chip-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  flex: 1 1 auto;
}
.user-chip-name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 7.5rem;
}
.user-chip-balance {
  flex: 0 0 auto;
  margin-left: 0.15rem;
  padding-left: 0.55rem;
  border-left: 1px solid var(--border);
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
}
.balance {
  font-variant-numeric: tabular-nums;
  color: var(--primary-soft);
  font-weight: 600;
  font-size: 0.75rem;
}
.user-chip-balance.balance {
  font-size: 0.82rem;
}

/* Optical raise for the ƒ mark next to amounts (not the brand logo) */
.flux-sign {
  display: inline-block;
  transform: translateY(-1px);
  font-weight: inherit;
  line-height: 1;
}
/* Slightly more lift on larger balance displays */
.user-chip-balance .flux-sign,
.stat-value .flux-sign,
.stat.balance .flux-sign,
h1 .flux-sign,
.market-title .flux-sign {
  transform: translateY(-2px);
}
.person {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.person-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.person-row {
  align-items: center;
}
.person-row-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.rank {
  font-size: 0.75rem;
  width: 1.4rem;
  flex-shrink: 0;
}

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.25rem;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 1.25rem;
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .side-col {
    order: -1;
  }
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}
.footer-copy {
  flex: 1 1 auto;
  min-width: 0;
  /* Use full footer width so the lead line can stay on one row */
  max-width: none;
}
.footer-line,
.footer-disclaimer {
  margin: 0 0 0.25rem;
  font-size: inherit;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 400;
}
.footer-disclaimer:last-child {
  margin-bottom: 0;
}
/* Keep the gimmick / affiliation sentence on a single line when space allows */
.footer-disclaimer-lead {
  white-space: nowrap;
}
/* Bold + brighter only for callouts (affiliation, "Fake money only.") */
.footer-emphasis {
  font-weight: 700;
  color: var(--text);
}
.disclaimer-inline {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #6b7f74;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 1.55rem;
}
h2 {
  font-size: 1.1rem;
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 0.85rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
}
.card:hover.card-link {
  border-color: #3d5245;
}
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s;
}
.card-link:hover {
  text-decoration: none;
  color: inherit;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.row.between {
  justify-content: space-between;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.badge.open {
  background: var(--yes-dim);
  color: #86efac;
}
.badge.frozen {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}
.badge.resolved {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

.odds-bar {
  margin-top: 0.75rem;
}
.odds-track {
  display: flex;
  height: 0.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--border);
}
.odds-fill.yes {
  background: var(--primary);
  min-width: 2px;
}
.odds-fill.no {
  background: #b91c3c;
  min-width: 2px;
}
.odds-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.odds-labels .yes {
  color: #86efac;
}
.odds-labels .no {
  color: #fda4af;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  background: var(--primary);
  color: #041208;
}
.btn:hover {
  background: var(--primary-hover);
  color: #fff;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn.secondary:hover {
  border-color: #3d5245;
  background: var(--bg-elevated);
  color: var(--text);
}
.btn.yes {
  background: var(--primary);
  color: #041208;
}
.btn.yes:hover {
  background: var(--primary-hover);
  color: #fff;
}
.btn.no {
  background: #9f1239;
  color: #fff;
}
.btn.no:hover {
  background: #be123c;
  color: #fff;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  padding-inline: 0.5rem;
}
.btn.sm {
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
}
/* Logout: dark red fill */
.btn.btn-logout {
  border-color: #7f1d1d;
  color: #fff;
  background: #7f1d1d;
}
.btn.btn-logout:hover {
  border-color: #991b1b;
  color: #fff;
  background: #991b1b;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}
input,
textarea,
select {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
}
input:focus,
textarea:focus,
select:focus {
  outline: 1px solid var(--primary);
  outline-offset: 0;
  border-color: var(--primary);
}
textarea {
  min-height: 5rem;
  resize: vertical;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* Prefer browser dark chrome for native datetime picker controls */
input[type="datetime-local"] {
  color-scheme: dark;
}

/* Label row + ? help tip (CSS tooltip on hover/focus) */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.field-label-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.field-label {
  color: var(--muted);
  font-size: 0.85rem;
}
.help-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: help;
  flex-shrink: 0;
}
.help-tip:hover,
.help-tip:focus-visible {
  color: var(--primary-soft);
  outline: none;
}
.help-tip .icon {
  display: block;
  pointer-events: none;
}
.help-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%);
  width: max-content;
  max-width: min(16rem, 70vw);
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 40;
}
.help-tip:hover::after,
.help-tip:focus-visible::after {
  opacity: 1;
  visibility: visible;
}
.help-tip-wide::after {
  max-width: min(20rem, 80vw);
}
.check-row-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.tabs-row .tabs {
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.tabs-row-action {
  flex: 0 0 auto;
  margin-left: auto;
}
.tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.tabs button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: var(--radius);
  padding: 0.3rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
/* Default "all" active stays green-neutral like other primary tabs */
.tabs button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #041208;
}

/* Status filter colors (inactive = tinted outline; active = solid fill) */
.tabs button.tab-filter-unresolved {
  border-color: rgba(238, 245, 240, 0.35);
  color: #eef5f0;
}
.tabs button.tab-filter-unresolved.active {
  background: #eef5f0;
  border-color: #eef5f0;
  color: #0d1110;
}
.tabs button.tab-filter-open {
  border-color: rgba(34, 197, 94, 0.45);
  color: #86efac;
}
.tabs button.tab-filter-open.active {
  background: var(--yes);
  border-color: var(--yes);
  color: #041208;
}
.tabs button.tab-filter-frozen {
  border-color: rgba(234, 179, 8, 0.45);
  color: #fcd34d;
}
.tabs button.tab-filter-frozen.active {
  background: #eab308;
  border-color: #eab308;
  color: #0d1110;
}
.tabs button.tab-filter-resolved {
  border-color: rgba(148, 163, 184, 0.4);
  color: #94a3b8;
}
.tabs button.tab-filter-resolved.active {
  background: #64748b;
  border-color: #64748b;
  color: #f1f5f9;
}
/* "all" keeps default muted / primary active from .tabs button rules */

.table-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.list-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.list-item:last-child {
  border-bottom: 0;
}

.empty {
  color: var(--muted);
  padding: 1.5rem 0.25rem;
  text-align: center;
}

.error-box {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fecdd3;
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 50;
  max-width: min(90vw, 28rem);
  font-size: 0.9rem;
}
.toast.ok {
  border-color: rgba(22, 163, 74, 0.55);
}
.toast.err {
  border-color: rgba(244, 63, 94, 0.45);
}

/* Hard-square utility if needed */
.square {
  border-radius: 0 !important;
}

.stat {
  font-variant-numeric: tabular-nums;
}
.mono {
  font-family: var(--mono);
  font-size: 0.85em;
}

.hero-note {
  color: var(--muted);
  margin: -0.25rem 0 1rem;
  font-size: 0.95rem;
}

.buy-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: end;
}
.amount-row {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
}
.amount-row input {
  flex: 1 1 auto;
  min-width: 0;
}
.amount-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .buy-row {
    grid-template-columns: 1fr 1fr;
  }
  .buy-row label {
    grid-column: 1 / -1;
  }
}

.disclosure {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 3px solid var(--primary);
  padding-left: 0.75rem;
  margin-top: 0.75rem;
  border-radius: 0;
}

/* UI polish */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.pool-label {
  color: var(--text);
}
.pool-label .balance {
  /* keep green amount; only the word "pool" inherits white/bright text */
  color: var(--primary-soft);
}
.market-q {
  margin: 0.5rem 0 0.35rem !important;
  font-size: 1.05rem;
  line-height: 1.3;
}
.market-title {
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  line-height: 1.25;
}
.market-desc {
  margin-top: 0;
}
.market-card {
  transition: border-color 0.15s, transform 0.12s;
}
.market-card:hover {
  transform: translateY(-1px);
}
.back-link {
  font-size: 0.85rem;
  color: var(--muted);
}
.wrap-gap {
  gap: 0.45rem 0.65rem;
}
.meta-row {
  margin-top: 0.75rem;
}
.my-pos {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.resolution-note {
  margin-top: 0.45rem;
  color: var(--text);
  white-space: pre-wrap;
}
.outcome-yes { color: #86efac; }
.outcome-no { color: #fda4af; }
.outcome-cancelled { color: #fcd34d; }

.empty-state {
  text-align: center;
  padding: 2.25rem 1rem;
  color: var(--muted);
}
.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.85rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: #041208;
  font-weight: 800;
  font-size: 1.65rem;
  line-height: 1;
}
.empty-icon-mark {
  display: inline-block;
  /* Optical raise: ƒ sits low in the green tile */
  transform: translateY(-2px);
  line-height: 1;
}
.empty-title {
  margin: 0 0 0.4rem !important;
  color: var(--text);
  font-size: 1.1rem;
}
.empty-body {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  max-width: 22rem;
  margin-inline: auto;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.stat-cell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.stat-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
}

.pnl.pos { color: #86efac; margin-top: 0.3rem; }
.pnl.neg { color: #fda4af; margin-top: 0.3rem; }
.result-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 650;
  color: var(--muted);
}
.result-tag.result-won { color: #86efac; }
.result-tag.result-lost { color: #fda4af; }
.result-tag.result-refund { color: #fcd34d; }

.badge.role {
  background: var(--primary-dim);
  color: var(--primary-soft);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.7rem;
}
.pill-ready {
  font-size: 0.75rem;
  font-weight: 650;
  color: #fde68a;
  background: rgba(234, 179, 8, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.callout {
  font-size: 0.92rem;
}
.callout.warn {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
  color: #fde68a;
}

.check-row {
  flex-direction: row !important;
  align-items: center;
  gap: 0.55rem !important;
  color: var(--text) !important;
  cursor: pointer;
}
.check-row input {
  width: auto;
}

.skeleton-card {
  min-height: 5.5rem;
  background: linear-gradient(
    90deg,
    var(--bg-card) 25%,
    #243028 50%,
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.hide-sm { display: inline-flex; }
.show-sm-only { display: none !important; }

.last-bet-action {
  line-height: 1.35;
}
.last-bet-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.4rem;
}
.last-bet-question {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.35;
  word-break: break-word;
  text-align: left;
}
.last-bet-time {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .nav {
    display: none;
    position: fixed;
    top: 3.5rem;
    left: 0.75rem;
    right: auto;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem;
    min-width: 11rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 30;
  }
  body.nav-open .nav {
    display: flex;
  }
  body.nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 25;
    border: 0;
  }
  .layout {
    padding: 0.85rem;
    gap: 0.85rem;
  }
  .side-col {
    order: 2;
  }
  .hide-sm {
    display: none !important;
  }
  .show-sm-only {
    display: block !important;
  }
  .user-chip-name {
    max-width: 5.5rem;
  }
  .stats-bar {
    grid-template-columns: 1fr;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-disclaimer-lead {
    white-space: normal;
  }
  .buy-row {
    grid-template-columns: 1fr 1fr;
  }
  .buy-row label {
    grid-column: 1 / -1;
  }
  .topbar {
    padding-inline: 0.65rem;
  }
  .brand-name {
    font-size: 0.95rem;
  }
}

@media (min-width: 861px) {
  .nav-toggle {
    display: none !important;
  }
}

/* Name + username#discriminator */
.name-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
  gap: 0.1rem;
}
.name-block-inline {
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem 0.45rem;
}
.name-primary {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.name-tag {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-chip-text {
  gap: 0.08rem;
}
.user-chip-tag {
  font-size: 0.68rem;
  color: var(--muted);
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 8rem;
}
.person .name-block {
  max-width: 12rem;
}
