@import url('https://fonts.googleapis.com/css2?family=Teko:wght@400;500;600;700&family=Cabin:ital,wght@0,400;0,500;0,600;1,400&family=Courier+Prime:wght@400;700&display=swap');

:root {
  --wood-dark: #150e06;
  --wood-mid: #271508;
  --wood-warm: #3a1e0c;
  --wood-panel: #472612;
  --wood-light: #6a3a1c;
  --felt-deep: #0d2815;
  --felt: #152f1c;
  --felt-worn: #1d4026;
  --brass: #b8902a;
  --brass-dim: #7a5c14;
  --brass-bright: #d4aa3a;
  --cream: #f0e6cc;
  --cream-dim: #c0aa88;
  --cream-ghost: rgba(240, 230, 204, 0.07);
  --red: #b02820;
  --red-bright: #d43020;
  --text: #e6d9bc;
  --text-mid: #9a8060;
  --text-dim: #5a4631;
  --success: #72c078;
  --danger: #c87070;
  --border-wood: rgba(180, 130, 50, 0.18);
  --border-felt: rgba(30, 100, 50, 0.4);
  --nav-h: 60px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cabin', sans-serif;
  background: var(--wood-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 12% 0%, rgba(160, 100, 20, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 30% 50% at 100% 30%, rgba(8, 4, 1, 0.5) 0%, transparent 70%),
    radial-gradient(ellipse 70% 35% at 50% 105%, rgba(0, 0, 0, 0.7) 0%, transparent 55%),
    repeating-linear-gradient(91deg,
      transparent 0,
      transparent 22px,
      rgba(0, 0, 0, 0.07) 22px,
      rgba(0, 0, 0, 0.07) 23px,
      transparent 23px,
      transparent 44px,
      rgba(255, 190, 60, 0.02) 44px,
      rgba(255, 190, 60, 0.02) 45px
    ),
    repeating-linear-gradient(90deg,
      transparent 0,
      transparent 7px,
      rgba(0, 0, 0, 0.035) 7px,
      rgba(0, 0, 0, 0.035) 8px
    );
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='0.055'/%3E%3C/svg%3E");
  opacity: 0.65;
}

#ball-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--nav-h);
  background: linear-gradient(180deg, var(--wood-panel) 0%, var(--wood-warm) 55%, var(--wood-mid) 100%);
  border-bottom: 3px solid var(--brass-dim);
  box-shadow:
    inset 0 1px 0 rgba(255, 200, 70, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 4px 16px rgba(0, 0, 0, 0.65);
  display: block;
  padding: 0.45rem 1.5rem;
  overflow: visible;
}

nav::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(180, 130, 30, 0.25) 12%, rgba(212, 170, 50, 0.7) 50%, transparent);
}

.launcher-banner {
  position: relative;
  z-index: 50;
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid rgba(184, 144, 42, 0.28);
  background: linear-gradient(90deg, rgba(122, 92, 20, 0.9), rgba(71, 38, 18, 0.92));
  color: var(--cream);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.nav-brand {
  font-family: 'Teko', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: baseline;
  flex: 0 0 auto;
  text-decoration: none;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  padding-top: 0.18rem;
}

.nav-brand .carom {
  color: var(--cream);
}

.nav-brand .dot {
  color: var(--brass);
  margin: 0 2px;
  font-size: 1.4rem;
}

.nav-brand .masse {
  color: var(--red-bright);
}

.nav-shell {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-height: calc(var(--nav-h) - 0.9rem);
  position: relative;
  z-index: 1;
}

.nav-primary {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 0.1rem;
  scrollbar-width: thin;
}

.nav-primary::-webkit-scrollbar {
  height: 6px;
}

.nav-primary::-webkit-scrollbar-thumb {
  background: rgba(184, 144, 42, 0.32);
}

.nav-direct,
.nav-group {
  flex: 0 0 auto;
}

.nav-group {
  position: relative;
}

.nav-direct,
.nav-group-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-height: calc(var(--nav-h) - 0.95rem);
  padding: 0 0.95rem;
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.32);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.16);
  position: relative;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.nav-group-trigger {
  min-width: 10.75rem;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group-trigger::after,
.nav-direct::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transition: transform 0.18s;
}

.nav-group-trigger::before {
  content: '▾';
  font-size: 0.72rem;
  color: var(--text-mid);
  margin-left: auto;
  transition: transform 0.18s ease, color 0.18s ease;
}

.nav-group[open] .nav-group-trigger::before {
  transform: rotate(180deg);
  color: var(--cream);
}

.nav-direct:hover,
.nav-direct.active,
.nav-group:hover .nav-group-trigger,
.nav-group.active .nav-group-trigger,
.nav-group[open] .nav-group-trigger {
  background: rgba(0, 0, 0, 0.22);
  color: var(--cream);
  border-color: rgba(184, 144, 42, 0.28);
}

.nav-direct:hover::after,
.nav-direct.active::after,
.nav-group:hover .nav-group-trigger::after,
.nav-group.active .nav-group-trigger::after,
.nav-group[open] .nav-group-trigger::after {
  transform: scaleX(1);
}

.nav-group-menu {
  display: grid;
  gap: 0.35rem;
  position: fixed;
  top: calc(var(--nav-h) - 0.25rem);
  left: 0.75rem;
  z-index: 140;
  margin-top: 0;
  padding: 0.6rem;
  min-width: 14rem;
  width: max-content;
  max-width: min(22rem, calc(100vw - 1.5rem));
  max-height: min(70vh, 26rem);
  overflow: auto;
  border: 1px solid rgba(184, 144, 42, 0.24);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(15, 40, 21, 0.98), rgba(34, 22, 9, 0.98)),
    rgba(0, 0, 0, 0.25);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transform-origin: top left;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.nav-group[open] .nav-group-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(184, 144, 42, 0.08);
  border-radius: 3px;
  color: var(--cream-dim);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.16);
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.active {
  color: var(--cream);
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(184, 144, 42, 0.2);
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.08rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 170, 58, 0.34);
  background: rgba(212, 170, 58, 0.12);
  color: var(--brass);
  font-family: 'Courier Prime', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.nav-right {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-left: auto;
  padding-top: 0.12rem;
}

.gem-pill {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.76rem;
  border: 1px solid;
  border-radius: 2px;
}

.gem-pill.mp {
  background: rgba(184, 144, 42, 0.11);
  color: var(--brass);
  border-color: rgba(184, 144, 42, 0.28);
}

.gem-pill.premium {
  background: rgba(176, 40, 32, 0.11);
  color: #cc6858;
  border-color: rgba(176, 40, 32, 0.28);
}

.gem-pill.sp {
  background: rgba(176, 40, 32, 0.11);
  color: #cc6858;
  border-color: rgba(176, 40, 32, 0.28);
}

.gem-pill svg {
  width: 10px;
  height: 10px;
}

.btn-nav {
  padding: 0.28rem 0.85rem;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(240, 230, 200, 0.18);
  color: var(--cream-dim);
  background: rgba(0, 0, 0, 0.28);
  transition: all 0.14s;
}

.btn-nav:hover {
  background: rgba(0, 0, 0, 0.45);
  color: var(--cream);
}

.btn-nav-accent {
  background: linear-gradient(180deg, var(--red-bright) 0%, var(--red) 100%);
  border-color: rgba(190, 40, 28, 0.45);
  color: var(--cream);
}

.btn-nav-download-waitlist {
  min-width: 13.75rem;
}

.btn-nav-disabled-download {
  min-width: 13.75rem;
  border-color: rgba(240, 230, 200, 0.12);
  background: linear-gradient(180deg, rgba(110, 104, 96, 0.92) 0%, rgba(72, 67, 62, 0.96) 100%);
  color: rgba(240, 230, 200, 0.82);
  cursor: not-allowed;
}

.btn-nav-disabled-download:hover {
  background: linear-gradient(180deg, rgba(118, 112, 104, 0.96) 0%, rgba(80, 74, 69, 0.98) 100%);
  color: var(--cream);
}

.btn-nav-download-hover {
  display: none;
}

.btn-nav-disabled-download:hover .btn-nav-download-default {
  display: none;
}

.btn-nav-disabled-download:hover .btn-nav-download-hover {
  display: inline;
}

.avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: radial-gradient(circle at 37% 33%, #f6d650 0%, #c08c0a 55%, #785004 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Teko', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.68);
  box-shadow: 0 0 0 2px rgba(184, 144, 42, 0.38), 0 2px 8px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.avatar.avatar-image {
  background: rgba(0, 0, 0, 0.3);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
}

.page-wrap-wide {
  max-width: 1480px;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 0 2rem 2rem;
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(184, 144, 42, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-mid);
  font-size: 0.82rem;
}

.site-footer-inner a {
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero-rule {
  display: flex;
  align-items: center;
  max-width: 380px;
  margin: 0 auto;
}

.hero-rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass-dim), var(--brass), var(--brass-dim), transparent);
}

.hero-rule-diamond {
  width: 7px;
  height: 7px;
  background: var(--brass-dim);
  transform: rotate(45deg);
  margin: 0 6px;
  box-shadow: 0 0 0 1px rgba(180, 130, 40, 0.3);
}

.hero-rule-top {
  margin-bottom: 1.4rem;
}

.hero-rule-bot {
  margin-top: 1.4rem;
}

.trade-shell {
  display: grid;
  gap: 1.2rem;
}

.trade-banner,
.trade-offer-panel,
.trade-rail,
.trade-draft-panel,
.trade-timeline-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 170, 58, 0.2);
  border-radius: 6px;
  background:
    radial-gradient(circle at top left, rgba(212, 170, 58, 0.08), transparent 36%),
    linear-gradient(155deg, rgba(17, 37, 24, 0.95), rgba(12, 23, 16, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 12px 30px rgba(0, 0, 0, 0.28);
}

.trade-banner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  justify-content: space-between;
  padding: 1rem 1.15rem;
}

.trade-banner strong {
  font-family: 'Teko', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trade-banner span {
  flex: 1;
  color: var(--cream-dim);
}

.trade-banner.success {
  border-color: rgba(114, 192, 120, 0.35);
}

.trade-banner.warning {
  border-color: rgba(212, 170, 58, 0.32);
}

.trade-banner.info {
  border-color: rgba(120, 150, 210, 0.32);
}

.trade-room-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px) minmax(0, 1fr);
  align-items: start;
}

.trade-bottom-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  align-items: start;
}

.trade-offer-panel,
.trade-rail,
.trade-draft-panel,
.trade-timeline-panel {
  padding: 1rem 1rem 1.05rem;
}

.trade-offer-panel.is-locked {
  border-color: rgba(114, 192, 120, 0.34);
}

.trade-offer-head,
.trade-draft-head,
.trade-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.trade-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(212, 170, 58, 0.2);
  background: rgba(0, 0, 0, 0.2);
  color: var(--brass-bright);
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trade-offer-head h2,
.trade-rail h2,
.trade-draft-head h2,
.trade-panel-head h2 {
  margin-top: 0.45rem;
  font-family: 'Teko', sans-serif;
  font-size: 2rem;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
}

.trade-offer-status,
.trade-balance-strip,
.trade-rail-badges {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.trade-mini-chip,
.trade-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 170, 58, 0.16);
  background: rgba(0, 0, 0, 0.26);
  color: var(--cream-dim);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.trade-status-chip.wager,
.trade-status-chip.launch_ready,
.trade-approval-cell.approved,
.trade-approval-cell.locked {
  border-color: rgba(114, 192, 120, 0.28);
  color: var(--success);
}

.trade-status-chip.completed {
  border-color: rgba(212, 170, 58, 0.24);
}

.trade-status-chip.cancelled {
  border-color: rgba(200, 112, 112, 0.28);
  color: var(--danger);
}

.trade-currency-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.trade-currency-card,
.trade-launch-card div,
.trade-approval-cell {
  padding: 0.72rem 0.78rem;
  border-radius: 4px;
  border: 1px solid rgba(212, 170, 58, 0.14);
  background: rgba(0, 0, 0, 0.24);
}

.trade-currency-card span,
.trade-launch-card span,
.trade-approval-cell span,
.trade-item-meta,
.trade-item-subcopy,
.trade-timeline-meta,
.trade-draft-copy,
.trade-rail p {
  color: var(--text-mid);
}

.trade-currency-card strong,
.trade-launch-card strong,
.trade-approval-cell strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--cream);
}

.trade-currency-card.premium {
  border-color: rgba(176, 40, 32, 0.22);
}

.trade-currency-card.neutral {
  border-color: rgba(120, 150, 210, 0.2);
}

.trade-offer-items,
.trade-timeline-list {
  display: grid;
  gap: 0.6rem;
}

.trade-offer-item,
.trade-timeline-row,
.trade-inventory-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.trade-item-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Teko', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.78);
  background: radial-gradient(circle at 30% 25%, #f8d66c, #b9891f 55%, #6e4907 100%);
}

.trade-item-name {
  color: var(--cream);
  font-weight: 600;
}

.trade-rail {
  display: grid;
  gap: 0.85rem;
}

.trade-rail-panel p {
  margin-top: 0.45rem;
  line-height: 1.45;
}

.trade-rail-actions {
  display: grid;
  gap: 0.55rem;
}

.trade-rail-actions .btn-nav,
.trade-rail-actions .btn-join {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.trade-rail-actions .btn-nav.active {
  border-color: rgba(114, 192, 120, 0.34);
  color: var(--success);
}

.trade-launch-card,
.trade-approval-strip {
  display: grid;
  gap: 0.55rem;
}

.trade-launch-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trade-approval-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trade-safety-note {
  padding: 0.85rem 0.9rem;
  border-radius: 4px;
  border: 1px solid rgba(212, 170, 58, 0.16);
  background: rgba(0, 0, 0, 0.18);
  color: var(--cream-dim);
  line-height: 1.5;
}

.trade-draft-controls {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trade-field {
  display: grid;
  gap: 0.35rem;
}

.trade-field span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.trade-field input {
  width: 100%;
  border: 1px solid rgba(212, 170, 58, 0.2);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--cream);
  padding: 0.75rem 0.8rem;
  font: inherit;
}

.trade-field input:disabled,
.trade-inventory-card:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.trade-draft-copy {
  margin: 0.85rem 0 0.95rem;
  line-height: 1.5;
}

.trade-inventory-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.trade-inventory-card {
  width: 100%;
  padding: 0.8rem;
  border-radius: 5px;
  border: 1px solid rgba(212, 170, 58, 0.16);
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  text-align: left;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.trade-inventory-card:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(212, 170, 58, 0.34);
  background: rgba(0, 0, 0, 0.32);
}

.trade-inventory-card.selected {
  border-color: rgba(114, 192, 120, 0.36);
  background:
    radial-gradient(circle at top left, rgba(114, 192, 120, 0.12), transparent 40%),
    rgba(0, 0, 0, 0.3);
}

.trade-inventory-card.disabled {
  border-style: dashed;
}

.trade-inventory-copy {
  display: grid;
  gap: 0.22rem;
}

.trade-timeline-row {
  position: relative;
}

.trade-timeline-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 0.3rem;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px rgba(184, 144, 42, 0.12);
}

.trade-timeline-message {
  color: var(--cream);
  line-height: 1.4;
}

.trade-empty,
.trade-empty-shell {
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-mid);
}

@media (max-width: 1100px) {
  .trade-room-grid,
  .trade-bottom-grid {
    grid-template-columns: 1fr;
  }

  .trade-launch-card,
  .trade-approval-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .trade-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .trade-currency-strip,
  .trade-draft-controls,
  .trade-launch-card,
  .trade-approval-strip {
    grid-template-columns: 1fr;
  }

  .trade-offer-head,
  .trade-draft-head,
  .trade-panel-head {
    flex-direction: column;
  }

  .trade-offer-status,
  .trade-balance-strip,
  .trade-rail-badges {
    justify-content: flex-start;
  }
}

.hero h1 {
  font-family: 'Teko', sans-serif;
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.9;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
}

.hero h1 .carom {
  color: var(--cream);
}

.hero h1 .dot {
  color: var(--brass);
  font-size: 75%;
}

.hero h1 .masse {
  color: var(--red-bright);
}

.hero-sub {
  margin-top: 0.85rem;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text-mid);
}

.landing-page {
  display: grid;
  gap: 1.6rem;
  padding-top: 1.8rem;
}

.landing-section {
  display: grid;
  gap: 0.95rem;
  scroll-margin-top: calc(var(--nav-h) + 1.25rem);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 1rem;
  align-items: stretch;
}

.landing-hero-copy,
.landing-hero-spotlight,
.landing-copy-card,
.landing-cta-panel,
.landing-mode-card,
.landing-feature-card {
  position: relative;
  overflow: hidden;
}

.landing-hero-copy {
  padding: 1.8rem 1.95rem 1.7rem;
  border: 1px solid rgba(212, 170, 58, 0.24);
  border-radius: 4px;
  background:
    radial-gradient(circle at top left, rgba(212, 170, 58, 0.18), transparent 42%),
    linear-gradient(140deg, rgba(20, 43, 27, 0.95), rgba(12, 24, 16, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 34px rgba(0, 0, 0, 0.4);
}

.landing-hero-copy::after,
.landing-hero-spotlight::after,
.landing-copy-card::after,
.landing-cta-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 34%, transparent 70%, rgba(212, 170, 58, 0.04));
}

.landing-kicker,
.landing-video-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid rgba(212, 170, 58, 0.22);
  background: rgba(0, 0, 0, 0.24);
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brass-bright);
}

.landing-hero-copy h1,
.landing-copy-card h2,
.landing-hero-spotlight h2,
.landing-feature-card h2,
.landing-mode-card h2,
.landing-cta-panel h2 {
  font-family: 'Teko', sans-serif;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--cream);
}

.landing-hero-copy h1 {
  margin-top: 0.7rem;
  font-size: clamp(2.8rem, 5.4vw, 5rem);
  max-width: none;
}

.landing-lead {
  margin-top: 0.85rem;
  max-width: 60ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.landing-hero-actions,
.landing-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.landing-hero-actions .btn-primary,
.landing-cta-actions .btn-primary {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
}

.landing-hero-actions .btn-join,
.landing-cta-actions .btn-join {
  min-width: 170px;
  text-align: center;
}

.landing-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.landing-metric {
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(212, 170, 58, 0.18);
  background: rgba(0, 0, 0, 0.24);
}

.landing-metric-value {
  font-family: 'Teko', sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.landing-metric-label,
.landing-spotlight-item span,
.landing-offer-item span {
  color: var(--text-mid);
  font-size: 0.83rem;
  line-height: 1.5;
}

.landing-hero-spotlight {
  display: grid;
  gap: 0.75rem;
  padding: 1.35rem 1.45rem;
}

.landing-hero-spotlight h2,
.landing-copy-card h2,
.landing-feature-card h2,
.landing-mode-card h2,
.landing-cta-panel h2 {
  font-size: 2.15rem;
}

.landing-hero-spotlight p,
.landing-copy-card p,
.landing-feature-card p,
.landing-mode-card p,
.landing-cta-panel p {
  color: var(--text-mid);
  line-height: 1.65;
}

.landing-hero-spotlight .overline {
  margin-bottom: 0.05rem;
}

.landing-hero-spotlight h2 {
  margin-top: -0.05rem;
}

.landing-spotlight-list,
.landing-offer-list {
  display: grid;
  gap: 0.55rem;
}

.landing-spotlight-item,
.landing-offer-item {
  display: grid;
  gap: 0.22rem;
  padding: 0.68rem 0.82rem;
  border: 1px solid rgba(212, 170, 58, 0.16);
  background: rgba(0, 0, 0, 0.22);
}

.landing-spotlight-item strong,
.landing-offer-item strong {
  font-family: 'Teko', sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--cream);
}

.landing-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  gap: 1rem;
  align-items: stretch;
}

.landing-video-panel,
.landing-copy-card {
  min-height: 100%;
}

.landing-video-frame {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(212, 170, 58, 0.18);
  background:
    radial-gradient(circle at top, rgba(212, 170, 58, 0.16), transparent 48%),
    linear-gradient(160deg, rgba(16, 18, 21, 0.94), rgba(5, 7, 9, 0.98));
  overflow: hidden;
}

.landing-video-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.landing-video-frame::before {
  content: '';
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.landing-video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.8rem;
  padding: 2rem;
  text-align: center;
}

.landing-video-play {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #f6d650 0%, #c08c0a 55%, #785004 100%);
  color: rgba(20, 13, 4, 0.9);
  font-family: 'Teko', sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.landing-video-placeholder strong {
  font-family: 'Teko', sans-serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--cream);
}

.landing-video-placeholder p {
  max-width: 32ch;
  color: var(--text-mid);
  line-height: 1.6;
}

.landing-copy-card {
  display: grid;
  gap: 1rem;
}

.landing-feature-grid,
.landing-mode-grid {
  display: grid;
  gap: 1rem;
}

.landing-feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.landing-feature-card,
.landing-mode-card {
  display: grid;
  gap: 0.85rem;
}

.landing-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 1rem;
  align-items: center;
}

.section-title {
  font-family: 'Teko', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cream-dim);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-wood);
}

.lbl-num {
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  border: 1px solid var(--text-dim);
  border-radius: 1px;
  padding: 0.05rem 0.3rem;
}

.panel,
.card {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}

.panel {
  background: linear-gradient(150deg, rgba(22, 55, 30, 0.96) 0%, rgba(13, 40, 20, 0.98) 100%);
  border: 1px solid var(--border-felt);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4),
    0 6px 20px rgba(0, 0, 0, 0.5);
}

.panel-pad {
  padding: 1.4rem;
}

.panel::before,
.panel::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brass-bright) 0%, var(--brass-dim) 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.panel::before {
  top: 9px;
  left: 9px;
}

.panel::after {
  bottom: 9px;
  right: 9px;
}

.card {
  background: var(--wood-mid);
  border: 1px solid var(--border-wood);
  box-shadow: inset 0 1px 0 rgba(255, 200, 60, 0.06), 0 5px 18px rgba(0, 0, 0, 0.45);
  padding: 1.5rem 1.6rem;
}

.server-card {
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.server-card:last-child {
  border-bottom: none;
}

.server-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.12s;
}

.server-card:hover::before,
.server-card.is-expanded::before {
  background: var(--brass);
}

.server-row-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.server-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background 0.12s;
  background: transparent;
  border: none;
}

button.server-row {
  appearance: none;
  border: none;
  border-radius: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.server-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5aaa60;
  box-shadow: 0 0 4px rgba(90, 170, 96, 0.5);
  animation: live-blink 3.5s ease-in-out infinite;
}

@keyframes live-blink {
  0%,
  75%,
  100% {
    opacity: 1;
  }

  85% {
    opacity: 0.25;
  }
}

.server-name {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.server-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.15rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  color: var(--text-mid);
}

.server-meta .sep {
  color: var(--text-dim);
}

.server-row-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  min-width: 0;
}

.server-row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.server-row-actions {
  display: flex;
  align-items: center;
  padding: 0 1.2rem 0 0;
}

.server-join-action {
  white-space: nowrap;
}

.server-expand-hint {
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  white-space: nowrap;
}

.server-details {
  padding: 0 1.2rem 1rem 2.35rem;
  background: rgba(15, 10, 5, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.server-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem 0.8rem;
}

.server-detail {
  min-width: 0;
  padding: 0.48rem 0.6rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.server-detail-label {
  margin-bottom: 0.25rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.server-detail-value {
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--cream);
}

.server-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.server-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.42rem;
  border: 1px solid rgba(255, 215, 140, 0.14);
  background: rgba(255, 215, 140, 0.06);
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  color: var(--cream);
}

.server-inline-empty {
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  color: var(--text-mid);
}

.badge {
  font-family: 'Courier Prime', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.09rem 0.38rem;
  border: 1px solid;
  border-radius: 1px;
  line-height: 1.6;
}

.badge-p2p {
  color: var(--cream-dim);
  border-color: rgba(240, 230, 200, 0.18);
  background: rgba(240, 230, 200, 0.04);
}

.badge-official {
  color: #72c078;
  border-color: rgba(80, 160, 80, 0.28);
  background: rgba(80, 160, 80, 0.07);
}

.badge-locked {
  color: #c07868;
  border-color: rgba(180, 80, 60, 0.28);
  background: rgba(180, 80, 60, 0.07);
}

.btn-join,
.btn-host,
.btn-primary {
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.12s;
  text-decoration: none;
}

.btn-join {
  padding: 0.3rem 1rem;
  background: linear-gradient(180deg, var(--wood-light) 0%, var(--wood-warm) 100%);
  color: var(--cream);
  border: 1px solid var(--brass-dim);
  display: inline-block;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 200, 70, 0.1);
}

.btn-join:hover,
.btn-host:hover,
.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-nav:disabled,
.btn-join:disabled,
.btn-primary:disabled {
  cursor: default;
  opacity: 0.52;
  filter: none;
  pointer-events: none;
}

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

  .server-row {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .server-row-side {
    justify-content: flex-start;
  }

  .server-row-badges {
    justify-content: flex-start;
  }

  .server-row-actions {
    padding: 0 1.2rem 1rem 2.35rem;
  }

  .server-details {
    padding-left: 2.35rem;
  }
}

.host-form,
.loadout-layout {
  display: grid;
  gap: 1rem;
}

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

.field label,
.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mid);
  margin-bottom: 0.32rem;
}

.field input,
.field select,
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.78rem;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(180, 130, 40, 0.18);
  border-radius: 2px;
  color: var(--cream);
  font-size: 0.87rem;
  font-family: 'Cabin', sans-serif;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brass-dim);
  box-shadow: 0 0 0 2px rgba(184, 144, 42, 0.1);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239a8060' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239a8060' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 10rem;
}

.mode-display {
  font-family: 'Courier Prime', monospace;
  font-size: 0.78rem;
  color: var(--text-mid);
  padding: 0.5rem 0;
}

.field-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6rem;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-mid);
  cursor: pointer;
}

.check-label input {
  accent-color: var(--brass);
}

.btn-host,
.btn-primary {
  width: 100%;
  padding: 0.62rem 1rem;
  background: linear-gradient(180deg, var(--red-bright) 0%, var(--red) 100%);
  color: var(--cream);
  border: 1px solid rgba(190, 40, 28, 0.55);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.server-browser-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0.9rem 0 0.8rem;
}

.server-browser-toolbar:empty {
  display: none;
}

.server-browser-host-button {
  width: auto;
  min-width: 12rem;
}

.host-modal-root[hidden] {
  display: none !important;
}

.host-modal-root {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.host-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 3, 0.78);
  backdrop-filter: blur(8px);
}

.host-modal-shell {
  position: relative;
  z-index: 1;
  width: min(96vw, 960px);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(184, 144, 42, 0.28);
  background: linear-gradient(180deg, rgba(34, 20, 8, 0.985) 0%, rgba(13, 9, 4, 0.99) 100%);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.58);
}

.host-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.2rem 0.95rem;
  border-bottom: 1px solid var(--border-wood);
}

.host-modal-head h2 {
  margin: 0;
  font-family: 'Teko', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

.host-modal-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.host-modal-copy {
  margin: 0.24rem 0 0;
  color: var(--text-mid);
  max-width: 42rem;
}

.host-modal-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 15rem) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 1.2rem 1.1rem;
  min-height: 0;
  flex: 1;
}

.host-modal-rail {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.host-summary-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
  border: 1px solid rgba(184, 144, 42, 0.18);
  background: rgba(255, 255, 255, 0.025);
}

.host-summary-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.host-summary-title {
  margin: 0;
  font-family: 'Teko', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}

.host-summary-meta {
  display: grid;
  gap: 0.32rem;
  font-size: 0.78rem;
  color: var(--text-mid);
}

.host-tab-nav {
  display: grid;
  gap: 0.5rem;
}

.host-tab-button {
  width: 100%;
  padding: 0.78rem 0.85rem;
  border: 1px solid rgba(184, 144, 42, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--cream-dim);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.host-tab-button strong {
  display: block;
  font-family: 'Teko', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: inherit;
}

.host-tab-button span {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.72rem;
  color: var(--text-mid);
}

.host-tab-button.is-active {
  border-color: rgba(184, 144, 42, 0.36);
  background: linear-gradient(180deg, rgba(184, 144, 42, 0.18) 0%, rgba(255, 255, 255, 0.05) 100%);
  color: var(--cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.host-tab-button.is-active span {
  color: var(--cream-dim);
}

.host-page-shell {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.host-settings-page {
  display: none;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
}

.host-settings-page.is-active {
  display: flex;
}

.host-page-head {
  display: grid;
  gap: 0.25rem;
}

.host-page-head h3 {
  margin: 0;
  font-family: 'Teko', sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}

.host-page-head p {
  margin: 0;
  color: var(--text-mid);
}

.host-settings-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  overflow: auto;
  padding-right: 0.2rem;
}

.host-field-span {
  grid-column: 1 / -1;
}

.host-option-panel {
  display: grid;
  gap: 0.55rem;
  min-height: 9rem;
  max-height: 17rem;
  overflow: auto;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(184, 144, 42, 0.18);
  background: rgba(0, 0, 0, 0.28);
}

.host-option-panel.is-empty {
  align-content: start;
  color: var(--text-mid);
}

.host-option-panel.is-disabled {
  opacity: 0.55;
}

.host-option-panel .check-label {
  align-items: flex-start;
}

.host-inline-note {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-dim);
}

.host-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.host-inline-actions .btn-nav {
  width: auto;
}

.restriction-rule-panel {
  min-height: 0;
}

.restriction-editor-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.restriction-field-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid rgba(184, 144, 42, 0.18);
  background: rgba(255, 255, 255, 0.025);
}

.restriction-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.restriction-field-head strong {
  font-family: 'Teko', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}

.restriction-clear-button,
.restriction-add-button {
  width: auto;
}

.restriction-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.restriction-search-results,
.restriction-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.7rem;
  border: 1px solid rgba(184, 144, 42, 0.16);
  background: rgba(0, 0, 0, 0.22);
}

.restriction-search-results.is-empty,
.restriction-chip-list.is-empty {
  display: block;
  color: var(--text-mid);
  font-size: 0.78rem;
}

.restriction-search-result {
  width: auto;
  padding: 0.42rem 0.68rem;
  border: 1px solid rgba(184, 144, 42, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream-dim);
  font-size: 0.76rem;
  text-align: left;
  cursor: pointer;
}

.restriction-search-result:hover,
.restriction-search-result:focus-visible {
  border-color: rgba(184, 144, 42, 0.4);
  background: rgba(184, 144, 42, 0.12);
  color: var(--cream);
}

.restriction-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.5rem 0.38rem 0.68rem;
  border: 1px solid rgba(184, 144, 42, 0.2);
  background: rgba(184, 144, 42, 0.1);
  color: var(--cream);
  font-size: 0.76rem;
}

.restriction-chip-remove {
  width: auto;
  padding: 0.18rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.24);
  color: var(--cream-dim);
  font-size: 0.68rem;
  cursor: pointer;
}

.host-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.2rem 1.1rem;
  border-top: 1px solid var(--border-wood);
}

.host-step-copy {
  font-family: 'Courier Prime', monospace;
  font-size: 0.76rem;
  color: var(--text-mid);
}

.host-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.host-modal-actions .btn-host {
  width: auto;
  min-width: 11rem;
}

.host-modal-actions .btn-nav {
  width: auto;
}

body.host-modal-open {
  overflow: hidden;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-wood);
}

@media (max-width: 960px) {
  .host-modal-layout {
    grid-template-columns: 1fr;
  }

  .host-tab-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .restriction-editor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .server-browser-host-button {
    width: 100%;
  }

  .host-modal-root {
    padding: 0.5rem;
  }

  .host-modal-shell {
    width: 100%;
    max-height: calc(100vh - 1rem);
  }

  .host-modal-head {
    padding: 1rem 1rem 0.85rem;
  }

  .host-modal-layout {
    padding: 0.9rem 1rem 1rem;
  }

  .host-tab-nav {
    grid-template-columns: 1fr;
  }

  .host-settings-grid {
    grid-template-columns: 1fr;
  }

  .host-inline-actions {
    flex-direction: column;
  }

  .host-inline-actions .btn-nav,
  .restriction-search-row,
  .restriction-clear-button,
  .restriction-add-button {
    width: 100%;
  }

  .restriction-search-row {
    grid-template-columns: 1fr;
  }

  .host-modal-footer {
    padding: 0.9rem 1rem 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .host-modal-actions {
    flex-direction: column;
  }

  .host-modal-actions .btn-host,
  .host-modal-actions .btn-nav {
    width: 100%;
  }
}

.page-header h1 {
  font-family: 'Teko', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--cream);
}

.page-header p {
  font-style: italic;
  color: var(--text-mid);
  font-size: 0.9rem;
  margin-top: 0.28rem;
  max-width: 760px;
}

.stats-grid,
.profile-loadout-grid,
.armory-grid,
.slot-grid,
.perk-grid,
.inventory-grid,
.cosmetic-grid {
  display: grid;
  gap: 0.8rem;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.settings-card {
  overflow: hidden;
}

.settings-account-card {
  margin-bottom: 1rem;
}

.settings-account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.settings-account-head h2 {
  font-family: 'Teko', sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}

.settings-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.settings-account-actions .btn-primary,
.settings-account-actions .btn-nav {
  width: auto;
  min-width: 180px;
}

.settings-account-panel {
  display: grid;
  gap: 0.9rem;
}

.settings-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.settings-account-item {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(184, 144, 42, 0.18);
  background: rgba(0, 0, 0, 0.22);
}

.settings-account-item span {
  display: block;
  margin-bottom: 0.32rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.settings-account-item strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: 'Teko', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}

.settings-account-item p {
  color: var(--text-mid);
  line-height: 1.45;
}

.settings-account-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.settings-account-chip {
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(184, 144, 42, 0.18);
  background: rgba(0, 0, 0, 0.22);
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  color: var(--cream);
}

.settings-account-preview-card,
.account-settings-panel,
.account-linked-panel .panel {
  height: 100%;
}

.settings-account-profile-grid,
.account-settings-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.settings-account-preview-card {
  padding: 1rem;
  border: 1px solid rgba(184, 144, 42, 0.18);
  background:
    radial-gradient(circle at top left, rgba(212, 170, 58, 0.08), transparent 38%),
    rgba(0, 0, 0, 0.22);
}

.settings-account-preview-shell {
  display: grid;
  gap: 0.9rem;
  align-items: center;
}

.settings-account-preview-head {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.settings-account-preview-head .account-hero-avatar {
  width: 72px;
  height: 72px;
  font-size: 2rem;
}

.settings-account-preview-copy {
  display: grid;
  gap: 0.2rem;
}

.settings-account-preview-copy strong {
  font-family: 'Teko', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 0.92;
}

.settings-account-preview-copy span,
.settings-account-preview-bio,
.account-field-hint {
  color: var(--text-mid);
  line-height: 1.5;
}

.settings-account-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.account-settings-form {
  display: grid;
  gap: 0.95rem;
}

.account-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.account-form-actions .btn-primary,
.account-form-actions .btn-nav {
  min-width: 180px;
}

.settings-flash {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(184, 144, 42, 0.18);
  background: rgba(0, 0, 0, 0.22);
  color: var(--cream);
}

.settings-flash[data-kind='success'] {
  border-color: rgba(114, 192, 120, 0.32);
  color: var(--success);
}

.settings-flash[data-kind='error'] {
  border-color: rgba(200, 112, 112, 0.32);
  color: #f0b0b0;
}

.settings-flash[data-kind='info'] {
  border-color: rgba(184, 144, 42, 0.24);
}

.account-linked-list {
  display: grid;
  gap: 0.8rem;
}

.account-linked-item {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(184, 144, 42, 0.18);
  background: rgba(0, 0, 0, 0.22);
}

.account-linked-item span {
  display: block;
  margin-bottom: 0.3rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.account-linked-item strong {
  color: var(--cream);
}

.settings-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.settings-meta span {
  font-family: 'Courier Prime', monospace;
  color: var(--cream);
}

.settings-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--cream);
}

.settings-field span,
.settings-bindings-group h3,
.settings-binding-label,
.settings-note,
.settings-toggle {
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.settings-select,
.settings-number {
  width: 100%;
  border: 1px solid rgba(184, 144, 42, 0.24);
  background: rgba(0, 0, 0, 0.25);
  color: var(--cream);
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.settings-toggle-row {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
}

.settings-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--cream);
}

.settings-ptt-row {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.settings-bindings-group + .settings-bindings-group {
  margin-top: 1.2rem;
}

.settings-bindings-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.settings-binding-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 0.9fr) minmax(220px, 0.9fr);
  gap: 0.8rem;
  align-items: center;
}

.settings-binding-slot {
  display: flex;
  gap: 0.45rem;
}

.settings-bind-button {
  flex: 1;
  justify-content: center;
}

.settings-clear-button {
  min-width: 72px;
  justify-content: center;
}

.settings-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
}

.settings-save-actions {
  display: flex;
  gap: 0.7rem;
}

.settings-status {
  min-height: 1.5rem;
  color: var(--cream-dim);
}

.settings-status[data-kind='success'] {
  color: var(--success);
}

.settings-status[data-kind='error'] {
  color: var(--danger);
}

.settings-status[data-kind='info'] {
  color: var(--brass);
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.25fr);
  gap: 1rem;
  align-items: start;
}

.support-info-card,
.support-form-card {
  display: grid;
  gap: 1rem;
}

.support-info-card h2,
.support-form-card h2 {
  font-family: 'Teko', sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

.support-topic-list,
.support-account-list {
  display: grid;
  gap: 0.75rem;
}

.support-topic,
.support-account-list div {
  display: grid;
  gap: 0.28rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(184, 144, 42, 0.16);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.18);
}

.support-topic strong,
.support-account-list strong {
  color: var(--cream);
}

.support-topic span,
.support-account-list span,
.support-account-copy {
  color: var(--text-mid);
  font-size: 0.83rem;
}

.support-form {
  display: grid;
  gap: 0.85rem;
}

.support-flash {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 2px;
  border: 1px solid rgba(184, 144, 42, 0.18);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-mid);
}

.support-flash[data-kind='success'] {
  border-color: rgba(114, 192, 120, 0.32);
  color: #9ad09e;
}

.support-flash[data-kind='error'] {
  border-color: rgba(200, 112, 112, 0.3);
  color: #d79a9a;
}

.pause-surface {
  background: transparent;
  overflow: hidden;
}

.pause-surface::before,
.pause-surface::after,
.pause-surface #ball-canvas {
  display: none;
}

.pause-surface-shell {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  padding: 1.2rem;
  overflow: hidden;
}

.pause-surface-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(212, 170, 58, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(212, 48, 32, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(5, 8, 6, 0.76), rgba(18, 9, 3, 0.84));
  backdrop-filter: blur(18px) saturate(118%);
}

.pause-surface-frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 1rem;
  width: min(1520px, 100%);
  height: calc(100vh - 2.4rem);
  min-height: calc(100vh - 2.4rem);
  max-height: calc(100vh - 2.4rem);
  margin: 0 auto;
}

.pause-command-card,
.pause-content-card {
  overflow: hidden;
  min-height: 0;
  background: linear-gradient(180deg, rgba(40, 24, 10, 0.9) 0%, rgba(18, 12, 6, 0.9) 100%);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 218, 130, 0.08);
}

.pause-command-card {
  display: grid;
  align-self: stretch;
  height: 100%;
}

.pause-command-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.pause-command-copy {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 1rem;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.2rem;
}

.pause-command-footer {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(184, 144, 42, 0.16);
  background: linear-gradient(180deg, rgba(18, 12, 6, 0), rgba(18, 12, 6, 0.92) 32%);
}

.pause-kicker {
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

.pause-command-body h1 {
  font-family: 'Teko', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 0.92;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}

.pause-command-body p {
  color: var(--text-mid);
  line-height: 1.55;
}

.pause-command-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pause-chip {
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(184, 144, 42, 0.22);
  background: rgba(0, 0, 0, 0.22);
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  color: var(--cream);
}

.pause-command-actions {
  display: grid;
  gap: 0.7rem;
}

.pause-command-actions .btn-nav,
.pause-command-actions .btn-primary {
  width: 100%;
}

.pause-status {
  min-height: 1.25rem;
}

.pause-content-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  height: 100%;
}

.pause-content-card > .section-title {
  margin: 0;
  padding: 1rem 1rem 0;
}

.pause-panel {
  flex: 1;
  min-height: 0;
}

.pause-panel-menu {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.pause-panel-settings {
  display: none;
  min-height: 0;
  height: 100%;
  padding: 0 1rem 1rem;
  overflow-y: auto;
}

.pause-panel-loadout {
  display: none;
  min-height: 0;
  height: 100%;
  padding: 0 1rem 1rem;
  overflow-y: auto;
}

.pause-panel-loadout .feature-callout {
  margin-bottom: 1rem;
}

.pause-surface-shell[data-view='loadout'] .pause-panel-menu {
  display: none;
}

.pause-surface-shell[data-view='loadout'] .pause-panel-loadout {
  display: block;
}

.pause-surface-shell[data-view='settings'] .pause-panel-menu {
  display: none;
}

.pause-surface-shell[data-view='settings'] .pause-panel-settings {
  display: block;
}

body[data-page='ingame-overlay-surface'] {
  background: transparent;
  overflow: hidden;
}

body[data-page='ingame-overlay-surface']::before,
body[data-page='ingame-overlay-surface']::after,
body[data-page='ingame-overlay-surface'] #ball-canvas,
body[data-page='ingame-overlay-surface'] #toast-container,
body[data-page='ingame-overlay-surface'] #social-dock-root {
  display: none;
}

.ingame-overlay-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.1rem, 3vw, 2.4rem);
}

.ingame-overlay-panel {
  box-sizing: border-box;
  display: flex;
  align-self: center;
  width: min(740px, calc(100vw - 2.2rem));
  height: min(720px, calc(100vh - 2.2rem));
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(212, 170, 58, 0.28);
  background:
    radial-gradient(circle at top left, rgba(212, 170, 58, 0.14), transparent 36%),
    radial-gradient(circle at bottom right, rgba(39, 94, 58, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(33, 20, 12, 0.96), rgba(16, 10, 6, 0.94));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
  color: var(--cream);
}

.ingame-chat-panel {
  width: min(560px, calc(100vw - 0.5rem));
  height: min(380px, calc(100vh - 0.5rem));
  border-radius: 0.72rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.ingame-leaderboard-panel {
  width: min(1280px, calc(100vw - 0.8rem));
  height: min(760px, calc(100vh - 2.2rem));
  border-radius: 0.72rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.ingame-overlay-body {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.ingame-overlay-body.panel.panel-pad {
  padding: 0.95rem 1rem 0.9rem;
}

.ingame-overlay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.ingame-overlay-copy {
  display: grid;
  gap: 0.22rem;
}

.ingame-overlay-kicker {
  font-family: 'Teko', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(224, 196, 118, 0.82);
}

.ingame-overlay-copy h1 {
  margin: 0;
  font-family: 'Teko', sans-serif;
  font-size: clamp(1.55rem, 2.15vw, 2.15rem);
  line-height: 0.94;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ingame-overlay-copy p,
.ingame-leaderboard-hint {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.3;
  color: rgba(231, 220, 196, 0.72);
}

.ingame-chat-tabs,
.ingame-chat-controls,
.ingame-leaderboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ingame-chat-tabs button,
.ingame-leaderboard-select,
.ingame-leaderboard-actions button {
  border-radius: 999px;
  border: 1px solid rgba(184, 144, 42, 0.26);
  background: rgba(27, 18, 11, 0.88);
  color: var(--cream);
  padding: 0.5rem 0.78rem;
  font-size: 0.78rem;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.ingame-chat-tabs button.active {
  border-color: rgba(212, 170, 58, 0.58);
  background: rgba(24, 63, 34, 0.9);
  color: var(--cream);
}

.ingame-chat-tabs button:hover,
.ingame-chat-tabs button:focus-visible,
.ingame-leaderboard-select:hover,
.ingame-leaderboard-select:focus-visible,
.ingame-leaderboard-actions button:hover,
.ingame-leaderboard-actions button:focus-visible {
  transform: translateY(-1px);
}

.ingame-chat-messages,
.ingame-leaderboard-rows {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
  overflow: auto;
  padding-right: 0.15rem;
}

.ingame-chat-message,
.ingame-chat-empty,
.ingame-leaderboard-empty,
.ingame-leaderboard-row {
  box-sizing: border-box;
  border-radius: 1.1rem;
  border: 1px solid rgba(122, 92, 20, 0.24);
  background: rgba(13, 18, 10, 0.72);
}

.ingame-chat-message,
.ingame-chat-empty,
.ingame-leaderboard-empty {
  padding: 0.62rem 0.78rem;
}

.ingame-chat-message strong {
  display: block;
  color: rgba(233, 210, 150, 0.96);
  margin-bottom: 0.12rem;
  font-size: 0.82rem;
}

.ingame-chat-message span,
.ingame-chat-empty,
.ingame-leaderboard-empty {
  font-size: 0.8rem;
  line-height: 1.28;
  color: rgba(239, 229, 206, 0.78);
}

.ingame-chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.ingame-chat-compose input {
  min-width: 0;
  border-radius: 1rem;
  border: 1px solid rgba(122, 92, 20, 0.32);
  background: rgba(12, 8, 6, 0.92);
  color: var(--cream);
  padding: 0.72rem 0.82rem;
  font-size: 0.86rem;
}

.ingame-leaderboard-row {
  border-left: 4px solid var(--entry-accent, #b9d3ff);
  padding: 0.72rem 0.8rem;
}

.ingame-leaderboard-row.is-local {
  border-color: rgba(212, 170, 58, 0.42);
  background: linear-gradient(180deg, rgba(63, 47, 17, 0.72), rgba(25, 18, 9, 0.84));
}

.ingame-leaderboard-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.ingame-leaderboard-copy {
  display: grid;
  gap: 0.22rem;
}

.ingame-leaderboard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.ingame-leaderboard-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  background: rgba(184, 144, 42, 0.14);
  color: rgba(241, 218, 164, 0.94);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ingame-leaderboard-lines {
  display: grid;
  gap: 0.12rem;
  font-size: 0.8rem;
  line-height: 1.25;
  color: rgba(230, 219, 196, 0.72);
}

.ingame-chat-shell .ingame-overlay-head {
  position: absolute;
  top: 0.42rem;
  right: 0.46rem;
  z-index: 2;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.ingame-chat-shell .ingame-overlay-copy {
  display: none;
}

.ingame-chat-shell #ingame-chat-close,
.ingame-chat-shell #ingame-chat-send {
  display: none !important;
}

.ingame-chat-shell .ingame-overlay-body.panel.panel-pad {
  position: relative;
  padding: 0.12rem 0.14rem 0.14rem;
  gap: 0.16rem;
}

.ingame-chat-shell .ingame-overlay-body.panel,
.ingame-leaderboard-shell .ingame-overlay-body.panel {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.ingame-chat-shell .ingame-overlay-body.panel::before,
.ingame-chat-shell .ingame-overlay-body.panel::after,
.ingame-leaderboard-shell .ingame-overlay-body.panel::before,
.ingame-leaderboard-shell .ingame-overlay-body.panel::after {
  display: none;
}

.ingame-chat-shell .ingame-chat-tabs,
.ingame-chat-shell .ingame-chat-controls {
  gap: 0.18rem;
}

.ingame-chat-shell .ingame-chat-tabs button,
.ingame-chat-shell .ingame-chat-controls button,
.ingame-chat-shell .btn-nav,
.ingame-chat-shell .btn-primary {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.46rem;
  font-size: 0.68rem;
  white-space: nowrap;
}

.ingame-chat-shell .ingame-chat-tabs button {
  padding: 0.18rem 0.34rem;
  font-size: 0.62rem;
}

.ingame-chat-shell .ingame-chat-messages {
  justify-content: flex-end;
  gap: 0.08rem;
  padding-right: 0;
}

.ingame-chat-shell .ingame-chat-message,
.ingame-chat-shell .ingame-chat-empty {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ingame-chat-shell .ingame-chat-message strong {
  display: inline;
  margin: 0 0.28rem 0 0;
  font-size: 0.7rem;
}

.ingame-chat-shell .ingame-chat-message span,
.ingame-chat-shell .ingame-chat-empty {
  font-size: 0.7rem;
  line-height: 1.08;
}

.ingame-chat-shell .ingame-chat-compose {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 0.18rem;
  align-items: center;
}

.ingame-chat-shell .ingame-chat-compose input {
  padding: 0.34rem 0.48rem;
  font-size: 0.72rem;
}

.ingame-chat-shell .ingame-overlay-status {
  min-height: 0;
}

.ingame-leaderboard-shell .ingame-overlay-body.panel.panel-pad {
  padding: 0;
  gap: 0;
}

.ingame-leaderboard-scale-shell {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0.44rem 0.54rem 0.48rem;
}

.ingame-leaderboard-scale-stage {
  --leaderboard-design-width: 1220px;
  --leaderboard-design-height: 684px;
  position: absolute;
  top: 0;
  left: 0;
  width: var(--leaderboard-design-width);
  height: var(--leaderboard-design-height);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transform-origin: top left;
}

.ingame-leaderboard-shell .ingame-overlay-kicker,
.ingame-leaderboard-shell #ingame-leaderboard-subtitle,
.ingame-leaderboard-shell #ingame-leaderboard-hint {
  display: none;
}

.ingame-leaderboard-shell .ingame-overlay-head {
  align-items: center;
  gap: 0.5rem;
}

.ingame-leaderboard-shell .ingame-overlay-copy {
  gap: 0;
}

.ingame-leaderboard-shell .ingame-overlay-copy h1 {
  font-size: 1.12rem;
  line-height: 1;
}

.ingame-leaderboard-shell .ingame-leaderboard-rows {
  gap: 0.28rem;
}

.ingame-leaderboard-columns {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(var(--team-column-count, 2), minmax(0, 1fr));
  gap: 0.4rem;
  align-content: start;
}

.ingame-leaderboard-team-column {
  min-width: 0;
  display: grid;
  gap: 0.22rem;
  align-content: start;
}

.ingame-leaderboard-team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.24rem 0.42rem;
  border-radius: 0.62rem;
  border: 1px solid rgba(122, 92, 20, 0.3);
  background: rgba(0, 0, 0, 0.14);
  box-shadow: inset 3px 0 0 var(--team-accent, rgba(212, 170, 58, 0.52));
}

.ingame-leaderboard-team-label {
  font-family: 'Teko', sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(241, 218, 164, 0.94);
}

.ingame-leaderboard-team-count {
  min-width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.68rem;
  color: rgba(230, 219, 196, 0.82);
  background: rgba(122, 92, 20, 0.18);
}

.ingame-leaderboard-team-rows {
  display: grid;
  gap: 0.22rem;
  align-content: start;
}

.ingame-leaderboard-shell .ingame-leaderboard-row {
  border-radius: 0.7rem;
  padding: 0.34rem 0.5rem;
  background: rgba(0, 0, 0, 0.14);
}

.ingame-leaderboard-shell .ingame-leaderboard-badge {
  padding: 0.14rem 0.38rem;
}

.ingame-leaderboard-shell .ingame-leaderboard-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.08rem 0.42rem;
  font-size: 0.72rem;
  line-height: 1.1;
}

.ingame-leaderboard-shell .ingame-leaderboard-lines span {
  display: inline-flex;
  align-items: center;
}

.ingame-leaderboard-shell .ingame-leaderboard-lines span + span::before {
  content: '\2022';
  margin-right: 0.42rem;
  color: rgba(199, 183, 149, 0.58);
}

.ingame-leaderboard-shell .ingame-leaderboard-select,
.ingame-leaderboard-shell .ingame-leaderboard-actions button {
  padding: 0.38rem 0.56rem;
  font-size: 0.72rem;
}

.ingame-overlay-status {
  min-height: 1.25rem;
}

body[data-page='ingame-overlay-dev-preview'] {
  background:
    radial-gradient(circle at top, rgba(76, 173, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #06101a 0%, #091521 52%, #04070d 100%);
  overflow-x: hidden;
}

body[data-page='ingame-overlay-dev-preview']::before,
body[data-page='ingame-overlay-dev-preview']::after,
body[data-page='ingame-overlay-dev-preview'] #ball-canvas,
body[data-page='ingame-overlay-dev-preview'] #toast-container,
body[data-page='ingame-overlay-dev-preview'] #social-dock-root {
  display: none;
}

.ingame-overlay-preview-shell {
  min-height: 100vh;
  padding: clamp(1rem, 2vw, 1.75rem);
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1rem;
}

.ingame-overlay-preview-controls {
  align-self: start;
  display: grid;
  gap: 1rem;
  background:
    linear-gradient(180deg, rgba(11, 23, 36, 0.94), rgba(7, 14, 24, 0.94)),
    radial-gradient(circle at top right, rgba(99, 206, 255, 0.16), transparent 42%);
}

.ingame-overlay-preview-copy {
  display: grid;
  gap: 0.55rem;
}

.ingame-overlay-preview-kicker {
  font-family: 'Teko', sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(168, 220, 255, 0.78);
}

.ingame-overlay-preview-copy h1 {
  margin: 0;
  font-family: 'Teko', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 0.92;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ingame-overlay-preview-copy p,
.ingame-overlay-preview-note {
  margin: 0;
  color: rgba(226, 238, 252, 0.74);
}

.ingame-overlay-preview-toggles {
  display: grid;
  gap: 0.7rem;
}

.ingame-overlay-preview-stage-wrap {
  min-width: 0;
}

.ingame-overlay-preview-stage {
  position: relative;
  width: min(100%, 1760px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(141, 201, 255, 0.26);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  background: #050a11;
}

.ingame-overlay-preview-surface {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(92, 199, 255, 0.16), transparent 20%),
    radial-gradient(circle at 72% 24%, rgba(255, 149, 88, 0.12), transparent 18%),
    linear-gradient(145deg, rgba(11, 27, 44, 0.94), rgba(8, 14, 22, 0.98));
}

.ingame-overlay-preview-surface::before,
.ingame-overlay-preview-surface::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(117, 215, 255, 0.32), rgba(255, 255, 255, 0));
}

.ingame-overlay-preview-surface::before {
  width: 38%;
  height: 2px;
  left: 10%;
  top: 24%;
}

.ingame-overlay-preview-surface::after {
  width: 52%;
  height: 2px;
  right: 8%;
  bottom: 22%;
}

.ingame-overlay-preview-surface-copy {
  position: absolute;
  top: 3.5%;
  left: 2.5%;
  display: grid;
  gap: 0.22rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(6, 13, 21, 0.58);
  color: rgba(236, 245, 255, 0.88);
  backdrop-filter: blur(10px);
}

.ingame-overlay-preview-surface-copy span {
  font-family: 'Teko', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(174, 221, 255, 0.74);
}

.ingame-overlay-preview-surface-copy strong {
  font-size: 1rem;
}

.ingame-overlay-preview-surface-copy p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(220, 232, 245, 0.72);
}

.ingame-overlay-preview-frame {
  position: absolute;
  border: 0;
  background: transparent;
}

.ingame-overlay-preview-hud {
  pointer-events: none;
  z-index: 2;
}

.ingame-overlay-preview-hud.vitals {
  left: 1.25% !important;
  top: 80.185% !important;
  width: 23.333% !important;
  height: 15.556% !important;
}

.ingame-overlay-preview-hud.abilities {
  left: 36.458% !important;
  top: 84.074% !important;
  width: 27.083% !important;
  height: 11.111% !important;
}

.ingame-overlay-preview-hud.equipment {
  left: 76.25% !important;
  top: 81.296% !important;
  width: 22.5% !important;
  height: 14.444% !important;
}

.ingame-overlay-preview-hud.killfeed {
  left: 71.458% !important;
  top: 2.593% !important;
  width: 27.083% !important;
  height: 22.963% !important;
}

.ingame-overlay-preview-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  z-index: 4;
}

.ingame-overlay-preview-modal.chat {
  left: 1.458%;
  top: 39.259%;
  width: 33.333%;
  height: 38.889%;
}

.ingame-overlay-preview-modal.leaderboard {
  left: 13.542%;
  top: 10.185%;
  width: 72.917%;
  height: 79.63%;
}

.ingame-overlay-preview-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .ingame-overlay-preview-shell {
    grid-template-columns: 1fr;
  }

  .ingame-overlay-preview-stage {
    width: 100%;
  }

  .ingame-overlay-shell {
    padding: 0.9rem;
  }

  .ingame-overlay-panel,
  .ingame-leaderboard-panel {
    width: 100%;
  }

  .ingame-overlay-head,
  .ingame-leaderboard-summary {
    flex-direction: column;
  }

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

  .ingame-leaderboard-shell .ingame-overlay-head,
  .ingame-leaderboard-shell .ingame-leaderboard-summary {
    flex-direction: row;
  }
}

@media (max-width: 500px) {
  .ingame-chat-compose {
    grid-template-columns: 1fr;
  }
}

body[data-page='ingame-hud-surface'] {
  background: transparent;
  overflow: hidden;
}

body[data-page='ingame-hud-surface']::before,
body[data-page='ingame-hud-surface']::after,
body[data-page='ingame-hud-surface'] #ball-canvas,
body[data-page='ingame-hud-surface'] #toast-container,
body[data-page='ingame-hud-surface'] #social-dock-root {
  display: none;
}

.ingame-hud-shell,
.ingame-hud-panel,
.ingame-hud-panel * {
  pointer-events: none;
}

.ingame-hud-shell {
  width: 100%;
  height: 100%;
  display: flex;
}

.ingame-hud-panel {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border-radius: 1.05rem;
  border: 1px solid rgba(212, 170, 58, 0.24);
  background:
    radial-gradient(circle at top left, rgba(212, 170, 58, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(28, 79, 49, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(28, 18, 12, 0.9), rgba(12, 8, 6, 0.82));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
  color: var(--cream);
}

.ingame-hud-vitals-panel {
  padding: 0.62rem 0.72rem;
  display: grid;
  gap: 0.5rem;
}

.ingame-hud-vitals-row {
  display: grid;
  gap: 0.28rem;
}

.ingame-hud-vitals-text {
  font-size: 0.76rem;
  color: rgba(240, 229, 204, 0.92);
}

.ingame-hud-track {
  position: relative;
  height: 0.62rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.24);
}

.ingame-hud-track-fill,
.ingame-hud-track-bonus {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  border-radius: inherit;
  transition: width 120ms linear;
}

.ingame-hud-track-fill.health {
  background: linear-gradient(90deg, rgba(230, 83, 92, 0.96), rgba(255, 129, 111, 0.96));
}

.ingame-hud-track-bonus.health {
  background: linear-gradient(90deg, rgba(255, 182, 76, 0.76), rgba(255, 228, 149, 0.78));
}

.ingame-hud-track-fill.shield {
  background: linear-gradient(90deg, rgba(73, 150, 255, 0.94), rgba(118, 214, 255, 0.94));
}

.ingame-hud-track-bonus.shield {
  background: linear-gradient(90deg, rgba(184, 236, 255, 0.7), rgba(226, 250, 255, 0.76));
}

.ingame-hud-track-fill.energy {
  background: linear-gradient(90deg, rgba(149, 87, 255, 0.92), rgba(221, 121, 255, 0.94));
}

.ingame-hud-abilities-panel {
  padding: 0.28rem 0.32rem 0.3rem;
}

.ingame-hud-abilities-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.32rem;
}

.ingame-hud-ability-slot {
  box-sizing: border-box;
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.2rem;
  padding: 0.26rem 0.3rem 0.28rem;
  border-radius: 0.88rem;
  border: 1px solid rgba(122, 92, 20, 0.34);
  background:
    radial-gradient(circle at top left, rgba(212, 170, 58, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(22, 16, 11, 0.94), rgba(9, 8, 7, 0.94));
  overflow: hidden;
}

.ingame-hud-ability-slot.active {
  border-color: rgba(212, 170, 58, 0.42);
  box-shadow: inset 0 0 0 1px rgba(212, 170, 58, 0.12);
}

.ingame-hud-ability-slot.inadequate-energy {
  border-color: rgba(212, 87, 77, 0.48);
}

.ingame-hud-ability-slot.blocked {
  border-color: rgba(180, 198, 219, 0.2);
  opacity: 0.88;
}

.ingame-hud-ability-binding {
  position: absolute;
  top: 0.18rem;
  left: 0.24rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  min-height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 170, 58, 0.2);
  background: rgba(184, 144, 42, 0.12);
  font-family: 'Teko', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(239, 219, 171, 0.9);
  line-height: 1;
}

.ingame-hud-ability-icon {
  position: relative;
  border-radius: 0.78rem;
  display: grid;
  place-items: center;
  padding-top: 0.58rem;
  background:
    radial-gradient(circle at top, rgba(212, 170, 58, 0.14), transparent 52%),
    linear-gradient(180deg, rgba(24, 18, 12, 0.96), rgba(11, 9, 7, 0.98));
  overflow: hidden;
  min-height: 0;
}

.ingame-hud-ability-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ingame-hud-ability-cooldown {
  position: absolute;
  inset: auto 0 0 0;
  height: calc(var(--cooldown-normalized, 0) * 100%);
  background: linear-gradient(180deg, rgba(4, 8, 14, 0), rgba(4, 8, 14, 0.72));
}

.ingame-hud-ability-energy-cost {
  position: absolute;
  right: 0.42rem;
  bottom: 0.4rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.02rem;
  min-height: 0.96rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(179, 148, 92, 0.18);
  background: linear-gradient(180deg, rgba(30, 24, 17, 0.84), rgba(16, 13, 10, 0.9));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
  font-family: 'Teko', sans-serif;
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.05em;
  color: rgba(214, 200, 172, 0.82);
}

.ingame-hud-ability-copy {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
  align-content: start;
  min-height: 2.42rem;
}

.ingame-hud-ability-name {
  font-family: 'Teko', sans-serif;
  font-size: 0.88rem;
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(240, 229, 206, 0.92);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ingame-hud-ability-meta {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.22rem;
}

.ingame-hud-ability-subheading {
  min-width: 0;
  font-size: 0.54rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(214, 197, 161, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ingame-hud-ability-subheading:empty {
  display: none;
}

.ingame-hud-ability-meta:empty {
  display: none;
}

.ingame-hud-ability-detail {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 1rem;
  padding: 0.08rem 0.34rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 92, 20, 0.2);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.56rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(213, 199, 168, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ingame-hud-ability-slot.active .ingame-hud-ability-detail {
  border-color: rgba(212, 170, 58, 0.24);
  color: rgba(241, 223, 179, 0.86);
}

.ingame-hud-ability-slot.idle .ingame-hud-ability-detail {
  border-color: rgba(101, 181, 255, 0.3);
  background: rgba(60, 124, 216, 0.14);
  color: rgba(194, 228, 255, 0.92);
}

.ingame-hud-ability-slot.inadequate-energy .ingame-hud-ability-detail {
  border-color: rgba(212, 87, 77, 0.28);
  background: rgba(92, 22, 18, 0.22);
  color: rgba(255, 194, 160, 0.9);
}

.ingame-hud-equipment-panel {
  padding: 0.62rem 0.76rem;
}

.ingame-hud-equipment-lines {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: space-between;
  justify-items: end;
  gap: 0.18rem;
  text-align: right;
}

.ingame-hud-equipment-line {
  width: 100%;
  line-height: 1.12;
  color: rgba(240, 229, 206, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ingame-hud-equipment-line.weapon {
  font-family: 'Teko', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ingame-hud-equipment-line.ammo {
  font-size: 0.76rem;
  line-height: 1.16;
  color: rgba(233, 210, 150, 0.9);
  white-space: pre-line;
}

.ingame-hud-equipment-line.utility {
  font-size: 0.7rem;
  color: rgba(219, 205, 175, 0.76);
}

.ingame-hud-impact-charger-panel {
  padding: 0.58rem 0.76rem 0.64rem;
  display: grid;
  gap: 0.34rem;
  border-color: rgba(255, 191, 94, 0.28);
  background:
    radial-gradient(circle at top left, rgba(255, 194, 92, 0.18), transparent 38%),
    radial-gradient(circle at bottom right, rgba(91, 168, 255, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(24, 18, 12, 0.92), rgba(8, 8, 10, 0.86));
}

.ingame-hud-impact-charger-panel[data-state='active'] {
  border-color: rgba(255, 205, 126, 0.42);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 205, 126, 0.08);
}

.ingame-hud-impact-charger-panel[data-state='overcharge'] {
  border-color: rgba(255, 102, 82, 0.56);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.26),
    0 0 24px rgba(255, 102, 82, 0.14);
}

.ingame-hud-impact-charger-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.5rem;
}

.ingame-hud-impact-charger-title {
  min-width: 0;
  font-family: 'Teko', sans-serif;
  font-size: 1.02rem;
  line-height: 0.94;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 235, 205, 0.96);
}

.ingame-hud-impact-charger-state {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 1.08rem;
  max-width: 15.5rem;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 198, 112, 0.24);
  background: rgba(62, 40, 16, 0.28);
  font-size: 0.56rem;
  line-height: 1.08;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 229, 182, 0.88);
  white-space: normal;
  text-align: right;
}

.ingame-hud-impact-charger-panel[data-state='overcharge'] .ingame-hud-impact-charger-state {
  border-color: rgba(255, 120, 90, 0.34);
  background: rgba(90, 18, 12, 0.3);
  color: rgba(255, 207, 182, 0.94);
}

.ingame-hud-impact-charger-row {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.ingame-hud-impact-charger-text {
  min-width: 0;
  font-size: 0.7rem;
  line-height: 1.08;
  color: rgba(232, 221, 196, 0.88);
  white-space: nowrap;
}

.ingame-hud-impact-charger-track {
  height: 0.56rem;
}

.ingame-hud-track-fill.impact-charge {
  background: linear-gradient(90deg, rgba(255, 186, 77, 0.96), rgba(255, 232, 138, 0.96));
}

.ingame-hud-track-fill.impact-duration {
  background: linear-gradient(90deg, rgba(92, 190, 255, 0.92), rgba(154, 235, 255, 0.96));
}

.ingame-hud-track-bonus.impact-overcharge {
  background: linear-gradient(90deg, rgba(255, 110, 78, 0.68), rgba(255, 181, 96, 0.78));
}

.ingame-hud-killfeed-panel {
  padding: 0.08rem 0.12rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.ingame-hud-killfeed-list {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 0.22rem;
}

.ingame-hud-killfeed-entry {
  width: fit-content;
  max-width: min(100%, 30rem);
  position: relative;
  padding: 0.24rem 0.54rem 0.26rem 0.72rem;
  border-radius: 0.72rem 0.18rem 0.18rem 0.72rem;
  background:
    linear-gradient(90deg, rgba(6, 9, 13, 0.82), rgba(6, 9, 13, 0.18));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  opacity: calc(0.34 + (var(--killfeed-freshness, 1) * 0.66));
  transform-origin: right center;
}

.ingame-hud-killfeed-entry::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.18rem;
  border-radius: inherit;
  background: var(--killfeed-accent, rgba(240, 215, 160, 0.96));
  box-shadow: 0 0 16px var(--killfeed-accent, rgba(240, 215, 160, 0.42));
}

.ingame-hud-killfeed-entry.is-local-kill {
  background:
    linear-gradient(90deg, rgba(34, 26, 12, 0.84), rgba(34, 26, 12, 0.22));
}

.ingame-hud-killfeed-entry.is-local-death {
  background:
    linear-gradient(90deg, rgba(42, 12, 12, 0.84), rgba(42, 12, 12, 0.22));
}

.ingame-hud-killfeed-text {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: rgba(247, 239, 223, 0.98);
  text-align: right;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.3),
    0 0 16px rgba(0, 0, 0, 0.26);
  overflow-wrap: anywhere;
}

.ingame-hud-levelup-shell {
  align-items: stretch;
  justify-content: center;
}

.ingame-hud-levelup-card {
  --levelup-accent: #f2bd63;
  --levelup-prev-fill: 0;
  --levelup-current-fill: 0;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.58rem;
  padding: 0.92rem 1rem 0.98rem;
  border-radius: 1.18rem;
  border: 1px solid rgba(242, 189, 99, 0.2);
  background:
    linear-gradient(135deg, rgba(10, 24, 34, 0.68), rgba(8, 11, 19, 0.74)),
    radial-gradient(circle at top, rgba(242, 189, 99, 0.1), transparent 56%);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(15px) saturate(118%);
  color: rgba(247, 242, 230, 0.98);
  overflow: hidden;
}

.ingame-hud-levelup-card::before,
.ingame-hud-levelup-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ingame-hud-levelup-card::before {
  background:
    radial-gradient(circle at top center, var(--levelup-accent), transparent 58%);
  opacity: 0.12;
}

.ingame-hud-levelup-card::after {
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.12) 42%, transparent 72%);
  opacity: 0;
}

.ingame-hud-levelup-card[data-kind='ball'] {
  border-color: rgba(109, 215, 255, 0.34);
}

.ingame-hud-levelup-card[data-kind='account'] {
  border-color: rgba(127, 240, 186, 0.34);
}

.ingame-hud-levelup-head,
.ingame-hud-levelup-copy,
.ingame-hud-levelup-progress {
  position: relative;
  z-index: 1;
}

.ingame-hud-levelup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.ingame-hud-levelup-kicker,
.ingame-hud-levelup-queue {
  display: inline-flex;
  align-items: center;
  min-height: 1.32rem;
  padding: 0.12rem 0.58rem 0.08rem;
  border-radius: 999px;
  font-family: 'Teko', sans-serif;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ingame-hud-levelup-kicker {
  border: 1px solid rgba(242, 189, 99, 0.2);
  background: rgba(242, 189, 99, 0.1);
  color: rgba(255, 231, 187, 0.94);
}

.ingame-hud-levelup-queue {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(237, 243, 255, 0.88);
}

.ingame-hud-levelup-copy {
  display: grid;
  gap: 0.16rem;
}

.ingame-hud-levelup-title {
  font-family: 'Teko', sans-serif;
  font-size: 1.46rem;
  line-height: 0.92;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.32);
}

.ingame-hud-levelup-subtitle {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.14;
  color: rgba(220, 227, 240, 0.82);
}

.ingame-hud-levelup-subtitle:empty {
  display: none;
}

.ingame-hud-levelup-progress {
  display: grid;
  align-content: end;
  gap: 0.44rem;
}

.ingame-hud-levelup-levels {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.58rem;
}

.ingame-hud-levelup-level-chip {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 0.34rem;
  min-width: 5.4rem;
  padding: 0.24rem 0.6rem 0.2rem;
  border-radius: 0.96rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 20, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform-origin: center center;
}

.ingame-hud-levelup-level-chip span {
  font-family: 'Teko', sans-serif;
  font-size: 0.66rem;
  line-height: 1;
  letter-spacing: 0.12em;
  color: rgba(217, 228, 243, 0.74);
}

.ingame-hud-levelup-level-chip strong {
  font-family: 'Teko', sans-serif;
  font-size: 1.28rem;
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: rgba(250, 247, 238, 0.98);
}

.ingame-hud-levelup-level-chip.current {
  justify-self: end;
  opacity: 0;
  transform: translateY(0.24rem) scale(0.92);
  border-color: rgba(242, 189, 99, 0.22);
  background:
    linear-gradient(180deg, rgba(34, 27, 16, 0.54), rgba(13, 16, 24, 0.5));
  box-shadow:
    0 0 0 1px rgba(242, 189, 99, 0.06),
    0 0 18px rgba(242, 189, 99, 0.1);
}

.ingame-hud-levelup-level-arrow {
  position: relative;
  height: 0.28rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(242, 189, 99, 0.5), rgba(255, 255, 255, 0.1));
  overflow: hidden;
}

.ingame-hud-levelup-level-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 0.66rem;
  height: 0.66rem;
  border-top: 2px solid rgba(242, 189, 99, 0.8);
  border-right: 2px solid rgba(242, 189, 99, 0.8);
  transform: translate(-0.06rem, -50%) rotate(45deg);
}

.ingame-hud-levelup-track-shell {
  padding: 0.16rem 0;
}

.ingame-hud-levelup-track {
  position: relative;
  height: 0.92rem;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 8, 14, 0.62), rgba(10, 13, 19, 0.56));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 16px rgba(0, 0, 0, 0.22);
}

.ingame-hud-levelup-track-fill,
.ingame-hud-levelup-track-flare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.ingame-hud-levelup-track-fill.previous,
.ingame-hud-levelup-track-fill.current {
  transform-origin: left center;
}

.ingame-hud-levelup-track-fill.previous {
  opacity: 1;
  transform: scaleX(var(--levelup-prev-fill));
  background:
    linear-gradient(90deg, rgba(255, 247, 219, 0.96), var(--levelup-accent));
  box-shadow:
    0 0 18px rgba(255, 239, 194, 0.32);
}

.ingame-hud-levelup-track-fill.current {
  opacity: 0;
  transform: scaleX(0);
  background:
    linear-gradient(90deg, var(--levelup-accent), rgba(255, 255, 255, 0.98));
  box-shadow:
    0 0 22px rgba(255, 255, 255, 0.26);
}

.ingame-hud-levelup-track-flare {
  opacity: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.88) 48%, transparent 100%);
  transform: translateX(-120%);
  mix-blend-mode: screen;
}

.ingame-hud-levelup-xp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  align-items: center;
}

.ingame-hud-levelup-xp {
  display: block;
  min-width: 0;
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(222, 229, 239, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ingame-hud-levelup-xp.after {
  text-align: right;
  opacity: 0;
}

.ingame-hud-levelup-card.is-animating::after {
  animation: ingame-levelup-card-sheen 3.2s ease-out forwards;
}

.ingame-hud-levelup-card.is-animating .ingame-hud-levelup-level-chip.previous {
  animation: ingame-levelup-previous-chip 3.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ingame-hud-levelup-card.is-animating .ingame-hud-levelup-level-chip.current {
  animation: ingame-levelup-current-chip 3.2s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.ingame-hud-levelup-card.is-animating .ingame-hud-levelup-track-fill.previous {
  animation: ingame-levelup-track-previous 3.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.ingame-hud-levelup-card.is-animating .ingame-hud-levelup-track-fill.current {
  animation: ingame-levelup-track-current 3.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.ingame-hud-levelup-card.is-animating .ingame-hud-levelup-track-flare {
  animation: ingame-levelup-track-flare 3.2s ease-out forwards;
}

.ingame-hud-levelup-card.is-animating .ingame-hud-levelup-xp.before {
  animation: ingame-levelup-xp-before 3.2s ease forwards;
}

.ingame-hud-levelup-card.is-animating .ingame-hud-levelup-xp.after {
  animation: ingame-levelup-xp-after 3.2s ease forwards;
}

@keyframes ingame-levelup-card-sheen {
  0%,
  100% {
    opacity: 0;
    transform: translateX(-32%);
  }

  28% {
    opacity: 0.16;
    transform: translateX(0%);
  }

  52% {
    opacity: 0;
    transform: translateX(36%);
  }
}

@keyframes ingame-levelup-previous-chip {
  0%,
  38% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  50%,
  100% {
    opacity: 0;
    transform: translateY(-0.22rem) scale(0.92);
  }
}

@keyframes ingame-levelup-current-chip {
  0%,
  42% {
    opacity: 0;
    transform: translateY(0.24rem) scale(0.92);
  }

  58% {
    opacity: 1;
    transform: translateY(-0.08rem) scale(1.06);
  }

  74%,
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ingame-levelup-track-previous {
  0% {
    opacity: 1;
    transform: scaleX(var(--levelup-prev-fill));
  }

  42% {
    opacity: 1;
    transform: scaleX(1);
  }

  52%,
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

@keyframes ingame-levelup-track-current {
  0%,
  48% {
    opacity: 0;
    transform: scaleX(0);
  }

  58% {
    opacity: 1;
    transform: scaleX(0);
  }

  86%,
  100% {
    opacity: 1;
    transform: scaleX(var(--levelup-current-fill));
  }
}

@keyframes ingame-levelup-track-flare {
  0%,
  18% {
    opacity: 0;
    transform: translateX(-120%);
  }

  38% {
    opacity: 0.9;
    transform: translateX(-12%);
  }

  54% {
    opacity: 0;
    transform: translateX(48%);
  }

  56% {
    opacity: 0;
    transform: translateX(-120%);
  }

  78% {
    opacity: 0.74;
    transform: translateX(8%);
  }

  94%,
  100% {
    opacity: 0;
    transform: translateX(56%);
  }
}

@keyframes ingame-levelup-xp-before {
  0%,
  38% {
    opacity: 1;
    transform: translateY(0);
  }

  52%,
  100% {
    opacity: 0;
    transform: translateY(-0.16rem);
  }
}

@keyframes ingame-levelup-xp-after {
  0%,
  50% {
    opacity: 0;
    transform: translateY(0.16rem);
  }

  64%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.tutorial-prompt-surface {
  background: transparent;
  overflow: hidden;
}

.tutorial-prompt-surface::before,
.tutorial-prompt-surface::after,
.tutorial-prompt-surface #ball-canvas {
  display: none;
}

.tutorial-prompt-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.tutorial-prompt-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(61, 203, 255, 0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(212, 170, 58, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(3, 16, 24, 0.54), rgba(5, 8, 6, 0.68));
  backdrop-filter: blur(14px) saturate(116%);
}

.tutorial-prompt-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 24, 33, 0.96) 0%, rgba(10, 11, 15, 0.96) 100%);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(173, 240, 255, 0.12);
}

.tutorial-prompt-body {
  display: grid;
  gap: 1rem;
}

.tutorial-prompt-kicker {
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8ce7ff;
}

.tutorial-prompt-body h1 {
  font-family: 'Teko', sans-serif;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  line-height: 0.94;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}

.tutorial-prompt-body p {
  color: var(--text-mid);
  line-height: 1.7;
  font-size: 1rem;
}

.tutorial-prompt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tutorial-prompt-chip {
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(140, 231, 255, 0.18);
  background: rgba(0, 0, 0, 0.22);
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  color: var(--cream);
}

.tutorial-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.tutorial-prompt-actions .btn-primary,
.tutorial-prompt-actions .btn-nav {
  min-width: min(220px, 100%);
}

.tutorial-prompt-status {
  min-height: 1.25rem;
}

.pause-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.pause-overview-card {
  padding: 1rem;
  border: 1px solid rgba(184, 144, 42, 0.18);
  background:
    linear-gradient(180deg, rgba(27, 45, 32, 0.52), rgba(12, 16, 12, 0.5)),
    rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pause-overview-card span {
  display: block;
  margin-bottom: 0.35rem;
  font-family: 'Teko', sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

.pause-overview-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}

.pause-overview-card p {
  color: var(--text-mid);
  line-height: 1.5;
}

.pause-overview-shell {
  display: grid;
  gap: 1rem;
  padding-right: 0.2rem;
}

.pause-section {
  display: grid;
  gap: 0.8rem;
}

.pause-section-head,
.pause-reward-group-head,
.pause-xp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.pause-section-head span,
.pause-reward-group-head span,
.pause-xp-head span {
  display: block;
  margin-bottom: 0.25rem;
  font-family: 'Teko', sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

.pause-section-head strong,
.pause-reward-group-head strong,
.pause-xp-head strong {
  display: block;
  font-family: 'Teko', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}

.pause-section-head p,
.pause-reward-group-head p {
  max-width: 30rem;
  color: var(--text-mid);
  line-height: 1.45;
}

.pause-detail-grid,
.pause-xp-grid,
.pause-reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.pause-detail-card,
.pause-xp-card,
.pause-reward-card,
.pause-empty-card {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(184, 144, 42, 0.16);
  background:
    linear-gradient(180deg, rgba(27, 45, 32, 0.46), rgba(12, 16, 12, 0.5)),
    rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pause-detail-card span,
.pause-empty-card span {
  display: block;
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.pause-detail-card strong,
.pause-reward-card strong,
.pause-empty-card strong {
  display: block;
  margin: 0.3rem 0 0.4rem;
  font-family: 'Teko', sans-serif;
  font-size: 1.18rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}

.pause-detail-card p,
.pause-reward-card p,
.pause-xp-meta p {
  color: var(--text-mid);
  line-height: 1.45;
}

.pause-empty-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.3rem;
  min-height: 100%;
}

.pause-empty-card p {
  max-width: 34rem;
  color: var(--text-mid);
  font-size: 0.92rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-transform: none;
 }

.pause-xp-card {
  display: grid;
  gap: 0.65rem;
}

.pause-xp-gain {
  font-family: 'Teko', sans-serif;
  font-size: 2rem;
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
}

.pause-xp-card.weapon {
  border-color: rgba(133, 204, 255, 0.18);
}

.pause-xp-card.ball {
  border-color: rgba(255, 194, 104, 0.22);
}

.pause-xp-card.player {
  border-color: rgba(163, 214, 170, 0.18);
}

.pause-reward-group-list {
  display: grid;
  gap: 0.9rem;
}

.pause-reward-group {
  display: grid;
  gap: 0.7rem;
}

.pause-reward-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.85rem;
}

.pause-reward-qty {
  min-width: 3.8rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(184, 144, 42, 0.18);
  background: rgba(0, 0, 0, 0.28);
  font-family: 'Teko', sans-serif;
  font-size: 1.15rem;
  text-align: center;
  color: var(--cream);
}

.pause-empty-card {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .pause-section-head,
  .pause-reward-group-head,
  .pause-xp-head {
    flex-direction: column;
  }
}

.pause-panel-settings .settings-card:first-child {
  margin-top: 0.2rem;
}

.stat-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(180, 130, 50, 0.14);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  text-align: center;
}

.stat-card .num {
  font-family: 'Teko', sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
}

.stat-card .label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.profile-loadout-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.profile-loadout-card {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-wood);
  border-radius: 2px;
  padding: 1rem;
}

.profile-loadout-head,
.store-category-head,
.inventory-head,
.preview-header,
.toolbar-copy,
.profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.profile-loadout-mode,
.overline {
  font-family: 'Courier Prime', monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

.profile-loadout-lines {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.profile-loadout-lines div,
.preview-details div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--text-mid);
}

.profile-loadout-lines strong,
.preview-details strong {
  color: var(--cream);
}

.profile-actions {
  margin-top: 1rem;
}

.account-hero-card {
  margin-bottom: 1rem;
  overflow: hidden;
}

.account-hero-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background:
    radial-gradient(circle at top left, rgba(212, 170, 58, 0.08), transparent 36%),
    linear-gradient(145deg, rgba(17, 37, 24, 0.9), rgba(14, 11, 8, 0.94));
}

.account-hero-avatar {
  width: 92px;
  height: 92px;
  font-size: 2.4rem;
  flex: 0 0 auto;
}

.account-hero-copy {
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}

.account-hero-name {
  font-family: 'Teko', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
}

.account-hero-username {
  font-family: 'Courier Prime', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

.account-hero-bio {
  max-width: 56rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.account-hero-bio.empty {
  color: var(--text-dim);
}

.account-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.account-hero-chip,
.account-hero-meta .social-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(184, 144, 42, 0.18);
  background: rgba(0, 0, 0, 0.22);
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  color: var(--cream);
}

.account-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

@media (max-width: 860px) {
  .account-hero-shell {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .account-hero-actions,
  .settings-account-preview-actions,
  .account-form-actions {
    justify-content: flex-start;
  }

  .account-form-actions .btn-primary,
  .account-form-actions .btn-nav,
  .settings-account-actions .btn-primary,
  .settings-account-actions .btn-nav {
    min-width: 0;
    width: 100%;
  }
}

.leaderboard-shell {
  display: grid;
  gap: 1rem;
}

.leaderboard-toolbar {
  display: grid;
  gap: 1rem;
}

.leaderboard-filter-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 1;
  min-width: min(680px, 100%);
}

.leaderboard-field {
  display: grid;
  gap: 0.35rem;
}

.leaderboard-field span {
  font-family: 'Teko', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.leaderboard-select {
  width: 100%;
  border: 1px solid rgba(184, 144, 42, 0.24);
  background: rgba(0, 0, 0, 0.26);
  color: var(--cream);
  padding: 0.72rem 0.8rem;
  font: inherit;
}

.leaderboard-table-shell {
  overflow-x: auto;
  border: 1px solid rgba(184, 144, 42, 0.16);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.22);
}

.leaderboard-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.leaderboard-table thead th {
  padding: 0.85rem 0.9rem;
  font-family: 'Teko', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(184, 144, 42, 0.18);
  text-align: left;
}

.leaderboard-table tbody td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(184, 144, 42, 0.12);
  color: var(--cream);
  vertical-align: middle;
}

.leaderboard-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.leaderboard-row-viewer {
  background:
    radial-gradient(circle at top left, rgba(114, 192, 120, 0.12), transparent 35%),
    rgba(0, 0, 0, 0.16);
}

.leaderboard-rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(184, 144, 42, 0.16);
  border: 1px solid rgba(184, 144, 42, 0.26);
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.leaderboard-player-link,
.leaderboard-player-link:visited {
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
}

.leaderboard-player-link:hover {
  color: var(--brass-bright);
}

.leaderboard-empty-cell {
  padding: 1.5rem 1rem;
  color: var(--text-mid);
  text-align: center;
}

.leaderboard-honor-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.leaderboard-honor-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid rgba(184, 144, 42, 0.16);
  border-radius: 4px;
  background:
    radial-gradient(circle at top left, rgba(212, 170, 58, 0.12), transparent 38%),
    rgba(0, 0, 0, 0.2);
  color: inherit;
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.leaderboard-honor-card:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 170, 58, 0.32);
  background:
    radial-gradient(circle at top left, rgba(212, 170, 58, 0.18), transparent 38%),
    rgba(0, 0, 0, 0.28);
}

.leaderboard-honor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.leaderboard-honor-rank {
  font-family: 'Teko', sans-serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--brass-bright);
}

.leaderboard-honor-card strong {
  color: var(--cream);
  font-size: 1rem;
}

.leaderboard-honor-card p {
  color: var(--text-mid);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .leaderboard-filter-grid {
    min-width: 100%;
    grid-template-columns: 1fr;
  }
}

.builder-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.mode-switch,
.sub-switch {
  display: inline-flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.tab-strip-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
}

.tab-strip-scroll::-webkit-scrollbar {
  height: 8px;
}

.tab-strip-scroll::-webkit-scrollbar-thumb {
  background: rgba(184, 144, 42, 0.35);
}

.mode-switch-btn,
.sub-switch-btn {
  border: 1px solid rgba(180, 130, 50, 0.2);
  background: rgba(0, 0, 0, 0.28);
  color: var(--cream-dim);
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}

.mode-switch-btn.active,
.sub-switch-btn.active {
  border-color: var(--brass);
  color: var(--cream);
  background: rgba(184, 144, 42, 0.1);
}

.store-shell,
.loadout-shell {
  display: grid;
  gap: 1.25rem;
}

.store-topbar {
  display: grid;
  gap: 0.9rem;
}

.store-section-switch {
  display: flex;
  flex-wrap: wrap;
}

.store-search-input {
  width: 100%;
  border: 1px solid rgba(180, 130, 50, 0.22);
  background: rgba(0, 0, 0, 0.3);
  color: var(--cream);
  padding: 0.7rem 0.85rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.8rem;
}

.store-search-input::placeholder {
  color: var(--text-dim);
}

.app-modal-root {
  position: fixed;
  inset: 0;
  z-index: 400;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 1, 0.72);
  backdrop-filter: blur(4px);
}

.app-modal-shell {
  position: relative;
  z-index: 1;
  width: min(92vw, 440px);
  margin: 16vh auto 0;
  padding: 1.1rem;
  border: 1px solid rgba(180, 130, 50, 0.26);
  background: linear-gradient(180deg, rgba(39, 21, 8, 0.98) 0%, rgba(21, 14, 6, 0.98) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.52);
}

.app-modal-head {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.7rem;
}

.app-modal-copy {
  color: var(--cream-dim);
  margin-bottom: 0.85rem;
}

.app-modal-input {
  margin-bottom: 0.9rem;
}

.app-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.store-pack-reveal-root {
  position: fixed;
  inset: 0;
  z-index: 420;
}

.store-pack-reveal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(172, 118, 255, 0.18), transparent 34%),
    rgba(4, 2, 6, 0.82);
  backdrop-filter: blur(6px);
}

.store-pack-reveal-shell {
  position: relative;
  z-index: 1;
  width: min(96vw, 1120px);
  max-height: 88vh;
  margin: 5vh auto 0;
  padding: 1.1rem;
  border: 1px solid rgba(172, 118, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(35, 16, 52, 0.98), rgba(15, 10, 24, 0.98));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.52);
  display: grid;
  gap: 1rem;
  overflow: auto;
}

.store-pack-reveal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.store-pack-reveal-head p {
  margin: 0.35rem 0 0;
  color: var(--cream-dim);
}

.store-pack-reveal-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.store-pack-reveal-summary span,
.store-pack-reveal-meta span {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0, 0, 0, 0.28);
  color: var(--cream);
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-pack-reveal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
}

.store-pack-reveal-card {
  position: relative;
  min-height: 220px;
  padding: 0.9rem 0.9rem 2.9rem;
  border: 1px solid rgba(255,255,255,0.14);
  display: grid;
  align-content: space-between;
  gap: 0.7rem;
  overflow: hidden;
}

.store-pack-reveal-copy {
  display: grid;
  gap: 0.35rem;
}

.store-pack-reveal-copy strong {
  font-family: 'Teko', sans-serif;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--cream);
  padding-right: 2.6rem;
}

.store-pack-reveal-copy p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.78rem;
  line-height: 1.45;
}

.store-pack-reveal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-self: end;
}

.store-pack-reveal-actions {
  display: flex;
  justify-content: flex-end;
}

.daily-reward-root {
  position: fixed;
  inset: 0;
  z-index: 410;
}

.daily-reward-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(212, 170, 58, 0.14), transparent 42%),
    rgba(4, 2, 1, 0.8);
  backdrop-filter: blur(6px);
}

.daily-reward-shell {
  position: relative;
  z-index: 1;
  width: min(94vw, 1040px);
  margin: 7vh auto 0;
  padding: 1.2rem;
  border: 1px solid rgba(212, 170, 58, 0.24);
  background:
    radial-gradient(circle at top, rgba(212, 170, 58, 0.12), transparent 46%),
    linear-gradient(180deg, rgba(35, 20, 8, 0.98), rgba(15, 9, 4, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.56);
  display: grid;
  gap: 1rem;
}

.daily-reward-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.daily-reward-head h2 {
  margin: 0.15rem 0 0;
}

.daily-reward-head p {
  margin: 0.35rem 0 0;
  color: var(--cream-dim);
  max-width: 40rem;
}

.daily-reward-streak {
  min-width: 170px;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(212, 170, 58, 0.16);
  background: rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 0.12rem;
  text-align: right;
}

.daily-reward-streak strong {
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  color: var(--cream);
}

.daily-reward-streak span {
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-dim);
}

.daily-reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.daily-reward-card {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  perspective: 1200px;
  cursor: pointer;
}

.daily-reward-card:disabled {
  cursor: default;
}

.daily-reward-card-inner {
  position: relative;
  min-height: 320px;
  transform-style: preserve-3d;
  transition: transform 0.68s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.daily-reward-card.is-revealed .daily-reward-card-inner {
  transform: rotateY(180deg);
}

.daily-reward-card.is-selected .daily-reward-card-inner {
  transform: rotateY(180deg) translateY(-10px);
}

.daily-reward-card-face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 170, 58, 0.22);
  padding: 1rem;
  backface-visibility: hidden;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.daily-reward-card-back {
  display: grid;
  place-content: center;
  gap: 0.35rem;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(212, 170, 58, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(29, 16, 7, 0.98), rgba(10, 7, 3, 0.98));
  color: var(--cream);
}

.daily-reward-card-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #f5d966 0%, #c08c0a 55%, #6d4300 100%);
  color: rgba(0, 0, 0, 0.78);
  font-family: 'Teko', sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.daily-reward-card-front {
  transform: rotateY(180deg);
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.daily-reward-card-kicker {
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-dim);
}

.daily-reward-card-cover {
  min-height: 118px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 54%),
    rgba(0, 0, 0, 0.22);
  font-family: 'Teko', sans-serif;
  font-size: 2.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--cream);
}

.daily-reward-upgrade-art {
  min-height: 118px;
}

.daily-reward-upgrade-art .upgrade-card-cover {
  font-size: 0.72rem;
}

.daily-reward-card-front strong {
  font-family: 'Teko', sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--cream);
}

.daily-reward-card-front p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.84rem;
}

.daily-reward-active {
  display: grid;
  gap: 0.5rem;
}

.daily-reward-active-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.daily-reward-active-chip {
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(212, 170, 58, 0.16);
  background: rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 0.12rem;
}

.daily-reward-active-chip strong {
  color: var(--cream);
  font-size: 0.82rem;
}

.daily-reward-active-chip span {
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-dim);
}

.daily-reward-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
}

.store-premium-discount-note {
  margin-top: 0.45rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(212, 170, 58, 0.16);
  background: rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 0.08rem;
}

.store-premium-discount-note span {
  font-family: 'Courier Prime', monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
  color: var(--text-dim);
}

.store-premium-discount-note strong {
  color: var(--cream);
  font-size: 0.8rem;
}

@media (max-width: 860px) {
  .daily-reward-shell {
    width: min(94vw, 520px);
    margin-top: 4vh;
  }

  .daily-reward-head {
    flex-direction: column;
  }

  .daily-reward-streak {
    width: 100%;
    text-align: left;
  }

  .daily-reward-grid {
    grid-template-columns: 1fr;
  }

  .daily-reward-card-inner {
    min-height: 260px;
  }
}

.store-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.store-feature-panel {
  display: grid;
  gap: 0.9rem;
  grid-template-rows: auto minmax(3.4rem, auto) auto 1fr;
  height: 100%;
  border: 1px solid rgba(180, 130, 50, 0.18);
  background:
    radial-gradient(circle at top left, rgba(212, 170, 58, 0.1), transparent 58%),
    rgba(0, 0, 0, 0.24);
  padding: 1.05rem;
}

.store-feature-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: start;
}

.store-feature-copy {
  color: var(--text-mid);
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.5;
  display: flex;
  align-items: center;
}

.store-feature-summary {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-height: 2rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(180, 130, 50, 0.14);
  background: rgba(0, 0, 0, 0.22);
}

.store-feature-summary strong {
  font-family: 'Teko', sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--cream);
}

.store-feature-summary span {
  color: var(--text-dim);
  font-size: 0.74rem;
  font-family: 'Courier Prime', monospace;
  text-transform: uppercase;
}

.store-feature-list {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.store-feature-chip {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(180, 130, 50, 0.18);
  background:
    radial-gradient(circle at top left, rgba(212, 170, 58, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.28);
  color: var(--cream);
  padding: 0.65rem 0.7rem;
  text-align: left;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.14s ease, transform 0.14s ease, background 0.14s ease;
}

.store-feature-chip:hover,
.store-feature-chip:focus-visible {
  border-color: rgba(212, 170, 58, 0.42);
  transform: translateY(-1px);
  background:
    radial-gradient(circle at top left, rgba(212, 170, 58, 0.18), transparent 55%),
    rgba(0, 0, 0, 0.34);
}

.store-feature-chip-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.store-feature-chip strong {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
}

.store-feature-chip span {
  color: var(--text-mid);
  font-size: 0.74rem;
  font-family: 'Courier Prime', monospace;
  text-transform: uppercase;
}

.premium-page-shell {
  gap: 1rem;
}

.premium-checkout-hero {
  padding: 1.05rem;
  border: 1px solid rgba(180, 130, 50, 0.18);
  background:
    radial-gradient(circle at top left, rgba(212, 170, 58, 0.14), transparent 54%),
    linear-gradient(180deg, rgba(25, 16, 8, 0.94), rgba(10, 8, 5, 0.96));
}

.premium-hero-copy {
  display: grid;
  gap: 0.8rem;
}

.premium-hero-copy > p {
  margin: 0;
  color: var(--text-mid);
  line-height: 1.6;
}

.premium-hero-note {
  display: grid;
  gap: 0.16rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(180, 130, 50, 0.18);
  background: rgba(0, 0, 0, 0.22);
}

.premium-hero-note span,
.premium-pack-checkout span {
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-dim);
}

.premium-hero-note strong {
  font-family: 'Teko', sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--cream);
}

.premium-hero-note p {
  margin: 0.1rem 0 0;
  color: var(--cream-dim);
  line-height: 1.55;
}

.premium-method-grid,
.premium-coupon-grid,
.premium-pack-grid,
.premium-checkout-grid {
  margin-top: 0.95rem;
}

.premium-coupon-card .armory-tags {
  margin-top: auto;
}

.premium-pack-card.is-selected,
.premium-method-card.is-selected {
  border-color: rgba(212, 170, 58, 0.34);
  box-shadow: inset 0 0 0 1px rgba(212, 170, 58, 0.16);
}

.premium-method-card.is-locked {
  opacity: 0.82;
}

.premium-method-actions {
  display: flex;
  justify-content: flex-end;
}

.premium-pack-card {
  align-content: start;
}

.premium-checkout-panel {
  gap: 1rem;
}

.premium-pack-actions {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(180, 130, 50, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 0.85rem;
}

.premium-pack-checkout {
  display: grid;
  gap: 0.18rem;
}

.premium-checkout-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.premium-checkout-summary-item {
  display: grid;
  gap: 0.16rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(180, 130, 50, 0.18);
  background: rgba(0, 0, 0, 0.2);
}

.premium-checkout-summary-item span {
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-dim);
}

.premium-checkout-summary-item strong {
  color: var(--cream);
}

.premium-checkout-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 860px) {
  .premium-method-actions,
  .premium-pack-actions,
  .premium-checkout-actions {
    justify-content: stretch;
    align-items: stretch;
  }

  .premium-method-actions .btn-nav,
  .premium-method-actions .btn-join,
  .premium-pack-actions .btn-nav,
  .premium-pack-actions .btn-join,
  .premium-checkout-actions .btn-join {
    width: 100%;
  }
}

.store-toolbar {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.store-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.store-browse-grid {
  margin-top: 0.95rem;
}

.store-index-card {
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: visible;
}

.store-product-card {
  appearance: none;
  width: 100%;
  display: grid;
  gap: 0.85rem;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(180, 130, 50, 0.18);
  background:
    radial-gradient(circle at top left, rgba(212, 170, 58, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(21, 14, 8, 0.88), rgba(10, 8, 5, 0.94));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.store-product-card:hover,
.store-product-card:focus-visible,
.store-product-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(212, 170, 58, 0.42);
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.34);
  z-index: 5;
}

.store-product-card.owned {
  border-color: rgba(90, 170, 96, 0.28);
}

.store-card-media-wrap {
  position: relative;
  display: grid;
  gap: 0.55rem;
}

.store-card-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.store-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(180, 130, 50, 0.18);
  background: rgba(0, 0, 0, 0.42);
  font-family: 'Courier Prime', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.store-status-pill.accent {
  border-color: rgba(212, 170, 58, 0.32);
  color: var(--cream);
}

.store-card-body {
  display: grid;
  gap: 0.75rem;
}

.store-card-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.store-card-copy h3 {
  margin: 0;
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--cream);
}

.store-card-copy p {
  margin: 0;
  color: var(--text-mid);
  font-size: 0.82rem;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-card-metrics,
.store-hover-metrics,
.store-detail-quickstats {
  display: grid;
  gap: 0.5rem;
}

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

.store-hover-metrics,
.store-detail-quickstats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.store-metric {
  display: grid;
  gap: 0.16rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(180, 130, 50, 0.14);
  background: rgba(0, 0, 0, 0.22);
  min-width: 0;
}

.store-metric span {
  color: var(--text-dim);
  font-size: 0.66rem;
  font-family: 'Courier Prime', monospace;
  text-transform: uppercase;
}

.store-metric strong {
  color: var(--cream);
  font-family: 'Teko', sans-serif;
  font-size: 1.08rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.store-metric.warm {
  background: linear-gradient(180deg, rgba(90, 44, 14, 0.28), rgba(0, 0, 0, 0.2));
}

.store-metric.cool {
  background: linear-gradient(180deg, rgba(22, 54, 86, 0.28), rgba(0, 0, 0, 0.2));
}

.store-card-tags {
  margin-top: 0;
}

.store-card-hover-panel {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 2.9rem;
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem;
  border: 1px solid rgba(212, 170, 58, 0.22);
  background: rgba(8, 6, 4, 0.94);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.store-product-card:hover .store-card-hover-panel,
.store-product-card:focus-visible .store-card-hover-panel,
.store-product-card:focus-within .store-card-hover-panel {
  opacity: 1;
  transform: translateY(0);
}

.store-card-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(180, 130, 50, 0.12);
}

.inventory-shell {
  display: grid;
  gap: 1rem;
}

.inventory-browser-card.is-selected {
  border-color: rgba(212, 170, 58, 0.62);
  box-shadow: 0 0 0 1px rgba(212, 170, 58, 0.28), 0 20px 34px rgba(0, 0, 0, 0.34);
}

.inventory-browser-grid {
  margin-top: 1rem;
}

.inventory-browser-footer {
  justify-content: flex-start;
}

.inventory-toolbar {
  margin-top: 1rem;
}

.inventory-filter-row {
  gap: 0.35rem;
}

.inventory-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.inventory-pagination-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.inventory-detail-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(212, 170, 58, 0.18);
  background: rgba(0, 0, 0, 0.22);
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  color: var(--text-mid);
}

.inventory-detail-values strong {
  color: var(--cream);
}

.inventory-empty-state {
  grid-column: 1 / -1;
}

.store-card-affordance {
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

.store-detail-shell {
  display: grid;
  gap: 1rem;
}

.store-detail-card {
  display: grid;
  gap: 1.05rem;
}

.store-detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.store-detail-media-column,
.store-detail-copy-column {
  display: grid;
  gap: 0.9rem;
}

.store-detail-copy-column {
  align-content: start;
}

.store-detail-copy {
  margin: 0;
  color: var(--text-mid);
  line-height: 1.7;
}

.store-detail-upgrade-art {
  min-height: 220px;
}

.store-detail-icon {
  width: 100%;
  min-height: 240px;
  border-radius: 10px;
  font-size: 3rem;
}

@media (max-width: 980px) {
  .inventory-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .inventory-layout .preview-column {
    position: static;
    max-height: none;
    max-width: none;
    padding-right: 0;
  }

  .inventory-pagination {
    justify-content: center;
  }
}

.store-ball-preview .preview-stage {
  padding: 0;
  min-height: 180px;
}

.store-media {
  min-width: 0;
}

.store-media-card {
  width: 100%;
}

.store-media-chip {
  width: 72px;
}

.store-media-detail {
  width: 100%;
}

.store-preview-shell,
.store-media-ball .preview-stage,
.store-upgrade-media {
  border: 1px solid rgba(180, 130, 50, 0.2);
  background:
    radial-gradient(circle at top, rgba(212, 170, 58, 0.16), transparent 56%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.46));
}

.store-preview-shell {
  min-height: 150px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.store-media-card .store-preview-shell,
.store-media-card .preview-stage,
.store-media-card .store-upgrade-media {
  min-height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
}

.store-media-card .store-upgrade-media {
  aspect-ratio: 5 / 4;
}

.store-media-chip .store-preview-shell,
.store-media-chip .preview-stage,
.store-media-chip .store-upgrade-media {
  min-height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}

.store-media-detail .store-preview-shell,
.store-media-detail .preview-stage,
.store-media-detail .store-upgrade-media {
  min-height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}

.store-media-detail .store-upgrade-media {
  aspect-ratio: 5 / 4;
}

.store-media-ball .preview-stage {
  padding: 0.45rem;
}

.store-preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-palette-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  padding: 0.45rem;
  align-content: center;
  height: 100%;
}

.store-palette-cell {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.14s ease;
}

.store-palette-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  color: var(--text-mid);
  font-size: 0.74rem;
  font-family: 'Courier Prime', monospace;
}

.store-media-chip .store-palette-grid {
  gap: 0.18rem;
  padding: 0.28rem;
}

.store-media-chip .store-palette-cell {
  border-radius: 3px;
}

.store-media-detail .store-palette-grid {
  gap: 0.45rem;
  padding: 0.7rem;
}

.store-upgrade-media {
  position: relative;
  display: grid;
  align-content: end;
  padding: 0.8rem;
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,0.22), transparent 34%),
    linear-gradient(150deg, rgba(255,255,255,0.08), rgba(0,0,0,0.28)),
    linear-gradient(180deg, rgba(18, 16, 14, 0.92), rgba(6, 6, 6, 0.98));
}

.store-pack-media {
  overflow: hidden;
}

.store-pack-stack {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.store-pack-stack span {
  position: absolute;
  inset: 18% 20% 28% 16%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.12)),
    rgba(0, 0, 0, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transform: rotate(-7deg);
}

.store-pack-stack span:last-child {
  inset: 14% 16% 24% 22%;
  transform: rotate(8deg);
}

.store-pack-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  min-width: 2.1rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0, 0, 0, 0.48);
  color: var(--cream);
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
}

.store-upgrade-sheen {
  position: absolute;
  inset: -18% 18% auto auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 68%);
  pointer-events: none;
}

.store-upgrade-copy {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 2.6rem;
  display: grid;
  gap: 0.12rem;
  z-index: 1;
}

.store-upgrade-copy strong {
  font-family: 'Teko', sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--cream);
}

.store-upgrade-copy span {
  color: rgba(255,255,255,0.72);
  font-size: 0.66rem;
  font-family: 'Courier Prime', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.store-media-chip .store-upgrade-copy {
  left: 0.5rem;
  right: 0.5rem;
  bottom: 1.9rem;
}

.store-media-chip .store-upgrade-copy strong,
.store-media-chip .store-upgrade-copy span {
  display: none;
}

.store-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.7rem;
}

.store-detail-block {
  display: grid;
  gap: 0.8rem;
  padding: 0.95rem;
  border: 1px solid rgba(180, 130, 50, 0.16);
  background: rgba(0, 0, 0, 0.18);
}

.store-detail-block-head {
  display: grid;
  gap: 0.18rem;
}

.store-detail-block-head h3 {
  margin: 0;
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  color: var(--cream);
}

.store-detail-grid div {
  display: grid;
  gap: 0.18rem;
  border: 1px solid rgba(180, 130, 50, 0.18);
  background: rgba(0, 0, 0, 0.18);
  padding: 0.7rem 0.8rem;
}

.store-detail-grid span {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-family: 'Courier Prime', monospace;
  text-transform: uppercase;
}

.store-detail-grid strong {
  color: var(--cream);
  font-family: 'Teko', sans-serif;
  font-size: 1.2rem;
}

.store-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.store-detail-effects {
  border: 1px solid rgba(180, 130, 50, 0.18);
  background: rgba(0, 0, 0, 0.18);
  padding: 0.8rem;
}

.store-purchase-panel {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(180, 130, 50, 0.18);
  background:
    radial-gradient(circle at top right, rgba(212, 170, 58, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.24);
}

.store-purchase-price {
  font-family: 'Teko', sans-serif;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--cream);
}

.store-purchase-copy {
  margin: 0;
  color: var(--text-mid);
  font-size: 0.82rem;
  line-height: 1.55;
}

.store-purchase-action {
  display: flex;
  justify-content: flex-start;
}

.store-purchase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-purchase-action .btn-join,
.store-purchase-action .btn-nav,
.store-purchase-action .armory-owned {
  min-width: 150px;
  justify-content: center;
}

.store-section-summary-bar {
  display: grid;
  align-items: center;
  min-height: 56px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(180, 130, 50, 0.16);
  background: rgba(0, 0, 0, 0.2);
}

.store-section-summary-copy {
  display: grid;
  gap: 0.12rem;
}

.store-section-summary-copy strong {
  color: var(--cream);
  font-family: 'Teko', sans-serif;
  font-size: 1.25rem;
  line-height: 1;
}

.store-section-summary-copy span {
  color: var(--text-mid);
  font-size: 0.78rem;
}

.store-category,
.loadout-focus,
.inventory-panel,
.preview-card {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-wood);
  border-radius: 2px;
  padding: 1rem;
}

.store-category-head h2,
.inventory-head h2 {
  font-family: 'Teko', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
}

.armory-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 0.9rem;
}

.armory-card,
.inventory-card,
.slot-card {
  border-radius: 2px;
  border: 1px solid rgba(180, 130, 50, 0.18);
  background: rgba(0, 0, 0, 0.3);
}

.armory-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1rem;
}

.armory-card.owned {
  border-color: rgba(90, 170, 96, 0.3);
}

.armory-icon,
.inventory-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 37% 33%, #f6d650 0%, #c08c0a 55%, #785004 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.72);
  font-family: 'Teko', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.armory-icon.store-detail-icon {
  width: 100%;
  height: auto;
  min-height: 240px;
  border-radius: 10px;
  font-size: 3rem;
}

.armory-copy h3,
.inventory-name {
  font-family: 'Teko', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.armory-copy p,
.inventory-copy,
.slot-subtitle,
.feature-callout,
.inventory-summary,
.toolbar-copy {
  color: var(--text-mid);
  font-size: 0.82rem;
}

.armory-tags,
.armory-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.armory-tags span {
  border: 1px solid rgba(180, 130, 50, 0.2);
  padding: 0.12rem 0.4rem;
  border-radius: 1px;
  font-family: 'Courier Prime', monospace;
  font-size: 0.63rem;
  text-transform: uppercase;
  color: var(--text-mid);
}

.weapon-mode-switch {
  margin-top: 0.7rem;
}

.weapon-mode-switch .sub-switch-btn {
  font-size: 0.82rem;
  padding: 0.28rem 0.72rem;
}

.armory-stats div {
  display: flex;
  gap: 0.35rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  color: var(--text-dim);
}

.armory-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.store-index-card .armory-copy {
  min-width: 0;
}

.store-index-card .armory-copy p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-index-card .armory-meta {
  padding-top: 0.2rem;
  border-top: 1px solid rgba(180, 130, 50, 0.12);
}

.upgrade-card .armory-tags {
  margin-top: 0.35rem;
  gap: 0.3rem;
  max-height: 3.8rem;
  overflow: auto;
  padding-right: 0.15rem;
}

.upgrade-card .armory-tags span {
  max-width: 100%;
}

.upgrade-card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.45rem;
  align-items: start;
  min-height: 2rem;
}

.upgrade-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  width: 100%;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.upgrade-card-actions .slot-action {
  width: 100%;
  min-width: 0;
  padding: 0.42rem 0.3rem;
  font-size: 0.63rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upgrade-library-card:hover .upgrade-card-actions,
.upgrade-library-card:focus-within .upgrade-card-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.upgrade-drain-pill {
  justify-self: start;
  padding: 0.16rem 0.45rem;
  border: 1px solid rgba(212, 170, 58, 0.28);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 999px;
}

.armory-price,
.armory-owned {
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.armory-price {
  color: var(--brass-bright);
}

.armory-owned {
  color: var(--success);
}

.loadout-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  align-items: start;
}

.loadout-column,
.preview-column {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.loadout-column {
  overflow: hidden;
}

.preview-column {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 1rem);
  overflow: auto;
  padding-right: 0.35rem;
  width: 100%;
  max-width: 360px;
  justify-self: end;
}

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

.perk-grid,
.inventory-grid,
.cosmetic-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.slot-card,
.inventory-card {
  text-align: left;
  padding: 0.9rem;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, background 0.12s;
}

.loadout-focus {
  display: grid;
  gap: 1rem;
}

.slot-card:hover,
.inventory-card:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 170, 58, 0.42);
}

.slot-card.active,
.inventory-card.active {
  border-color: var(--brass);
  background: rgba(184, 144, 42, 0.1);
}

.slot-card {
  position: relative;
  display: grid;
  gap: 0.35rem;
  min-height: 130px;
  overflow: hidden;
  align-items: stretch;
}

.slot-card.empty strong {
  color: var(--text-mid);
}

.slot-card-main {
  display: grid;
  gap: 0.35rem;
  transition: padding-right 0.14s ease;
}

.slot-card-actions {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  bottom: 0.45rem;
  width: 132px;
  display: grid;
  align-content: center;
  gap: 0.5rem;
  padding: 0.9rem 0 0.9rem 0.9rem;
  border-left: 1px solid rgba(212, 170, 58, 0.14);
  background: linear-gradient(90deg, transparent, rgba(8, 8, 8, 0.7) 24%, rgba(8, 8, 8, 0.88) 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(112%);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.slot-card:hover .slot-card-main,
.slot-card:focus-within .slot-card-main {
  padding-right: 132px;
}

.slot-card:hover .slot-card-actions,
.slot-card:focus-within .slot-card-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.slot-action,
.inventory-back {
  appearance: none;
  border: 1px solid rgba(212, 170, 58, 0.35);
  background: rgba(18, 10, 3, 0.88);
  color: var(--cream);
  padding: 0.5rem 0.75rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, transform 0.12s;
}

.slot-action:hover,
.inventory-back:hover {
  transform: translateY(-1px);
  border-color: var(--brass);
  background: rgba(38, 20, 8, 0.92);
}

.slot-action:disabled,
.inventory-back:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.slot-action-primary {
  background: linear-gradient(135deg, rgba(184, 144, 42, 0.95), rgba(118, 74, 14, 0.95));
  color: #140d04;
  font-weight: 700;
}

.slot-card.empty .slot-action-primary {
  color: #140d04;
}

.slot-label {
  display: block;
  font-family: 'Courier Prime', monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.slot-card strong,
.inventory-card strong {
  display: block;
  font-family: 'Teko', sans-serif;
  font-size: 1.15rem;
  color: var(--cream);
}

.inventory-panel {
  display: grid;
  gap: 1rem;
}

.inventory-panel.picker-open {
  min-height: 420px;
  align-content: start;
}

.compact-tab-panel {
  gap: 0.6rem;
}

.compact-tab-panel.picker-open {
  min-height: 0;
}

.customize-style-strip {
  display: grid;
  gap: 0.5rem;
}

.customize-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.customize-panel {
  min-height: 0;
}

.upgrade-workspace {
  align-content: start;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: min(168vh, 2120px);
  max-height: min(168vh, 2120px);
  overflow: hidden;
}

.upgrade-management-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 1rem;
}

.mods-toolbar {
  align-items: center;
}

.mods-filter-row {
  display: grid;
  gap: 0.6rem;
}

.mods-shell {
  display: grid;
  gap: 1rem;
}

.mods-power-pill {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(212, 170, 58, 0.32);
  background: rgba(18, 10, 3, 0.88);
  color: var(--brass-bright);
  font-family: 'Courier Prime', monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.mods-summary-grid,
.mods-workspace {
  display: grid;
  gap: 1rem;
}

.mods-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.mod-summary-card {
  min-height: 0;
}

.mods-layout {
  grid-template-columns: minmax(0, 1.75fr) minmax(340px, 1fr);
  align-items: stretch;
  min-height: 0;
}

.mods-browser-panel,
.mods-detail-panel {
  min-height: 0;
}

.mods-browser-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 72vh;
  max-height: 72vh;
  overflow: hidden;
}

.mods-detail-panel {
  overflow: auto;
}

.mods-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  align-content: start;
  overflow: auto;
  padding-right: 0.35rem;
}

.mods-stack-card,
.mods-target-card {
  align-content: start;
  text-align: left;
}

.mods-stack-card {
  cursor: pointer;
  min-height: 0;
}

.mods-stack-card .upgrade-card-art,
.mods-target-card .upgrade-card-art {
  min-height: 92px;
}

.mods-card-footer {
  width: 100%;
  border: 1px solid rgba(212, 170, 58, 0.35);
  background: rgba(18, 10, 3, 0.88);
  color: var(--cream);
  padding: 0.5rem 0.75rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.mods-placement-tags {
  margin-top: 0.55rem;
}

.mods-inline-actions,
.mods-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mods-inline-actions .slot-action,
.mods-detail-actions .slot-action {
  flex: 1 1 140px;
}

.mods-detail-panel {
  align-content: start;
}

.mods-target-panel {
  display: grid;
  gap: 0.9rem;
}

.mods-target-list {
  display: grid;
  gap: 0.75rem;
  max-height: 42vh;
  overflow: auto;
  padding-right: 0.25rem;
}

.mods-quantity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.mods-quantity-input {
  width: 104px;
}

.inventory-grid {
  min-height: 180px;
}

.inventory-card {
  display: grid;
  gap: 0.45rem;
}

.inventory-empty {
  display: grid;
  gap: 0.75rem;
  align-content: center;
  justify-items: start;
  min-height: 180px;
}

.inventory-icon {
  width: 42px;
  height: 42px;
  font-size: 1rem;
}

.weapon-inspector {
  display: grid;
  gap: 0.9rem;
}

.upgrade-board {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(212, 170, 58, 0.16);
  align-content: start;
  min-height: 0;
}

.upgrade-board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  justify-content: stretch;
  align-content: start;
  overflow: visible;
  min-height: 0;
  max-height: none;
  padding: 0 0.25rem 0.2rem 0;
}

.upgrade-slot-tile {
  appearance: none;
  border: 1px solid rgba(212, 170, 58, 0.2);
  background: rgba(0, 0, 0, 0.22);
  color: var(--cream);
  padding: 0.45rem;
  text-align: left;
  display: block;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, transform 0.12s;
  min-height: 132px;
  width: 100%;
  overflow: visible;
  position: relative;
}

.upgrade-slot-tile:hover,
.upgrade-slot-tile.active {
  transform: translateY(-1px);
  border-color: rgba(212, 170, 58, 0.48);
  background: rgba(184, 144, 42, 0.12);
}

.upgrade-slot-tile.inactive {
  border-color: rgba(176, 112, 112, 0.24);
}

.upgrade-slot-tile span,
.upgrade-slot-tile em {
  font-family: 'Courier Prime', monospace;
  font-size: 0.64rem;
  color: var(--text-dim);
  font-style: normal;
  text-transform: uppercase;
}

.upgrade-card-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(144px, 144px);
  gap: 0.35rem;
  justify-content: start;
  align-content: start;
  min-height: auto;
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0 0.2rem 0.35rem 0;
}

.slot-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.upgrade-library-card {
  cursor: grab;
  overflow: visible;
  position: relative;
}

.upgrade-stash-dropzone {
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border: 1px dashed rgba(212, 170, 58, 0.35);
  background: rgba(0, 0, 0, 0.24);
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier Prime', monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.upgrade-card {
  grid-template-columns: 1fr;
  gap: 0.55rem;
  padding: 0.65rem;
  border-radius: 12px 12px 10px 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.12)),
    linear-gradient(160deg, rgba(22, 18, 12, 0.98), rgba(7, 7, 7, 0.98));
  border: 2px solid rgba(236, 214, 173, 0.35);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  align-content: start;
  min-height: 128px;
  overflow: hidden;
  position: relative;
  transition: transform 0.14s ease, box-shadow 0.14s ease, min-height 0.14s ease;
  z-index: 1;
}

.upgrade-card-art {
  min-height: 74px;
  border-radius: 8px;
  position: relative;
  border: 1px solid rgba(255, 248, 230, 0.18);
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,0.2), transparent 36%),
    linear-gradient(155deg, rgba(255,255,255,0.08), rgba(0,0,0,0.3)),
    linear-gradient(180deg, rgba(28, 24, 20, 0.95), rgba(10, 10, 10, 0.96));
  overflow: hidden;
}

.upgrade-card-polarity,
.upgrade-card-drain,
.upgrade-card-cover {
  position: absolute;
}

.upgrade-card-drain {
  top: 0.55rem;
  right: 2.75rem;
  min-width: 1.9rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255,255,255,0.14);
  font-family: 'Courier Prime', monospace;
  font-size: 0.62rem;
  color: var(--brass-bright);
  z-index: 2;
}

.upgrade-card-polarity {
  top: 0.55rem;
  right: 0.55rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255,255,255,0.16);
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  color: var(--cream);
  z-index: 2;
}

.upgrade-card-polarity.neutral {
  color: var(--cream);
  border-color: rgba(255,255,255,0.16);
}

.upgrade-card-polarity.match {
  color: #98f0a7;
  border-color: rgba(152, 240, 167, 0.62);
  box-shadow: 0 0 10px rgba(88, 214, 111, 0.22);
}

.upgrade-card-polarity.conflict {
  color: #ff9c9c;
  border-color: rgba(255, 156, 156, 0.62);
  box-shadow: 0 0 10px rgba(204, 84, 84, 0.2);
}

.upgrade-card-cover {
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.42);
  font-family: 'Courier Prime', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.72);
  text-align: center;
}

.upgrade-card-copy {
  display: grid;
  gap: 0.35rem;
  min-height: 0;
}

.upgrade-card-copy h3 {
  margin: 0;
}

.upgrade-card-copy p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.25;
  max-height: none;
  overflow: visible;
  padding-right: 0.1rem;
}

.upgrade-effect-list {
  display: grid;
  gap: 0.16rem;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding-right: 0.1rem;
}

.upgrade-effect-list span {
  font-family: 'Courier Prime', monospace;
  font-size: 0.64rem;
  line-height: 1.2;
  color: var(--cream);
}

.upgrade-card-hover-copy {
  display: grid;
  gap: 0.3rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.14s ease, max-height 0.14s ease;
}

.upgrade-card-collapsed:hover,
.upgrade-slot-tile:hover .upgrade-card-collapsed,
.upgrade-card-collapsed:focus-within {
  min-height: 248px;
  transform: translateY(-18px) scale(1.015);
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  z-index: 8;
}

.upgrade-card-collapsed:hover .upgrade-card-art,
.upgrade-slot-tile:hover .upgrade-card-collapsed .upgrade-card-art,
.upgrade-card-collapsed:focus-within .upgrade-card-art {
  min-height: 118px;
}

.upgrade-card-collapsed:hover .upgrade-card-hover-copy,
.upgrade-slot-tile:hover .upgrade-card-collapsed .upgrade-card-hover-copy,
.upgrade-card-collapsed:focus-within .upgrade-card-hover-copy {
  max-height: 140px;
  opacity: 1;
}

.upgrade-library-toolbar {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  align-self: start;
}

.upgrade-library-toolbar .store-search-input {
  width: 220px;
  max-width: 220px;
  min-height: 30px;
  padding: 0.24rem 0.5rem;
  font-size: 0.68rem;
  line-height: 1.1;
}

.upgrade-library-toolbar .store-filter-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
}

.upgrade-library-toolbar .sub-switch-btn {
  font-size: 0.78rem;
  line-height: 1;
  padding: 0.14rem 0.38rem;
  min-height: 28px;
  min-width: 2rem;
}

.upgrade-card-list .upgrade-card {
  min-height: 78px;
  padding: 0.38rem;
}

.upgrade-card-list .upgrade-card-art {
  min-height: 38px;
}

.upgrade-card-list .upgrade-card-copy {
  gap: 0.14rem;
}

.upgrade-card-list .upgrade-card-copy h3 {
  font-size: 0.82rem;
  line-height: 1;
}

.upgrade-card-list .armory-tags {
  margin-top: 0.05rem;
  gap: 0.15rem;
}

.upgrade-card-list .armory-tags span {
  font-size: 0.54rem;
  padding: 0.08rem 0.28rem;
}

.upgrade-card-list .upgrade-card-footer {
  min-height: 0;
  gap: 0;
}

.upgrade-card-list .upgrade-card-collapsed:hover,
.upgrade-card-list .upgrade-card-collapsed:focus-within {
  min-height: 188px;
  transform: translateY(-10px) scale(1.008);
}

.upgrade-card-list .upgrade-card-collapsed:hover .upgrade-card-art,
.upgrade-card-list .upgrade-card-collapsed:focus-within .upgrade-card-art {
  min-height: 78px;
}

.upgrade-card-list .upgrade-card-collapsed:hover .upgrade-card-hover-copy,
.upgrade-card-list .upgrade-card-collapsed:focus-within .upgrade-card-hover-copy {
  max-height: 88px;
}

.upgrade-slot-card {
  min-height: 100%;
  padding: 0.45rem;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: start;
}

.upgrade-slot-copy {
  display: grid;
  gap: 0.22rem;
  min-height: 0;
}

.upgrade-slot-copy strong,
.upgrade-slot-empty strong {
  font-family: 'Teko', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
}

.upgrade-slot-copy span,
.upgrade-slot-empty span,
.upgrade-slot-copy em,
.upgrade-slot-empty em {
  font-family: 'Courier Prime', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-style: normal;
}

.upgrade-slot-copy em {
  margin-top: 0.1rem;
}

.upgrade-slot-empty {
  min-height: 100%;
  border: 1px dashed rgba(212, 170, 58, 0.2);
  border-radius: 10px;
  display: grid;
  place-content: center;
  gap: 0.25rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.18);
}

.upgrade-rarity-common {
  background:
    linear-gradient(180deg, rgba(249, 223, 191, 0.1), rgba(0,0,0,0.14)),
    linear-gradient(155deg, #8a5a33, #24150c);
}

.upgrade-rarity-uncommon {
  background:
    linear-gradient(180deg, rgba(243, 246, 252, 0.12), rgba(0,0,0,0.14)),
    linear-gradient(155deg, #8d97ac, #262c39);
}

.upgrade-rarity-rare {
  background:
    linear-gradient(180deg, rgba(255, 243, 198, 0.14), rgba(0,0,0,0.12)),
    linear-gradient(155deg, #b88b2f, #34220b);
}

.upgrade-rarity-epic {
  background:
    linear-gradient(180deg, rgba(246, 229, 255, 0.08), rgba(0,0,0,0.12)),
    linear-gradient(155deg, #6d3f82, #1e1224);
}

.upgrade-rarity-legendary {
  background:
    linear-gradient(180deg, rgba(218, 189, 255, 0.16), rgba(0,0,0,0.12)),
    linear-gradient(155deg, #7b3fc4, #1f1237);
}

.upgrade-duplicate-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
}

.upgrade-duplicate-chip {
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  display: grid;
  gap: 0.2rem;
}

.upgrade-duplicate-chip strong {
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  color: var(--cream);
}

.upgrade-duplicate-chip span {
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-mid);
}

.ball-inspector .preview-stage {
  padding: 0.5rem 0 1rem;
}

.weapon-inspector-copy {
  color: var(--text-mid);
  font-size: 0.84rem;
}

.weapon-preview-media {
  border: 1px solid rgba(180, 130, 50, 0.22);
  background:
    radial-gradient(circle at top, rgba(212, 170, 58, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.46));
  min-height: 180px;
  display: grid;
  place-items: center;
}

.weapon-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.weapon-preview-placeholder {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
  color: var(--text-mid);
  padding: 0.85rem;
}

.store-preview-placeholder strong {
  color: var(--cream);
}

.weapon-preview-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 37% 33%, #f6d650 0%, #c08c0a 55%, #785004 100%);
  color: rgba(0, 0, 0, 0.72);
  font-family: 'Teko', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.weapon-inspector-grid,
.weapon-preview-meta,
.weapon-damage-list {
  display: grid;
  gap: 0.55rem;
}

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

.weapon-inspector-grid div,
.weapon-preview-meta div,
.weapon-damage-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-mid);
}

.weapon-inspector-grid strong,
.weapon-preview-meta strong,
.weapon-damage-list strong {
  color: var(--cream);
  overflow-wrap: anywhere;
}

.comparison-grid div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.stat-delta {
  font-style: normal;
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
}

.stat-delta.positive {
  color: #78cc78;
}

.stat-delta.negative {
  color: #c87070;
}

.stat-delta.neutral {
  color: var(--text-dim);
}

.weapon-inspector-tags {
  margin-top: -0.1rem;
}

.preview-stage {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

.preview-stage-card {
  padding: 0.4rem;
}

.preview-stage-chip {
  padding: 0.15rem;
}

.preview-stage-detail {
  padding: 0.65rem;
}

.preview-stage-card .preview-sphere {
  width: 124px;
  height: 124px;
}

.preview-stage-chip .preview-sphere {
  width: 70px;
  height: 70px;
}

.preview-stage-chip .weapon-preview-meta,
.preview-stage-card .weapon-preview-meta {
  display: none;
}

.preview-sphere {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6d650 0%, #c08c0a 56%, #785004 100%);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), inset 0 8px 20px rgba(255, 255, 255, 0.18);
  position: relative;
}

.preview-sphere::after {
  content: '';
  position: absolute;
  inset: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.preview-stage-card .preview-sphere::after {
  inset: 25px;
}

.preview-stage-chip .preview-sphere::after {
  inset: 14px;
}

.preview-sphere.mp-mode {
  background: radial-gradient(circle at 35% 30%, #f6d650 0%, #c08c0a 56%, #785004 100%);
}

.preview-sphere.sp-mode {
  background: radial-gradient(circle at 35% 30%, #f5c9b6 0%, #b94c34 58%, #6d2218 100%);
}

.preview-sphere.ball-preview-striker {
  background: radial-gradient(circle at 35% 30%, #f6d650 0%, #c08c0a 56%, #785004 100%);
}

.preview-sphere.ball-preview-bulwark {
  background: radial-gradient(circle at 35% 30%, #8aa4d8 0%, #445f9c 58%, #1d2d52 100%);
}

.preview-sphere.ball-preview-surge {
  background: radial-gradient(circle at 35% 30%, #f7f1b6 0%, #7dd8d0 48%, #1a6f7a 100%);
}

.preview-sphere.ball-preview-zephyr {
  background: radial-gradient(circle at 35% 30%, #f6fff9 0%, #7af0d2 42%, #17736a 100%);
}

.preview-details {
  display: grid;
  gap: 0.5rem;
}

.feature-callout,
.auth-error {
  padding: 0.9rem 1rem;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(180, 130, 50, 0.18);
}

.pve-graph-intro {
  max-width: 52rem;
}

.pve-graph-shell {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.35rem;
}

.pve-graph-stage {
  position: relative;
  min-width: 100%;
  min-height: 18rem;
}

.pve-graph-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pve-graph-path {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.9;
}

.pve-graph-path.available {
  stroke: rgba(214, 171, 77, 0.95);
}

.pve-graph-path.completed {
  stroke: rgba(127, 201, 149, 0.95);
}

.pve-graph-path.locked {
  stroke: rgba(128, 128, 128, 0.55);
}

.pve-node {
  position: absolute;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 0.18rem;
  padding: 0.7rem 0.8rem;
  text-align: left;
  border: 1px solid rgba(214, 171, 77, 0.24);
  background: linear-gradient(180deg, rgba(27, 20, 15, 0.97), rgba(12, 9, 7, 0.96));
  color: var(--cream);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
  overflow: hidden;
}

.pve-node:hover {
  transform: translateY(-2px);
  border-color: rgba(241, 204, 116, 0.52);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
}

.pve-node.active {
  border-color: rgba(245, 214, 135, 0.92);
  box-shadow: 0 0 0 1px rgba(245, 214, 135, 0.3), 0 22px 38px rgba(0, 0, 0, 0.42);
}

.pve-node.available {
  background: linear-gradient(180deg, rgba(48, 32, 15, 0.98), rgba(16, 11, 8, 0.97));
}

.pve-node.completed {
  border-color: rgba(107, 184, 130, 0.58);
  background: linear-gradient(180deg, rgba(27, 48, 31, 0.98), rgba(10, 20, 13, 0.97));
}

.pve-node.locked {
  border-color: rgba(126, 126, 126, 0.18);
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.96), rgba(11, 11, 11, 0.95));
  color: rgba(240, 231, 216, 0.82);
}

.pve-node-kicker,
.pve-node-status {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
}

.pve-node-kicker {
  color: var(--brass);
}

.pve-node.locked .pve-node-kicker {
  color: rgba(200, 200, 200, 0.8);
}

.pve-node strong {
  font-family: 'Teko', sans-serif;
  font-size: 1.22rem;
  letter-spacing: 0.03em;
  line-height: 0.95;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.pve-node-meta {
  color: var(--text-mid);
  font-size: 0.74rem;
  line-height: 1.1;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.pve-node-status {
  margin-top: auto;
  color: var(--text-mid);
  align-self: end;
}

@media (max-width: 1180px) {
  .loadout-layout {
    grid-template-columns: 1fr;
  }

  .preview-column {
    order: -1;
    position: static;
    max-height: none;
    max-width: none;
    justify-self: stretch;
    padding-right: 0;
  }
}

@media (max-width: 820px) {
  .store-feature-chip {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .store-media-chip {
    width: 72px;
  }

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

  .store-media-detail .store-preview-shell,
  .store-media-detail .preview-stage,
  .store-media-detail .store-upgrade-media {
    aspect-ratio: 4 / 3;
  }

  .store-card-hover-panel {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-top: -0.15rem;
  }

  .store-card-metrics,
  .store-hover-metrics,
  .store-detail-quickstats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pve-node {
    width: 180px !important;
  }
}

.auth-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--wood-mid);
  border: 1px solid var(--border-wood);
  border-radius: 3px;
  padding: 2.2rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 200, 60, 0.06);
}

.auth-card h2 {
  font-family: 'Teko', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.auth-card > p {
  font-style: italic;
  color: var(--text-mid);
  font-size: 0.85rem;
  margin-bottom: 1.4rem;
}

.auth-card input::placeholder {
  color: rgba(214, 194, 160, 0.56);
}

.auth-card input:focus::placeholder {
  color: transparent;
}

.form-group {
  margin-bottom: 0.82rem;
}

.auth-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-mid);
}

.auth-alt-form {
  margin-top: 0.75rem;
}

.auth-alt-button {
  width: 100%;
  text-align: center;
}

.auth-link a,
a {
  color: var(--brass-dim);
  text-decoration: none;
}

.auth-link a:hover,
a:hover {
  color: var(--brass);
}

.admin-wrap {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-header h1 {
  font-family: 'Teko', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-header p {
  color: var(--text-mid);
  max-width: 48rem;
}

.admin-table-wrap {
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--border-wood);
  border-radius: 3px;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.45);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.admin-table th,
.admin-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(180, 130, 50, 0.12);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(71, 38, 18, 0.75);
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(180, 130, 50, 0.22);
  border-radius: 999px;
  color: var(--text-mid);
  font-size: 0.78rem;
}

.admin-pill-success {
  color: var(--success);
  border-color: rgba(114, 192, 120, 0.28);
}

.admin-release-btn {
  width: 100%;
}

.admin-panel {
  margin-top: 1.25rem;
  padding: 1.1rem;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--border-wood);
  border-radius: 3px;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.28);
}

.admin-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.admin-section-head h2 {
  font-family: 'Teko', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-section-head p {
  color: var(--text-mid);
  max-width: 52rem;
}

.admin-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-search-form input {
  min-width: 0;
}

.admin-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.admin-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  background: rgba(71, 38, 18, 0.38);
  border: 1px solid rgba(180, 130, 50, 0.18);
  border-radius: 3px;
}

.admin-kpi span,
.admin-kpi small {
  color: var(--text-mid);
}

.admin-kpi strong {
  font-family: 'Teko', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--cream);
}

.admin-split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
}

.admin-form-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
  background: rgba(71, 38, 18, 0.32);
  border: 1px solid rgba(180, 130, 50, 0.18);
  border-radius: 3px;
}

.admin-form-card h3 {
  font-family: 'Teko', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-form-card p,
.admin-form-card label {
  color: var(--text-mid);
}

.admin-empty {
  padding: 1rem;
  color: var(--text-mid);
  border: 1px dashed rgba(180, 130, 50, 0.18);
  border-radius: 3px;
  background: rgba(71, 38, 18, 0.2);
}

@media (max-width: 720px) {
  .admin-search-form {
    grid-template-columns: 1fr;
  }
}

#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  padding: 0.58rem 1rem;
  border-radius: 2px;
  font-family: 'Courier Prime', monospace;
  font-size: 0.76rem;
  animation: slide-in 0.2s ease, fade-out 0.3s ease 2.5s forwards;
}

.toast.success {
  background: var(--wood-mid);
  border: 1px solid rgba(80, 160, 80, 0.28);
  border-left: 3px solid #5aaa60;
  color: #78cc78;
}

.toast.error {
  background: var(--wood-mid);
  border: 1px solid rgba(176, 40, 32, 0.28);
  border-left: 3px solid var(--red);
  color: #c87070;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
    transform: translateX(12px);
  }
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-dim);
  font-family: 'Courier Prime', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mt-8 {
  margin-top: 2rem;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--wood-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--wood-panel);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--wood-light);
}

@media (max-width: 900px) {
  .landing-hero,
  .landing-split,
  .landing-mode-grid,
  .landing-feature-grid,
  .landing-cta-panel {
    grid-template-columns: 1fr;
  }

  .landing-metrics {
    grid-template-columns: 1fr;
  }

  .loadout-layout {
    grid-template-columns: 1fr;
  }

  .customize-workspace {
    grid-template-columns: 1fr;
  }

  .mods-summary-grid,
  .mods-workspace,
  .mods-layout {
    grid-template-columns: 1fr;
  }

  .mods-browser-panel {
    min-height: auto;
    max-height: none;
  }

  .mods-stack-grid,
  .mods-target-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .preview-column {
    order: -1;
    position: static;
    max-height: none;
  }

  .upgrade-management-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  nav {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-shell {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav-primary {
    order: 3;
    flex: 1 0 100%;
    padding-bottom: 0.25rem;
  }
}

@media (max-width: 720px) {
  nav {
    padding: 0.5rem 0.85rem;
  }

  .nav-brand {
    font-size: 1.8rem;
  }

  .nav-primary {
    gap: 0.35rem;
  }

  .nav-direct,
  .nav-group-trigger {
    min-height: 42px;
    padding: 0 0.8rem;
  }

  .nav-group-trigger {
    min-width: 9.5rem;
  }

  .nav-group-menu {
    padding: 0.5rem;
    min-width: 12.5rem;
  }

  .nav-right {
    width: 100%;
    justify-content: flex-start;
  }

  .page-wrap {
    padding: 1.4rem 1rem 4rem;
  }

  .pause-surface-shell {
    padding: 0.75rem;
  }

  .pause-surface-frame {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    height: calc(100vh - 1.5rem);
    min-height: calc(100vh - 1.5rem);
    max-height: calc(100vh - 1.5rem);
  }

  .pause-command-body {
    padding: 1.15rem;
  }

  .pause-overview-grid {
    grid-template-columns: 1fr;
  }

  .landing-page {
    gap: 1.5rem;
    padding-top: 1.35rem;
  }

  .landing-hero-copy,
  .landing-hero-spotlight,
  .landing-copy-card,
  .landing-cta-panel {
    padding: 1.3rem;
  }

  .landing-hero-copy h1 {
    max-width: none;
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .landing-hero-actions,
  .landing-cta-actions {
    flex-direction: column;
  }

  .landing-hero-actions .btn-primary,
  .landing-hero-actions .btn-join,
  .landing-cta-actions .btn-primary,
  .landing-cta-actions .btn-join {
    width: 100%;
  }

  .landing-video-frame,
  .landing-video-frame iframe {
    min-height: 280px;
  }

  .host-form,
  .slot-grid {
    grid-template-columns: 1fr;
  }

  .mods-toolbar {
    grid-template-columns: 1fr;
  }

  .mods-power-pill {
    width: 100%;
    text-align: center;
  }

  .weapon-inspector-grid {
    grid-template-columns: 1fr;
  }

  .mods-workspace {
    min-height: 0;
    max-height: none;
  }

  .store-card-metrics {
    grid-template-columns: 1fr;
  }

  .upgrade-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: start;
  }

  .upgrade-slot-tile {
    min-height: 120px;
  }

  .upgrade-card-list {
    grid-auto-columns: minmax(160px, 160px);
  }

  .profile-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
.live-preview-integration-host {
  position: relative;
  overflow: hidden;
}

.loadout-live-preview-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow: hidden;
  z-index: 5;
  pointer-events: none;
}

.loadout-live-preview-stage.is-live-ready {
  pointer-events: auto;
}

.loadout-live-preview-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.social-app {
  display: grid;
  gap: 1.25rem;
}

.social-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 1.25rem;
}

.social-column {
  display: grid;
  gap: 1.25rem;
}

.social-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(184, 144, 42, 0.22);
  background: linear-gradient(180deg, rgba(14, 31, 19, 0.94) 0%, rgba(20, 41, 26, 0.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 225, 140, 0.06), 0 18px 36px rgba(0, 0, 0, 0.28);
}

.social-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(184, 144, 42, 0.12), transparent 28%), radial-gradient(circle at 100% 0%, rgba(212, 170, 58, 0.08), transparent 40%);
}

.social-section-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem 0.8rem;
  border-bottom: 1px solid rgba(184, 144, 42, 0.16);
}

.social-section-head h2,
.social-section-head h3 {
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

.social-section-head p {
  color: var(--cream-dim);
  font-size: 0.92rem;
}

.social-card-body {
  position: relative;
  z-index: 1;
  padding: 1rem 1.15rem 1.15rem;
}

.social-card-body.compact {
  padding-top: 0.85rem;
}

.social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social-actions .btn-nav,
.social-actions .btn-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3rem;
}

.social-person-list,
.social-thread-list,
.social-message-list,
.social-party-message-list,
.social-request-list {
  display: grid;
  gap: 0.7rem;
}

.social-person-row,
.social-thread-row,
.social-party-member-row {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(184, 144, 42, 0.16);
  background: rgba(0, 0, 0, 0.18);
}

.social-person-top,
.social-thread-top,
.social-party-member-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.social-person-name,
.social-thread-name,
.social-party-member-name {
  font-family: 'Teko', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--cream);
}

.social-person-meta,
.social-thread-meta,
.social-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  color: var(--cream-dim);
  font-size: 0.82rem;
}

.social-mini-pill,
.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.16rem 0.5rem;
  border: 1px solid rgba(184, 144, 42, 0.22);
  border-radius: 999px;
  background: rgba(184, 144, 42, 0.1);
  color: var(--cream);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.social-badge.friend {
  border-color: rgba(114, 192, 120, 0.42);
  background: rgba(114, 192, 120, 0.12);
  color: #9fd9a4;
}

.social-badge.incoming {
  border-color: rgba(212, 170, 58, 0.42);
  background: rgba(212, 170, 58, 0.12);
  color: #e4c46d;
}

.social-badge.outgoing {
  border-color: rgba(100, 155, 220, 0.42);
  background: rgba(100, 155, 220, 0.12);
  color: #9fc4ff;
}

.social-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.social-message-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.3fr);
  min-height: 620px;
}

.social-thread-panel {
  border-right: 1px solid rgba(184, 144, 42, 0.16);
  background: rgba(0, 0, 0, 0.16);
}

.social-thread-panel .social-card-body {
  padding-top: 0.9rem;
}

.social-thread-row {
  cursor: pointer;
  transition: border-color 120ms ease, transform 120ms ease, background 120ms ease;
}

.social-thread-row.active,
.social-thread-row:hover {
  border-color: rgba(212, 170, 58, 0.36);
  background: rgba(212, 170, 58, 0.08);
  transform: translateY(-1px);
}

.social-thread-preview {
  color: var(--cream-dim);
  font-size: 0.9rem;
  line-height: 1.35;
}

.social-thread-unread {
  min-width: 1.5rem;
  min-height: 1.5rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
}

.social-conversation {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 620px;
}

.social-conversation-head {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(184, 144, 42, 0.16);
  background: rgba(0, 0, 0, 0.12);
}

.social-message-list,
.social-party-message-list {
  padding: 1rem 1.15rem;
  align-content: start;
  max-height: 100%;
  overflow-y: auto;
}

.social-message-item {
  display: flex;
}

.social-message-item.own {
  justify-content: flex-end;
}

.social-bubble {
  max-width: min(86%, 35rem);
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(184, 144, 42, 0.16);
  background: rgba(0, 0, 0, 0.22);
}

.social-message-item.own .social-bubble {
  border-color: rgba(212, 170, 58, 0.34);
  background: rgba(212, 170, 58, 0.09);
}

.social-bubble-author {
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

.social-bubble-copy {
  margin-top: 0.25rem;
  color: var(--text);
  line-height: 1.45;
  white-space: pre-wrap;
}

.social-bubble-meta {
  margin-top: 0.4rem;
  color: var(--text-mid);
  font-size: 0.76rem;
}

.social-compose {
  display: grid;
  gap: 0.8rem;
  padding: 1rem 1.15rem 1.15rem;
  border-top: 1px solid rgba(184, 144, 42, 0.16);
  background: rgba(0, 0, 0, 0.12);
}

.social-compose textarea,
.social-compose input {
  width: 100%;
  border: 1px solid rgba(184, 144, 42, 0.24);
  background: rgba(0, 0, 0, 0.3);
  color: var(--cream);
  padding: 0.85rem 0.95rem;
  font: inherit;
  resize: vertical;
  min-height: 3.6rem;
}

.social-compose textarea:focus,
.social-compose input:focus {
  outline: none;
  border-color: rgba(212, 170, 58, 0.55);
  box-shadow: 0 0 0 2px rgba(212, 170, 58, 0.14);
}

.social-party-hero {
  display: grid;
  gap: 0.9rem;
}

.social-party-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(212, 170, 58, 0.26);
  background: linear-gradient(135deg, rgba(212, 170, 58, 0.14), rgba(0, 0, 0, 0.16));
}

.social-party-members {
  display: grid;
  gap: 0.7rem;
}

.social-request-grid {
  display: grid;
  gap: 0.7rem;
}

.social-request-row {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(184, 144, 42, 0.16);
  background: rgba(0, 0, 0, 0.16);
}

.social-empty {
  padding: 1rem;
  border: 1px dashed rgba(184, 144, 42, 0.18);
  color: var(--cream-dim);
  background: rgba(0, 0, 0, 0.12);
  line-height: 1.45;
}

.social-profile-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 144, 42, 0.22);
}

.social-profile-link:hover {
  color: var(--cream);
  border-bottom-color: rgba(212, 170, 58, 0.45);
}

.social-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cream);
  font-size: 0.85rem;
}

.social-party-activity {
  width: min(92vw, 32rem);
  border: 1px solid rgba(212, 170, 58, 0.28);
  background: linear-gradient(180deg, rgba(32, 54, 22, 0.98), rgba(18, 30, 14, 0.98));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.social-party-activity-head {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 0;
  background: rgba(0, 0, 0, 0.16);
  color: var(--cream);
  text-align: left;
}

.social-party-activity-title {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.social-party-activity-body {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem 1rem 1rem;
}

.social-party-ready-grid {
  display: grid;
  gap: 0.55rem;
}

.social-party-ready-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(184, 144, 42, 0.14);
  background: rgba(0, 0, 0, 0.16);
}

.social-party-ready-row.ready {
  border-color: rgba(114, 192, 120, 0.24);
  background: rgba(114, 192, 120, 0.08);
}

#social-dock-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
}

.social-dock {
  display: grid;
  justify-items: end;
  gap: 0.8rem;
}

.social-dock-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(184, 144, 42, 0.26);
  background: linear-gradient(180deg, rgba(16, 35, 22, 0.96), rgba(10, 22, 14, 0.96));
  color: var(--cream);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.social-dock-panel {
  width: min(96vw, 56rem);
  height: min(82vh, 46rem);
  display: none;
  grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr);
  border: 1px solid rgba(184, 144, 42, 0.24);
  background: linear-gradient(180deg, rgba(14, 31, 19, 0.98) 0%, rgba(18, 36, 24, 0.98) 100%);
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.social-dock.open .social-dock-panel {
  display: grid;
}

.social-dock-sidebar {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 0.9rem;
  border-right: 1px solid rgba(184, 144, 42, 0.16);
  background: rgba(0, 0, 0, 0.22);
  overflow-y: auto;
}

.social-dock-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.social-dock-tabs button,
.social-dock-list-row {
  border: 1px solid rgba(184, 144, 42, 0.16);
  background: rgba(0, 0, 0, 0.2);
  color: var(--cream);
}

.social-dock-tabs button {
  min-height: 2.3rem;
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.social-dock-tabs button.active,
.social-dock-list-row.active {
  border-color: rgba(212, 170, 58, 0.38);
  background: rgba(212, 170, 58, 0.08);
}

.social-dock-section {
  display: grid;
  gap: 0.45rem;
}

.social-dock-section-label {
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

.social-dock-list {
  display: grid;
  gap: 0.45rem;
}

.social-dock-search-results {
  gap: 0.6rem;
}

.social-dock-search-row {
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(184, 144, 42, 0.16);
  background: rgba(0, 0, 0, 0.16);
}

.social-dock-search-copy {
  display: grid;
  gap: 0.3rem;
}

.social-dock-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.social-dock-list-row {
  width: 100%;
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem 0.85rem;
  text-align: left;
}

.social-dock-list-title {
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.social-dock-list-sub {
  color: var(--cream-dim);
  font-size: 0.8rem;
  line-height: 1.35;
}

.social-dock-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.social-dock-main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  background: linear-gradient(180deg, rgba(18, 32, 22, 0.74), rgba(10, 18, 12, 0.55));
}

.social-dock-message-list {
  min-height: 0;
}

.social-compose-compact {
  border-top: 1px solid rgba(184, 144, 42, 0.12);
  background: rgba(0, 0, 0, 0.16);
}

.social-context-actions,
.social-dock-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.85rem 1rem 0;
}

.social-dock-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .social-shell,
  .social-split-grid,
  .social-message-shell {
    grid-template-columns: 1fr;
  }

  .social-thread-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(184, 144, 42, 0.16);
  }

  .social-conversation,
  .social-message-shell {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .social-section-head,
  .social-card-body,
  .social-message-list,
  .social-party-message-list,
  .social-compose,
  .social-conversation-head {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .social-person-top,
  .social-thread-top,
  .social-party-member-top,
  .social-party-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-actions {
    width: 100%;
  }

  .social-actions .btn-nav,
  .social-actions .btn-join,
  .social-context-actions .btn-nav,
  .social-context-actions .btn-join,
  .social-dock-quick-actions .btn-nav,
  .social-dock-quick-actions .btn-join {
    width: 100%;
  }

  #social-dock-root {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
  }

  .social-dock-panel {
    width: 100%;
    height: min(74vh, 36rem);
    grid-template-columns: 1fr;
  }

  .social-dock-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(184, 144, 42, 0.16);
    max-height: 16rem;
  }

  .social-dock-search-actions {
    width: 100%;
  }

  .social-dock-search-actions .btn-nav,
  .social-dock-search-actions .btn-join,
  .social-dock-quick-actions {
    grid-template-columns: 1fr;
  }
}

.match-results-page {
  display: grid;
  gap: 1.5rem;
}

.match-results-page-header {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.6rem 1.25rem;
  border: 1px solid rgba(184, 144, 42, 0.22);
  background:
    radial-gradient(circle at top right, rgba(212, 170, 58, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(56, 29, 12, 0.92), rgba(20, 43, 26, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 220, 140, 0.08), 0 10px 28px rgba(0, 0, 0, 0.36);
}

.match-results-page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

.match-results-shell {
  display: grid;
  gap: 1.15rem;
}

.match-results-block {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.45rem;
  border: 1px solid rgba(184, 144, 42, 0.16);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(17, 39, 24, 0.97), rgba(12, 24, 16, 0.97)),
    linear-gradient(135deg, rgba(184, 144, 42, 0.08), transparent 45%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.match-results-block.hero {
  padding: 1.6rem;
}

.match-results-block.intermission {
  background:
    linear-gradient(180deg, rgba(56, 27, 14, 0.96), rgba(22, 41, 26, 0.96)),
    linear-gradient(90deg, rgba(212, 170, 58, 0.09), transparent 45%);
}

.match-results-block.empty,
.match-results-block.loading {
  min-height: 10rem;
  display: grid;
  align-items: center;
}

.match-results-head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.match-results-head h3 {
  font-family: 'Teko', sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

.match-results-head p {
  color: var(--text-mid);
  max-width: 62rem;
}

.match-results-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.95fr);
  gap: 1rem;
  align-items: end;
}

.match-results-kicker {
  display: inline-flex;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(212, 170, 58, 0.22);
  border-radius: 999px;
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-bright);
  background: rgba(212, 170, 58, 0.08);
}

.match-results-hero h2 {
  font-family: 'Teko', sans-serif;
  font-size: 2.45rem;
  line-height: 0.95;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}

.match-results-hero p {
  margin-top: 0.55rem;
  color: var(--cream-dim);
  max-width: 38rem;
}

.match-results-stat-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.match-results-stat-strip div {
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(184, 144, 42, 0.14);
  background: rgba(0, 0, 0, 0.22);
}

.match-results-stat-strip span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.match-results-stat-strip strong {
  font-family: 'Teko', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--cream);
}

.match-leaderboard-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(184, 144, 42, 0.14);
  background: rgba(0, 0, 0, 0.18);
}

.match-leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 46rem;
}

.match-leaderboard-table th,
.match-leaderboard-table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid rgba(184, 144, 42, 0.1);
  text-align: left;
}

.match-leaderboard-table th {
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  background: rgba(184, 144, 42, 0.06);
}

.match-leaderboard-table tbody tr:last-child td {
  border-bottom: 0;
}

.match-leaderboard-table tbody tr.is-local {
  background: rgba(212, 170, 58, 0.08);
}

.match-reward-grid,
.map-vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.85rem;
}

.map-vote-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.match-reward-chip,
.map-vote-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(184, 144, 42, 0.15);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(23, 50, 31, 0.95), rgba(12, 25, 17, 0.97));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.match-reward-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem;
}

.match-reward-chip strong,
.map-vote-card strong {
  display: block;
  font-family: 'Teko', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}

.match-reward-chip p,
.map-vote-card p {
  margin-top: 0.18rem;
  color: var(--text-mid);
  font-size: 0.86rem;
  line-height: 1.45;
}

.match-reward-qty {
  min-width: 3.3rem;
  padding: 0.5rem 0.55rem;
  text-align: center;
  font-family: 'Teko', sans-serif;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--cream);
  border: 1px solid rgba(184, 144, 42, 0.16);
  background: rgba(0, 0, 0, 0.26);
}

.reward-gems {
  background: linear-gradient(180deg, rgba(29, 48, 19, 0.97), rgba(14, 25, 12, 0.98));
}

.reward-resource {
  background: linear-gradient(180deg, rgba(45, 31, 16, 0.97), rgba(23, 18, 11, 0.98));
}

.reward-bonus {
  background: linear-gradient(180deg, rgba(54, 21, 15, 0.96), rgba(24, 13, 10, 0.98));
}

.reward-placement {
  background: linear-gradient(180deg, rgba(47, 38, 15, 0.97), rgba(21, 17, 9, 0.98));
}

.reward-weapon,
.reward-ball,
.reward-perk,
.reward-gadget,
.reward-card,
.reward-neutral {
  background: linear-gradient(180deg, rgba(21, 42, 31, 0.96), rgba(10, 21, 15, 0.98));
}

.match-results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-primary[disabled] {
  cursor: not-allowed;
  opacity: 0.52;
  filter: saturate(0.7);
}

.match-results-inline-error,
.map-vote-countdown {
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(176, 40, 32, 0.28);
  border-radius: 3px;
  background: rgba(176, 40, 32, 0.1);
  color: var(--cream);
}

.map-vote-card {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  padding: 1rem;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.map-vote-card:hover,
.map-vote-card.is-selected {
  transform: translateY(-2px);
  border-color: rgba(212, 170, 58, 0.4);
  background: linear-gradient(180deg, rgba(54, 39, 18, 0.96), rgba(17, 31, 21, 0.98));
}

.map-vote-card.vote-readonly {
  cursor: default;
}

.map-vote-card.is-leading,
.map-vote-option.is-leading {
  border-color: rgba(212, 170, 58, 0.46);
  box-shadow: 0 0 0 1px rgba(212, 170, 58, 0.16), 0 16px 34px rgba(0, 0, 0, 0.3);
}

.map-vote-mode {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

.map-vote-tally-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.2rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  color: var(--cream-dim);
}

.map-vote-meter {
  height: 0.42rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.map-vote-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brass-dim), var(--brass-bright));
}

.map-vote-option {
  text-align: left;
  cursor: pointer;
}

.map-vote-option .upgrade-card-art {
  min-height: 108px;
}

.map-vote-option .upgrade-card-cover {
  font-size: 0.72rem;
}

.map-vote-option .upgrade-card-copy p {
  color: var(--cream-dim);
}

.map-vote-option .upgrade-card-hover-copy {
  max-height: 140px;
  opacity: 1;
}

.map-vote-option.is-selected {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.training-page,
.training-shell {
  display: grid;
  gap: 1.2rem;
}

.training-hero-copy {
  display: grid;
  gap: 0.55rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(184, 144, 42, 0.14);
  background: rgba(0, 0, 0, 0.16);
}

.training-card-hover-copy {
  gap: 0.6rem;
}

.training-card-meta {
  gap: 0.35rem;
}

.training-card-actions,
.training-loadout-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.training-card-actions .btn-nav,
.training-card-actions .btn-join,
.training-loadout-toolbar .btn-nav,
.training-loadout-toolbar .btn-join {
  flex: 1 1 10rem;
}

.training-loadout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.8rem;
}

.training-select-card {
  display: grid;
  gap: 0.4rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(184, 144, 42, 0.14);
  background: rgba(0, 0, 0, 0.18);
}

.training-select-card label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.training-select-card select {
  width: 100%;
  min-height: 2.7rem;
  border: 1px solid rgba(184, 144, 42, 0.18);
  background: rgba(9, 18, 12, 0.88);
  color: var(--cream);
  padding: 0.6rem 0.7rem;
  font-family: 'Cabin', sans-serif;
}

.training-note {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(184, 144, 42, 0.14);
  background: rgba(184, 144, 42, 0.06);
  color: var(--cream-dim);
}

.map-vote-countdown {
  margin-top: 0.9rem;
  border-color: rgba(184, 144, 42, 0.24);
  background: rgba(184, 144, 42, 0.09);
}

.match-results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(19rem, 0.82fr);
  gap: 1rem;
  align-items: start;
}

.match-results-main {
  display: grid;
  gap: 1rem;
}

.match-results-sidebar {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

.lobby-rail {
  padding: 1rem 1.05rem;
}

.lobby-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

.lobby-head-meta {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem;
  color: var(--cream-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.match-results-scroll-frame {
  max-height: 17rem;
  overflow: auto;
}

.lobby-player-list {
  display: grid;
  gap: 0.55rem;
  max-height: 18rem;
  overflow: auto;
}

.lobby-player-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(184, 144, 42, 0.1);
  background: rgba(0, 0, 0, 0.18);
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.lobby-player-row strong {
  display: block;
  font-family: 'Teko', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}

.lobby-player-row.is-muted {
  opacity: 0.76;
}

.lobby-player-row.is-talking {
  border-color: rgba(212, 170, 58, 0.42);
  background: linear-gradient(180deg, rgba(57, 41, 16, 0.92), rgba(18, 33, 22, 0.96));
  box-shadow: 0 0 0 1px rgba(212, 170, 58, 0.12);
}

.lobby-player-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.lobby-player-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border: 1px solid rgba(184, 144, 42, 0.14);
  border-radius: 999px;
  font-family: 'Courier Prime', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
  background: rgba(255, 255, 255, 0.03);
}

.lobby-player-pill.accent,
.lobby-player-pill.success {
  color: var(--cream);
}

.lobby-player-pill.accent {
  border-color: rgba(212, 170, 58, 0.32);
  background: rgba(212, 170, 58, 0.1);
}

.lobby-player-pill.success {
  border-color: rgba(90, 164, 98, 0.34);
  background: rgba(90, 164, 98, 0.12);
}

.lobby-player-state {
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.intermission-chat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.intermission-chat-tabs button {
  border: 1px solid rgba(184, 144, 42, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--cream-dim);
  padding: 0.38rem 0.65rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.intermission-chat-tabs button.active {
  border-color: rgba(212, 170, 58, 0.32);
  background: rgba(212, 170, 58, 0.1);
  color: var(--cream);
}

.intermission-chat-messages {
  display: grid;
  gap: 0.55rem;
  min-height: 10rem;
  max-height: 14rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.intermission-chat-messages.compact {
  min-height: 8rem;
  max-height: 11rem;
}

.intermission-chat-entry {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(184, 144, 42, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.intermission-chat-entry strong {
  display: block;
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}

.intermission-chat-entry p {
  margin-top: 0.18rem;
  color: var(--text-mid);
  line-height: 1.4;
}

.intermission-chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.intermission-chat-compose input {
  min-width: 0;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(184, 144, 42, 0.14);
  background: rgba(8, 16, 11, 0.85);
  color: var(--cream);
  font: inherit;
}

.intermission-empty {
  padding: 0.75rem 0.8rem;
  border: 1px dashed rgba(184, 144, 42, 0.14);
  color: var(--text-mid);
  background: rgba(255, 255, 255, 0.02);
}

.match-results-modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 8, 6, 0.72);
  z-index: 60;
}

.match-results-modal {
  width: min(100%, 28rem);
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(184, 144, 42, 0.2);
  background: linear-gradient(180deg, rgba(22, 43, 28, 0.97), rgba(11, 19, 14, 0.98));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.48);
}

.leaderboard-player-link.is-static {
  text-decoration: none;
  color: var(--cream);
  cursor: default;
  pointer-events: none;
}

body[data-page='landing-public'],
body[data-page='roster-public'],
body[data-page='patchnotes-public'] {
  background:
    radial-gradient(circle at top left, rgba(212, 170, 58, 0.16), transparent 28%),
    radial-gradient(circle at right 20%, rgba(212, 48, 32, 0.1), transparent 24%),
    linear-gradient(180deg, #08150d 0%, #0d2815 12%, #12341c 56%, #08150d 100%);
}

body[data-page='landing-public']::before,
body[data-page='roster-public']::before,
body[data-page='patchnotes-public']::before {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 220, 160, 0.08), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.035), transparent 18%),
    repeating-linear-gradient(0deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 5px),
    repeating-linear-gradient(90deg,
      rgba(0, 0, 0, 0.05) 0,
      rgba(0, 0, 0, 0.05) 1px,
      transparent 1px,
      transparent 6px);
  opacity: 0.95;
}

body[data-page='landing-public']::after,
body[data-page='roster-public']::after,
body[data-page='patchnotes-public']::after {
  opacity: 0.28;
}

body[data-page='landing-public'] #ball-canvas,
body[data-page='roster-public'] #ball-canvas,
body[data-page='patchnotes-public'] #ball-canvas {
  opacity: 0.46;
}

.public-page-header .overline,
.patch-note-card .overline,
.public-community-links .overline,
.public-roster-preview .overline,
.public-section-copy .overline,
.public-hero-spotlight .overline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.24rem 0.62rem;
  border: 1px solid rgba(212, 170, 58, 0.22);
  background: rgba(0, 0, 0, 0.22);
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

.public-landing-page {
  display: grid;
  gap: 1.25rem;
  padding-top: 1.65rem;
}

.public-landing-section {
  display: grid;
  gap: 0.95rem;
}

.public-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 1rem;
  align-items: stretch;
}

.public-hero-copy,
.public-community-links,
.public-cta-panel,
.public-hero-spotlight {
  position: relative;
  overflow: hidden;
}

.public-hero-copy {
  padding: 1.9rem 2rem;
  border: 1px solid rgba(212, 170, 58, 0.24);
  background:
    radial-gradient(circle at top left, rgba(212, 170, 58, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(13, 38, 21, 0.96), rgba(11, 22, 15, 0.98));
}

.public-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border: 1px solid rgba(212, 170, 58, 0.22);
  background: rgba(0, 0, 0, 0.2);
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

.public-hero-title {
  display: grid;
  gap: 0.12rem;
  margin-top: 0.75rem;
  font-family: 'Teko', sans-serif;
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-hero-cueball {
  color: var(--cream);
}

.public-hero-blitz {
  color: var(--red-bright);
  text-shadow: 0 0 22px rgba(212, 48, 32, 0.24);
}

.public-hero-lead,
.public-hero-spotlight p,
.public-callout-item span,
.public-mode-copy span,
.public-link-card span,
.public-section-copy p,
.patch-note-summary,
.patch-note-body,
.patch-notes-feed-card p {
  color: var(--text);
  line-height: 1.65;
}

.public-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.05rem;
}

.public-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.public-metric-card {
  display: grid;
  gap: 0.3rem;
  padding: 0.82rem 0.92rem;
  border: 1px solid rgba(212, 170, 58, 0.16);
  background: rgba(0, 0, 0, 0.2);
}

.public-metric-label,
.patch-notes-feed-label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.public-metric-card strong,
.patch-notes-feed-card strong {
  font-family: 'Teko', sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--cream);
}

.public-metric-card span:last-child {
  color: var(--text-mid);
  font-size: 0.82rem;
  line-height: 1.45;
}

.public-inline-link {
  color: var(--brass-bright);
}

.public-hero-spotlight {
  display: grid;
  gap: 0.85rem;
}

.public-hero-spotlight h2,
.public-community-links h2,
.public-section-copy h2,
.public-cta-panel h2,
.patch-note-card h2 {
  font-family: 'Teko', sans-serif;
  font-size: 2.15rem;
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--cream);
}

.public-callout-list {
  display: grid;
  gap: 0.55rem;
}

.public-callout-item,
.public-link-card {
  display: grid;
  gap: 0.22rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(212, 170, 58, 0.16);
  background: rgba(0, 0, 0, 0.2);
}

.public-callout-item strong,
.public-link-card strong,
.public-section-copy h2 {
  color: var(--cream);
}

.public-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.public-mode-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  border-color: rgba(212, 170, 58, 0.16);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 200, 60, 0.06),
    0 5px 18px rgba(0, 0, 0, 0.45);
}

.public-mode-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 170, 58, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 200, 60, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.32);
}

.public-mode-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--mode-accent, var(--brass));
}

.public-mode-icon {
  min-width: 3.35rem;
  min-height: 3.35rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 170, 58, 0.2);
  background: rgba(0, 0, 0, 0.2);
  font-family: 'Teko', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--cream);
}

.public-mode-copy {
  display: grid;
  gap: 0.3rem;
}

.public-mode-copy strong {
  font-family: 'Teko', sans-serif;
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--cream);
}

.public-showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 1rem;
  align-items: stretch;
}

.public-roster-preview,
.public-community-links,
.public-cta-panel,
.patch-notes-feed-card {
  min-height: 100%;
}

.public-section-copy {
  display: grid;
  gap: 0.72rem;
}

.public-marquee-shell {
  position: relative;
  overflow: hidden;
  padding: 0.35rem 0;
}

.public-marquee-shell::after,
.public-marquee-shell::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4rem;
  z-index: 1;
  pointer-events: none;
}

.public-marquee-shell::before {
  left: 0;
  background: linear-gradient(90deg, rgba(13, 40, 20, 0.98), transparent);
}

.public-marquee-shell::after {
  right: 0;
  background: linear-gradient(270deg, rgba(13, 40, 20, 0.98), transparent);
}

.public-marquee-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: public-marquee-slide 36s linear infinite;
}

.public-marquee-shell:hover .public-marquee-track {
  animation-play-state: paused;
}

@keyframes public-marquee-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.public-marquee-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  min-width: 220px;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(212, 170, 58, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 0 0 1px transparent;
}

.public-marquee-item:hover {
  box-shadow: 0 0 0 1px var(--ball-accent, var(--brass));
}

.public-marquee-media,
.public-roster-card-media,
.public-roster-detail-media {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(212, 170, 58, 0.22);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.2)),
    var(--ball-glow, rgba(212, 170, 58, 0.22));
}

.public-marquee-media {
  width: 58px;
  height: 58px;
  box-shadow: 0 0 18px var(--ball-glow, rgba(212, 170, 58, 0.18));
}

.public-marquee-media img,
.public-roster-card-media img,
.public-roster-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-marquee-copy {
  display: grid;
  gap: 0.16rem;
}

.public-marquee-copy strong,
.public-roster-card-copy strong,
.public-roster-detail-content h2 {
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.03em;
  color: var(--cream);
}

.public-marquee-copy strong,
.public-roster-card-copy strong {
  font-size: 1.1rem;
  line-height: 1;
}

.public-marquee-copy span,
.public-roster-card-copy span,
.public-roster-detail-archetype,
.public-roster-count {
  color: var(--text-mid);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-community-links {
  display: grid;
  gap: 0.75rem;
}

.public-link-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.public-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 170, 58, 0.32);
}

.public-featured-upgrades {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.public-upgrade-card {
  min-height: 164px;
}

.public-upgrade-card .upgrade-card-art {
  min-height: 88px;
}

.public-upgrade-card .upgrade-card-copy p {
  max-height: none;
}

.public-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: 1rem;
  align-items: center;
}

.public-roster-page {
  display: grid;
  gap: 1rem;
  padding-top: 1.5rem;
}

.public-roster-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.92fr);
  gap: 1rem;
}

.public-roster-browser {
  display: grid;
  gap: 0.95rem;
}

.public-roster-toolbar {
  display: grid;
  gap: 0.75rem;
}

.public-roster-search {
  width: 100%;
  min-height: 44px;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(212, 170, 58, 0.18);
  background: rgba(0, 0, 0, 0.24);
  color: var(--cream);
  font: inherit;
}

.public-roster-search:focus {
  outline: none;
  border-color: rgba(212, 170, 58, 0.38);
}

.public-roster-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.public-filter-chip {
  padding: 0.34rem 0.75rem;
  border: 1px solid rgba(212, 170, 58, 0.16);
  background: rgba(0, 0, 0, 0.2);
  color: var(--cream-dim);
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.public-filter-chip.is-active,
.public-filter-chip:hover {
  border-color: rgba(212, 170, 58, 0.34);
  color: var(--cream);
}

.public-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
  gap: 0.85rem;
}

.public-roster-card {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  padding: 1rem 0.8rem 0.9rem;
  border: 1px solid rgba(212, 170, 58, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.14)),
    rgba(12, 25, 17, 0.9);
  color: inherit;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.public-roster-card:hover,
.public-roster-card.is-selected {
  transform: translateY(-3px);
  border-color: var(--ball-accent, rgba(212, 170, 58, 0.32));
  box-shadow: 0 0 20px var(--ball-glow, rgba(212, 170, 58, 0.18));
}

.public-roster-card-media {
  width: 82px;
  height: 82px;
}

.public-roster-card-copy {
  display: grid;
  gap: 0.12rem;
  text-align: center;
}

.public-roster-card-pips {
  display: flex;
  gap: 0.3rem;
}

.public-roster-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(212, 170, 58, 0.32);
}

.public-roster-pip.is-filled {
  background: var(--brass);
  border-color: var(--brass);
}

.public-roster-detail {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.public-roster-empty {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
  min-height: 420px;
  place-content: center;
}

.public-roster-empty-ball {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.28), rgba(0, 0, 0, 0.2) 36%, rgba(212, 170, 58, 0.2));
  border: 1px solid rgba(212, 170, 58, 0.24);
}

.public-roster-detail-content {
  display: grid;
  gap: 1rem;
}

.public-roster-detail-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.public-roster-detail-media {
  width: 104px;
  height: 104px;
  box-shadow: 0 0 24px var(--ball-glow, rgba(212, 170, 58, 0.2));
}

.public-roster-detail-description {
  margin-top: 0.4rem;
}

.public-roster-detail-tags,
.public-roster-vitals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.public-roster-detail-tags span,
.public-vital-chip {
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(212, 170, 58, 0.16);
  background: rgba(0, 0, 0, 0.18);
}

.public-vital-chip {
  display: grid;
  gap: 0.1rem;
}

.public-vital-chip span {
  color: var(--text-mid);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.public-vital-chip strong {
  color: var(--cream);
  font-family: 'Teko', sans-serif;
  font-size: 1.15rem;
  line-height: 1;
}

.public-roster-stat-section {
  display: grid;
  gap: 0.65rem;
}

.public-roster-stat-section > strong {
  font-family: 'Teko', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: var(--cream);
}

.public-rating-bars {
  display: grid;
  gap: 0.45rem;
}

.public-rating-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) 2.25rem;
  gap: 0.6rem;
  align-items: center;
}

.public-rating-row span,
.public-rating-row strong {
  font-size: 0.8rem;
}

.public-rating-track {
  height: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(212, 170, 58, 0.16);
}

.public-rating-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-bright), var(--brass-bright));
}

.public-roster-abilities {
  display: grid;
  gap: 0.6rem;
}

.public-ability-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem 0.82rem;
  border: 1px solid rgba(212, 170, 58, 0.16);
  background: rgba(0, 0, 0, 0.18);
}

.public-ability-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.public-ability-head strong {
  font-family: 'Teko', sans-serif;
  font-size: 1.15rem;
  color: var(--cream);
}

.public-ability-head span {
  color: var(--brass-bright);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-roster-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.patch-notes-page {
  display: grid;
  gap: 1rem;
  padding-top: 1.5rem;
}

.patch-notes-feed-card {
  display: grid;
  gap: 0.6rem;
}

.patch-notes-feed-head,
.patch-note-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: start;
}

.patch-note-list {
  display: grid;
  gap: 1rem;
}

.patch-note-card {
  display: grid;
  gap: 0.8rem;
}

.patch-note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.patch-note-meta span {
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(212, 170, 58, 0.16);
  background: rgba(0, 0, 0, 0.18);
  color: var(--cream-dim);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.patch-note-body ul {
  margin: 0.6rem 0 0 1.2rem;
}

.patch-note-body li + li {
  margin-top: 0.4rem;
}

@media (max-width: 1080px) {
  .public-hero-shell,
  .public-showcase-row,
  .public-roster-layout,
  .public-cta-panel {
    grid-template-columns: 1fr;
  }

  .public-featured-upgrades,
  .public-mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .public-landing-page,
  .public-roster-page,
  .patch-notes-page {
    padding-top: 1.1rem;
  }

  .public-hero-copy,
  .public-hero-spotlight,
  .public-community-links,
  .public-roster-browser,
  .public-roster-detail,
  .patch-note-card,
  .patch-notes-feed-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .public-metric-row,
  .public-featured-upgrades,
  .public-mode-grid {
    grid-template-columns: 1fr;
  }

  .public-roster-detail-head {
    grid-template-columns: 1fr;
  }

  .public-hero-actions .btn-primary,
  .public-hero-actions .btn-join,
  .public-roster-detail-actions .btn-primary,
  .public-roster-detail-actions .btn-nav {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 960px) {
  .match-results-layout {
    grid-template-columns: 1fr;
  }

  .match-results-sidebar {
    position: static;
  }

  .match-results-hero {
    grid-template-columns: 1fr;
  }

  .match-results-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .match-results-page-header,
  .match-results-block {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .match-results-hero h2 {
    font-size: 2rem;
  }

  .match-results-stat-strip,
  .match-reward-grid,
  .map-vote-grid {
    grid-template-columns: 1fr;
  }

.match-results-actions .btn-primary,
.match-results-actions .btn-join,
.match-results-actions .btn-nav {
  width: 100%;
  text-align: center;
}

.intermission-chat-compose {
    grid-template-columns: 1fr;
  }

  .match-reward-chip {
    grid-template-columns: 1fr;
  }

  .match-reward-qty {
    min-width: 0;
    width: fit-content;
  }
}

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

@media (max-width: 640px) {
  .site-footer {
    padding: 0 1rem 1.5rem;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.matchmaking-app {
  width: 100%;
}

.matchmaking-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(17rem, 21rem) minmax(0, 1fr) minmax(18rem, 22rem);
  align-items: start;
}

.matchmaking-stack {
  display: grid;
  gap: 1rem;
}

.matchmaking-panel {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1rem 1.05rem;
  background:
    linear-gradient(180deg, rgba(19, 47, 28, 0.88), rgba(12, 25, 17, 0.92)),
    linear-gradient(140deg, rgba(184, 144, 42, 0.1), transparent 40%);
  border: 1px solid rgba(184, 144, 42, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 140, 0.05),
    0 16px 32px rgba(0, 0, 0, 0.28);
}

.matchmaking-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.matchmaking-pill-row,
.matchmaking-action-row,
.matchmaking-rank-meta,
.matchmaking-roster-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.matchmaking-pill,
.matchmaking-mini-badge,
.matchmaking-ready,
.matchmaking-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(184, 144, 42, 0.26);
  background: rgba(11, 16, 13, 0.3);
  color: var(--cream);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
}

.matchmaking-mini-badge.accent {
  background: rgba(212, 170, 58, 0.18);
}

.matchmaking-rank-badge.iron {
  background: rgba(118, 117, 110, 0.22);
}

.matchmaking-rank-badge.unranked {
  background: rgba(92, 102, 112, 0.2);
}

.matchmaking-rank-badge.bronze {
  background: rgba(153, 98, 55, 0.26);
}

.matchmaking-rank-badge.silver {
  background: rgba(146, 158, 176, 0.24);
}

.matchmaking-rank-badge.gold {
  background: rgba(212, 170, 58, 0.22);
}

.matchmaking-rank-badge.platinum {
  background: rgba(105, 162, 171, 0.24);
}

.matchmaking-rank-badge.diamond {
  background: rgba(102, 134, 214, 0.24);
}

.matchmaking-rank-badge.emerald {
  background: rgba(78, 148, 110, 0.22);
}

.matchmaking-rank-badge.royal {
  background: rgba(90, 116, 183, 0.24);
}

.matchmaking-rank-badge.crimson {
  background: rgba(168, 60, 52, 0.24);
}

.matchmaking-rank-card {
  background:
    radial-gradient(circle at top right, rgba(212, 170, 58, 0.18), transparent 45%),
    linear-gradient(180deg, rgba(28, 56, 35, 0.92), rgba(10, 20, 13, 0.95));
}

.matchmaking-rank-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.matchmaking-rank-name {
  font-family: "Teko", sans-serif;
  font-size: 2.9rem;
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.matchmaking-rank-divider,
.matchmaking-rank-elo {
  color: rgba(244, 234, 208, 0.8);
}

.matchmaking-rank-elo {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.matchmaking-rank-subcopy {
  font-size: 0.82rem;
  color: rgba(244, 234, 208, 0.78);
}

.matchmaking-delta {
  font-size: 0.86rem;
  color: var(--text-mid);
}

.matchmaking-delta.up {
  color: var(--success);
}

.matchmaking-delta.down {
  color: var(--danger);
}

.matchmaking-party-copy,
.matchmaking-hero-copy,
.matchmaking-inline-note,
.matchmaking-lobby-hero p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.5;
}

.matchmaking-party-list,
.matchmaking-team-body,
.matchmaking-chat-log {
  display: grid;
  gap: 0.65rem;
}

.matchmaking-party-member,
.matchmaking-roster-row,
.matchmaking-chat-entry {
  border-radius: 0.85rem;
  border: 1px solid rgba(184, 144, 42, 0.16);
  background: rgba(9, 14, 11, 0.28);
  padding: 0.75rem 0.8rem;
}

.matchmaking-party-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.matchmaking-party-member strong,
.matchmaking-roster-name strong,
.matchmaking-filter-head strong,
.matchmaking-lobby-map strong,
.matchmaking-status-title,
.matchmaking-team-head strong {
  color: var(--cream);
}

.matchmaking-inline-rank {
  color: rgba(244, 234, 208, 0.86);
}

.matchmaking-inline-rank.unranked {
  color: rgba(176, 186, 194, 0.82);
}

.matchmaking-inline-rank.bronze {
  color: rgba(218, 163, 116, 0.9);
}

.matchmaking-inline-rank.silver {
  color: rgba(208, 219, 235, 0.92);
}

.matchmaking-inline-rank.gold {
  color: rgba(240, 210, 126, 0.94);
}

.matchmaking-inline-rank.platinum {
  color: rgba(146, 217, 229, 0.92);
}

.matchmaking-inline-rank.diamond {
  color: rgba(168, 195, 255, 0.92);
}

.matchmaking-inline-rank.emerald {
  color: rgba(146, 214, 176, 0.92);
}

.matchmaking-inline-rank.royal {
  color: rgba(177, 193, 244, 0.92);
}

.matchmaking-inline-rank.crimson {
  color: rgba(245, 161, 154, 0.92);
}

.matchmaking-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.matchmaking-tab {
  border: 1px solid rgba(184, 144, 42, 0.24);
  border-radius: 0.9rem;
  background: rgba(7, 12, 9, 0.22);
  color: var(--cream-dim);
  padding: 0.8rem 0.95rem;
  font-family: "Teko", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.matchmaking-tab.active {
  background: linear-gradient(180deg, rgba(184, 144, 42, 0.28), rgba(93, 63, 14, 0.28));
  color: var(--cream);
  transform: translateY(-1px);
}

.matchmaking-tab:disabled,
.matchmaking-chip:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.matchmaking-availability {
  border-radius: 0.95rem;
  border: 1px solid rgba(184, 144, 42, 0.2);
  background: rgba(79, 48, 15, 0.26);
  color: var(--cream);
  padding: 0.8rem 0.9rem;
  line-height: 1.45;
}

.matchmaking-filter-block {
  display: grid;
  gap: 0.65rem;
}

.matchmaking-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-mid);
}

.matchmaking-filter-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.matchmaking-chip {
  display: grid;
  gap: 0.28rem;
  text-align: left;
  border-radius: 0.95rem;
  border: 1px solid rgba(184, 144, 42, 0.16);
  background: rgba(8, 13, 10, 0.24);
  color: var(--text);
  padding: 0.78rem 0.82rem;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.matchmaking-chip:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(212, 170, 58, 0.35);
}

.matchmaking-chip.selected {
  border-color: rgba(212, 170, 58, 0.42);
  background: linear-gradient(180deg, rgba(212, 170, 58, 0.18), rgba(21, 43, 29, 0.8));
}

.matchmaking-chip span,
.matchmaking-party-member span,
.matchmaking-lobby-map span,
.matchmaking-roster-meta span,
.matchmaking-team-head span,
.matchmaking-summary-grid span,
.matchmaking-chat-entry span {
  color: var(--text-mid);
  font-size: 0.8rem;
}

.matchmaking-status-panel,
.matchmaking-live-panel {
  gap: 1rem;
}

.matchmaking-summary-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.matchmaking-summary-grid > div {
  display: grid;
  gap: 0.22rem;
  border-radius: 0.9rem;
  padding: 0.8rem 0.85rem;
  background: rgba(9, 14, 11, 0.24);
  border: 1px solid rgba(184, 144, 42, 0.14);
}

.matchmaking-summary-grid strong {
  font-size: 0.96rem;
}

.matchmaking-lobby-hero {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 16rem);
  align-items: end;
}

.matchmaking-lobby-hero h2 {
  font-family: "Teko", sans-serif;
  font-size: 2.35rem;
  line-height: 0.95;
  letter-spacing: 0.05em;
}

.matchmaking-lobby-map {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(184, 144, 42, 0.18);
  background:
    linear-gradient(180deg, rgba(56, 33, 12, 0.88), rgba(24, 19, 11, 0.9)),
    radial-gradient(circle at top right, rgba(212, 170, 58, 0.18), transparent 45%);
}

.matchmaking-team-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.matchmaking-team-card {
  display: grid;
  gap: 0.7rem;
  border-radius: 1rem;
  border: 1px solid rgba(184, 144, 42, 0.16);
  background: rgba(9, 15, 11, 0.3);
  padding: 0.85rem;
}

.matchmaking-team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.matchmaking-roster-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.matchmaking-roster-row.local {
  border-color: rgba(212, 170, 58, 0.28);
  background: rgba(52, 36, 12, 0.22);
}

.matchmaking-roster-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.matchmaking-ready.ready,
.matchmaking-ready.connected {
  background: rgba(44, 108, 66, 0.28);
  border-color: rgba(92, 184, 124, 0.28);
  color: #d6ffdf;
}

.matchmaking-chat-panel {
  min-height: 34rem;
}

.matchmaking-chat-log {
  min-height: 21rem;
  max-height: 32rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.matchmaking-chat-entry {
  display: grid;
  gap: 0.3rem;
}

.matchmaking-chat-entry p {
  color: var(--text);
  line-height: 1.45;
}

.matchmaking-chat-entry.own {
  border-color: rgba(212, 170, 58, 0.24);
  background: rgba(53, 35, 11, 0.2);
}

.matchmaking-chat-compose {
  display: grid;
  gap: 0.6rem;
}

.matchmaking-chat-compose textarea {
  min-height: 7.5rem;
  resize: vertical;
  border-radius: 1rem;
  border: 1px solid rgba(184, 144, 42, 0.16);
  background: rgba(5, 10, 8, 0.4);
  color: var(--text);
  padding: 0.9rem 0.95rem;
  font: inherit;
}

.matchmaking-empty {
  border-radius: 0.95rem;
  border: 1px dashed rgba(184, 144, 42, 0.18);
  color: var(--text-mid);
  padding: 1rem;
  text-align: center;
}

@media (max-width: 1180px) {
  .matchmaking-shell {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 720px) {
  .matchmaking-panel {
    padding: 0.9rem;
  }

  .matchmaking-filter-grid,
  .matchmaking-summary-grid,
  .matchmaking-team-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .matchmaking-roster-row,
  .matchmaking-party-member,
  .matchmaking-panel-head,
  .matchmaking-team-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .matchmaking-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .matchmaking-chat-panel {
    min-height: 0;
  }
}

body[data-page='landing-public'] .public-proto-landing {
  padding-bottom: 2rem;
}

body[data-page='landing-public'] .public-proto-landing .hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 4.5rem 2rem 3.5rem;
  text-align: center;
}

body[data-page='landing-public'] .public-proto-landing .diamonds {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body[data-page='landing-public'] .public-proto-landing .diamond {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(212, 170, 58, 0.82);
  opacity: 0.45;
  transform: rotate(45deg);
  border-radius: 1px;
}

body[data-page='landing-public'] .public-proto-landing .bg-ball {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(0.5px);
  animation: public-proto-drift linear infinite;
}

body[data-page='landing-public'] .public-proto-landing .bg-ball-gold {
  width: 200px;
  height: 200px;
  left: 5%;
  top: 15%;
  background: radial-gradient(circle at 35% 30%, #fff8e0, #f5dc00, #7a6400);
  animation-duration: 18s;
}

body[data-page='landing-public'] .public-proto-landing .bg-ball-red {
  width: 120px;
  height: 120px;
  right: 8%;
  top: 30%;
  background: radial-gradient(circle at 35% 30%, #ffe0e0, #cc1111, #440000);
  animation-duration: 14s;
  animation-delay: -5s;
}

body[data-page='landing-public'] .public-proto-landing .bg-ball-blue {
  width: 160px;
  height: 160px;
  right: 18%;
  bottom: 20%;
  background: radial-gradient(circle at 35% 30%, #d0c0ff, #6633cc, #200840);
  animation-duration: 22s;
  animation-delay: -9s;
}

body[data-page='landing-public'] .public-proto-landing .bg-ball-dark {
  width: 90px;
  height: 90px;
  left: 20%;
  bottom: 25%;
  background: radial-gradient(circle at 35% 30%, #888, #222, #000);
  animation-duration: 16s;
  animation-delay: -3s;
}

@keyframes public-proto-drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -20px) rotate(90deg); }
  50% { transform: translate(-15px, 40px) rotate(180deg); }
  75% { transform: translate(20px, 10px) rotate(270deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

body[data-page='landing-public'] .public-proto-landing .hero-eyebrow,
body[data-page='landing-public'] .public-proto-landing .section-label,
body[data-page='roster-public'] .public-proto-roster .page-eyebrow,
body[data-page='roster-public'] .public-proto-roster .panel-section-title {
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body[data-page='landing-public'] .public-proto-landing .hero-eyebrow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--brass-bright);
}

body[data-page='landing-public'] .public-proto-landing .hero-eyebrow::before,
body[data-page='landing-public'] .public-proto-landing .hero-eyebrow::after,
body[data-page='landing-public'] .public-proto-landing .section-label::before,
body[data-page='roster-public'] .public-proto-roster .page-eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: rgba(212, 170, 58, 0.68);
}

body[data-page='landing-public'] .public-proto-landing .hero-title {
  position: relative;
  z-index: 1;
  margin-top: 0.7rem;
  font-family: 'Teko', sans-serif;
  font-size: clamp(5.4rem, 15vw, 9.8rem);
  line-height: 0.86;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 6px 34px rgba(0, 0, 0, 0.56);
}

body[data-page='landing-public'] .public-proto-landing .hero-title span {
  display: block;
  color: var(--red-bright);
  text-shadow: 0 0 26px rgba(212, 48, 32, 0.28);
}

body[data-page='landing-public'] .public-proto-landing .hero-sub {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin-top: 1rem;
  color: var(--text);
  line-height: 1.72;
  font-size: 1.03rem;
}

body[data-page='landing-public'] .public-proto-landing .hero-ctas,
body[data-page='landing-public'] .public-proto-landing .footer-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

body[data-page='landing-public'] .public-proto-landing .hero-ctas .btn-primary,
body[data-page='landing-public'] .public-proto-landing .footer-actions .btn-primary,
body[data-page='landing-public'] .public-proto-landing .mods-copy-actions .btn-primary {
  width: auto;
}

body[data-page='landing-public'] .public-proto-landing .hero-ctas {
  margin-top: 1.5rem;
  justify-content: center;
}

body[data-page='landing-public'] .public-proto-landing .btn-secondary,
body[data-page='roster-public'] .public-proto-roster .btn-secondary-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.62rem 1rem;
  border: 1px solid rgba(236, 214, 173, 0.22);
  background: rgba(0, 0, 0, 0.26);
  color: var(--cream);
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

body[data-page='landing-public'] .public-proto-landing .btn-secondary:hover,
body[data-page='roster-public'] .public-proto-roster .btn-secondary-sm:hover {
  transform: translateY(-2px);
  color: var(--brass-bright);
  border-color: rgba(212, 170, 58, 0.44);
}

body[data-page='landing-public'] .public-proto-landing .ball-rack {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  display: flex;
  gap: 0.38rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 20rem;
}

body[data-page='landing-public'] .public-proto-landing .ball {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  position: relative;
  transition: transform 0.18s ease;
}

body[data-page='landing-public'] .public-proto-landing .ball:hover {
  transform: scale(1.14) translateY(-4px);
}

body[data-page='landing-public'] .public-proto-landing .b1,
body[data-page='landing-public'] .public-proto-landing .b9 {
  background: radial-gradient(circle at 35% 30%, #fff8e0 0%, #f5dc00 40%, #c9a800 80%, #7a6400 100%);
}

body[data-page='landing-public'] .public-proto-landing .b2,
body[data-page='landing-public'] .public-proto-landing .b10 {
  background: radial-gradient(circle at 35% 30%, #ffe0e0 0%, #cc1111 45%, #880000 85%, #440000 100%);
}

body[data-page='landing-public'] .public-proto-landing .b3 {
  background: radial-gradient(circle at 35% 30%, #ffeebb 0%, #e89000 45%, #a06000 85%, #503000 100%);
}

body[data-page='landing-public'] .public-proto-landing .b4,
body[data-page='landing-public'] .public-proto-landing .b11 {
  background: radial-gradient(circle at 35% 30%, #d0c0ff 0%, #6633cc 45%, #401888 85%, #200840 100%);
}

body[data-page='landing-public'] .public-proto-landing .b5,
body[data-page='landing-public'] .public-proto-landing .b13,
body[data-page='landing-public'] .public-proto-landing .b15 {
  background: radial-gradient(circle at 35% 30%, #ffccaa 0%, #dd5500 45%, #993300 85%, #4d1800 100%);
}

body[data-page='landing-public'] .public-proto-landing .b6,
body[data-page='landing-public'] .public-proto-landing .b12 {
  background: radial-gradient(circle at 35% 30%, #c0ffcc 0%, #116622 45%, #0a3d14 85%, #051f0a 100%);
}

body[data-page='landing-public'] .public-proto-landing .b7,
body[data-page='landing-public'] .public-proto-landing .b14 {
  background: radial-gradient(circle at 35% 30%, #ffaacc 0%, #bb1155 45%, #770033 85%, #3d0019 100%);
}

body[data-page='landing-public'] .public-proto-landing .b8 {
  background: radial-gradient(circle at 35% 30%, #888888 0%, #222222 45%, #111111 85%, #000000 100%);
}

body[data-page='landing-public'] .public-proto-landing .ball,
body[data-page='landing-public'] .public-proto-landing .bg-ball,
body[data-page='roster-public'] .public-proto-roster .panel-ball,
body[data-page='roster-public'] .public-proto-roster .char-ball {
  box-shadow: inset -4px -4px 8px rgba(0, 0, 0, 0.28), 0 4px 14px rgba(0, 0, 0, 0.4);
}

body[data-page='landing-public'] .public-proto-landing .ball-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  color: #22180f;
  font-family: 'Teko', sans-serif;
  font-size: 0.7rem;
  line-height: 1;
}

body[data-page='landing-public'] .public-proto-landing .stripe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  border-radius: 50%;
  opacity: 0.74;
}

body[data-page='landing-public'] .public-proto-landing .divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem;
}

body[data-page='landing-public'] .public-proto-landing .divider-line {
  flex: 1;
  height: 1px;
  background: rgba(212, 170, 58, 0.22);
}

body[data-page='landing-public'] .public-proto-landing .divider-icon {
  color: rgba(212, 170, 58, 0.7);
  font-size: 1rem;
}

body[data-page='landing-public'] .public-proto-landing .public-proto-section {
  padding-top: 4.75rem;
  padding-bottom: 4.75rem;
}

body[data-page='landing-public'] .public-proto-landing .section-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  color: var(--brass-bright);
}

body[data-page='landing-public'] .public-proto-landing .section-title,
body[data-page='landing-public'] .public-proto-landing .footer-cta h3,
body[data-page='roster-public'] .public-proto-roster .page-title,
body[data-page='roster-public'] .public-proto-roster .panel-name {
  font-family: 'Teko', sans-serif;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--cream);
}

body[data-page='landing-public'] .public-proto-landing .section-title {
  font-size: clamp(2.9rem, 6vw, 4.6rem);
  letter-spacing: 0.06em;
  margin: 0 0 0.8rem;
}

body[data-page='landing-public'] .public-proto-landing .section-title em,
body[data-page='roster-public'] .public-proto-roster .page-title em {
  font-style: normal;
  color: var(--brass-bright);
}

body[data-page='landing-public'] .public-proto-landing .section-sub,
body[data-page='landing-public'] .public-proto-landing .footer-cta p,
body[data-page='roster-public'] .public-proto-roster .page-sub,
body[data-page='roster-public'] .public-proto-roster .ability-desc {
  color: var(--text);
  line-height: 1.7;
}

body[data-page='landing-public'] .public-proto-landing .section-sub {
  max-width: 38rem;
  margin-bottom: 2.2rem;
}

body[data-page='landing-public'] .public-proto-landing .combat-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
  padding: 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 170, 58, 0.2);
  background: rgba(7, 12, 9, 0.72);
}

body[data-page='landing-public'] .public-proto-landing .combat-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  background: transparent;
  color: rgba(244, 233, 212, 0.72);
  cursor: pointer;
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

body[data-page='landing-public'] .public-proto-landing .combat-tab:hover {
  color: var(--cream);
  transform: translateY(-1px);
}

body[data-page='landing-public'] .public-proto-landing .combat-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 170, 58, 0.26);
}

body[data-page='landing-public'] .public-proto-landing .combat-tab.is-active {
  background: linear-gradient(180deg, rgba(212, 170, 58, 0.24), rgba(212, 170, 58, 0.12));
  color: var(--brass-bright);
  box-shadow: inset 0 0 0 1px rgba(212, 170, 58, 0.22);
}

body[data-page='landing-public'] .public-proto-landing .combat-panels {
  min-height: 0;
}

body[data-page='landing-public'] .public-proto-landing .combat-panel-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 2rem;
  align-items: start;
}

body[data-page='landing-public'] .public-proto-landing .combat-panel-copy {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

body[data-page='landing-public'] .public-proto-landing .combat-panel-title {
  margin: 0 0 0.8rem;
  font-family: 'Teko', sans-serif;
  font-size: clamp(2.45rem, 4.5vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}

body[data-page='landing-public'] .public-proto-landing .combat-panel-title em {
  font-style: normal;
  color: var(--brass-bright);
}

body[data-page='landing-public'] .public-proto-landing .combat-panel-sub {
  margin-bottom: 0;
}

body[data-page='landing-public'] .public-proto-landing .combat-panel-stack {
  display: grid;
  gap: 0.8rem;
}

body[data-page='landing-public'] .public-proto-landing .combat-pve-modes-grid[hidden] {
  display: none;
}

body[data-page='landing-public'] .public-proto-landing .modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

body[data-page='landing-public'] .public-proto-landing .mode-card {
  position: relative;
  overflow: hidden;
  display: block;
  padding: 1.1rem 1rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 170, 58, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.12)),
    linear-gradient(180deg, rgba(14, 39, 22, 0.96), rgba(10, 17, 12, 0.98));
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body[data-page='landing-public'] .public-proto-landing .mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--mode-color, var(--brass));
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

body[data-page='landing-public'] .public-proto-landing .mode-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 170, 58, 0.34);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.28);
}

body[data-page='landing-public'] .public-proto-landing .mode-card:hover::before {
  transform: scaleX(1);
}

body[data-page='landing-public'] .public-proto-landing .mode-icon {
  display: block;
  margin-bottom: 0.55rem;
  font-family: 'Teko', sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  color: var(--cream);
}

body[data-page='landing-public'] .public-proto-landing .mode-name {
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

body[data-page='landing-public'] .public-proto-landing .mode-desc {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.55;
}

body[data-page='landing-public'] .public-proto-landing .mode-tag {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.22rem 0.55rem;
  border-radius: 2px;
  border: 1px solid rgba(212, 170, 58, 0.3);
  background: rgba(212, 170, 58, 0.14);
  color: var(--brass-bright);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-page='landing-public'] .public-proto-landing .mode-tag.pve {
  background: rgba(76, 205, 180, 0.12);
  border-color: rgba(78, 205, 180, 0.26);
  color: #77e4cf;
}

body[data-page='landing-public'] .public-proto-landing .chars-section {
  padding: 3.75rem 0;
  border-top: 1px solid rgba(212, 170, 58, 0.12);
  border-bottom: 1px solid rgba(212, 170, 58, 0.12);
  overflow: hidden;
}

body[data-page='landing-public'] .public-proto-landing .chars-head {
  margin-bottom: 0.85rem;
}

body[data-page='landing-public'] .public-proto-landing .chars-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

body[data-page='landing-public'] .public-proto-landing .chars-marquee-shell {
  overflow: hidden;
}

body[data-page='landing-public'] .public-proto-landing .marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: public-marquee-slide 30s linear infinite;
}

body[data-page='landing-public'] .public-proto-landing .marquee-track:hover {
  animation-play-state: paused;
}

@keyframes public-marquee-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

body[data-page='landing-public'] .public-proto-landing .char-card,
body[data-page='roster-public'] .public-proto-roster .char-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body[data-page='landing-public'] .public-proto-landing .char-card {
  width: 140px;
  flex-shrink: 0;
  padding: 1rem 0.75rem;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

body[data-page='landing-public'] .public-proto-landing .char-card:hover,
body[data-page='roster-public'] .public-proto-roster .char-card:hover,
body[data-page='roster-public'] .public-proto-roster .char-card.selected {
  transform: translateY(-5px);
  border-color: rgba(212, 170, 58, 0.38);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.26);
}

body[data-page='landing-public'] .public-proto-landing .char-ball,
body[data-page='roster-public'] .public-proto-roster .char-ball,
body[data-page='roster-public'] .public-proto-roster .panel-ball {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(212, 170, 58, 0.26);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.16)),
    var(--char-glow, rgba(212, 170, 58, 0.2));
}

body[data-page='landing-public'] .public-proto-landing .char-ball {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.65rem;
}

body[data-page='landing-public'] .public-proto-landing .char-ball img,
body[data-page='roster-public'] .public-proto-roster .char-ball img,
body[data-page='roster-public'] .public-proto-roster .panel-ball img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-page='landing-public'] .public-proto-landing .char-ball svg,
body[data-page='roster-public'] .public-proto-roster .char-ball svg,
body[data-page='roster-public'] .public-proto-roster .panel-ball svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body[data-page='landing-public'] .public-proto-landing .char-name,
body[data-page='roster-public'] .public-proto-roster .char-name {
  font-family: 'Teko', sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

body[data-page='landing-public'] .public-proto-landing .char-class,
body[data-page='roster-public'] .public-proto-roster .char-class,
body[data-page='roster-public'] .public-proto-roster .panel-class,
body[data-page='roster-public'] .public-proto-roster .roster-count {
  color: var(--brass-bright);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-page='landing-public'] .public-proto-landing .public-progression-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

body[data-page='landing-public'] .public-proto-landing .progression-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 2rem;
  align-items: start;
}

body[data-page='landing-public'] .public-proto-landing .progression-copy {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

body[data-page='landing-public'] .public-proto-landing .progression-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

body[data-page='landing-public'] .public-proto-landing .progression-actions .btn-primary {
  width: auto;
}

body[data-page='landing-public'] .public-proto-landing .progression-grid {
  display: grid;
  gap: 0.8rem;
}

body[data-page='landing-public'] .public-proto-landing .progression-card {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 170, 58, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.12)),
    linear-gradient(180deg, rgba(14, 39, 22, 0.96), rgba(10, 17, 12, 0.98));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

body[data-page='landing-public'] .public-proto-landing .progression-kicker {
  color: var(--brass-bright);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-page='landing-public'] .public-proto-landing .progression-card strong {
  font-family: 'Teko', sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
}

body[data-page='landing-public'] .public-proto-landing .progression-card p {
  color: var(--text);
  line-height: 1.62;
  margin: 0;
}

body[data-page='landing-public'] .public-proto-landing .public-mods-section {
  padding-top: 4.5rem;
}

body[data-page='landing-public'] .public-proto-landing .mods-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 2.2rem;
  align-items: start;
}

body[data-page='landing-public'] .public-proto-landing .loot-strip {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

body[data-page='landing-public'] .public-proto-landing .loot-tag {
  padding: 0.28rem 0.62rem;
  border-radius: 3px;
  border: 1px solid;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body[data-page='landing-public'] .public-proto-landing .lt-common { color: #b2b2b2; border-color: #555; background: rgba(100, 100, 100, 0.1); }
body[data-page='landing-public'] .public-proto-landing .lt-uncommon { color: #69edab; border-color: #3a8; background: rgba(50, 160, 90, 0.1); }
body[data-page='landing-public'] .public-proto-landing .lt-rare { color: #81b6ff; border-color: #4181db; background: rgba(50, 120, 220, 0.1); }
body[data-page='landing-public'] .public-proto-landing .lt-epic { color: #d7a2ff; border-color: #9467c7; background: rgba(150, 80, 220, 0.1); }
body[data-page='landing-public'] .public-proto-landing .lt-legendary { color: var(--brass-bright); border-color: var(--brass); background: rgba(212, 170, 58, 0.1); }
body[data-page='landing-public'] .public-proto-landing .lt-prime { color: #ff9d9d; border-color: #c44; background: rgba(200, 50, 50, 0.15); }

body[data-page='landing-public'] .public-proto-landing .mods-copy-actions {
  margin-top: 1.6rem;
}

body[data-page='landing-public'] .public-proto-landing .mod-cards-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

body[data-page='landing-public'] .public-proto-landing .mod-cards-preview .upgrade-card {
  min-height: 100%;
}

body[data-page='landing-public'] .public-proto-landing .footer-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 3rem 0 0;
  border-top: 1px solid rgba(212, 170, 58, 0.14);
}

body[data-page='landing-public'] .public-proto-landing .footer-cta h3 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: 0.08em;
  margin: 0 0 0.45rem;
}

body[data-page='landing-public'] .public-proto-landing .footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

body[data-page='landing-public'] .public-proto-landing .footer-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-family: 'Teko', sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-page='landing-public'] .public-proto-landing .footer-links a:hover {
  color: var(--brass-bright);
}

body[data-page='landing-public'] .public-proto-landing .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

body[data-page='landing-public'] .public-proto-landing .revealed {
  opacity: 1;
  transform: none;
}

body[data-page='roster-public'] .public-proto-roster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: calc(100vh - var(--nav-h));
}

body[data-page='roster-public'] .public-proto-roster .roster-main {
  padding: 2rem;
  overflow-y: auto;
}

body[data-page='roster-public'] .public-proto-roster .page-header {
  margin-bottom: 1.8rem;
}

body[data-page='roster-public'] .public-proto-roster .page-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.45rem;
  color: var(--brass-bright);
}

body[data-page='roster-public'] .public-proto-roster .page-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: 0.06em;
  margin: 0;
}

body[data-page='roster-public'] .public-proto-roster .page-sub {
  margin-top: 0.4rem;
  max-width: 40rem;
}

body[data-page='roster-public'] .public-proto-roster .filter-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(212, 170, 58, 0.14);
}

body[data-page='roster-public'] .public-proto-roster .search-box {
  flex: 1;
  min-width: 200px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 170, 58, 0.2);
  color: var(--cream);
  border-radius: 4px;
  padding: 0.72rem 0.9rem;
  font: inherit;
}

body[data-page='roster-public'] .public-proto-roster .search-box:focus {
  outline: none;
  border-color: rgba(212, 170, 58, 0.42);
}

body[data-page='roster-public'] .public-proto-roster .filter-btn {
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(212, 170, 58, 0.2);
  border-radius: 3px;
  background: transparent;
  color: var(--text-mid);
  font-family: 'Teko', sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

body[data-page='roster-public'] .public-proto-roster .filter-btn:hover,
body[data-page='roster-public'] .public-proto-roster .filter-btn.active {
  color: var(--cream);
  border-color: rgba(212, 170, 58, 0.42);
  background: rgba(212, 170, 58, 0.08);
}

body[data-page='roster-public'] .public-proto-roster .roster-count {
  margin-left: auto;
}

body[data-page='roster-public'] .public-proto-roster .roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

body[data-page='roster-public'] .public-proto-roster .char-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 0.9rem 0.95rem;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
}

body[data-page='roster-public'] .public-proto-roster .char-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--char-color, var(--brass));
  opacity: 0;
  transition: opacity 0.18s ease;
}

body[data-page='roster-public'] .public-proto-roster .char-card:hover::before,
body[data-page='roster-public'] .public-proto-roster .char-card.selected::before {
  opacity: 1;
}

body[data-page='roster-public'] .public-proto-roster .char-ball {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.7rem;
}

body[data-page='roster-public'] .public-proto-roster .difficulty-pips {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  margin: 0.55rem 0 0.7rem;
}

body[data-page='roster-public'] .public-proto-roster .diff-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(212, 170, 58, 0.34);
}

body[data-page='roster-public'] .public-proto-roster .diff-pip.filled {
  background: var(--brass);
  border-color: var(--brass);
}

body[data-page='roster-public'] .public-proto-roster .char-tags {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

body[data-page='roster-public'] .public-proto-roster .char-tag {
  padding: 0.12rem 0.35rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-mid);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page='roster-public'] .public-proto-roster .coming-soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 21, 9, 0.74);
}

body[data-page='roster-public'] .public-proto-roster .coming-soon-label {
  color: var(--brass-bright);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-page='roster-public'] .public-proto-roster .detail-panel {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  padding: 2rem 1.6rem;
  border-left: 1px solid rgba(212, 170, 58, 0.14);
  background:
    linear-gradient(180deg, rgba(8, 20, 12, 0.96), rgba(7, 13, 9, 0.98)),
    rgba(0, 0, 0, 0.28);
  overflow-y: auto;
}

body[data-page='roster-public'] .public-proto-roster .panel-empty {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  opacity: 0.56;
}

body[data-page='roster-public'] .public-proto-roster .panel-empty-ball {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(212, 170, 58, 0.24);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.26), rgba(0, 0, 0, 0.2) 35%, rgba(212, 170, 58, 0.2));
}

body[data-page='roster-public'] .public-proto-roster .panel-empty p {
  color: var(--text-mid);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-page='roster-public'] .public-proto-roster .panel-content {
  display: none;
  flex-direction: column;
  gap: 1.3rem;
}

body[data-page='roster-public'] .public-proto-roster .panel-content.visible {
  display: flex;
}

body[data-page='roster-public'] .public-proto-roster .panel-hero {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

body[data-page='roster-public'] .public-proto-roster .panel-ball {
  width: 82px;
  height: 82px;
  flex-shrink: 0;
}

body[data-page='roster-public'] .public-proto-roster .panel-name {
  font-size: 2.25rem;
  letter-spacing: 0.06em;
}

body[data-page='roster-public'] .public-proto-roster .panel-class {
  margin-top: 0.25rem;
}

body[data-page='roster-public'] .public-proto-roster .panel-archetype {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.22rem 0.55rem;
  border-radius: 3px;
  border: 1px solid rgba(212, 170, 58, 0.24);
  background: rgba(212, 170, 58, 0.08);
  color: var(--cream);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page='roster-public'] .public-proto-roster .panel-divider {
  height: 1px;
  background: rgba(212, 170, 58, 0.14);
}

body[data-page='roster-public'] .public-proto-roster .panel-section-title {
  margin-bottom: 0.7rem;
  color: var(--brass-bright);
}

body[data-page='roster-public'] .public-proto-roster .stat-bars {
  display: grid;
  gap: 0.55rem;
}

body[data-page='roster-public'] .public-proto-roster .stat-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) 2rem;
  gap: 0.55rem;
  align-items: center;
}

body[data-page='roster-public'] .public-proto-roster .stat-label,
body[data-page='roster-public'] .public-proto-roster .stat-val {
  color: var(--cream);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body[data-page='roster-public'] .public-proto-roster .stat-track {
  height: 10px;
  border: 1px solid rgba(212, 170, 58, 0.16);
  background: rgba(0, 0, 0, 0.26);
}

body[data-page='roster-public'] .public-proto-roster .stat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-bright), var(--brass-bright));
}

body[data-page='roster-public'] .public-proto-roster .abilities-list {
  display: grid;
  gap: 0.7rem;
}

body[data-page='roster-public'] .public-proto-roster .ability-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.8rem;
  border: 1px solid rgba(212, 170, 58, 0.14);
  background: rgba(0, 0, 0, 0.18);
}

body[data-page='roster-public'] .public-proto-roster .ability-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 170, 58, 0.24);
  background: rgba(212, 170, 58, 0.08);
  color: var(--brass-bright);
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

body[data-page='roster-public'] .public-proto-roster .ability-name {
  font-family: 'Teko', sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}

body[data-page='roster-public'] .public-proto-roster .ability-type {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.14rem 0.35rem;
  border-radius: 2px;
  background: rgba(212, 170, 58, 0.08);
  color: var(--brass-bright);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body[data-page='roster-public'] .public-proto-roster .public-vitals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

body[data-page='roster-public'] .public-proto-roster .public-vital-chip {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(212, 170, 58, 0.14);
  background: rgba(0, 0, 0, 0.18);
}

body[data-page='roster-public'] .public-proto-roster .public-vital-chip span {
  color: var(--text-mid);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page='roster-public'] .public-proto-roster .public-vital-chip strong {
  color: var(--cream);
  font-family: 'Teko', sans-serif;
  font-size: 1.2rem;
  line-height: 1;
}

body[data-page='roster-public'] .public-proto-roster .panel-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

body[data-page='roster-public'] .public-proto-roster .panel-cta .btn-primary,
body[data-page='roster-public'] .public-proto-roster .panel-cta .btn-secondary-sm {
  flex: 1 1 180px;
}

@media (max-width: 1080px) {
  body[data-page='landing-public'] .public-proto-landing .combat-panel-layout,
  body[data-page='landing-public'] .public-proto-landing .progression-layout,
  body[data-page='landing-public'] .public-proto-landing .mods-layout,
  body[data-page='roster-public'] .public-proto-roster {
    grid-template-columns: 1fr;
  }

  body[data-page='landing-public'] .public-proto-landing .combat-panel-copy,
  body[data-page='landing-public'] .public-proto-landing .progression-copy {
    position: static;
  }

  body[data-page='roster-public'] .public-proto-roster .detail-panel {
    position: static;
    height: auto;
    border-left: none;
    border-top: 1px solid rgba(212, 170, 58, 0.14);
  }
}

@media (max-width: 720px) {
  body[data-page='landing-public'] .public-proto-landing .hero,
  body[data-page='landing-public'] .public-proto-landing .public-proto-section,
  body[data-page='roster-public'] .public-proto-roster .roster-main,
  body[data-page='roster-public'] .public-proto-roster .detail-panel {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body[data-page='landing-public'] .public-proto-landing .mod-cards-preview,
  body[data-page='landing-public'] .public-proto-landing .footer-band,
  body[data-page='roster-public'] .public-proto-roster .public-vitals-grid {
    grid-template-columns: 1fr;
  }

  body[data-page='landing-public'] .public-proto-landing .hero-ctas .btn-primary,
  body[data-page='landing-public'] .public-proto-landing .hero-ctas .btn-secondary,
  body[data-page='landing-public'] .public-proto-landing .progression-actions .btn-primary,
  body[data-page='landing-public'] .public-proto-landing .progression-actions .btn-secondary,
  body[data-page='landing-public'] .public-proto-landing .footer-actions .btn-primary,
  body[data-page='landing-public'] .public-proto-landing .footer-actions .btn-secondary,
  body[data-page='roster-public'] .public-proto-roster .panel-cta .btn-primary,
  body[data-page='roster-public'] .public-proto-roster .panel-cta .btn-secondary-sm {
    width: 100%;
  }

  body[data-page='landing-public'] .public-proto-landing .chars-head-row,
  body[data-page='roster-public'] .public-proto-roster .panel-hero {
    flex-direction: column;
  }

  body[data-page='landing-public'] .public-proto-landing .combat-tabs {
    display: flex;
    width: 100%;
  }

  body[data-page='landing-public'] .public-proto-landing .combat-tab {
    flex: 1 1 0;
    justify-content: center;
  }
}
